@poppy-ui/vue 0.0.0-dev.36.93ba5b2
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/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs +2 -0
- package/dist/ClassWrapper-BNZO3mhP.cjs.map +1 -0
- package/dist/ClassWrapper-DdnnHfAj.js +24 -0
- package/dist/ClassWrapper-DdnnHfAj.js.map +1 -0
- package/dist/Toast-DuytECg8.cjs +2 -0
- package/dist/Toast-DuytECg8.cjs.map +1 -0
- package/dist/Toast-fSQWLl0R.js +63 -0
- package/dist/Toast-fSQWLl0R.js.map +1 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/_plugin-vue_export-helper-BTmtiIyf.cjs +1 -0
- package/dist/build-class.util-Cp-ZBFgO.js +1730 -0
- package/dist/build-class.util-Cp-ZBFgO.js.map +1 -0
- package/dist/build-class.util-Lo1-M_t1.cjs +2 -0
- package/dist/build-class.util-Lo1-M_t1.cjs.map +1 -0
- package/dist/components/ClassWrapper.d.ts +27 -0
- package/dist/components/ClassWrapper.d.ts.map +1 -0
- package/dist/components/actions/button/Button.d.ts +21 -0
- package/dist/components/actions/button/Button.d.ts.map +1 -0
- package/dist/components/actions/button/button.context.d.ts +2 -0
- package/dist/components/actions/button/button.context.d.ts.map +1 -0
- package/dist/components/actions/button/button.props.d.ts +58 -0
- package/dist/components/actions/button/button.props.d.ts.map +1 -0
- package/dist/components/actions/button/button.types.d.ts +7 -0
- package/dist/components/actions/button/button.types.d.ts.map +1 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts +25 -0
- package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts +2 -0
- package/dist/components/actions/dropdown/dropdown.context.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts +60 -0
- package/dist/components/actions/dropdown/dropdown.props.d.ts.map +1 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts +4 -0
- package/dist/components/actions/dropdown/dropdown.types.d.ts.map +1 -0
- package/dist/components/actions/fab/Fab.d.ts +16 -0
- package/dist/components/actions/fab/Fab.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.context.d.ts +2 -0
- package/dist/components/actions/fab/fab.context.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.props.d.ts +11 -0
- package/dist/components/actions/fab/fab.props.d.ts.map +1 -0
- package/dist/components/actions/fab/fab.types.d.ts +2 -0
- package/dist/components/actions/fab/fab.types.d.ts.map +1 -0
- package/dist/components/actions/modal/Modal.d.ts +42 -0
- package/dist/components/actions/modal/Modal.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.context.d.ts +2 -0
- package/dist/components/actions/modal/modal.context.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.props.d.ts +31 -0
- package/dist/components/actions/modal/modal.props.d.ts.map +1 -0
- package/dist/components/actions/modal/modal.types.d.ts +2 -0
- package/dist/components/actions/modal/modal.types.d.ts.map +1 -0
- package/dist/components/actions/public.d.ts +6 -0
- package/dist/components/actions/public.d.ts.map +1 -0
- package/dist/components/actions/public.es.js +323 -0
- package/dist/components/actions/public.es.js.map +1 -0
- package/dist/components/actions/public.types.d.ts +11 -0
- package/dist/components/actions/public.types.d.ts.map +1 -0
- package/dist/components/actions/public.umd.js +2 -0
- package/dist/components/actions/public.umd.js.map +1 -0
- package/dist/components/actions/swap/Swap.d.ts +36 -0
- package/dist/components/actions/swap/Swap.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.context.d.ts +2 -0
- package/dist/components/actions/swap/swap.context.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.props.d.ts +18 -0
- package/dist/components/actions/swap/swap.props.d.ts.map +1 -0
- package/dist/components/actions/swap/swap.types.d.ts +2 -0
- package/dist/components/actions/swap/swap.types.d.ts.map +1 -0
- package/dist/components/app/PoppyApp.d.ts +14 -0
- package/dist/components/app/PoppyApp.d.ts.map +1 -0
- package/dist/components/app/public.d.ts +2 -0
- package/dist/components/app/public.d.ts.map +1 -0
- package/dist/components/app/public.es.js +42 -0
- package/dist/components/app/public.es.js.map +1 -0
- package/dist/components/app/public.umd.js +2 -0
- package/dist/components/app/public.umd.js.map +1 -0
- package/dist/components/data/checkbox/Checkbox.d.ts +25 -0
- package/dist/components/data/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts +2 -0
- package/dist/components/data/checkbox/checkbox.context.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts +44 -0
- package/dist/components/data/checkbox/checkbox.props.d.ts.map +1 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts +4 -0
- package/dist/components/data/checkbox/checkbox.types.d.ts.map +1 -0
- package/dist/components/data/field-set/FieldSet.d.ts +21 -0
- package/dist/components/data/field-set/FieldSet.d.ts.map +1 -0
- package/dist/components/data/field-set/field-set.props.d.ts +20 -0
- package/dist/components/data/field-set/field-set.props.d.ts.map +1 -0
- package/dist/components/data/form/Form.d.ts +37 -0
- package/dist/components/data/form/Form.d.ts.map +1 -0
- package/dist/components/data/form/form.context.d.ts +57 -0
- package/dist/components/data/form/form.context.d.ts.map +1 -0
- package/dist/components/data/form/form.props.d.ts +28 -0
- package/dist/components/data/form/form.props.d.ts.map +1 -0
- package/dist/components/data/form/form.types.d.ts +25 -0
- package/dist/components/data/form/form.types.d.ts.map +1 -0
- package/dist/components/data/form-field/FormField.d.ts +28 -0
- package/dist/components/data/form-field/FormField.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.context.d.ts +53 -0
- package/dist/components/data/form-field/form-field.context.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.props.d.ts +37 -0
- package/dist/components/data/form-field/form-field.props.d.ts.map +1 -0
- package/dist/components/data/form-field/form-field.types.d.ts +2 -0
- package/dist/components/data/form-field/form-field.types.d.ts.map +1 -0
- package/dist/components/data/input/Input.d.ts +31 -0
- package/dist/components/data/input/Input.d.ts.map +1 -0
- package/dist/components/data/input/input.context.d.ts +2 -0
- package/dist/components/data/input/input.context.d.ts.map +1 -0
- package/dist/components/data/input/input.props.d.ts +78 -0
- package/dist/components/data/input/input.props.d.ts.map +1 -0
- package/dist/components/data/input/input.types.d.ts +6 -0
- package/dist/components/data/input/input.types.d.ts.map +1 -0
- package/dist/components/data/public.d.ts +13 -0
- package/dist/components/data/public.d.ts.map +1 -0
- package/dist/components/data/public.es.js +1816 -0
- package/dist/components/data/public.es.js.map +1 -0
- package/dist/components/data/public.types.d.ts +21 -0
- package/dist/components/data/public.types.d.ts.map +1 -0
- package/dist/components/data/public.umd.js +2 -0
- package/dist/components/data/public.umd.js.map +1 -0
- package/dist/components/data/radio/Radio.d.ts +25 -0
- package/dist/components/data/radio/Radio.d.ts.map +1 -0
- package/dist/components/data/radio/radio.context.d.ts +2 -0
- package/dist/components/data/radio/radio.context.d.ts.map +1 -0
- package/dist/components/data/radio/radio.props.d.ts +47 -0
- package/dist/components/data/radio/radio.props.d.ts.map +1 -0
- package/dist/components/data/radio/radio.types.d.ts +4 -0
- package/dist/components/data/radio/radio.types.d.ts.map +1 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts +28 -0
- package/dist/components/data/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts +13 -0
- package/dist/components/data/radio-group/radio-group.context.d.ts.map +1 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts +12 -0
- package/dist/components/data/radio-group/radio-group.props.d.ts.map +1 -0
- package/dist/components/data/rating/Rating.d.ts +26 -0
- package/dist/components/data/rating/Rating.d.ts.map +1 -0
- package/dist/components/data/rating/rating.context.d.ts +2 -0
- package/dist/components/data/rating/rating.context.d.ts.map +1 -0
- package/dist/components/data/rating/rating.props.d.ts +44 -0
- package/dist/components/data/rating/rating.props.d.ts.map +1 -0
- package/dist/components/data/rating/rating.types.d.ts +6 -0
- package/dist/components/data/rating/rating.types.d.ts.map +1 -0
- package/dist/components/data/select/Select.d.ts +79 -0
- package/dist/components/data/select/Select.d.ts.map +1 -0
- package/dist/components/data/select/select.context.d.ts +2 -0
- package/dist/components/data/select/select.context.d.ts.map +1 -0
- package/dist/components/data/select/select.props.d.ts +99 -0
- package/dist/components/data/select/select.props.d.ts.map +1 -0
- package/dist/components/data/select/select.types.d.ts +20 -0
- package/dist/components/data/select/select.types.d.ts.map +1 -0
- package/dist/components/data/slider/Slider.d.ts +29 -0
- package/dist/components/data/slider/Slider.d.ts.map +1 -0
- package/dist/components/data/slider/slider.context.d.ts +2 -0
- package/dist/components/data/slider/slider.context.d.ts.map +1 -0
- package/dist/components/data/slider/slider.props.d.ts +70 -0
- package/dist/components/data/slider/slider.props.d.ts.map +1 -0
- package/dist/components/data/slider/slider.types.d.ts +7 -0
- package/dist/components/data/slider/slider.types.d.ts.map +1 -0
- package/dist/components/data/textarea/Textarea.d.ts +22 -0
- package/dist/components/data/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.context.d.ts +2 -0
- package/dist/components/data/textarea/textarea.context.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.props.d.ts +64 -0
- package/dist/components/data/textarea/textarea.props.d.ts.map +1 -0
- package/dist/components/data/textarea/textarea.types.d.ts +5 -0
- package/dist/components/data/textarea/textarea.types.d.ts.map +1 -0
- package/dist/components/data/toggle/Toggle.d.ts +31 -0
- package/dist/components/data/toggle/Toggle.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.context.d.ts +2 -0
- package/dist/components/data/toggle/toggle.context.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.props.d.ts +38 -0
- package/dist/components/data/toggle/toggle.props.d.ts.map +1 -0
- package/dist/components/data/toggle/toggle.types.d.ts +4 -0
- package/dist/components/data/toggle/toggle.types.d.ts.map +1 -0
- package/dist/components/display/accordion/Accordion.d.ts +42 -0
- package/dist/components/display/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/display/accordion/AccordionItem.d.ts +35 -0
- package/dist/components/display/accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts +19 -0
- package/dist/components/display/accordion/accordion-item.props.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts +2 -0
- package/dist/components/display/accordion/accordion-item.types.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.context.d.ts +9 -0
- package/dist/components/display/accordion/accordion.context.d.ts.map +1 -0
- package/dist/components/display/accordion/accordion.props.d.ts +15 -0
- package/dist/components/display/accordion/accordion.props.d.ts.map +1 -0
- package/dist/components/display/avatar/Avatar.d.ts +14 -0
- package/dist/components/display/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.context.d.ts +2 -0
- package/dist/components/display/avatar/avatar.context.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.props.d.ts +45 -0
- package/dist/components/display/avatar/avatar.props.d.ts.map +1 -0
- package/dist/components/display/avatar/avatar.types.d.ts +5 -0
- package/dist/components/display/avatar/avatar.types.d.ts.map +1 -0
- package/dist/components/display/badge/Badge.d.ts +12 -0
- package/dist/components/display/badge/Badge.d.ts.map +1 -0
- package/dist/components/display/badge/badge.context.d.ts +2 -0
- package/dist/components/display/badge/badge.context.d.ts.map +1 -0
- package/dist/components/display/badge/badge.props.d.ts +20 -0
- package/dist/components/display/badge/badge.props.d.ts.map +1 -0
- package/dist/components/display/badge/badge.types.d.ts +5 -0
- package/dist/components/display/badge/badge.types.d.ts.map +1 -0
- package/dist/components/display/card/Card.d.ts +12 -0
- package/dist/components/display/card/Card.d.ts.map +1 -0
- package/dist/components/display/card/CardActions.d.ts +12 -0
- package/dist/components/display/card/CardActions.d.ts.map +1 -0
- package/dist/components/display/card/CardBody.d.ts +14 -0
- package/dist/components/display/card/CardBody.d.ts.map +1 -0
- package/dist/components/display/card/CardTitle.d.ts +14 -0
- package/dist/components/display/card/CardTitle.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.context.d.ts +2 -0
- package/dist/components/display/card/card-actions.context.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.props.d.ts +15 -0
- package/dist/components/display/card/card-actions.props.d.ts.map +1 -0
- package/dist/components/display/card/card-actions.types.d.ts +2 -0
- package/dist/components/display/card/card-actions.types.d.ts.map +1 -0
- package/dist/components/display/card/card.context.d.ts +2 -0
- package/dist/components/display/card/card.context.d.ts.map +1 -0
- package/dist/components/display/card/card.props.d.ts +30 -0
- package/dist/components/display/card/card.props.d.ts.map +1 -0
- package/dist/components/display/card/card.types.d.ts +4 -0
- package/dist/components/display/card/card.types.d.ts.map +1 -0
- package/dist/components/display/carousel/Carousel.d.ts +16 -0
- package/dist/components/display/carousel/Carousel.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.context.d.ts +2 -0
- package/dist/components/display/carousel/carousel.context.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.props.d.ts +52 -0
- package/dist/components/display/carousel/carousel.props.d.ts.map +1 -0
- package/dist/components/display/carousel/carousel.types.d.ts +3 -0
- package/dist/components/display/carousel/carousel.types.d.ts.map +1 -0
- package/dist/components/display/chat/Chat.d.ts +20 -0
- package/dist/components/display/chat/Chat.d.ts.map +1 -0
- package/dist/components/display/chat/chat.context.d.ts +2 -0
- package/dist/components/display/chat/chat.context.d.ts.map +1 -0
- package/dist/components/display/chat/chat.props.d.ts +18 -0
- package/dist/components/display/chat/chat.props.d.ts.map +1 -0
- package/dist/components/display/chat/chat.types.d.ts +3 -0
- package/dist/components/display/chat/chat.types.d.ts.map +1 -0
- package/dist/components/display/countdown/Countdown.d.ts +38 -0
- package/dist/components/display/countdown/Countdown.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.context.d.ts +2 -0
- package/dist/components/display/countdown/countdown.context.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.props.d.ts +25 -0
- package/dist/components/display/countdown/countdown.props.d.ts.map +1 -0
- package/dist/components/display/countdown/countdown.types.d.ts +23 -0
- package/dist/components/display/countdown/countdown.types.d.ts.map +1 -0
- package/dist/components/display/diff/Diff.d.ts +16 -0
- package/dist/components/display/diff/Diff.d.ts.map +1 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts +12 -0
- package/dist/components/display/hover-3d/Hover3d.d.ts.map +1 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts +9 -0
- package/dist/components/display/hover-3d/hover-3d.props.d.ts.map +1 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts +14 -0
- package/dist/components/display/hover-gallery/HoverGallery.d.ts.map +1 -0
- package/dist/components/display/kbd/Kbd.d.ts +12 -0
- package/dist/components/display/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.context.d.ts +2 -0
- package/dist/components/display/kbd/kbd.context.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.props.d.ts +12 -0
- package/dist/components/display/kbd/kbd.props.d.ts.map +1 -0
- package/dist/components/display/kbd/kbd.types.d.ts +3 -0
- package/dist/components/display/kbd/kbd.types.d.ts.map +1 -0
- package/dist/components/display/list/List.d.ts +17 -0
- package/dist/components/display/list/List.d.ts.map +1 -0
- package/dist/components/display/list/ListItem.d.ts +22 -0
- package/dist/components/display/list/ListItem.d.ts.map +1 -0
- package/dist/components/display/list/list-item.props.d.ts +17 -0
- package/dist/components/display/list/list-item.props.d.ts.map +1 -0
- package/dist/components/display/list/list.props.d.ts +8 -0
- package/dist/components/display/list/list.props.d.ts.map +1 -0
- package/dist/components/display/public.d.ts +21 -0
- package/dist/components/display/public.d.ts.map +1 -0
- package/dist/components/display/public.es.js +2 -0
- package/dist/components/display/public.types.d.ts +28 -0
- package/dist/components/display/public.types.d.ts.map +1 -0
- package/dist/components/display/public.umd.js +1 -0
- package/dist/components/display/stat/Stat.d.ts +22 -0
- package/dist/components/display/stat/Stat.d.ts.map +1 -0
- package/dist/components/display/stat/Stats.d.ts +12 -0
- package/dist/components/display/stat/Stats.d.ts.map +1 -0
- package/dist/components/display/stat/stat.context.d.ts +2 -0
- package/dist/components/display/stat/stat.context.d.ts.map +1 -0
- package/dist/components/display/stat/stat.props.d.ts +42 -0
- package/dist/components/display/stat/stat.props.d.ts.map +1 -0
- package/dist/components/display/stat/stat.types.d.ts +2 -0
- package/dist/components/display/stat/stat.types.d.ts.map +1 -0
- package/dist/components/display/stat/stats.context.d.ts +2 -0
- package/dist/components/display/stat/stats.context.d.ts.map +1 -0
- package/dist/components/display/stat/stats.props.d.ts +11 -0
- package/dist/components/display/stat/stats.props.d.ts.map +1 -0
- package/dist/components/display/stat/stats.types.d.ts +2 -0
- package/dist/components/display/stat/stats.types.d.ts.map +1 -0
- package/dist/components/display/status/Status.d.ts +5 -0
- package/dist/components/display/status/Status.d.ts.map +1 -0
- package/dist/components/display/status/status.context.d.ts +2 -0
- package/dist/components/display/status/status.context.d.ts.map +1 -0
- package/dist/components/display/status/status.props.d.ts +27 -0
- package/dist/components/display/status/status.props.d.ts.map +1 -0
- package/dist/components/display/status/status.types.d.ts +5 -0
- package/dist/components/display/status/status.types.d.ts.map +1 -0
- package/dist/components/feedback/alert/Alert.d.ts +14 -0
- package/dist/components/feedback/alert/Alert.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.context.d.ts +2 -0
- package/dist/components/feedback/alert/alert.context.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.props.d.ts +27 -0
- package/dist/components/feedback/alert/alert.props.d.ts.map +1 -0
- package/dist/components/feedback/alert/alert.types.d.ts +4 -0
- package/dist/components/feedback/alert/alert.types.d.ts.map +1 -0
- package/dist/components/feedback/loading/Loading.d.ts +5 -0
- package/dist/components/feedback/loading/Loading.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.context.d.ts +2 -0
- package/dist/components/feedback/loading/loading.context.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.props.d.ts +23 -0
- package/dist/components/feedback/loading/loading.props.d.ts.map +1 -0
- package/dist/components/feedback/loading/loading.types.d.ts +5 -0
- package/dist/components/feedback/loading/loading.types.d.ts.map +1 -0
- package/dist/components/feedback/progress/Progress.d.ts +5 -0
- package/dist/components/feedback/progress/Progress.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.context.d.ts +2 -0
- package/dist/components/feedback/progress/progress.context.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.props.d.ts +28 -0
- package/dist/components/feedback/progress/progress.props.d.ts.map +1 -0
- package/dist/components/feedback/progress/progress.types.d.ts +2 -0
- package/dist/components/feedback/progress/progress.types.d.ts.map +1 -0
- package/dist/components/feedback/public.d.ts +6 -0
- package/dist/components/feedback/public.d.ts.map +1 -0
- package/dist/components/feedback/public.es.js +128 -0
- package/dist/components/feedback/public.es.js.map +1 -0
- package/dist/components/feedback/public.types.d.ts +13 -0
- package/dist/components/feedback/public.types.d.ts.map +1 -0
- package/dist/components/feedback/public.umd.js +2 -0
- package/dist/components/feedback/public.umd.js.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.context.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts +32 -0
- package/dist/components/feedback/radial-progress/radial-progress.props.d.ts.map +1 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts +2 -0
- package/dist/components/feedback/radial-progress/radial-progress.types.d.ts.map +1 -0
- package/dist/components/feedback/toast/Toast.d.ts +12 -0
- package/dist/components/feedback/toast/Toast.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.context.d.ts +9 -0
- package/dist/components/feedback/toast/toast.context.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.props.d.ts +31 -0
- package/dist/components/feedback/toast/toast.props.d.ts.map +1 -0
- package/dist/components/feedback/toast/toast.types.d.ts +5 -0
- package/dist/components/feedback/toast/toast.types.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts +14 -0
- package/dist/components/feedback/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts +2 -0
- package/dist/components/feedback/tooltip/tooltip.context.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts +39 -0
- package/dist/components/feedback/tooltip/tooltip.props.d.ts.map +1 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts +3 -0
- package/dist/components/feedback/tooltip/tooltip.types.d.ts.map +1 -0
- package/dist/components/layout/divider/Divider.d.ts +12 -0
- package/dist/components/layout/divider/Divider.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.context.d.ts +2 -0
- package/dist/components/layout/divider/divider.context.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.props.d.ts +26 -0
- package/dist/components/layout/divider/divider.props.d.ts.map +1 -0
- package/dist/components/layout/divider/divider.types.d.ts +4 -0
- package/dist/components/layout/divider/divider.types.d.ts.map +1 -0
- package/dist/components/layout/drawer/Drawer.d.ts +39 -0
- package/dist/components/layout/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.context.d.ts +2 -0
- package/dist/components/layout/drawer/drawer.context.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.props.d.ts +27 -0
- package/dist/components/layout/drawer/drawer.props.d.ts.map +1 -0
- package/dist/components/layout/drawer/drawer.types.d.ts +6 -0
- package/dist/components/layout/drawer/drawer.types.d.ts.map +1 -0
- package/dist/components/layout/indicator/Indicator.d.ts +14 -0
- package/dist/components/layout/indicator/Indicator.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.context.d.ts +2 -0
- package/dist/components/layout/indicator/indicator.context.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.props.d.ts +28 -0
- package/dist/components/layout/indicator/indicator.props.d.ts.map +1 -0
- package/dist/components/layout/indicator/indicator.types.d.ts +3 -0
- package/dist/components/layout/indicator/indicator.types.d.ts.map +1 -0
- package/dist/components/layout/join/Join.d.ts +12 -0
- package/dist/components/layout/join/Join.d.ts.map +1 -0
- package/dist/components/layout/join/join.context.d.ts +2 -0
- package/dist/components/layout/join/join.context.d.ts.map +1 -0
- package/dist/components/layout/join/join.props.d.ts +14 -0
- package/dist/components/layout/join/join.props.d.ts.map +1 -0
- package/dist/components/layout/join/join.types.d.ts +2 -0
- package/dist/components/layout/join/join.types.d.ts.map +1 -0
- package/dist/components/layout/mask/Mask.d.ts +12 -0
- package/dist/components/layout/mask/Mask.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.context.d.ts +2 -0
- package/dist/components/layout/mask/mask.context.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.props.d.ts +37 -0
- package/dist/components/layout/mask/mask.props.d.ts.map +1 -0
- package/dist/components/layout/mask/mask.types.d.ts +3 -0
- package/dist/components/layout/mask/mask.types.d.ts.map +1 -0
- package/dist/components/layout/public.d.ts +7 -0
- package/dist/components/layout/public.d.ts.map +1 -0
- package/dist/components/layout/public.es.js +206 -0
- package/dist/components/layout/public.es.js.map +1 -0
- package/dist/components/layout/public.types.d.ts +13 -0
- package/dist/components/layout/public.types.d.ts.map +1 -0
- package/dist/components/layout/public.umd.js +2 -0
- package/dist/components/layout/public.umd.js.map +1 -0
- package/dist/components/layout/stack/Stack.d.ts +12 -0
- package/dist/components/layout/stack/Stack.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.context.d.ts +2 -0
- package/dist/components/layout/stack/stack.context.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.props.d.ts +12 -0
- package/dist/components/layout/stack/stack.props.d.ts.map +1 -0
- package/dist/components/layout/stack/stack.types.d.ts +2 -0
- package/dist/components/layout/stack/stack.types.d.ts.map +1 -0
- package/dist/components/media/img/Img.d.ts +15 -0
- package/dist/components/media/img/Img.d.ts.map +1 -0
- package/dist/components/media/img/img.context.d.ts +2 -0
- package/dist/components/media/img/img.context.d.ts.map +1 -0
- package/dist/components/media/img/img.props.d.ts +76 -0
- package/dist/components/media/img/img.props.d.ts.map +1 -0
- package/dist/components/media/img/img.types.d.ts +33 -0
- package/dist/components/media/img/img.types.d.ts.map +1 -0
- package/dist/components/media/public.d.ts +2 -0
- package/dist/components/media/public.d.ts.map +1 -0
- package/dist/components/media/public.es.js +143 -0
- package/dist/components/media/public.es.js.map +1 -0
- package/dist/components/media/public.types.d.ts +3 -0
- package/dist/components/media/public.types.d.ts.map +1 -0
- package/dist/components/media/public.umd.js +2 -0
- package/dist/components/media/public.umd.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts +2 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.context.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts +17 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.props.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts +11 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.types.d.ts.map +1 -0
- package/dist/components/navigation/dock/Dock.d.ts +12 -0
- package/dist/components/navigation/dock/Dock.d.ts.map +1 -0
- package/dist/components/navigation/dock/DockItem.d.ts +5 -0
- package/dist/components/navigation/dock/DockItem.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.context.d.ts +3 -0
- package/dist/components/navigation/dock/dock.context.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.props.d.ts +30 -0
- package/dist/components/navigation/dock/dock.props.d.ts.map +1 -0
- package/dist/components/navigation/dock/dock.types.d.ts +3 -0
- package/dist/components/navigation/dock/dock.types.d.ts.map +1 -0
- package/dist/components/navigation/link/Link.d.ts +12 -0
- package/dist/components/navigation/link/Link.d.ts.map +1 -0
- package/dist/components/navigation/link/link.context.d.ts +2 -0
- package/dist/components/navigation/link/link.context.d.ts.map +1 -0
- package/dist/components/navigation/link/link.props.d.ts +21 -0
- package/dist/components/navigation/link/link.props.d.ts.map +1 -0
- package/dist/components/navigation/link/link.types.d.ts +2 -0
- package/dist/components/navigation/link/link.types.d.ts.map +1 -0
- package/dist/components/navigation/menu/Menu.d.ts +12 -0
- package/dist/components/navigation/menu/Menu.d.ts.map +1 -0
- package/dist/components/navigation/menu/MenuItem.d.ts +36 -0
- package/dist/components/navigation/menu/MenuItem.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.context.d.ts +3 -0
- package/dist/components/navigation/menu/menu.context.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.props.d.ts +61 -0
- package/dist/components/navigation/menu/menu.props.d.ts.map +1 -0
- package/dist/components/navigation/menu/menu.types.d.ts +4 -0
- package/dist/components/navigation/menu/menu.types.d.ts.map +1 -0
- package/dist/components/navigation/navbar/Navbar.d.ts +4 -0
- package/dist/components/navigation/navbar/Navbar.d.ts.map +1 -0
- package/dist/components/navigation/public.d.ts +10 -0
- package/dist/components/navigation/public.d.ts.map +1 -0
- package/dist/components/navigation/public.es.js +2 -0
- package/dist/components/navigation/public.types.d.ts +11 -0
- package/dist/components/navigation/public.types.d.ts.map +1 -0
- package/dist/components/navigation/public.umd.js +1 -0
- package/dist/components/navigation/tab/Tab.d.ts +19 -0
- package/dist/components/navigation/tab/Tab.d.ts.map +1 -0
- package/dist/components/navigation/tab/Tabs.d.ts +20 -0
- package/dist/components/navigation/tab/Tabs.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.context.d.ts +10 -0
- package/dist/components/navigation/tab/tab.context.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.props.d.ts +59 -0
- package/dist/components/navigation/tab/tab.props.d.ts.map +1 -0
- package/dist/components/navigation/tab/tab.types.d.ts +5 -0
- package/dist/components/navigation/tab/tab.types.d.ts.map +1 -0
- package/dist/composables/public.d.ts +6 -0
- package/dist/composables/public.d.ts.map +1 -0
- package/dist/composables/public.es.js +39 -0
- package/dist/composables/public.es.js.map +1 -0
- package/dist/composables/public.umd.js +2 -0
- package/dist/composables/public.umd.js.map +1 -0
- package/dist/composables/use-component-config.d.ts +27 -0
- package/dist/composables/use-component-config.d.ts.map +1 -0
- package/dist/composables/use-config.d.ts +2 -0
- package/dist/composables/use-config.d.ts.map +1 -0
- package/dist/composables/use-form-field.d.ts +24 -0
- package/dist/composables/use-form-field.d.ts.map +1 -0
- package/dist/composables/use-select-counter.d.ts +13 -0
- package/dist/composables/use-select-counter.d.ts.map +1 -0
- package/dist/composables/use-toast.d.ts +36 -0
- package/dist/composables/use-toast.d.ts.map +1 -0
- package/dist/config/config.type.d.ts +96 -0
- package/dist/config/config.type.d.ts.map +1 -0
- package/dist/config/public.d.ts +3 -0
- package/dist/config/public.d.ts.map +1 -0
- package/dist/config/public.es.js +2 -0
- package/dist/config/public.types.d.ts +2 -0
- package/dist/config/public.types.d.ts.map +1 -0
- package/dist/config/public.umd.js +1 -0
- package/dist/config/size.context.d.ts +4 -0
- package/dist/config/size.context.d.ts.map +1 -0
- package/dist/config/symbol.d.ts +4 -0
- package/dist/config/symbol.d.ts.map +1 -0
- package/dist/plugin-vue.d.ts +33 -0
- package/dist/plugin-vue.d.ts.map +1 -0
- package/dist/public-1PFjXgZ6.cjs +2 -0
- package/dist/public-1PFjXgZ6.cjs.map +1 -0
- package/dist/public-D_MhbTxP.cjs +2 -0
- package/dist/public-D_MhbTxP.cjs.map +1 -0
- package/dist/public-Dqelew6J.js +615 -0
- package/dist/public-Dqelew6J.js.map +1 -0
- package/dist/public-H9TCdoJr.js +296 -0
- package/dist/public-H9TCdoJr.js.map +1 -0
- package/dist/public.d.ts +12 -0
- package/dist/public.d.ts.map +1 -0
- package/dist/public.es.js +15 -0
- package/dist/public.es.js.map +1 -0
- package/dist/public.umd.js +2 -0
- package/dist/public.umd.js.map +1 -0
- package/dist/style.css +2 -0
- package/dist/symbol-Cleu4XHu.cjs +2 -0
- package/dist/symbol-Cleu4XHu.cjs.map +1 -0
- package/dist/symbol-CziS7Pho.js +13 -0
- package/dist/symbol-CziS7Pho.js.map +1 -0
- package/dist/toast.context-BNg0Zn09.cjs +2 -0
- package/dist/toast.context-BNg0Zn09.cjs.map +1 -0
- package/dist/toast.context-CTPY2imu.js +7 -0
- package/dist/toast.context-CTPY2imu.js.map +1 -0
- package/dist/types/public.d.ts +3 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/public.es.js +0 -0
- package/dist/types/public.umd.js +1 -0
- package/dist/types/size.type.d.ts +2 -0
- package/dist/types/size.type.d.ts.map +1 -0
- package/dist/types/utils.type.d.ts +5 -0
- package/dist/types/utils.type.d.ts.map +1 -0
- package/dist/use-component-config-C-IlXF0W.cjs +2 -0
- package/dist/use-component-config-C-IlXF0W.cjs.map +1 -0
- package/dist/use-component-config-CaJQbJOW.js +20 -0
- package/dist/use-component-config-CaJQbJOW.js.map +1 -0
- package/dist/use-select-counter-CgQha-_T.cjs +2 -0
- package/dist/use-select-counter-CgQha-_T.cjs.map +1 -0
- package/dist/use-select-counter-D_-Qwz61.js +72 -0
- package/dist/use-select-counter-D_-Qwz61.js.map +1 -0
- package/dist/utils/build-class.util.d.ts +4 -0
- package/dist/utils/build-class.util.d.ts.map +1 -0
- package/dist/utils/get-validation-message.d.ts +22 -0
- package/dist/utils/get-validation-message.d.ts.map +1 -0
- package/dist/utils/path.d.ts +20 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/props.util.d.ts +2 -0
- package/dist/utils/props.util.d.ts.map +1 -0
- package/dist/utils/public.d.ts +2 -0
- package/dist/utils/public.d.ts.map +1 -0
- package/package.json +138 -0
- package/src/components/ClassWrapper.vue +42 -0
- package/src/components/actions/button/Button.story.vue +184 -0
- package/src/components/actions/button/Button.vue +110 -0
- package/src/components/actions/button/button.context.ts +3 -0
- package/src/components/actions/button/button.props.ts +56 -0
- package/src/components/actions/button/button.types.ts +7 -0
- package/src/components/actions/dropdown/Dropdown.story.vue +360 -0
- package/src/components/actions/dropdown/Dropdown.vue +218 -0
- package/src/components/actions/dropdown/dropdown.context.ts +3 -0
- package/src/components/actions/dropdown/dropdown.props.ts +59 -0
- package/src/components/actions/dropdown/dropdown.types.ts +4 -0
- package/src/components/actions/fab/Fab.story.vue +227 -0
- package/src/components/actions/fab/Fab.vue +33 -0
- package/src/components/actions/fab/fab.context.ts +3 -0
- package/src/components/actions/fab/fab.props.ts +11 -0
- package/src/components/actions/fab/fab.types.ts +1 -0
- package/src/components/actions/modal/Modal.story.vue +285 -0
- package/src/components/actions/modal/Modal.vue +106 -0
- package/src/components/actions/modal/modal.context.ts +3 -0
- package/src/components/actions/modal/modal.props.ts +29 -0
- package/src/components/actions/modal/modal.types.ts +1 -0
- package/src/components/actions/public.ts +5 -0
- package/src/components/actions/public.types.ts +15 -0
- package/src/components/actions/swap/Swap.story.vue +302 -0
- package/src/components/actions/swap/Swap.vue +59 -0
- package/src/components/actions/swap/swap.context.ts +3 -0
- package/src/components/actions/swap/swap.props.ts +17 -0
- package/src/components/actions/swap/swap.types.ts +1 -0
- package/src/components/app/PoppyApp.vue +48 -0
- package/src/components/app/public.ts +1 -0
- package/src/components/data/checkbox/Checkbox.story.vue +206 -0
- package/src/components/data/checkbox/Checkbox.vue +139 -0
- package/src/components/data/checkbox/checkbox.context.ts +3 -0
- package/src/components/data/checkbox/checkbox.props.ts +42 -0
- package/src/components/data/checkbox/checkbox.types.ts +5 -0
- package/src/components/data/field-set/FieldSet.story.vue +163 -0
- package/src/components/data/field-set/FieldSet.vue +22 -0
- package/src/components/data/field-set/field-set.props.ts +21 -0
- package/src/components/data/form/Form.story.vue +144 -0
- package/src/components/data/form/Form.vue +235 -0
- package/src/components/data/form/form.context.ts +82 -0
- package/src/components/data/form/form.props.ts +30 -0
- package/src/components/data/form/form.types.ts +25 -0
- package/src/components/data/form-field/FormField.vue +176 -0
- package/src/components/data/form-field/form-field.context.ts +71 -0
- package/src/components/data/form-field/form-field.props.ts +42 -0
- package/src/components/data/form-field/form-field.types.ts +1 -0
- package/src/components/data/input/Input.story.vue +276 -0
- package/src/components/data/input/Input.vue +233 -0
- package/src/components/data/input/input.context.ts +3 -0
- package/src/components/data/input/input.props.ts +87 -0
- package/src/components/data/input/input.types.ts +10 -0
- package/src/components/data/public.ts +12 -0
- package/src/components/data/public.types.ts +30 -0
- package/src/components/data/radio/Radio.story.vue +228 -0
- package/src/components/data/radio/Radio.vue +152 -0
- package/src/components/data/radio/radio.context.ts +3 -0
- package/src/components/data/radio/radio.props.ts +53 -0
- package/src/components/data/radio/radio.types.ts +5 -0
- package/src/components/data/radio-group/RadioGroup.story.vue +155 -0
- package/src/components/data/radio-group/RadioGroup.vue +65 -0
- package/src/components/data/radio-group/radio-group.context.ts +14 -0
- package/src/components/data/radio-group/radio-group.props.ts +12 -0
- package/src/components/data/rating/Rating.story.vue +150 -0
- package/src/components/data/rating/Rating.vue +190 -0
- package/src/components/data/rating/rating.context.ts +3 -0
- package/src/components/data/rating/rating.props.ts +43 -0
- package/src/components/data/rating/rating.types.ts +8 -0
- package/src/components/data/select/Select.story.vue +317 -0
- package/src/components/data/select/Select.vue +747 -0
- package/src/components/data/select/select.context.ts +3 -0
- package/src/components/data/select/select.props.ts +110 -0
- package/src/components/data/select/select.types.ts +24 -0
- package/src/components/data/slider/Slider.story.vue +276 -0
- package/src/components/data/slider/Slider.vue +802 -0
- package/src/components/data/slider/slider.context.ts +3 -0
- package/src/components/data/slider/slider.props.ts +69 -0
- package/src/components/data/slider/slider.types.ts +11 -0
- package/src/components/data/textarea/Textarea.story.vue +222 -0
- package/src/components/data/textarea/Textarea.vue +168 -0
- package/src/components/data/textarea/textarea.context.ts +3 -0
- package/src/components/data/textarea/textarea.props.ts +71 -0
- package/src/components/data/textarea/textarea.types.ts +7 -0
- package/src/components/data/toggle/Toggle.story.vue +195 -0
- package/src/components/data/toggle/Toggle.vue +136 -0
- package/src/components/data/toggle/toggle.context.ts +3 -0
- package/src/components/data/toggle/toggle.props.ts +40 -0
- package/src/components/data/toggle/toggle.types.ts +5 -0
- package/src/components/display/accordion/Accordion.story.vue +482 -0
- package/src/components/display/accordion/Accordion.vue +112 -0
- package/src/components/display/accordion/AccordionItem.vue +111 -0
- package/src/components/display/accordion/accordion-item.context.ts +3 -0
- package/src/components/display/accordion/accordion-item.props.ts +20 -0
- package/src/components/display/accordion/accordion-item.types.ts +1 -0
- package/src/components/display/accordion/accordion.context.ts +10 -0
- package/src/components/display/accordion/accordion.props.ts +16 -0
- package/src/components/display/avatar/Avatar.story.vue +341 -0
- package/src/components/display/avatar/Avatar.vue +57 -0
- package/src/components/display/avatar/avatar.context.ts +3 -0
- package/src/components/display/avatar/avatar.props.ts +44 -0
- package/src/components/display/avatar/avatar.types.ts +5 -0
- package/src/components/display/badge/Badge.story.vue +156 -0
- package/src/components/display/badge/Badge.vue +51 -0
- package/src/components/display/badge/badge.context.ts +3 -0
- package/src/components/display/badge/badge.props.ts +22 -0
- package/src/components/display/badge/badge.types.ts +5 -0
- package/src/components/display/card/Card.story.vue +312 -0
- package/src/components/display/card/Card.vue +40 -0
- package/src/components/display/card/CardActions.vue +30 -0
- package/src/components/display/card/CardBody.vue +5 -0
- package/src/components/display/card/CardTitle.vue +5 -0
- package/src/components/display/card/card-actions.context.ts +3 -0
- package/src/components/display/card/card-actions.props.ts +15 -0
- package/src/components/display/card/card-actions.types.ts +1 -0
- package/src/components/display/card/card.context.ts +3 -0
- package/src/components/display/card/card.props.ts +29 -0
- package/src/components/display/card/card.types.ts +4 -0
- package/src/components/display/carousel/Carousel.story.vue +216 -0
- package/src/components/display/carousel/Carousel.vue +156 -0
- package/src/components/display/carousel/carousel.context.ts +3 -0
- package/src/components/display/carousel/carousel.props.ts +51 -0
- package/src/components/display/carousel/carousel.types.ts +2 -0
- package/src/components/display/chat/Chat.story.vue +251 -0
- package/src/components/display/chat/Chat.vue +56 -0
- package/src/components/display/chat/chat.context.ts +3 -0
- package/src/components/display/chat/chat.props.ts +19 -0
- package/src/components/display/chat/chat.types.ts +2 -0
- package/src/components/display/countdown/Countdown.story.vue +285 -0
- package/src/components/display/countdown/Countdown.vue +114 -0
- package/src/components/display/countdown/countdown.context.ts +3 -0
- package/src/components/display/countdown/countdown.props.ts +26 -0
- package/src/components/display/countdown/countdown.types.ts +24 -0
- package/src/components/display/diff/Diff.story.vue +118 -0
- package/src/components/display/diff/Diff.vue +13 -0
- package/src/components/display/hover-3d/Hover3d.story.vue +154 -0
- package/src/components/display/hover-3d/Hover3d.vue +37 -0
- package/src/components/display/hover-3d/hover-3d.props.ts +9 -0
- package/src/components/display/hover-gallery/HoverGallery.story.vue +121 -0
- package/src/components/display/hover-gallery/HoverGallery.vue +5 -0
- package/src/components/display/kbd/Kbd.story.vue +214 -0
- package/src/components/display/kbd/Kbd.vue +32 -0
- package/src/components/display/kbd/kbd.context.ts +3 -0
- package/src/components/display/kbd/kbd.props.ts +12 -0
- package/src/components/display/kbd/kbd.types.ts +3 -0
- package/src/components/display/list/List.story.vue +381 -0
- package/src/components/display/list/List.vue +14 -0
- package/src/components/display/list/ListItem.vue +53 -0
- package/src/components/display/list/list-item.props.ts +19 -0
- package/src/components/display/list/list.props.ts +7 -0
- package/src/components/display/public.ts +20 -0
- package/src/components/display/public.types.ts +40 -0
- package/src/components/display/stat/Stat.story.vue +181 -0
- package/src/components/display/stat/Stat.vue +43 -0
- package/src/components/display/stat/Stats.vue +29 -0
- package/src/components/display/stat/stat.context.ts +3 -0
- package/src/components/display/stat/stat.props.ts +50 -0
- package/src/components/display/stat/stat.types.ts +1 -0
- package/src/components/display/stat/stats.context.ts +3 -0
- package/src/components/display/stat/stats.props.ts +11 -0
- package/src/components/display/stat/stats.types.ts +1 -0
- package/src/components/display/status/Status.story.vue +195 -0
- package/src/components/display/status/Status.vue +70 -0
- package/src/components/display/status/status.context.ts +3 -0
- package/src/components/display/status/status.props.ts +30 -0
- package/src/components/display/status/status.types.ts +5 -0
- package/src/components/feedback/alert/Alert.story.vue +243 -0
- package/src/components/feedback/alert/Alert.vue +46 -0
- package/src/components/feedback/alert/alert.context.ts +3 -0
- package/src/components/feedback/alert/alert.props.ts +29 -0
- package/src/components/feedback/alert/alert.types.ts +3 -0
- package/src/components/feedback/loading/Loading.story.vue +156 -0
- package/src/components/feedback/loading/Loading.vue +55 -0
- package/src/components/feedback/loading/loading.context.ts +3 -0
- package/src/components/feedback/loading/loading.props.ts +25 -0
- package/src/components/feedback/loading/loading.types.ts +5 -0
- package/src/components/feedback/progress/Progress.story.vue +96 -0
- package/src/components/feedback/progress/Progress.vue +36 -0
- package/src/components/feedback/progress/progress.context.ts +3 -0
- package/src/components/feedback/progress/progress.props.ts +27 -0
- package/src/components/feedback/progress/progress.types.ts +1 -0
- package/src/components/feedback/public.ts +5 -0
- package/src/components/feedback/public.types.ts +18 -0
- package/src/components/feedback/radial-progress/RadialProgress.story.vue +118 -0
- package/src/components/feedback/radial-progress/RadialProgress.vue +46 -0
- package/src/components/feedback/radial-progress/radial-progress.context.ts +3 -0
- package/src/components/feedback/radial-progress/radial-progress.props.ts +35 -0
- package/src/components/feedback/radial-progress/radial-progress.types.ts +9 -0
- package/src/components/feedback/toast/Toast.story.vue +356 -0
- package/src/components/feedback/toast/Toast.vue +40 -0
- package/src/components/feedback/toast/toast.context.ts +12 -0
- package/src/components/feedback/toast/toast.props.ts +33 -0
- package/src/components/feedback/toast/toast.types.ts +5 -0
- package/src/components/feedback/tooltip/Tooltip.story.vue +256 -0
- package/src/components/feedback/tooltip/Tooltip.vue +123 -0
- package/src/components/feedback/tooltip/tooltip.context.ts +3 -0
- package/src/components/feedback/tooltip/tooltip.props.ts +44 -0
- package/src/components/feedback/tooltip/tooltip.types.ts +2 -0
- package/src/components/layout/divider/Divider.story.vue +217 -0
- package/src/components/layout/divider/Divider.vue +48 -0
- package/src/components/layout/divider/divider.context.ts +3 -0
- package/src/components/layout/divider/divider.props.ts +28 -0
- package/src/components/layout/divider/divider.types.ts +3 -0
- package/src/components/layout/drawer/Drawer.story.vue +301 -0
- package/src/components/layout/drawer/Drawer.vue +88 -0
- package/src/components/layout/drawer/drawer.context.ts +3 -0
- package/src/components/layout/drawer/drawer.props.ts +25 -0
- package/src/components/layout/drawer/drawer.types.ts +6 -0
- package/src/components/layout/indicator/Indicator.story.vue +264 -0
- package/src/components/layout/indicator/Indicator.vue +43 -0
- package/src/components/layout/indicator/indicator.context.ts +3 -0
- package/src/components/layout/indicator/indicator.props.ts +27 -0
- package/src/components/layout/indicator/indicator.types.ts +2 -0
- package/src/components/layout/join/Join.story.vue +147 -0
- package/src/components/layout/join/Join.vue +32 -0
- package/src/components/layout/join/join.context.ts +3 -0
- package/src/components/layout/join/join.props.ts +14 -0
- package/src/components/layout/join/join.types.ts +1 -0
- package/src/components/layout/mask/Mask.story.vue +181 -0
- package/src/components/layout/mask/Mask.vue +49 -0
- package/src/components/layout/mask/mask.context.ts +3 -0
- package/src/components/layout/mask/mask.props.ts +36 -0
- package/src/components/layout/mask/mask.types.ts +18 -0
- package/src/components/layout/public.ts +6 -0
- package/src/components/layout/public.types.ts +18 -0
- package/src/components/layout/stack/Stack.story.vue +170 -0
- package/src/components/layout/stack/Stack.vue +29 -0
- package/src/components/layout/stack/stack.context.ts +3 -0
- package/src/components/layout/stack/stack.props.ts +12 -0
- package/src/components/layout/stack/stack.types.ts +1 -0
- package/src/components/media/img/Img.story.vue +214 -0
- package/src/components/media/img/Img.vue +189 -0
- package/src/components/media/img/img.context.ts +3 -0
- package/src/components/media/img/img.props.ts +88 -0
- package/src/components/media/img/img.types.ts +35 -0
- package/src/components/media/public.ts +1 -0
- package/src/components/media/public.types.ts +3 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.story.vue +94 -0
- package/src/components/navigation/breadcrumbs/Breadcrumbs.vue +53 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.context.ts +3 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.props.ts +18 -0
- package/src/components/navigation/breadcrumbs/breadcrumbs.types.ts +13 -0
- package/src/components/navigation/dock/Dock.story.vue +109 -0
- package/src/components/navigation/dock/Dock.vue +32 -0
- package/src/components/navigation/dock/DockItem.vue +50 -0
- package/src/components/navigation/dock/dock.context.ts +4 -0
- package/src/components/navigation/dock/dock.props.ts +34 -0
- package/src/components/navigation/dock/dock.types.ts +3 -0
- package/src/components/navigation/link/Link.story.vue +129 -0
- package/src/components/navigation/link/Link.vue +57 -0
- package/src/components/navigation/link/link.context.ts +3 -0
- package/src/components/navigation/link/link.props.ts +20 -0
- package/src/components/navigation/link/link.types.ts +1 -0
- package/src/components/navigation/menu/Menu.story.vue +284 -0
- package/src/components/navigation/menu/Menu.vue +41 -0
- package/src/components/navigation/menu/MenuItem.vue +106 -0
- package/src/components/navigation/menu/menu.context.ts +4 -0
- package/src/components/navigation/menu/menu.props.ts +59 -0
- package/src/components/navigation/menu/menu.types.ts +4 -0
- package/src/components/navigation/navbar/Navbar.story.vue +154 -0
- package/src/components/navigation/navbar/Navbar.vue +8 -0
- package/src/components/navigation/public.ts +9 -0
- package/src/components/navigation/public.types.ts +15 -0
- package/src/components/navigation/tab/Tab.story.vue +186 -0
- package/src/components/navigation/tab/Tab.vue +106 -0
- package/src/components/navigation/tab/Tabs.vue +76 -0
- package/src/components/navigation/tab/tab.context.ts +13 -0
- package/src/components/navigation/tab/tab.props.ts +57 -0
- package/src/components/navigation/tab/tab.types.ts +5 -0
- package/src/composables/public.ts +5 -0
- package/src/composables/use-component-config.ts +44 -0
- package/src/composables/use-config.ts +6 -0
- package/src/composables/use-form-field.ts +99 -0
- package/src/composables/use-select-counter.ts +58 -0
- package/src/composables/use-toast.ts +47 -0
- package/src/config/config.type.ts +109 -0
- package/src/config/public.ts +2 -0
- package/src/config/public.types.ts +1 -0
- package/src/config/size.context.ts +4 -0
- package/src/config/symbol.ts +15 -0
- package/src/histoire.css +8 -0
- package/src/plugin-vue.ts +54 -0
- package/src/public.ts +12 -0
- package/src/stories/Configuration.story.md +55 -0
- package/src/types/public.ts +2 -0
- package/src/types/size.type.ts +1 -0
- package/src/types/utils.type.ts +5 -0
- package/src/utils/build-class.util.ts +38 -0
- package/src/utils/get-validation-message.ts +61 -0
- package/src/utils/path.ts +102 -0
- package/src/utils/props.util.ts +11 -0
- package/src/utils/public.ts +1 -0
- package/src/vite-env.d.ts +11 -0
- package/src/vue.d.ts +15 -0
|
@@ -0,0 +1,1816 @@
|
|
|
1
|
+
import { t as e } from "../../symbol-CziS7Pho.js";
|
|
2
|
+
import { n as t } from "../../use-component-config-CaJQbJOW.js";
|
|
3
|
+
import { n } from "../../build-class.util-Cp-ZBFgO.js";
|
|
4
|
+
import { t as r } from "../../_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
|
+
import { n as i, r as a, t as o } from "../../use-select-counter-D_-Qwz61.js";
|
|
6
|
+
import { _ as s } from "../../public-Dqelew6J.js";
|
|
7
|
+
import { a as c, i as l } from "../../public-H9TCdoJr.js";
|
|
8
|
+
import { Fragment as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, inject as b, mergeModels as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, onMounted as D, openBlock as O, provide as k, ref as A, renderList as j, renderSlot as M, shallowReactive as ee, shallowRef as N, toDisplayString as P, unref as F, useAttrs as I, useCssVars as L, useId as R, useModel as z, useSlots as B, useTemplateRef as V, watch as H, watchEffect as U, withCtx as W, withModifiers as G } from "vue";
|
|
9
|
+
import { ChevronDownIcon as te, LoaderCircleIcon as ne, XIcon as re } from "@lucide/vue";
|
|
10
|
+
import { onClickOutside as ie, useDebounceFn as ae, useTemplateRefsList as oe, useVirtualList as se } from "@vueuse/core";
|
|
11
|
+
//#region src/components/data/checkbox/checkbox.context.ts
|
|
12
|
+
var ce = e("checkbox"), K = [
|
|
13
|
+
"checked",
|
|
14
|
+
"disabled",
|
|
15
|
+
"required",
|
|
16
|
+
"aria-invalid"
|
|
17
|
+
], le = { class: "flex flex-col gap-0.5" }, ue = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "label-text leading-snug"
|
|
20
|
+
}, de = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "text-error ml-0.5",
|
|
23
|
+
"aria-hidden": "true"
|
|
24
|
+
}, fe = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "label-text text-xs text-base-content/60 leading-snug"
|
|
27
|
+
}, pe = [
|
|
28
|
+
"checked",
|
|
29
|
+
"disabled",
|
|
30
|
+
"required",
|
|
31
|
+
"aria-invalid"
|
|
32
|
+
], me = {
|
|
33
|
+
neutral: "checkbox-neutral",
|
|
34
|
+
primary: "checkbox-primary",
|
|
35
|
+
secondary: "checkbox-secondary",
|
|
36
|
+
accent: "checkbox-accent",
|
|
37
|
+
info: "checkbox-info",
|
|
38
|
+
success: "checkbox-success",
|
|
39
|
+
warning: "checkbox-warning",
|
|
40
|
+
error: "checkbox-error"
|
|
41
|
+
}, q = {
|
|
42
|
+
xs: "checkbox-xs",
|
|
43
|
+
sm: "checkbox-sm",
|
|
44
|
+
md: "checkbox-md",
|
|
45
|
+
lg: "checkbox-lg",
|
|
46
|
+
xl: "checkbox-xl"
|
|
47
|
+
}, he = /* @__PURE__ */ y({
|
|
48
|
+
__name: "Checkbox",
|
|
49
|
+
props: /*@__PURE__*/ x({
|
|
50
|
+
indeterminate: { type: Boolean },
|
|
51
|
+
description: {},
|
|
52
|
+
hint: {},
|
|
53
|
+
readonly: { type: Boolean },
|
|
54
|
+
color: {},
|
|
55
|
+
size: {},
|
|
56
|
+
disabled: { type: [Boolean, String] },
|
|
57
|
+
required: { type: [Boolean, String] }
|
|
58
|
+
}, {
|
|
59
|
+
modelValue: { type: Boolean },
|
|
60
|
+
modelModifiers: {}
|
|
61
|
+
}),
|
|
62
|
+
emits: ["update:modelValue"],
|
|
63
|
+
setup(e, { expose: r }) {
|
|
64
|
+
let a = e, o = z(e, "modelValue"), s = t(ce, a, { size: "md" }), c = V("inputEl"), l = B();
|
|
65
|
+
U(() => {
|
|
66
|
+
c.value && (c.value.indeterminate = !!a.indeterminate);
|
|
67
|
+
});
|
|
68
|
+
let { field: u, fieldValue: d, onBlur: p, clearError: v } = i({
|
|
69
|
+
required: f(() => !!a.required),
|
|
70
|
+
inputEl: c
|
|
71
|
+
}), y = f(() => u ? d.value : o.value);
|
|
72
|
+
function b(e) {
|
|
73
|
+
if (a.readonly) {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
let t = e.target.checked;
|
|
78
|
+
o.value = t, u?.setValue(t), u?.setDirty(!0), v();
|
|
79
|
+
}
|
|
80
|
+
let x = f(() => !!u?.error.value), S = f(() => !!(a.description || l.description)), C = f(() => !!(a.hint || l.hint)), T = f(() => S.value || C.value);
|
|
81
|
+
return r({
|
|
82
|
+
$el: c,
|
|
83
|
+
focus: () => c.value?.focus()
|
|
84
|
+
}), (t, r) => T.value ? (O(), h("label", {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: w(["flex cursor-pointer items-start gap-2", { "opacity-60 pointer-events-none": e.disabled || e.readonly }])
|
|
87
|
+
}, [g("input", {
|
|
88
|
+
ref_key: "inputEl",
|
|
89
|
+
ref: c,
|
|
90
|
+
type: "checkbox",
|
|
91
|
+
class: w(["checkbox mt-0.5", [
|
|
92
|
+
F(n)(me, F(s).color),
|
|
93
|
+
F(n)(q, F(s).size),
|
|
94
|
+
{ "checkbox-error": x.value },
|
|
95
|
+
{ validator: e.required }
|
|
96
|
+
]]),
|
|
97
|
+
checked: y.value,
|
|
98
|
+
disabled: e.disabled,
|
|
99
|
+
required: e.required,
|
|
100
|
+
"aria-invalid": x.value || void 0,
|
|
101
|
+
onChange: b,
|
|
102
|
+
onBlur: r[0] ||= (...e) => F(p) && F(p)(...e)
|
|
103
|
+
}, null, 42, K), g("span", le, [S.value ? (O(), h("span", ue, [M(t.$slots, "description", {}, () => [_(P(e.description), 1)]), e.required ? (O(), h("span", de, "*")) : m("", !0)])) : m("", !0), C.value ? (O(), h("span", fe, [M(t.$slots, "hint", {}, () => [_(P(e.hint), 1)])])) : m("", !0)])], 2)) : (O(), h("input", {
|
|
104
|
+
key: 1,
|
|
105
|
+
ref_key: "inputEl",
|
|
106
|
+
ref: c,
|
|
107
|
+
type: "checkbox",
|
|
108
|
+
class: w(["checkbox", [
|
|
109
|
+
F(n)(me, F(s).color),
|
|
110
|
+
F(n)(q, F(s).size),
|
|
111
|
+
{ "checkbox-error": x.value },
|
|
112
|
+
{ validator: e.required }
|
|
113
|
+
]]),
|
|
114
|
+
checked: y.value,
|
|
115
|
+
disabled: e.disabled,
|
|
116
|
+
required: e.required,
|
|
117
|
+
"aria-invalid": x.value || void 0,
|
|
118
|
+
onChange: b,
|
|
119
|
+
onBlur: r[1] ||= (...e) => F(p) && F(p)(...e)
|
|
120
|
+
}, null, 42, pe));
|
|
121
|
+
}
|
|
122
|
+
}), ge = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "fieldset-legend"
|
|
125
|
+
}, J = /* @__PURE__ */ y({
|
|
126
|
+
__name: "FieldSet",
|
|
127
|
+
props: {
|
|
128
|
+
legend: {},
|
|
129
|
+
bordered: { type: Boolean },
|
|
130
|
+
background: { type: Boolean }
|
|
131
|
+
},
|
|
132
|
+
setup(e) {
|
|
133
|
+
return (t, n) => (O(), h("fieldset", { class: w(["fieldset w-full", [e.bordered && "border border-base-300 rounded-box p-4", e.background && "bg-base-200"]]) }, [
|
|
134
|
+
e.legend || t.$slots.legend ? (O(), h("legend", ge, [M(t.$slots, "legend", {}, () => [_(P(e.legend), 1)])])) : m("", !0),
|
|
135
|
+
M(t.$slots, "header"),
|
|
136
|
+
M(t.$slots, "default"),
|
|
137
|
+
M(t.$slots, "footer")
|
|
138
|
+
], 2));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/utils/path.ts
|
|
143
|
+
function Y(e, t) {
|
|
144
|
+
if (!e || !t) return;
|
|
145
|
+
let n = ve(t), r = e;
|
|
146
|
+
for (let e of n) {
|
|
147
|
+
if (typeof r != "object" || !r) return;
|
|
148
|
+
r = r[e];
|
|
149
|
+
}
|
|
150
|
+
return r;
|
|
151
|
+
}
|
|
152
|
+
function _e(e, t, n) {
|
|
153
|
+
if (!t) return;
|
|
154
|
+
let r = ve(t), i = e;
|
|
155
|
+
for (let e = 0; e < r.length - 1; e++) {
|
|
156
|
+
let t = r[e], n = r[e + 1];
|
|
157
|
+
i[t] === void 0 && (ye(n) ? i[t] = [] : i[t] = {}), (typeof i[t] != "object" || i[t] === null) && (ye(n) ? i[t] = [] : i[t] = {}), i = i[t];
|
|
158
|
+
}
|
|
159
|
+
let a = r[r.length - 1];
|
|
160
|
+
if (ye(a)) {
|
|
161
|
+
let e = i, t = Number.parseInt(a, 10);
|
|
162
|
+
for (; e.length <= t;) e.push(void 0);
|
|
163
|
+
e[t] = n;
|
|
164
|
+
} else i[a] = n;
|
|
165
|
+
}
|
|
166
|
+
function ve(e) {
|
|
167
|
+
return e.trim() ? e.split(".").filter((e) => e !== "") : [];
|
|
168
|
+
}
|
|
169
|
+
function ye(e) {
|
|
170
|
+
return /^\d+$/.test(e);
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/components/data/form/form.context.ts
|
|
174
|
+
var X = Symbol("FormContext"), Z = {
|
|
175
|
+
class: "text-error text-sm mt-2",
|
|
176
|
+
role: "alert"
|
|
177
|
+
}, be = /* @__PURE__ */ y({
|
|
178
|
+
__name: "Form",
|
|
179
|
+
props: /*@__PURE__*/ x({
|
|
180
|
+
serializer: { type: Function },
|
|
181
|
+
counter: { type: Boolean },
|
|
182
|
+
counterFormat: { type: [String, Function] }
|
|
183
|
+
}, {
|
|
184
|
+
modelValue: { required: !0 },
|
|
185
|
+
modelModifiers: {}
|
|
186
|
+
}),
|
|
187
|
+
emits: /*@__PURE__*/ x(["submit", "reset"], ["update:modelValue"]),
|
|
188
|
+
setup(e, { expose: t, emit: n }) {
|
|
189
|
+
let r = e, i = z(e, "modelValue"), a = n, o = JSON.parse(JSON.stringify(i.value ?? {})), s = ee({ ...i.value }), c = N({}), l = ee({});
|
|
190
|
+
H(i, (e) => Object.assign(s, e));
|
|
191
|
+
let u = N(r.counter === void 0 ? void 0 : r.counter), d = N(r.counterFormat);
|
|
192
|
+
H(() => r.counter, (e) => {
|
|
193
|
+
u.value = e === void 0 ? void 0 : e;
|
|
194
|
+
}), H(() => r.counterFormat, (e) => {
|
|
195
|
+
d.value = e;
|
|
196
|
+
});
|
|
197
|
+
function f(e) {
|
|
198
|
+
return l[e] || (l[e] = {
|
|
199
|
+
value: Y(s, e),
|
|
200
|
+
isDirty: !1,
|
|
201
|
+
isTouched: !1,
|
|
202
|
+
isValid: !0,
|
|
203
|
+
hasError: !1,
|
|
204
|
+
error: void 0
|
|
205
|
+
}), l[e];
|
|
206
|
+
}
|
|
207
|
+
function p(e, t) {
|
|
208
|
+
_e(s, e, t);
|
|
209
|
+
let n = f(e);
|
|
210
|
+
n.value = t, i.value = { ...s };
|
|
211
|
+
}
|
|
212
|
+
function _(e) {
|
|
213
|
+
return Y(s, e);
|
|
214
|
+
}
|
|
215
|
+
function v(e) {
|
|
216
|
+
Object.assign(s, e), i.value = { ...s };
|
|
217
|
+
}
|
|
218
|
+
function y(e) {
|
|
219
|
+
return c.value[e];
|
|
220
|
+
}
|
|
221
|
+
function b(e, t) {
|
|
222
|
+
c.value = {
|
|
223
|
+
...c.value,
|
|
224
|
+
[e]: t
|
|
225
|
+
};
|
|
226
|
+
let n = f(e);
|
|
227
|
+
n.error = t, n.isValid = !t, n.hasError = !!t;
|
|
228
|
+
}
|
|
229
|
+
function x(e) {
|
|
230
|
+
c.value = { ...e };
|
|
231
|
+
for (let [t, n] of Object.entries(e)) {
|
|
232
|
+
let e = f(t);
|
|
233
|
+
e.error = n, e.isValid = !n, e.hasError = !!n;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function S(e) {
|
|
237
|
+
if (e != null) {
|
|
238
|
+
let { [e]: t, ...n } = c.value;
|
|
239
|
+
c.value = n;
|
|
240
|
+
let r = l[e];
|
|
241
|
+
r && (r.error = void 0, r.isValid = !0, r.hasError = !1);
|
|
242
|
+
} else {
|
|
243
|
+
c.value = {};
|
|
244
|
+
for (let e of Object.values(l)) e.error = void 0, e.isValid = !0, e.hasError = !1;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
function C(e) {
|
|
248
|
+
return f(e);
|
|
249
|
+
}
|
|
250
|
+
function w(e, t = !0) {
|
|
251
|
+
f(e).isDirty = t;
|
|
252
|
+
}
|
|
253
|
+
function T(e, t = !0) {
|
|
254
|
+
f(e).isTouched = t;
|
|
255
|
+
}
|
|
256
|
+
let E = /* @__PURE__ */ new Map();
|
|
257
|
+
function D(e, t) {
|
|
258
|
+
E.set(e, t);
|
|
259
|
+
}
|
|
260
|
+
function A(e) {
|
|
261
|
+
E.delete(e);
|
|
262
|
+
}
|
|
263
|
+
function j() {
|
|
264
|
+
let e = !0;
|
|
265
|
+
for (let [, t] of E) t() || (e = !1);
|
|
266
|
+
return e;
|
|
267
|
+
}
|
|
268
|
+
function F() {
|
|
269
|
+
for (let e of Object.keys(s)) delete s[e];
|
|
270
|
+
Object.assign(s, JSON.parse(JSON.stringify(o))), i.value = { ...s }, S();
|
|
271
|
+
for (let e of Object.keys(l)) l[e] = {
|
|
272
|
+
value: Y(s, e),
|
|
273
|
+
isDirty: !1,
|
|
274
|
+
isTouched: !1,
|
|
275
|
+
isValid: !0,
|
|
276
|
+
hasError: !1,
|
|
277
|
+
error: void 0
|
|
278
|
+
};
|
|
279
|
+
a("reset");
|
|
280
|
+
}
|
|
281
|
+
let I = {
|
|
282
|
+
errors: c,
|
|
283
|
+
data: s,
|
|
284
|
+
counter: u,
|
|
285
|
+
counterFormat: d,
|
|
286
|
+
setFieldValue: p,
|
|
287
|
+
getFieldValue: _,
|
|
288
|
+
setValues: v,
|
|
289
|
+
getFieldError: y,
|
|
290
|
+
setFieldError: b,
|
|
291
|
+
setErrors: x,
|
|
292
|
+
clearErrors: S,
|
|
293
|
+
getFieldState: C,
|
|
294
|
+
setDirty: w,
|
|
295
|
+
setTouched: T,
|
|
296
|
+
validate: j,
|
|
297
|
+
reset: F,
|
|
298
|
+
registerValidator: D,
|
|
299
|
+
unregisterValidator: A
|
|
300
|
+
};
|
|
301
|
+
k(X, I), t(I);
|
|
302
|
+
function L() {
|
|
303
|
+
j() && a("submit", r.serializer?.({ ...s }) ?? { ...s });
|
|
304
|
+
}
|
|
305
|
+
return (e, t) => (O(), h("form", {
|
|
306
|
+
novalidate: "",
|
|
307
|
+
onSubmit: G(L, ["prevent"]),
|
|
308
|
+
onReset: G(F, ["prevent"])
|
|
309
|
+
}, [M(e.$slots, "default"), c.value.$ ? M(e.$slots, "error", {
|
|
310
|
+
key: 0,
|
|
311
|
+
error: c.value.$
|
|
312
|
+
}, () => [g("p", Z, P(c.value.$), 1)]) : m("", !0)], 32));
|
|
313
|
+
}
|
|
314
|
+
}), xe = { class: "fieldset w-full" }, Se = {
|
|
315
|
+
key: 0,
|
|
316
|
+
class: "floating-label"
|
|
317
|
+
}, Ce = { key: 0 }, we = {
|
|
318
|
+
key: 0,
|
|
319
|
+
class: "text-error ml-0.5",
|
|
320
|
+
"aria-hidden": "true"
|
|
321
|
+
}, Te = {
|
|
322
|
+
key: 0,
|
|
323
|
+
class: "fieldset-legend"
|
|
324
|
+
}, Ee = {
|
|
325
|
+
key: 0,
|
|
326
|
+
class: "text-error ml-0.5",
|
|
327
|
+
"aria-hidden": "true"
|
|
328
|
+
}, De = {
|
|
329
|
+
key: 2,
|
|
330
|
+
class: "flex items-center justify-between gap-2 mt-1"
|
|
331
|
+
}, Oe = {
|
|
332
|
+
key: "error",
|
|
333
|
+
class: "label text-error text-xs",
|
|
334
|
+
role: "alert"
|
|
335
|
+
}, Q = {
|
|
336
|
+
key: "hint",
|
|
337
|
+
class: "label text-xs"
|
|
338
|
+
}, ke = { key: "empty" }, Ae = /*#__PURE__*/ r(/* @__PURE__ */ y({
|
|
339
|
+
__name: "FormField",
|
|
340
|
+
props: {
|
|
341
|
+
name: {},
|
|
342
|
+
label: {},
|
|
343
|
+
hint: {},
|
|
344
|
+
floating: { type: Boolean },
|
|
345
|
+
counter: { type: Boolean },
|
|
346
|
+
counterFormat: { type: [String, Function] }
|
|
347
|
+
},
|
|
348
|
+
setup(e) {
|
|
349
|
+
let t = e, n = b(X, null), r = N(!1), i = N(t.counter === void 0 ? void 0 : t.counter), o = N(t.counterFormat);
|
|
350
|
+
H(() => t.counter, (e) => {
|
|
351
|
+
i.value = e === void 0 ? void 0 : e;
|
|
352
|
+
}), H(() => t.counterFormat, (e) => {
|
|
353
|
+
o.value = e;
|
|
354
|
+
});
|
|
355
|
+
let s = N(""), c = N("");
|
|
356
|
+
function l(e, t) {
|
|
357
|
+
s.value = e, c.value = t;
|
|
358
|
+
}
|
|
359
|
+
let p = f(() => n?.getFieldValue(t.name)), g = f(() => n?.getFieldError(t.name)), y = f(() => n?.getFieldState(t.name) ?? {
|
|
360
|
+
value: void 0,
|
|
361
|
+
isDirty: !1,
|
|
362
|
+
isTouched: !1,
|
|
363
|
+
isValid: !0,
|
|
364
|
+
hasError: !1,
|
|
365
|
+
error: void 0
|
|
366
|
+
});
|
|
367
|
+
function x(e) {
|
|
368
|
+
n?.setFieldValue(t.name, e);
|
|
369
|
+
}
|
|
370
|
+
function S(e) {
|
|
371
|
+
r.value = e;
|
|
372
|
+
}
|
|
373
|
+
function C(e = !0) {
|
|
374
|
+
n?.setDirty(t.name, e);
|
|
375
|
+
}
|
|
376
|
+
function T(e = !0) {
|
|
377
|
+
n?.setTouched(t.name, e);
|
|
378
|
+
}
|
|
379
|
+
function E(e) {
|
|
380
|
+
n?.setFieldError(t.name, e);
|
|
381
|
+
}
|
|
382
|
+
function D(e, t) {
|
|
383
|
+
n?.registerValidator(e, t);
|
|
384
|
+
}
|
|
385
|
+
function A(e) {
|
|
386
|
+
n?.unregisterValidator(e);
|
|
387
|
+
}
|
|
388
|
+
k(a, {
|
|
389
|
+
name: t.name,
|
|
390
|
+
required: r,
|
|
391
|
+
value: p,
|
|
392
|
+
error: g,
|
|
393
|
+
state: y,
|
|
394
|
+
counter: i,
|
|
395
|
+
counterFormat: o,
|
|
396
|
+
counterText: s,
|
|
397
|
+
counterColor: c,
|
|
398
|
+
setValue: x,
|
|
399
|
+
setRequired: S,
|
|
400
|
+
setDirty: C,
|
|
401
|
+
setTouched: T,
|
|
402
|
+
setError: E,
|
|
403
|
+
setCounterText: l,
|
|
404
|
+
registerValidator: D,
|
|
405
|
+
unregisterValidator: A
|
|
406
|
+
});
|
|
407
|
+
let j = f(() => !!(g.value || t.hint || s.value));
|
|
408
|
+
return (t, n) => (O(), h("fieldset", xe, [e.floating ? (O(), h("label", Se, [e.label || t.$slots.label ? (O(), h("span", Ce, [M(t.$slots, "label", { required: r.value }, () => [_(P(e.label), 1), r.value ? (O(), h("span", we, "*")) : m("", !0)], !0)])) : m("", !0), M(t.$slots, "default", {}, void 0, !0)])) : (O(), h(u, { key: 1 }, [e.label || t.$slots.label ? (O(), h("legend", Te, [M(t.$slots, "label", { required: r.value }, () => [_(P(e.label), 1), r.value ? (O(), h("span", Ee, "*")) : m("", !0)], !0)])) : m("", !0), M(t.$slots, "default", {}, void 0, !0)], 64)), j.value ? (O(), h("div", De, [v(d, {
|
|
409
|
+
name: "field-message",
|
|
410
|
+
mode: "out-in"
|
|
411
|
+
}, {
|
|
412
|
+
default: W(() => [g.value ? (O(), h("p", Oe, [M(t.$slots, "error", { error: g.value }, () => [_(P(g.value), 1)], !0)])) : e.hint ? (O(), h("p", Q, [M(t.$slots, "hint", {}, () => [_(P(e.hint), 1)], !0)])) : (O(), h("span", ke))]),
|
|
413
|
+
_: 3
|
|
414
|
+
}), s.value ? (O(), h("span", {
|
|
415
|
+
key: 0,
|
|
416
|
+
class: w(["label text-xs shrink-0", c.value])
|
|
417
|
+
}, P(s.value), 3)) : m("", !0)])) : m("", !0)]));
|
|
418
|
+
}
|
|
419
|
+
}), [["__scopeId", "data-v-5c368088"]]), je = e("input"), $ = [
|
|
420
|
+
"type",
|
|
421
|
+
"value",
|
|
422
|
+
"disabled",
|
|
423
|
+
"readonly",
|
|
424
|
+
"required",
|
|
425
|
+
"placeholder",
|
|
426
|
+
"autocomplete",
|
|
427
|
+
"pattern",
|
|
428
|
+
"title",
|
|
429
|
+
"maxlength",
|
|
430
|
+
"minlength"
|
|
431
|
+
], Me = {
|
|
432
|
+
key: 0,
|
|
433
|
+
class: "flex justify-end mt-1"
|
|
434
|
+
}, Ne = [
|
|
435
|
+
"type",
|
|
436
|
+
"value",
|
|
437
|
+
"disabled",
|
|
438
|
+
"readonly",
|
|
439
|
+
"required",
|
|
440
|
+
"placeholder",
|
|
441
|
+
"autocomplete",
|
|
442
|
+
"pattern",
|
|
443
|
+
"title",
|
|
444
|
+
"maxlength",
|
|
445
|
+
"minlength"
|
|
446
|
+
], Pe = {
|
|
447
|
+
key: 0,
|
|
448
|
+
class: "flex justify-end mt-1"
|
|
449
|
+
}, Fe = {
|
|
450
|
+
neutral: "input-neutral",
|
|
451
|
+
primary: "input-primary",
|
|
452
|
+
secondary: "input-secondary",
|
|
453
|
+
accent: "input-accent",
|
|
454
|
+
info: "input-info",
|
|
455
|
+
success: "input-success",
|
|
456
|
+
warning: "input-warning",
|
|
457
|
+
error: "input-error"
|
|
458
|
+
}, Ie = {
|
|
459
|
+
xs: "input-xs",
|
|
460
|
+
sm: "input-sm",
|
|
461
|
+
md: "input-md",
|
|
462
|
+
lg: "input-lg",
|
|
463
|
+
xl: "input-xl"
|
|
464
|
+
}, Le = {
|
|
465
|
+
bordered: "input-bordered",
|
|
466
|
+
ghost: "input-ghost"
|
|
467
|
+
}, Re = /* @__PURE__ */ y({
|
|
468
|
+
inheritAttrs: !1,
|
|
469
|
+
__name: "Input",
|
|
470
|
+
props: /*@__PURE__*/ x({
|
|
471
|
+
type: {},
|
|
472
|
+
defaultValue: {},
|
|
473
|
+
clearable: { type: Boolean },
|
|
474
|
+
color: {},
|
|
475
|
+
size: {},
|
|
476
|
+
variant: {},
|
|
477
|
+
counter: { type: Boolean },
|
|
478
|
+
minLength: {},
|
|
479
|
+
maxLength: {},
|
|
480
|
+
counterFormat: { type: [String, Function] },
|
|
481
|
+
disabled: { type: [Boolean, String] },
|
|
482
|
+
readonly: { type: [Boolean, String] },
|
|
483
|
+
required: { type: [Boolean, String] },
|
|
484
|
+
placeholder: {},
|
|
485
|
+
autocomplete: {},
|
|
486
|
+
pattern: {},
|
|
487
|
+
title: {}
|
|
488
|
+
}, {
|
|
489
|
+
modelValue: {},
|
|
490
|
+
modelModifiers: {}
|
|
491
|
+
}),
|
|
492
|
+
emits: ["update:modelValue"],
|
|
493
|
+
setup(e, { expose: r }) {
|
|
494
|
+
let o = e, s = z(e, "modelValue"), c = b(X, null), l = b(a, null), d = t(je, o, {
|
|
495
|
+
size: "md",
|
|
496
|
+
type: "text",
|
|
497
|
+
counter: !1
|
|
498
|
+
}, {
|
|
499
|
+
get counter() {
|
|
500
|
+
return l?.counter.value ?? c?.counter.value;
|
|
501
|
+
},
|
|
502
|
+
get counterFormat() {
|
|
503
|
+
return l?.counterFormat.value ?? c?.counterFormat.value;
|
|
504
|
+
}
|
|
505
|
+
}), p = V("inputEl"), _ = I(), y = B(), x = f(() => !!y.start || !!y.end || o.clearable), { field: C, onBlur: T, clearError: E } = i({
|
|
506
|
+
required: f(() => !!o.required),
|
|
507
|
+
inputEl: p
|
|
508
|
+
}), D = f(() => C ? C.value.value : s.value ?? o.defaultValue);
|
|
509
|
+
function k(e) {
|
|
510
|
+
let t = e.target.value;
|
|
511
|
+
s.value = t, C?.setValue(t), C?.setDirty(!0), E();
|
|
512
|
+
}
|
|
513
|
+
function A() {
|
|
514
|
+
s.value = void 0, C?.setValue(void 0), E(), p.value?.focus();
|
|
515
|
+
}
|
|
516
|
+
let j = f(() => !!o.required || !!_.pattern || _.minlength != null || _.maxlength != null || _.min != null || _.max != null), ee = f(() => String(D.value ?? "").length), N = f(() => d.value.counter), L = f(() => {
|
|
517
|
+
if (!N.value) return "";
|
|
518
|
+
let e = d.value.counterFormat ?? "{current} / {max}", t = ee.value, n = d.value.minLength, r = d.value.maxLength;
|
|
519
|
+
return typeof e == "function" ? e(t, n, r) : e.replace("{current}", String(t)).replace("{min}", n == null ? "" : String(n)).replace("{max}", r == null ? "" : String(r));
|
|
520
|
+
}), R = f(() => {
|
|
521
|
+
let e = d.value.maxLength, t = d.value.minLength, n = ee.value;
|
|
522
|
+
return e != null && n > e ? "text-error" : t != null && n < t ? "text-warning" : "";
|
|
523
|
+
});
|
|
524
|
+
U(() => {
|
|
525
|
+
C && C.setCounterText(N.value ? L.value : "", N.value ? R.value : "");
|
|
526
|
+
});
|
|
527
|
+
let H = f(() => !!C?.error.value), W = f(() => [
|
|
528
|
+
n(Fe, d.value.color),
|
|
529
|
+
n(Ie, d.value.size),
|
|
530
|
+
n(Le, d.value.variant),
|
|
531
|
+
{ "input-error": H.value },
|
|
532
|
+
{ validator: j.value }
|
|
533
|
+
]);
|
|
534
|
+
return r({
|
|
535
|
+
$el: p,
|
|
536
|
+
focus: () => p.value?.focus()
|
|
537
|
+
}), (t, n) => x.value ? (O(), h(u, { key: 0 }, [g("label", { class: w(["input w-full", W.value]) }, [
|
|
538
|
+
M(t.$slots, "start"),
|
|
539
|
+
g("input", S({
|
|
540
|
+
ref_key: "inputEl",
|
|
541
|
+
ref: p
|
|
542
|
+
}, t.$attrs, {
|
|
543
|
+
class: "grow",
|
|
544
|
+
type: F(d).type,
|
|
545
|
+
value: D.value,
|
|
546
|
+
disabled: e.disabled,
|
|
547
|
+
readonly: e.readonly,
|
|
548
|
+
required: e.required,
|
|
549
|
+
placeholder: e.placeholder,
|
|
550
|
+
autocomplete: e.autocomplete,
|
|
551
|
+
pattern: e.pattern,
|
|
552
|
+
title: e.title,
|
|
553
|
+
maxlength: F(d).maxLength,
|
|
554
|
+
minlength: F(d).minLength,
|
|
555
|
+
onInput: k,
|
|
556
|
+
onBlur: n[0] ||= (...e) => F(T) && F(T)(...e)
|
|
557
|
+
}), null, 16, $),
|
|
558
|
+
e.clearable && D.value != null && D.value !== "" ? (O(), h("button", {
|
|
559
|
+
key: 0,
|
|
560
|
+
type: "button",
|
|
561
|
+
class: "btn btn-ghost btn-xs btn-circle opacity-50 hover:opacity-100",
|
|
562
|
+
tabindex: "-1",
|
|
563
|
+
onClick: G(A, ["stop"])
|
|
564
|
+
}, [v(F(re), { class: "size-3" })])) : m("", !0),
|
|
565
|
+
M(t.$slots, "end")
|
|
566
|
+
], 2), !F(C) && N.value ? (O(), h("div", Me, [g("span", { class: w(["text-xs", R.value]) }, P(L.value), 3)])) : m("", !0)], 64)) : (O(), h(u, { key: 1 }, [g("input", S({
|
|
567
|
+
ref_key: "inputEl",
|
|
568
|
+
ref: p
|
|
569
|
+
}, t.$attrs, {
|
|
570
|
+
class: ["input w-full", W.value],
|
|
571
|
+
type: F(d).type,
|
|
572
|
+
value: D.value,
|
|
573
|
+
disabled: e.disabled,
|
|
574
|
+
readonly: e.readonly,
|
|
575
|
+
required: e.required,
|
|
576
|
+
placeholder: e.placeholder,
|
|
577
|
+
autocomplete: e.autocomplete,
|
|
578
|
+
pattern: e.pattern,
|
|
579
|
+
title: e.title,
|
|
580
|
+
maxlength: F(d).maxLength,
|
|
581
|
+
minlength: F(d).minLength,
|
|
582
|
+
onInput: k,
|
|
583
|
+
onBlur: n[1] ||= (...e) => F(T) && F(T)(...e)
|
|
584
|
+
}), null, 16, Ne), !F(C) && N.value ? (O(), h("div", Pe, [g("span", { class: w(["text-xs", R.value]) }, P(L.value), 3)])) : m("", !0)], 64));
|
|
585
|
+
}
|
|
586
|
+
}), ze = Symbol("RadioGroupContext"), Be = e("radio"), Ve = [
|
|
587
|
+
"name",
|
|
588
|
+
"value",
|
|
589
|
+
"checked",
|
|
590
|
+
"disabled",
|
|
591
|
+
"required",
|
|
592
|
+
"aria-invalid"
|
|
593
|
+
], He = { class: "flex flex-col gap-0.5" }, Ue = {
|
|
594
|
+
key: 0,
|
|
595
|
+
class: "label-text leading-snug"
|
|
596
|
+
}, We = {
|
|
597
|
+
key: 0,
|
|
598
|
+
class: "text-error ml-0.5",
|
|
599
|
+
"aria-hidden": "true"
|
|
600
|
+
}, Ge = {
|
|
601
|
+
key: 1,
|
|
602
|
+
class: "label-text text-xs text-base-content/60 leading-snug"
|
|
603
|
+
}, Ke = [
|
|
604
|
+
"name",
|
|
605
|
+
"value",
|
|
606
|
+
"checked",
|
|
607
|
+
"disabled",
|
|
608
|
+
"required",
|
|
609
|
+
"aria-invalid"
|
|
610
|
+
], qe = {
|
|
611
|
+
neutral: "radio-neutral",
|
|
612
|
+
primary: "radio-primary",
|
|
613
|
+
secondary: "radio-secondary",
|
|
614
|
+
accent: "radio-accent",
|
|
615
|
+
info: "radio-info",
|
|
616
|
+
success: "radio-success",
|
|
617
|
+
warning: "radio-warning",
|
|
618
|
+
error: "radio-error"
|
|
619
|
+
}, Je = {
|
|
620
|
+
xs: "radio-xs",
|
|
621
|
+
sm: "radio-sm",
|
|
622
|
+
md: "radio-md",
|
|
623
|
+
lg: "radio-lg",
|
|
624
|
+
xl: "radio-xl"
|
|
625
|
+
}, Ye = /* @__PURE__ */ y({
|
|
626
|
+
__name: "Radio",
|
|
627
|
+
props: /*@__PURE__*/ x({
|
|
628
|
+
value: { type: [
|
|
629
|
+
String,
|
|
630
|
+
Number,
|
|
631
|
+
Boolean
|
|
632
|
+
] },
|
|
633
|
+
description: {},
|
|
634
|
+
hint: {},
|
|
635
|
+
color: {},
|
|
636
|
+
size: {},
|
|
637
|
+
disabled: { type: [Boolean, String] },
|
|
638
|
+
required: { type: [Boolean, String] },
|
|
639
|
+
name: {}
|
|
640
|
+
}, {
|
|
641
|
+
modelValue: { type: [
|
|
642
|
+
String,
|
|
643
|
+
Number,
|
|
644
|
+
Boolean
|
|
645
|
+
] },
|
|
646
|
+
modelModifiers: {}
|
|
647
|
+
}),
|
|
648
|
+
emits: ["update:modelValue"],
|
|
649
|
+
setup(e, { expose: r }) {
|
|
650
|
+
let o = e, s = z(e, "modelValue"), c = V("inputEl"), l = B(), u = t(Be, o, { size: "md" }), d = `radio-${R()}`, p = b(a, null), v = b(ze, null), y = f(() => o.name ?? p?.name ?? v?.name ?? "radio-group"), { field: x, onBlur: S, clearError: C } = i({
|
|
651
|
+
required: f(() => !!o.required || !!v?.required.value),
|
|
652
|
+
inputEl: c
|
|
653
|
+
}), T = f(() => x ? x.value.value : v ? v.modelValue.value : s.value), E = f(() => T.value === o.value);
|
|
654
|
+
function D() {
|
|
655
|
+
s.value = o.value, x ? (x.setValue(o.value), x.setDirty(!0), C()) : v && v.setValue(o.value);
|
|
656
|
+
}
|
|
657
|
+
let k = f(() => !!x?.error.value), A = f(() => !!(o.description || l.description)), j = f(() => !!(o.hint || l.hint)), ee = f(() => A.value || j.value);
|
|
658
|
+
return r({
|
|
659
|
+
$el: c,
|
|
660
|
+
focus: () => c.value?.focus()
|
|
661
|
+
}), (t, r) => ee.value ? (O(), h("label", {
|
|
662
|
+
key: 0,
|
|
663
|
+
for: d,
|
|
664
|
+
class: w(["flex cursor-pointer items-start gap-2", { "opacity-60 pointer-events-none": e.disabled }])
|
|
665
|
+
}, [g("input", {
|
|
666
|
+
id: d,
|
|
667
|
+
ref_key: "inputEl",
|
|
668
|
+
ref: c,
|
|
669
|
+
type: "radio",
|
|
670
|
+
class: w(["radio mt-0.5", [
|
|
671
|
+
F(n)(qe, F(u).color),
|
|
672
|
+
F(n)(Je, F(u).size),
|
|
673
|
+
{ "radio-error": k.value },
|
|
674
|
+
{ validator: e.required }
|
|
675
|
+
]]),
|
|
676
|
+
name: y.value,
|
|
677
|
+
value: e.value,
|
|
678
|
+
checked: E.value,
|
|
679
|
+
disabled: e.disabled,
|
|
680
|
+
required: e.required,
|
|
681
|
+
"aria-invalid": k.value || void 0,
|
|
682
|
+
onChange: D,
|
|
683
|
+
onBlur: r[0] ||= (...e) => F(S) && F(S)(...e)
|
|
684
|
+
}, null, 42, Ve), g("span", He, [A.value ? (O(), h("span", Ue, [M(t.$slots, "description", {}, () => [_(P(e.description), 1)]), e.required ? (O(), h("span", We, "*")) : m("", !0)])) : m("", !0), j.value ? (O(), h("span", Ge, [M(t.$slots, "hint", {}, () => [_(P(e.hint), 1)])])) : m("", !0)])], 2)) : (O(), h("input", {
|
|
685
|
+
key: 1,
|
|
686
|
+
id: d,
|
|
687
|
+
ref_key: "inputEl",
|
|
688
|
+
ref: c,
|
|
689
|
+
type: "radio",
|
|
690
|
+
class: w(["radio", [
|
|
691
|
+
F(n)(qe, F(u).color),
|
|
692
|
+
F(n)(Je, F(u).size),
|
|
693
|
+
{ "radio-error": k.value },
|
|
694
|
+
{ validator: e.required }
|
|
695
|
+
]]),
|
|
696
|
+
name: y.value,
|
|
697
|
+
value: e.value,
|
|
698
|
+
checked: E.value,
|
|
699
|
+
disabled: e.disabled,
|
|
700
|
+
required: e.required,
|
|
701
|
+
"aria-invalid": k.value || void 0,
|
|
702
|
+
onChange: D,
|
|
703
|
+
onBlur: r[1] ||= (...e) => F(S) && F(S)(...e)
|
|
704
|
+
}, null, 42, Ke));
|
|
705
|
+
}
|
|
706
|
+
}), Xe = { role: "radiogroup" }, Ze = /* @__PURE__ */ y({
|
|
707
|
+
__name: "RadioGroup",
|
|
708
|
+
props: /*@__PURE__*/ x({
|
|
709
|
+
name: {},
|
|
710
|
+
required: { type: Boolean }
|
|
711
|
+
}, {
|
|
712
|
+
modelValue: { type: [
|
|
713
|
+
String,
|
|
714
|
+
Number,
|
|
715
|
+
Boolean
|
|
716
|
+
] },
|
|
717
|
+
modelModifiers: {}
|
|
718
|
+
}),
|
|
719
|
+
emits: ["update:modelValue"],
|
|
720
|
+
setup(e) {
|
|
721
|
+
let t = e, n = z(e, "modelValue"), r = b(a, null), i = `radio-group-${R()}`, o = f(() => t.name ?? i), s = N(!!t.required);
|
|
722
|
+
H(() => t.required, (e) => {
|
|
723
|
+
s.value = !!e;
|
|
724
|
+
});
|
|
725
|
+
let c = f(() => r ? r.value.value : n.value);
|
|
726
|
+
function l(e) {
|
|
727
|
+
r ? (r.setValue(e), r.setDirty(!0)) : n.value = e;
|
|
728
|
+
}
|
|
729
|
+
return k(ze, {
|
|
730
|
+
name: o.value,
|
|
731
|
+
modelValue: c,
|
|
732
|
+
required: s,
|
|
733
|
+
setValue: l
|
|
734
|
+
}), (e, t) => (O(), h("div", Xe, [M(e.$slots, "default")]));
|
|
735
|
+
}
|
|
736
|
+
}), Qe = e("rating"), $e = ["required", "checked"], et = ["disabled", "checked"], tt = [
|
|
737
|
+
"checked",
|
|
738
|
+
"disabled",
|
|
739
|
+
"onChange"
|
|
740
|
+
], nt = {
|
|
741
|
+
neutral: "bg-neutral",
|
|
742
|
+
primary: "bg-primary",
|
|
743
|
+
secondary: "bg-secondary",
|
|
744
|
+
accent: "bg-accent",
|
|
745
|
+
info: "bg-info",
|
|
746
|
+
success: "bg-success",
|
|
747
|
+
warning: "bg-warning",
|
|
748
|
+
error: "bg-error"
|
|
749
|
+
}, rt = {
|
|
750
|
+
xs: "rating-xs",
|
|
751
|
+
sm: "rating-sm",
|
|
752
|
+
md: "rating-md",
|
|
753
|
+
lg: "rating-lg",
|
|
754
|
+
xl: "rating-xl"
|
|
755
|
+
}, it = {
|
|
756
|
+
"hexagon-2": "mask-hexagon-2",
|
|
757
|
+
"star-2": "mask-star-2",
|
|
758
|
+
"triangle-2": "mask-triangle-2",
|
|
759
|
+
"triangle-3": "mask-triangle-3",
|
|
760
|
+
"triangle-4": "mask-triangle-4",
|
|
761
|
+
circle: "mask-circle",
|
|
762
|
+
decagon: "mask-decagon",
|
|
763
|
+
diamond: "mask-diamond",
|
|
764
|
+
heart: "mask-heart",
|
|
765
|
+
hexagon: "mask-hexagon",
|
|
766
|
+
pentagon: "mask-pentagon",
|
|
767
|
+
square: "mask-square",
|
|
768
|
+
squircle: "mask-squircle",
|
|
769
|
+
star: "mask-star",
|
|
770
|
+
triangle: "mask-triangle"
|
|
771
|
+
}, at = /* @__PURE__ */ y({
|
|
772
|
+
__name: "Rating",
|
|
773
|
+
props: /*@__PURE__*/ x({
|
|
774
|
+
disabled: { type: Boolean },
|
|
775
|
+
required: { type: Boolean },
|
|
776
|
+
color: {},
|
|
777
|
+
size: {},
|
|
778
|
+
count: {},
|
|
779
|
+
half: { type: Boolean },
|
|
780
|
+
clearable: { type: Boolean },
|
|
781
|
+
mask: {}
|
|
782
|
+
}, {
|
|
783
|
+
modelValue: {},
|
|
784
|
+
modelModifiers: {}
|
|
785
|
+
}),
|
|
786
|
+
emits: ["update:modelValue"],
|
|
787
|
+
setup(e, { expose: r }) {
|
|
788
|
+
let a = e, o = z(e, "modelValue"), s = t(Qe, a, {
|
|
789
|
+
size: "md",
|
|
790
|
+
count: 5,
|
|
791
|
+
half: !1,
|
|
792
|
+
clearable: !0,
|
|
793
|
+
mask: "star"
|
|
794
|
+
}), c = V("rootEl"), l = V("hiddenEl"), { field: d, fieldValue: p, onBlur: _, clearError: v } = i({
|
|
795
|
+
required: f(() => !!a.required),
|
|
796
|
+
inputEl: l
|
|
797
|
+
}), y = f(() => d ? p.value ?? 0 : o.value ?? 0);
|
|
798
|
+
function b(e) {
|
|
799
|
+
o.value = e, d?.setValue(e), d?.setDirty(!0), v();
|
|
800
|
+
}
|
|
801
|
+
let x = f(() => {
|
|
802
|
+
let e = s.value.count ?? 5, t = s.value.half, r = [], i = n(it, s.value.mask);
|
|
803
|
+
for (let n = 1; n <= e; n++) t ? (r.push({
|
|
804
|
+
key: `${n}-left`,
|
|
805
|
+
value: n - .5,
|
|
806
|
+
maskClass: `mask ${i} mask-half-1`
|
|
807
|
+
}), r.push({
|
|
808
|
+
key: `${n}-right`,
|
|
809
|
+
value: n,
|
|
810
|
+
maskClass: `mask ${i} mask-half-2`
|
|
811
|
+
})) : r.push({
|
|
812
|
+
key: String(n),
|
|
813
|
+
value: n,
|
|
814
|
+
maskClass: `mask ${i}`
|
|
815
|
+
});
|
|
816
|
+
return r;
|
|
817
|
+
}), S = f(() => !!d?.error.value);
|
|
818
|
+
return r({
|
|
819
|
+
$el: c,
|
|
820
|
+
focus: () => c.value?.querySelector("input[type=\"radio\"]:not(.hidden):not(.rating-hidden)")?.focus()
|
|
821
|
+
}), (t, r) => (O(), h("div", {
|
|
822
|
+
ref_key: "rootEl",
|
|
823
|
+
ref: c,
|
|
824
|
+
class: w(["rating", [
|
|
825
|
+
F(n)(rt, F(s).size),
|
|
826
|
+
{ "rating-half": F(s).half },
|
|
827
|
+
{ "opacity-50 pointer-events-none": e.disabled }
|
|
828
|
+
]]),
|
|
829
|
+
onBlurCapture: r[1] ||= (...e) => F(_) && F(_)(...e)
|
|
830
|
+
}, [
|
|
831
|
+
g("input", {
|
|
832
|
+
ref_key: "hiddenEl",
|
|
833
|
+
ref: l,
|
|
834
|
+
type: "radio",
|
|
835
|
+
class: "hidden",
|
|
836
|
+
required: e.required,
|
|
837
|
+
checked: y.value > 0
|
|
838
|
+
}, null, 8, $e),
|
|
839
|
+
F(s).clearable ? (O(), h("input", {
|
|
840
|
+
key: 0,
|
|
841
|
+
type: "radio",
|
|
842
|
+
class: "rating-hidden",
|
|
843
|
+
name: "rating",
|
|
844
|
+
disabled: e.disabled,
|
|
845
|
+
checked: y.value === 0,
|
|
846
|
+
onChange: r[0] ||= (e) => b(0)
|
|
847
|
+
}, null, 40, et)) : m("", !0),
|
|
848
|
+
(O(!0), h(u, null, j(x.value, (t) => (O(), h("input", {
|
|
849
|
+
key: t.key,
|
|
850
|
+
type: "radio",
|
|
851
|
+
name: "rating",
|
|
852
|
+
class: w([
|
|
853
|
+
t.maskClass,
|
|
854
|
+
F(n)(nt, F(s).color),
|
|
855
|
+
{ "border-error": S.value }
|
|
856
|
+
]),
|
|
857
|
+
checked: y.value === t.value,
|
|
858
|
+
disabled: e.disabled,
|
|
859
|
+
onChange: (e) => b(t.value)
|
|
860
|
+
}, null, 42, tt))), 128))
|
|
861
|
+
], 34));
|
|
862
|
+
}
|
|
863
|
+
}), ot = e("select"), st = { class: "w-full flex flex-col gap-1" }, ct = ["name", "value"], lt = [
|
|
864
|
+
"tabindex",
|
|
865
|
+
"disabled",
|
|
866
|
+
"aria-readonly"
|
|
867
|
+
], ut = { class: "flex items-center gap-2 min-w-0" }, dt = {
|
|
868
|
+
key: 0,
|
|
869
|
+
class: "flex flex-wrap gap-1 flex-1 min-w-0"
|
|
870
|
+
}, ft = ["onClick"], pt = { class: "flex-1 min-w-0 truncate" }, mt = {
|
|
871
|
+
key: 2,
|
|
872
|
+
class: "opacity-40 flex-1 min-w-0 truncate"
|
|
873
|
+
}, ht = {
|
|
874
|
+
key: 0,
|
|
875
|
+
class: "anchor-dropdown absolute z-50 w-full bg-base-100 border border-base-300 rounded-box shadow-lg overflow-hidden"
|
|
876
|
+
}, gt = {
|
|
877
|
+
key: 0,
|
|
878
|
+
class: "p-2 border-b border-base-200"
|
|
879
|
+
}, _t = ["value", "placeholder"], vt = {
|
|
880
|
+
key: 0,
|
|
881
|
+
class: "px-4 py-6 flex justify-center"
|
|
882
|
+
}, yt = {
|
|
883
|
+
key: 1,
|
|
884
|
+
class: "px-4 py-3 text-sm text-center text-error"
|
|
885
|
+
}, bt = {
|
|
886
|
+
key: 1,
|
|
887
|
+
class: "px-4 py-3 text-sm opacity-40 text-center"
|
|
888
|
+
}, xt = {
|
|
889
|
+
key: 3,
|
|
890
|
+
class: "px-4 py-2 flex justify-center"
|
|
891
|
+
}, St = {
|
|
892
|
+
key: 0,
|
|
893
|
+
class: "px-4 py-3 text-sm opacity-40 text-center pointer-events-none"
|
|
894
|
+
}, Ct = {
|
|
895
|
+
key: 0,
|
|
896
|
+
class: "flex justify-end"
|
|
897
|
+
}, wt = {
|
|
898
|
+
neutral: "select-neutral",
|
|
899
|
+
primary: "select-primary",
|
|
900
|
+
secondary: "select-secondary",
|
|
901
|
+
accent: "select-accent",
|
|
902
|
+
info: "select-info",
|
|
903
|
+
success: "select-success",
|
|
904
|
+
warning: "select-warning",
|
|
905
|
+
error: "select-error"
|
|
906
|
+
}, Tt = {
|
|
907
|
+
xs: "select-xs",
|
|
908
|
+
sm: "select-sm",
|
|
909
|
+
md: "select-md",
|
|
910
|
+
lg: "select-lg",
|
|
911
|
+
xl: "select-xl"
|
|
912
|
+
}, Et = {
|
|
913
|
+
bordered: "select-bordered",
|
|
914
|
+
ghost: "select-ghost"
|
|
915
|
+
}, Dt = /*#__PURE__*/ r(/* @__PURE__ */ y({
|
|
916
|
+
inheritAttrs: !1,
|
|
917
|
+
__name: "Select",
|
|
918
|
+
props: /*@__PURE__*/ x({
|
|
919
|
+
name: {},
|
|
920
|
+
disabled: { type: Boolean },
|
|
921
|
+
required: { type: Boolean },
|
|
922
|
+
readonly: { type: Boolean },
|
|
923
|
+
placeholder: {},
|
|
924
|
+
options: {},
|
|
925
|
+
equals: { type: Function },
|
|
926
|
+
multiple: { type: Boolean },
|
|
927
|
+
searchable: { type: Boolean },
|
|
928
|
+
search: { type: Function },
|
|
929
|
+
debounce: {},
|
|
930
|
+
minChars: {},
|
|
931
|
+
limit: {},
|
|
932
|
+
itemHeight: {},
|
|
933
|
+
color: {},
|
|
934
|
+
variant: {},
|
|
935
|
+
size: {},
|
|
936
|
+
clearable: { type: Boolean },
|
|
937
|
+
counterFormatter: { type: Function }
|
|
938
|
+
}, {
|
|
939
|
+
modelValue: {},
|
|
940
|
+
modelModifiers: {}
|
|
941
|
+
}),
|
|
942
|
+
emits: /*@__PURE__*/ x(["clear"], ["update:modelValue"]),
|
|
943
|
+
setup(e, { expose: r, emit: a }) {
|
|
944
|
+
L((e) => ({ v0593ec67: oe }));
|
|
945
|
+
let y = a, b = V("containerEl"), x = V("triggerEl"), E = V("searchInputEl"), k = V("ulRef"), A = N(-1), ee = z(e, "modelValue"), B = e, U = t(ot, B, {
|
|
946
|
+
size: "md",
|
|
947
|
+
clearable: !1
|
|
948
|
+
}), oe = `--select-anchor-${R()}`, ce = I(), K = N(!1), le = N([]), { field: ue, fieldValue: de, hasServerError: fe, onBlur: pe, clearError: me } = i({ required: f(() => B.required ?? !1) });
|
|
949
|
+
ie(b, () => {
|
|
950
|
+
K.value && (K.value = !1, pe());
|
|
951
|
+
});
|
|
952
|
+
let q = f(() => ue ? de.value : ee.value), he = f(() => ce.min ? Number(ce.min) : void 0), ge = f(() => ce.max ? Number(ce.max) : void 0), { counterText: J, counterColor: Y, isAtMax: _e } = o(f(() => !B.multiple || !Array.isArray(q.value) ? 0 : q.value.length), {
|
|
953
|
+
multiple: f(() => B.multiple),
|
|
954
|
+
min: he,
|
|
955
|
+
max: ge,
|
|
956
|
+
formatter: f(() => U.value.counterFormatter)
|
|
957
|
+
}), ve = f(() => B.multiple ? Array.isArray(q.value) && q.value.length > 0 : q.value !== void 0 && q.value !== null && q.value !== ""), ye = f(() => {
|
|
958
|
+
let e = q.value;
|
|
959
|
+
if (!e) return [];
|
|
960
|
+
let t = [
|
|
961
|
+
...B.options ?? [],
|
|
962
|
+
...$.value,
|
|
963
|
+
...le.value
|
|
964
|
+
];
|
|
965
|
+
if (B.multiple && Array.isArray(e)) return e.reduce((e, n) => {
|
|
966
|
+
let r = t.find((e) => X(e.value, n));
|
|
967
|
+
return r ? [...e, r] : e;
|
|
968
|
+
}, []);
|
|
969
|
+
let n = t.find((t) => X(t.value, e));
|
|
970
|
+
return n ? [n] : [];
|
|
971
|
+
});
|
|
972
|
+
function X(e, t) {
|
|
973
|
+
return B.equals ? typeof B.equals == "function" ? B.equals(e, t) : e?.[B.equals] === t?.[B.equals] : e === t;
|
|
974
|
+
}
|
|
975
|
+
function Z(e) {
|
|
976
|
+
let t = q.value;
|
|
977
|
+
return B.multiple && Array.isArray(t) ? t.some((t) => X(t, e.value)) : X(t, e.value);
|
|
978
|
+
}
|
|
979
|
+
function be(e) {
|
|
980
|
+
return e.disabled === !0 || _e.value && !Z(e);
|
|
981
|
+
}
|
|
982
|
+
function xe(e) {
|
|
983
|
+
ee.value = e, ue && (ue.setValue(e), ue.setDirty(!0), me());
|
|
984
|
+
}
|
|
985
|
+
function Se() {
|
|
986
|
+
return Array.isArray(q.value) ? q.value : [];
|
|
987
|
+
}
|
|
988
|
+
function Ce(e) {
|
|
989
|
+
if (!be(e)) {
|
|
990
|
+
if (le.value.some((t) => X(t.value, e.value)) || (le.value = [...le.value, e]), B.multiple) {
|
|
991
|
+
let t = Se();
|
|
992
|
+
xe(t.some((t) => X(t, e.value)) ? t.filter((t) => !X(t, e.value)) : [...t, e.value]);
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
if (Z(e)) {
|
|
996
|
+
U.value.clearable && (xe(void 0), K.value = !1);
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
xe(e.value), K.value = !1;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
function we(e) {
|
|
1003
|
+
B.multiple && xe(Se().filter((t) => !X(t, e.value)));
|
|
1004
|
+
}
|
|
1005
|
+
function Te() {
|
|
1006
|
+
xe(B.multiple ? [] : void 0), y("clear");
|
|
1007
|
+
}
|
|
1008
|
+
function Ee() {
|
|
1009
|
+
B.disabled || B.readonly || (K.value = !0);
|
|
1010
|
+
}
|
|
1011
|
+
function De() {
|
|
1012
|
+
B.disabled || (K.value = !1);
|
|
1013
|
+
}
|
|
1014
|
+
function Oe() {
|
|
1015
|
+
K.value ? De() : Ee();
|
|
1016
|
+
}
|
|
1017
|
+
let Q = N(""), ke = N(!1), Ae = N(!1), je = N(null), $ = N([]), Me = N(1), Ne = N(!0), Pe = f(() => {
|
|
1018
|
+
let e = B.options ?? [];
|
|
1019
|
+
if (!Q.value) return e;
|
|
1020
|
+
let t = Q.value.toLowerCase();
|
|
1021
|
+
return e.filter((e) => e.label.toLowerCase().includes(t));
|
|
1022
|
+
}), Fe = f(() => B.search ? $.value : B.searchable ? Pe.value : B.options ?? []), Ie = f(() => B.itemHeight ?? 36), Le = f(() => {
|
|
1023
|
+
let e = Fe.value.length;
|
|
1024
|
+
return e === 0 ? 0 : Math.min(e * Ie.value, 224);
|
|
1025
|
+
}), { list: Re, containerProps: ze, wrapperProps: Be, scrollTo: Ve } = se(Fe, {
|
|
1026
|
+
itemHeight: () => Ie.value,
|
|
1027
|
+
overscan: 5
|
|
1028
|
+
});
|
|
1029
|
+
function He(e) {
|
|
1030
|
+
if (ze.onScroll(), !B.search || !Ne.value || Ae.value) return;
|
|
1031
|
+
let t = e.target;
|
|
1032
|
+
if (t.scrollHeight - t.scrollTop - t.clientHeight < 50) {
|
|
1033
|
+
let e = Me.value + 1;
|
|
1034
|
+
Me.value = e, Ue(Q.value, e, !0);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
async function Ue(e, t, n) {
|
|
1038
|
+
if (!B.search) return;
|
|
1039
|
+
let r = B.limit ?? 20;
|
|
1040
|
+
n ? Ae.value = !0 : (ke.value = !0, je.value = null);
|
|
1041
|
+
try {
|
|
1042
|
+
let i = n ? $.value.at(-1)?.value : void 0, a = await B.search({
|
|
1043
|
+
term: e,
|
|
1044
|
+
limit: r,
|
|
1045
|
+
page: t,
|
|
1046
|
+
lastItem: i
|
|
1047
|
+
});
|
|
1048
|
+
if ($.value = n ? [...$.value, ...a] : a, Ne.value = a.length >= r, Ne.value && $.value.length * Ie.value <= 224) {
|
|
1049
|
+
Me.value = t + 1, Ue(e, Me.value, !0);
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
} catch (e) {
|
|
1053
|
+
je.value = e instanceof Error ? e : Error(String(e)), n || ($.value = []);
|
|
1054
|
+
}
|
|
1055
|
+
ke.value = !1, Ae.value = !1;
|
|
1056
|
+
}
|
|
1057
|
+
function We() {
|
|
1058
|
+
Ue(Q.value, 1, !1);
|
|
1059
|
+
}
|
|
1060
|
+
let Ge = ae((e) => {
|
|
1061
|
+
Me.value = 1, Ue(e, 1, !1);
|
|
1062
|
+
}, f(() => B.debounce ?? 300));
|
|
1063
|
+
function Ke(e) {
|
|
1064
|
+
Q.value = e, A.value = -1, B.search && (e.length >= (B.minChars ?? 0) ? Ge(e) : ($.value = [], Ne.value = !0));
|
|
1065
|
+
}
|
|
1066
|
+
D(() => {
|
|
1067
|
+
B.search && ve.value && Ue("", 1, !1);
|
|
1068
|
+
}), H(K, async (e) => {
|
|
1069
|
+
if (e) {
|
|
1070
|
+
A.value = -1, B.searchable && (await C(), E.value?.focus()), B.search && $.value.length === 0 && Ue("", 1, !1);
|
|
1071
|
+
return;
|
|
1072
|
+
}
|
|
1073
|
+
A.value = -1, Q.value !== "" && ($.value = [], Me.value = 1, je.value = null, Ne.value = !0), Q.value = "";
|
|
1074
|
+
});
|
|
1075
|
+
function qe() {
|
|
1076
|
+
if (B.searchable || B.search) {
|
|
1077
|
+
Ve(A.value);
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1080
|
+
C(() => {
|
|
1081
|
+
(k.value?.$el)?.children[A.value]?.scrollIntoView({ block: "nearest" });
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
function Je() {
|
|
1085
|
+
let e = Fe.value;
|
|
1086
|
+
e.length !== 0 && (A.value = A.value >= e.length - 1 ? 0 : A.value + 1, qe());
|
|
1087
|
+
}
|
|
1088
|
+
function Ye() {
|
|
1089
|
+
let e = Fe.value;
|
|
1090
|
+
e.length !== 0 && (A.value = A.value <= 0 ? e.length - 1 : A.value - 1, qe());
|
|
1091
|
+
}
|
|
1092
|
+
function Xe() {
|
|
1093
|
+
let e = Fe.value[A.value];
|
|
1094
|
+
e && Ce(e);
|
|
1095
|
+
}
|
|
1096
|
+
function Ze(e) {
|
|
1097
|
+
switch (e.key) {
|
|
1098
|
+
case "ArrowDown":
|
|
1099
|
+
e.preventDefault(), K.value ? Je() : (Ee(), C(Je));
|
|
1100
|
+
break;
|
|
1101
|
+
case "ArrowUp":
|
|
1102
|
+
e.preventDefault(), K.value ? Ye() : (Ee(), C(Ye));
|
|
1103
|
+
break;
|
|
1104
|
+
case "Enter":
|
|
1105
|
+
case " ":
|
|
1106
|
+
K.value && A.value >= 0 && (e.preventDefault(), Xe());
|
|
1107
|
+
break;
|
|
1108
|
+
case "Escape":
|
|
1109
|
+
K.value && (e.preventDefault(), De());
|
|
1110
|
+
break;
|
|
1111
|
+
case "Tab":
|
|
1112
|
+
K.value && De();
|
|
1113
|
+
break;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
function Qe(e) {
|
|
1117
|
+
switch (e.key) {
|
|
1118
|
+
case "ArrowDown":
|
|
1119
|
+
e.preventDefault(), Je();
|
|
1120
|
+
break;
|
|
1121
|
+
case "ArrowUp":
|
|
1122
|
+
e.preventDefault(), Ye();
|
|
1123
|
+
break;
|
|
1124
|
+
case "Enter":
|
|
1125
|
+
A.value >= 0 && (e.preventDefault(), Xe());
|
|
1126
|
+
break;
|
|
1127
|
+
case "Escape":
|
|
1128
|
+
e.preventDefault(), De();
|
|
1129
|
+
break;
|
|
1130
|
+
case "Tab":
|
|
1131
|
+
De();
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return r({
|
|
1136
|
+
$el: x,
|
|
1137
|
+
clear: Te,
|
|
1138
|
+
open: Ee,
|
|
1139
|
+
close: De,
|
|
1140
|
+
toggle: Oe
|
|
1141
|
+
}), (t, r) => (O(), h("div", st, [g("div", S({
|
|
1142
|
+
ref_key: "containerEl",
|
|
1143
|
+
ref: b,
|
|
1144
|
+
class: "relative w-full anchor-trigger"
|
|
1145
|
+
}, t.$attrs), [
|
|
1146
|
+
g("input", {
|
|
1147
|
+
type: "hidden",
|
|
1148
|
+
name: F(ue)?.name ?? e.name,
|
|
1149
|
+
value: ee.value
|
|
1150
|
+
}, null, 8, ct),
|
|
1151
|
+
g("button", {
|
|
1152
|
+
ref_key: "triggerEl",
|
|
1153
|
+
ref: x,
|
|
1154
|
+
type: "button",
|
|
1155
|
+
class: w(["select w-full text-left min-h-10 h-auto py-2", [
|
|
1156
|
+
F(n)(wt, F(U).color),
|
|
1157
|
+
F(n)(Tt, F(U).size),
|
|
1158
|
+
F(n)(Et, F(U).variant),
|
|
1159
|
+
e.disabled && "select-disabled",
|
|
1160
|
+
F(fe) && "select-error",
|
|
1161
|
+
e.readonly && "cursor-default",
|
|
1162
|
+
F(U).clearable && ve.value ? "pr-14" : "pr-10"
|
|
1163
|
+
]]),
|
|
1164
|
+
tabindex: e.disabled ? "-1" : void 0,
|
|
1165
|
+
disabled: e.disabled,
|
|
1166
|
+
"aria-readonly": e.readonly || void 0,
|
|
1167
|
+
onClick: r[0] ||= (e) => Oe(),
|
|
1168
|
+
onKeydown: Ze
|
|
1169
|
+
}, [g("div", ut, [
|
|
1170
|
+
M(t.$slots, "start", {}, void 0, !0),
|
|
1171
|
+
e.multiple && ye.value.length > 0 ? (O(), h("div", dt, [(O(!0), h(u, null, j(ye.value, (n) => M(t.$slots, "selected", {
|
|
1172
|
+
key: String(n.value),
|
|
1173
|
+
option: n,
|
|
1174
|
+
remove: () => we(n)
|
|
1175
|
+
}, () => [v(F(s), {
|
|
1176
|
+
color: "primary",
|
|
1177
|
+
size: "sm",
|
|
1178
|
+
class: "gap-1 cursor-default"
|
|
1179
|
+
}, {
|
|
1180
|
+
default: W(() => [_(P(n.label) + " ", 1), e.readonly ? m("", !0) : (O(), h("button", {
|
|
1181
|
+
key: 0,
|
|
1182
|
+
type: "button",
|
|
1183
|
+
class: "hover:opacity-70",
|
|
1184
|
+
onClick: G((e) => we(n), ["stop"])
|
|
1185
|
+
}, [v(F(re), { class: "size-3" })], 8, ft))]),
|
|
1186
|
+
_: 2
|
|
1187
|
+
}, 1024)], !0)), 128))])) : !e.multiple && ye.value.length > 0 ? M(t.$slots, "selected", {
|
|
1188
|
+
key: 1,
|
|
1189
|
+
option: ye.value[0],
|
|
1190
|
+
remove: Te
|
|
1191
|
+
}, () => [g("span", pt, P(ye.value[0]?.label), 1)], !0) : (O(), h("span", mt, P(e.placeholder || t.$t("common.field.select.placeholder")), 1)),
|
|
1192
|
+
M(t.$slots, "end", {}, void 0, !0)
|
|
1193
|
+
])], 42, lt),
|
|
1194
|
+
v(F(te), { class: w(["absolute right-3 top-1/2 -translate-y-1/2 size-4 opacity-40 pointer-events-none transition-transform", K.value && "rotate-180"]) }, null, 8, ["class"]),
|
|
1195
|
+
F(U).clearable && ve.value && !e.readonly ? (O(), h("button", {
|
|
1196
|
+
key: 0,
|
|
1197
|
+
type: "button",
|
|
1198
|
+
class: "absolute right-8 top-1/2 -translate-y-1/2 btn btn-ghost btn-xs btn-circle opacity-50 hover:opacity-100",
|
|
1199
|
+
onClick: Te
|
|
1200
|
+
}, [v(F(re), { class: "size-3" })])) : m("", !0),
|
|
1201
|
+
v(d, { name: "dropdown" }, {
|
|
1202
|
+
default: W(() => [K.value && (e.options || e.searchable || e.search) ? (O(), h("div", ht, [e.searchable ? (O(), h("div", gt, [g("input", {
|
|
1203
|
+
ref_key: "searchInputEl",
|
|
1204
|
+
ref: E,
|
|
1205
|
+
value: Q.value,
|
|
1206
|
+
type: "text",
|
|
1207
|
+
class: "input input-sm w-full",
|
|
1208
|
+
placeholder: t.$t("common.field.select.search"),
|
|
1209
|
+
onInput: r[1] ||= (e) => Ke(e.target.value),
|
|
1210
|
+
onKeydown: Qe
|
|
1211
|
+
}, null, 40, _t)])) : m("", !0), e.searchable || e.search ? (O(), h(u, { key: 1 }, [ke.value ? (O(), h("div", vt, [M(t.$slots, "loading", { query: Q.value }, () => [v(F(ne), { class: "size-4 animate-spin opacity-40" })], !0)])) : je.value ? (O(), h("div", yt, [M(t.$slots, "error", {
|
|
1212
|
+
query: Q.value,
|
|
1213
|
+
retry: We
|
|
1214
|
+
}, () => [_(P(je.value.message), 1)], !0)])) : (O(), h(u, { key: 2 }, [Fe.value.length > 0 ? (O(), h("div", {
|
|
1215
|
+
key: 0,
|
|
1216
|
+
ref: F(ze).ref,
|
|
1217
|
+
style: T({
|
|
1218
|
+
height: `${Le.value}px`,
|
|
1219
|
+
overflowY: "auto"
|
|
1220
|
+
}),
|
|
1221
|
+
onScroll: He
|
|
1222
|
+
}, [v(F(c), S({
|
|
1223
|
+
size: F(U).size,
|
|
1224
|
+
class: "flex-nowrap"
|
|
1225
|
+
}, F(Be)), {
|
|
1226
|
+
default: W(() => [(O(!0), h(u, null, j(F(Re), ({ data: e, index: n }) => (O(), p(F(l), {
|
|
1227
|
+
key: String(e.value),
|
|
1228
|
+
active: Z(e),
|
|
1229
|
+
disabled: be(e),
|
|
1230
|
+
style: T({ height: `${Ie.value}px` }),
|
|
1231
|
+
class: w(n === A.value && !Z(e) && "highlighted"),
|
|
1232
|
+
onClick: G((t) => Ce(e), ["prevent"])
|
|
1233
|
+
}, {
|
|
1234
|
+
default: W(() => [M(t.$slots, "option", {
|
|
1235
|
+
option: e,
|
|
1236
|
+
selected: Z(e),
|
|
1237
|
+
index: n
|
|
1238
|
+
}, () => [_(P(e.label), 1)], !0)]),
|
|
1239
|
+
_: 2
|
|
1240
|
+
}, 1032, [
|
|
1241
|
+
"active",
|
|
1242
|
+
"disabled",
|
|
1243
|
+
"style",
|
|
1244
|
+
"class",
|
|
1245
|
+
"onClick"
|
|
1246
|
+
]))), 128))]),
|
|
1247
|
+
_: 3
|
|
1248
|
+
}, 16, ["size"])], 36)) : (O(), h("div", bt, [M(t.$slots, "empty", { query: Q.value }, () => [_(P(t.$t("common.field.select.empty")), 1)], !0)]))], 64)), Ae.value ? (O(), h("div", xt, [M(t.$slots, "loading-more", { page: Me.value }, () => [v(F(ne), { class: "size-3 animate-spin opacity-40" })], !0)])) : m("", !0)], 64)) : (O(), p(F(c), {
|
|
1249
|
+
key: 2,
|
|
1250
|
+
ref_key: "ulRef",
|
|
1251
|
+
ref: k,
|
|
1252
|
+
size: F(U).size,
|
|
1253
|
+
class: "max-h-56 overflow-y-auto w-full flex-nowrap"
|
|
1254
|
+
}, {
|
|
1255
|
+
default: W(() => [(O(!0), h(u, null, j(e.options ?? [], (e, n) => (O(), p(F(l), {
|
|
1256
|
+
key: String(e.value),
|
|
1257
|
+
active: Z(e),
|
|
1258
|
+
disabled: be(e),
|
|
1259
|
+
class: w(n === A.value && !Z(e) && "highlighted"),
|
|
1260
|
+
onClick: G((t) => Ce(e), ["prevent"])
|
|
1261
|
+
}, {
|
|
1262
|
+
default: W(() => [M(t.$slots, "option", {
|
|
1263
|
+
option: e,
|
|
1264
|
+
selected: Z(e)
|
|
1265
|
+
}, () => [_(P(e.label), 1)], !0)]),
|
|
1266
|
+
_: 2
|
|
1267
|
+
}, 1032, [
|
|
1268
|
+
"active",
|
|
1269
|
+
"disabled",
|
|
1270
|
+
"class",
|
|
1271
|
+
"onClick"
|
|
1272
|
+
]))), 128)), (e.options ?? []).length === 0 ? (O(), h("li", St, [M(t.$slots, "empty", { query: "" }, () => [_(P(t.$t("common.field.select.empty")), 1)], !0)])) : m("", !0)]),
|
|
1273
|
+
_: 3
|
|
1274
|
+
}, 8, ["size"]))])) : m("", !0)]),
|
|
1275
|
+
_: 3
|
|
1276
|
+
})
|
|
1277
|
+
], 16), e.multiple && F(J) ? (O(), h("div", Ct, [g("span", { class: w(["text-xs", F(Y)]) }, P(F(J)), 3)])) : m("", !0)]));
|
|
1278
|
+
}
|
|
1279
|
+
}), [["__scopeId", "data-v-3650afc1"]]), Ot = e("slider"), kt = ["aria-label"], At = [
|
|
1280
|
+
"value",
|
|
1281
|
+
"required",
|
|
1282
|
+
"min",
|
|
1283
|
+
"max"
|
|
1284
|
+
], jt = {
|
|
1285
|
+
class: "slider-rail",
|
|
1286
|
+
ref: "railRef"
|
|
1287
|
+
}, Mt = [
|
|
1288
|
+
"aria-valuemin",
|
|
1289
|
+
"aria-valuemax",
|
|
1290
|
+
"aria-valuenow",
|
|
1291
|
+
"aria-label",
|
|
1292
|
+
"aria-orientation",
|
|
1293
|
+
"aria-disabled",
|
|
1294
|
+
"onMousedown",
|
|
1295
|
+
"onTouchstart",
|
|
1296
|
+
"onMouseenter",
|
|
1297
|
+
"onKeydown",
|
|
1298
|
+
"onFocus"
|
|
1299
|
+
], Nt = {
|
|
1300
|
+
neutral: "slider--neutral",
|
|
1301
|
+
primary: "slider--primary",
|
|
1302
|
+
secondary: "slider--secondary",
|
|
1303
|
+
accent: "slider--accent",
|
|
1304
|
+
info: "slider--info",
|
|
1305
|
+
success: "slider--success",
|
|
1306
|
+
warning: "slider--warning",
|
|
1307
|
+
error: "slider--error"
|
|
1308
|
+
}, Pt = {
|
|
1309
|
+
xs: "slider--xs",
|
|
1310
|
+
sm: "slider--sm",
|
|
1311
|
+
md: "slider--md",
|
|
1312
|
+
lg: "slider--lg",
|
|
1313
|
+
xl: "slider--xl"
|
|
1314
|
+
}, Ft = /*#__PURE__*/ r(/* @__PURE__ */ y({
|
|
1315
|
+
__name: "Slider",
|
|
1316
|
+
props: /*@__PURE__*/ x({
|
|
1317
|
+
range: { type: Boolean },
|
|
1318
|
+
min: {},
|
|
1319
|
+
max: {},
|
|
1320
|
+
step: {},
|
|
1321
|
+
disableSwap: { type: Boolean },
|
|
1322
|
+
scale: { type: Function },
|
|
1323
|
+
disabled: { type: Boolean },
|
|
1324
|
+
required: { type: Boolean },
|
|
1325
|
+
ariaLabel: {},
|
|
1326
|
+
orientation: {},
|
|
1327
|
+
showTooltip: {},
|
|
1328
|
+
color: {},
|
|
1329
|
+
size: {},
|
|
1330
|
+
track: {}
|
|
1331
|
+
}, {
|
|
1332
|
+
modelValue: {},
|
|
1333
|
+
modelModifiers: {}
|
|
1334
|
+
}),
|
|
1335
|
+
emits: /*@__PURE__*/ x(["input", "change"], ["update:modelValue"]),
|
|
1336
|
+
setup(e, { expose: r, emit: a }) {
|
|
1337
|
+
let o = e, s = z(e, "modelValue"), c = t(Ot, o, {
|
|
1338
|
+
color: void 0,
|
|
1339
|
+
size: "md",
|
|
1340
|
+
track: "normal",
|
|
1341
|
+
min: 0,
|
|
1342
|
+
max: 100,
|
|
1343
|
+
step: 1,
|
|
1344
|
+
range: !1,
|
|
1345
|
+
orientation: "horizontal",
|
|
1346
|
+
showTooltip: "hover",
|
|
1347
|
+
disableSwap: !1
|
|
1348
|
+
}), l = a, d = V("sliderRoot"), p = V("anchorEl"), _ = oe(), { field: v } = i({
|
|
1349
|
+
required: f(() => !!o.required),
|
|
1350
|
+
inputEl: p
|
|
1351
|
+
}), y = N(!1), b = N(null), x = N(!1), S = N(null), C = A([]), D = () => {
|
|
1352
|
+
let e = o.min ?? 0, t = o.max ?? 100;
|
|
1353
|
+
if (o.range || Array.isArray(s.value)) {
|
|
1354
|
+
let n = s.value && Array.isArray(s.value) ? s.value : [e, t];
|
|
1355
|
+
C.value = [Math.max(e, Math.min(t, n[0])), Math.max(e, Math.min(t, n[1]))];
|
|
1356
|
+
} else {
|
|
1357
|
+
let n = s.value ?? e;
|
|
1358
|
+
C.value = [Math.max(e, Math.min(t, n))];
|
|
1359
|
+
}
|
|
1360
|
+
};
|
|
1361
|
+
D(), H(() => [
|
|
1362
|
+
s.value,
|
|
1363
|
+
o.range,
|
|
1364
|
+
o.min,
|
|
1365
|
+
o.max
|
|
1366
|
+
], () => {
|
|
1367
|
+
y.value || D();
|
|
1368
|
+
}, { deep: !0 });
|
|
1369
|
+
let k = f(() => o.range || C.value.length > 1), M = f(() => C.value), ee = f(() => c.value.track !== "none"), I = f(() => c.value.min), L = f(() => c.value.max), R = f(() => c.value.step), B = f(() => o.scale?.(I.value) ?? I.value), U = f(() => o.scale?.(L.value) ?? L.value), W = f(() => o.disableSwap ?? !1), te = (e) => {
|
|
1370
|
+
let t = L.value - I.value;
|
|
1371
|
+
return t === 0 ? 0 : (e - I.value) / t * 100;
|
|
1372
|
+
}, ne = (e) => {
|
|
1373
|
+
let t = L.value - I.value, n = I.value + e / 100 * t;
|
|
1374
|
+
if (R.value > 0) {
|
|
1375
|
+
let e = Math.round((n - I.value) / R.value);
|
|
1376
|
+
n = I.value + e * R.value;
|
|
1377
|
+
}
|
|
1378
|
+
return Math.min(L.value, Math.max(I.value, n));
|
|
1379
|
+
}, re = f(() => {
|
|
1380
|
+
let e = te(M.value[0]), t = k.value ? te(M.value[1]) : 0, n = Math.min(e, t), r = Math.max(e, t);
|
|
1381
|
+
return k.value ? c.value.track === "inverted" ? { display: "none" } : o.orientation === "vertical" ? {
|
|
1382
|
+
bottom: `${n}%`,
|
|
1383
|
+
height: `${r - n}%`
|
|
1384
|
+
} : {
|
|
1385
|
+
left: `${n}%`,
|
|
1386
|
+
width: `${r - n}%`
|
|
1387
|
+
} : c.value.track === "inverted" ? o.orientation === "vertical" ? {
|
|
1388
|
+
bottom: `${e}%`,
|
|
1389
|
+
height: `${100 - e}%`
|
|
1390
|
+
} : {
|
|
1391
|
+
left: `${e}%`,
|
|
1392
|
+
width: `${100 - e}%`
|
|
1393
|
+
} : o.orientation === "vertical" ? {
|
|
1394
|
+
bottom: "0%",
|
|
1395
|
+
height: `${e}%`
|
|
1396
|
+
} : {
|
|
1397
|
+
left: "0%",
|
|
1398
|
+
width: `${e}%`
|
|
1399
|
+
};
|
|
1400
|
+
}), ie = f(() => {
|
|
1401
|
+
if (!k.value || c.value.track !== "inverted") return {};
|
|
1402
|
+
let e = te(Math.min(M.value[0], M.value[1]));
|
|
1403
|
+
return o.orientation === "vertical" ? {
|
|
1404
|
+
bottom: "0%",
|
|
1405
|
+
height: `${e}%`
|
|
1406
|
+
} : {
|
|
1407
|
+
left: "0%",
|
|
1408
|
+
width: `${e}%`
|
|
1409
|
+
};
|
|
1410
|
+
}), ae = f(() => {
|
|
1411
|
+
if (!k.value || c.value.track !== "inverted") return {};
|
|
1412
|
+
let e = te(Math.max(M.value[0], M.value[1]));
|
|
1413
|
+
return o.orientation === "vertical" ? {
|
|
1414
|
+
bottom: `${e}%`,
|
|
1415
|
+
height: `${100 - e}%`
|
|
1416
|
+
} : {
|
|
1417
|
+
left: `${e}%`,
|
|
1418
|
+
width: `${100 - e}%`
|
|
1419
|
+
};
|
|
1420
|
+
}), se = (e) => {
|
|
1421
|
+
let t = te(M.value[e]);
|
|
1422
|
+
return o.orientation === "vertical" ? {
|
|
1423
|
+
bottom: `${t}%`,
|
|
1424
|
+
left: "50%",
|
|
1425
|
+
transform: "translateX(-50%)"
|
|
1426
|
+
} : {
|
|
1427
|
+
left: `${t}%`,
|
|
1428
|
+
top: "50%",
|
|
1429
|
+
transform: "translate(-50%, -50%)"
|
|
1430
|
+
};
|
|
1431
|
+
}, ce = (e) => {
|
|
1432
|
+
let t = te(M.value[e]);
|
|
1433
|
+
return o.orientation === "vertical" ? {
|
|
1434
|
+
bottom: `${t + 10}%`,
|
|
1435
|
+
left: "50%",
|
|
1436
|
+
transform: "translateX(-50%)"
|
|
1437
|
+
} : {
|
|
1438
|
+
left: `${t}%`,
|
|
1439
|
+
top: "-32px",
|
|
1440
|
+
transform: "translateX(-50%)"
|
|
1441
|
+
};
|
|
1442
|
+
}, K = (e) => o.scale ? String(o.scale(e)) : String(e), le = (e) => o.scale ? o.scale(M.value[e]) : M.value[e], ue = (e) => o.showTooltip === "never" ? !1 : o.showTooltip === "always" ? !0 : x.value && S.value === e || y.value && b.value === e, de = f(() => o.ariaLabel || "Slider"), fe = (e) => k.value ? e === 0 ? `${de.value} - Minimum` : `${de.value} - Maximum` : de.value;
|
|
1443
|
+
function pe(e, t) {
|
|
1444
|
+
if (!d.value) return I.value;
|
|
1445
|
+
let n = d.value.getBoundingClientRect(), r;
|
|
1446
|
+
return r = o.orientation === "vertical" ? 1 - (t - n.top) / n.height : (e - n.left) / n.width, r = Math.max(0, Math.min(1, r)), ne(r * 100);
|
|
1447
|
+
}
|
|
1448
|
+
function me(e) {
|
|
1449
|
+
return k.value ? Math.abs(e - M.value[0]) < Math.abs(e - M.value[1]) ? 0 : 1 : 0;
|
|
1450
|
+
}
|
|
1451
|
+
function q(e, t) {
|
|
1452
|
+
if (k.value) {
|
|
1453
|
+
let n = [...M.value];
|
|
1454
|
+
W.value ? t === 0 ? n[0] = Math.min(e, n[1]) : n[1] = Math.max(e, n[0]) : (n[t] = e, n[0] > n[1] && ([n[0], n[1]] = [n[1], n[0]], y.value && b.value !== null && (b.value = +(b.value === 0)))), C.value = n, s.value = [o.scale ? o.scale(n[0]) : n[0], o.scale ? o.scale(n[1]) : n[1]];
|
|
1455
|
+
} else C.value = [e], s.value = o.scale ? o.scale(e) : e;
|
|
1456
|
+
v?.setValue(s.value), v?.setDirty(!0), l("input", s.value);
|
|
1457
|
+
}
|
|
1458
|
+
function he(e) {
|
|
1459
|
+
if (o.disabled) return;
|
|
1460
|
+
let t = pe("touches" in e ? e.touches[0].clientX : e.clientX, "touches" in e ? e.touches[0].clientY : e.clientY), n = me(t);
|
|
1461
|
+
q(t, n), (e.type === "mousedown" || "touches" in e && e.touches.length > 0) && (y.value = !0, b.value = n, window.addEventListener("mousemove", J), window.addEventListener("mouseup", Y), window.addEventListener("touchmove", J, { passive: !1 }), window.addEventListener("touchend", Y));
|
|
1462
|
+
}
|
|
1463
|
+
function ge(e, t) {
|
|
1464
|
+
o.disabled || (e.preventDefault(), e.stopPropagation(), y.value = !0, b.value = t, window.addEventListener("mousemove", J), window.addEventListener("mouseup", Y), window.addEventListener("touchmove", J, { passive: !1 }), window.addEventListener("touchend", Y));
|
|
1465
|
+
}
|
|
1466
|
+
function J(e) {
|
|
1467
|
+
!y.value || b.value === null || q(pe("touches" in e ? e.touches[0].clientX : e.clientX, "touches" in e ? e.touches[0].clientY : e.clientY), b.value);
|
|
1468
|
+
}
|
|
1469
|
+
function Y() {
|
|
1470
|
+
y.value && (y.value = !1, b.value = null, window.removeEventListener("mousemove", J), window.removeEventListener("mouseup", Y), window.removeEventListener("touchmove", J), window.removeEventListener("touchend", Y), l("change", s.value));
|
|
1471
|
+
}
|
|
1472
|
+
function _e(e) {
|
|
1473
|
+
x.value = !0, S.value = e;
|
|
1474
|
+
}
|
|
1475
|
+
function ve() {
|
|
1476
|
+
x.value = !1, S.value = null;
|
|
1477
|
+
}
|
|
1478
|
+
function ye() {
|
|
1479
|
+
l("change", s.value);
|
|
1480
|
+
}
|
|
1481
|
+
function X(e) {
|
|
1482
|
+
o.disabled || e.key === "Tab" && !x.value && (e.preventDefault(), _.value[0]?.focus());
|
|
1483
|
+
}
|
|
1484
|
+
function Z(e, t) {
|
|
1485
|
+
if (o.disabled) return;
|
|
1486
|
+
let n = M.value[t], r, i = (L.value - I.value) * .1, a = R.value;
|
|
1487
|
+
switch (e.key) {
|
|
1488
|
+
case "ArrowRight":
|
|
1489
|
+
case "ArrowUp":
|
|
1490
|
+
r = n + a;
|
|
1491
|
+
break;
|
|
1492
|
+
case "ArrowLeft":
|
|
1493
|
+
case "ArrowDown":
|
|
1494
|
+
r = n - a;
|
|
1495
|
+
break;
|
|
1496
|
+
case "PageUp":
|
|
1497
|
+
r = n + i;
|
|
1498
|
+
break;
|
|
1499
|
+
case "PageDown":
|
|
1500
|
+
r = n - i;
|
|
1501
|
+
break;
|
|
1502
|
+
case "Home":
|
|
1503
|
+
r = I.value;
|
|
1504
|
+
break;
|
|
1505
|
+
case "End":
|
|
1506
|
+
r = L.value;
|
|
1507
|
+
break;
|
|
1508
|
+
case "Escape":
|
|
1509
|
+
y.value = !1, b.value = null, l("change", s.value);
|
|
1510
|
+
return;
|
|
1511
|
+
default: return;
|
|
1512
|
+
}
|
|
1513
|
+
if (e.preventDefault(), r = Math.min(L.value, Math.max(I.value, r)), k.value && W.value) {
|
|
1514
|
+
let e = t === 0 ? M.value[1] : M.value[0];
|
|
1515
|
+
r = t === 0 ? Math.min(r, e) : Math.max(r, e);
|
|
1516
|
+
}
|
|
1517
|
+
q(r, t), l("change", s.value);
|
|
1518
|
+
}
|
|
1519
|
+
return r({
|
|
1520
|
+
$el: d,
|
|
1521
|
+
focus: () => _.value[0]?.focus()
|
|
1522
|
+
}), E(() => {
|
|
1523
|
+
window.removeEventListener("mousemove", J), window.removeEventListener("mouseup", Y), window.removeEventListener("touchmove", J), window.removeEventListener("touchend", Y);
|
|
1524
|
+
}), (t, r) => (O(), h("div", {
|
|
1525
|
+
ref_key: "sliderRoot",
|
|
1526
|
+
ref: d,
|
|
1527
|
+
class: w(["slider-root", [
|
|
1528
|
+
F(n)(Nt, F(c).color),
|
|
1529
|
+
F(n)(Pt, F(c).size),
|
|
1530
|
+
{
|
|
1531
|
+
"slider-vertical": e.orientation === "vertical",
|
|
1532
|
+
"slider-horizontal": e.orientation === "horizontal",
|
|
1533
|
+
"slider-disabled": e.disabled,
|
|
1534
|
+
"slider-range": k.value
|
|
1535
|
+
}
|
|
1536
|
+
]]),
|
|
1537
|
+
role: "group",
|
|
1538
|
+
"aria-label": de.value,
|
|
1539
|
+
onMousedown: he,
|
|
1540
|
+
onTouchstart: G(he, ["prevent"]),
|
|
1541
|
+
onKeydown: X
|
|
1542
|
+
}, [
|
|
1543
|
+
g("input", {
|
|
1544
|
+
ref_key: "anchorEl",
|
|
1545
|
+
ref: p,
|
|
1546
|
+
type: "number",
|
|
1547
|
+
class: "sr-only",
|
|
1548
|
+
tabindex: "-1",
|
|
1549
|
+
"aria-hidden": "true",
|
|
1550
|
+
value: Array.isArray(s.value) ? s.value[0] : s.value,
|
|
1551
|
+
required: e.required,
|
|
1552
|
+
min: e.min,
|
|
1553
|
+
max: e.max
|
|
1554
|
+
}, null, 8, At),
|
|
1555
|
+
g("div", jt, null, 512),
|
|
1556
|
+
ee.value ? (O(), h("div", {
|
|
1557
|
+
key: 0,
|
|
1558
|
+
class: "slider-track",
|
|
1559
|
+
style: T(re.value)
|
|
1560
|
+
}, null, 4)) : m("", !0),
|
|
1561
|
+
k.value && F(c).track === "inverted" ? (O(), h(u, { key: 1 }, [g("div", {
|
|
1562
|
+
class: "slider-track slider-track--inverted-start",
|
|
1563
|
+
style: T(ie.value)
|
|
1564
|
+
}, null, 4), g("div", {
|
|
1565
|
+
class: "slider-track slider-track--inverted-end",
|
|
1566
|
+
style: T(ae.value)
|
|
1567
|
+
}, null, 4)], 64)) : m("", !0),
|
|
1568
|
+
(O(!0), h(u, null, j(M.value, (t, n) => (O(), h("div", {
|
|
1569
|
+
key: `thumb-${n}`,
|
|
1570
|
+
ref_for: !0,
|
|
1571
|
+
ref: F(_).set,
|
|
1572
|
+
class: w(["slider-thumb", {
|
|
1573
|
+
"slider-thumb-active": y.value && b.value === n,
|
|
1574
|
+
"slider-thumb-hover": x.value && S.value === n
|
|
1575
|
+
}]),
|
|
1576
|
+
style: T(se(n)),
|
|
1577
|
+
role: "slider",
|
|
1578
|
+
tabindex: "0",
|
|
1579
|
+
"aria-valuemin": B.value,
|
|
1580
|
+
"aria-valuemax": U.value,
|
|
1581
|
+
"aria-valuenow": le(n),
|
|
1582
|
+
"aria-label": fe(n),
|
|
1583
|
+
"aria-orientation": e.orientation,
|
|
1584
|
+
"aria-disabled": e.disabled || void 0,
|
|
1585
|
+
onMousedown: G((e) => ge(e, n), ["stop"]),
|
|
1586
|
+
onTouchstart: G((e) => ge(e, n), ["stop", "prevent"]),
|
|
1587
|
+
onMouseenter: () => _e(n),
|
|
1588
|
+
onMouseleave: r[0] ||= () => ve(),
|
|
1589
|
+
onKeydown: G((e) => Z(e, n), ["stop"]),
|
|
1590
|
+
onFocus: () => void 0,
|
|
1591
|
+
onBlur: ye
|
|
1592
|
+
}, [ue(n) ? (O(), h("div", {
|
|
1593
|
+
key: 0,
|
|
1594
|
+
class: w(["slider-value-label", { "slider-value-label-visible": y.value || x.value }]),
|
|
1595
|
+
style: T(ce(n))
|
|
1596
|
+
}, P(K(t)), 7)) : m("", !0)], 46, Mt))), 128))
|
|
1597
|
+
], 42, kt));
|
|
1598
|
+
}
|
|
1599
|
+
}), [["__scopeId", "data-v-70f09f1a"]]), It = e("textarea"), Lt = [
|
|
1600
|
+
"value",
|
|
1601
|
+
"disabled",
|
|
1602
|
+
"readonly",
|
|
1603
|
+
"required",
|
|
1604
|
+
"placeholder",
|
|
1605
|
+
"rows"
|
|
1606
|
+
], Rt = {
|
|
1607
|
+
key: 0,
|
|
1608
|
+
class: "flex justify-end mt-1"
|
|
1609
|
+
}, zt = {
|
|
1610
|
+
neutral: "textarea-neutral",
|
|
1611
|
+
primary: "textarea-primary",
|
|
1612
|
+
secondary: "textarea-secondary",
|
|
1613
|
+
accent: "textarea-accent",
|
|
1614
|
+
info: "textarea-info",
|
|
1615
|
+
success: "textarea-success",
|
|
1616
|
+
warning: "textarea-warning",
|
|
1617
|
+
error: "textarea-error"
|
|
1618
|
+
}, Bt = {
|
|
1619
|
+
xs: "textarea-xs",
|
|
1620
|
+
sm: "textarea-sm",
|
|
1621
|
+
md: "textarea-md",
|
|
1622
|
+
lg: "textarea-lg",
|
|
1623
|
+
xl: "textarea-xl"
|
|
1624
|
+
}, Vt = {
|
|
1625
|
+
bordered: "textarea-bordered",
|
|
1626
|
+
ghost: "textarea-ghost"
|
|
1627
|
+
}, Ht = /* @__PURE__ */ y({
|
|
1628
|
+
inheritAttrs: !1,
|
|
1629
|
+
__name: "Textarea",
|
|
1630
|
+
props: /*@__PURE__*/ x({
|
|
1631
|
+
color: {},
|
|
1632
|
+
size: {},
|
|
1633
|
+
variant: {},
|
|
1634
|
+
autoGrow: { type: Boolean },
|
|
1635
|
+
counter: { type: Boolean },
|
|
1636
|
+
minLength: {},
|
|
1637
|
+
maxLength: {},
|
|
1638
|
+
counterFormat: { type: [String, Function] },
|
|
1639
|
+
disabled: { type: [Boolean, String] },
|
|
1640
|
+
readonly: { type: [Boolean, String] },
|
|
1641
|
+
required: { type: [Boolean, String] },
|
|
1642
|
+
placeholder: {},
|
|
1643
|
+
rows: {}
|
|
1644
|
+
}, {
|
|
1645
|
+
modelValue: {},
|
|
1646
|
+
modelModifiers: {}
|
|
1647
|
+
}),
|
|
1648
|
+
emits: ["update:modelValue"],
|
|
1649
|
+
setup(e, { expose: r }) {
|
|
1650
|
+
let o = e, s = z(e, "modelValue"), c = b(X, null), l = b(a, null), d = t(It, o, {
|
|
1651
|
+
size: "md",
|
|
1652
|
+
counter: !1
|
|
1653
|
+
}, {
|
|
1654
|
+
get counter() {
|
|
1655
|
+
return l?.counter.value ?? c?.counter.value;
|
|
1656
|
+
},
|
|
1657
|
+
get counterFormat() {
|
|
1658
|
+
return l?.counterFormat.value ?? c?.counterFormat.value;
|
|
1659
|
+
}
|
|
1660
|
+
}), p = V("textareaEl"), _ = I(), { field: v, onBlur: y, clearError: x } = i({
|
|
1661
|
+
required: f(() => !!o.required),
|
|
1662
|
+
inputEl: p
|
|
1663
|
+
}), C = f(() => v ? v.value.value : s.value);
|
|
1664
|
+
function T(e) {
|
|
1665
|
+
let t = e.target.value;
|
|
1666
|
+
s.value = t, v?.setValue(t), v?.setDirty(!0), x();
|
|
1667
|
+
}
|
|
1668
|
+
let E = f(() => !!o.required || _.minlength != null || _.maxlength != null), D = f(() => (C.value ?? "").length), k = f(() => d.value.counter), A = f(() => {
|
|
1669
|
+
if (!k.value) return "";
|
|
1670
|
+
let e = d.value.counterFormat ?? "{current} / {max}", t = D.value, n = d.value.minLength, r = d.value.maxLength;
|
|
1671
|
+
return typeof e == "function" ? e(t, n, r) : e.replace("{current}", String(t)).replace("{min}", n == null ? "" : String(n)).replace("{max}", r == null ? "" : String(r));
|
|
1672
|
+
}), j = f(() => {
|
|
1673
|
+
let e = d.value.maxLength, t = d.value.minLength, n = D.value;
|
|
1674
|
+
return e != null && n > e ? "text-error" : t != null && n < t ? "text-warning" : "";
|
|
1675
|
+
});
|
|
1676
|
+
U(() => {
|
|
1677
|
+
v && v.setCounterText(k.value ? A.value : "", k.value ? j.value : "");
|
|
1678
|
+
});
|
|
1679
|
+
let M = f(() => !!v?.error.value);
|
|
1680
|
+
return r({
|
|
1681
|
+
$el: p,
|
|
1682
|
+
focus: () => p.value?.focus()
|
|
1683
|
+
}), (t, r) => (O(), h(u, null, [g("textarea", S({
|
|
1684
|
+
ref_key: "textareaEl",
|
|
1685
|
+
ref: p
|
|
1686
|
+
}, t.$attrs, {
|
|
1687
|
+
class: ["textarea w-full", [
|
|
1688
|
+
F(n)(zt, F(d).color),
|
|
1689
|
+
F(n)(Bt, F(d).size),
|
|
1690
|
+
F(n)(Vt, F(d).variant),
|
|
1691
|
+
{ "textarea-error": M.value },
|
|
1692
|
+
{ validator: E.value },
|
|
1693
|
+
{ "resize-none": !e.autoGrow }
|
|
1694
|
+
]],
|
|
1695
|
+
value: C.value,
|
|
1696
|
+
disabled: e.disabled,
|
|
1697
|
+
readonly: e.readonly,
|
|
1698
|
+
required: e.required,
|
|
1699
|
+
placeholder: e.placeholder,
|
|
1700
|
+
rows: e.rows,
|
|
1701
|
+
onInput: T,
|
|
1702
|
+
onBlur: r[0] ||= (...e) => F(y) && F(y)(...e)
|
|
1703
|
+
}), null, 16, Lt), !F(v) && k.value ? (O(), h("div", Rt, [g("span", { class: w(["text-xs", j.value]) }, P(A.value), 3)])) : m("", !0)], 64));
|
|
1704
|
+
}
|
|
1705
|
+
}), Ut = e("toggle"), Wt = [
|
|
1706
|
+
"checked",
|
|
1707
|
+
"disabled",
|
|
1708
|
+
"required",
|
|
1709
|
+
"aria-invalid"
|
|
1710
|
+
], Gt = { class: "flex flex-col gap-0.5" }, Kt = {
|
|
1711
|
+
key: 0,
|
|
1712
|
+
class: "label-text leading-snug"
|
|
1713
|
+
}, qt = {
|
|
1714
|
+
key: 0,
|
|
1715
|
+
class: "text-error ml-0.5",
|
|
1716
|
+
"aria-hidden": "true"
|
|
1717
|
+
}, Jt = {
|
|
1718
|
+
key: 1,
|
|
1719
|
+
class: "label-text text-xs text-base-content/60 leading-snug"
|
|
1720
|
+
}, Yt = [
|
|
1721
|
+
"checked",
|
|
1722
|
+
"disabled",
|
|
1723
|
+
"required",
|
|
1724
|
+
"aria-invalid"
|
|
1725
|
+
], Xt = {
|
|
1726
|
+
neutral: "toggle-neutral",
|
|
1727
|
+
primary: "toggle-primary",
|
|
1728
|
+
secondary: "toggle-secondary",
|
|
1729
|
+
accent: "toggle-accent",
|
|
1730
|
+
info: "toggle-info",
|
|
1731
|
+
success: "toggle-success",
|
|
1732
|
+
warning: "toggle-warning",
|
|
1733
|
+
error: "toggle-error"
|
|
1734
|
+
}, Zt = {
|
|
1735
|
+
xs: "toggle-xs",
|
|
1736
|
+
sm: "toggle-sm",
|
|
1737
|
+
md: "toggle-md",
|
|
1738
|
+
lg: "toggle-lg",
|
|
1739
|
+
xl: "toggle-xl"
|
|
1740
|
+
}, Qt = /* @__PURE__ */ y({
|
|
1741
|
+
__name: "Toggle",
|
|
1742
|
+
props: /*@__PURE__*/ x({
|
|
1743
|
+
description: {},
|
|
1744
|
+
hint: {},
|
|
1745
|
+
readonly: { type: Boolean },
|
|
1746
|
+
color: {},
|
|
1747
|
+
size: {},
|
|
1748
|
+
disabled: { type: [Boolean, String] },
|
|
1749
|
+
required: { type: [Boolean, String] }
|
|
1750
|
+
}, {
|
|
1751
|
+
modelValue: { type: Boolean },
|
|
1752
|
+
modelModifiers: {}
|
|
1753
|
+
}),
|
|
1754
|
+
emits: ["update:modelValue"],
|
|
1755
|
+
setup(e, { expose: r }) {
|
|
1756
|
+
let a = e, o = z(e, "modelValue"), s = t(Ut, a, { size: "md" }), c = V("inputEl"), l = B(), { field: u, fieldValue: d, onBlur: p, clearError: v } = i({
|
|
1757
|
+
required: f(() => !!a.required),
|
|
1758
|
+
inputEl: c
|
|
1759
|
+
}), y = f(() => u ? d.value : o.value);
|
|
1760
|
+
function b(e) {
|
|
1761
|
+
if (a.readonly) {
|
|
1762
|
+
e.preventDefault();
|
|
1763
|
+
return;
|
|
1764
|
+
}
|
|
1765
|
+
let t = e.target.checked;
|
|
1766
|
+
o.value = t, u?.setValue(t), u?.setDirty(!0), v();
|
|
1767
|
+
}
|
|
1768
|
+
let x = f(() => !!u?.error.value), S = f(() => !!(a.description || l.description)), C = f(() => !!(a.hint || l.hint)), T = f(() => S.value || C.value);
|
|
1769
|
+
return r({
|
|
1770
|
+
$el: c,
|
|
1771
|
+
focus: () => c.value?.focus()
|
|
1772
|
+
}), (t, r) => T.value ? (O(), h("label", {
|
|
1773
|
+
key: 0,
|
|
1774
|
+
class: w(["flex cursor-pointer items-start gap-2", { "opacity-60 pointer-events-none": e.disabled || e.readonly }])
|
|
1775
|
+
}, [g("input", {
|
|
1776
|
+
ref_key: "inputEl",
|
|
1777
|
+
ref: c,
|
|
1778
|
+
type: "checkbox",
|
|
1779
|
+
role: "switch",
|
|
1780
|
+
class: w(["toggle mt-0.5", [
|
|
1781
|
+
F(n)(Xt, F(s).color),
|
|
1782
|
+
F(n)(Zt, F(s).size),
|
|
1783
|
+
{ "toggle-error": x.value },
|
|
1784
|
+
{ validator: e.required }
|
|
1785
|
+
]]),
|
|
1786
|
+
checked: y.value,
|
|
1787
|
+
disabled: e.disabled,
|
|
1788
|
+
required: e.required,
|
|
1789
|
+
"aria-invalid": x.value || void 0,
|
|
1790
|
+
onChange: b,
|
|
1791
|
+
onBlur: r[0] ||= (...e) => F(p) && F(p)(...e)
|
|
1792
|
+
}, null, 42, Wt), g("span", Gt, [S.value ? (O(), h("span", Kt, [M(t.$slots, "description", {}, () => [_(P(e.description), 1)]), e.required ? (O(), h("span", qt, "*")) : m("", !0)])) : m("", !0), C.value ? (O(), h("span", Jt, [M(t.$slots, "hint", {}, () => [_(P(e.hint), 1)])])) : m("", !0)])], 2)) : (O(), h("input", {
|
|
1793
|
+
key: 1,
|
|
1794
|
+
ref_key: "inputEl",
|
|
1795
|
+
ref: c,
|
|
1796
|
+
type: "checkbox",
|
|
1797
|
+
role: "switch",
|
|
1798
|
+
class: w(["toggle", [
|
|
1799
|
+
F(n)(Xt, F(s).color),
|
|
1800
|
+
F(n)(Zt, F(s).size),
|
|
1801
|
+
{ "toggle-error": x.value },
|
|
1802
|
+
{ validator: e.required }
|
|
1803
|
+
]]),
|
|
1804
|
+
checked: y.value,
|
|
1805
|
+
disabled: e.disabled,
|
|
1806
|
+
required: e.required,
|
|
1807
|
+
"aria-invalid": x.value || void 0,
|
|
1808
|
+
onChange: b,
|
|
1809
|
+
onBlur: r[1] ||= (...e) => F(p) && F(p)(...e)
|
|
1810
|
+
}, null, 42, Yt));
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
//#endregion
|
|
1814
|
+
export { he as Checkbox, J as FieldSet, be as Form, Ae as FormField, Re as Input, Ye as Radio, Ze as RadioGroup, at as Rating, Dt as Select, Ft as Slider, Ht as Textarea, Qt as Toggle };
|
|
1815
|
+
|
|
1816
|
+
//# sourceMappingURL=public.es.js.map
|