@groupteknology/vuno 2.0.0 → 3.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 +193 -175
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -1
- package/dist/runtime/app/assets/css/dialog.css +1 -1
- package/dist/runtime/app/assets/css/main.css +1 -1
- 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 +2 -2
- package/dist/runtime/app/components/Alert/Alert.theme.d.ts +7 -6
- package/dist/runtime/app/components/Alert/Alert.theme.js +7 -6
- package/dist/runtime/app/components/Alert/Alert.types.d.ts +10 -0
- package/dist/runtime/app/components/Alert/Alert.vue +17 -8
- package/dist/runtime/app/components/Alert/Alert.vue.d.ts +2 -2
- package/dist/runtime/app/components/App/App.d.vue.ts +3 -19
- package/dist/runtime/app/components/App/App.types.d.ts +4 -0
- package/dist/runtime/app/components/App/App.vue +48 -29
- package/dist/runtime/app/components/App/App.vue.d.ts +3 -19
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue +2 -3
- package/dist/runtime/app/components/App/internal/Toast/Toast.theme.d.ts +5 -5
- package/dist/runtime/app/components/App/internal/Toast/Toast.theme.js +7 -9
- package/dist/runtime/app/components/App/internal/Toast/Toast.vue +27 -36
- package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.d.ts +3 -3
- package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.js +3 -3
- package/dist/runtime/app/components/Avatar/Avatar.d.vue.ts +5 -22
- package/dist/runtime/app/components/Avatar/Avatar.types.d.ts +10 -0
- package/dist/runtime/app/components/Avatar/Avatar.types.js +0 -0
- package/dist/runtime/app/components/Avatar/Avatar.vue.d.ts +5 -22
- package/dist/runtime/app/components/Badge/Badge.d.vue.ts +7 -26
- package/dist/runtime/app/components/Badge/Badge.types.d.ts +12 -0
- package/dist/runtime/app/components/Badge/Badge.types.js +0 -0
- package/dist/runtime/app/components/Badge/Badge.vue.d.ts +7 -26
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.d.vue.ts +7 -0
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.theme.d.ts +15 -0
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.theme.js +16 -0
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.types.d.ts +7 -0
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.types.js +0 -0
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.vue +109 -0
- package/dist/runtime/app/components/Breadcrumb/Breadcrumb.vue.d.ts +7 -0
- package/dist/runtime/app/components/Button/Button.d.vue.ts +11 -31
- package/dist/runtime/app/components/Button/Button.theme.d.ts +36 -22
- package/dist/runtime/app/components/Button/Button.theme.js +28 -20
- package/dist/runtime/app/components/Button/Button.types.d.ts +24 -0
- package/dist/runtime/app/components/Button/Button.types.js +0 -0
- package/dist/runtime/app/components/Button/Button.vue +84 -33
- package/dist/runtime/app/components/Button/Button.vue.d.ts +11 -31
- package/dist/runtime/app/components/Card/Card.d.vue.ts +7 -69
- package/dist/runtime/app/components/Card/Card.theme.d.ts +56 -13
- package/dist/runtime/app/components/Card/Card.theme.js +39 -19
- package/dist/runtime/app/components/Card/Card.types.d.ts +12 -0
- package/dist/runtime/app/components/Card/Card.types.js +0 -0
- package/dist/runtime/app/components/Card/Card.vue +17 -11
- package/dist/runtime/app/components/Card/Card.vue.d.ts +7 -69
- package/dist/runtime/app/components/Code/Code.d.vue.ts +3 -13
- package/dist/runtime/app/components/Code/Code.theme.d.ts +1 -1
- package/dist/runtime/app/components/Code/Code.theme.js +1 -1
- package/dist/runtime/app/components/Code/Code.types.d.ts +8 -0
- package/dist/runtime/app/components/Code/Code.types.js +0 -0
- package/dist/runtime/app/components/Code/Code.vue +12 -5
- package/dist/runtime/app/components/Code/Code.vue.d.ts +3 -13
- package/dist/runtime/app/components/Collapsible/Collapsible.d.vue.ts +31 -0
- package/dist/runtime/app/components/Collapsible/Collapsible.theme.d.ts +6 -0
- package/dist/runtime/app/components/Collapsible/Collapsible.theme.js +7 -0
- package/dist/runtime/app/components/Collapsible/Collapsible.types.d.ts +4 -0
- package/dist/runtime/app/components/Collapsible/Collapsible.types.js +0 -0
- package/dist/runtime/app/components/Collapsible/Collapsible.vue +72 -0
- package/dist/runtime/app/components/Collapsible/Collapsible.vue.d.ts +31 -0
- package/dist/runtime/app/components/ColorModeButton/ColorModeButton.d.vue.ts +12 -0
- package/dist/runtime/app/components/ColorModeButton/ColorModeButton.types.d.ts +13 -0
- package/dist/runtime/app/components/ColorModeButton/ColorModeButton.types.js +0 -0
- package/dist/runtime/app/components/ColorModeButton/ColorModeButton.vue +55 -0
- package/dist/runtime/app/components/ColorModeButton/ColorModeButton.vue.d.ts +12 -0
- package/dist/runtime/app/components/Confirm/Confirm.d.vue.ts +2 -6
- package/dist/runtime/app/components/Confirm/Confirm.types.d.ts +6 -0
- package/dist/runtime/app/components/Confirm/Confirm.types.js +0 -0
- package/dist/runtime/app/components/Confirm/Confirm.vue.d.ts +2 -6
- package/dist/runtime/app/components/Container/Container.d.vue.ts +4 -28
- package/dist/runtime/app/components/Container/Container.types.d.ts +9 -0
- package/dist/runtime/app/components/Container/Container.types.js +0 -0
- package/dist/runtime/app/components/Container/Container.vue +1 -1
- package/dist/runtime/app/components/Container/Container.vue.d.ts +4 -28
- package/dist/runtime/app/components/ControlGroup/ControlGroup.d.vue.ts +5 -14
- package/dist/runtime/app/components/ControlGroup/ControlGroup.types.d.ts +9 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.types.js +0 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.vue.d.ts +5 -14
- package/dist/runtime/app/components/DataTable/DataTable.d.vue.ts +64 -0
- package/dist/runtime/app/components/DataTable/DataTable.theme.d.ts +17 -0
- package/dist/runtime/app/components/DataTable/DataTable.theme.js +19 -0
- package/dist/runtime/app/components/DataTable/DataTable.types.d.ts +13 -0
- package/dist/runtime/app/components/DataTable/DataTable.types.js +0 -0
- package/dist/runtime/app/components/DataTable/DataTable.vue +356 -0
- package/dist/runtime/app/components/DataTable/DataTable.vue.d.ts +64 -0
- package/dist/runtime/app/components/{Table/internal/useVunoTable.d.ts → DataTable/internal/useVunoDataTable.d.ts} +6 -29
- package/dist/runtime/app/components/{Table/internal/useVunoTable.js → DataTable/internal/useVunoDataTable.js} +2 -29
- package/dist/runtime/app/components/FieldArray/FieldArray.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldArray/FieldArray.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.types.js +0 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.vue +12 -5
- package/dist/runtime/app/components/FieldArray/FieldArray.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.types.js +0 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue +1 -1
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.d.vue.ts +4 -3
- package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.vue.d.ts +4 -3
- package/dist/runtime/app/components/FieldColor/FieldColor.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldColor/FieldColor.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.types.js +0 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.vue +3 -3
- package/dist/runtime/app/components/FieldColor/FieldColor.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.types.js +0 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue +3 -3
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldFile/FieldFile.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldFile/FieldFile.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.types.js +0 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.vue +1 -1
- package/dist/runtime/app/components/FieldFile/FieldFile.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.d.vue.ts +4 -3
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.d.ts +1 -0
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.js +1 -0
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.vue +26 -5
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.vue.d.ts +4 -3
- package/dist/runtime/app/components/FieldInput/FieldInput.d.vue.ts +4 -4
- package/dist/runtime/app/components/FieldInput/FieldInput.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.types.js +0 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.vue +3 -3
- package/dist/runtime/app/components/FieldInput/FieldInput.vue.d.ts +4 -4
- package/dist/runtime/app/components/FieldNumber/FieldNumber.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldNumber/FieldNumber.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.types.js +0 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.vue +3 -3
- package/dist/runtime/app/components/FieldNumber/FieldNumber.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldPassword/FieldPassword.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldPassword/FieldPassword.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.types.js +0 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.vue +4 -4
- package/dist/runtime/app/components/FieldPassword/FieldPassword.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldRadio/FieldRadio.d.vue.ts +3 -2
- package/dist/runtime/app/components/FieldRadio/FieldRadio.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.types.js +0 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.vue +1 -1
- package/dist/runtime/app/components/FieldRadio/FieldRadio.vue.d.ts +3 -2
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.d.vue.ts +4 -4
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.vue +6 -2
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/app/components/FieldSearch/FieldSearch.d.vue.ts +3 -3
- package/dist/runtime/app/components/FieldSearch/FieldSearch.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.types.js +0 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.vue +4 -4
- package/dist/runtime/app/components/FieldSearch/FieldSearch.vue.d.ts +3 -3
- package/dist/runtime/app/components/FieldSelect/FieldSelect.d.vue.ts +3 -2
- package/dist/runtime/app/components/FieldSelect/FieldSelect.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.types.js +0 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.vue +1 -1
- package/dist/runtime/app/components/FieldSelect/FieldSelect.vue.d.ts +3 -2
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.d.vue.ts +7 -7
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue +16 -6
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue.d.ts +7 -7
- package/dist/runtime/app/components/FieldSlug/FieldSlug.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldSlug/FieldSlug.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.types.js +0 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.vue +4 -4
- package/dist/runtime/app/components/FieldSlug/FieldSlug.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.types.js +0 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue +1 -1
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.d.vue.ts +4 -3
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.vue.d.ts +4 -3
- package/dist/runtime/app/components/FieldTags/FieldTags.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldTags/FieldTags.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.types.js +0 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.vue +1 -1
- package/dist/runtime/app/components/FieldTags/FieldTags.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.d.vue.ts +4 -4
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue +16 -6
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue.d.ts +4 -4
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.d.vue.ts +2 -2
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.types.js +0 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.vue +1 -1
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.vue.d.ts +2 -2
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.d.vue.ts +4 -3
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.vue +4 -4
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.vue.d.ts +4 -3
- package/dist/runtime/app/components/Form/Form.d.vue.ts +3 -19
- package/dist/runtime/app/components/Form/Form.types.d.ts +8 -0
- package/dist/runtime/app/components/Form/Form.types.js +0 -0
- package/dist/runtime/app/components/Form/Form.vue +3 -3
- package/dist/runtime/app/components/Form/Form.vue.d.ts +3 -19
- package/dist/runtime/app/components/FormField/FormField.d.vue.ts +4 -18
- package/dist/runtime/app/components/FormField/FormField.types.d.ts +14 -0
- package/dist/runtime/app/components/FormField/FormField.types.js +0 -0
- package/dist/runtime/app/components/FormField/FormField.vue +26 -10
- package/dist/runtime/app/components/FormField/FormField.vue.d.ts +4 -18
- package/dist/runtime/app/components/{internal → FormField/internal}/FieldShell/FieldShell.d.vue.ts +2 -3
- package/dist/runtime/app/components/{internal → FormField/internal}/FieldShell/FieldShell.vue.d.ts +2 -3
- package/dist/runtime/app/components/FormModal/FormModal.d.vue.ts +6 -25
- package/dist/runtime/app/components/FormModal/FormModal.types.d.ts +14 -0
- package/dist/runtime/app/components/FormModal/FormModal.types.js +0 -0
- package/dist/runtime/app/components/FormModal/FormModal.vue +12 -2
- package/dist/runtime/app/components/FormModal/FormModal.vue.d.ts +6 -25
- package/dist/runtime/app/components/FormSection/FormSection.d.vue.ts +2 -13
- package/dist/runtime/app/components/FormSection/FormSection.types.d.ts +7 -0
- package/dist/runtime/app/components/FormSection/FormSection.types.js +0 -0
- package/dist/runtime/app/components/FormSection/FormSection.vue +11 -4
- package/dist/runtime/app/components/FormSection/FormSection.vue.d.ts +2 -13
- package/dist/runtime/app/components/Icon/Icon.d.vue.ts +2 -4
- package/dist/runtime/app/components/Icon/Icon.types.d.ts +3 -0
- package/dist/runtime/app/components/Icon/Icon.types.js +0 -0
- package/dist/runtime/app/components/Icon/Icon.vue.d.ts +2 -4
- package/dist/runtime/app/components/Menu/Menu.d.vue.ts +4 -21
- package/dist/runtime/app/components/Menu/Menu.types.d.ts +7 -0
- package/dist/runtime/app/components/Menu/Menu.types.js +0 -0
- package/dist/runtime/app/components/Menu/Menu.vue +18 -110
- package/dist/runtime/app/components/Menu/Menu.vue.d.ts +4 -21
- package/dist/runtime/app/components/Menu/internal/MenuLevel/MenuLevel.d.vue.ts +26 -0
- package/dist/runtime/app/components/Menu/internal/MenuLevel/MenuLevel.vue +167 -0
- package/dist/runtime/app/components/Menu/internal/MenuLevel/MenuLevel.vue.d.ts +26 -0
- package/dist/runtime/app/components/Modal/Modal.d.vue.ts +6 -18
- package/dist/runtime/app/components/Modal/Modal.theme.d.ts +18 -14
- package/dist/runtime/app/components/Modal/Modal.theme.js +17 -21
- package/dist/runtime/app/components/Modal/Modal.types.d.ts +12 -0
- package/dist/runtime/app/components/Modal/Modal.types.js +0 -0
- package/dist/runtime/app/components/Modal/Modal.vue +99 -65
- package/dist/runtime/app/components/Modal/Modal.vue.d.ts +6 -18
- package/dist/runtime/app/components/Navbar/Navbar.d.vue.ts +3 -28
- package/dist/runtime/app/components/Navbar/Navbar.theme.d.ts +2 -3
- package/dist/runtime/app/components/Navbar/Navbar.theme.js +2 -3
- package/dist/runtime/app/components/Navbar/Navbar.types.d.ts +4 -0
- package/dist/runtime/app/components/Navbar/Navbar.types.js +0 -0
- package/dist/runtime/app/components/Navbar/Navbar.vue.d.ts +3 -28
- package/dist/runtime/app/components/NavigationList/NavigationList.d.vue.ts +4 -33
- package/dist/runtime/app/components/NavigationList/NavigationList.keys.d.ts +3 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.keys.js +1 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.types.d.ts +9 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.types.js +0 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.vue +65 -19
- package/dist/runtime/app/components/NavigationList/NavigationList.vue.d.ts +4 -33
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.d.vue.ts +3 -24
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.keys.d.ts +7 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.keys.js +3 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.types.d.ts +10 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.types.js +0 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue +45 -13
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue.d.ts +3 -24
- package/dist/runtime/app/components/NavigationToc/NavigationToc.d.vue.ts +3 -10
- package/dist/runtime/app/components/NavigationToc/NavigationToc.types.d.ts +7 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.types.js +0 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.vue +8 -1
- package/dist/runtime/app/components/NavigationToc/NavigationToc.vue.d.ts +3 -10
- package/dist/runtime/app/components/Pagination/Pagination.d.vue.ts +5 -23
- package/dist/runtime/app/components/Pagination/Pagination.types.d.ts +11 -0
- package/dist/runtime/app/components/Pagination/Pagination.types.js +0 -0
- package/dist/runtime/app/components/Pagination/Pagination.vue +6 -2
- package/dist/runtime/app/components/Pagination/Pagination.vue.d.ts +5 -23
- package/dist/runtime/app/components/Slideover/Slideover.d.vue.ts +4 -13
- package/dist/runtime/app/components/Slideover/Slideover.types.d.ts +12 -0
- package/dist/runtime/app/components/Slideover/Slideover.types.js +0 -0
- package/dist/runtime/app/components/Slideover/Slideover.vue.d.ts +4 -13
- package/dist/runtime/app/components/State/State.d.vue.ts +2 -2
- package/dist/runtime/app/components/State/State.types.d.ts +15 -0
- package/dist/runtime/app/components/State/State.types.js +0 -0
- package/dist/runtime/app/components/State/State.vue +13 -3
- package/dist/runtime/app/components/State/State.vue.d.ts +2 -2
- package/dist/runtime/app/components/Table/Table.d.vue.ts +8 -55
- package/dist/runtime/app/components/Table/Table.theme.d.ts +17 -35
- package/dist/runtime/app/components/Table/Table.theme.js +15 -48
- package/dist/runtime/app/components/Table/Table.types.d.ts +9 -0
- package/dist/runtime/app/components/Table/Table.types.js +0 -0
- package/dist/runtime/app/components/Table/Table.vue +143 -415
- package/dist/runtime/app/components/Table/Table.vue.d.ts +8 -55
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.vue +13 -3
- package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.vue +8 -1
- package/dist/runtime/app/components/Table/internal/CellDate/CellDate.vue +8 -1
- package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.vue +8 -1
- package/dist/runtime/app/components/Table/internal/CellText/CellText.vue +8 -1
- package/dist/runtime/app/components/Table/internal/TableCell/TableCell.d.vue.ts +2 -2
- package/dist/runtime/app/components/Table/internal/TableCell/TableCell.vue.d.ts +2 -2
- package/dist/runtime/app/components/Table/internal/column.d.ts +9 -0
- package/dist/runtime/app/components/Table/internal/column.js +15 -0
- package/dist/runtime/app/components/Table/internal/useVunoTableSelection.d.ts +1 -1
- package/dist/runtime/app/components/Tabs/Tabs.d.vue.ts +5 -24
- package/dist/runtime/app/components/Tabs/Tabs.theme.d.ts +15 -6
- package/dist/runtime/app/components/Tabs/Tabs.theme.js +15 -6
- package/dist/runtime/app/components/Tabs/Tabs.types.d.ts +10 -0
- package/dist/runtime/app/components/Tabs/Tabs.types.js +0 -0
- package/dist/runtime/app/components/Tabs/Tabs.vue +91 -17
- package/dist/runtime/app/components/Tabs/Tabs.vue.d.ts +5 -24
- package/dist/runtime/app/components/Text/Text.d.vue.ts +19 -0
- package/dist/runtime/app/components/Text/Text.theme.d.ts +55 -0
- package/dist/runtime/app/components/Text/Text.theme.js +28 -0
- package/dist/runtime/app/components/Text/Text.types.d.ts +9 -0
- package/dist/runtime/app/components/Text/Text.types.js +0 -0
- package/dist/runtime/app/components/Text/Text.vue +37 -0
- package/dist/runtime/app/components/Text/Text.vue.d.ts +19 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.d.vue.ts +17 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.theme.d.ts +5 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.theme.js +6 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.types.d.ts +9 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.types.js +0 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.vue +76 -0
- package/dist/runtime/app/components/Toolbar/Toolbar.vue.d.ts +17 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.d.vue.ts +5 -26
- package/dist/runtime/app/components/Tooltip/Tooltip.types.d.ts +11 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.types.js +0 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.vue +1 -1
- package/dist/runtime/app/components/Tooltip/Tooltip.vue.d.ts +5 -26
- package/dist/runtime/app/composables/internal/useVunoContext.d.ts +5 -0
- package/dist/runtime/app/composables/internal/useVunoContext.js +8 -0
- package/dist/runtime/app/composables/internal/useVunoControlGroup.d.ts +3 -4
- package/dist/runtime/app/composables/internal/useVunoDirection.d.ts +5 -0
- package/dist/runtime/app/composables/internal/useVunoDirection.js +8 -0
- package/dist/runtime/app/composables/internal/useVunoFormContext.d.ts +5 -0
- package/dist/runtime/app/composables/internal/useVunoFormContext.js +8 -0
- package/dist/runtime/app/composables/internal/useVunoOverlayBehind.d.ts +6 -0
- package/dist/runtime/app/composables/internal/useVunoOverlayBehind.js +8 -0
- package/dist/runtime/app/composables/useContext.js +2 -3
- package/dist/runtime/app/composables/useForm.js +2 -3
- package/dist/runtime/app/composables/useTableQuery.d.ts +1 -1
- package/dist/runtime/app/composables/useTheme.js +6 -3
- package/dist/runtime/app/{components/internal/ControlShell/ControlShell.vue.d.ts → primitives/PrimitiveControl/PrimitiveControl.d.vue.ts} +4 -3
- package/dist/runtime/app/{components/internal/ControlShell/ControlShell.theme.d.ts → primitives/PrimitiveControl/PrimitiveControl.theme.d.ts} +1 -1
- package/dist/runtime/app/{components/internal/ControlShell/ControlShell.vue → primitives/PrimitiveControl/PrimitiveControl.vue} +1 -1
- package/dist/runtime/app/{components/internal/ControlShell/ControlShell.d.vue.ts → primitives/PrimitiveControl/PrimitiveControl.vue.d.ts} +4 -3
- package/dist/runtime/app/{components/internal/Input/Input.d.vue.ts → primitives/PrimitiveInput/PrimitiveInput.d.vue.ts} +4 -3
- package/dist/runtime/app/{components/internal/Input/Input.vue → primitives/PrimitiveInput/PrimitiveInput.vue} +4 -4
- package/dist/runtime/app/{components/internal/Input/Input.vue.d.ts → primitives/PrimitiveInput/PrimitiveInput.vue.d.ts} +4 -3
- package/dist/runtime/app/{components/internal/NumberInput/NumberInput.d.vue.ts → primitives/PrimitiveNumberInput/PrimitiveNumberInput.d.vue.ts} +3 -4
- package/dist/runtime/app/{components/internal/NumberInput/NumberInput.theme.d.ts → primitives/PrimitiveNumberInput/PrimitiveNumberInput.theme.d.ts} +3 -0
- package/dist/runtime/app/{components/internal/NumberInput/NumberInput.theme.js → primitives/PrimitiveNumberInput/PrimitiveNumberInput.theme.js} +4 -1
- package/dist/runtime/app/{components/internal/NumberInput/NumberInput.vue → primitives/PrimitiveNumberInput/PrimitiveNumberInput.vue} +7 -5
- package/dist/runtime/app/{components/internal/NumberInput/NumberInput.vue.d.ts → primitives/PrimitiveNumberInput/PrimitiveNumberInput.vue.d.ts} +3 -4
- package/dist/runtime/app/theme/index.d.ts +254 -96
- package/dist/runtime/app/theme/index.js +13 -5
- package/dist/runtime/app/theme/messages.js +1 -0
- package/dist/runtime/app/theme/shared.d.ts +3 -2
- package/dist/runtime/app/theme/shared.js +2 -1
- package/dist/runtime/app/types/app.d.ts +4 -2
- package/dist/runtime/app/types/base.d.ts +5 -23
- package/dist/runtime/app/types/field.d.ts +3 -1
- package/dist/runtime/app/types/form.d.ts +3 -4
- package/dist/runtime/app/types/index.d.ts +55 -7
- package/dist/runtime/app/types/menu.d.ts +22 -0
- package/dist/runtime/app/types/menu.js +0 -0
- package/dist/runtime/app/types/page.d.ts +6 -10
- package/dist/runtime/app/types/slots.d.ts +8 -4
- package/dist/runtime/app/types/table.d.ts +28 -28
- package/dist/runtime/app/types/text.d.ts +6 -0
- package/dist/runtime/app/types/text.js +0 -0
- package/dist/runtime/app/types/theme.d.ts +15 -6
- package/dist/runtime/app/utils/format.js +3 -2
- package/dist/runtime/app/utils/path.js +1 -1
- package/dist/runtime/app/{internal → utils}/slots.d.ts +2 -2
- package/dist/runtime/app/utils/theme.d.ts +8 -41
- package/dist/runtime/app/utils/theme.js +31 -29
- package/package.json +9 -9
- package/dist/runtime/app/components/Page/Page.d.vue.ts +0 -40
- package/dist/runtime/app/components/Page/Page.theme.d.ts +0 -32
- package/dist/runtime/app/components/Page/Page.theme.js +0 -31
- package/dist/runtime/app/components/Page/Page.vue +0 -132
- package/dist/runtime/app/components/Page/Page.vue.d.ts +0 -40
- package/dist/runtime/app/internal/keys.d.ts +0 -43
- package/dist/runtime/app/internal/keys.js +0 -8
- package/dist/runtime/app/types/alert.d.ts +0 -13
- package/dist/runtime/app/types/state.d.ts +0 -35
- /package/dist/runtime/app/{types/alert.js → components/Alert/Alert.types.js} +0 -0
- /package/dist/runtime/app/{types/state.js → components/App/App.types.js} +0 -0
- /package/dist/runtime/app/components/{Table → DataTable}/internal/query.d.ts +0 -0
- /package/dist/runtime/app/components/{Table → DataTable}/internal/query.js +0 -0
- /package/dist/runtime/app/components/{internal → FormField/internal}/FieldShell/FieldShell.vue +0 -0
- /package/dist/runtime/app/{components/internal/ControlShell/ControlShell.theme.js → primitives/PrimitiveControl/PrimitiveControl.theme.js} +0 -0
- /package/dist/runtime/app/{components/internal/Input/Input.theme.d.ts → primitives/PrimitiveInput/PrimitiveInput.theme.d.ts} +0 -0
- /package/dist/runtime/app/{components/internal/Input/Input.theme.js → primitives/PrimitiveInput/PrimitiveInput.theme.js} +0 -0
- /package/dist/runtime/app/{components/internal/NumberInput → primitives/PrimitiveNumberInput}/number.d.ts +0 -0
- /package/dist/runtime/app/{components/internal/NumberInput → primitives/PrimitiveNumberInput}/number.js +0 -0
- /package/dist/runtime/app/{internal → utils}/slots.js +0 -0
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
2
2
|
import { clampPage } from "#vuno/utils/pagination";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export function useVunoTable(options) {
|
|
3
|
+
import { hasActiveQuery, hasFilterValue } from "./query.js";
|
|
4
|
+
export function useVunoDataTable(options) {
|
|
6
5
|
const { query, selection } = options;
|
|
7
6
|
const definition = computed(() => options.definition());
|
|
8
7
|
const total = computed(() => options.total());
|
|
9
|
-
const rowKey = computed(() => definition.value.rowKey ?? "id");
|
|
10
8
|
const pageSizes = computed(() => definition.value.pageSizes ?? [25, 50, 100]);
|
|
11
9
|
const searchable = computed(() => definition.value.searchable ?? true);
|
|
12
10
|
const paginated = computed(() => definition.value.paginated ?? true);
|
|
13
|
-
const getRowId = (row) => String(getPath(row, rowKey.value) ?? "");
|
|
14
11
|
const search = ref(query.value.search);
|
|
15
12
|
let searchTimer;
|
|
16
13
|
watch(search, (value) => {
|
|
@@ -32,14 +29,6 @@ export function useVunoTable(options) {
|
|
|
32
29
|
search.value = "";
|
|
33
30
|
query.value = { ...query.value, page: 1, search: "" };
|
|
34
31
|
}
|
|
35
|
-
function sortDirectionFor(key) {
|
|
36
|
-
return query.value.sort?.column === key ? query.value.sort.direction : null;
|
|
37
|
-
}
|
|
38
|
-
function toggleSort(key) {
|
|
39
|
-
const current = sortDirectionFor(key);
|
|
40
|
-
const sort = current === null ? { column: key, direction: "asc" } : current === "asc" ? { column: key, direction: "desc" } : null;
|
|
41
|
-
query.value = { ...query.value, page: 1, sort };
|
|
42
|
-
}
|
|
43
32
|
const filtersOpen = ref(false);
|
|
44
33
|
const filterState = ref({ ...query.value.filters });
|
|
45
34
|
watch(
|
|
@@ -88,18 +77,6 @@ export function useVunoTable(options) {
|
|
|
88
77
|
const clearSelection = () => {
|
|
89
78
|
selection.value = [];
|
|
90
79
|
};
|
|
91
|
-
const alignClass = (align) => align === "end" ? "text-end" : align === "center" ? "text-center" : "";
|
|
92
|
-
const columns = computed(
|
|
93
|
-
() => definition.value.columns.map((column) => ({
|
|
94
|
-
cellClass: [alignClass(column.align), column.class].filter(Boolean).join(" "),
|
|
95
|
-
column,
|
|
96
|
-
headerClass: [alignClass(column.align), column.width].filter(Boolean).join(" "),
|
|
97
|
-
key: column.key,
|
|
98
|
-
// La columna de acciones no lleva rótulo salvo que se pida uno.
|
|
99
|
-
label: column.type === "actions" ? column.label ?? "" : column.label ?? column.key,
|
|
100
|
-
sortable: column.sortable ?? false
|
|
101
|
-
}))
|
|
102
|
-
);
|
|
103
80
|
const lastPage = computed(() => Math.max(1, Math.ceil(total.value / query.value.pageSize)));
|
|
104
81
|
watch(
|
|
105
82
|
[total, lastPage],
|
|
@@ -129,11 +106,9 @@ export function useVunoTable(options) {
|
|
|
129
106
|
clearQuery,
|
|
130
107
|
clearSearch,
|
|
131
108
|
clearSelection,
|
|
132
|
-
columns,
|
|
133
109
|
filtersDefinition,
|
|
134
110
|
filtersOpen,
|
|
135
111
|
filterState,
|
|
136
|
-
getRowId,
|
|
137
112
|
goToPage,
|
|
138
113
|
isFiltered,
|
|
139
114
|
lastPage,
|
|
@@ -146,8 +121,6 @@ export function useVunoTable(options) {
|
|
|
146
121
|
searchable,
|
|
147
122
|
setPageSize,
|
|
148
123
|
shownPage,
|
|
149
|
-
sortDirectionFor,
|
|
150
|
-
toggleSort,
|
|
151
124
|
total
|
|
152
125
|
};
|
|
153
126
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldArrayProps } from './FieldArray.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldArrayProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: Record<string, unknown>[] | undefined;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, reactive } from "vue";
|
|
3
|
+
import { provideVunoFormContext } from "#vuno/composables/internal/useVunoFormContext";
|
|
3
4
|
import { useField } from "#vuno/composables/useField";
|
|
4
5
|
import { useForm } from "#vuno/composables/useForm";
|
|
5
6
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
6
|
-
import { vunoFormInjectionKey } from "#vuno/internal/keys";
|
|
7
7
|
import { cloneValue, getPath, isEqual, setPath } from "#vuno/utils/path";
|
|
8
8
|
import Button from "#vuno/components/Button/Button.vue";
|
|
9
9
|
import FormFieldRenderer from "#vuno/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue";
|
|
10
10
|
import { getColumnSpanClass } from "#vuno/components/Form/internal/grid";
|
|
11
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
11
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
12
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
12
13
|
defineOptions({ name: "VunoFieldArray" });
|
|
13
14
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
14
15
|
const props = defineProps({
|
|
@@ -60,7 +61,7 @@ const standaloneForm = {
|
|
|
60
61
|
value.value = state.items;
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
|
-
|
|
64
|
+
provideVunoFormContext(parentForm ?? standaloneForm);
|
|
64
65
|
const canAdd = computed(() => props.max === void 0 || items.value.length < props.max);
|
|
65
66
|
const canRemove = computed(() => items.value.length > (props.min ?? 0));
|
|
66
67
|
function emptyItem() {
|
|
@@ -105,7 +106,13 @@ function move(index, offset) {
|
|
|
105
106
|
:class="ui.item"
|
|
106
107
|
>
|
|
107
108
|
<div :class="ui.itemHeader">
|
|
108
|
-
<
|
|
109
|
+
<Text
|
|
110
|
+
:class="ui.itemLabel"
|
|
111
|
+
tag="span"
|
|
112
|
+
tone="inherit"
|
|
113
|
+
variant="inherit"
|
|
114
|
+
>{{ index + 1 }}</Text
|
|
115
|
+
>
|
|
109
116
|
|
|
110
117
|
<div :class="ui.itemActions">
|
|
111
118
|
<Button
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldArrayProps } from './FieldArray.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldArrayProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: Record<string, unknown>[] | undefined;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldCheckboxProps } from './FieldCheckbox.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldCheckboxProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import Checkbox from "#vuno/components/FieldCheckbox/internal/Checkbox/Checkbox.vue";
|
|
5
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldCheckbox" });
|
|
7
7
|
const model = defineModel({ type: Boolean });
|
|
8
8
|
const props = defineProps({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldCheckboxProps } from './FieldCheckbox.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldCheckboxProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
5
5
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { VunoColor, VunoRadius
|
|
1
|
+
import type { VunoColor, VunoRadius } from '#vuno/types/base';
|
|
2
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
4
|
/**
|
|
4
5
|
* La casilla, nativa.
|
|
@@ -17,7 +18,7 @@ type Props = {
|
|
|
17
18
|
indeterminate?: boolean;
|
|
18
19
|
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
19
20
|
radius?: VunoRadius;
|
|
20
|
-
size?:
|
|
21
|
+
size?: VunoFieldSize;
|
|
21
22
|
ui?: VunoUi<'checkbox' | 'fieldCheckbox'>;
|
|
22
23
|
};
|
|
23
24
|
type __VLS_Props = Props;
|
|
@@ -32,7 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
33
|
}>, {
|
|
33
34
|
color: VunoColor;
|
|
34
35
|
radius: VunoRadius;
|
|
35
|
-
size:
|
|
36
|
+
size: VunoFieldSize;
|
|
36
37
|
ui: VunoUi<"checkbox" | "fieldCheckbox">;
|
|
37
38
|
indeterminate: boolean;
|
|
38
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { VunoColor, VunoRadius
|
|
1
|
+
import type { VunoColor, VunoRadius } from '#vuno/types/base';
|
|
2
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
4
|
/**
|
|
4
5
|
* La casilla, nativa.
|
|
@@ -17,7 +18,7 @@ type Props = {
|
|
|
17
18
|
indeterminate?: boolean;
|
|
18
19
|
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
19
20
|
radius?: VunoRadius;
|
|
20
|
-
size?:
|
|
21
|
+
size?: VunoFieldSize;
|
|
21
22
|
ui?: VunoUi<'checkbox' | 'fieldCheckbox'>;
|
|
22
23
|
};
|
|
23
24
|
type __VLS_Props = Props;
|
|
@@ -32,7 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
33
|
}>, {
|
|
33
34
|
color: VunoColor;
|
|
34
35
|
radius: VunoRadius;
|
|
35
|
-
size:
|
|
36
|
+
size: VunoFieldSize;
|
|
36
37
|
ui: VunoUi<"checkbox" | "fieldCheckbox">;
|
|
37
38
|
indeterminate: boolean;
|
|
38
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldColorProps } from './FieldColor.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldColorProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string | undefined;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -3,8 +3,8 @@ import { computed } from "vue";
|
|
|
3
3
|
import { useField } from "#vuno/composables/useField";
|
|
4
4
|
import { useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
5
5
|
import { toHexColor } from "#vuno/utils/format";
|
|
6
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
7
|
-
import
|
|
6
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
7
|
+
import PrimitiveInput from "#vuno/primitives/PrimitiveInput/PrimitiveInput.vue";
|
|
8
8
|
defineOptions({ name: "VunoFieldColor", inheritAttrs: false });
|
|
9
9
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
10
10
|
const props = defineProps({
|
|
@@ -74,7 +74,7 @@ function onPick(event) {
|
|
|
74
74
|
/>
|
|
75
75
|
</label>
|
|
76
76
|
|
|
77
|
-
<
|
|
77
|
+
<PrimitiveInput
|
|
78
78
|
v-bind="control"
|
|
79
79
|
v-model="value"
|
|
80
80
|
class="font-mono"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldColorProps } from './FieldColor.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldColorProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string | undefined;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldCurrencyProps } from './FieldCurrency.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldCurrencyProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: number | undefined;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
-
import
|
|
4
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import PrimitiveNumberInput from "#vuno/primitives/PrimitiveNumberInput/PrimitiveNumberInput.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldCurrency" });
|
|
7
7
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
8
8
|
const props = defineProps({
|
|
@@ -33,7 +33,7 @@ const ui = useTheme("fieldCurrency", () => props.ui);
|
|
|
33
33
|
<template>
|
|
34
34
|
<FieldShell v-bind="props">
|
|
35
35
|
<template #default="control">
|
|
36
|
-
<
|
|
36
|
+
<PrimitiveNumberInput
|
|
37
37
|
v-bind="control"
|
|
38
38
|
v-model="value"
|
|
39
39
|
:currency="props.currency"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldCurrencyProps } from './FieldCurrency.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldCurrencyProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: number | undefined;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VunoFieldFileProps } from './FieldFile.types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Los tres booleanos llevan `withDefaults` y no un `?? true` en el uso.
|
|
4
4
|
*
|
|
@@ -8,7 +8,7 @@ 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 =
|
|
11
|
+
type __VLS_Props = VunoFieldFileProps;
|
|
12
12
|
type __VLS_ModelProps = {
|
|
13
13
|
modelValue?: File[] | null | undefined;
|
|
14
14
|
};
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ import { useField } from "#vuno/composables/useField";
|
|
|
4
4
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
5
5
|
import Button from "#vuno/components/Button/Button.vue";
|
|
6
6
|
import FileUpload from "#vuno/components/FieldFile/internal/FileUpload/FileUpload.vue";
|
|
7
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
7
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
8
8
|
import Tooltip from "#vuno/components/Tooltip/Tooltip.vue";
|
|
9
9
|
defineOptions({ name: "VunoFieldFile" });
|
|
10
10
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VunoFieldFileProps } from './FieldFile.types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Los tres booleanos llevan `withDefaults` y no un `?? true` en el uso.
|
|
4
4
|
*
|
|
@@ -8,7 +8,7 @@ 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 =
|
|
11
|
+
type __VLS_Props = VunoFieldFileProps;
|
|
12
12
|
type __VLS_ModelProps = {
|
|
13
13
|
modelValue?: File[] | null | undefined;
|
|
14
14
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { VunoRadius
|
|
1
|
+
import type { VunoRadius } from '#vuno/types/base';
|
|
2
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
4
|
type __VLS_Props = Props;
|
|
4
5
|
type __VLS_Slots = {
|
|
@@ -32,7 +33,7 @@ type Props = {
|
|
|
32
33
|
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
33
34
|
radius?: VunoRadius;
|
|
34
35
|
required?: boolean;
|
|
35
|
-
size?:
|
|
36
|
+
size?: VunoFieldSize;
|
|
36
37
|
ui?: VunoUi<'fieldFile' | 'fileUpload'>;
|
|
37
38
|
};
|
|
38
39
|
type __VLS_ModelProps = {
|
|
@@ -47,7 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
48
|
"onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
|
|
48
49
|
}>, {
|
|
49
50
|
radius: VunoRadius;
|
|
50
|
-
size:
|
|
51
|
+
size: VunoFieldSize;
|
|
51
52
|
name: string;
|
|
52
53
|
dropzone: boolean;
|
|
53
54
|
hint: string;
|
|
@@ -16,6 +16,7 @@ export declare const fileUploadTheme: Record<"fileUpload", {
|
|
|
16
16
|
readonly dropzoneDisabled: "cursor-not-allowed opacity-50";
|
|
17
17
|
readonly fileIcon: "shrink-0 text-vuno-muted";
|
|
18
18
|
readonly hint: "leading-snug";
|
|
19
|
+
readonly icon: "";
|
|
19
20
|
readonly item: "flex items-center gap-2 rounded-sm border border-vuno-border bg-vuno-surface p-1.5";
|
|
20
21
|
readonly itemAction: "rounded-sm";
|
|
21
22
|
readonly list: "flex w-full flex-col gap-1.5";
|
|
@@ -9,6 +9,7 @@ export const fileUploadTheme = defineTheme("fileUpload", {
|
|
|
9
9
|
dropzoneDisabled: "cursor-not-allowed opacity-50",
|
|
10
10
|
fileIcon: "shrink-0 text-vuno-muted",
|
|
11
11
|
hint: "leading-snug",
|
|
12
|
+
icon: "",
|
|
12
13
|
item: "flex items-center gap-2 rounded-sm border border-vuno-border bg-vuno-surface p-1.5",
|
|
13
14
|
/*
|
|
14
15
|
* Los botones de cada archivo: quitar, y los de reordenar que
|
|
@@ -3,6 +3,7 @@ import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
|
3
3
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import Button from "#vuno/components/Button/Button.vue";
|
|
5
5
|
import Icon from "#vuno/components/Icon/Icon.vue";
|
|
6
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
6
7
|
defineOptions({ name: "VunoFileUpload", inheritAttrs: false });
|
|
7
8
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
8
9
|
const props = defineProps({
|
|
@@ -24,7 +25,12 @@ const messages = useMessages();
|
|
|
24
25
|
const ui = useTheme(
|
|
25
26
|
"fileUpload",
|
|
26
27
|
() => props.ui,
|
|
27
|
-
() => ({
|
|
28
|
+
() => ({
|
|
29
|
+
dropzone: props.dropzone ? "true" : "false",
|
|
30
|
+
layout: props.layout,
|
|
31
|
+
radius: props.radius,
|
|
32
|
+
size: props.size
|
|
33
|
+
})
|
|
28
34
|
);
|
|
29
35
|
const inputRef = ref(null);
|
|
30
36
|
const isDragging = ref(false);
|
|
@@ -114,10 +120,13 @@ defineExpose({ inputRef });
|
|
|
114
120
|
:name="icons.fileUpload"
|
|
115
121
|
/>
|
|
116
122
|
|
|
117
|
-
<
|
|
123
|
+
<Text
|
|
118
124
|
v-if="props.hint"
|
|
119
125
|
:class="ui.hint"
|
|
120
|
-
|
|
126
|
+
tag="span"
|
|
127
|
+
tone="inherit"
|
|
128
|
+
variant="inherit"
|
|
129
|
+
>{{ props.hint }}</Text
|
|
121
130
|
>
|
|
122
131
|
|
|
123
132
|
<input
|
|
@@ -157,8 +166,20 @@ defineExpose({ inputRef });
|
|
|
157
166
|
/>
|
|
158
167
|
|
|
159
168
|
<div :class="ui.texts">
|
|
160
|
-
<
|
|
161
|
-
|
|
169
|
+
<Text
|
|
170
|
+
:class="ui.name"
|
|
171
|
+
tag="span"
|
|
172
|
+
tone="inherit"
|
|
173
|
+
variant="inherit"
|
|
174
|
+
>{{ file.name }}</Text
|
|
175
|
+
>
|
|
176
|
+
<Text
|
|
177
|
+
:class="ui.size"
|
|
178
|
+
tag="span"
|
|
179
|
+
tone="inherit"
|
|
180
|
+
variant="inherit"
|
|
181
|
+
>{{ formatSize(file.size) }}</Text
|
|
182
|
+
>
|
|
162
183
|
</div>
|
|
163
184
|
|
|
164
185
|
<div :class="ui.actions">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { VunoRadius
|
|
1
|
+
import type { VunoRadius } from '#vuno/types/base';
|
|
2
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
4
|
type __VLS_Props = Props;
|
|
4
5
|
type __VLS_Slots = {
|
|
@@ -32,7 +33,7 @@ type Props = {
|
|
|
32
33
|
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
33
34
|
radius?: VunoRadius;
|
|
34
35
|
required?: boolean;
|
|
35
|
-
size?:
|
|
36
|
+
size?: VunoFieldSize;
|
|
36
37
|
ui?: VunoUi<'fieldFile' | 'fileUpload'>;
|
|
37
38
|
};
|
|
38
39
|
type __VLS_ModelProps = {
|
|
@@ -47,7 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
48
|
"onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
|
|
48
49
|
}>, {
|
|
49
50
|
radius: VunoRadius;
|
|
50
|
-
size:
|
|
51
|
+
size: VunoFieldSize;
|
|
51
52
|
name: string;
|
|
52
53
|
dropzone: boolean;
|
|
53
54
|
hint: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VunoFieldInput } from '#vuno/types/field';
|
|
2
1
|
import type { VunoFieldInputType } from '#vuno/types/field-type';
|
|
3
|
-
type
|
|
2
|
+
import type { VunoFieldInputProps } from './FieldInput.types.js';
|
|
3
|
+
type __VLS_Props = VunoFieldInputProps;
|
|
4
4
|
type __VLS_ModelProps = {
|
|
5
5
|
modelValue?: string | undefined;
|
|
6
6
|
};
|
|
@@ -12,12 +12,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
}>, {
|
|
13
13
|
icon: string;
|
|
14
14
|
type: VunoFieldInputType;
|
|
15
|
-
ui: Partial<Record<"root" | ("
|
|
16
|
-
placeholder: string;
|
|
15
|
+
ui: Partial<Record<"root" | ("base" | "icon"), string | string[] | undefined>>;
|
|
17
16
|
max: string;
|
|
18
17
|
min: string;
|
|
19
18
|
autocomplete: string;
|
|
20
19
|
autofocus: boolean;
|
|
20
|
+
placeholder: string;
|
|
21
21
|
maxlength: number;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
File without changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { useField } from "#vuno/composables/useField";
|
|
4
4
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
5
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
6
|
-
import
|
|
5
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
6
|
+
import PrimitiveInput from "#vuno/primitives/PrimitiveInput/PrimitiveInput.vue";
|
|
7
7
|
defineOptions({ name: "VunoFieldInput" });
|
|
8
8
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
9
9
|
const props = defineProps({
|
|
@@ -42,7 +42,7 @@ const autocomplete = computed(() => props.autocomplete ?? autocompleteDefaults[p
|
|
|
42
42
|
<template>
|
|
43
43
|
<FieldShell v-bind="props">
|
|
44
44
|
<template #default="control">
|
|
45
|
-
<
|
|
45
|
+
<PrimitiveInput
|
|
46
46
|
v-bind="control"
|
|
47
47
|
v-model="value"
|
|
48
48
|
:autocomplete="autocomplete"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VunoFieldInput } from '#vuno/types/field';
|
|
2
1
|
import type { VunoFieldInputType } from '#vuno/types/field-type';
|
|
3
|
-
type
|
|
2
|
+
import type { VunoFieldInputProps } from './FieldInput.types.js';
|
|
3
|
+
type __VLS_Props = VunoFieldInputProps;
|
|
4
4
|
type __VLS_ModelProps = {
|
|
5
5
|
modelValue?: string | undefined;
|
|
6
6
|
};
|
|
@@ -12,12 +12,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
}>, {
|
|
13
13
|
icon: string;
|
|
14
14
|
type: VunoFieldInputType;
|
|
15
|
-
ui: Partial<Record<"root" | ("
|
|
16
|
-
placeholder: string;
|
|
15
|
+
ui: Partial<Record<"root" | ("base" | "icon"), string | string[] | undefined>>;
|
|
17
16
|
max: string;
|
|
18
17
|
min: string;
|
|
19
18
|
autocomplete: string;
|
|
20
19
|
autofocus: boolean;
|
|
20
|
+
placeholder: string;
|
|
21
21
|
maxlength: number;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldNumberProps } from './FieldNumber.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldNumberProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: number | undefined;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
-
import
|
|
4
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import PrimitiveNumberInput from "#vuno/primitives/PrimitiveNumberInput/PrimitiveNumberInput.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldNumber" });
|
|
7
7
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
8
8
|
const props = defineProps({
|
|
@@ -31,7 +31,7 @@ const ui = useTheme("fieldNumber", () => props.ui);
|
|
|
31
31
|
<template>
|
|
32
32
|
<FieldShell v-bind="props">
|
|
33
33
|
<template #default="control">
|
|
34
|
-
<
|
|
34
|
+
<PrimitiveNumberInput
|
|
35
35
|
v-bind="control"
|
|
36
36
|
v-model="value"
|
|
37
37
|
:disabled="props.disabled"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldNumberProps } from './FieldNumber.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldNumberProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: number | undefined;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldPasswordProps } from './FieldPassword.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldPasswordProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string | undefined;
|
|
5
5
|
};
|