@yh-ui/components 0.1.10 → 0.1.12
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/ai-action-group/__tests__/ai-action-group.ssr.test.cjs +55 -0
- package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.d.ts +1 -0
- package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.mjs +39 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.cjs +149 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.d.ts +1 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.mjs +104 -0
- package/dist/ai-action-group/index.cjs +26 -0
- package/dist/ai-action-group/index.d.ts +3 -0
- package/dist/ai-action-group/index.mjs +5 -0
- package/dist/ai-action-group/src/ai-action-group.cjs +50 -0
- package/dist/ai-action-group/src/ai-action-group.css +517 -0
- package/dist/ai-action-group/src/ai-action-group.d.ts +55 -0
- package/dist/ai-action-group/src/ai-action-group.d.vue.ts +40 -0
- package/dist/ai-action-group/src/ai-action-group.mjs +44 -0
- package/dist/ai-action-group/src/ai-action-group.vue +602 -0
- package/dist/ai-action-group/src/ai-action-group.vue.d.ts +40 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.cjs +61 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.d.ts +1 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.mjs +65 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.cjs +70 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.d.ts +1 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.mjs +64 -0
- package/dist/ai-agent-card/index.cjs +26 -0
- package/dist/ai-agent-card/index.d.ts +3 -0
- package/dist/ai-agent-card/index.mjs +5 -0
- package/dist/ai-agent-card/src/ai-agent-card.cjs +74 -0
- package/dist/ai-agent-card/src/ai-agent-card.css +859 -0
- package/dist/ai-agent-card/src/ai-agent-card.d.ts +122 -0
- package/dist/ai-agent-card/src/ai-agent-card.d.vue.ts +62 -0
- package/dist/ai-agent-card/src/ai-agent-card.mjs +68 -0
- package/dist/ai-agent-card/src/ai-agent-card.vue +1029 -0
- package/dist/ai-agent-card/src/ai-agent-card.vue.d.ts +62 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.cjs +73 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.d.ts +1 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.mjs +68 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.cjs +128 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.d.ts +1 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.mjs +109 -0
- package/dist/ai-artifacts/index.cjs +26 -0
- package/dist/ai-artifacts/index.d.ts +3 -0
- package/dist/ai-artifacts/index.mjs +5 -0
- package/dist/ai-artifacts/src/ai-artifacts.cjs +55 -0
- package/dist/ai-artifacts/src/ai-artifacts.css +633 -0
- package/dist/ai-artifacts/src/ai-artifacts.d.ts +93 -0
- package/dist/ai-artifacts/src/ai-artifacts.d.vue.ts +33 -0
- package/dist/ai-artifacts/src/ai-artifacts.mjs +49 -0
- package/dist/ai-artifacts/src/ai-artifacts.vue +803 -0
- package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +33 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.cjs +87 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.d.ts +1 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.mjs +58 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.cjs +227 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.d.ts +1 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.mjs +123 -0
- package/dist/ai-bubble/index.cjs +26 -0
- package/dist/ai-bubble/index.d.ts +3 -0
- package/dist/ai-bubble/index.mjs +5 -0
- package/dist/ai-bubble/src/ai-bubble.cjs +86 -0
- package/dist/ai-bubble/src/ai-bubble.css +932 -0
- package/dist/ai-bubble/src/ai-bubble.d.ts +126 -0
- package/dist/ai-bubble/src/ai-bubble.d.vue.ts +110 -0
- package/dist/ai-bubble/src/ai-bubble.mjs +80 -0
- package/dist/ai-bubble/src/ai-bubble.vue +1300 -0
- package/dist/ai-bubble/src/ai-bubble.vue.d.ts +110 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.cjs +82 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.d.ts +1 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.mjs +69 -0
- package/dist/ai-chat/__tests__/ai-chat.test.cjs +169 -0
- package/dist/ai-chat/__tests__/ai-chat.test.d.ts +1 -0
- package/dist/ai-chat/__tests__/ai-chat.test.mjs +121 -0
- package/dist/ai-chat/index.cjs +26 -0
- package/dist/ai-chat/index.d.ts +3 -0
- package/dist/ai-chat/index.mjs +5 -0
- package/dist/ai-chat/src/ai-chat.cjs +41 -0
- package/dist/ai-chat/src/ai-chat.css +503 -0
- package/dist/ai-chat/src/ai-chat.d.ts +57 -0
- package/dist/ai-chat/src/ai-chat.d.vue.ts +43 -0
- package/dist/ai-chat/src/ai-chat.mjs +35 -0
- package/dist/ai-chat/src/ai-chat.vue +606 -0
- package/dist/ai-chat/src/ai-chat.vue.d.ts +43 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.cjs +66 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.d.ts +1 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.mjs +48 -0
- package/dist/ai-code-block/__tests__/ai-code-block.test.cjs +174 -0
- package/dist/ai-code-block/__tests__/ai-code-block.test.d.ts +1 -0
- package/dist/ai-code-block/__tests__/ai-code-block.test.mjs +108 -0
- package/dist/ai-code-block/index.cjs +26 -0
- package/dist/ai-code-block/index.d.ts +3 -0
- package/dist/ai-code-block/index.mjs +5 -0
- package/dist/ai-code-block/src/ai-code-block.cjs +79 -0
- package/dist/ai-code-block/src/ai-code-block.css +589 -0
- package/dist/ai-code-block/src/ai-code-block.d.ts +76 -0
- package/dist/ai-code-block/src/ai-code-block.d.vue.ts +63 -0
- package/dist/ai-code-block/src/ai-code-block.mjs +73 -0
- package/dist/ai-code-block/src/ai-code-block.vue +706 -0
- package/dist/ai-code-block/src/ai-code-block.vue.d.ts +63 -0
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.cjs +50 -0
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.d.ts +1 -0
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.mjs +42 -0
- package/dist/ai-conversations/__tests__/ai-conversations.test.cjs +67 -0
- package/dist/ai-conversations/__tests__/ai-conversations.test.d.ts +1 -0
- package/dist/ai-conversations/__tests__/ai-conversations.test.mjs +51 -0
- package/dist/ai-conversations/index.cjs +26 -0
- package/dist/ai-conversations/index.d.ts +3 -0
- package/dist/ai-conversations/index.mjs +5 -0
- package/dist/ai-conversations/src/ai-conversations.cjs +69 -0
- package/dist/ai-conversations/src/ai-conversations.css +679 -0
- package/dist/ai-conversations/src/ai-conversations.d.ts +67 -0
- package/dist/ai-conversations/src/ai-conversations.d.vue.ts +52 -0
- package/dist/ai-conversations/src/ai-conversations.mjs +63 -0
- package/dist/ai-conversations/src/ai-conversations.vue +949 -0
- package/dist/ai-conversations/src/ai-conversations.vue.d.ts +52 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.cjs +62 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.d.ts +1 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.mjs +50 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.cjs +315 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.d.ts +1 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.mjs +226 -0
- package/dist/ai-editor-sender/index.cjs +26 -0
- package/dist/ai-editor-sender/index.d.ts +3 -0
- package/dist/ai-editor-sender/index.mjs +5 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.cjs +66 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.css +566 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +70 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.vue.ts +70 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.mjs +60 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.vue +713 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.vue.d.ts +70 -0
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.cjs +49 -0
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.d.ts +1 -0
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.mjs +41 -0
- package/dist/ai-prompts/__tests__/ai-prompts.test.cjs +54 -0
- package/dist/ai-prompts/__tests__/ai-prompts.test.d.ts +1 -0
- package/dist/ai-prompts/__tests__/ai-prompts.test.mjs +38 -0
- package/dist/ai-prompts/index.cjs +26 -0
- package/dist/ai-prompts/index.d.ts +3 -0
- package/dist/ai-prompts/index.mjs +5 -0
- package/dist/ai-prompts/src/ai-prompts.cjs +42 -0
- package/dist/ai-prompts/src/ai-prompts.css +572 -0
- package/dist/ai-prompts/src/ai-prompts.d.ts +45 -0
- package/dist/ai-prompts/src/ai-prompts.d.vue.ts +44 -0
- package/dist/ai-prompts/src/ai-prompts.mjs +36 -0
- package/dist/ai-prompts/src/ai-prompts.vue +646 -0
- package/dist/ai-prompts/src/ai-prompts.vue.d.ts +44 -0
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.cjs +33 -0
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.d.ts +1 -0
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.mjs +34 -0
- package/dist/ai-provider/__tests__/ai-provider.test.cjs +38 -0
- package/dist/ai-provider/__tests__/ai-provider.test.d.ts +1 -0
- package/dist/ai-provider/__tests__/ai-provider.test.mjs +33 -0
- package/dist/ai-provider/index.cjs +38 -0
- package/dist/ai-provider/index.d.ts +4 -0
- package/dist/ai-provider/index.mjs +6 -0
- package/dist/ai-provider/src/ai-provider.cjs +7 -0
- package/dist/ai-provider/src/ai-provider.d.ts +88 -0
- package/dist/ai-provider/src/ai-provider.d.vue.ts +48 -0
- package/dist/ai-provider/src/ai-provider.mjs +1 -0
- package/dist/ai-provider/src/ai-provider.vue +24 -0
- package/dist/ai-provider/src/ai-provider.vue.d.ts +48 -0
- package/dist/ai-provider/src/use-ai-provider.cjs +11 -0
- package/dist/ai-provider/src/use-ai-provider.d.ts +10 -0
- package/dist/ai-provider/src/use-ai-provider.mjs +5 -0
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.cjs +46 -0
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.d.ts +1 -0
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.mjs +37 -0
- package/dist/ai-sender/__tests__/ai-sender.test.cjs +388 -0
- package/dist/ai-sender/__tests__/ai-sender.test.d.ts +1 -0
- package/dist/ai-sender/__tests__/ai-sender.test.mjs +248 -0
- package/dist/ai-sender/index.cjs +26 -0
- package/dist/ai-sender/index.d.ts +3 -0
- package/dist/ai-sender/index.mjs +5 -0
- package/dist/ai-sender/src/ai-sender.cjs +91 -0
- package/dist/ai-sender/src/ai-sender.css +754 -0
- package/dist/ai-sender/src/ai-sender.d.ts +140 -0
- package/dist/ai-sender/src/ai-sender.d.vue.ts +69 -0
- package/dist/ai-sender/src/ai-sender.mjs +85 -0
- package/dist/ai-sender/src/ai-sender.vue +1032 -0
- package/dist/ai-sender/src/ai-sender.vue.d.ts +69 -0
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.cjs +72 -0
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.d.ts +1 -0
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.mjs +82 -0
- package/dist/ai-sources/__tests__/ai-sources.test.cjs +93 -0
- package/dist/ai-sources/__tests__/ai-sources.test.d.ts +1 -0
- package/dist/ai-sources/__tests__/ai-sources.test.mjs +89 -0
- package/dist/ai-sources/index.cjs +26 -0
- package/dist/ai-sources/index.d.ts +3 -0
- package/dist/ai-sources/index.mjs +5 -0
- package/dist/ai-sources/src/ai-sources.cjs +59 -0
- package/dist/ai-sources/src/ai-sources.css +830 -0
- package/dist/ai-sources/src/ai-sources.d.ts +79 -0
- package/dist/ai-sources/src/ai-sources.d.vue.ts +45 -0
- package/dist/ai-sources/src/ai-sources.mjs +53 -0
- package/dist/ai-sources/src/ai-sources.vue +1109 -0
- package/dist/ai-sources/src/ai-sources.vue.d.ts +45 -0
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.cjs +56 -0
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.d.ts +1 -0
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.mjs +42 -0
- package/dist/ai-thinking/__tests__/ai-thinking.test.cjs +151 -0
- package/dist/ai-thinking/__tests__/ai-thinking.test.d.ts +1 -0
- package/dist/ai-thinking/__tests__/ai-thinking.test.mjs +96 -0
- package/dist/ai-thinking/index.cjs +26 -0
- package/dist/ai-thinking/index.d.ts +3 -0
- package/dist/ai-thinking/index.mjs +5 -0
- package/dist/ai-thinking/src/ai-thinking.cjs +44 -0
- package/dist/ai-thinking/src/ai-thinking.css +543 -0
- package/dist/ai-thinking/src/ai-thinking.d.ts +42 -0
- package/dist/ai-thinking/src/ai-thinking.d.vue.ts +33 -0
- package/dist/ai-thinking/src/ai-thinking.mjs +38 -0
- package/dist/ai-thinking/src/ai-thinking.vue +631 -0
- package/dist/ai-thinking/src/ai-thinking.vue.d.ts +33 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.cjs +83 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.d.ts +1 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.mjs +52 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.cjs +204 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.d.ts +1 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.mjs +134 -0
- package/dist/ai-thought-chain/index.cjs +26 -0
- package/dist/ai-thought-chain/index.d.ts +3 -0
- package/dist/ai-thought-chain/index.mjs +5 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.cjs +68 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.css +668 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +82 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.vue.ts +83 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.mjs +62 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.vue +813 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.vue.d.ts +83 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.cjs +32 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.d.ts +1 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.mjs +25 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.cjs +113 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.d.ts +1 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.mjs +93 -0
- package/dist/ai-voice-trigger/index.cjs +26 -0
- package/dist/ai-voice-trigger/index.d.ts +3 -0
- package/dist/ai-voice-trigger/index.mjs +5 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.cjs +35 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.css +603 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.ts +37 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.vue.ts +29 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.mjs +29 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue +708 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue.d.ts +29 -0
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.cjs +57 -0
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.d.ts +1 -0
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.mjs +39 -0
- package/dist/ai-welcome/__tests__/ai-welcome.test.cjs +169 -0
- package/dist/ai-welcome/__tests__/ai-welcome.test.d.ts +1 -0
- package/dist/ai-welcome/__tests__/ai-welcome.test.mjs +113 -0
- package/dist/ai-welcome/index.cjs +26 -0
- package/dist/ai-welcome/index.d.ts +3 -0
- package/dist/ai-welcome/index.mjs +5 -0
- package/dist/ai-welcome/src/ai-welcome.cjs +56 -0
- package/dist/ai-welcome/src/ai-welcome.css +591 -0
- package/dist/ai-welcome/src/ai-welcome.d.ts +59 -0
- package/dist/ai-welcome/src/ai-welcome.d.vue.ts +51 -0
- package/dist/ai-welcome/src/ai-welcome.mjs +50 -0
- package/dist/ai-welcome/src/ai-welcome.vue +655 -0
- package/dist/ai-welcome/src/ai-welcome.vue.d.ts +51 -0
- package/dist/alert/src/alert.d.vue.ts +5 -5
- package/dist/alert/src/alert.vue.d.ts +5 -5
- package/dist/autocomplete/src/autocomplete.d.vue.ts +2 -2
- package/dist/autocomplete/src/autocomplete.vue.d.ts +2 -2
- package/dist/avatar/index.d.ts +39 -1
- package/dist/back-top/src/back-top.d.vue.ts +1 -1
- package/dist/back-top/src/back-top.vue.d.ts +1 -1
- package/dist/button/index.d.ts +3 -3
- package/dist/button/src/button.css +3 -3
- package/dist/button/src/button.d.vue.ts +1 -1
- package/dist/button/src/button.vue +3 -3
- package/dist/button/src/button.vue.d.ts +1 -1
- package/dist/calendar/src/calendar.d.vue.ts +2 -2
- package/dist/calendar/src/calendar.vue.d.ts +2 -2
- package/dist/cascader/src/cascader-panel.d.vue.ts +2 -2
- package/dist/cascader/src/cascader-panel.vue.d.ts +2 -2
- package/dist/checkbox/index.d.ts +3 -3
- package/dist/checkbox/src/checkbox-group.d.vue.ts +1 -1
- package/dist/checkbox/src/checkbox-group.vue +13 -1
- package/dist/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/dist/checkbox/src/checkbox.d.ts +12 -0
- package/dist/col/src/col.d.vue.ts +4 -4
- package/dist/col/src/col.vue.d.ts +4 -4
- package/dist/color-picker/src/color-picker.d.vue.ts +1 -1
- package/dist/color-picker/src/color-picker.vue.d.ts +1 -1
- package/dist/component.d.ts +63 -0
- package/dist/date-picker/src/date-picker.d.vue.ts +4 -4
- package/dist/date-picker/src/date-picker.vue.d.ts +4 -4
- package/dist/descriptions/src/description-item.d.vue.ts +1 -1
- package/dist/descriptions/src/description-item.vue.d.ts +1 -1
- package/dist/dialog/src/dialog.d.vue.ts +6 -6
- package/dist/dialog/src/dialog.vue.d.ts +6 -6
- package/dist/drawer/src/drawer.d.vue.ts +3 -3
- package/dist/drawer/src/drawer.vue.d.ts +3 -3
- package/dist/dropdown/src/dropdown-item.d.vue.ts +1 -1
- package/dist/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/dist/dropdown/src/dropdown.d.vue.ts +8 -8
- package/dist/dropdown/src/dropdown.vue.d.ts +8 -8
- package/dist/form/__tests__/form-schema.test.cjs +477 -24
- package/dist/form/__tests__/form-schema.test.mjs +277 -57
- package/dist/form/index.cjs +12 -0
- package/dist/form/index.d.ts +1 -2
- package/dist/form/index.mjs +1 -0
- package/dist/form/src/form-item.d.vue.ts +2 -1
- package/dist/form/src/form-item.vue +3 -1
- package/dist/form/src/form-item.vue.d.ts +2 -1
- package/dist/form/src/form-schema.cjs +2 -1
- package/dist/form/src/form-schema.d.ts +124 -19
- package/dist/form/src/form-schema.d.vue.ts +69 -19
- package/dist/form/src/form-schema.mjs +2 -1
- package/dist/form/src/form-schema.vue +522 -160
- package/dist/form/src/form-schema.vue.d.ts +69 -19
- package/dist/form/src/form.cjs +7 -0
- package/dist/form/src/form.d.ts +20 -0
- package/dist/form/src/form.d.vue.ts +10 -1
- package/dist/form/src/form.mjs +7 -0
- package/dist/form/src/form.vue +22 -10
- package/dist/form/src/form.vue.d.ts +10 -1
- package/dist/grid/src/grid.d.vue.ts +1 -1
- package/dist/grid/src/grid.vue.d.ts +1 -1
- package/dist/icon/src/icons/index.cjs +122 -2
- package/dist/icon/src/icons/index.d.ts +24 -0
- package/dist/icon/src/icons/index.mjs +145 -1
- package/dist/image/index.d.ts +356 -2
- package/dist/image/src/image-viewer.d.vue.ts +3 -3
- package/dist/image/src/image-viewer.vue.d.ts +3 -3
- package/dist/image/src/image.d.vue.ts +4 -4
- package/dist/image/src/image.vue.d.ts +4 -4
- package/dist/index.cjs +193 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.mjs +49 -1
- package/dist/input/index.d.ts +18 -18
- package/dist/input/src/input.d.vue.ts +6 -6
- package/dist/input/src/input.vue.d.ts +6 -6
- package/dist/input-tag/src/input-tag.d.vue.ts +2 -2
- package/dist/input-tag/src/input-tag.vue.d.ts +2 -2
- package/dist/mention/src/mention.d.vue.ts +8 -8
- package/dist/mention/src/mention.vue.d.ts +8 -8
- package/dist/menu/src/menu.d.vue.ts +4 -4
- package/dist/menu/src/menu.vue.d.ts +4 -4
- package/dist/message/src/message.d.vue.ts +1 -1
- package/dist/message/src/message.vue.d.ts +1 -1
- package/dist/popconfirm/src/popconfirm.d.vue.ts +5 -5
- package/dist/popconfirm/src/popconfirm.vue.d.ts +5 -5
- package/dist/popover/src/popover.d.vue.ts +4 -4
- package/dist/popover/src/popover.vue.d.ts +4 -4
- package/dist/progress/src/progress.d.vue.ts +1 -1
- package/dist/progress/src/progress.vue.d.ts +1 -1
- package/dist/radio/src/radio-group.d.vue.ts +1 -1
- package/dist/radio/src/radio-group.vue +25 -4
- package/dist/radio/src/radio-group.vue.d.ts +1 -1
- package/dist/radio/src/radio.d.ts +12 -0
- package/dist/rate/src/rate.d.vue.ts +1 -1
- package/dist/rate/src/rate.vue.d.ts +1 -1
- package/dist/select/src/select.d.vue.ts +1 -1
- package/dist/select/src/select.vue.d.ts +1 -1
- package/dist/skeleton/src/skeleton.d.vue.ts +1 -1
- package/dist/skeleton/src/skeleton.vue.d.ts +1 -1
- package/dist/slider/src/slider.d.vue.ts +1 -1
- package/dist/slider/src/slider.vue.d.ts +1 -1
- package/dist/steps/src/step.d.vue.ts +1 -1
- package/dist/steps/src/step.vue.d.ts +1 -1
- package/dist/switch/src/switch.d.vue.ts +2 -2
- package/dist/switch/src/switch.vue.d.ts +2 -2
- package/dist/table/__tests__/table.perf.test.cjs +2 -2
- package/dist/table/__tests__/table.perf.test.mjs +2 -2
- package/dist/table/__tests__/table.test.cjs +18 -0
- package/dist/table/__tests__/table.test.mjs +18 -0
- package/dist/table/__tests__/use-table-import.test.cjs +6 -0
- package/dist/table/__tests__/use-table-import.test.mjs +8 -1
- package/dist/table/src/table-column.d.vue.ts +1 -1
- package/dist/table/src/table-column.vue.d.ts +1 -1
- package/dist/table/src/table.d.vue.ts +1 -1
- package/dist/table/src/table.vue.d.ts +1 -1
- package/dist/tabs/src/tab-pane.d.vue.ts +1 -1
- package/dist/tabs/src/tab-pane.vue.d.ts +1 -1
- package/dist/tabs/src/tabs.d.vue.ts +2 -2
- package/dist/tabs/src/tabs.vue.d.ts +2 -2
- package/dist/tooltip/index.d.ts +7 -7
- package/dist/tooltip/src/tooltip.d.vue.ts +7 -7
- package/dist/tooltip/src/tooltip.vue.d.ts +7 -7
- package/dist/tree/src/tree.d.vue.ts +1 -1
- package/dist/tree/src/tree.vue.d.ts +1 -1
- package/dist/tree-select/src/tree-select.d.vue.ts +3 -3
- package/dist/tree-select/src/tree-select.vue.d.ts +3 -3
- package/dist/upload/src/upload.d.vue.ts +1 -1
- package/dist/upload/src/upload.vue.d.ts +1 -1
- package/package.json +8 -5
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type AiSuggestion } from './ai-welcome';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_7: {}, __VLS_9: {}, __VLS_15: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
title?: (props: typeof __VLS_7) => any;
|
|
7
|
+
} & {
|
|
8
|
+
description?: (props: typeof __VLS_9) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_15) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
readonly title: {
|
|
14
|
+
readonly type: StringConstructor;
|
|
15
|
+
readonly default: "";
|
|
16
|
+
};
|
|
17
|
+
readonly description: {
|
|
18
|
+
readonly type: StringConstructor;
|
|
19
|
+
readonly default: "";
|
|
20
|
+
};
|
|
21
|
+
readonly suggestions: {
|
|
22
|
+
readonly type: import("vue").PropType<AiSuggestion[]>;
|
|
23
|
+
readonly default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
readonly showIcon: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: true;
|
|
28
|
+
};
|
|
29
|
+
readonly icon: {
|
|
30
|
+
readonly type: StringConstructor;
|
|
31
|
+
readonly default: "sparkles";
|
|
32
|
+
};
|
|
33
|
+
readonly themeOverrides: {
|
|
34
|
+
readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
|
|
35
|
+
readonly default: undefined;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
38
|
+
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
39
|
+
readonly icon: string;
|
|
40
|
+
readonly title: string;
|
|
41
|
+
readonly description: string;
|
|
42
|
+
readonly suggestions: AiSuggestion[];
|
|
43
|
+
readonly showIcon: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -81,21 +81,21 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
81
81
|
};
|
|
82
82
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
83
83
|
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
84
|
-
readonly type: "error" | "
|
|
84
|
+
readonly type: "error" | "info" | "warning" | "success";
|
|
85
85
|
readonly center: boolean;
|
|
86
86
|
readonly icon: string | import("vue").Component;
|
|
87
87
|
readonly title: string;
|
|
88
|
-
readonly description: string;
|
|
89
88
|
readonly effect: "dark" | "light" | "outline" | "glass";
|
|
89
|
+
readonly scrollable: boolean;
|
|
90
|
+
readonly description: string;
|
|
91
|
+
readonly showProgress: boolean;
|
|
92
|
+
readonly showIcon: boolean;
|
|
90
93
|
readonly closable: boolean;
|
|
91
94
|
readonly closeText: string;
|
|
92
95
|
readonly closeIcon: string | import("vue").Component;
|
|
93
|
-
readonly showIcon: boolean;
|
|
94
|
-
readonly scrollable: boolean;
|
|
95
96
|
readonly scrollSpeed: number;
|
|
96
97
|
readonly pauseOnHover: boolean;
|
|
97
98
|
readonly duration: number;
|
|
98
|
-
readonly showProgress: boolean;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
100
100
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
101
101
|
export default _default;
|
|
@@ -81,21 +81,21 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
81
81
|
};
|
|
82
82
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
83
83
|
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
84
|
-
readonly type: "error" | "
|
|
84
|
+
readonly type: "error" | "info" | "warning" | "success";
|
|
85
85
|
readonly center: boolean;
|
|
86
86
|
readonly icon: string | import("vue").Component;
|
|
87
87
|
readonly title: string;
|
|
88
|
-
readonly description: string;
|
|
89
88
|
readonly effect: "dark" | "light" | "outline" | "glass";
|
|
89
|
+
readonly scrollable: boolean;
|
|
90
|
+
readonly description: string;
|
|
91
|
+
readonly showProgress: boolean;
|
|
92
|
+
readonly showIcon: boolean;
|
|
90
93
|
readonly closable: boolean;
|
|
91
94
|
readonly closeText: string;
|
|
92
95
|
readonly closeIcon: string | import("vue").Component;
|
|
93
|
-
readonly showIcon: boolean;
|
|
94
|
-
readonly scrollable: boolean;
|
|
95
96
|
readonly scrollSpeed: number;
|
|
96
97
|
readonly pauseOnHover: boolean;
|
|
97
98
|
readonly duration: number;
|
|
98
|
-
readonly showProgress: boolean;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
100
100
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
101
101
|
export default _default;
|
|
@@ -43,15 +43,15 @@ declare const __VLS_component: import("vue").DefineComponent<AutocompleteProps,
|
|
|
43
43
|
teleported: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
size: import("./autocomplete").AutocompleteSize;
|
|
46
|
+
placement: import("./autocomplete").AutocompletePlacement;
|
|
47
|
+
autofocus: boolean;
|
|
46
48
|
clearable: boolean;
|
|
47
49
|
triggerOnFocus: boolean;
|
|
48
50
|
debounce: number;
|
|
49
|
-
placement: import("./autocomplete").AutocompletePlacement;
|
|
50
51
|
valueKey: string;
|
|
51
52
|
fitInputWidth: boolean;
|
|
52
53
|
highlightFirstItem: boolean;
|
|
53
54
|
validateEvent: boolean;
|
|
54
|
-
autofocus: boolean;
|
|
55
55
|
autocomplete: string;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -43,15 +43,15 @@ declare const __VLS_component: import("vue").DefineComponent<AutocompleteProps,
|
|
|
43
43
|
teleported: boolean;
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
size: import("./autocomplete").AutocompleteSize;
|
|
46
|
+
placement: import("./autocomplete").AutocompletePlacement;
|
|
47
|
+
autofocus: boolean;
|
|
46
48
|
clearable: boolean;
|
|
47
49
|
triggerOnFocus: boolean;
|
|
48
50
|
debounce: number;
|
|
49
|
-
placement: import("./autocomplete").AutocompletePlacement;
|
|
50
51
|
valueKey: string;
|
|
51
52
|
fitInputWidth: boolean;
|
|
52
53
|
highlightFirstItem: boolean;
|
|
53
54
|
validateEvent: boolean;
|
|
54
|
-
autofocus: boolean;
|
|
55
55
|
autocomplete: string;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
package/dist/avatar/index.d.ts
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
export declare const YhAvatar:
|
|
1
|
+
export declare const YhAvatar: import("@yh-ui/utils").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/avatar").AvatarProps> & Readonly<{
|
|
3
|
+
onError?: ((event: Event) => any) | undefined;
|
|
4
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
error: (event: Event) => any;
|
|
6
|
+
}, import("vue").PublicProps, {
|
|
7
|
+
size: import("./src/avatar").AvatarSize;
|
|
8
|
+
shape: import("./src/avatar").AvatarShape;
|
|
9
|
+
fit: import("./src/avatar").AvatarFit;
|
|
10
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
11
|
+
P: {};
|
|
12
|
+
B: {};
|
|
13
|
+
D: {};
|
|
14
|
+
C: {};
|
|
15
|
+
M: {};
|
|
16
|
+
Defaults: {};
|
|
17
|
+
}, Readonly<import("./src/avatar").AvatarProps> & Readonly<{
|
|
18
|
+
onError?: ((event: Event) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, {
|
|
20
|
+
size: import("./src/avatar").AvatarSize;
|
|
21
|
+
shape: import("./src/avatar").AvatarShape;
|
|
22
|
+
fit: import("./src/avatar").AvatarFit;
|
|
23
|
+
}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./src/avatar").AvatarProps> & Readonly<{
|
|
28
|
+
onError?: ((event: Event) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
error: (event: Event) => any;
|
|
31
|
+
}, string, {
|
|
32
|
+
size: import("./src/avatar").AvatarSize;
|
|
33
|
+
shape: import("./src/avatar").AvatarShape;
|
|
34
|
+
fit: import("./src/avatar").AvatarFit;
|
|
35
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
36
|
+
$slots: {
|
|
37
|
+
default?: (props: {}) => any;
|
|
38
|
+
};
|
|
39
|
+
})> & Record<string, unknown>;
|
|
2
40
|
export default YhAvatar;
|
|
3
41
|
export type { AvatarProps, AvatarEmits, AvatarSlots } from './src/avatar';
|
|
@@ -40,8 +40,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
40
40
|
readonly target: string;
|
|
41
41
|
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
42
42
|
readonly right: number;
|
|
43
|
-
readonly duration: number;
|
|
44
43
|
readonly showProgress: boolean;
|
|
44
|
+
readonly duration: number;
|
|
45
45
|
readonly visibilityHeight: number;
|
|
46
46
|
readonly progressColor: string;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -40,8 +40,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
40
40
|
readonly target: string;
|
|
41
41
|
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
42
42
|
readonly right: number;
|
|
43
|
-
readonly duration: number;
|
|
44
43
|
readonly showProgress: boolean;
|
|
44
|
+
readonly duration: number;
|
|
45
45
|
readonly visibilityHeight: number;
|
|
46
46
|
readonly progressColor: string;
|
|
47
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/button/index.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ export declare const YhButton: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
21
21
|
round: boolean;
|
|
22
22
|
block: boolean;
|
|
23
23
|
circle: boolean;
|
|
24
|
-
autofocus: boolean;
|
|
25
24
|
loading: boolean;
|
|
26
25
|
plain: boolean;
|
|
27
26
|
nativeType: import("./src/button").ButtonNativeType;
|
|
27
|
+
autofocus: boolean;
|
|
28
28
|
iconPosition: import("./src/button").IconPosition;
|
|
29
29
|
tag: string | import("vue").Component;
|
|
30
30
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -49,10 +49,10 @@ export declare const YhButton: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
49
49
|
round: boolean;
|
|
50
50
|
block: boolean;
|
|
51
51
|
circle: boolean;
|
|
52
|
-
autofocus: boolean;
|
|
53
52
|
loading: boolean;
|
|
54
53
|
plain: boolean;
|
|
55
54
|
nativeType: import("./src/button").ButtonNativeType;
|
|
55
|
+
autofocus: boolean;
|
|
56
56
|
iconPosition: import("./src/button").IconPosition;
|
|
57
57
|
tag: string | import("vue").Component;
|
|
58
58
|
}>;
|
|
@@ -76,10 +76,10 @@ export declare const YhButton: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
76
76
|
round: boolean;
|
|
77
77
|
block: boolean;
|
|
78
78
|
circle: boolean;
|
|
79
|
-
autofocus: boolean;
|
|
80
79
|
loading: boolean;
|
|
81
80
|
plain: boolean;
|
|
82
81
|
nativeType: import("./src/button").ButtonNativeType;
|
|
82
|
+
autofocus: boolean;
|
|
83
83
|
iconPosition: import("./src/button").IconPosition;
|
|
84
84
|
tag: string | import("vue").Component;
|
|
85
85
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -539,15 +539,15 @@ html.dark {
|
|
|
539
539
|
}
|
|
540
540
|
.yh-button.is-text {
|
|
541
541
|
border-color: transparent !important;
|
|
542
|
-
background-color: transparent !important;
|
|
542
|
+
background-color: var(--yh-button-bg-color, transparent) !important;
|
|
543
543
|
padding-left: 0;
|
|
544
544
|
padding-right: 0;
|
|
545
545
|
}
|
|
546
546
|
.yh-button.is-text:hover {
|
|
547
|
-
background-color: var(--yh-fill-color-light) !important;
|
|
547
|
+
background-color: var(--yh-button-hover-bg-color, var(--yh-fill-color-light)) !important;
|
|
548
548
|
}
|
|
549
549
|
.yh-button.is-text:active {
|
|
550
|
-
background-color: var(--yh-fill-color) !important;
|
|
550
|
+
background-color: var(--yh-button-active-bg-color, var(--yh-fill-color)) !important;
|
|
551
551
|
}
|
|
552
552
|
.yh-button.is-text.is-disabled {
|
|
553
553
|
background-color: transparent !important;
|
|
@@ -28,10 +28,10 @@ declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {
|
|
|
28
28
|
round: boolean;
|
|
29
29
|
block: boolean;
|
|
30
30
|
circle: boolean;
|
|
31
|
-
autofocus: boolean;
|
|
32
31
|
loading: boolean;
|
|
33
32
|
plain: boolean;
|
|
34
33
|
nativeType: import("./button").ButtonNativeType;
|
|
34
|
+
autofocus: boolean;
|
|
35
35
|
iconPosition: import("./button").IconPosition;
|
|
36
36
|
tag: string | import("vue").Component;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -685,15 +685,15 @@ html.dark {
|
|
|
685
685
|
}
|
|
686
686
|
.yh-button.is-text {
|
|
687
687
|
border-color: transparent !important;
|
|
688
|
-
background-color: transparent !important;
|
|
688
|
+
background-color: var(--yh-button-bg-color, transparent) !important;
|
|
689
689
|
padding-left: 0;
|
|
690
690
|
padding-right: 0;
|
|
691
691
|
}
|
|
692
692
|
.yh-button.is-text:hover {
|
|
693
|
-
background-color: var(--yh-fill-color-light) !important;
|
|
693
|
+
background-color: var(--yh-button-hover-bg-color, var(--yh-fill-color-light)) !important;
|
|
694
694
|
}
|
|
695
695
|
.yh-button.is-text:active {
|
|
696
|
-
background-color: var(--yh-fill-color) !important;
|
|
696
|
+
background-color: var(--yh-button-active-bg-color, var(--yh-fill-color)) !important;
|
|
697
697
|
}
|
|
698
698
|
.yh-button.is-text.is-disabled {
|
|
699
699
|
background-color: transparent !important;
|
|
@@ -28,10 +28,10 @@ declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {
|
|
|
28
28
|
round: boolean;
|
|
29
29
|
block: boolean;
|
|
30
30
|
circle: boolean;
|
|
31
|
-
autofocus: boolean;
|
|
32
31
|
loading: boolean;
|
|
33
32
|
plain: boolean;
|
|
34
33
|
nativeType: import("./button").ButtonNativeType;
|
|
34
|
+
autofocus: boolean;
|
|
35
35
|
iconPosition: import("./button").IconPosition;
|
|
36
36
|
tag: string | import("vue").Component;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -524,8 +524,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
524
524
|
readonly disabled: boolean;
|
|
525
525
|
readonly themeOverrides: import("@yh-ui/theme").CalendarThemeVars;
|
|
526
526
|
readonly size: "small" | "default" | "large";
|
|
527
|
-
readonly
|
|
527
|
+
readonly fullscreen: boolean;
|
|
528
528
|
readonly mode: import("./calendar").CalendarMode;
|
|
529
|
+
readonly modelValue: Date;
|
|
529
530
|
readonly defaultValue: Date;
|
|
530
531
|
readonly firstDayOfWeek: number;
|
|
531
532
|
readonly readonly: boolean;
|
|
@@ -533,7 +534,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
533
534
|
readonly showHoliday: boolean;
|
|
534
535
|
readonly holidays: HolidayMap;
|
|
535
536
|
readonly showWeekNumber: boolean;
|
|
536
|
-
readonly fullscreen: boolean;
|
|
537
537
|
readonly selectionMode: "range" | "multiple" | "single";
|
|
538
538
|
readonly rangeValue: import("./calendar").CalendarRangeValue;
|
|
539
539
|
readonly multipleValue: Date[];
|
|
@@ -524,8 +524,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
524
524
|
readonly disabled: boolean;
|
|
525
525
|
readonly themeOverrides: import("@yh-ui/theme").CalendarThemeVars;
|
|
526
526
|
readonly size: "small" | "default" | "large";
|
|
527
|
-
readonly
|
|
527
|
+
readonly fullscreen: boolean;
|
|
528
528
|
readonly mode: import("./calendar").CalendarMode;
|
|
529
|
+
readonly modelValue: Date;
|
|
529
530
|
readonly defaultValue: Date;
|
|
530
531
|
readonly firstDayOfWeek: number;
|
|
531
532
|
readonly readonly: boolean;
|
|
@@ -533,7 +534,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
533
534
|
readonly showHoliday: boolean;
|
|
534
535
|
readonly holidays: HolidayMap;
|
|
535
536
|
readonly showWeekNumber: boolean;
|
|
536
|
-
readonly fullscreen: boolean;
|
|
537
537
|
readonly selectionMode: "range" | "multiple" | "single";
|
|
538
538
|
readonly rangeValue: import("./calendar").CalendarRangeValue;
|
|
539
539
|
readonly multipleValue: Date[];
|
|
@@ -18,11 +18,11 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
default?: (props: typeof __VLS_5) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
-
expand: (option: CascaderOption, level: number) => any;
|
|
22
21
|
check: (option: CascaderOption, path: (string | number)[]) => any;
|
|
22
|
+
expand: (option: CascaderOption, level: number) => any;
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
onExpand?: ((option: CascaderOption, level: number) => any) | undefined;
|
|
25
24
|
onCheck?: ((option: CascaderOption, path: (string | number)[]) => any) | undefined;
|
|
25
|
+
onExpand?: ((option: CascaderOption, level: number) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
options: CascaderOption[];
|
|
28
28
|
expandedPath: (string | number)[];
|
|
@@ -18,11 +18,11 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
default?: (props: typeof __VLS_5) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
-
expand: (option: CascaderOption, level: number) => any;
|
|
22
21
|
check: (option: CascaderOption, path: (string | number)[]) => any;
|
|
22
|
+
expand: (option: CascaderOption, level: number) => any;
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
onExpand?: ((option: CascaderOption, level: number) => any) | undefined;
|
|
25
24
|
onCheck?: ((option: CascaderOption, path: (string | number)[]) => any) | undefined;
|
|
25
|
+
onExpand?: ((option: CascaderOption, level: number) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
options: CascaderOption[];
|
|
28
28
|
expandedPath: (string | number)[];
|
package/dist/checkbox/index.d.ts
CHANGED
|
@@ -84,9 +84,9 @@ export declare const YhCheckboxGroup: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
84
84
|
"update:modelValue": (value: import("./src/checkbox").CheckboxValueType[]) => any;
|
|
85
85
|
}, import("vue").PublicProps, {
|
|
86
86
|
disabled: boolean;
|
|
87
|
+
tag: string | import("vue").Component;
|
|
87
88
|
modelValue: import("./src/checkbox").CheckboxValueType[];
|
|
88
89
|
validateEvent: boolean;
|
|
89
|
-
tag: string | import("vue").Component;
|
|
90
90
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
91
91
|
P: {};
|
|
92
92
|
B: {};
|
|
@@ -99,9 +99,9 @@ export declare const YhCheckboxGroup: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
99
99
|
"onUpdate:modelValue"?: ((value: import("./src/checkbox").CheckboxValueType[]) => any) | undefined;
|
|
100
100
|
}>, {}, {}, {}, {}, {
|
|
101
101
|
disabled: boolean;
|
|
102
|
+
tag: string | import("vue").Component;
|
|
102
103
|
modelValue: import("./src/checkbox").CheckboxValueType[];
|
|
103
104
|
validateEvent: boolean;
|
|
104
|
-
tag: string | import("vue").Component;
|
|
105
105
|
}>;
|
|
106
106
|
__isFragment?: never;
|
|
107
107
|
__isTeleport?: never;
|
|
@@ -114,9 +114,9 @@ export declare const YhCheckboxGroup: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
114
114
|
"update:modelValue": (value: import("./src/checkbox").CheckboxValueType[]) => any;
|
|
115
115
|
}, string, {
|
|
116
116
|
disabled: boolean;
|
|
117
|
+
tag: string | import("vue").Component;
|
|
117
118
|
modelValue: import("./src/checkbox").CheckboxValueType[];
|
|
118
119
|
validateEvent: boolean;
|
|
119
|
-
tag: string | import("vue").Component;
|
|
120
120
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
121
121
|
$slots: {
|
|
122
122
|
default?: (props: {}) => any;
|
|
@@ -11,9 +11,9 @@ declare const __VLS_component: import("vue").DefineComponent<CheckboxGroupProps,
|
|
|
11
11
|
"onUpdate:modelValue"?: ((value: CheckboxValueType[]) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
disabled: boolean;
|
|
14
|
+
tag: string | import("vue").Component;
|
|
14
15
|
modelValue: CheckboxValueType[];
|
|
15
16
|
validateEvent: boolean;
|
|
16
|
-
tag: string | import("vue").Component;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
19
|
export default _default;
|
|
@@ -3,12 +3,14 @@ import { computed, provide, toRefs } from "vue";
|
|
|
3
3
|
import { useNamespace, useFormItem, useId } from "@yh-ui/hooks";
|
|
4
4
|
import { useComponentTheme } from "@yh-ui/theme";
|
|
5
5
|
import { useConfig } from "@yh-ui/hooks";
|
|
6
|
+
import YhCheckbox from "./checkbox.vue";
|
|
6
7
|
import { checkboxGroupContextKey } from "./checkbox";
|
|
7
8
|
defineOptions({
|
|
8
9
|
name: "YhCheckboxGroup"
|
|
9
10
|
});
|
|
10
11
|
const props = defineProps({
|
|
11
12
|
modelValue: { type: Array, required: false, default: () => [] },
|
|
13
|
+
options: { type: Array, required: false },
|
|
12
14
|
size: { type: null, required: false },
|
|
13
15
|
disabled: { type: Boolean, required: false, default: false },
|
|
14
16
|
min: { type: Number, required: false },
|
|
@@ -71,7 +73,17 @@ const groupClasses = computed(() => [ns.b()]);
|
|
|
71
73
|
:aria-invalid="formItem?.validateStatus === 'error'"
|
|
72
74
|
:aria-describedby="formItem?.validateStatus === 'error' ? formItem?.errorId : void 0"
|
|
73
75
|
>
|
|
74
|
-
<slot
|
|
76
|
+
<slot>
|
|
77
|
+
<template v-if="options && options.length">
|
|
78
|
+
<yh-checkbox
|
|
79
|
+
v-for="item in options"
|
|
80
|
+
:key="String(item.value)"
|
|
81
|
+
:value="item.value"
|
|
82
|
+
:label="item.label"
|
|
83
|
+
:disabled="item.disabled"
|
|
84
|
+
/>
|
|
85
|
+
</template>
|
|
86
|
+
</slot>
|
|
75
87
|
</component>
|
|
76
88
|
</template>
|
|
77
89
|
|
|
@@ -11,9 +11,9 @@ declare const __VLS_component: import("vue").DefineComponent<CheckboxGroupProps,
|
|
|
11
11
|
"onUpdate:modelValue"?: ((value: CheckboxValueType[]) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
disabled: boolean;
|
|
14
|
+
tag: string | import("vue").Component;
|
|
14
15
|
modelValue: CheckboxValueType[];
|
|
15
16
|
validateEvent: boolean;
|
|
16
|
-
tag: string | import("vue").Component;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
19
|
export default _default;
|
|
@@ -122,6 +122,14 @@ export interface CheckboxExpose {
|
|
|
122
122
|
*/
|
|
123
123
|
blur: () => void;
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* CheckboxGroup 选项定义
|
|
127
|
+
*/
|
|
128
|
+
export interface CheckboxGroupOption {
|
|
129
|
+
value: CheckboxValueType;
|
|
130
|
+
label?: string;
|
|
131
|
+
disabled?: boolean;
|
|
132
|
+
}
|
|
125
133
|
/**
|
|
126
134
|
* CheckboxGroup Props 定义
|
|
127
135
|
*/
|
|
@@ -130,6 +138,10 @@ export interface CheckboxGroupProps {
|
|
|
130
138
|
* @description 绑定值
|
|
131
139
|
*/
|
|
132
140
|
modelValue?: CheckboxValueType[];
|
|
141
|
+
/**
|
|
142
|
+
* @description 复选配置项
|
|
143
|
+
*/
|
|
144
|
+
options?: CheckboxGroupOption[];
|
|
133
145
|
/**
|
|
134
146
|
* @description 复选框组尺寸
|
|
135
147
|
*/
|
|
@@ -148,20 +148,20 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
148
148
|
readonly push: number;
|
|
149
149
|
readonly span: number;
|
|
150
150
|
readonly tag: string;
|
|
151
|
-
readonly
|
|
152
|
-
readonly xs: number | {
|
|
151
|
+
readonly md: number | {
|
|
153
152
|
span?: number;
|
|
154
153
|
offset?: number;
|
|
155
154
|
push?: number;
|
|
156
155
|
pull?: number;
|
|
157
156
|
};
|
|
158
|
-
readonly
|
|
157
|
+
readonly pull: number;
|
|
158
|
+
readonly xs: number | {
|
|
159
159
|
span?: number;
|
|
160
160
|
offset?: number;
|
|
161
161
|
push?: number;
|
|
162
162
|
pull?: number;
|
|
163
163
|
};
|
|
164
|
-
readonly
|
|
164
|
+
readonly sm: number | {
|
|
165
165
|
span?: number;
|
|
166
166
|
offset?: number;
|
|
167
167
|
push?: number;
|
|
@@ -148,20 +148,20 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
148
148
|
readonly push: number;
|
|
149
149
|
readonly span: number;
|
|
150
150
|
readonly tag: string;
|
|
151
|
-
readonly
|
|
152
|
-
readonly xs: number | {
|
|
151
|
+
readonly md: number | {
|
|
153
152
|
span?: number;
|
|
154
153
|
offset?: number;
|
|
155
154
|
push?: number;
|
|
156
155
|
pull?: number;
|
|
157
156
|
};
|
|
158
|
-
readonly
|
|
157
|
+
readonly pull: number;
|
|
158
|
+
readonly xs: number | {
|
|
159
159
|
span?: number;
|
|
160
160
|
offset?: number;
|
|
161
161
|
push?: number;
|
|
162
162
|
pull?: number;
|
|
163
163
|
};
|
|
164
|
-
readonly
|
|
164
|
+
readonly sm: number | {
|
|
165
165
|
span?: number;
|
|
166
166
|
offset?: number;
|
|
167
167
|
push?: number;
|
|
@@ -46,8 +46,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
readonly disabled: boolean;
|
|
47
47
|
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
48
48
|
readonly size: "small" | "default" | "large";
|
|
49
|
-
readonly modelValue: string;
|
|
50
49
|
readonly popperClass: string;
|
|
50
|
+
readonly modelValue: string;
|
|
51
51
|
readonly showAlpha: boolean;
|
|
52
52
|
readonly colorFormat: "hex" | "rgb" | "hsl" | "hsv";
|
|
53
53
|
readonly predefine: string[];
|
|
@@ -46,8 +46,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
readonly disabled: boolean;
|
|
47
47
|
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
48
48
|
readonly size: "small" | "default" | "large";
|
|
49
|
-
readonly modelValue: string;
|
|
50
49
|
readonly popperClass: string;
|
|
50
|
+
readonly modelValue: string;
|
|
51
51
|
readonly showAlpha: boolean;
|
|
52
52
|
readonly colorFormat: "hex" | "rgb" | "hsl" | "hsv";
|
|
53
53
|
readonly predefine: string[];
|