naive-ui 2.35.0 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/README.zh-CN.md +1 -0
- package/dist/index.js +2433 -667
- package/dist/index.prod.js +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/es/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectMenu.js +1 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/es/_internal/selection/src/Selection.d.ts +3 -1
- package/es/_internal/selection/src/Selection.js +4 -2
- package/es/_styles/common/_common.js +1 -1
- package/es/_styles/common/light.js +2 -2
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-collection.js +2 -0
- package/es/_utils/css/color-to-class.js +1 -1
- package/es/affix/src/Affix.d.ts +2 -2
- package/es/affix/src/Affix.js +4 -2
- package/es/alert/src/Alert.js +3 -1
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/button/src/Button.d.ts +1 -1
- package/es/button/src/Button.js +1 -1
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.js +12 -5
- package/es/carousel/src/Carousel.d.ts +5 -5
- package/es/carousel/src/Carousel.js +2 -1
- package/es/checkbox/src/Checkbox.d.ts +6 -6
- package/es/color-picker/src/ColorPickerSwatches.js +4 -3
- package/es/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/config.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +3 -3
- package/es/data-table/src/DataTable.js +1 -0
- package/es/data-table/src/MainTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +3 -3
- package/es/data-table/src/TableParts/Body.js +5 -3
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/date-picker/src/panel/date.d.ts +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +2 -2
- package/es/date-picker/src/panel/month.d.ts +2 -2
- package/es/date-picker/src/panel/monthrange.d.ts +2 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +720 -773
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-calendar.js +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/es/date-picker/src/utils.js +1 -6
- package/es/date-picker/styles/_common.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +6 -0
- package/es/descriptions/src/Descriptions.js +22 -7
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -0
- package/es/descriptions/src/DescriptionsItem.js +2 -0
- package/es/dialog/src/Dialog.js +6 -2
- package/es/dialog/src/DialogEnvironment.d.ts +1 -1
- package/es/dialog/src/DialogProvider.d.ts +3 -3
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +18 -0
- package/es/dropdown/src/Dropdown.js +1 -1
- package/es/dropdown/src/DropdownMenu.js +4 -1
- package/es/dropdown/src/DropdownOption.d.ts +5 -4
- package/es/dropdown/src/DropdownOption.js +2 -4
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -0
- package/es/dynamic-input/src/DynamicInput.js +3 -3
- package/es/dynamic-tags/src/DynamicTags.d.ts +6 -0
- package/es/dynamic-tags/src/DynamicTags.js +4 -4
- package/es/equation/index.d.ts +1 -0
- package/es/equation/src/Equation.d.ts +2 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/utils.d.ts +1 -1
- package/es/input/src/Input.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -1
- package/es/layout/src/Layout.d.ts +6 -0
- package/es/layout/src/Layout.js +8 -1
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +9 -0
- package/es/layout/src/LayoutSider.js +12 -3
- package/es/legacy-grid/src/styles/index.cssr.js +2 -3
- package/es/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/es/loading-bar/src/LoadingBar.d.ts +2 -0
- package/es/loading-bar/src/LoadingBar.js +3 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -0
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/frFR.js +1 -1
- package/es/log/src/Log.d.ts +3 -3
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/utils.js +4 -4
- package/es/menu/src/Menu.d.ts +30 -13
- package/es/menu/src/Menu.js +101 -7
- package/es/menu/src/MenuOptionContent.d.ts +3 -0
- package/es/menu/src/MenuOptionContent.js +7 -2
- package/es/menu/src/Submenu.d.ts +23 -12
- package/es/menu/src/Submenu.js +9 -8
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/styles/index.cssr.js +8 -4
- package/es/menu/src/use-menu-child.js +5 -5
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +7 -4
- package/es/message/src/MessageProvider.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +12 -4
- package/es/modal/src/Modal.d.ts +16 -4
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/notification/src/NotificationEnvironment.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +3 -0
- package/es/notification/src/NotificationProvider.js +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +18 -0
- package/es/popover/src/Popover.d.ts +24 -0
- package/es/popover/src/Popover.js +7 -0
- package/es/popover/src/PopoverBody.d.ts +22 -1
- package/es/popover/src/PopoverBody.js +26 -10
- package/es/popover/src/interface.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +18 -0
- package/es/popselect/src/Popselect.js +2 -1
- package/es/popselect/src/PopselectPanel.js +1 -0
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +154 -0
- package/es/qr-code/src/QrCode.js +146 -0
- package/es/qr-code/src/qrcodegen.d.ts +94 -0
- package/es/qr-code/src/qrcodegen.js +948 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/radio/src/RadioGroup.d.ts +1 -0
- package/es/radio/src/RadioGroup.js +2 -1
- package/es/radio/src/styles/radio-group.cssr.js +1 -0
- package/es/result/src/Result.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +2 -0
- package/es/select/src/Select.d.ts +1 -1
- package/es/skeleton/src/Skeleton.js +4 -7
- package/es/slider/src/Slider.d.ts +6 -0
- package/es/slider/src/Slider.js +10 -3
- package/es/slider/src/utils.d.ts +2 -2
- package/es/slider/src/utils.js +4 -4
- package/es/space/src/Space.d.ts +3 -0
- package/es/space/src/Space.js +3 -3
- package/es/spin/src/Spin.d.ts +7 -1
- package/es/spin/src/Spin.js +4 -3
- package/es/split/index.d.ts +2 -0
- package/es/split/index.js +1 -0
- package/es/split/src/Split.d.ts +135 -0
- package/es/split/src/Split.js +145 -0
- package/es/split/src/styles/index.cssr.d.ts +2 -0
- package/es/split/src/styles/index.cssr.js +25 -0
- package/es/split/styles/dark.d.ts +3 -0
- package/es/split/styles/dark.js +6 -0
- package/es/split/styles/index.d.ts +3 -0
- package/es/split/styles/index.js +2 -0
- package/es/split/styles/light.d.ts +9 -0
- package/es/split/styles/light.js +13 -0
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/tabs/src/Tab.js +3 -1
- package/es/tabs/src/Tabs.d.ts +6 -6
- package/es/tabs/src/Tabs.js +2 -2
- package/es/tabs/src/styles/index.cssr.js +12 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -2
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/thing/src/Thing.d.ts +6 -0
- package/es/thing/src/Thing.js +13 -4
- package/es/tooltip/src/Tooltip.d.ts +18 -0
- package/es/tree/index.d.ts +1 -0
- package/es/tree/index.js +1 -0
- package/es/tree/src/Tree.d.ts +11 -0
- package/es/tree/src/Tree.js +6 -3
- package/es/tree/src/TreeNode.js +30 -19
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/styles/index.cssr.js +4 -3
- package/es/tree/src/utils.d.ts +1 -0
- package/es/tree/src/utils.js +12 -0
- package/es/tree/styles/light.d.ts +2 -0
- package/es/tree/styles/light.js +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +17 -10
- package/es/tree-select/src/TreeSelect.js +2 -2
- package/es/tree-select/styles/light.d.ts +1 -0
- package/es/upload/src/Upload.d.ts +6 -0
- package/es/upload/src/Upload.js +8 -3
- package/es/upload/src/UploadFileList.js +3 -2
- package/es/upload/src/UploadTrigger.js +3 -2
- package/es/upload/src/interface.d.ts +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.js +102 -0
- package/es/watermark/src/Watermark.js +7 -0
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/lib/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectMenu.js +1 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/lib/_internal/selection/src/Selection.d.ts +3 -1
- package/lib/_internal/selection/src/Selection.js +4 -2
- package/lib/_styles/common/_common.js +1 -1
- package/lib/_styles/common/light.js +2 -2
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-collection.js +2 -0
- package/lib/_utils/css/color-to-class.js +1 -1
- package/lib/affix/src/Affix.d.ts +2 -2
- package/lib/affix/src/Affix.js +4 -2
- package/lib/alert/src/Alert.js +3 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/button/src/Button.d.ts +1 -1
- package/lib/button/src/Button.js +1 -1
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +12 -5
- package/lib/carousel/src/Carousel.d.ts +5 -5
- package/lib/carousel/src/Carousel.js +2 -1
- package/lib/checkbox/src/Checkbox.d.ts +6 -6
- package/lib/color-picker/src/ColorPickerSwatches.js +4 -3
- package/lib/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +3 -3
- package/lib/data-table/src/DataTable.js +1 -0
- package/lib/data-table/src/MainTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +3 -3
- package/lib/data-table/src/TableParts/Body.js +5 -3
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/date-picker/src/panel/date.d.ts +2 -2
- package/lib/date-picker/src/panel/daterange.d.ts +2 -2
- package/lib/date-picker/src/panel/datetime.d.ts +2 -2
- package/lib/date-picker/src/panel/datetimerange.d.ts +2 -2
- package/lib/date-picker/src/panel/month.d.ts +2 -2
- package/lib/date-picker/src/panel/monthrange.d.ts +2 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +720 -773
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/lib/date-picker/src/utils.js +1 -6
- package/lib/date-picker/styles/_common.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +6 -0
- package/lib/descriptions/src/Descriptions.js +22 -7
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -0
- package/lib/descriptions/src/DescriptionsItem.js +2 -0
- package/lib/dialog/src/Dialog.js +6 -2
- package/lib/dialog/src/DialogEnvironment.d.ts +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +3 -3
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +18 -0
- package/lib/dropdown/src/Dropdown.js +1 -1
- package/lib/dropdown/src/DropdownMenu.js +4 -1
- package/lib/dropdown/src/DropdownOption.d.ts +5 -4
- package/lib/dropdown/src/DropdownOption.js +2 -4
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -0
- package/lib/dynamic-input/src/DynamicInput.js +3 -3
- package/lib/dynamic-tags/src/DynamicTags.d.ts +6 -0
- package/lib/dynamic-tags/src/DynamicTags.js +4 -4
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/src/Equation.d.ts +2 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/input/src/Input.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/layout/src/Layout.d.ts +6 -0
- package/lib/layout/src/Layout.js +8 -1
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +9 -0
- package/lib/layout/src/LayoutSider.js +12 -3
- package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
- package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/lib/loading-bar/src/LoadingBar.d.ts +2 -0
- package/lib/loading-bar/src/LoadingBar.js +3 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -0
- package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
- package/lib/locales/common/frFR.js +1 -1
- package/lib/log/src/Log.d.ts +3 -3
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/utils.js +4 -4
- package/lib/menu/src/Menu.d.ts +30 -13
- package/lib/menu/src/Menu.js +101 -7
- package/lib/menu/src/MenuOptionContent.d.ts +3 -0
- package/lib/menu/src/MenuOptionContent.js +7 -2
- package/lib/menu/src/Submenu.d.ts +23 -12
- package/lib/menu/src/Submenu.js +9 -8
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/styles/index.cssr.js +8 -4
- package/lib/menu/src/use-menu-child.js +5 -5
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +7 -4
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +12 -4
- package/lib/modal/src/Modal.d.ts +16 -4
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/notification/src/NotificationEnvironment.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +3 -0
- package/lib/notification/src/NotificationProvider.js +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +18 -0
- package/lib/popover/src/Popover.d.ts +24 -0
- package/lib/popover/src/Popover.js +7 -0
- package/lib/popover/src/PopoverBody.d.ts +22 -1
- package/lib/popover/src/PopoverBody.js +26 -10
- package/lib/popover/src/interface.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +18 -0
- package/lib/popselect/src/Popselect.js +2 -1
- package/lib/popselect/src/PopselectPanel.js +1 -0
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +154 -0
- package/lib/qr-code/src/QrCode.js +152 -0
- package/lib/qr-code/src/qrcodegen.d.ts +94 -0
- package/lib/qr-code/src/qrcodegen.js +949 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/radio/src/RadioGroup.d.ts +1 -0
- package/lib/radio/src/RadioGroup.js +2 -1
- package/lib/radio/src/styles/radio-group.cssr.js +1 -0
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +2 -0
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/skeleton/src/Skeleton.js +3 -6
- package/lib/slider/src/Slider.d.ts +6 -0
- package/lib/slider/src/Slider.js +10 -3
- package/lib/slider/src/utils.d.ts +2 -2
- package/lib/slider/src/utils.js +3 -3
- package/lib/space/src/Space.d.ts +3 -0
- package/lib/space/src/Space.js +3 -3
- package/lib/spin/src/Spin.d.ts +7 -1
- package/lib/spin/src/Spin.js +4 -3
- package/lib/split/index.d.ts +2 -0
- package/lib/split/index.js +9 -0
- package/lib/split/src/Split.d.ts +135 -0
- package/lib/split/src/Split.js +151 -0
- package/lib/split/src/styles/index.cssr.d.ts +2 -0
- package/lib/split/src/styles/index.cssr.js +30 -0
- package/lib/split/styles/dark.d.ts +3 -0
- package/lib/split/styles/dark.js +8 -0
- package/lib/split/styles/index.d.ts +3 -0
- package/lib/split/styles/index.js +10 -0
- package/lib/split/styles/light.d.ts +9 -0
- package/lib/split/styles/light.js +17 -0
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/tabs/src/Tab.js +3 -1
- package/lib/tabs/src/Tabs.d.ts +6 -6
- package/lib/tabs/src/Tabs.js +2 -2
- package/lib/tabs/src/styles/index.cssr.js +12 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -2
- package/lib/themes/dark.js +56 -52
- package/lib/themes/light.js +56 -52
- package/lib/thing/src/Thing.d.ts +6 -0
- package/lib/thing/src/Thing.js +13 -4
- package/lib/tooltip/src/Tooltip.d.ts +18 -0
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/index.js +3 -1
- package/lib/tree/src/Tree.d.ts +11 -0
- package/lib/tree/src/Tree.js +6 -3
- package/lib/tree/src/TreeNode.js +30 -19
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/styles/index.cssr.js +4 -3
- package/lib/tree/src/utils.d.ts +1 -0
- package/lib/tree/src/utils.js +14 -1
- package/lib/tree/styles/light.d.ts +2 -0
- package/lib/tree/styles/light.js +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +17 -10
- package/lib/tree-select/src/TreeSelect.js +2 -2
- package/lib/tree-select/styles/light.d.ts +1 -0
- package/lib/upload/src/Upload.d.ts +6 -0
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadFileList.js +3 -2
- package/lib/upload/src/UploadTrigger.js +3 -2
- package/lib/upload/src/interface.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +105 -0
- package/lib/watermark/src/Watermark.js +7 -0
- package/package.json +15 -15
- package/volar.d.ts +4 -0
- package/web-types.json +773 -18
|
@@ -38,8 +38,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
38
38
|
handleDateInput: (value: string) => void;
|
|
39
39
|
handleTimePickerChange: (value: number | null) => void;
|
|
40
40
|
clearSelectedDateTime: () => void;
|
|
41
|
-
virtualListContainer: () => HTMLElement;
|
|
42
|
-
virtualListContent: () => HTMLElement;
|
|
41
|
+
virtualListContainer: () => HTMLElement | null;
|
|
42
|
+
virtualListContent: () => HTMLElement | null;
|
|
43
43
|
handleVirtualListScroll: (e: Event) => void;
|
|
44
44
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large">;
|
|
45
45
|
dateInputValue: import("vue").Ref<string>;
|
|
@@ -254,12 +254,12 @@ function useCalendar(props, type) {
|
|
|
254
254
|
// For month type
|
|
255
255
|
function virtualListContainer() {
|
|
256
256
|
const { value } = yearVlRef;
|
|
257
|
-
return value === null || value === void 0 ? void 0 : value.listElRef;
|
|
257
|
+
return (value === null || value === void 0 ? void 0 : value.listElRef) || null;
|
|
258
258
|
}
|
|
259
259
|
// For month type
|
|
260
260
|
function virtualListContent() {
|
|
261
261
|
const { value } = yearVlRef;
|
|
262
|
-
return value === null || value === void 0 ? void 0 : value.itemsElRef;
|
|
262
|
+
return (value === null || value === void 0 ? void 0 : value.itemsElRef) || null;
|
|
263
263
|
}
|
|
264
264
|
// For month type
|
|
265
265
|
function handleVirtualListScroll(e) {
|
|
@@ -60,8 +60,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
60
60
|
handleEndDateInputBlur: () => void;
|
|
61
61
|
handleStartYearVlScroll: () => void;
|
|
62
62
|
handleEndYearVlScroll: () => void;
|
|
63
|
-
virtualListContainer: (type: 'start' | 'end') => HTMLElement;
|
|
64
|
-
virtualListContent: (type: 'start' | 'end') => HTMLElement;
|
|
63
|
+
virtualListContainer: (type: 'start' | 'end') => HTMLElement | null;
|
|
64
|
+
virtualListContent: (type: 'start' | 'end') => HTMLElement | null;
|
|
65
65
|
onUpdateStartCalendarValue: (value: number) => void;
|
|
66
66
|
onUpdateEndCalendarValue: (value: number) => void;
|
|
67
67
|
startYearScrollbarRef: import("vue").Ref<ScrollbarInst | null>;
|
|
@@ -611,19 +611,19 @@ function useDualCalendar(props, type) {
|
|
|
611
611
|
function virtualListContainer(type) {
|
|
612
612
|
var _a, _b;
|
|
613
613
|
if (type === 'start') {
|
|
614
|
-
return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
614
|
+
return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef) || null;
|
|
615
615
|
}
|
|
616
616
|
else {
|
|
617
|
-
return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef;
|
|
617
|
+
return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef) || null;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function virtualListContent(type) {
|
|
621
621
|
var _a, _b;
|
|
622
622
|
if (type === 'start') {
|
|
623
|
-
return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
623
|
+
return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef) || null;
|
|
624
624
|
}
|
|
625
625
|
else {
|
|
626
|
-
return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef;
|
|
626
|
+
return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef) || null;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
const childComponentRefs = {
|
|
@@ -28,12 +28,7 @@ const matcherMap = {
|
|
|
28
28
|
};
|
|
29
29
|
function matchDate(sourceTime, patternTime, type) {
|
|
30
30
|
const matcher = matcherMap[type];
|
|
31
|
-
|
|
32
|
-
return sourceTime.some((time) => matcher(time, patternTime));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return matcher(sourceTime, patternTime);
|
|
36
|
-
}
|
|
31
|
+
return matcher(sourceTime, patternTime);
|
|
37
32
|
}
|
|
38
33
|
// date item's valueTs can be a tuple since two date may show in one panel, so
|
|
39
34
|
// any matched value would make it shown as selected
|
|
@@ -19,7 +19,7 @@ exports.default = {
|
|
|
19
19
|
calendarLeftPaddingDatetime: '4px 12px',
|
|
20
20
|
calendarLeftPaddingDaterange: '6px 12px 4px 12px',
|
|
21
21
|
calendarLeftPaddingDatetimerange: '4px 12px',
|
|
22
|
-
calendarLeftPaddingMonth: '0',
|
|
22
|
+
calendarLeftPaddingMonth: '0', // TODO: make it actually effective
|
|
23
23
|
calendarLeftPaddingYear: '0',
|
|
24
24
|
calendarLeftPaddingQuarter: '0',
|
|
25
25
|
calendarLeftPaddingMonthrange: '0',
|
|
@@ -24,7 +24,9 @@ export declare const descriptionsProps: {
|
|
|
24
24
|
readonly default: "medium";
|
|
25
25
|
};
|
|
26
26
|
readonly bordered: BooleanConstructor;
|
|
27
|
+
readonly labelClass: StringConstructor;
|
|
27
28
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
29
|
+
readonly contentClass: StringConstructor;
|
|
28
30
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
29
31
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
30
32
|
lineHeight: string;
|
|
@@ -150,7 +152,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
152
|
readonly default: "medium";
|
|
151
153
|
};
|
|
152
154
|
readonly bordered: BooleanConstructor;
|
|
155
|
+
readonly labelClass: StringConstructor;
|
|
153
156
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
157
|
+
readonly contentClass: StringConstructor;
|
|
154
158
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
155
159
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
156
160
|
lineHeight: string;
|
|
@@ -299,7 +303,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
299
303
|
readonly default: "medium";
|
|
300
304
|
};
|
|
301
305
|
readonly bordered: BooleanConstructor;
|
|
306
|
+
readonly labelClass: StringConstructor;
|
|
302
307
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
308
|
+
readonly contentClass: StringConstructor;
|
|
303
309
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
304
310
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
305
311
|
lineHeight: string;
|
|
@@ -27,7 +27,7 @@ exports.descriptionsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
|
|
|
27
27
|
}, size: {
|
|
28
28
|
type: String,
|
|
29
29
|
default: 'medium'
|
|
30
|
-
}, bordered: Boolean, labelStyle: [Object, String], contentStyle: [Object, String] });
|
|
30
|
+
}, bordered: Boolean, labelClass: String, labelStyle: [Object, String], contentClass: String, contentStyle: [Object, String] });
|
|
31
31
|
exports.default = (0, vue_1.defineComponent)({
|
|
32
32
|
name: 'Descriptions',
|
|
33
33
|
props: exports.descriptionsProps,
|
|
@@ -82,7 +82,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
82
82
|
const defaultSlots = this.$slots.default;
|
|
83
83
|
const children = defaultSlots ? (0, _utils_1.flatten)(defaultSlots()) : [];
|
|
84
84
|
const memorizedLength = children.length;
|
|
85
|
-
const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
85
|
+
const { contentClass, labelClass, compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
86
86
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
87
87
|
const filteredChildren = children.filter((child) => (0, utils_1.isDescriptionsItem)(child));
|
|
88
88
|
if (process.env.NODE_ENV !== 'production' && memorizedLength !== filteredChildren.length) {
|
|
@@ -108,7 +108,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
108
108
|
const contentStyle = props.contentStyle || props['content-style'] || this.contentStyle;
|
|
109
109
|
if (labelPlacement === 'left') {
|
|
110
110
|
if (bordered) {
|
|
111
|
-
state.row.push((0, vue_1.h)("th", { class:
|
|
111
|
+
state.row.push((0, vue_1.h)("th", { class: [
|
|
112
|
+
`${mergedClsPrefix}-descriptions-table-header`,
|
|
113
|
+
labelClass
|
|
114
|
+
], colspan: 1, style: labelStyle }, itemLabel), (0, vue_1.h)("td", { class: [
|
|
115
|
+
`${mergedClsPrefix}-descriptions-table-content`,
|
|
116
|
+
contentClass
|
|
117
|
+
], colspan: isLastIteration
|
|
112
118
|
? (compitableColumn - memorizedSpan) * 2 + 1
|
|
113
119
|
: itemSpan * 2 - 1, style: contentStyle }, itemChildren));
|
|
114
120
|
}
|
|
@@ -116,19 +122,28 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
116
122
|
state.row.push((0, vue_1.h)("td", { class: `${mergedClsPrefix}-descriptions-table-content`, colspan: isLastIteration
|
|
117
123
|
? (compitableColumn - memorizedSpan) * 2
|
|
118
124
|
: itemSpan * 2 },
|
|
119
|
-
(0, vue_1.h)("span", { class:
|
|
125
|
+
(0, vue_1.h)("span", { class: [
|
|
126
|
+
`${mergedClsPrefix}-descriptions-table-content__label`,
|
|
127
|
+
labelClass
|
|
128
|
+
], style: labelStyle }, [
|
|
120
129
|
...itemLabel,
|
|
121
130
|
separator && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-descriptions-separator` }, separator))
|
|
122
131
|
]),
|
|
123
|
-
(0, vue_1.h)("span", { class:
|
|
132
|
+
(0, vue_1.h)("span", { class: [
|
|
133
|
+
`${mergedClsPrefix}-descriptions-table-content__content`,
|
|
134
|
+
contentClass
|
|
135
|
+
], style: contentStyle }, itemChildren)));
|
|
124
136
|
}
|
|
125
137
|
}
|
|
126
138
|
else {
|
|
127
139
|
const colspan = isLastIteration
|
|
128
140
|
? (compitableColumn - memorizedSpan) * 2
|
|
129
141
|
: itemSpan * 2;
|
|
130
|
-
state.row.push((0, vue_1.h)("th", { class: `${mergedClsPrefix}-descriptions-table-header`, colspan: colspan, style: labelStyle }, itemLabel));
|
|
131
|
-
state.secondRow.push((0, vue_1.h)("td", { class:
|
|
142
|
+
state.row.push((0, vue_1.h)("th", { class: [`${mergedClsPrefix}-descriptions-table-header`, labelClass], colspan: colspan, style: labelStyle }, itemLabel));
|
|
143
|
+
state.secondRow.push((0, vue_1.h)("td", { class: [
|
|
144
|
+
`${mergedClsPrefix}-descriptions-table-content`,
|
|
145
|
+
contentClass
|
|
146
|
+
], colspan: colspan, style: contentStyle }, itemChildren));
|
|
132
147
|
}
|
|
133
148
|
if (state.span >= compitableColumn || isLastIteration) {
|
|
134
149
|
state.span = 0;
|
|
@@ -6,7 +6,9 @@ export declare const descriptionsItemProps: {
|
|
|
6
6
|
readonly type: NumberConstructor;
|
|
7
7
|
readonly default: 1;
|
|
8
8
|
};
|
|
9
|
+
readonly labelClass: StringConstructor;
|
|
9
10
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
11
|
+
readonly contentClass: StringConstructor;
|
|
10
12
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
11
13
|
};
|
|
12
14
|
export type DescriptionItemProps = ExtractPublicPropTypes<typeof descriptionsItemProps>;
|
|
@@ -16,7 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
18
|
readonly type: NumberConstructor;
|
|
17
19
|
readonly default: 1;
|
|
18
20
|
};
|
|
21
|
+
readonly labelClass: StringConstructor;
|
|
19
22
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
23
|
+
readonly contentClass: StringConstructor;
|
|
20
24
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
21
25
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
26
|
readonly label: StringConstructor;
|
|
@@ -24,7 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
readonly type: NumberConstructor;
|
|
25
29
|
readonly default: 1;
|
|
26
30
|
};
|
|
31
|
+
readonly labelClass: StringConstructor;
|
|
27
32
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
33
|
+
readonly contentClass: StringConstructor;
|
|
28
34
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
29
35
|
}>>, {
|
|
30
36
|
readonly span: number;
|
package/lib/dialog/src/Dialog.js
CHANGED
|
@@ -23,7 +23,7 @@ const iconRenderMap = {
|
|
|
23
23
|
exports.NDialog = (0, vue_1.defineComponent)({
|
|
24
24
|
name: 'Dialog',
|
|
25
25
|
alias: [
|
|
26
|
-
'NimbusConfirmCard',
|
|
26
|
+
'NimbusConfirmCard', // deprecated
|
|
27
27
|
'Confirm' // deprecated
|
|
28
28
|
],
|
|
29
29
|
props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), dialogProps_1.dialogProps),
|
|
@@ -125,7 +125,11 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
125
125
|
`${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
|
|
126
126
|
bordered && `${mergedClsPrefix}-dialog--bordered`
|
|
127
127
|
], style: cssVars, role: "dialog" },
|
|
128
|
-
closable
|
|
128
|
+
closable
|
|
129
|
+
? (0, _utils_1.resolveWrappedSlot)(this.$slots.close, (node) => {
|
|
130
|
+
return node ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__close` }, node)) : ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick }));
|
|
131
|
+
})
|
|
132
|
+
: null,
|
|
129
133
|
showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` }, icon)) : null,
|
|
130
134
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__title` },
|
|
131
135
|
showIcon && mergedIconPlacement === 'left' ? icon : null,
|
|
@@ -177,8 +177,8 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
177
177
|
iconPlacement: PropType<import("./interface").IconPlacement>;
|
|
178
178
|
}>>, {
|
|
179
179
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
180
|
-
autoFocus: boolean;
|
|
181
180
|
loading: boolean;
|
|
181
|
+
autoFocus: boolean;
|
|
182
182
|
bordered: boolean;
|
|
183
183
|
showIcon: boolean;
|
|
184
184
|
closable: boolean;
|
|
@@ -49,10 +49,10 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
49
49
|
onAfterLeave?: (() => void) | undefined;
|
|
50
50
|
title?: string | (() => import("vue").VNodeChild) | undefined;
|
|
51
51
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
52
|
+
loading?: boolean | undefined;
|
|
52
53
|
autoFocus?: boolean | undefined;
|
|
53
54
|
positiveText?: string | undefined;
|
|
54
55
|
negativeText?: string | undefined;
|
|
55
|
-
loading?: boolean | undefined;
|
|
56
56
|
bordered?: boolean | undefined;
|
|
57
57
|
showIcon?: boolean | undefined;
|
|
58
58
|
closable?: boolean | undefined;
|
|
@@ -71,6 +71,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
71
71
|
circle?: boolean | undefined;
|
|
72
72
|
disabled?: boolean | undefined;
|
|
73
73
|
onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
74
|
+
loading?: boolean | undefined;
|
|
74
75
|
focusable?: boolean | undefined;
|
|
75
76
|
strong?: boolean | undefined;
|
|
76
77
|
themeOverrides?: {
|
|
@@ -385,7 +386,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
385
386
|
name: "common";
|
|
386
387
|
} | undefined;
|
|
387
388
|
} | undefined;
|
|
388
|
-
loading?: boolean | undefined;
|
|
389
389
|
bordered?: boolean | undefined;
|
|
390
390
|
textColor?: string | undefined;
|
|
391
391
|
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -410,6 +410,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
410
410
|
circle?: boolean | undefined;
|
|
411
411
|
disabled?: boolean | undefined;
|
|
412
412
|
onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
413
|
+
loading?: boolean | undefined;
|
|
413
414
|
focusable?: boolean | undefined;
|
|
414
415
|
strong?: boolean | undefined;
|
|
415
416
|
themeOverrides?: {
|
|
@@ -724,7 +725,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
724
725
|
name: "common";
|
|
725
726
|
} | undefined;
|
|
726
727
|
} | undefined;
|
|
727
|
-
loading?: boolean | undefined;
|
|
728
728
|
bordered?: boolean | undefined;
|
|
729
729
|
textColor?: string | undefined;
|
|
730
730
|
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -32,4 +32,4 @@ declare const dialogProps: {
|
|
|
32
32
|
};
|
|
33
33
|
export type DialogProps = ExtractPublicPropTypes<typeof dialogProps>;
|
|
34
34
|
export { dialogProps };
|
|
35
|
-
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "
|
|
35
|
+
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "loading" | "positiveText" | "negativeText" | "bordered" | "showIcon" | "closable" | "onClose" | "iconPlacement" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
|
|
@@ -300,7 +300,10 @@ export declare const dropdownProps: {
|
|
|
300
300
|
type: PropType<"show" | "if">;
|
|
301
301
|
default: string;
|
|
302
302
|
};
|
|
303
|
+
readonly arrowClass: StringConstructor;
|
|
303
304
|
readonly arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
305
|
+
readonly arrowWrapperClass: StringConstructor;
|
|
306
|
+
readonly arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
304
307
|
readonly flip: {
|
|
305
308
|
type: BooleanConstructor;
|
|
306
309
|
default: boolean;
|
|
@@ -320,8 +323,11 @@ export declare const dropdownProps: {
|
|
|
320
323
|
default: undefined;
|
|
321
324
|
};
|
|
322
325
|
readonly scrollable: BooleanConstructor;
|
|
326
|
+
readonly contentClass: StringConstructor;
|
|
323
327
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
328
|
+
readonly headerClass: StringConstructor;
|
|
324
329
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
330
|
+
readonly footerClass: StringConstructor;
|
|
325
331
|
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
326
332
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
327
333
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -626,7 +632,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
626
632
|
type: PropType<"show" | "if">;
|
|
627
633
|
default: string;
|
|
628
634
|
};
|
|
635
|
+
readonly arrowClass: StringConstructor;
|
|
629
636
|
readonly arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
637
|
+
readonly arrowWrapperClass: StringConstructor;
|
|
638
|
+
readonly arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
630
639
|
readonly flip: {
|
|
631
640
|
type: BooleanConstructor;
|
|
632
641
|
default: boolean;
|
|
@@ -646,8 +655,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
646
655
|
default: undefined;
|
|
647
656
|
};
|
|
648
657
|
readonly scrollable: BooleanConstructor;
|
|
658
|
+
readonly contentClass: StringConstructor;
|
|
649
659
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
660
|
+
readonly headerClass: StringConstructor;
|
|
650
661
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
662
|
+
readonly footerClass: StringConstructor;
|
|
651
663
|
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
652
664
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
653
665
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -1144,7 +1156,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1144
1156
|
type: PropType<"show" | "if">;
|
|
1145
1157
|
default: string;
|
|
1146
1158
|
};
|
|
1159
|
+
readonly arrowClass: StringConstructor;
|
|
1147
1160
|
readonly arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
1161
|
+
readonly arrowWrapperClass: StringConstructor;
|
|
1162
|
+
readonly arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
1148
1163
|
readonly flip: {
|
|
1149
1164
|
type: BooleanConstructor;
|
|
1150
1165
|
default: boolean;
|
|
@@ -1164,8 +1179,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1164
1179
|
default: undefined;
|
|
1165
1180
|
};
|
|
1166
1181
|
readonly scrollable: BooleanConstructor;
|
|
1182
|
+
readonly contentClass: StringConstructor;
|
|
1167
1183
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
1184
|
+
readonly headerClass: StringConstructor;
|
|
1168
1185
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1186
|
+
readonly footerClass: StringConstructor;
|
|
1169
1187
|
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1170
1188
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
1171
1189
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -318,7 +318,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
318
318
|
class: [className, `${mergedClsPrefix}-dropdown`, this.themeClass],
|
|
319
319
|
clsPrefix: mergedClsPrefix,
|
|
320
320
|
tmNodes: this.tmNodes,
|
|
321
|
-
style: [style, this.cssVars],
|
|
321
|
+
style: [...style, this.cssVars],
|
|
322
322
|
showArrow: this.showArrow,
|
|
323
323
|
arrowStyle: this.arrowStyle,
|
|
324
324
|
scrollable: this.scrollable,
|
|
@@ -98,7 +98,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
98
98
|
this.showArrow
|
|
99
99
|
? (0, PopoverBody_1.renderArrow)({
|
|
100
100
|
clsPrefix,
|
|
101
|
-
arrowStyle: this.arrowStyle
|
|
101
|
+
arrowStyle: this.arrowStyle,
|
|
102
|
+
arrowClass: undefined,
|
|
103
|
+
arrowWrapperClass: undefined,
|
|
104
|
+
arrowWrapperStyle: undefined
|
|
102
105
|
})
|
|
103
106
|
: null));
|
|
104
107
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PropType, type Ref, type HTMLAttributes } from 'vue';
|
|
2
2
|
import { type FollowerPlacement } from 'vueuc';
|
|
3
|
+
import type { MenuGroupOption } from '../../menu/src/interface';
|
|
3
4
|
import type { TreeNode } from 'treemate';
|
|
4
5
|
export interface NDropdownOptionInjection {
|
|
5
6
|
enteringSubmenuRef: Ref<boolean>;
|
|
@@ -10,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
11
|
required: true;
|
|
11
12
|
};
|
|
12
13
|
tmNode: {
|
|
13
|
-
type: PropType<TreeNode<import("
|
|
14
|
+
type: PropType<TreeNode<import("../../menu/src/interface").MenuOption, MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>>;
|
|
14
15
|
required: true;
|
|
15
16
|
};
|
|
16
17
|
parentKey: {
|
|
@@ -33,14 +34,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
popoverBody: Ref<HTMLElement | null>;
|
|
34
35
|
animated: Ref<boolean>;
|
|
35
36
|
mergedShowSubmenu: import("vue").ComputedRef<boolean>;
|
|
36
|
-
rawNode: import("vue").ComputedRef<import("
|
|
37
|
+
rawNode: import("vue").ComputedRef<import("../../menu/src/interface").MenuOption | MenuGroupOption | import("../../menu/src/interface").MenuIgnoredOption>;
|
|
37
38
|
hasSubmenu: import("vue").ComputedRef<boolean>;
|
|
38
39
|
pending: import("vue").ComputedRef<boolean>;
|
|
39
40
|
childActive: import("vue").ComputedRef<boolean>;
|
|
40
41
|
active: import("vue").ComputedRef<boolean>;
|
|
41
42
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
42
43
|
renderOption: Ref<import("./interface").RenderOptionImpl | undefined>;
|
|
43
|
-
nodeProps: Ref<import("
|
|
44
|
+
nodeProps: Ref<import("../../menu/src/interface").MenuNodeProps | undefined>;
|
|
44
45
|
handleClick: () => void;
|
|
45
46
|
handleMouseMove: () => void;
|
|
46
47
|
handleMouseEnter: () => void;
|
|
@@ -53,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
required: true;
|
|
54
55
|
};
|
|
55
56
|
tmNode: {
|
|
56
|
-
type: PropType<TreeNode<import("
|
|
57
|
+
type: PropType<TreeNode<import("../../menu/src/interface").MenuOption, MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>>;
|
|
57
58
|
required: true;
|
|
58
59
|
};
|
|
59
60
|
parentKey: {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const vue_1 = require("vue");
|
|
7
7
|
const vueuc_1 = require("vueuc");
|
|
8
8
|
const vooks_1 = require("vooks");
|
|
9
|
+
const seemly_1 = require("seemly");
|
|
9
10
|
const icons_1 = require("../../_internal/icons");
|
|
10
11
|
const _utils_1 = require("../../_utils");
|
|
11
12
|
const icon_1 = require("../../icon");
|
|
@@ -14,7 +15,6 @@ const DropdownMenu_1 = __importDefault(require("./DropdownMenu"));
|
|
|
14
15
|
const context_1 = require("./context");
|
|
15
16
|
const interface_1 = require("../../popover/src/interface");
|
|
16
17
|
const utils_1 = require("./utils");
|
|
17
|
-
const seemly_1 = require("seemly");
|
|
18
18
|
exports.default = (0, vue_1.defineComponent)({
|
|
19
19
|
name: 'DropdownOption',
|
|
20
20
|
props: {
|
|
@@ -186,9 +186,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
186
186
|
const { animated, rawNode, mergedShowSubmenu, clsPrefix, siblingHasIcon, siblingHasSubmenu, renderLabel, renderIcon, renderOption, nodeProps, props, scrollable } = this;
|
|
187
187
|
let submenuVNode = null;
|
|
188
188
|
if (mergedShowSubmenu) {
|
|
189
|
-
const submenuNodeProps = (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.call(this, rawNode,
|
|
190
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
191
|
-
rawNode.children);
|
|
189
|
+
const submenuNodeProps = (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.call(this, rawNode, rawNode.children);
|
|
192
190
|
submenuVNode = ((0, vue_1.h)(DropdownMenu_1.default, Object.assign({}, submenuNodeProps, { clsPrefix: clsPrefix, scrollable: this.scrollable, tmNodes: this.tmNode.children, parentKey: this.tmNode.key })));
|
|
193
191
|
}
|
|
194
192
|
const builtinProps = {
|
|
@@ -18,6 +18,7 @@ export declare const dynamicInputProps: {
|
|
|
18
18
|
readonly default: "input";
|
|
19
19
|
};
|
|
20
20
|
readonly keyField: StringConstructor;
|
|
21
|
+
readonly itemClass: StringConstructor;
|
|
21
22
|
readonly itemStyle: PropType<string | CSSProperties>;
|
|
22
23
|
readonly keyPlaceholder: {
|
|
23
24
|
readonly type: StringConstructor;
|
|
@@ -868,6 +869,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
868
869
|
readonly default: "input";
|
|
869
870
|
};
|
|
870
871
|
readonly keyField: StringConstructor;
|
|
872
|
+
readonly itemClass: StringConstructor;
|
|
871
873
|
readonly itemStyle: PropType<string | CSSProperties>;
|
|
872
874
|
readonly keyPlaceholder: {
|
|
873
875
|
readonly type: StringConstructor;
|
|
@@ -2130,6 +2132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2130
2132
|
readonly default: "input";
|
|
2131
2133
|
};
|
|
2132
2134
|
readonly keyField: StringConstructor;
|
|
2135
|
+
readonly itemClass: StringConstructor;
|
|
2133
2136
|
readonly itemStyle: PropType<string | CSSProperties>;
|
|
2134
2137
|
readonly keyPlaceholder: {
|
|
2135
2138
|
readonly type: StringConstructor;
|
|
@@ -32,7 +32,7 @@ exports.dynamicInputProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
|
|
|
32
32
|
}, preset: {
|
|
33
33
|
type: String,
|
|
34
34
|
default: 'input'
|
|
35
|
-
}, keyField: String, itemStyle: [String, Object],
|
|
35
|
+
}, keyField: String, itemClass: String, itemStyle: [String, Object],
|
|
36
36
|
// for preset pair
|
|
37
37
|
keyPlaceholder: {
|
|
38
38
|
type: String,
|
|
@@ -239,7 +239,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
239
239
|
};
|
|
240
240
|
},
|
|
241
241
|
render() {
|
|
242
|
-
const { $slots, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move, onRender, disabled } = this;
|
|
242
|
+
const { $slots, itemClass, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move, onRender, disabled } = this;
|
|
243
243
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
244
244
|
return ((0, vue_1.h)("div", { class: [
|
|
245
245
|
`${mergedClsPrefix}-dynamic-input`,
|
|
@@ -252,7 +252,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
252
252
|
icon: () => (0, _utils_1.resolveSlot)($slots['create-button-icon'], () => [
|
|
253
253
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => (0, vue_1.h)(icons_1.AddIcon, null) })
|
|
254
254
|
])
|
|
255
|
-
})) : (mergedValue.map((_, index) => ((0, vue_1.h)("div", { key: keyField ? _[keyField] : ensureKey(_, index), "data-key": keyField ? _[keyField] : ensureKey(_, index), class: `${mergedClsPrefix}-dynamic-input-item`, style: itemStyle },
|
|
255
|
+
})) : (mergedValue.map((_, index) => ((0, vue_1.h)("div", { key: keyField ? _[keyField] : ensureKey(_, index), "data-key": keyField ? _[keyField] : ensureKey(_, index), class: [`${mergedClsPrefix}-dynamic-input-item`, itemClass], style: itemStyle },
|
|
256
256
|
(0, _utils_1.resolveSlotWithProps)($slots.default, {
|
|
257
257
|
value: mergedValue[index],
|
|
258
258
|
index
|
|
@@ -16,9 +16,11 @@ export declare const dynamicTagsProps: {
|
|
|
16
16
|
default: () => never[];
|
|
17
17
|
};
|
|
18
18
|
value: PropType<(string | DynamicTagsOption)[]>;
|
|
19
|
+
inputClass: StringConstructor;
|
|
19
20
|
inputStyle: PropType<string | CSSProperties>;
|
|
20
21
|
inputProps: PropType<InputProps>;
|
|
21
22
|
max: PropType<number>;
|
|
23
|
+
tagClass: StringConstructor;
|
|
22
24
|
tagStyle: PropType<string | CSSProperties>;
|
|
23
25
|
renderTag: PropType<((tag: string, index: number) => VNodeChild) | ((tag: DynamicTagsOption, index: number) => VNodeChild)>;
|
|
24
26
|
onCreate: {
|
|
@@ -1143,9 +1145,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1145
|
default: () => never[];
|
|
1144
1146
|
};
|
|
1145
1147
|
value: PropType<(string | DynamicTagsOption)[]>;
|
|
1148
|
+
inputClass: StringConstructor;
|
|
1146
1149
|
inputStyle: PropType<string | CSSProperties>;
|
|
1147
1150
|
inputProps: PropType<InputProps>;
|
|
1148
1151
|
max: PropType<number>;
|
|
1152
|
+
tagClass: StringConstructor;
|
|
1149
1153
|
tagStyle: PropType<string | CSSProperties>;
|
|
1150
1154
|
renderTag: PropType<((tag: string, index: number) => VNodeChild) | ((tag: DynamicTagsOption, index: number) => VNodeChild)>;
|
|
1151
1155
|
onCreate: {
|
|
@@ -2796,9 +2800,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2796
2800
|
default: () => never[];
|
|
2797
2801
|
};
|
|
2798
2802
|
value: PropType<(string | DynamicTagsOption)[]>;
|
|
2803
|
+
inputClass: StringConstructor;
|
|
2799
2804
|
inputStyle: PropType<string | CSSProperties>;
|
|
2800
2805
|
inputProps: PropType<InputProps>;
|
|
2801
2806
|
max: PropType<number>;
|
|
2807
|
+
tagClass: StringConstructor;
|
|
2802
2808
|
tagStyle: PropType<string | CSSProperties>;
|
|
2803
2809
|
renderTag: PropType<((tag: string, index: number) => VNodeChild) | ((tag: DynamicTagsOption, index: number) => VNodeChild)>;
|
|
2804
2810
|
onCreate: {
|
|
@@ -26,7 +26,7 @@ exports.dynamicTagsProps = Object.assign(Object.assign(Object.assign({}, _mixins
|
|
|
26
26
|
}, defaultValue: {
|
|
27
27
|
type: Array,
|
|
28
28
|
default: () => []
|
|
29
|
-
}, value: Array, inputStyle: [String, Object], inputProps: Object, max: Number, tagStyle: [String, Object], renderTag: Function, onCreate: {
|
|
29
|
+
}, value: Array, inputClass: String, inputStyle: [String, Object], inputProps: Object, max: Number, tagClass: String, tagStyle: [String, Object], renderTag: Function, onCreate: {
|
|
30
30
|
type: Function,
|
|
31
31
|
default: (label) => label
|
|
32
32
|
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array],
|
|
@@ -147,9 +147,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
147
147
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
148
148
|
return ((0, vue_1.h)(space_1.NSpace, { class: [`${mergedClsPrefix}-dynamic-tags`, this.themeClass], size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
|
|
149
149
|
default: () => {
|
|
150
|
-
const { mergedTheme, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
|
|
150
|
+
const { mergedTheme, tagClass, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputClass, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
|
|
151
151
|
return this.mergedValue
|
|
152
|
-
.map((tag, index) => renderTag ? (renderTag(tag, index)) : ((0, vue_1.h)(tag_1.NTag, { key: index, theme: mergedTheme.peers.Tag, themeOverrides: mergedTheme.peerOverrides.Tag, style: tagStyle, type: type, round: round, size: size, color: color, closable: closable, disabled: mergedDisabled, onClose: () => {
|
|
152
|
+
.map((tag, index) => renderTag ? (renderTag(tag, index)) : ((0, vue_1.h)(tag_1.NTag, { key: index, theme: mergedTheme.peers.Tag, themeOverrides: mergedTheme.peerOverrides.Tag, class: tagClass, style: tagStyle, type: type, round: round, size: size, color: color, closable: closable, disabled: mergedDisabled, onClose: () => {
|
|
153
153
|
handleCloseClick(index);
|
|
154
154
|
} }, {
|
|
155
155
|
default: () => (typeof tag === 'string' ? tag : tag.label)
|
|
@@ -157,7 +157,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
157
157
|
.concat(showInput ? ($slots.input ? ($slots.input({
|
|
158
158
|
submit: handleInputConfirm,
|
|
159
159
|
deactivate: handleInputBlur
|
|
160
|
-
})) : ((0, vue_1.h)(input_1.NInput, Object.assign({ placeholder: "", size: inputSize, style: inputStyle, autosize: true }, this.inputProps, { ref: "inputInstRef", value: inputValue, onUpdateValue: (v) => {
|
|
160
|
+
})) : ((0, vue_1.h)(input_1.NInput, Object.assign({ placeholder: "", size: inputSize, style: inputStyle, class: inputClass, autosize: true }, this.inputProps, { ref: "inputInstRef", value: inputValue, onUpdateValue: (v) => {
|
|
161
161
|
this.inputValue = v;
|
|
162
162
|
}, theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, onKeyup: handleInputKeyUp, onBlur: handleInputBlur, internalForceFocus: inputForceFocused })))) : $slots.trigger ? ($slots.trigger({
|
|
163
163
|
activate: handleAddClick,
|
package/lib/equation/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { KatexOptions } from 'katex';
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
4
|
export declare const equationProps: {
|
|
4
5
|
readonly value: StringConstructor;
|
|
5
6
|
readonly katex: PropType<typeof import("katex")>;
|
|
6
7
|
readonly katexOptions: PropType<KatexOptions>;
|
|
7
8
|
};
|
|
9
|
+
export type EquationProps = ExtractPublicPropTypes<typeof equationProps>;
|
|
8
10
|
export declare const Equation: import("vue").DefineComponent<{
|
|
9
11
|
readonly value: StringConstructor;
|
|
10
12
|
readonly katex: PropType<typeof import("katex")>;
|
|
@@ -282,7 +282,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
282
|
internalValidate: FormItemInternalValidate;
|
|
283
283
|
mergedSize: import("vue").ComputedRef<import("./interface").Size>;
|
|
284
284
|
validationErrored: import("vue").Ref<boolean>;
|
|
285
|
-
mergedLabelStyle: import("vue").ComputedRef<
|
|
285
|
+
mergedLabelStyle: import("vue").ComputedRef<import("vue").StyleValue[]>;
|
|
286
286
|
mergedLabelPlacement: import("vue").ComputedRef<LabelPlacement>;
|
|
287
287
|
mergedLabelAlign: import("vue").ComputedRef<LabelAlign | undefined>;
|
|
288
288
|
mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
|
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function formItemSize(props: FormItemSetupProps): {
|
|
|
6
6
|
};
|
|
7
7
|
export declare function formItemMisc(props: FormItemSetupProps): {
|
|
8
8
|
validationErrored: import("vue").Ref<boolean>;
|
|
9
|
-
mergedLabelStyle: ComputedRef<
|
|
9
|
+
mergedLabelStyle: ComputedRef<import("vue").StyleValue[]>;
|
|
10
10
|
mergedLabelPlacement: ComputedRef<import("./interface").LabelPlacement>;
|
|
11
11
|
mergedLabelAlign: ComputedRef<import("./interface").LabelAlign | undefined>;
|
|
12
12
|
mergedShowRequireMark: ComputedRef<boolean | undefined>;
|