@yh-ui/components 1.0.25 → 1.0.30
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/dist/affix/index.d.ts +3 -3
- package/dist/affix/src/affix.css +2 -448
- package/dist/affix/src/affix.vue +2 -448
- package/dist/affix/src/affix.vue.d.ts +1 -1
- package/dist/ai-action-group/src/ai-action-group.css +2 -448
- package/dist/ai-action-group/src/ai-action-group.vue +2 -448
- package/dist/ai-agent-card/src/ai-agent-card.css +2 -448
- package/dist/ai-agent-card/src/ai-agent-card.vue +2 -448
- package/dist/ai-artifacts/index.d.ts +3 -3
- package/dist/ai-artifacts/src/ai-artifacts.css +2 -448
- package/dist/ai-artifacts/src/ai-artifacts.vue +2 -448
- package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +1 -1
- package/dist/ai-attachments/src/ai-attachments.css +2 -448
- package/dist/ai-attachments/src/ai-attachments.vue +2 -448
- package/dist/ai-bubble/src/ai-bubble.css +2 -448
- package/dist/ai-bubble/src/ai-bubble.vue +33 -455
- package/dist/ai-bubble-list/src/ai-bubble-list.css +2 -448
- package/dist/ai-bubble-list/src/ai-bubble-list.vue +2 -448
- package/dist/ai-chat/src/ai-chat.css +2 -448
- package/dist/ai-chat/src/ai-chat.vue +2 -448
- package/dist/ai-code-block/src/ai-code-block.css +2 -448
- package/dist/ai-code-block/src/ai-code-block.vue +2 -448
- package/dist/ai-code-editor/src/ai-code-editor.css +2 -448
- package/dist/ai-code-editor/src/ai-code-editor.vue +36 -474
- package/dist/ai-code-runner/src/ai-code-runner.css +2 -448
- package/dist/ai-code-runner/src/ai-code-runner.vue +2 -449
- package/dist/ai-code-runner/src/webcontainer.cjs +3 -0
- package/dist/ai-code-runner/src/webcontainer.mjs +3 -0
- package/dist/ai-conversations/src/ai-conversations.css +2 -448
- package/dist/ai-conversations/src/ai-conversations.vue +2 -448
- package/dist/ai-editor-sender/src/ai-editor-sender.css +2 -448
- package/dist/ai-editor-sender/src/ai-editor-sender.vue +2 -448
- package/dist/ai-file-card/src/ai-file-card.css +2 -448
- package/dist/ai-file-card/src/ai-file-card.vue +2 -448
- package/dist/ai-mention/src/ai-mention.css +2 -448
- package/dist/ai-mention/src/ai-mention.vue +2 -448
- package/dist/ai-mermaid/src/ai-mermaid.css +84 -448
- package/dist/ai-mermaid/src/ai-mermaid.d.ts +6 -2
- package/dist/ai-mermaid/src/ai-mermaid.vue +277 -457
- package/dist/ai-prompts/src/ai-prompts.css +2 -448
- package/dist/ai-prompts/src/ai-prompts.vue +2 -448
- package/dist/ai-provider/index.d.ts +181 -55
- package/dist/ai-provider/src/ai-provider.vue.d.ts +55 -4
- package/dist/ai-sender/src/ai-sender.css +2 -448
- package/dist/ai-sender/src/ai-sender.vue +2 -448
- package/dist/ai-sources/src/ai-sources.css +2 -448
- package/dist/ai-sources/src/ai-sources.vue +2 -448
- package/dist/ai-thinking/src/ai-thinking.css +2 -448
- package/dist/ai-thinking/src/ai-thinking.vue +2 -448
- package/dist/ai-thought-chain/src/ai-thought-chain.css +2 -448
- package/dist/ai-thought-chain/src/ai-thought-chain.vue +34 -455
- package/dist/ai-voice-trigger/src/ai-voice-trigger.css +3 -449
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue +3 -449
- package/dist/ai-welcome/src/ai-welcome.css +2 -448
- package/dist/ai-welcome/src/ai-welcome.vue +2 -448
- package/dist/alert/src/alert.css +2 -448
- package/dist/alert/src/alert.vue +2 -448
- package/dist/autocomplete/index.d.ts +251 -20
- package/dist/autocomplete/src/autocomplete.css +2 -448
- package/dist/autocomplete/src/autocomplete.vue +2 -448
- package/dist/autocomplete/src/autocomplete.vue.d.ts +56 -11
- package/dist/avatar/index.d.ts +131 -8
- package/dist/avatar/src/avatar.css +2 -448
- package/dist/avatar/src/avatar.vue +2 -448
- package/dist/avatar/src/avatar.vue.d.ts +31 -4
- package/dist/back-top/index.d.ts +3 -3
- package/dist/back-top/src/back-top.css +2 -448
- package/dist/back-top/src/back-top.vue +2 -448
- package/dist/back-top/src/back-top.vue.d.ts +1 -1
- package/dist/badge/index.d.ts +115 -4
- package/dist/badge/src/badge.css +2 -448
- package/dist/badge/src/badge.vue +2 -448
- package/dist/badge/src/badge.vue.d.ts +33 -2
- package/dist/breadcrumb/src/breadcrumb-item.vue +2 -448
- package/dist/breadcrumb/src/breadcrumb.css +2 -448
- package/dist/breadcrumb/src/breadcrumb.vue +2 -448
- package/dist/button/index.d.ts +212 -8
- package/dist/button/src/button.css +2 -448
- package/dist/button/src/button.vue +2 -448
- package/dist/button/src/button.vue.d.ts +50 -5
- package/dist/calendar/src/calendar.css +89 -451
- package/dist/calendar/src/calendar.vue +92 -454
- package/dist/card/index.d.ts +115 -4
- package/dist/card/src/card.css +2 -448
- package/dist/card/src/card.vue +2 -448
- package/dist/card/src/card.vue.d.ts +33 -2
- package/dist/carousel/src/carousel.css +2 -448
- package/dist/carousel/src/carousel.vue +2 -448
- package/dist/cascader/index.d.ts +405 -54
- package/dist/cascader/src/cascader-panel.vue +3 -449
- package/dist/cascader/src/cascader-panel.vue.d.ts +34 -5
- package/dist/cascader/src/cascader.css +3 -449
- package/dist/cascader/src/cascader.vue +3 -449
- package/dist/cascader/src/cascader.vue.d.ts +66 -11
- package/dist/category-nav/src/category-nav.css +2 -448
- package/dist/category-nav/src/category-nav.vue +2 -448
- package/dist/checkbox/index.d.ts +293 -20
- package/dist/checkbox/src/checkbox-group.css +2 -448
- package/dist/checkbox/src/checkbox-group.vue +2 -448
- package/dist/checkbox/src/checkbox-group.vue.d.ts +32 -5
- package/dist/checkbox/src/checkbox.css +2 -448
- package/dist/checkbox/src/checkbox.vue +2 -448
- package/dist/checkbox/src/checkbox.vue.d.ts +39 -6
- package/dist/col/src/col.css +2 -448
- package/dist/col/src/col.vue +2 -448
- package/dist/color-picker/src/alpha-slider.vue.d.ts +13 -4
- package/dist/color-picker/src/color-picker.css +5 -451
- package/dist/color-picker/src/color-picker.vue +5 -451
- package/dist/color-picker/src/hue-slider.vue.d.ts +13 -4
- package/dist/color-picker/src/sv-panel.vue.d.ts +13 -4
- package/dist/container/index.d.ts +123 -18
- package/dist/container/src/aside.vue +2 -448
- package/dist/container/src/aside.vue.d.ts +23 -2
- package/dist/container/src/container.css +2 -448
- package/dist/container/src/container.vue +2 -448
- package/dist/container/src/container.vue.d.ts +10 -1
- package/dist/container/src/footer.vue +2 -448
- package/dist/container/src/footer.vue.d.ts +23 -2
- package/dist/container/src/header.vue +2 -448
- package/dist/container/src/header.vue.d.ts +23 -2
- package/dist/container/src/main.vue +2 -448
- package/dist/container/src/main.vue.d.ts +10 -1
- package/dist/countdown/src/countdown.css +2 -448
- package/dist/countdown/src/countdown.vue +2 -448
- package/dist/coupon-card/src/coupon-card.css +2 -448
- package/dist/coupon-card/src/coupon-card.vue +2 -448
- package/dist/date-picker/index.d.ts +19 -21
- package/dist/date-picker/src/date-picker.css +23 -451
- package/dist/date-picker/src/date-picker.vue +115 -467
- package/dist/date-picker/src/date-picker.vue.d.ts +10 -12
- package/dist/date-picker/src/date-table.vue.d.ts +14 -5
- package/dist/date-picker/src/month-table.vue.d.ts +14 -5
- package/dist/date-picker/src/panel-utils.cjs +7 -12
- package/dist/date-picker/src/panel-utils.mjs +14 -12
- package/dist/date-picker/src/quarter-table.vue.d.ts +14 -5
- package/dist/date-picker/src/year-table.vue.d.ts +14 -5
- package/dist/dayjs-plugins.cjs +23 -0
- package/dist/dayjs-plugins.d.ts +7 -0
- package/dist/dayjs-plugins.mjs +15 -0
- package/dist/dayjs.cjs +5 -3
- package/dist/dayjs.d.ts +2 -2
- package/dist/dayjs.mjs +2 -1
- package/dist/descriptions/src/description-item.vue +4 -449
- package/dist/descriptions/src/descriptions.css +4 -449
- package/dist/descriptions/src/descriptions.vue +4 -449
- package/dist/dialog/index.cjs +7 -1
- package/dist/dialog/index.d.ts +3 -3
- package/dist/dialog/index.mjs +5 -1
- package/dist/dialog/src/dialog.css +2 -448
- package/dist/dialog/src/dialog.vue +2 -448
- package/dist/dialog/src/dialog.vue.d.ts +1 -1
- package/dist/dialog/src/method.cjs +14 -4
- package/dist/dialog/src/method.d.ts +2 -0
- package/dist/dialog/src/method.mjs +12 -3
- package/dist/dialog/src/use-dialog.cjs +5 -1
- package/dist/dialog/src/use-dialog.mjs +5 -1
- package/dist/divider/src/divider.css +2 -448
- package/dist/divider/src/divider.vue +2 -448
- package/dist/drawer/index.d.ts +3 -3
- package/dist/drawer/src/drawer.cjs +1 -1
- package/dist/drawer/src/drawer.css +2 -448
- package/dist/drawer/src/drawer.d.ts +1 -1
- package/dist/drawer/src/drawer.mjs +1 -1
- package/dist/drawer/src/drawer.vue +15 -449
- package/dist/drawer/src/drawer.vue.d.ts +2 -2
- package/dist/dropdown/src/dropdown-item.vue +2 -448
- package/dist/dropdown/src/dropdown-menu.vue +2 -448
- package/dist/dropdown/src/dropdown.css +2 -448
- package/dist/dropdown/src/dropdown.vue +2 -448
- package/dist/empty/index.d.ts +55 -4
- package/dist/empty/src/empty.css +2 -448
- package/dist/empty/src/empty.vue +2 -448
- package/dist/empty/src/empty.vue.d.ts +23 -2
- package/dist/filter-bar/src/filter-bar.css +2 -448
- package/dist/filter-bar/src/filter-bar.vue +2 -448
- package/dist/form/index.d.ts +14 -14
- package/dist/form/src/form-item.vue +8 -449
- package/dist/form/src/form-schema.vue.d.ts +5 -5
- package/dist/form/src/form.css +8 -449
- package/dist/form/src/form.vue +8 -449
- package/dist/form/src/form.vue.d.ts +2 -2
- package/dist/gantt-chart/index.d.ts +218 -20
- package/dist/gantt-chart/src/gantt-chart.css +14 -460
- package/dist/gantt-chart/src/gantt-chart.vue +18 -466
- package/dist/gantt-chart/src/gantt-chart.vue.d.ts +55 -10
- package/dist/grid/index.d.ts +167 -8
- package/dist/grid/src/grid-item.vue.d.ts +27 -2
- package/dist/grid/src/grid.css +2 -448
- package/dist/grid/src/grid.vue +2 -448
- package/dist/grid/src/grid.vue.d.ts +33 -2
- package/dist/icon/src/icon.css +2 -448
- package/dist/icon/src/icon.vue +2 -448
- package/dist/icon/src/icons/index.cjs +12 -2
- package/dist/icon/src/icons/index.d.ts +2 -0
- package/dist/icon/src/icons/index.mjs +12 -0
- package/dist/image/index.d.ts +12 -12
- package/dist/image/src/image-viewer.vue +13 -453
- package/dist/image/src/image.css +2 -448
- package/dist/image/src/image.vue +14 -454
- package/dist/image/src/image.vue.d.ts +6 -6
- package/dist/image-magnifier/index.d.ts +3 -3
- package/dist/image-magnifier/src/image-magnifier.css +2 -448
- package/dist/image-magnifier/src/image-magnifier.vue +2 -448
- package/dist/image-magnifier/src/image-magnifier.vue.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -0
- package/dist/infinite-scroll/index.d.ts +3 -3
- package/dist/infinite-scroll/src/infinite-scroll.css +2 -448
- package/dist/infinite-scroll/src/infinite-scroll.vue +36 -457
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +1 -1
- package/dist/input/index.d.ts +469 -28
- package/dist/input/src/input.css +6 -448
- package/dist/input/src/input.vue +6 -448
- package/dist/input/src/input.vue.d.ts +74 -15
- package/dist/input-number/index.d.ts +273 -18
- package/dist/input-number/src/input-number.css +2 -448
- package/dist/input-number/src/input-number.vue +2 -448
- package/dist/input-number/src/input-number.vue.d.ts +53 -10
- package/dist/input-tag/index.d.ts +306 -24
- package/dist/input-tag/src/input-tag.css +46 -448
- package/dist/input-tag/src/input-tag.d.ts +1 -1
- package/dist/input-tag/src/input-tag.vue +47 -449
- package/dist/input-tag/src/input-tag.vue.d.ts +68 -13
- package/dist/loading/index.cjs +1 -0
- package/dist/loading/index.mjs +2 -1
- package/dist/loading/src/loading.css +2 -448
- package/dist/loading/src/service.cjs +56 -16
- package/dist/loading/src/service.d.ts +1 -0
- package/dist/loading/src/service.mjs +60 -16
- package/dist/lucky-draw/src/lucky-draw.css +2 -448
- package/dist/lucky-draw/src/lucky-draw.vue +2 -448
- package/dist/markdown-it.cjs +10 -6
- package/dist/markdown-it.d.ts +2 -2
- package/dist/markdown-it.mjs +12 -3
- package/dist/marquee/src/marquee.css +2 -448
- package/dist/marquee/src/marquee.vue +7 -451
- package/dist/mention/index.d.ts +370 -28
- package/dist/mention/src/mention.css +2 -448
- package/dist/mention/src/mention.vue +2 -448
- package/dist/mention/src/mention.vue.d.ts +80 -15
- package/dist/menu/src/menu-item-group.vue +2 -449
- package/dist/menu/src/menu-item.vue +2 -449
- package/dist/menu/src/menu-recursive-item.vue +2 -449
- package/dist/menu/src/menu-recursive-item.vue.d.ts +10 -1
- package/dist/menu/src/menu.css +2 -449
- package/dist/menu/src/menu.vue +2 -449
- package/dist/menu/src/sub-menu.vue +2 -449
- package/dist/message/index.cjs +9 -3
- package/dist/message/index.d.ts +1 -1
- package/dist/message/index.mjs +7 -2
- package/dist/message/src/message.css +2 -448
- package/dist/message/src/message.d.ts +16 -7
- package/dist/message/src/message.vue +2 -448
- package/dist/message/src/message.vue.d.ts +42 -5
- package/dist/message/src/method.cjs +40 -16
- package/dist/message/src/method.d.ts +2 -0
- package/dist/message/src/method.mjs +34 -15
- package/dist/message-box/index.cjs +4 -2
- package/dist/message-box/index.mjs +2 -1
- package/dist/message-box/src/message-box.css +2 -448
- package/dist/message-box/src/message-box.d.ts +6 -1
- package/dist/message-box/src/message-box.vue +17 -453
- package/dist/message-box/src/message-box.vue.d.ts +11 -2
- package/dist/message-box/src/method.cjs +9 -3
- package/dist/message-box/src/method.d.ts +2 -0
- package/dist/message-box/src/method.mjs +28 -5
- package/dist/notification/index.cjs +9 -3
- package/dist/notification/index.d.ts +1 -1
- package/dist/notification/index.mjs +7 -2
- package/dist/notification/src/method.cjs +40 -16
- package/dist/notification/src/method.d.ts +2 -0
- package/dist/notification/src/method.mjs +34 -15
- package/dist/notification/src/notification.css +2 -448
- package/dist/notification/src/notification.d.ts +16 -7
- package/dist/notification/src/notification.vue +2 -448
- package/dist/notification/src/notification.vue.d.ts +35 -6
- package/dist/pagination/index.d.ts +14 -14
- package/dist/pagination/src/pagination.css +19 -452
- package/dist/pagination/src/pagination.vue +98 -481
- package/dist/pagination/src/pagination.vue.d.ts +7 -7
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popconfirm/src/popconfirm.css +2 -448
- package/dist/popconfirm/src/popconfirm.vue +2 -448
- package/dist/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/dist/popover/index.d.ts +3 -3
- package/dist/popover/src/popover.css +2 -448
- package/dist/popover/src/popover.vue +2 -448
- package/dist/popover/src/popover.vue.d.ts +1 -1
- package/dist/price/src/price.css +2 -448
- package/dist/price/src/price.vue +2 -448
- package/dist/product-card/src/product-card.css +2 -448
- package/dist/product-card/src/product-card.vue +2 -448
- package/dist/progress/index.d.ts +3 -3
- package/dist/progress/src/progress.css +3 -449
- package/dist/progress/src/progress.vue +3 -449
- package/dist/progress/src/progress.vue.d.ts +1 -1
- package/dist/radio/index.d.ts +318 -30
- package/dist/radio/src/radio-button.css +2 -448
- package/dist/radio/src/radio-button.vue +2 -448
- package/dist/radio/src/radio-button.vue.d.ts +27 -6
- package/dist/radio/src/radio-group.css +2 -448
- package/dist/radio/src/radio-group.vue +2 -448
- package/dist/radio/src/radio-group.vue.d.ts +30 -5
- package/dist/radio/src/radio.css +2 -448
- package/dist/radio/src/radio.vue +2 -448
- package/dist/radio/src/radio.vue.d.ts +29 -6
- package/dist/rate/src/rate.css +2 -448
- package/dist/rate/src/rate.vue +2 -448
- package/dist/result/index.d.ts +46 -4
- package/dist/result/src/result.css +2 -448
- package/dist/result/src/result.vue +2 -448
- package/dist/result/src/result.vue.d.ts +23 -2
- package/dist/row/src/row.css +2 -448
- package/dist/row/src/row.vue +2 -448
- package/dist/sanitize.cjs +15 -2
- package/dist/sanitize.mjs +15 -2
- package/dist/scrollbar/src/scrollbar.css +2 -448
- package/dist/scrollbar/src/scrollbar.vue +2 -448
- package/dist/scrollbar/src/thumb.vue.d.ts +30 -3
- package/dist/select/index.d.ts +414 -24
- package/dist/select/src/option.vue +2 -448
- package/dist/select/src/option.vue.d.ts +23 -2
- package/dist/select/src/select.css +2 -448
- package/dist/select/src/select.vue +2 -448
- package/dist/select/src/select.vue.d.ts +78 -11
- package/dist/skeleton/src/skeleton-item.vue +2 -448
- package/dist/skeleton/src/skeleton.css +2 -448
- package/dist/skeleton/src/skeleton.vue +2 -448
- package/dist/sku-selector/src/sku-selector.css +2 -448
- package/dist/sku-selector/src/sku-selector.vue +2 -448
- package/dist/slider/index.d.ts +2 -6
- package/dist/slider/src/slider-button.vue +2 -448
- package/dist/slider/src/slider-button.vue.d.ts +38 -7
- package/dist/slider/src/slider.css +2 -448
- package/dist/slider/src/slider.vue +2 -448
- package/dist/slider/src/slider.vue.d.ts +1 -5
- package/dist/smart-address/src/smart-address.css +26 -448
- package/dist/smart-address/src/smart-address.vue +26 -448
- package/dist/space/index.d.ts +106 -4
- package/dist/space/src/space.css +2 -448
- package/dist/space/src/space.vue +2 -448
- package/dist/space/src/space.vue.d.ts +33 -2
- package/dist/spin/src/spin.css +2 -448
- package/dist/spin/src/spin.vue +2 -448
- package/dist/steps/src/step.vue +2 -448
- package/dist/steps/src/steps.css +2 -448
- package/dist/steps/src/steps.vue +2 -448
- package/dist/style.css +6 -0
- package/dist/submit-bar/src/submit-bar.css +2 -448
- package/dist/submit-bar/src/submit-bar.vue +2 -448
- package/dist/switch/index.d.ts +3 -3
- package/dist/switch/src/switch.css +4 -449
- package/dist/switch/src/switch.vue +4 -449
- package/dist/switch/src/switch.vue.d.ts +1 -1
- package/dist/table/index.d.ts +342 -102
- package/dist/table/src/table-column.vue +4 -449
- package/dist/table/src/table-column.vue.d.ts +62 -3
- package/dist/table/src/table.css +4 -449
- package/dist/table/src/table.vue +45 -465
- package/dist/table/src/use-table-export.cjs +9 -5
- package/dist/table/src/use-table-export.d.ts +1 -1
- package/dist/table/src/use-table-export.mjs +12 -3
- package/dist/table/src/use-table-import.cjs +9 -5
- package/dist/table/src/use-table-import.d.ts +1 -1
- package/dist/table/src/use-table-import.mjs +12 -3
- package/dist/tabs/src/tab-pane.vue +0 -451
- package/dist/tabs/src/tabs.css +2 -448
- package/dist/tabs/src/tabs.vue +2 -448
- package/dist/tag/index.d.ts +175 -16
- package/dist/tag/src/tag.css +2 -448
- package/dist/tag/src/tag.vue +2 -448
- package/dist/tag/src/tag.vue.d.ts +47 -8
- package/dist/time-picker/index.d.ts +475 -22
- package/dist/time-picker/src/time-picker.css +2 -448
- package/dist/time-picker/src/time-picker.vue +2 -448
- package/dist/time-picker/src/time-picker.vue.d.ts +85 -12
- package/dist/time-picker/src/time-spinner.vue.d.ts +45 -6
- package/dist/time-select/index.d.ts +285 -18
- package/dist/time-select/src/time-select.css +3 -449
- package/dist/time-select/src/time-select.vue +3 -449
- package/dist/time-select/src/time-select.vue.d.ts +55 -10
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/src/tooltip.css +2 -448
- package/dist/tooltip/src/tooltip.vue +2 -448
- package/dist/tooltip/src/tooltip.vue.d.ts +1 -1
- package/dist/transfer/src/transfer-panel.vue +2 -448
- package/dist/transfer/src/transfer-panel.vue.d.ts +45 -6
- package/dist/transfer/src/transfer.css +2 -448
- package/dist/transfer/src/transfer.vue +2 -448
- package/dist/transfer/src/transfer.vue.d.ts +57 -10
- package/dist/tree/index.d.ts +34 -25
- package/dist/tree/src/tree-node.vue +12 -449
- package/dist/tree/src/tree-node.vue.d.ts +10 -1
- package/dist/tree/src/tree.css +12 -449
- package/dist/tree/src/tree.vue +12 -449
- package/dist/tree/src/tree.vue.d.ts +16 -16
- package/dist/tree-select/src/tree-select.css +2 -448
- package/dist/tree-select/src/tree-select.vue +2 -448
- package/dist/typography/index.d.ts +450 -18
- package/dist/typography/src/link.vue +2 -448
- package/dist/typography/src/link.vue.d.ts +29 -4
- package/dist/typography/src/paragraph.vue +2 -448
- package/dist/typography/src/paragraph.vue.d.ts +33 -2
- package/dist/typography/src/text.vue +2 -448
- package/dist/typography/src/text.vue.d.ts +39 -2
- package/dist/typography/src/title.vue +2 -448
- package/dist/typography/src/title.vue.d.ts +37 -2
- package/dist/typography/src/typography.css +2 -448
- package/dist/upload/index.d.ts +3 -3
- package/dist/upload/src/upload.css +2 -448
- package/dist/upload/src/upload.vue +11 -451
- package/dist/upload/src/upload.vue.d.ts +1 -1
- package/dist/viewerjs.cjs +10 -6
- package/dist/viewerjs.d.ts +2 -2
- package/dist/viewerjs.mjs +12 -3
- package/dist/waterfall/index.d.ts +1 -1
- package/dist/waterfall/src/waterfall.css +8 -449
- package/dist/waterfall/src/waterfall.vue +8 -449
- package/dist/waterfall/src/waterfall.vue.d.ts +1 -1
- package/dist/watermark/index.d.ts +3 -3
- package/dist/watermark/src/watermark.css +2 -448
- package/dist/watermark/src/watermark.vue +38 -450
- package/dist/watermark/src/watermark.vue.d.ts +1 -1
- package/package.json +38 -18
- package/LICENSE +0 -21
|
@@ -7,7 +7,8 @@ var _exportNames = {
|
|
|
7
7
|
YhNotification: true
|
|
8
8
|
};
|
|
9
9
|
module.exports = exports.YhNotification = void 0;
|
|
10
|
-
var
|
|
10
|
+
var _utils = require("@yh-ui/utils");
|
|
11
|
+
var _method = _interopRequireWildcard(require("./src/method.cjs"));
|
|
11
12
|
var _notification = require("./src/notification.cjs");
|
|
12
13
|
Object.keys(_notification).forEach(function (key) {
|
|
13
14
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -20,6 +21,11 @@ Object.keys(_notification).forEach(function (key) {
|
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
23
|
});
|
|
23
|
-
function
|
|
24
|
-
|
|
24
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
25
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
|
+
const YhNotification = exports.YhNotification = (0, _utils.withInstallFunction)(_method.default, "$notify");
|
|
27
|
+
YhNotification.install = app => {
|
|
28
|
+
(0, _method.setNotificationDefaultAppContext)(app._context);
|
|
29
|
+
app.config.globalProperties.$notify = YhNotification;
|
|
30
|
+
};
|
|
25
31
|
module.exports = YhNotification;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const YhNotification: import(".").NotificationFn
|
|
1
|
+
export declare const YhNotification: import("@yh-ui/utils").SFCWithInstall<import(".").NotificationFn>;
|
|
2
2
|
export default YhNotification;
|
|
3
3
|
export * from './src/notification';
|
|
4
4
|
export type YhNotificationProps = import('./src/notification').NotificationProps;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { withInstallFunction } from "@yh-ui/utils";
|
|
2
|
+
import Notification, { setNotificationDefaultAppContext } from "./src/method.mjs";
|
|
3
|
+
export const YhNotification = withInstallFunction(Notification, "$notify");
|
|
4
|
+
YhNotification.install = (app) => {
|
|
5
|
+
setNotificationDefaultAppContext(app._context);
|
|
6
|
+
app.config.globalProperties.$notify = YhNotification;
|
|
7
|
+
};
|
|
3
8
|
export default YhNotification;
|
|
4
9
|
export * from "./src/notification.mjs";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
6
|
+
exports.setNotificationDefaultAppContext = exports.default = void 0;
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
var _notification = _interopRequireDefault(require("./notification.vue"));
|
|
9
9
|
require("./notification.css");
|
|
@@ -17,6 +17,20 @@ const instances = {
|
|
|
17
17
|
"bottom-center": []
|
|
18
18
|
};
|
|
19
19
|
let seed = 1;
|
|
20
|
+
let defaultAppContext = null;
|
|
21
|
+
const setNotificationDefaultAppContext = appContext => {
|
|
22
|
+
defaultAppContext = appContext ?? null;
|
|
23
|
+
};
|
|
24
|
+
exports.setNotificationDefaultAppContext = setNotificationDefaultAppContext;
|
|
25
|
+
const resolveMountTarget = appendTo => {
|
|
26
|
+
if (appendTo) {
|
|
27
|
+
if (typeof appendTo === "string") {
|
|
28
|
+
return document.querySelector(appendTo) ?? document.body;
|
|
29
|
+
}
|
|
30
|
+
return appendTo;
|
|
31
|
+
}
|
|
32
|
+
return document.querySelector(".yh-config-provider") ?? document.body;
|
|
33
|
+
};
|
|
20
34
|
const getOffset = (position, offset) => {
|
|
21
35
|
const list = instances[position];
|
|
22
36
|
return list.reduce((acc, ctx) => {
|
|
@@ -27,11 +41,18 @@ const getOffset = (position, offset) => {
|
|
|
27
41
|
return acc;
|
|
28
42
|
}, offset);
|
|
29
43
|
};
|
|
30
|
-
const createNotification = options => {
|
|
44
|
+
const createNotification = (options, appContext) => {
|
|
31
45
|
const id = `notification_${seed++}`;
|
|
32
46
|
const position = options.position || "top-right";
|
|
33
47
|
const userOnClose = options.onClose;
|
|
34
48
|
const max = options.max;
|
|
49
|
+
const resolvedAppContext = appContext ?? options.appContext ?? defaultAppContext;
|
|
50
|
+
const mountTarget = resolveMountTarget(options.appendTo);
|
|
51
|
+
const {
|
|
52
|
+
appContext: _appContext,
|
|
53
|
+
appendTo: _appendTo,
|
|
54
|
+
...restOptions
|
|
55
|
+
} = options;
|
|
35
56
|
if (max !== void 0 && max > 0) {
|
|
36
57
|
const list = instances[position];
|
|
37
58
|
const toCloseCount = list.length + 1 - max;
|
|
@@ -43,7 +64,7 @@ const createNotification = options => {
|
|
|
43
64
|
}
|
|
44
65
|
}
|
|
45
66
|
const props = (0, _vue.shallowReactive)({
|
|
46
|
-
...
|
|
67
|
+
...restOptions,
|
|
47
68
|
id,
|
|
48
69
|
position,
|
|
49
70
|
offset: getOffset(position, options.offset || 16),
|
|
@@ -56,8 +77,8 @@ const createNotification = options => {
|
|
|
56
77
|
container.className = `yh-notification-container_${id}`;
|
|
57
78
|
const onDestroy = () => {
|
|
58
79
|
(0, _vue.render)(null, container);
|
|
59
|
-
if (
|
|
60
|
-
|
|
80
|
+
if (mountTarget.contains(container)) {
|
|
81
|
+
mountTarget.removeChild(container);
|
|
61
82
|
}
|
|
62
83
|
};
|
|
63
84
|
const vnodeProps = {
|
|
@@ -65,8 +86,11 @@ const createNotification = options => {
|
|
|
65
86
|
onDestroy
|
|
66
87
|
};
|
|
67
88
|
const vnode = (0, _vue.createVNode)(_notification.default, vnodeProps, null);
|
|
89
|
+
if (resolvedAppContext) {
|
|
90
|
+
vnode.appContext = resolvedAppContext;
|
|
91
|
+
}
|
|
68
92
|
(0, _vue.render)(vnode, container);
|
|
69
|
-
|
|
93
|
+
mountTarget.appendChild(container);
|
|
70
94
|
const vm = vnode.component;
|
|
71
95
|
const handler = {
|
|
72
96
|
close: () => {
|
|
@@ -117,15 +141,15 @@ const closeAll = () => {
|
|
|
117
141
|
});
|
|
118
142
|
});
|
|
119
143
|
};
|
|
120
|
-
const Notification = options => {
|
|
144
|
+
const Notification = (options, appContext) => {
|
|
121
145
|
if (typeof options === "string") {
|
|
122
146
|
options = {
|
|
123
147
|
message: options
|
|
124
148
|
};
|
|
125
149
|
}
|
|
126
|
-
return createNotification(options);
|
|
150
|
+
return createNotification(options, appContext);
|
|
127
151
|
};
|
|
128
|
-
Notification.success = (title, message) => {
|
|
152
|
+
Notification.success = (title, message, appContext) => {
|
|
129
153
|
const options = typeof message === "string" ? {
|
|
130
154
|
title,
|
|
131
155
|
message
|
|
@@ -136,9 +160,9 @@ Notification.success = (title, message) => {
|
|
|
136
160
|
return createNotification({
|
|
137
161
|
...options,
|
|
138
162
|
type: "success"
|
|
139
|
-
});
|
|
163
|
+
}, appContext);
|
|
140
164
|
};
|
|
141
|
-
Notification.warning = (title, message) => {
|
|
165
|
+
Notification.warning = (title, message, appContext) => {
|
|
142
166
|
const options = typeof message === "string" ? {
|
|
143
167
|
title,
|
|
144
168
|
message
|
|
@@ -149,9 +173,9 @@ Notification.warning = (title, message) => {
|
|
|
149
173
|
return createNotification({
|
|
150
174
|
...options,
|
|
151
175
|
type: "warning"
|
|
152
|
-
});
|
|
176
|
+
}, appContext);
|
|
153
177
|
};
|
|
154
|
-
Notification.info = (title, message) => {
|
|
178
|
+
Notification.info = (title, message, appContext) => {
|
|
155
179
|
const options = typeof message === "string" ? {
|
|
156
180
|
title,
|
|
157
181
|
message
|
|
@@ -162,9 +186,9 @@ Notification.info = (title, message) => {
|
|
|
162
186
|
return createNotification({
|
|
163
187
|
...options,
|
|
164
188
|
type: "info"
|
|
165
|
-
});
|
|
189
|
+
}, appContext);
|
|
166
190
|
};
|
|
167
|
-
Notification.error = (title, message) => {
|
|
191
|
+
Notification.error = (title, message, appContext) => {
|
|
168
192
|
const options = typeof message === "string" ? {
|
|
169
193
|
title,
|
|
170
194
|
message
|
|
@@ -175,7 +199,7 @@ Notification.error = (title, message) => {
|
|
|
175
199
|
return createNotification({
|
|
176
200
|
...options,
|
|
177
201
|
type: "error"
|
|
178
|
-
});
|
|
202
|
+
}, appContext);
|
|
179
203
|
};
|
|
180
204
|
Notification.closeAll = closeAll;
|
|
181
205
|
module.exports = Notification;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Notification 方法
|
|
3
3
|
* @description 函数式调用通知
|
|
4
4
|
*/
|
|
5
|
+
import { type AppContext } from 'vue';
|
|
5
6
|
import type { NotificationFn } from './notification';
|
|
6
7
|
import './notification.css';
|
|
8
|
+
export declare const setNotificationDefaultAppContext: (appContext?: AppContext | null) => void;
|
|
7
9
|
declare const Notification: NotificationFn;
|
|
8
10
|
export default Notification;
|
|
@@ -10,6 +10,19 @@ const instances = {
|
|
|
10
10
|
"bottom-center": []
|
|
11
11
|
};
|
|
12
12
|
let seed = 1;
|
|
13
|
+
let defaultAppContext = null;
|
|
14
|
+
export const setNotificationDefaultAppContext = (appContext) => {
|
|
15
|
+
defaultAppContext = appContext ?? null;
|
|
16
|
+
};
|
|
17
|
+
const resolveMountTarget = (appendTo) => {
|
|
18
|
+
if (appendTo) {
|
|
19
|
+
if (typeof appendTo === "string") {
|
|
20
|
+
return document.querySelector(appendTo) ?? document.body;
|
|
21
|
+
}
|
|
22
|
+
return appendTo;
|
|
23
|
+
}
|
|
24
|
+
return document.querySelector(".yh-config-provider") ?? document.body;
|
|
25
|
+
};
|
|
13
26
|
const getOffset = (position, offset) => {
|
|
14
27
|
const list = instances[position];
|
|
15
28
|
return list.reduce((acc, ctx) => {
|
|
@@ -20,11 +33,14 @@ const getOffset = (position, offset) => {
|
|
|
20
33
|
return acc;
|
|
21
34
|
}, offset);
|
|
22
35
|
};
|
|
23
|
-
const createNotification = (options) => {
|
|
36
|
+
const createNotification = (options, appContext) => {
|
|
24
37
|
const id = `notification_${seed++}`;
|
|
25
38
|
const position = options.position || "top-right";
|
|
26
39
|
const userOnClose = options.onClose;
|
|
27
40
|
const max = options.max;
|
|
41
|
+
const resolvedAppContext = appContext ?? options.appContext ?? defaultAppContext;
|
|
42
|
+
const mountTarget = resolveMountTarget(options.appendTo);
|
|
43
|
+
const { appContext: _appContext, appendTo: _appendTo, ...restOptions } = options;
|
|
28
44
|
if (max !== void 0 && max > 0) {
|
|
29
45
|
const list = instances[position];
|
|
30
46
|
const toCloseCount = list.length + 1 - max;
|
|
@@ -36,7 +52,7 @@ const createNotification = (options) => {
|
|
|
36
52
|
}
|
|
37
53
|
}
|
|
38
54
|
const props = shallowReactive({
|
|
39
|
-
...
|
|
55
|
+
...restOptions,
|
|
40
56
|
id,
|
|
41
57
|
position,
|
|
42
58
|
offset: getOffset(position, options.offset || 16),
|
|
@@ -49,8 +65,8 @@ const createNotification = (options) => {
|
|
|
49
65
|
container.className = `yh-notification-container_${id}`;
|
|
50
66
|
const onDestroy = () => {
|
|
51
67
|
render(null, container);
|
|
52
|
-
if (
|
|
53
|
-
|
|
68
|
+
if (mountTarget.contains(container)) {
|
|
69
|
+
mountTarget.removeChild(container);
|
|
54
70
|
}
|
|
55
71
|
};
|
|
56
72
|
const vnodeProps = {
|
|
@@ -58,8 +74,11 @@ const createNotification = (options) => {
|
|
|
58
74
|
onDestroy
|
|
59
75
|
};
|
|
60
76
|
const vnode = createVNode(NotificationConstructor, vnodeProps, null);
|
|
77
|
+
if (resolvedAppContext) {
|
|
78
|
+
vnode.appContext = resolvedAppContext;
|
|
79
|
+
}
|
|
61
80
|
render(vnode, container);
|
|
62
|
-
|
|
81
|
+
mountTarget.appendChild(container);
|
|
63
82
|
const vm = vnode.component;
|
|
64
83
|
const handler = {
|
|
65
84
|
close: () => {
|
|
@@ -110,27 +129,27 @@ const closeAll = () => {
|
|
|
110
129
|
});
|
|
111
130
|
});
|
|
112
131
|
};
|
|
113
|
-
const Notification = ((options) => {
|
|
132
|
+
const Notification = ((options, appContext) => {
|
|
114
133
|
if (typeof options === "string") {
|
|
115
134
|
options = { message: options };
|
|
116
135
|
}
|
|
117
|
-
return createNotification(options);
|
|
136
|
+
return createNotification(options, appContext);
|
|
118
137
|
});
|
|
119
|
-
Notification.success = (title, message) => {
|
|
138
|
+
Notification.success = (title, message, appContext) => {
|
|
120
139
|
const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
|
|
121
|
-
return createNotification({ ...options, type: "success" });
|
|
140
|
+
return createNotification({ ...options, type: "success" }, appContext);
|
|
122
141
|
};
|
|
123
|
-
Notification.warning = (title, message) => {
|
|
142
|
+
Notification.warning = (title, message, appContext) => {
|
|
124
143
|
const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
|
|
125
|
-
return createNotification({ ...options, type: "warning" });
|
|
144
|
+
return createNotification({ ...options, type: "warning" }, appContext);
|
|
126
145
|
};
|
|
127
|
-
Notification.info = (title, message) => {
|
|
146
|
+
Notification.info = (title, message, appContext) => {
|
|
128
147
|
const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
|
|
129
|
-
return createNotification({ ...options, type: "info" });
|
|
148
|
+
return createNotification({ ...options, type: "info" }, appContext);
|
|
130
149
|
};
|
|
131
|
-
Notification.error = (title, message) => {
|
|
150
|
+
Notification.error = (title, message, appContext) => {
|
|
132
151
|
const options = typeof message === "string" ? { title, message } : { title, ...message || {} };
|
|
133
|
-
return createNotification({ ...options, type: "error" });
|
|
152
|
+
return createNotification({ ...options, type: "error" }, appContext);
|
|
134
153
|
};
|
|
135
154
|
Notification.closeAll = closeAll;
|
|
136
155
|
export default Notification;
|