@groupteknology/vuno 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -27
- package/dist/module.d.mts +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +33 -12
- package/dist/runtime/app/assets/css/dialog.css +1 -1
- package/dist/runtime/app/assets/css/stylesheet.css +1 -0
- package/dist/runtime/app/assets/css/theme.css +1 -1
- package/dist/runtime/app/assets/css/tokens.css +1 -1
- package/dist/runtime/app/components/Alert/Alert.d.vue.ts +20 -0
- package/dist/runtime/app/components/Alert/Alert.theme.d.ts +13 -0
- package/dist/runtime/app/components/Alert/Alert.theme.js +13 -0
- package/dist/runtime/app/components/Alert/Alert.vue +59 -0
- package/dist/runtime/app/components/Alert/Alert.vue.d.ts +20 -0
- package/dist/runtime/app/components/{overlays → App}/App.d.vue.ts +4 -5
- package/dist/runtime/app/components/{overlays → App}/App.vue +8 -12
- package/dist/runtime/app/components/{overlays → App}/App.vue.d.ts +4 -5
- package/dist/runtime/app/components/App/internal/Overlay/Overlay.d.vue.ts +7 -0
- package/dist/runtime/app/components/{overlays → App/internal/Overlay}/Overlay.vue +5 -6
- package/dist/runtime/app/components/App/internal/Overlay/Overlay.vue.d.ts +7 -0
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.d.vue.ts +8 -0
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue +19 -0
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue.d.ts +8 -0
- package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.d.vue.ts +3 -3
- package/dist/runtime/app/components/App/internal/Toast/Toast.theme.d.ts +13 -0
- package/dist/runtime/app/components/App/internal/Toast/Toast.theme.js +18 -0
- package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.vue +3 -2
- package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.vue.d.ts +3 -3
- package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.d.vue.ts +3 -3
- package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.d.ts +15 -0
- package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.js +16 -0
- package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.vue +3 -2
- package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.vue.d.ts +3 -3
- package/dist/runtime/app/components/{actions → Avatar}/Avatar.d.vue.ts +9 -5
- package/dist/runtime/app/components/Avatar/Avatar.theme.d.ts +30 -0
- package/dist/runtime/app/components/Avatar/Avatar.theme.js +22 -0
- package/dist/runtime/app/components/{actions → Avatar}/Avatar.vue +7 -5
- package/dist/runtime/app/components/{actions → Avatar}/Avatar.vue.d.ts +9 -5
- package/dist/runtime/app/components/{actions → Badge}/Badge.d.vue.ts +9 -5
- package/dist/runtime/app/components/Badge/Badge.theme.d.ts +40 -0
- package/dist/runtime/app/components/Badge/Badge.theme.js +22 -0
- package/dist/runtime/app/components/{actions → Badge}/Badge.vue +3 -0
- package/dist/runtime/app/components/{actions → Badge}/Badge.vue.d.ts +9 -5
- package/dist/runtime/app/components/{actions → Button}/Button.d.vue.ts +10 -6
- package/dist/runtime/app/components/Button/Button.theme.d.ts +88 -0
- package/dist/runtime/app/components/Button/Button.theme.js +59 -0
- package/dist/runtime/app/components/{actions → Button}/Button.vue +10 -3
- package/dist/runtime/app/components/{actions → Button}/Button.vue.d.ts +10 -6
- package/dist/runtime/app/components/{structure → Card}/Card.d.vue.ts +9 -5
- package/dist/runtime/app/components/Card/Card.theme.d.ts +57 -0
- package/dist/runtime/app/components/Card/Card.theme.js +62 -0
- package/dist/runtime/app/components/{structure → Card}/Card.vue +3 -1
- package/dist/runtime/app/components/{structure → Card}/Card.vue.d.ts +9 -5
- package/dist/runtime/app/components/Code/Code.d.vue.ts +19 -0
- package/dist/runtime/app/components/Code/Code.theme.d.ts +11 -0
- package/dist/runtime/app/components/Code/Code.theme.js +12 -0
- package/dist/runtime/app/components/Code/Code.vue +109 -0
- package/dist/runtime/app/components/Code/Code.vue.d.ts +19 -0
- package/dist/runtime/app/components/{overlays → Confirm}/Confirm.d.vue.ts +2 -2
- package/dist/runtime/app/components/Confirm/Confirm.theme.d.ts +12 -0
- package/dist/runtime/app/components/Confirm/Confirm.theme.js +13 -0
- package/dist/runtime/app/components/{overlays → Confirm}/Confirm.vue +10 -5
- package/dist/runtime/app/components/{overlays → Confirm}/Confirm.vue.d.ts +2 -2
- package/dist/runtime/app/components/{structure → Container}/Container.d.vue.ts +5 -5
- package/dist/runtime/app/components/Container/Container.theme.d.ts +53 -0
- package/dist/runtime/app/components/Container/Container.theme.js +31 -0
- package/dist/runtime/app/components/{structure → Container}/Container.vue +2 -1
- package/dist/runtime/app/components/{structure → Container}/Container.vue.d.ts +5 -5
- package/dist/runtime/app/components/ControlGroup/ControlGroup.d.vue.ts +26 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.theme.d.ts +16 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.theme.js +13 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.vue +26 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.vue.d.ts +26 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.theme.d.ts +12 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.theme.js +13 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.vue +173 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.theme.js +2 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue +39 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue.d.ts +13 -0
- package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.d.vue.ts +9 -4
- package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.theme.d.ts +30 -0
- package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.theme.js +10 -0
- package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue +7 -4
- package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue.d.ts +9 -4
- package/dist/runtime/app/components/FieldColor/FieldColor.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.theme.d.ts +27 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.theme.js +18 -0
- package/dist/runtime/app/components/{forms/fields → FieldColor}/FieldColor.vue +39 -32
- package/dist/runtime/app/components/FieldColor/FieldColor.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.theme.js +2 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue +51 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue.d.ts +13 -0
- package/dist/runtime/app/components/{forms/fields → FieldFile}/FieldFile.d.vue.ts +10 -2
- package/dist/runtime/app/components/FieldFile/FieldFile.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.theme.js +2 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.vue +99 -0
- package/dist/runtime/app/components/{forms/fields → FieldFile}/FieldFile.vue.d.ts +10 -2
- package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.d.vue.ts +25 -20
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.d.ts +88 -0
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.js +55 -0
- package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.vue +21 -20
- package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.vue.d.ts +25 -20
- package/dist/runtime/app/components/FieldInput/FieldInput.d.vue.ts +24 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.theme.js +2 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.vue +61 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.vue.d.ts +24 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.theme.js +2 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.vue +47 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.theme.js +2 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.vue +62 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.theme.js +2 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.vue +41 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.vue.d.ts +13 -0
- package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.d.vue.ts +10 -8
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.theme.d.ts +54 -0
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.theme.js +31 -0
- package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue +7 -4
- package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue.d.ts +10 -8
- package/dist/runtime/app/components/FieldSearch/FieldSearch.d.vue.ts +17 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.theme.d.ts +6 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.theme.js +7 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.vue +74 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.vue.d.ts +17 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.theme.js +2 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.vue +45 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.d.vue.ts +97 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.theme.d.ts +36 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.theme.js +49 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue +196 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue.d.ts +97 -0
- package/dist/runtime/app/{utils → components/FieldSelect/internal/Select}/option.d.ts +3 -4
- package/dist/runtime/app/components/FieldSelect/internal/Select/useVunoSelectState.d.ts +30 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/useVunoSelectState.js +142 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.theme.js +2 -0
- package/dist/runtime/app/components/{forms/fields → FieldSlug}/FieldSlug.vue +58 -47
- package/dist/runtime/app/components/FieldSlug/FieldSlug.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.theme.js +2 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue +37 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue.d.ts +13 -0
- package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.d.vue.ts +9 -4
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.theme.d.ts +39 -0
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.theme.js +20 -0
- package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.vue +4 -2
- package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.vue.d.ts +9 -4
- package/dist/runtime/app/components/FieldTags/FieldTags.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.theme.js +2 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.vue +41 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.d.vue.ts +26 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.theme.d.ts +34 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.theme.js +20 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue +97 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue.d.ts +26 -0
- package/dist/runtime/app/components/{forms/fields → FieldTextarea}/FieldTextarea.d.vue.ts +10 -2
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.theme.js +2 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.vue +45 -0
- package/dist/runtime/app/components/{forms/fields → FieldTextarea}/FieldTextarea.vue.d.ts +10 -2
- package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.d.vue.ts +9 -4
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.theme.d.ts +36 -0
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.theme.js +37 -0
- package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.vue +6 -4
- package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.vue.d.ts +9 -4
- package/dist/runtime/app/components/{forms → Form}/Form.d.vue.ts +3 -4
- package/dist/runtime/app/components/Form/Form.theme.d.ts +9 -0
- package/dist/runtime/app/components/Form/Form.theme.js +10 -0
- package/dist/runtime/app/components/{forms → Form}/Form.vue +7 -6
- package/dist/runtime/app/components/{forms → Form}/Form.vue.d.ts +3 -4
- package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.d.vue.ts +7 -0
- package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue +67 -0
- package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue.d.ts +7 -0
- package/dist/runtime/app/components/Form/internal/standard-schema.d.ts +29 -0
- package/dist/runtime/app/{internal → components/Form/internal}/useVunoFormState.d.ts +5 -3
- package/dist/runtime/app/{internal → components/Form/internal}/useVunoFormState.js +4 -3
- package/dist/runtime/app/components/{forms → FormField}/FormField.d.vue.ts +7 -4
- package/dist/runtime/app/components/FormField/FormField.theme.d.ts +62 -0
- package/dist/runtime/app/components/FormField/FormField.theme.js +28 -0
- package/dist/runtime/app/components/{forms → FormField}/FormField.vue +61 -42
- package/dist/runtime/app/components/{forms → FormField}/FormField.vue.d.ts +7 -4
- package/dist/runtime/app/components/{forms → FormModal}/FormModal.d.vue.ts +9 -7
- package/dist/runtime/app/components/FormModal/FormModal.theme.d.ts +8 -0
- package/dist/runtime/app/components/FormModal/FormModal.theme.js +9 -0
- package/dist/runtime/app/components/{forms → FormModal}/FormModal.vue +15 -12
- package/dist/runtime/app/components/{forms → FormModal}/FormModal.vue.d.ts +9 -7
- package/dist/runtime/app/components/FormSection/FormSection.d.vue.ts +15 -0
- package/dist/runtime/app/components/FormSection/FormSection.theme.d.ts +12 -0
- package/dist/runtime/app/components/FormSection/FormSection.theme.js +14 -0
- package/dist/runtime/app/components/{forms → FormSection}/FormSection.vue +5 -3
- package/dist/runtime/app/components/FormSection/FormSection.vue.d.ts +15 -0
- package/dist/runtime/app/components/Icon/Icon.d.vue.ts +6 -0
- package/dist/runtime/app/components/Icon/Icon.vue +32 -0
- package/dist/runtime/app/components/Icon/Icon.vue.d.ts +6 -0
- package/dist/runtime/app/components/{actions → Menu}/Menu.d.vue.ts +6 -4
- package/dist/runtime/app/components/Menu/Menu.theme.d.ts +17 -0
- package/dist/runtime/app/components/Menu/Menu.theme.js +20 -0
- package/dist/runtime/app/components/{actions → Menu}/Menu.vue +20 -27
- package/dist/runtime/app/components/{actions → Menu}/Menu.vue.d.ts +6 -4
- package/dist/runtime/app/components/Modal/Modal.d.vue.ts +43 -0
- package/dist/runtime/app/components/Modal/Modal.theme.d.ts +59 -0
- package/dist/runtime/app/components/Modal/Modal.theme.js +47 -0
- package/dist/runtime/app/components/{overlays → Modal}/Modal.vue +89 -32
- package/dist/runtime/app/components/Modal/Modal.vue.d.ts +43 -0
- package/dist/runtime/app/components/{structure → Navbar}/Navbar.d.vue.ts +14 -18
- package/dist/runtime/app/components/Navbar/Navbar.theme.d.ts +31 -0
- package/dist/runtime/app/components/Navbar/Navbar.theme.js +32 -0
- package/dist/runtime/app/components/{structure → Navbar}/Navbar.vue +1 -0
- package/dist/runtime/app/components/{structure → Navbar}/Navbar.vue.d.ts +14 -18
- package/dist/runtime/app/components/NavigationList/NavigationList.d.vue.ts +38 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.theme.d.ts +32 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.theme.js +35 -0
- package/dist/runtime/app/components/{structure/Navigation.vue → NavigationList/NavigationList.vue} +74 -34
- package/dist/runtime/app/components/NavigationList/NavigationList.vue.d.ts +38 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.d.vue.ts +31 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.theme.d.ts +26 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.theme.js +27 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue +236 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue.d.ts +31 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.d.vue.ts +14 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.theme.d.ts +9 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.theme.js +10 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.vue +81 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.vue.d.ts +14 -0
- package/dist/runtime/app/components/{structure → Page}/Page.d.vue.ts +6 -5
- package/dist/runtime/app/components/Page/Page.theme.d.ts +32 -0
- package/dist/runtime/app/components/Page/Page.theme.js +31 -0
- package/dist/runtime/app/components/{structure → Page}/Page.vue +11 -3
- package/dist/runtime/app/components/{structure → Page}/Page.vue.d.ts +6 -5
- package/dist/runtime/app/components/{structure → Pagination}/Pagination.d.vue.ts +8 -7
- package/dist/runtime/app/components/Pagination/Pagination.theme.d.ts +13 -0
- package/dist/runtime/app/components/Pagination/Pagination.theme.js +14 -0
- package/dist/runtime/app/components/{structure → Pagination}/Pagination.vue +4 -2
- package/dist/runtime/app/components/{structure → Pagination}/Pagination.vue.d.ts +8 -7
- package/dist/runtime/app/components/{overlays/Modal.d.vue.ts → Slideover/Slideover.d.vue.ts} +10 -18
- package/dist/runtime/app/components/Slideover/Slideover.theme.d.ts +35 -0
- package/dist/runtime/app/components/Slideover/Slideover.theme.js +24 -0
- package/dist/runtime/app/components/Slideover/Slideover.vue +58 -0
- package/dist/runtime/app/components/{overlays/Modal.vue.d.ts → Slideover/Slideover.vue.d.ts} +10 -18
- package/dist/runtime/app/components/State/State.theme.d.ts +19 -0
- package/dist/runtime/app/components/State/State.theme.js +26 -0
- package/dist/runtime/app/components/{structure → State}/State.vue +8 -3
- package/dist/runtime/app/components/{structure → Table}/Table.d.vue.ts +5 -2
- package/dist/runtime/app/components/Table/Table.theme.d.ts +50 -0
- package/dist/runtime/app/components/Table/Table.theme.js +64 -0
- package/dist/runtime/app/components/{structure → Table}/Table.vue +62 -72
- package/dist/runtime/app/components/{structure → Table}/Table.vue.d.ts +5 -2
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.vue +2 -1
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.theme.d.ts +21 -0
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.theme.js +11 -0
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.vue +32 -0
- package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.theme.d.ts +5 -0
- package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.theme.js +4 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.vue +1 -0
- package/dist/runtime/app/components/Table/internal/CellDate/CellDate.theme.d.ts +5 -0
- package/dist/runtime/app/components/Table/internal/CellDate/CellDate.theme.js +4 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.vue +1 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.vue +2 -1
- package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.theme.d.ts +5 -0
- package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.theme.js +4 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.vue +1 -0
- package/dist/runtime/app/components/Table/internal/CellText/CellText.theme.d.ts +13 -0
- package/dist/runtime/app/components/Table/internal/CellText/CellText.theme.js +11 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.vue +1 -0
- package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.vue +9 -8
- package/dist/runtime/app/{utils → components/Table/internal}/column.js +1 -1
- package/dist/runtime/app/{internal → components/Table/internal}/useVunoTable.d.ts +23 -22
- package/dist/runtime/app/{internal → components/Table/internal}/useVunoTable.js +1 -1
- package/dist/runtime/app/components/Table/internal/useVunoTableSelection.d.ts +21 -0
- package/dist/runtime/app/components/Table/internal/useVunoTableSelection.js +29 -0
- package/dist/runtime/app/components/{structure → Tabs}/Tabs.d.vue.ts +8 -7
- package/dist/runtime/app/components/Tabs/Tabs.theme.d.ts +32 -0
- package/dist/runtime/app/components/Tabs/Tabs.theme.js +23 -0
- package/dist/runtime/app/components/{structure → Tabs}/Tabs.vue +13 -8
- package/dist/runtime/app/components/{structure → Tabs}/Tabs.vue.d.ts +8 -7
- package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.d.vue.ts +6 -6
- package/dist/runtime/app/components/Tooltip/Tooltip.theme.d.ts +12 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.theme.js +13 -0
- package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.vue +10 -23
- package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.vue.d.ts +6 -6
- package/dist/runtime/app/components/{forms → internal/ControlShell}/ControlShell.d.vue.ts +9 -5
- package/dist/runtime/app/components/internal/ControlShell/ControlShell.theme.d.ts +50 -0
- package/dist/runtime/app/components/internal/ControlShell/ControlShell.theme.js +38 -0
- package/dist/runtime/app/components/internal/ControlShell/ControlShell.vue +33 -0
- package/dist/runtime/app/components/{forms → internal/ControlShell}/ControlShell.vue.d.ts +9 -5
- package/dist/runtime/app/components/internal/FieldShell/FieldShell.d.vue.ts +23 -0
- package/dist/runtime/app/components/internal/FieldShell/FieldShell.vue +63 -0
- package/dist/runtime/app/components/internal/FieldShell/FieldShell.vue.d.ts +23 -0
- package/dist/runtime/app/components/{forms → internal/Input}/Input.d.vue.ts +15 -10
- package/dist/runtime/app/components/internal/Input/Input.theme.d.ts +30 -0
- package/dist/runtime/app/components/internal/Input/Input.theme.js +21 -0
- package/dist/runtime/app/components/{forms → internal/Input}/Input.vue +8 -6
- package/dist/runtime/app/components/{forms → internal/Input}/Input.vue.d.ts +15 -10
- package/dist/runtime/app/components/{forms → internal/NumberInput}/NumberInput.d.vue.ts +14 -8
- package/dist/runtime/app/components/internal/NumberInput/NumberInput.theme.d.ts +31 -0
- package/dist/runtime/app/components/internal/NumberInput/NumberInput.theme.js +26 -0
- package/dist/runtime/app/components/internal/NumberInput/NumberInput.vue +221 -0
- package/dist/runtime/app/components/{forms → internal/NumberInput}/NumberInput.vue.d.ts +14 -8
- package/dist/runtime/app/{utils → components/internal/NumberInput}/number.d.ts +7 -0
- package/dist/runtime/app/components/internal/NumberInput/number.js +64 -0
- package/dist/runtime/app/composables/defineShortcuts.d.ts +19 -0
- package/dist/runtime/app/composables/defineShortcuts.js +68 -0
- package/dist/runtime/app/{internal → composables/internal}/useVunoAnchor.d.ts +6 -4
- package/dist/runtime/app/{internal → composables/internal}/useVunoAnchor.js +3 -2
- package/dist/runtime/app/composables/internal/useVunoControlGroup.d.ts +17 -0
- package/dist/runtime/app/composables/internal/useVunoControlGroup.js +18 -0
- package/dist/runtime/app/{internal → composables/internal}/useVunoPortal.d.ts +3 -8
- package/dist/runtime/app/composables/internal/useVunoPortal.js +12 -0
- package/dist/runtime/app/composables/useCrud.js +5 -4
- package/dist/runtime/app/composables/useField.d.ts +3 -3
- package/dist/runtime/app/composables/useField.js +16 -8
- package/dist/runtime/app/composables/useForm.d.ts +3 -0
- package/dist/runtime/app/composables/useForm.js +2 -2
- package/dist/runtime/app/composables/useModal.js +1 -3
- package/dist/runtime/app/composables/useTableQuery.js +29 -13
- package/dist/runtime/app/composables/useTheme.d.ts +3 -2
- package/dist/runtime/app/composables/useTheme.js +4 -2
- package/dist/runtime/app/internal/keys.d.ts +11 -5
- package/dist/runtime/app/internal/keys.js +5 -2
- package/dist/runtime/app/internal/slots.d.ts +3 -0
- package/dist/runtime/app/internal/slots.js +13 -1
- package/dist/runtime/app/plugins/vue-query.d.ts +8 -0
- package/dist/runtime/app/plugins/vue-query.js +13 -0
- package/dist/runtime/app/theme/icons.js +4 -1
- package/dist/runtime/app/theme/index.d.ts +1158 -4
- package/dist/runtime/app/theme/index.js +116 -10
- package/dist/runtime/app/theme/messages.js +10 -3
- package/dist/runtime/app/theme/shared.d.ts +19 -3
- package/dist/runtime/app/theme/shared.js +15 -1
- package/dist/runtime/app/types/alert.d.ts +13 -0
- package/dist/runtime/app/types/base.d.ts +19 -1
- package/dist/runtime/app/types/field-type.d.ts +4 -0
- package/dist/runtime/app/types/field-type.js +0 -0
- package/dist/runtime/app/types/field.d.ts +132 -26
- package/dist/runtime/app/types/form.d.ts +27 -1
- package/dist/runtime/app/types/index.d.ts +15 -12
- package/dist/runtime/app/types/page.d.ts +9 -1
- package/dist/runtime/app/types/shortcuts.d.ts +44 -0
- package/dist/runtime/app/types/shortcuts.js +0 -0
- package/dist/runtime/app/types/slots.d.ts +30 -0
- package/dist/runtime/app/types/slots.js +0 -0
- package/dist/runtime/app/types/state.d.ts +3 -3
- package/dist/runtime/app/types/table.d.ts +3 -2
- package/dist/runtime/app/types/theme.d.ts +51 -13
- package/dist/runtime/app/utils/format.js +2 -2
- package/dist/runtime/app/utils/path.js +4 -2
- package/dist/runtime/app/utils/theme.d.ts +19 -1
- package/dist/runtime/app/utils/theme.js +21 -3
- package/package.json +18 -3
- package/dist/runtime/app/components/actions/Icon.d.vue.ts +0 -6
- package/dist/runtime/app/components/actions/Icon.vue +0 -32
- package/dist/runtime/app/components/actions/Icon.vue.d.ts +0 -6
- package/dist/runtime/app/components/forms/ControlShell.vue +0 -19
- package/dist/runtime/app/components/forms/FormFieldRenderer.d.vue.ts +0 -7
- package/dist/runtime/app/components/forms/FormFieldRenderer.vue +0 -88
- package/dist/runtime/app/components/forms/FormFieldRenderer.vue.d.ts +0 -7
- package/dist/runtime/app/components/forms/FormSection.d.vue.ts +0 -12
- package/dist/runtime/app/components/forms/FormSection.vue.d.ts +0 -12
- package/dist/runtime/app/components/forms/NumberInput.vue +0 -160
- package/dist/runtime/app/components/forms/Select.d.vue.ts +0 -61
- package/dist/runtime/app/components/forms/Select.vue +0 -336
- package/dist/runtime/app/components/forms/Select.vue.d.ts +0 -61
- package/dist/runtime/app/components/forms/fields/FieldArray.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldArray.vue +0 -129
- package/dist/runtime/app/components/forms/fields/FieldArray.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldCheckbox.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldCheckbox.vue +0 -31
- package/dist/runtime/app/components/forms/fields/FieldCheckbox.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldColor.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldColor.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldEmail.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldEmail.vue +0 -38
- package/dist/runtime/app/components/forms/fields/FieldEmail.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldFile.vue +0 -91
- package/dist/runtime/app/components/forms/fields/FieldNumber.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldNumber.vue +0 -39
- package/dist/runtime/app/components/forms/fields/FieldNumber.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldPassword.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldPassword.vue +0 -36
- package/dist/runtime/app/components/forms/fields/FieldPassword.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldRadio.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldRadio.vue +0 -33
- package/dist/runtime/app/components/forms/fields/FieldRadio.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSelect.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSelect.vue +0 -37
- package/dist/runtime/app/components/forms/fields/FieldSelect.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSlug.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSlug.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSwitch.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSwitch.vue +0 -29
- package/dist/runtime/app/components/forms/fields/FieldSwitch.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldText.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldText.vue +0 -39
- package/dist/runtime/app/components/forms/fields/FieldText.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldTextarea.vue +0 -37
- package/dist/runtime/app/components/layouts/dashboard/DashboardAside.d.vue.ts +0 -56
- package/dist/runtime/app/components/layouts/dashboard/DashboardAside.vue +0 -96
- package/dist/runtime/app/components/layouts/dashboard/DashboardAside.vue.d.ts +0 -56
- package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.d.vue.ts +0 -57
- package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.vue +0 -164
- package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.vue.d.ts +0 -57
- package/dist/runtime/app/components/layouts/dashboard/DashboardPage.d.vue.ts +0 -49
- package/dist/runtime/app/components/layouts/dashboard/DashboardPage.vue +0 -45
- package/dist/runtime/app/components/layouts/dashboard/DashboardPage.vue.d.ts +0 -49
- package/dist/runtime/app/components/layouts/public/PublicLayout.d.vue.ts +0 -50
- package/dist/runtime/app/components/layouts/public/PublicLayout.vue +0 -56
- package/dist/runtime/app/components/layouts/public/PublicLayout.vue.d.ts +0 -50
- package/dist/runtime/app/components/overlays/Context.d.vue.ts +0 -3
- package/dist/runtime/app/components/overlays/Context.vue +0 -7
- package/dist/runtime/app/components/overlays/Context.vue.d.ts +0 -3
- package/dist/runtime/app/components/overlays/Overlay.d.vue.ts +0 -7
- package/dist/runtime/app/components/overlays/Overlay.vue.d.ts +0 -7
- package/dist/runtime/app/components/structure/Navigation.d.vue.ts +0 -14
- package/dist/runtime/app/components/structure/Navigation.vue.d.ts +0 -14
- package/dist/runtime/app/components/structure/cells/CellBoolean.vue +0 -26
- package/dist/runtime/app/composables/useDashboard.d.ts +0 -14
- package/dist/runtime/app/composables/useDashboard.js +0 -9
- package/dist/runtime/app/internal/useVunoDashboard.d.ts +0 -15
- package/dist/runtime/app/internal/useVunoDashboard.js +0 -5
- package/dist/runtime/app/internal/useVunoPortal.js +0 -8
- package/dist/runtime/app/theme/actions.d.ts +0 -2
- package/dist/runtime/app/theme/actions.js +0 -123
- package/dist/runtime/app/theme/forms.d.ts +0 -2
- package/dist/runtime/app/theme/forms.js +0 -442
- package/dist/runtime/app/theme/layouts.d.ts +0 -2
- package/dist/runtime/app/theme/layouts.js +0 -76
- package/dist/runtime/app/theme/overlays.d.ts +0 -2
- package/dist/runtime/app/theme/overlays.js +0 -90
- package/dist/runtime/app/theme/structure.d.ts +0 -2
- package/dist/runtime/app/theme/structure.js +0 -351
- package/dist/runtime/app/types/dashboard.d.ts +0 -7
- package/dist/runtime/app/utils/number.js +0 -30
- package/dist/runtime/app/utils/standard-schema.d.ts +0 -62
- /package/dist/runtime/app/{utils → components/FieldSelect/internal/Select}/option.js +0 -0
- /package/dist/runtime/app/{utils → components/Form/internal}/grid.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Form/internal}/grid.js +0 -0
- /package/dist/runtime/app/{utils → components/Form/internal}/standard-schema.js +0 -0
- /package/dist/runtime/app/components/{structure → State}/State.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure → State}/State.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBoolean}/CellBoolean.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBoolean}/CellBoolean.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.vue.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/column.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/query.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/query.js +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/selection.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/selection.js +0 -0
- /package/dist/runtime/app/types/{dashboard.js → alert.js} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useField } from "#vuno/composables/useField";
|
|
3
|
+
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import RadioGroup from "#vuno/components/FieldRadio/internal/RadioGroup/RadioGroup.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
6
|
+
defineOptions({ name: "VunoFieldRadio" });
|
|
7
|
+
const model = defineModel({ type: [Boolean, null, Number, String], skipCheck: true, ...{ default: void 0 } });
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
name: { type: String, required: false },
|
|
10
|
+
class: { type: String, required: false },
|
|
11
|
+
description: { type: String, required: false },
|
|
12
|
+
disabled: { type: Boolean, required: false },
|
|
13
|
+
error: { type: String, required: false },
|
|
14
|
+
help: { type: String, required: false },
|
|
15
|
+
hint: { type: String, required: false },
|
|
16
|
+
label: { type: String, required: false },
|
|
17
|
+
orientation: { type: String, required: false },
|
|
18
|
+
required: { type: Boolean, required: false },
|
|
19
|
+
size: { type: String, required: false },
|
|
20
|
+
ui: { type: Object, required: false },
|
|
21
|
+
items: { type: Array, required: true },
|
|
22
|
+
itemsOrientation: { type: String, required: false }
|
|
23
|
+
});
|
|
24
|
+
const { value } = useField(() => props.name, model);
|
|
25
|
+
const ui = useTheme("fieldRadio", () => props.ui);
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<FieldShell v-bind="props">
|
|
30
|
+
<template #default="control">
|
|
31
|
+
<RadioGroup
|
|
32
|
+
v-bind="control"
|
|
33
|
+
v-model="value"
|
|
34
|
+
:disabled="props.disabled"
|
|
35
|
+
:items="props.items"
|
|
36
|
+
:orientation="props.itemsOrientation ?? 'vertical'"
|
|
37
|
+
:ui="ui"
|
|
38
|
+
/>
|
|
39
|
+
</template>
|
|
40
|
+
</FieldShell>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldOptionValue, VunoFieldRadio } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldRadio, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: undefined | VunoFieldOptionValue;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: VunoFieldOptionValue | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.d.vue.ts
RENAMED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
type
|
|
1
|
+
import type { VunoColor, VunoSize } from '#vuno/types/base';
|
|
2
|
+
import type { VunoControlOrientation, VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
3
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
4
|
+
type __VLS_Props = Props;
|
|
5
|
+
type Props = {
|
|
4
6
|
/** El que agrupa: todas las opciones comparten el mismo. */
|
|
5
7
|
name?: string;
|
|
6
8
|
color?: VunoColor;
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
items: VunoFieldOption[];
|
|
9
|
-
orientation?:
|
|
11
|
+
orientation?: VunoControlOrientation;
|
|
10
12
|
required?: boolean;
|
|
11
13
|
size?: VunoSize;
|
|
12
|
-
ui?:
|
|
14
|
+
ui?: VunoUi<'fieldRadio' | 'radioGroup'>;
|
|
13
15
|
};
|
|
14
16
|
type __VLS_ModelProps = {
|
|
15
17
|
modelValue?: undefined | VunoFieldOptionValue;
|
|
@@ -21,10 +23,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
21
23
|
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | undefined) => any) | undefined;
|
|
22
24
|
}>, {
|
|
23
25
|
color: VunoColor;
|
|
24
|
-
name: string;
|
|
25
26
|
size: VunoSize;
|
|
26
|
-
orientation:
|
|
27
|
-
|
|
27
|
+
orientation: VunoControlOrientation;
|
|
28
|
+
name: string;
|
|
29
|
+
ui: VunoUi<"fieldRadio" | "radioGroup">;
|
|
28
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
31
|
declare const _default: typeof __VLS_export;
|
|
30
32
|
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* El grupo de radios. El control es nativo, así que el círculo de dentro lo
|
|
3
|
+
* pinta el navegador con `accent-color` en vez de dibujarlo aquí: es lo
|
|
4
|
+
* mismo que hace la casilla, y evita tener que reproducir a mano el estado
|
|
5
|
+
* marcado, el foco y el deshabilitado.
|
|
6
|
+
*/
|
|
7
|
+
export declare const radioGroupTheme: Record<"radioGroup", {
|
|
8
|
+
readonly slots: {
|
|
9
|
+
readonly control: "mt-0.5 shrink-0 cursor-pointer border border-vuno-border-strong bg-vuno-surface accent-(--vuno-accent) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--vuno-accent) disabled:cursor-not-allowed disabled:opacity-50";
|
|
10
|
+
readonly description: "text-vuno-muted";
|
|
11
|
+
readonly item: "flex items-start gap-2";
|
|
12
|
+
readonly label: "cursor-pointer text-vuno-body";
|
|
13
|
+
readonly root: "flex w-full";
|
|
14
|
+
readonly texts: "flex min-w-0 flex-col";
|
|
15
|
+
};
|
|
16
|
+
readonly variants: {
|
|
17
|
+
readonly color: Record<import("../../../../types/base.js").VunoColor, Record<"control", string>>;
|
|
18
|
+
readonly orientation: {
|
|
19
|
+
readonly horizontal: {
|
|
20
|
+
readonly root: "flex-row flex-wrap gap-x-4 gap-y-1";
|
|
21
|
+
};
|
|
22
|
+
readonly vertical: {
|
|
23
|
+
readonly root: "flex-col gap-1";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly size: {
|
|
27
|
+
readonly xs: {
|
|
28
|
+
readonly control: "size-3.5";
|
|
29
|
+
readonly description: "text-xs";
|
|
30
|
+
readonly label: "text-xs";
|
|
31
|
+
};
|
|
32
|
+
readonly sm: {
|
|
33
|
+
readonly control: "size-4";
|
|
34
|
+
readonly description: "text-xs";
|
|
35
|
+
readonly label: "text-sm";
|
|
36
|
+
};
|
|
37
|
+
readonly md: {
|
|
38
|
+
readonly control: "size-4";
|
|
39
|
+
readonly description: "text-xs";
|
|
40
|
+
readonly label: "text-sm";
|
|
41
|
+
};
|
|
42
|
+
readonly lg: {
|
|
43
|
+
readonly control: "size-5";
|
|
44
|
+
readonly description: "text-sm";
|
|
45
|
+
readonly label: "text-base";
|
|
46
|
+
};
|
|
47
|
+
readonly xl: {
|
|
48
|
+
readonly control: "size-5";
|
|
49
|
+
readonly description: "text-sm";
|
|
50
|
+
readonly label: "text-base";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { accentByColor } from "#vuno/theme/shared";
|
|
2
|
+
import { defineTheme } from "#vuno/utils/theme";
|
|
3
|
+
export const radioGroupTheme = defineTheme("radioGroup", {
|
|
4
|
+
slots: {
|
|
5
|
+
control: "mt-0.5 shrink-0 cursor-pointer border border-vuno-border-strong bg-vuno-surface accent-(--vuno-accent) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--vuno-accent) disabled:cursor-not-allowed disabled:opacity-50",
|
|
6
|
+
description: "text-vuno-muted",
|
|
7
|
+
item: "flex items-start gap-2",
|
|
8
|
+
label: "cursor-pointer text-vuno-body",
|
|
9
|
+
root: "flex w-full",
|
|
10
|
+
texts: "flex min-w-0 flex-col"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
/*
|
|
14
|
+
* En `control`, que es quien la consume, y no en `base`: esta clave
|
|
15
|
+
* no tiene slot `base`, así que el acento se asignaba en un sitio
|
|
16
|
+
* que no se pinta nunca y los siete colores salían iguales.
|
|
17
|
+
*/
|
|
18
|
+
color: accentByColor("control"),
|
|
19
|
+
orientation: {
|
|
20
|
+
horizontal: { root: "flex-row flex-wrap gap-x-4 gap-y-1" },
|
|
21
|
+
vertical: { root: "flex-col gap-1" }
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
xs: { control: "size-3.5", description: "text-xs", label: "text-xs" },
|
|
25
|
+
sm: { control: "size-4", description: "text-xs", label: "text-sm" },
|
|
26
|
+
md: { control: "size-4", description: "text-xs", label: "text-sm" },
|
|
27
|
+
lg: { control: "size-5", description: "text-sm", label: "text-base" },
|
|
28
|
+
xl: { control: "size-5", description: "text-sm", label: "text-base" }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, useId } from "vue";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
-
defineOptions({ inheritAttrs: false });
|
|
4
|
+
defineOptions({ name: "VunoRadioGroup", inheritAttrs: false });
|
|
5
|
+
const model = defineModel({ type: [Boolean, null, Number, String], skipCheck: true, ...{ default: void 0 } });
|
|
5
6
|
const props = defineProps({
|
|
6
7
|
name: { type: String, required: false, default: void 0 },
|
|
7
8
|
color: { type: String, required: false, default: "primary" },
|
|
@@ -12,7 +13,6 @@ const props = defineProps({
|
|
|
12
13
|
size: { type: String, required: false, default: "md" },
|
|
13
14
|
ui: { type: Object, required: false, default: void 0 }
|
|
14
15
|
});
|
|
15
|
-
const model = defineModel({ type: [Boolean, null, Number, String], skipCheck: true, ...{ default: void 0 } });
|
|
16
16
|
const ui = useTheme(
|
|
17
17
|
"radioGroup",
|
|
18
18
|
() => props.ui,
|
|
@@ -64,13 +64,16 @@ function onChange(option) {
|
|
|
64
64
|
<label
|
|
65
65
|
:class="ui.label"
|
|
66
66
|
:for="optionId(index)"
|
|
67
|
-
|
|
67
|
+
>{{ item.label }}</label
|
|
68
|
+
>
|
|
68
69
|
|
|
69
70
|
<p
|
|
70
71
|
v-if="item.description"
|
|
71
72
|
:id="descriptionId(index)"
|
|
72
73
|
:class="ui.description"
|
|
73
|
-
>
|
|
74
|
+
>
|
|
75
|
+
{{ item.description }}
|
|
76
|
+
</p>
|
|
74
77
|
</div>
|
|
75
78
|
</div>
|
|
76
79
|
</div>
|
package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue.d.ts
RENAMED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
type
|
|
1
|
+
import type { VunoColor, VunoSize } from '#vuno/types/base';
|
|
2
|
+
import type { VunoControlOrientation, VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
3
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
4
|
+
type __VLS_Props = Props;
|
|
5
|
+
type Props = {
|
|
4
6
|
/** El que agrupa: todas las opciones comparten el mismo. */
|
|
5
7
|
name?: string;
|
|
6
8
|
color?: VunoColor;
|
|
7
9
|
disabled?: boolean;
|
|
8
10
|
items: VunoFieldOption[];
|
|
9
|
-
orientation?:
|
|
11
|
+
orientation?: VunoControlOrientation;
|
|
10
12
|
required?: boolean;
|
|
11
13
|
size?: VunoSize;
|
|
12
|
-
ui?:
|
|
14
|
+
ui?: VunoUi<'fieldRadio' | 'radioGroup'>;
|
|
13
15
|
};
|
|
14
16
|
type __VLS_ModelProps = {
|
|
15
17
|
modelValue?: undefined | VunoFieldOptionValue;
|
|
@@ -21,10 +23,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
21
23
|
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | undefined) => any) | undefined;
|
|
22
24
|
}>, {
|
|
23
25
|
color: VunoColor;
|
|
24
|
-
name: string;
|
|
25
26
|
size: VunoSize;
|
|
26
|
-
orientation:
|
|
27
|
-
|
|
27
|
+
orientation: VunoControlOrientation;
|
|
28
|
+
name: string;
|
|
29
|
+
ui: VunoUi<"fieldRadio" | "radioGroup">;
|
|
28
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
31
|
declare const _default: typeof __VLS_export;
|
|
30
32
|
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VunoFieldSearch } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldSearch, 'columns'>;
|
|
3
|
+
/** Permite que composiciones como VTable devuelvan el foco al buscador. */
|
|
4
|
+
declare function focus(): void;
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
modelValue?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
10
|
+
focus: typeof focus;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useTemplateRef } from "vue";
|
|
3
|
+
import { useField } from "#vuno/composables/useField";
|
|
4
|
+
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
5
|
+
import Button from "#vuno/components/Button/Button.vue";
|
|
6
|
+
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
7
|
+
import Input from "#vuno/components/internal/Input/Input.vue";
|
|
8
|
+
defineOptions({ name: "VunoFieldSearch" });
|
|
9
|
+
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
name: { type: String, required: false },
|
|
12
|
+
class: { type: String, required: false },
|
|
13
|
+
description: { type: String, required: false },
|
|
14
|
+
disabled: { type: Boolean, required: false },
|
|
15
|
+
error: { type: String, required: false },
|
|
16
|
+
help: { type: String, required: false },
|
|
17
|
+
hint: { type: String, required: false },
|
|
18
|
+
label: { type: String, required: false },
|
|
19
|
+
orientation: { type: String, required: false },
|
|
20
|
+
required: { type: Boolean, required: false },
|
|
21
|
+
size: { type: String, required: false },
|
|
22
|
+
ui: { type: Object, required: false },
|
|
23
|
+
autocomplete: { type: String, required: false },
|
|
24
|
+
autofocus: { type: Boolean, required: false },
|
|
25
|
+
placeholder: { type: String, required: false }
|
|
26
|
+
});
|
|
27
|
+
const { value } = useField(() => props.name, model);
|
|
28
|
+
const icons = useIcons();
|
|
29
|
+
const messages = useMessages();
|
|
30
|
+
const ui = useTheme("fieldSearch", () => props.ui);
|
|
31
|
+
const input = useTemplateRef("input");
|
|
32
|
+
function focus() {
|
|
33
|
+
input.value?.inputRef?.focus();
|
|
34
|
+
}
|
|
35
|
+
function clear() {
|
|
36
|
+
value.value = "";
|
|
37
|
+
focus();
|
|
38
|
+
}
|
|
39
|
+
defineExpose({ focus });
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<FieldShell v-bind="props">
|
|
44
|
+
<template #default="control">
|
|
45
|
+
<Input
|
|
46
|
+
v-bind="control"
|
|
47
|
+
ref="input"
|
|
48
|
+
v-model="value"
|
|
49
|
+
:autocomplete="props.autocomplete"
|
|
50
|
+
:autofocus="props.autofocus"
|
|
51
|
+
:disabled="props.disabled"
|
|
52
|
+
:icon="icons.search"
|
|
53
|
+
:placeholder="props.placeholder ?? messages.searchPlaceholder"
|
|
54
|
+
type="search"
|
|
55
|
+
:ui="ui"
|
|
56
|
+
>
|
|
57
|
+
<template
|
|
58
|
+
v-if="value"
|
|
59
|
+
#trailing
|
|
60
|
+
>
|
|
61
|
+
<Button
|
|
62
|
+
:aria-label="messages.clearSearch"
|
|
63
|
+
color="neutral"
|
|
64
|
+
:disabled="props.disabled"
|
|
65
|
+
:icon="icons.clearSearch"
|
|
66
|
+
size="sm"
|
|
67
|
+
variant="link"
|
|
68
|
+
@click="clear"
|
|
69
|
+
/>
|
|
70
|
+
</template>
|
|
71
|
+
</Input>
|
|
72
|
+
</template>
|
|
73
|
+
</FieldShell>
|
|
74
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VunoFieldSearch } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldSearch, 'columns'>;
|
|
3
|
+
/** Permite que composiciones como VTable devuelvan el foco al buscador. */
|
|
4
|
+
declare function focus(): void;
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
modelValue?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
10
|
+
focus: typeof focus;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldOptionValue, VunoFieldSelect } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldSelect, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: undefined | VunoFieldOptionValue | VunoFieldOptionValue[];
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useField } from "#vuno/composables/useField";
|
|
3
|
+
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import Select from "#vuno/components/FieldSelect/internal/Select/Select.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
6
|
+
defineOptions({ name: "VunoFieldSelect" });
|
|
7
|
+
const model = defineModel({ type: [Boolean, null, Number, String, Array], skipCheck: true, ...{ default: void 0 } });
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
name: { type: String, required: false },
|
|
10
|
+
class: { type: String, required: false },
|
|
11
|
+
description: { type: String, required: false },
|
|
12
|
+
disabled: { type: Boolean, required: false },
|
|
13
|
+
error: { type: String, required: false },
|
|
14
|
+
help: { type: String, required: false },
|
|
15
|
+
hint: { type: String, required: false },
|
|
16
|
+
label: { type: String, required: false },
|
|
17
|
+
orientation: { type: String, required: false },
|
|
18
|
+
required: { type: Boolean, required: false },
|
|
19
|
+
size: { type: String, required: false },
|
|
20
|
+
ui: { type: Object, required: false },
|
|
21
|
+
items: { type: Array, required: true },
|
|
22
|
+
multiple: { type: Boolean, required: false },
|
|
23
|
+
placeholder: { type: String, required: false },
|
|
24
|
+
searchable: { type: Boolean, required: false }
|
|
25
|
+
});
|
|
26
|
+
const { value } = useField(() => props.name, model);
|
|
27
|
+
const ui = useTheme("fieldSelect", () => props.ui);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<FieldShell v-bind="props">
|
|
32
|
+
<template #default="control">
|
|
33
|
+
<Select
|
|
34
|
+
v-bind="control"
|
|
35
|
+
v-model="value"
|
|
36
|
+
:disabled="props.disabled"
|
|
37
|
+
:items="props.items"
|
|
38
|
+
:multiple="props.multiple"
|
|
39
|
+
:placeholder="props.placeholder"
|
|
40
|
+
:searchable="props.searchable"
|
|
41
|
+
:ui="ui"
|
|
42
|
+
/>
|
|
43
|
+
</template>
|
|
44
|
+
</FieldShell>
|
|
45
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldOptionValue, VunoFieldSelect } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldSelect, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: undefined | VunoFieldOptionValue | VunoFieldOptionValue[];
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { VunoPortalTarget, VunoRadius, VunoSize } from '#vuno/types/base';
|
|
3
|
+
import type { VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
4
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
name: {
|
|
7
|
+
default: undefined;
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
disabled: BooleanConstructor;
|
|
11
|
+
items: {
|
|
12
|
+
required: true;
|
|
13
|
+
type: PropType<VunoFieldOption[]>;
|
|
14
|
+
};
|
|
15
|
+
modelValue: {
|
|
16
|
+
default: undefined;
|
|
17
|
+
type: PropType<undefined | VunoFieldOptionValue | VunoFieldOptionValue[]>;
|
|
18
|
+
};
|
|
19
|
+
multiple: BooleanConstructor;
|
|
20
|
+
placeholder: {
|
|
21
|
+
default: undefined;
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
portal: {
|
|
25
|
+
default: undefined;
|
|
26
|
+
type: PropType<VunoPortalTarget>;
|
|
27
|
+
};
|
|
28
|
+
radius: {
|
|
29
|
+
default: undefined;
|
|
30
|
+
type: PropType<VunoRadius>;
|
|
31
|
+
};
|
|
32
|
+
required: BooleanConstructor;
|
|
33
|
+
searchable: BooleanConstructor;
|
|
34
|
+
size: {
|
|
35
|
+
default: undefined;
|
|
36
|
+
type: PropType<VunoSize>;
|
|
37
|
+
};
|
|
38
|
+
ui: {
|
|
39
|
+
default: undefined;
|
|
40
|
+
type: PropType<VunoUi<"control" | "select">>;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
"update:modelValue": (value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
name: {
|
|
46
|
+
default: undefined;
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
};
|
|
49
|
+
disabled: BooleanConstructor;
|
|
50
|
+
items: {
|
|
51
|
+
required: true;
|
|
52
|
+
type: PropType<VunoFieldOption[]>;
|
|
53
|
+
};
|
|
54
|
+
modelValue: {
|
|
55
|
+
default: undefined;
|
|
56
|
+
type: PropType<undefined | VunoFieldOptionValue | VunoFieldOptionValue[]>;
|
|
57
|
+
};
|
|
58
|
+
multiple: BooleanConstructor;
|
|
59
|
+
placeholder: {
|
|
60
|
+
default: undefined;
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
portal: {
|
|
64
|
+
default: undefined;
|
|
65
|
+
type: PropType<VunoPortalTarget>;
|
|
66
|
+
};
|
|
67
|
+
radius: {
|
|
68
|
+
default: undefined;
|
|
69
|
+
type: PropType<VunoRadius>;
|
|
70
|
+
};
|
|
71
|
+
required: BooleanConstructor;
|
|
72
|
+
searchable: BooleanConstructor;
|
|
73
|
+
size: {
|
|
74
|
+
default: undefined;
|
|
75
|
+
type: PropType<VunoSize>;
|
|
76
|
+
};
|
|
77
|
+
ui: {
|
|
78
|
+
default: undefined;
|
|
79
|
+
type: PropType<VunoUi<"control" | "select">>;
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{
|
|
82
|
+
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any) | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
radius: VunoRadius;
|
|
85
|
+
size: VunoSize;
|
|
86
|
+
name: string;
|
|
87
|
+
required: boolean;
|
|
88
|
+
ui: Partial<Record<"root" | ("input" | "item" | "content" | "empty" | "itemIcon" | "itemIndicator" | "trigger" | "triggerIcon"), string | string[] | undefined>>;
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
modelValue: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined;
|
|
91
|
+
placeholder: string;
|
|
92
|
+
multiple: boolean;
|
|
93
|
+
portal: VunoPortalTarget;
|
|
94
|
+
searchable: boolean;
|
|
95
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
96
|
+
declare const _default: typeof __VLS_export;
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const selectTheme: Record<"select", {
|
|
2
|
+
readonly slots: {
|
|
3
|
+
readonly content: "z-50 max-h-[min(18rem,var(--vuno-select-available-height,18rem))] w-(--vuno-select-width,16rem) overflow-y-auto rounded-sm border border-vuno-border bg-vuno-surface-1 p-1 shadow-lg";
|
|
4
|
+
readonly empty: "px-2 py-3 text-center text-sm text-vuno-muted";
|
|
5
|
+
readonly input: "w-full min-w-0 bg-transparent py-1 outline-none placeholder:text-vuno-subtle disabled:cursor-not-allowed";
|
|
6
|
+
readonly item: "flex cursor-default items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-vuno-body outline-none data-disabled:cursor-not-allowed data-disabled:opacity-50 data-highlighted:bg-vuno-surface-2 data-highlighted:text-vuno-strong";
|
|
7
|
+
readonly itemIcon: "size-4";
|
|
8
|
+
readonly itemIndicator: "shrink-0 text-vuno-primary";
|
|
9
|
+
readonly trigger: "ms-auto inline-flex shrink-0 items-center self-stretch text-vuno-muted transition-colors hover:text-vuno-body disabled:cursor-not-allowed";
|
|
10
|
+
readonly triggerIcon: "size-4";
|
|
11
|
+
};
|
|
12
|
+
readonly variants: {
|
|
13
|
+
readonly size: {
|
|
14
|
+
readonly xs: {
|
|
15
|
+
readonly item: "text-xs";
|
|
16
|
+
readonly trigger: "me-2";
|
|
17
|
+
};
|
|
18
|
+
readonly sm: {
|
|
19
|
+
readonly item: "text-sm";
|
|
20
|
+
readonly trigger: "me-2.5";
|
|
21
|
+
};
|
|
22
|
+
readonly md: {
|
|
23
|
+
readonly item: "text-sm";
|
|
24
|
+
readonly trigger: "me-3";
|
|
25
|
+
};
|
|
26
|
+
readonly lg: {
|
|
27
|
+
readonly item: "text-base";
|
|
28
|
+
readonly trigger: "me-3.5";
|
|
29
|
+
};
|
|
30
|
+
readonly xl: {
|
|
31
|
+
readonly item: "text-base";
|
|
32
|
+
readonly trigger: "me-4";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineTheme } from "#vuno/utils/theme";
|
|
2
|
+
export const selectTheme = defineTheme("select", {
|
|
3
|
+
slots: {
|
|
4
|
+
/*
|
|
5
|
+
* La lista es a la vez la caja y lo que se desplaza: ya no hay un
|
|
6
|
+
* viewport dentro, así que el alto máximo y el `overflow` van en el
|
|
7
|
+
* mismo elemento y no hay dos cajas que sumar.
|
|
8
|
+
*
|
|
9
|
+
* Las dos medidas las publica el componente al colocarla:
|
|
10
|
+
* `--vuno-select-width` es el ancho del campo, para que la lista
|
|
11
|
+
* mida lo mismo, y `--vuno-select-available-height` es el hueco que
|
|
12
|
+
* queda hasta el borde —la ventana, o el diálogo si lo hay—. El
|
|
13
|
+
* respaldo de las dos importa: se leen antes del primer cálculo, y
|
|
14
|
+
* sin él la lista aparecería sin ancho durante un fotograma.
|
|
15
|
+
*/
|
|
16
|
+
content: "z-50 max-h-[min(18rem,var(--vuno-select-available-height,18rem))] w-(--vuno-select-width,16rem) overflow-y-auto rounded-sm border border-vuno-border bg-vuno-surface-1 p-1 shadow-lg",
|
|
17
|
+
empty: "px-2 py-3 text-center text-sm text-vuno-muted",
|
|
18
|
+
/*
|
|
19
|
+
* El control y su disparador. Estaban escritos en la plantilla, de
|
|
20
|
+
* modo que el color del texto de sugerencia y el relleno del campo
|
|
21
|
+
* donde se teclea no se podían tocar desde el proyecto.
|
|
22
|
+
*
|
|
23
|
+
* Es casi lo mismo que `input.base` —solo añade el relleno
|
|
24
|
+
* vertical—, y esa cercanía es a propósito: un combobox tiene que
|
|
25
|
+
* parecerse a un input hasta en el detalle. Si divergen, se unifican.
|
|
26
|
+
*/
|
|
27
|
+
input: "w-full min-w-0 bg-transparent py-1 outline-none placeholder:text-vuno-subtle disabled:cursor-not-allowed",
|
|
28
|
+
item: "flex cursor-default items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-vuno-body outline-none data-disabled:cursor-not-allowed data-disabled:opacity-50 data-highlighted:bg-vuno-surface-2 data-highlighted:text-vuno-strong",
|
|
29
|
+
itemIcon: "size-4",
|
|
30
|
+
itemIndicator: "shrink-0 text-vuno-primary",
|
|
31
|
+
trigger: "ms-auto inline-flex shrink-0 items-center self-stretch text-vuno-muted transition-colors hover:text-vuno-body disabled:cursor-not-allowed",
|
|
32
|
+
triggerIcon: "size-4"
|
|
33
|
+
},
|
|
34
|
+
/*
|
|
35
|
+
* La opción y el margen del disparador siguen al tamaño del campo: con
|
|
36
|
+
* un texto fijo, un select `xs` abriría una lista con la letra más
|
|
37
|
+
* grande que su propio disparador; con un margen fijo, la flecha no
|
|
38
|
+
* conservaría la misma proporción respecto a la caja.
|
|
39
|
+
*/
|
|
40
|
+
variants: {
|
|
41
|
+
size: {
|
|
42
|
+
xs: { item: "text-xs", trigger: "me-2" },
|
|
43
|
+
sm: { item: "text-sm", trigger: "me-2.5" },
|
|
44
|
+
md: { item: "text-sm", trigger: "me-3" },
|
|
45
|
+
lg: { item: "text-base", trigger: "me-3.5" },
|
|
46
|
+
xl: { item: "text-base", trigger: "me-4" }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|