@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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Casilla nativa. El marcado se pinta con `accent-color`, así que toma el
|
|
3
|
+
* color del tema sin dibujar ningún SVG encima.
|
|
4
|
+
*/
|
|
5
|
+
export declare const checkboxTheme: Record<"checkbox", {
|
|
6
|
+
readonly slots: {
|
|
7
|
+
readonly base: "shrink-0 cursor-pointer rounded-sm 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";
|
|
8
|
+
};
|
|
9
|
+
readonly variants: {
|
|
10
|
+
readonly color: Record<import("../../../../types/base.js").VunoColor, Record<"base", string>>;
|
|
11
|
+
readonly radius: Record<import("../../../../types/base.js").VunoRadius, Record<"base", string>>;
|
|
12
|
+
readonly size: {
|
|
13
|
+
readonly xs: {
|
|
14
|
+
readonly base: "size-3.5";
|
|
15
|
+
};
|
|
16
|
+
readonly sm: {
|
|
17
|
+
readonly base: "size-4";
|
|
18
|
+
};
|
|
19
|
+
readonly md: {
|
|
20
|
+
readonly base: "size-4";
|
|
21
|
+
};
|
|
22
|
+
readonly lg: {
|
|
23
|
+
readonly base: "size-5";
|
|
24
|
+
};
|
|
25
|
+
readonly xl: {
|
|
26
|
+
readonly base: "size-5";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { accentByColor, radiusByStep } from "#vuno/theme/shared";
|
|
2
|
+
import { defineTheme } from "#vuno/utils/theme";
|
|
3
|
+
export const checkboxTheme = defineTheme("checkbox", {
|
|
4
|
+
slots: { base: "shrink-0 cursor-pointer rounded-sm 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" },
|
|
5
|
+
variants: {
|
|
6
|
+
color: accentByColor("base"),
|
|
7
|
+
radius: radiusByStep("base"),
|
|
8
|
+
size: { xs: { base: "size-3.5" }, sm: { base: "size-4" }, md: { base: "size-4" }, lg: { base: "size-5" }, xl: { base: "size-5" } }
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useTemplateRef, watchEffect } from "vue";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
defineOptions({ name: "VunoCheckbox" });
|
|
5
|
+
const model = defineModel({ type: Boolean, skipCheck: true, ...{ default: void 0 } });
|
|
4
6
|
const props = defineProps({
|
|
5
7
|
color: { type: String, required: false, default: "primary" },
|
|
6
8
|
indeterminate: { type: Boolean, required: false, default: false },
|
|
9
|
+
radius: { type: String, required: false, default: void 0 },
|
|
7
10
|
size: { type: String, required: false, default: "md" },
|
|
8
11
|
ui: { type: Object, required: false, default: void 0 }
|
|
9
12
|
});
|
|
10
|
-
const model = defineModel({ type: Boolean, skipCheck: true, ...{ default: void 0 } });
|
|
11
13
|
const ui = useTheme(
|
|
12
14
|
"checkbox",
|
|
13
15
|
() => props.ui,
|
|
14
16
|
() => ({
|
|
15
17
|
color: props.color,
|
|
18
|
+
radius: props.radius,
|
|
16
19
|
size: props.size
|
|
17
20
|
})
|
|
18
21
|
);
|
|
19
22
|
const control = useTemplateRef("control");
|
|
23
|
+
function onChange(event) {
|
|
24
|
+
model.value = event.target.checked;
|
|
25
|
+
}
|
|
20
26
|
watchEffect(() => {
|
|
21
27
|
const el = control.value;
|
|
22
28
|
if (el) el.indeterminate = props.indeterminate;
|
|
23
29
|
});
|
|
24
|
-
function onChange(event) {
|
|
25
|
-
model.value = event.target.checked;
|
|
26
|
-
}
|
|
27
30
|
</script>
|
|
28
31
|
|
|
29
32
|
<template>
|
package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { VunoColor,
|
|
1
|
+
import type { VunoColor, VunoRadius, VunoSize } from '#vuno/types/base';
|
|
2
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
2
3
|
/**
|
|
3
4
|
* La casilla, nativa.
|
|
4
5
|
*
|
|
@@ -7,16 +8,19 @@ import type { VunoColor, VunoSize, VunoSlots } from '#vuno/types/base';
|
|
|
7
8
|
* `aria-*` del envoltorio de campo, el `name`, el `disabled`— cae en el
|
|
8
9
|
* elemento correcto sin reenviarlo a mano.
|
|
9
10
|
*/
|
|
10
|
-
type
|
|
11
|
+
type Props = {
|
|
11
12
|
color?: VunoColor;
|
|
12
13
|
/**
|
|
13
14
|
* Ni marcada ni sin marcar: la selección de una tabla donde solo
|
|
14
15
|
* hay algunas filas elegidas.
|
|
15
16
|
*/
|
|
16
17
|
indeterminate?: boolean;
|
|
18
|
+
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
19
|
+
radius?: VunoRadius;
|
|
17
20
|
size?: VunoSize;
|
|
18
|
-
ui?:
|
|
21
|
+
ui?: VunoUi<'checkbox' | 'fieldCheckbox'>;
|
|
19
22
|
};
|
|
23
|
+
type __VLS_Props = Props;
|
|
20
24
|
type __VLS_ModelProps = {
|
|
21
25
|
modelValue?: boolean | undefined;
|
|
22
26
|
};
|
|
@@ -27,8 +31,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
27
31
|
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
28
32
|
}>, {
|
|
29
33
|
color: VunoColor;
|
|
34
|
+
radius: VunoRadius;
|
|
30
35
|
size: VunoSize;
|
|
31
|
-
ui:
|
|
36
|
+
ui: VunoUi<"checkbox" | "fieldCheckbox">;
|
|
32
37
|
indeterminate: boolean;
|
|
33
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldColor } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldColor, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: string | undefined;
|
|
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: string | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const fieldColorTheme: Record<"fieldColor", {
|
|
2
|
+
readonly slots: {
|
|
3
|
+
readonly root: "flex w-full items-center gap-2";
|
|
4
|
+
readonly swatch: "relative flex shrink-0 cursor-pointer items-center justify-center rounded-sm border border-vuno-border-strong bg-vuno-surface p-1 transition-colors [--vuno-accent:var(--color-vuno-primary)] focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-(--vuno-accent) has-disabled:cursor-not-allowed has-disabled:opacity-50";
|
|
5
|
+
readonly swatchColor: "size-full rounded-sm";
|
|
6
|
+
readonly swatchInput: "absolute inset-0 cursor-pointer opacity-0";
|
|
7
|
+
};
|
|
8
|
+
readonly variants: {
|
|
9
|
+
readonly size: {
|
|
10
|
+
readonly xs: {
|
|
11
|
+
readonly swatch: "size-6";
|
|
12
|
+
};
|
|
13
|
+
readonly sm: {
|
|
14
|
+
readonly swatch: "size-7";
|
|
15
|
+
};
|
|
16
|
+
readonly md: {
|
|
17
|
+
readonly swatch: "size-8";
|
|
18
|
+
};
|
|
19
|
+
readonly lg: {
|
|
20
|
+
readonly swatch: "size-9";
|
|
21
|
+
};
|
|
22
|
+
readonly xl: {
|
|
23
|
+
readonly swatch: "size-10";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineTheme } from "#vuno/utils/theme";
|
|
2
|
+
export const fieldColorTheme = defineTheme("fieldColor", {
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex w-full items-center gap-2",
|
|
5
|
+
swatch: "relative flex shrink-0 cursor-pointer items-center justify-center rounded-sm border border-vuno-border-strong bg-vuno-surface p-1 transition-colors [--vuno-accent:var(--color-vuno-primary)] focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-(--vuno-accent) has-disabled:cursor-not-allowed has-disabled:opacity-50",
|
|
6
|
+
swatchColor: "size-full rounded-sm",
|
|
7
|
+
swatchInput: "absolute inset-0 cursor-pointer opacity-0"
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
xs: { swatch: "size-6" },
|
|
12
|
+
sm: { swatch: "size-7" },
|
|
13
|
+
md: { swatch: "size-8" },
|
|
14
|
+
lg: { swatch: "size-9" },
|
|
15
|
+
xl: { swatch: "size-10" }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import Input from "#vuno/components/forms/Input.vue";
|
|
4
3
|
import { useField } from "#vuno/composables/useField";
|
|
5
4
|
import { useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
6
5
|
import { toHexColor } from "#vuno/utils/format";
|
|
7
|
-
|
|
6
|
+
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
7
|
+
import Input from "#vuno/components/internal/Input/Input.vue";
|
|
8
|
+
defineOptions({ name: "VunoFieldColor", inheritAttrs: false });
|
|
9
|
+
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
8
10
|
const props = defineProps({
|
|
9
|
-
name: { type: String, required:
|
|
11
|
+
name: { type: String, required: false },
|
|
12
|
+
class: { type: String, required: false },
|
|
10
13
|
description: { type: String, required: false },
|
|
11
14
|
disabled: { type: Boolean, required: false },
|
|
15
|
+
error: { type: String, required: false },
|
|
12
16
|
help: { type: String, required: false },
|
|
13
17
|
hint: { type: String, required: false },
|
|
14
18
|
label: { type: String, required: false },
|
|
19
|
+
orientation: { type: String, required: false },
|
|
15
20
|
required: { type: Boolean, required: false },
|
|
16
21
|
size: { type: String, required: false },
|
|
17
22
|
ui: { type: Object, required: false },
|
|
18
23
|
placeholder: { type: String, required: false }
|
|
19
24
|
});
|
|
20
|
-
const { value } = useField(() => props.name);
|
|
25
|
+
const { value } = useField(() => props.name, model);
|
|
21
26
|
const messages = useMessages();
|
|
22
27
|
const ui = useTheme(
|
|
23
28
|
"fieldColor",
|
|
@@ -31,8 +36,10 @@ function onPick(event) {
|
|
|
31
36
|
</script>
|
|
32
37
|
|
|
33
38
|
<template>
|
|
34
|
-
<
|
|
35
|
-
|
|
39
|
+
<FieldShell v-bind="props">
|
|
40
|
+
<template #default="control">
|
|
41
|
+
<div :class="ui.root">
|
|
42
|
+
<!--
|
|
36
43
|
El selector es el del sistema: trae su lupa para tomar un color de
|
|
37
44
|
la pantalla, su historial y su teclado, y en el móvil el de siempre.
|
|
38
45
|
Nada de eso lo íbamos a escribir mejor.
|
|
@@ -44,38 +51,38 @@ function onPick(event) {
|
|
|
44
51
|
foco se pinta sobre la caja con `focus-within`, no sobre algo que no
|
|
45
52
|
se ve.
|
|
46
53
|
-->
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
<label :class="ui.swatch">
|
|
55
|
+
<span
|
|
56
|
+
:class="ui.swatchColor"
|
|
57
|
+
:style="{ backgroundColor: value || 'transparent' }"
|
|
58
|
+
/>
|
|
52
59
|
|
|
53
|
-
|
|
60
|
+
<!--
|
|
54
61
|
El nombre lleva de qué control se trata porque el campo son
|
|
55
62
|
**dos** paradas con el mismo rótulo: la muestra abre el selector
|
|
56
63
|
del sistema y el hexadecimal de al lado escribe el valor. Sin
|
|
57
64
|
distinguirlos, quien no ve la pantalla oye dos veces «Color de
|
|
58
65
|
marca» y no sabe en cuál está.
|
|
59
66
|
-->
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
<input
|
|
68
|
+
:aria-label="props.label ? `${props.label}: ${messages.colorPicker}` : messages.colorPicker"
|
|
69
|
+
:class="ui.swatchInput"
|
|
70
|
+
:disabled="props.disabled"
|
|
71
|
+
type="color"
|
|
72
|
+
:value="picked"
|
|
73
|
+
@input="onPick"
|
|
74
|
+
/>
|
|
75
|
+
</label>
|
|
69
76
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</
|
|
77
|
+
<Input
|
|
78
|
+
v-bind="control"
|
|
79
|
+
v-model="value"
|
|
80
|
+
class="font-mono"
|
|
81
|
+
:disabled="props.disabled"
|
|
82
|
+
:placeholder="props.placeholder ?? '#000000'"
|
|
83
|
+
:ui="{ root: 'w-full' }"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
86
|
+
</template>
|
|
87
|
+
</FieldShell>
|
|
81
88
|
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldColor } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldColor, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: string | undefined;
|
|
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: string | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldCurrency } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldCurrency, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: number | undefined;
|
|
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: number | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useField } from "#vuno/composables/useField";
|
|
3
|
+
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import NumberInput from "#vuno/components/internal/NumberInput/NumberInput.vue";
|
|
6
|
+
defineOptions({ name: "VunoFieldCurrency" });
|
|
7
|
+
const model = defineModel({ type: null, ...{ 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
|
+
controlsOrientation: { type: String, required: false },
|
|
22
|
+
currency: { type: String, required: true },
|
|
23
|
+
decimals: { type: Number, required: false },
|
|
24
|
+
max: { type: Number, required: false },
|
|
25
|
+
min: { type: Number, required: false },
|
|
26
|
+
placeholder: { type: String, required: false },
|
|
27
|
+
step: { type: Number, required: false }
|
|
28
|
+
});
|
|
29
|
+
const { value } = useField(() => props.name, model);
|
|
30
|
+
const ui = useTheme("fieldCurrency", () => props.ui);
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<FieldShell v-bind="props">
|
|
35
|
+
<template #default="control">
|
|
36
|
+
<NumberInput
|
|
37
|
+
v-bind="control"
|
|
38
|
+
v-model="value"
|
|
39
|
+
:currency="props.currency"
|
|
40
|
+
:decimals="props.decimals"
|
|
41
|
+
:disabled="props.disabled"
|
|
42
|
+
:max="props.max"
|
|
43
|
+
:min="props.min"
|
|
44
|
+
:orientation="props.controlsOrientation ?? 'horizontal'"
|
|
45
|
+
:placeholder="props.placeholder"
|
|
46
|
+
:step="props.step"
|
|
47
|
+
:ui="ui"
|
|
48
|
+
/>
|
|
49
|
+
</template>
|
|
50
|
+
</FieldShell>
|
|
51
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldCurrency } from '#vuno/types/field';
|
|
2
|
+
type __VLS_Props = Omit<VunoFieldCurrency, 'columns'>;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: number | undefined;
|
|
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: number | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -8,8 +8,16 @@ import type { VunoFieldFile } from '#vuno/types/field';
|
|
|
8
8
|
* escriba `multiple: true`. Lo mismo hacía que `dropzone` llegara en
|
|
9
9
|
* `false` al control, pisando el `true` que este sí traía por defecto.
|
|
10
10
|
*/
|
|
11
|
-
type __VLS_Props = Omit<VunoFieldFile, '
|
|
12
|
-
|
|
11
|
+
type __VLS_Props = Omit<VunoFieldFile, 'columns'>;
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
modelValue?: File[] | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: File[] | null | undefined) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
|
|
20
|
+
}>, {
|
|
13
21
|
dropzone: boolean;
|
|
14
22
|
multiple: boolean;
|
|
15
23
|
reorderable: boolean;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } 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 FileUpload from "#vuno/components/FieldFile/internal/FileUpload/FileUpload.vue";
|
|
7
|
+
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
8
|
+
import Tooltip from "#vuno/components/Tooltip/Tooltip.vue";
|
|
9
|
+
defineOptions({ name: "VunoFieldFile" });
|
|
10
|
+
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
11
|
+
const props = defineProps({
|
|
12
|
+
name: { type: String, required: false },
|
|
13
|
+
class: { type: String, required: false },
|
|
14
|
+
description: { type: String, required: false },
|
|
15
|
+
disabled: { type: Boolean, required: false },
|
|
16
|
+
error: { type: String, required: false },
|
|
17
|
+
help: { type: String, required: false },
|
|
18
|
+
hint: { type: String, required: false },
|
|
19
|
+
label: { type: String, required: false },
|
|
20
|
+
orientation: { type: String, required: false },
|
|
21
|
+
required: { type: Boolean, required: false },
|
|
22
|
+
size: { type: String, required: false },
|
|
23
|
+
ui: { type: Object, required: false },
|
|
24
|
+
accept: { type: String, required: false },
|
|
25
|
+
dropzone: { type: Boolean, required: false, default: true },
|
|
26
|
+
layout: { type: String, required: false },
|
|
27
|
+
multiple: { type: Boolean, required: false, default: true },
|
|
28
|
+
reorderable: { type: Boolean, required: false, default: true }
|
|
29
|
+
});
|
|
30
|
+
const { value } = useField(() => props.name, model);
|
|
31
|
+
const icons = useIcons();
|
|
32
|
+
const messages = useMessages();
|
|
33
|
+
const ui = useTheme("fieldFile", () => props.ui);
|
|
34
|
+
const isReorderable = computed(() => props.reorderable && props.multiple);
|
|
35
|
+
const files = computed(() => value.value ?? []);
|
|
36
|
+
function move(index, offset) {
|
|
37
|
+
const next = [...files.value];
|
|
38
|
+
const target = index + offset;
|
|
39
|
+
if (target < 0 || target >= next.length) return;
|
|
40
|
+
const [moved] = next.splice(index, 1);
|
|
41
|
+
if (!moved) return;
|
|
42
|
+
next.splice(target, 0, moved);
|
|
43
|
+
value.value = next;
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<FieldShell v-bind="props">
|
|
49
|
+
<template #default="control">
|
|
50
|
+
<FileUpload
|
|
51
|
+
v-bind="control"
|
|
52
|
+
v-model="value"
|
|
53
|
+
:accept="props.accept"
|
|
54
|
+
:disabled="props.disabled"
|
|
55
|
+
:dropzone="props.dropzone"
|
|
56
|
+
:layout="props.layout ?? 'list'"
|
|
57
|
+
:multiple="props.multiple"
|
|
58
|
+
:ui="ui"
|
|
59
|
+
>
|
|
60
|
+
<!--
|
|
61
|
+
Solo las flechas: el botón de quitar lo pone el control, que es
|
|
62
|
+
quien sabe cómo se borra de su lista. Aquí se añade lo que es propio
|
|
63
|
+
del campo, que es poder reordenar.
|
|
64
|
+
-->
|
|
65
|
+
<template #fileTrailing="{ actionClass, file, index }">
|
|
66
|
+
<Tooltip
|
|
67
|
+
v-if="isReorderable && index > 0"
|
|
68
|
+
:text="messages.fileMoveUp"
|
|
69
|
+
>
|
|
70
|
+
<Button
|
|
71
|
+
:aria-label="`${messages.fileMoveUp} ${file.name}`"
|
|
72
|
+
color="neutral"
|
|
73
|
+
:icon="icons.fileMoveUp"
|
|
74
|
+
size="xs"
|
|
75
|
+
:ui="{ base: actionClass }"
|
|
76
|
+
variant="soft"
|
|
77
|
+
@click="move(index, -1)"
|
|
78
|
+
/>
|
|
79
|
+
</Tooltip>
|
|
80
|
+
|
|
81
|
+
<Tooltip
|
|
82
|
+
v-if="isReorderable && index < files.length - 1"
|
|
83
|
+
:text="messages.fileMoveDown"
|
|
84
|
+
>
|
|
85
|
+
<Button
|
|
86
|
+
:aria-label="`${messages.fileMoveDown} ${file.name}`"
|
|
87
|
+
color="neutral"
|
|
88
|
+
:icon="icons.fileMoveDown"
|
|
89
|
+
size="xs"
|
|
90
|
+
:ui="{ base: actionClass }"
|
|
91
|
+
variant="soft"
|
|
92
|
+
@click="move(index, 1)"
|
|
93
|
+
/>
|
|
94
|
+
</Tooltip>
|
|
95
|
+
</template>
|
|
96
|
+
</FileUpload>
|
|
97
|
+
</template>
|
|
98
|
+
</FieldShell>
|
|
99
|
+
</template>
|
|
@@ -8,8 +8,16 @@ import type { VunoFieldFile } from '#vuno/types/field';
|
|
|
8
8
|
* escriba `multiple: true`. Lo mismo hacía que `dropzone` llegara en
|
|
9
9
|
* `false` al control, pisando el `true` que este sí traía por defecto.
|
|
10
10
|
*/
|
|
11
|
-
type __VLS_Props = Omit<VunoFieldFile, '
|
|
12
|
-
|
|
11
|
+
type __VLS_Props = Omit<VunoFieldFile, 'columns'>;
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
modelValue?: File[] | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: File[] | null | undefined) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
|
|
20
|
+
}>, {
|
|
13
21
|
dropzone: boolean;
|
|
14
22
|
multiple: boolean;
|
|
15
23
|
reorderable: boolean;
|
package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.d.vue.ts
RENAMED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
/** Filtro del selector nativo: `image/*`, `.pdf`, ... */
|
|
5
|
-
accept?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
/** Admite soltar archivos encima, además del clic. */
|
|
8
|
-
dropzone?: boolean;
|
|
9
|
-
/** Texto de la zona de caída. Sin él solo se ve el icono. */
|
|
10
|
-
hint?: string;
|
|
11
|
-
/** En rejilla se ve la miniatura; en lista, el nombre y el tamaño. */
|
|
12
|
-
layout?: 'grid' | 'list';
|
|
13
|
-
multiple?: boolean;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
size?: VunoSize;
|
|
16
|
-
ui?: VunoSlots;
|
|
17
|
-
};
|
|
1
|
+
import type { VunoRadius, VunoSize } from '#vuno/types/base';
|
|
2
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
3
|
+
type __VLS_Props = Props;
|
|
18
4
|
type __VLS_Slots = {
|
|
19
5
|
/**
|
|
20
6
|
* Acciones extra por archivo: reordenar, previsualizar.
|
|
@@ -31,6 +17,24 @@ type __VLS_Slots = {
|
|
|
31
17
|
removeFile: (index: number) => void;
|
|
32
18
|
}) => unknown;
|
|
33
19
|
};
|
|
20
|
+
type Props = {
|
|
21
|
+
name?: string;
|
|
22
|
+
/** Filtro del selector nativo: `image/*`, `.pdf`, ... */
|
|
23
|
+
accept?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Admite soltar archivos encima, además del clic. */
|
|
26
|
+
dropzone?: boolean;
|
|
27
|
+
/** Texto de la zona de caída. Sin él solo se ve el icono. */
|
|
28
|
+
hint?: string;
|
|
29
|
+
/** En rejilla se ve la miniatura; en lista, el nombre y el tamaño. */
|
|
30
|
+
layout?: 'grid' | 'list';
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
33
|
+
radius?: VunoRadius;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
size?: VunoSize;
|
|
36
|
+
ui?: VunoUi<'fieldFile' | 'fileUpload'>;
|
|
37
|
+
};
|
|
34
38
|
type __VLS_ModelProps = {
|
|
35
39
|
modelValue?: File[] | null | undefined;
|
|
36
40
|
};
|
|
@@ -42,12 +46,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
42
46
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
43
47
|
"onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
|
|
44
48
|
}>, {
|
|
45
|
-
|
|
46
|
-
hint: string;
|
|
49
|
+
radius: VunoRadius;
|
|
47
50
|
size: VunoSize;
|
|
51
|
+
name: string;
|
|
48
52
|
dropzone: boolean;
|
|
53
|
+
hint: string;
|
|
49
54
|
layout: "grid" | "list";
|
|
50
|
-
ui:
|
|
55
|
+
ui: VunoUi<"fieldFile" | "fileUpload">;
|
|
51
56
|
accept: string;
|
|
52
57
|
multiple: boolean;
|
|
53
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|