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
|
@@ -37,6 +37,7 @@ interface NotificationRef {
|
|
|
37
37
|
hide: () => void;
|
|
38
38
|
}
|
|
39
39
|
export declare const notificationProviderProps: {
|
|
40
|
+
containerClass: StringConstructor;
|
|
40
41
|
containerStyle: PropType<string | CSSProperties>;
|
|
41
42
|
to: PropType<string | HTMLElement>;
|
|
42
43
|
scrollable: {
|
|
@@ -160,6 +161,7 @@ export declare const notificationProviderProps: {
|
|
|
160
161
|
};
|
|
161
162
|
export type NotificationProviderProps = ExtractPublicPropTypes<typeof notificationProviderProps>;
|
|
162
163
|
declare const _default: import("vue").DefineComponent<{
|
|
164
|
+
containerClass: StringConstructor;
|
|
163
165
|
containerStyle: PropType<string | CSSProperties>;
|
|
164
166
|
to: PropType<string | HTMLElement>;
|
|
165
167
|
scrollable: {
|
|
@@ -318,6 +320,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
318
320
|
open: (options: NotificationOptions) => NotificationReactive;
|
|
319
321
|
destroyAll: () => void;
|
|
320
322
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
323
|
+
containerClass: StringConstructor;
|
|
321
324
|
containerStyle: PropType<string | CSSProperties>;
|
|
322
325
|
to: PropType<string | HTMLElement>;
|
|
323
326
|
scrollable: {
|
|
@@ -15,7 +15,7 @@ const NotificationEnvironment_1 = require("./NotificationEnvironment");
|
|
|
15
15
|
const context_1 = require("./context");
|
|
16
16
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
17
17
|
exports.notificationApiInjectionKey = (0, _utils_1.createInjectionKey)('n-notification-api');
|
|
18
|
-
exports.notificationProviderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { containerStyle: [String, Object], to: [String, Object], scrollable: {
|
|
18
|
+
exports.notificationProviderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { containerClass: String, containerStyle: [String, Object], to: [String, Object], scrollable: {
|
|
19
19
|
type: Boolean,
|
|
20
20
|
default: true
|
|
21
21
|
}, max: Number, placement: {
|
|
@@ -109,7 +109,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
109
109
|
return ((0, vue_1.h)(vue_1.Fragment, null, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 :
|
|
110
110
|
_b.call(_a),
|
|
111
111
|
this.notificationList.length ? ((0, vue_1.h)(vue_1.Teleport, { to: (_c = this.to) !== null && _c !== void 0 ? _c : 'body' },
|
|
112
|
-
(0, vue_1.h)(NotificationContainer_1.NotificationContainer, { style: this.containerStyle, scrollable: this.scrollable && placement !== 'top' && placement !== 'bottom', placement: placement }, {
|
|
112
|
+
(0, vue_1.h)(NotificationContainer_1.NotificationContainer, { class: this.containerClass, style: this.containerStyle, scrollable: this.scrollable && placement !== 'top' && placement !== 'bottom', placement: placement }, {
|
|
113
113
|
default: () => {
|
|
114
114
|
return this.notificationList.map((notification) => {
|
|
115
115
|
return ((0, vue_1.h)(NotificationEnvironment_1.NotificationEnvironment, Object.assign({ ref: ((inst) => {
|
|
@@ -48,7 +48,10 @@ export declare const popconfirmProps: {
|
|
|
48
48
|
type: PropType<"show" | "if">;
|
|
49
49
|
default: string;
|
|
50
50
|
};
|
|
51
|
+
arrowClass: StringConstructor;
|
|
51
52
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
53
|
+
arrowWrapperClass: StringConstructor;
|
|
54
|
+
arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
52
55
|
flip: {
|
|
53
56
|
type: BooleanConstructor;
|
|
54
57
|
default: boolean;
|
|
@@ -72,8 +75,11 @@ export declare const popconfirmProps: {
|
|
|
72
75
|
default: undefined;
|
|
73
76
|
};
|
|
74
77
|
scrollable: BooleanConstructor;
|
|
78
|
+
contentClass: StringConstructor;
|
|
75
79
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
80
|
+
headerClass: StringConstructor;
|
|
76
81
|
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
82
|
+
footerClass: StringConstructor;
|
|
77
83
|
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
78
84
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
79
85
|
'onUpdate:show': PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -818,7 +824,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
818
824
|
type: PropType<"show" | "if">;
|
|
819
825
|
default: string;
|
|
820
826
|
};
|
|
827
|
+
arrowClass: StringConstructor;
|
|
821
828
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
829
|
+
arrowWrapperClass: StringConstructor;
|
|
830
|
+
arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
822
831
|
flip: {
|
|
823
832
|
type: BooleanConstructor;
|
|
824
833
|
default: boolean;
|
|
@@ -842,8 +851,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
842
851
|
default: undefined;
|
|
843
852
|
};
|
|
844
853
|
scrollable: BooleanConstructor;
|
|
854
|
+
contentClass: StringConstructor;
|
|
845
855
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
856
|
+
headerClass: StringConstructor;
|
|
846
857
|
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
858
|
+
footerClass: StringConstructor;
|
|
847
859
|
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
848
860
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
849
861
|
'onUpdate:show': PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -1939,7 +1951,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1939
1951
|
type: PropType<"show" | "if">;
|
|
1940
1952
|
default: string;
|
|
1941
1953
|
};
|
|
1954
|
+
arrowClass: StringConstructor;
|
|
1942
1955
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
1956
|
+
arrowWrapperClass: StringConstructor;
|
|
1957
|
+
arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
1943
1958
|
flip: {
|
|
1944
1959
|
type: BooleanConstructor;
|
|
1945
1960
|
default: boolean;
|
|
@@ -1963,8 +1978,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1963
1978
|
default: undefined;
|
|
1964
1979
|
};
|
|
1965
1980
|
scrollable: BooleanConstructor;
|
|
1981
|
+
contentClass: StringConstructor;
|
|
1966
1982
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
1983
|
+
headerClass: StringConstructor;
|
|
1967
1984
|
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1985
|
+
footerClass: StringConstructor;
|
|
1968
1986
|
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1969
1987
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
1970
1988
|
'onUpdate:show': PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -63,7 +63,10 @@ export declare const popoverBaseProps: {
|
|
|
63
63
|
type: PropType<"show" | "if">;
|
|
64
64
|
default: string;
|
|
65
65
|
};
|
|
66
|
+
arrowClass: StringConstructor;
|
|
66
67
|
arrowStyle: PropType<string | CSSProperties>;
|
|
68
|
+
arrowWrapperClass: StringConstructor;
|
|
69
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
67
70
|
flip: {
|
|
68
71
|
type: BooleanConstructor;
|
|
69
72
|
default: boolean;
|
|
@@ -87,8 +90,11 @@ export declare const popoverBaseProps: {
|
|
|
87
90
|
default: undefined;
|
|
88
91
|
};
|
|
89
92
|
scrollable: BooleanConstructor;
|
|
93
|
+
contentClass: StringConstructor;
|
|
90
94
|
contentStyle: PropType<string | CSSProperties>;
|
|
95
|
+
headerClass: StringConstructor;
|
|
91
96
|
headerStyle: PropType<string | CSSProperties>;
|
|
97
|
+
footerClass: StringConstructor;
|
|
92
98
|
footerStyle: PropType<string | CSSProperties>;
|
|
93
99
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
94
100
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -151,7 +157,10 @@ export declare const popoverProps: {
|
|
|
151
157
|
type: PropType<"show" | "if">;
|
|
152
158
|
default: string;
|
|
153
159
|
};
|
|
160
|
+
arrowClass: StringConstructor;
|
|
154
161
|
arrowStyle: PropType<string | CSSProperties>;
|
|
162
|
+
arrowWrapperClass: StringConstructor;
|
|
163
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
155
164
|
flip: {
|
|
156
165
|
type: BooleanConstructor;
|
|
157
166
|
default: boolean;
|
|
@@ -175,8 +184,11 @@ export declare const popoverProps: {
|
|
|
175
184
|
default: undefined;
|
|
176
185
|
};
|
|
177
186
|
scrollable: BooleanConstructor;
|
|
187
|
+
contentClass: StringConstructor;
|
|
178
188
|
contentStyle: PropType<string | CSSProperties>;
|
|
189
|
+
headerClass: StringConstructor;
|
|
179
190
|
headerStyle: PropType<string | CSSProperties>;
|
|
191
|
+
footerClass: StringConstructor;
|
|
180
192
|
footerStyle: PropType<string | CSSProperties>;
|
|
181
193
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
182
194
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -283,7 +295,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
295
|
type: PropType<"show" | "if">;
|
|
284
296
|
default: string;
|
|
285
297
|
};
|
|
298
|
+
arrowClass: StringConstructor;
|
|
286
299
|
arrowStyle: PropType<string | CSSProperties>;
|
|
300
|
+
arrowWrapperClass: StringConstructor;
|
|
301
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
287
302
|
flip: {
|
|
288
303
|
type: BooleanConstructor;
|
|
289
304
|
default: boolean;
|
|
@@ -307,8 +322,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
307
322
|
default: undefined;
|
|
308
323
|
};
|
|
309
324
|
scrollable: BooleanConstructor;
|
|
325
|
+
contentClass: StringConstructor;
|
|
310
326
|
contentStyle: PropType<string | CSSProperties>;
|
|
327
|
+
headerClass: StringConstructor;
|
|
311
328
|
headerStyle: PropType<string | CSSProperties>;
|
|
329
|
+
footerClass: StringConstructor;
|
|
312
330
|
footerStyle: PropType<string | CSSProperties>;
|
|
313
331
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
314
332
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -428,7 +446,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
428
446
|
type: PropType<"show" | "if">;
|
|
429
447
|
default: string;
|
|
430
448
|
};
|
|
449
|
+
arrowClass: StringConstructor;
|
|
431
450
|
arrowStyle: PropType<string | CSSProperties>;
|
|
451
|
+
arrowWrapperClass: StringConstructor;
|
|
452
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
432
453
|
flip: {
|
|
433
454
|
type: BooleanConstructor;
|
|
434
455
|
default: boolean;
|
|
@@ -452,8 +473,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
452
473
|
default: undefined;
|
|
453
474
|
};
|
|
454
475
|
scrollable: BooleanConstructor;
|
|
476
|
+
contentClass: StringConstructor;
|
|
455
477
|
contentStyle: PropType<string | CSSProperties>;
|
|
478
|
+
headerClass: StringConstructor;
|
|
456
479
|
headerStyle: PropType<string | CSSProperties>;
|
|
480
|
+
footerClass: StringConstructor;
|
|
457
481
|
footerStyle: PropType<string | CSSProperties>;
|
|
458
482
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
459
483
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -94,7 +94,10 @@ exports.popoverBaseProps = {
|
|
|
94
94
|
type: String,
|
|
95
95
|
default: 'if'
|
|
96
96
|
},
|
|
97
|
+
arrowClass: String,
|
|
97
98
|
arrowStyle: [String, Object],
|
|
99
|
+
arrowWrapperClass: String,
|
|
100
|
+
arrowWrapperStyle: [String, Object],
|
|
98
101
|
flip: {
|
|
99
102
|
type: Boolean,
|
|
100
103
|
default: true
|
|
@@ -115,8 +118,11 @@ exports.popoverBaseProps = {
|
|
|
115
118
|
zIndex: Number,
|
|
116
119
|
to: _utils_1.useAdjustedTo.propTo,
|
|
117
120
|
scrollable: Boolean,
|
|
121
|
+
contentClass: String,
|
|
118
122
|
contentStyle: [Object, String],
|
|
123
|
+
headerClass: String,
|
|
119
124
|
headerStyle: [Object, String],
|
|
125
|
+
footerClass: String,
|
|
120
126
|
footerStyle: [Object, String],
|
|
121
127
|
// events
|
|
122
128
|
onClickoutside: Function,
|
|
@@ -340,6 +346,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
340
346
|
}
|
|
341
347
|
function getTriggerElement() {
|
|
342
348
|
var _a;
|
|
349
|
+
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style
|
|
343
350
|
return (_a = binderInstRef.value) === null || _a === void 0 ? void 0 : _a.targetRef;
|
|
344
351
|
}
|
|
345
352
|
function setBodyInstance(value) {
|
|
@@ -13,7 +13,10 @@ export declare const popoverBodyProps: {
|
|
|
13
13
|
duration: NumberConstructor;
|
|
14
14
|
raw: BooleanConstructor;
|
|
15
15
|
arrowPointToCenter: BooleanConstructor;
|
|
16
|
+
arrowClass: StringConstructor;
|
|
16
17
|
arrowStyle: PropType<string | CSSProperties>;
|
|
18
|
+
arrowWrapperClass: StringConstructor;
|
|
19
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
17
20
|
displayDirective: PropType<"show" | "if">;
|
|
18
21
|
x: NumberConstructor;
|
|
19
22
|
y: NumberConstructor;
|
|
@@ -23,8 +26,11 @@ export declare const popoverBodyProps: {
|
|
|
23
26
|
width: PropType<number | "trigger">;
|
|
24
27
|
keepAliveOnHover: BooleanConstructor;
|
|
25
28
|
scrollable: BooleanConstructor;
|
|
29
|
+
contentClass: StringConstructor;
|
|
26
30
|
contentStyle: PropType<string | CSSProperties>;
|
|
31
|
+
headerClass: StringConstructor;
|
|
27
32
|
headerStyle: PropType<string | CSSProperties>;
|
|
33
|
+
footerClass: StringConstructor;
|
|
28
34
|
footerStyle: PropType<string | CSSProperties>;
|
|
29
35
|
internalDeactivateImmediately: BooleanConstructor;
|
|
30
36
|
animated: BooleanConstructor;
|
|
@@ -77,10 +83,13 @@ export declare const popoverBodyProps: {
|
|
|
77
83
|
}, any>>>;
|
|
78
84
|
};
|
|
79
85
|
interface RenderArrowProps {
|
|
86
|
+
arrowClass: string | undefined;
|
|
80
87
|
arrowStyle: string | CSSProperties | undefined;
|
|
88
|
+
arrowWrapperClass: string | undefined;
|
|
89
|
+
arrowWrapperStyle: string | CSSProperties | undefined;
|
|
81
90
|
clsPrefix: string;
|
|
82
91
|
}
|
|
83
|
-
export declare const renderArrow: ({ arrowStyle, clsPrefix }: RenderArrowProps) => VNode | null;
|
|
92
|
+
export declare const renderArrow: ({ arrowClass, arrowStyle, arrowWrapperClass, arrowWrapperStyle, clsPrefix }: RenderArrowProps) => VNode | null;
|
|
84
93
|
declare const _default: import("vue").DefineComponent<{
|
|
85
94
|
to: {
|
|
86
95
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -93,7 +102,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
102
|
duration: NumberConstructor;
|
|
94
103
|
raw: BooleanConstructor;
|
|
95
104
|
arrowPointToCenter: BooleanConstructor;
|
|
105
|
+
arrowClass: StringConstructor;
|
|
96
106
|
arrowStyle: PropType<string | CSSProperties>;
|
|
107
|
+
arrowWrapperClass: StringConstructor;
|
|
108
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
97
109
|
displayDirective: PropType<"show" | "if">;
|
|
98
110
|
x: NumberConstructor;
|
|
99
111
|
y: NumberConstructor;
|
|
@@ -103,8 +115,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
115
|
width: PropType<number | "trigger">;
|
|
104
116
|
keepAliveOnHover: BooleanConstructor;
|
|
105
117
|
scrollable: BooleanConstructor;
|
|
118
|
+
contentClass: StringConstructor;
|
|
106
119
|
contentStyle: PropType<string | CSSProperties>;
|
|
120
|
+
headerClass: StringConstructor;
|
|
107
121
|
headerStyle: PropType<string | CSSProperties>;
|
|
122
|
+
footerClass: StringConstructor;
|
|
108
123
|
footerStyle: PropType<string | CSSProperties>;
|
|
109
124
|
internalDeactivateImmediately: BooleanConstructor;
|
|
110
125
|
animated: BooleanConstructor;
|
|
@@ -178,7 +193,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
193
|
duration: NumberConstructor;
|
|
179
194
|
raw: BooleanConstructor;
|
|
180
195
|
arrowPointToCenter: BooleanConstructor;
|
|
196
|
+
arrowClass: StringConstructor;
|
|
181
197
|
arrowStyle: PropType<string | CSSProperties>;
|
|
198
|
+
arrowWrapperClass: StringConstructor;
|
|
199
|
+
arrowWrapperStyle: PropType<string | CSSProperties>;
|
|
182
200
|
displayDirective: PropType<"show" | "if">;
|
|
183
201
|
x: NumberConstructor;
|
|
184
202
|
y: NumberConstructor;
|
|
@@ -188,8 +206,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
188
206
|
width: PropType<number | "trigger">;
|
|
189
207
|
keepAliveOnHover: BooleanConstructor;
|
|
190
208
|
scrollable: BooleanConstructor;
|
|
209
|
+
contentClass: StringConstructor;
|
|
191
210
|
contentStyle: PropType<string | CSSProperties>;
|
|
211
|
+
headerClass: StringConstructor;
|
|
192
212
|
headerStyle: PropType<string | CSSProperties>;
|
|
213
|
+
footerClass: StringConstructor;
|
|
193
214
|
footerStyle: PropType<string | CSSProperties>;
|
|
194
215
|
internalDeactivateImmediately: BooleanConstructor;
|
|
195
216
|
animated: BooleanConstructor;
|
|
@@ -16,14 +16,14 @@ const _utils_1 = require("../../_utils");
|
|
|
16
16
|
const styles_1 = require("../styles");
|
|
17
17
|
const interface_3 = require("./interface");
|
|
18
18
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
19
|
-
exports.popoverBodyProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, show: Boolean, trigger: String, showArrow: Boolean, delay: Number, duration: Number, raw: Boolean, arrowPointToCenter: Boolean, arrowStyle: [String, Object], displayDirective: String, x: Number, y: Number, flip: Boolean, overlap: Boolean, placement: String, width: [Number, String], keepAliveOnHover: Boolean, scrollable: Boolean, contentStyle: [Object, String], headerStyle: [Object, String], footerStyle: [Object, String],
|
|
19
|
+
exports.popoverBodyProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, show: Boolean, trigger: String, showArrow: Boolean, delay: Number, duration: Number, raw: Boolean, arrowPointToCenter: Boolean, arrowClass: String, arrowStyle: [String, Object], arrowWrapperClass: String, arrowWrapperStyle: [String, Object], displayDirective: String, x: Number, y: Number, flip: Boolean, overlap: Boolean, placement: String, width: [Number, String], keepAliveOnHover: Boolean, scrollable: Boolean, contentClass: String, contentStyle: [Object, String], headerClass: String, headerStyle: [Object, String], footerClass: String, footerStyle: [Object, String],
|
|
20
20
|
// private
|
|
21
21
|
internalDeactivateImmediately: Boolean, animated: Boolean, onClickoutside: Function, internalTrapFocus: Boolean, internalOnAfterLeave: Function,
|
|
22
22
|
// deprecated
|
|
23
23
|
minWidth: Number, maxWidth: Number });
|
|
24
|
-
const renderArrow = ({ arrowStyle, clsPrefix }) => {
|
|
25
|
-
return ((0, vue_1.h)("div", { key: "__popover-arrow__", class: `${clsPrefix}-popover-arrow-wrapper
|
|
26
|
-
(0, vue_1.h)("div", { class: `${clsPrefix}-popover-arrow`, style: arrowStyle })));
|
|
24
|
+
const renderArrow = ({ arrowClass, arrowStyle, arrowWrapperClass, arrowWrapperStyle, clsPrefix }) => {
|
|
25
|
+
return ((0, vue_1.h)("div", { key: "__popover-arrow__", style: arrowWrapperStyle, class: [`${clsPrefix}-popover-arrow-wrapper`, arrowWrapperClass] },
|
|
26
|
+
(0, vue_1.h)("div", { class: [`${clsPrefix}-popover-arrow`, arrowClass], style: arrowStyle })));
|
|
27
27
|
};
|
|
28
28
|
exports.renderArrow = renderArrow;
|
|
29
29
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -34,6 +34,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
34
34
|
const { namespaceRef, mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
35
35
|
const themeRef = (0, _mixins_1.useTheme)('Popover', '-popover', index_cssr_1.default, styles_1.popoverLight, props, mergedClsPrefixRef);
|
|
36
36
|
const followerRef = (0, vue_1.ref)(null);
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style
|
|
37
38
|
const NPopover = (0, vue_1.inject)('NPopover');
|
|
38
39
|
const bodyRef = (0, vue_1.ref)(null);
|
|
39
40
|
const followerEnabledRef = (0, vue_1.ref)(props.show);
|
|
@@ -183,25 +184,40 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
183
184
|
const { internalTrapFocus } = props;
|
|
184
185
|
const hasHeaderOrFooter = !(0, _utils_1.isSlotEmpty)(slots.header) || !(0, _utils_1.isSlotEmpty)(slots.footer);
|
|
185
186
|
const renderContentInnerNode = () => {
|
|
186
|
-
var _a;
|
|
187
|
+
var _a, _b;
|
|
187
188
|
const body = hasHeaderOrFooter ? ((0, vue_1.h)(vue_1.Fragment, null,
|
|
188
189
|
(0, _utils_1.resolveWrappedSlot)(slots.header, (children) => {
|
|
189
|
-
return children ? ((0, vue_1.h)("div", { class:
|
|
190
|
+
return children ? ((0, vue_1.h)("div", { class: [
|
|
191
|
+
`${mergedClsPrefix}-popover__header`,
|
|
192
|
+
props.headerClass
|
|
193
|
+
], style: props.headerStyle }, children)) : null;
|
|
190
194
|
}),
|
|
191
195
|
(0, _utils_1.resolveWrappedSlot)(slots.default, (children) => {
|
|
192
|
-
return children ? ((0, vue_1.h)("div", { class:
|
|
196
|
+
return children ? ((0, vue_1.h)("div", { class: [
|
|
197
|
+
`${mergedClsPrefix}-popover__content`,
|
|
198
|
+
props.contentClass
|
|
199
|
+
], style: props.contentStyle }, slots)) : null;
|
|
193
200
|
}),
|
|
194
201
|
(0, _utils_1.resolveWrappedSlot)(slots.footer, (children) => {
|
|
195
|
-
return children ? ((0, vue_1.h)("div", { class:
|
|
196
|
-
|
|
202
|
+
return children ? ((0, vue_1.h)("div", { class: [
|
|
203
|
+
`${mergedClsPrefix}-popover__footer`,
|
|
204
|
+
props.footerClass
|
|
205
|
+
], style: props.footerStyle }, children)) : null;
|
|
206
|
+
}))) : props.scrollable ? ((_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)) : ((0, vue_1.h)("div", { class: [
|
|
207
|
+
`${mergedClsPrefix}-popover__content`,
|
|
208
|
+
props.contentClass
|
|
209
|
+
], style: props.contentStyle }, slots));
|
|
197
210
|
const maybeScrollableBody = props.scrollable ? ((0, vue_1.h)(scrollbar_1.NxScrollbar, { contentClass: hasHeaderOrFooter
|
|
198
211
|
? undefined
|
|
199
|
-
: `${mergedClsPrefix}-popover__content`, contentStyle: hasHeaderOrFooter ? undefined : props.contentStyle }, {
|
|
212
|
+
: `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ''}`, contentStyle: hasHeaderOrFooter ? undefined : props.contentStyle }, {
|
|
200
213
|
default: () => body
|
|
201
214
|
})) : (body);
|
|
202
215
|
const arrow = props.showArrow
|
|
203
216
|
? (0, exports.renderArrow)({
|
|
217
|
+
arrowClass: props.arrowClass,
|
|
204
218
|
arrowStyle: props.arrowStyle,
|
|
219
|
+
arrowWrapperClass: props.arrowWrapperClass,
|
|
220
|
+
arrowWrapperStyle: props.arrowWrapperStyle,
|
|
205
221
|
clsPrefix: mergedClsPrefix
|
|
206
222
|
})
|
|
207
223
|
: null;
|
|
@@ -9,4 +9,4 @@ export type InternalPopoverInst = PopoverInst & {
|
|
|
9
9
|
};
|
|
10
10
|
export type PopoverBodyInjection = Ref<HTMLElement | null> | null;
|
|
11
11
|
export declare const popoverBodyInjectionKey: import("vue").InjectionKey<PopoverBodyInjection>;
|
|
12
|
-
export type InternalRenderBody = (className: any, ref: Ref<HTMLElement | null>, style:
|
|
12
|
+
export type InternalRenderBody = (className: any, ref: Ref<HTMLElement | null>, style: CSSProperties[], onMouseenter: (e: MouseEvent) => void, onMouseleave: (e: MouseEvent) => void) => VNode;
|
|
@@ -65,8 +65,12 @@ export declare const popselectProps: {
|
|
|
65
65
|
};
|
|
66
66
|
raw: BooleanConstructor;
|
|
67
67
|
overlap: BooleanConstructor;
|
|
68
|
+
contentClass: StringConstructor;
|
|
68
69
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
70
|
+
arrowClass: StringConstructor;
|
|
69
71
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
72
|
+
arrowWrapperClass: StringConstructor;
|
|
73
|
+
arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
70
74
|
delay: {
|
|
71
75
|
type: NumberConstructor;
|
|
72
76
|
default: number;
|
|
@@ -80,7 +84,9 @@ export declare const popselectProps: {
|
|
|
80
84
|
type: BooleanConstructor;
|
|
81
85
|
default: boolean;
|
|
82
86
|
};
|
|
87
|
+
headerClass: StringConstructor;
|
|
83
88
|
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
89
|
+
footerClass: StringConstructor;
|
|
84
90
|
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
85
91
|
internalDeactivateImmediately: BooleanConstructor;
|
|
86
92
|
animated: {
|
|
@@ -384,8 +390,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
384
390
|
};
|
|
385
391
|
raw: BooleanConstructor;
|
|
386
392
|
overlap: BooleanConstructor;
|
|
393
|
+
contentClass: StringConstructor;
|
|
387
394
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
395
|
+
arrowClass: StringConstructor;
|
|
388
396
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
397
|
+
arrowWrapperClass: StringConstructor;
|
|
398
|
+
arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
389
399
|
delay: {
|
|
390
400
|
type: NumberConstructor;
|
|
391
401
|
default: number;
|
|
@@ -399,7 +409,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
399
409
|
type: BooleanConstructor;
|
|
400
410
|
default: boolean;
|
|
401
411
|
};
|
|
412
|
+
headerClass: StringConstructor;
|
|
402
413
|
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
414
|
+
footerClass: StringConstructor;
|
|
403
415
|
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
404
416
|
internalDeactivateImmediately: BooleanConstructor;
|
|
405
417
|
animated: {
|
|
@@ -914,8 +926,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
914
926
|
};
|
|
915
927
|
raw: BooleanConstructor;
|
|
916
928
|
overlap: BooleanConstructor;
|
|
929
|
+
contentClass: StringConstructor;
|
|
917
930
|
contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
931
|
+
arrowClass: StringConstructor;
|
|
918
932
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
933
|
+
arrowWrapperClass: StringConstructor;
|
|
934
|
+
arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
919
935
|
delay: {
|
|
920
936
|
type: NumberConstructor;
|
|
921
937
|
default: number;
|
|
@@ -929,7 +945,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
929
945
|
type: BooleanConstructor;
|
|
930
946
|
default: boolean;
|
|
931
947
|
};
|
|
948
|
+
headerClass: StringConstructor;
|
|
932
949
|
headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
950
|
+
footerClass: StringConstructor;
|
|
933
951
|
footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
934
952
|
internalDeactivateImmediately: BooleanConstructor;
|
|
935
953
|
animated: {
|
|
@@ -76,13 +76,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
76
76
|
ref: 'popoverInstRef',
|
|
77
77
|
internalRenderBody: (className, ref, style, onMouseenter, onMouseleave) => {
|
|
78
78
|
const { $attrs } = this;
|
|
79
|
-
return ((0, vue_1.h)(PopselectPanel_1.default, Object.assign({}, $attrs, { class: [$attrs.class, className], style: [$attrs.style, style] }, (0, _utils_1.keep)(this.$props, PopselectPanel_1.panelPropKeys), { ref: (0, _utils_1.createRefSetter)(ref), onMouseenter: (0, _utils_1.mergeEventHandlers)([
|
|
79
|
+
return ((0, vue_1.h)(PopselectPanel_1.default, Object.assign({}, $attrs, { class: [$attrs.class, className], style: [$attrs.style, ...style] }, (0, _utils_1.keep)(this.$props, PopselectPanel_1.panelPropKeys), { ref: (0, _utils_1.createRefSetter)(ref), onMouseenter: (0, _utils_1.mergeEventHandlers)([
|
|
80
80
|
onMouseenter,
|
|
81
81
|
$attrs.onMouseenter
|
|
82
82
|
]), onMouseleave: (0, _utils_1.mergeEventHandlers)([
|
|
83
83
|
onMouseleave,
|
|
84
84
|
$attrs.onMouseleave
|
|
85
85
|
]) }), {
|
|
86
|
+
header: () => { var _a, _b; return (_b = (_a = this.$slots).header) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
86
87
|
action: () => { var _a, _b; return (_b = (_a = this.$slots).action) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
87
88
|
empty: () => { var _a, _b; return (_b = (_a = this.$slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a); }
|
|
88
89
|
}));
|
|
@@ -162,6 +162,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
162
162
|
var _a;
|
|
163
163
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
164
164
|
return ((0, vue_1.h)(_internal_1.NInternalSelectMenu, { clsPrefix: this.mergedClsPrefix, focusable: true, nodeProps: this.nodeProps, class: [`${this.mergedClsPrefix}-popselect-menu`, this.themeClass], style: this.cssVars, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu, multiple: this.multiple, treeMate: this.treeMate, size: this.size, value: this.value, virtualScroll: this.virtualScroll, scrollable: this.scrollable, renderLabel: this.renderLabel, onToggle: this.handleToggle, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseenter, onMousedown: this.handleMenuMousedown, showCheckmark: this.showCheckmark }, {
|
|
165
|
+
header: () => { var _a, _b; return ((_b = (_a = this.$slots).header) === null || _b === void 0 ? void 0 : _b.call(_a)) || []; },
|
|
165
166
|
action: () => { var _a, _b; return ((_b = (_a = this.$slots).action) === null || _b === void 0 ? void 0 : _b.call(_a)) || []; },
|
|
166
167
|
empty: () => { var _a, _b; return ((_b = (_a = this.$slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a)) || []; }
|
|
167
168
|
}));
|
|
@@ -381,8 +381,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
}, any>>>;
|
|
382
382
|
}>>, {
|
|
383
383
|
readonly type: "circle" | "line" | "multiple-circle" | "dashboard";
|
|
384
|
-
readonly strokeWidth: number;
|
|
385
384
|
readonly status: Status;
|
|
385
|
+
readonly strokeWidth: number;
|
|
386
386
|
readonly processing: boolean;
|
|
387
387
|
readonly unit: string;
|
|
388
388
|
readonly indicatorPlacement: "inside" | "outside";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.qrCodeProps = exports.NQrCode = void 0;
|
|
7
|
+
var QrCode_1 = require("./src/QrCode");
|
|
8
|
+
Object.defineProperty(exports, "NQrCode", { enumerable: true, get: function () { return __importDefault(QrCode_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "qrCodeProps", { enumerable: true, get: function () { return QrCode_1.qrCodeProps; } });
|