@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
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import { inject, provide, reactive, useId, watch } from "vue";
|
|
3
3
|
import { useRoute } from "#imports";
|
|
4
4
|
import { useIcons, useTheme } from "#vuno/composables/useTheme";
|
|
5
|
-
import { vunoNavigationListInjectionKey } from "#vuno/internal/keys";
|
|
6
5
|
import { cn } from "#vuno/utils/theme";
|
|
7
6
|
import Icon from "#vuno/components/Icon/Icon.vue";
|
|
7
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
8
|
+
import { vunoNavigationListInjectionKey } from "./NavigationList.keys";
|
|
8
9
|
defineOptions({ name: "VunoNavigationList", inheritAttrs: false });
|
|
9
10
|
const props = defineProps({
|
|
10
11
|
collapsible: { type: Boolean, required: false, default: true },
|
|
@@ -85,20 +86,34 @@ watch(
|
|
|
85
86
|
:name="item.icon"
|
|
86
87
|
/>
|
|
87
88
|
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
<Text
|
|
90
|
+
:class="ui.labelGroup"
|
|
91
|
+
tag="span"
|
|
92
|
+
tone="inherit"
|
|
93
|
+
variant="inherit"
|
|
94
|
+
>
|
|
95
|
+
<Text
|
|
96
|
+
:class="ui.label"
|
|
97
|
+
tag="span"
|
|
98
|
+
tone="inherit"
|
|
99
|
+
variant="inherit"
|
|
100
|
+
>{{ item.label }}</Text
|
|
101
|
+
>
|
|
102
|
+
</Text>
|
|
91
103
|
|
|
92
|
-
<
|
|
104
|
+
<Text
|
|
93
105
|
v-if="item.badge"
|
|
94
106
|
:class="ui.badge"
|
|
95
|
-
|
|
107
|
+
tag="span"
|
|
108
|
+
tone="inherit"
|
|
109
|
+
variant="inherit"
|
|
110
|
+
>{{ item.badge }}</Text
|
|
96
111
|
>
|
|
97
112
|
</NuxtLink>
|
|
98
113
|
|
|
99
114
|
<!--
|
|
100
115
|
Una rama sin `to` no navega: el rótulo entero es el botón
|
|
101
|
-
de desplegar, porque un `<span>` que despliega al pulsarlo
|
|
116
|
+
de desplegar, porque un `<Text tag="span" tone="inherit" variant="inherit">` que despliega al pulsarlo
|
|
102
117
|
no lo alcanza el teclado.
|
|
103
118
|
-->
|
|
104
119
|
<button
|
|
@@ -118,9 +133,20 @@ watch(
|
|
|
118
133
|
:name="item.icon"
|
|
119
134
|
/>
|
|
120
135
|
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
136
|
+
<Text
|
|
137
|
+
:class="ui.labelGroup"
|
|
138
|
+
tag="span"
|
|
139
|
+
tone="inherit"
|
|
140
|
+
variant="inherit"
|
|
141
|
+
>
|
|
142
|
+
<Text
|
|
143
|
+
:class="ui.label"
|
|
144
|
+
tag="span"
|
|
145
|
+
tone="inherit"
|
|
146
|
+
variant="inherit"
|
|
147
|
+
>{{ item.label }}</Text
|
|
148
|
+
>
|
|
149
|
+
</Text>
|
|
124
150
|
</template>
|
|
125
151
|
|
|
126
152
|
<!--
|
|
@@ -128,10 +154,13 @@ watch(
|
|
|
128
154
|
va al lado de un enlace: ahí el botón no tiene texto
|
|
129
155
|
propio y sin esto se anunciaría como «botón» a secas.
|
|
130
156
|
-->
|
|
131
|
-
<
|
|
157
|
+
<Text
|
|
132
158
|
v-if="item.to"
|
|
133
159
|
class="sr-only"
|
|
134
|
-
|
|
160
|
+
tag="span"
|
|
161
|
+
tone="inherit"
|
|
162
|
+
variant="inherit"
|
|
163
|
+
>{{ item.label }}</Text
|
|
135
164
|
>
|
|
136
165
|
|
|
137
166
|
<Icon
|
|
@@ -141,10 +170,13 @@ watch(
|
|
|
141
170
|
</button>
|
|
142
171
|
|
|
143
172
|
<!-- Una rama fija es un rótulo, no un control que finja poder cerrarse. -->
|
|
144
|
-
<
|
|
173
|
+
<Text
|
|
145
174
|
v-else-if="item.children?.length && !item.to"
|
|
146
175
|
:class="cn(ui.group, props.level >= 2 && ui.groupDeep)"
|
|
147
176
|
:data-active="isActive(item) || void 0"
|
|
177
|
+
tag="span"
|
|
178
|
+
tone="inherit"
|
|
179
|
+
variant="inherit"
|
|
148
180
|
>
|
|
149
181
|
<Icon
|
|
150
182
|
v-if="item.icon"
|
|
@@ -152,16 +184,30 @@ watch(
|
|
|
152
184
|
:name="item.icon"
|
|
153
185
|
/>
|
|
154
186
|
|
|
155
|
-
<
|
|
156
|
-
|
|
157
|
-
|
|
187
|
+
<Text
|
|
188
|
+
:class="ui.labelGroup"
|
|
189
|
+
tag="span"
|
|
190
|
+
tone="inherit"
|
|
191
|
+
variant="inherit"
|
|
192
|
+
>
|
|
193
|
+
<Text
|
|
194
|
+
:class="ui.label"
|
|
195
|
+
tag="span"
|
|
196
|
+
tone="inherit"
|
|
197
|
+
variant="inherit"
|
|
198
|
+
>{{ item.label }}</Text
|
|
199
|
+
>
|
|
200
|
+
</Text>
|
|
158
201
|
|
|
159
|
-
<
|
|
202
|
+
<Text
|
|
160
203
|
v-if="item.badge"
|
|
161
204
|
:class="ui.badge"
|
|
162
|
-
|
|
205
|
+
tag="span"
|
|
206
|
+
tone="inherit"
|
|
207
|
+
variant="inherit"
|
|
208
|
+
>{{ item.badge }}</Text
|
|
163
209
|
>
|
|
164
|
-
</
|
|
210
|
+
</Text>
|
|
165
211
|
</div>
|
|
166
212
|
|
|
167
213
|
<!--
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* Navegación anidada: listas dentro de listas, con las ramas que contienen la
|
|
5
|
-
* página actual openKeys.
|
|
6
|
-
*
|
|
7
|
-
* **La apertura se deriva de la ruta, no del clic.** Es lo que hace que al
|
|
8
|
-
* recargar en `config/perfil/contrasena` las dos ramas de arriba estén
|
|
9
|
-
* openKeys, y que lo estén también en el HTML del servidor. Un estado que solo
|
|
10
|
-
* se moviera al pulsar dejaría la página actual escondida en cuanto alguien
|
|
11
|
-
* llegara por un enlace directo. Se recalcula al cambiar de ruta, de forma
|
|
12
|
-
* **aditiva**: navegar abre lo que hace falta y no cierra lo que el usuario
|
|
13
|
-
* abrió a mano.
|
|
14
|
-
*
|
|
15
|
-
* **Listas anidadas y no `role="tree"`.** Un árbol ARIA es un control de
|
|
16
|
-
* selección única con foco móvil, y esto es un menú de enlaces: lo que
|
|
17
|
-
* corresponde es `<ul>` dentro de `<li>` con un botón de desplegar. Ponerle
|
|
18
|
-
* `role="tree"` obligaría a reimplementar el teclado de un widget y a cambiar
|
|
19
|
-
* cómo lo anuncia un lector, para peor.
|
|
20
|
-
*/
|
|
21
|
-
type Props = {
|
|
22
|
-
/** Permite cerrar y abrir ramas; desactivado las mantiene visibles. */
|
|
23
|
-
collapsible?: boolean;
|
|
24
|
-
items: VunoNavigationItem[];
|
|
25
|
-
/** Profundidad de esta lista. Interno: lo pone la propia recursión. */
|
|
26
|
-
level?: number;
|
|
27
|
-
/** Ruta estructural de esta lista. Interno: evita colisiones entre rótulos repetidos. */
|
|
28
|
-
path?: string;
|
|
29
|
-
ui?: VunoUi<'navigationList'>;
|
|
30
|
-
};
|
|
31
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
32
|
-
path: string;
|
|
33
|
-
ui: VunoUi<"navigationList">;
|
|
1
|
+
import type { VunoNavigationListProps } from './NavigationList.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoNavigationListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoNavigationListProps> & Readonly<{}>, {
|
|
34
3
|
collapsible: boolean;
|
|
4
|
+
path: string;
|
|
5
|
+
ui: import("../../types/slots.js").VunoUi<"navigationList">;
|
|
35
6
|
level: number;
|
|
36
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* Navegación horizontal para una barra superior.
|
|
5
|
-
*
|
|
6
|
-
* El primer nivel permanece en la barra y cada rama abre un panel flotante;
|
|
7
|
-
* los niveles siguientes salen como flyouts laterales. No comparte el
|
|
8
|
-
* modelo visual de `VNavigationList`: una lista persistente conserva sus ramas en
|
|
9
|
-
* el flujo, mientras que una barra no puede crecer hacia abajo al abrirse.
|
|
10
|
-
*/
|
|
11
|
-
type Props = {
|
|
12
|
-
/** Interno: los descendientes son paneles laterales. */
|
|
13
|
-
flyout?: boolean;
|
|
14
|
-
items: VunoNavigationItem[];
|
|
15
|
-
/** Interno: profundidad dentro del menú. */
|
|
16
|
-
level?: number;
|
|
17
|
-
/** Interno: ruta estructural que evita colisiones entre rótulos. */
|
|
18
|
-
path?: string;
|
|
19
|
-
/** Interno: primer panel que cae debajo de la barra. */
|
|
20
|
-
popup?: boolean;
|
|
21
|
-
ui?: VunoUi<'navigationMenu'>;
|
|
22
|
-
};
|
|
23
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
1
|
+
import type { VunoNavigationMenuProps } from './NavigationMenu.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoNavigationMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoNavigationMenuProps> & Readonly<{}>, {
|
|
24
3
|
path: string;
|
|
25
|
-
ui: VunoUi<"navigationMenu">;
|
|
4
|
+
ui: import("../../types/slots.js").VunoUi<"navigationMenu">;
|
|
26
5
|
level: number;
|
|
27
6
|
flyout: boolean;
|
|
28
7
|
popup: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
/** Cierres diferidos compartidos por todos los paneles del menú. */
|
|
3
|
+
export declare const vunoNavigationMenuCloseInjectionKey: InjectionKey<Set<ReturnType<typeof setTimeout>>>;
|
|
4
|
+
/** Ramas abiertas compartidas por todos los niveles del menú flotante. */
|
|
5
|
+
export declare const vunoNavigationMenuOpenInjectionKey: InjectionKey<Set<string>>;
|
|
6
|
+
/** Ramas fijadas por clic: no se cierran al abandonar el disparador. */
|
|
7
|
+
export declare const vunoNavigationMenuPinnedInjectionKey: InjectionKey<Set<string>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VunoNavigationItem } from '#vuno/types/page';
|
|
2
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
3
|
+
export type VunoNavigationMenuProps = {
|
|
4
|
+
flyout?: boolean;
|
|
5
|
+
items: VunoNavigationItem[];
|
|
6
|
+
level?: number;
|
|
7
|
+
path?: string;
|
|
8
|
+
popup?: boolean;
|
|
9
|
+
ui?: VunoUi<'navigationMenu'>;
|
|
10
|
+
};
|
|
File without changes
|
|
@@ -3,9 +3,10 @@ import { inject, nextTick, onBeforeUnmount, provide, reactive, ref, useId, watch
|
|
|
3
3
|
import { useRoute } from "#imports";
|
|
4
4
|
import { useVunoAnchor } from "#vuno/composables/internal/useVunoAnchor";
|
|
5
5
|
import { useIcons, useTheme } from "#vuno/composables/useTheme";
|
|
6
|
-
import { vunoNavigationMenuCloseInjectionKey, vunoNavigationMenuOpenInjectionKey, vunoNavigationMenuPinnedInjectionKey } from "#vuno/internal/keys";
|
|
7
6
|
import { cn } from "#vuno/utils/theme";
|
|
8
7
|
import Icon from "#vuno/components/Icon/Icon.vue";
|
|
8
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
9
|
+
import { vunoNavigationMenuCloseInjectionKey, vunoNavigationMenuOpenInjectionKey, vunoNavigationMenuPinnedInjectionKey } from "./NavigationMenu.keys";
|
|
9
10
|
defineOptions({ name: "VunoNavigationMenu", inheritAttrs: false });
|
|
10
11
|
const props = defineProps({
|
|
11
12
|
flyout: { type: Boolean, required: false, default: false },
|
|
@@ -165,14 +166,28 @@ onBeforeUnmount(() => {
|
|
|
165
166
|
:name="item.icon"
|
|
166
167
|
/>
|
|
167
168
|
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
<Text
|
|
170
|
+
:class="ui.labelGroup"
|
|
171
|
+
tag="span"
|
|
172
|
+
tone="inherit"
|
|
173
|
+
variant="inherit"
|
|
174
|
+
>
|
|
175
|
+
<Text
|
|
176
|
+
:class="ui.label"
|
|
177
|
+
tag="span"
|
|
178
|
+
tone="inherit"
|
|
179
|
+
variant="inherit"
|
|
180
|
+
>{{ item.label }}</Text
|
|
181
|
+
>
|
|
182
|
+
</Text>
|
|
171
183
|
|
|
172
|
-
<
|
|
184
|
+
<Text
|
|
173
185
|
v-if="item.badge"
|
|
174
186
|
:class="ui.badge"
|
|
175
|
-
|
|
187
|
+
tag="span"
|
|
188
|
+
tone="inherit"
|
|
189
|
+
variant="inherit"
|
|
190
|
+
>{{ item.badge }}</Text
|
|
176
191
|
>
|
|
177
192
|
</NuxtLink>
|
|
178
193
|
|
|
@@ -193,21 +208,38 @@ onBeforeUnmount(() => {
|
|
|
193
208
|
:name="item.icon"
|
|
194
209
|
/>
|
|
195
210
|
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
|
|
211
|
+
<Text
|
|
212
|
+
:class="ui.labelGroup"
|
|
213
|
+
tag="span"
|
|
214
|
+
tone="inherit"
|
|
215
|
+
variant="inherit"
|
|
216
|
+
>
|
|
217
|
+
<Text
|
|
218
|
+
:class="ui.label"
|
|
219
|
+
tag="span"
|
|
220
|
+
tone="inherit"
|
|
221
|
+
variant="inherit"
|
|
222
|
+
>{{ item.label }}</Text
|
|
223
|
+
>
|
|
224
|
+
</Text>
|
|
199
225
|
|
|
200
|
-
<
|
|
226
|
+
<Text
|
|
201
227
|
v-if="item.badge"
|
|
202
228
|
:class="ui.badge"
|
|
203
|
-
|
|
229
|
+
tag="span"
|
|
230
|
+
tone="inherit"
|
|
231
|
+
variant="inherit"
|
|
232
|
+
>{{ item.badge }}</Text
|
|
204
233
|
>
|
|
205
234
|
</template>
|
|
206
235
|
|
|
207
|
-
<
|
|
236
|
+
<Text
|
|
208
237
|
v-if="item.to"
|
|
209
238
|
class="sr-only"
|
|
210
|
-
|
|
239
|
+
tag="span"
|
|
240
|
+
tone="inherit"
|
|
241
|
+
variant="inherit"
|
|
242
|
+
>{{ item.label }}</Text
|
|
211
243
|
>
|
|
212
244
|
|
|
213
245
|
<Icon
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* Navegación horizontal para una barra superior.
|
|
5
|
-
*
|
|
6
|
-
* El primer nivel permanece en la barra y cada rama abre un panel flotante;
|
|
7
|
-
* los niveles siguientes salen como flyouts laterales. No comparte el
|
|
8
|
-
* modelo visual de `VNavigationList`: una lista persistente conserva sus ramas en
|
|
9
|
-
* el flujo, mientras que una barra no puede crecer hacia abajo al abrirse.
|
|
10
|
-
*/
|
|
11
|
-
type Props = {
|
|
12
|
-
/** Interno: los descendientes son paneles laterales. */
|
|
13
|
-
flyout?: boolean;
|
|
14
|
-
items: VunoNavigationItem[];
|
|
15
|
-
/** Interno: profundidad dentro del menú. */
|
|
16
|
-
level?: number;
|
|
17
|
-
/** Interno: ruta estructural que evita colisiones entre rótulos. */
|
|
18
|
-
path?: string;
|
|
19
|
-
/** Interno: primer panel que cae debajo de la barra. */
|
|
20
|
-
popup?: boolean;
|
|
21
|
-
ui?: VunoUi<'navigationMenu'>;
|
|
22
|
-
};
|
|
23
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
1
|
+
import type { VunoNavigationMenuProps } from './NavigationMenu.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoNavigationMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoNavigationMenuProps> & Readonly<{}>, {
|
|
24
3
|
path: string;
|
|
25
|
-
ui: VunoUi<"navigationMenu">;
|
|
4
|
+
ui: import("../../types/slots.js").VunoUi<"navigationMenu">;
|
|
26
5
|
level: number;
|
|
27
6
|
flyout: boolean;
|
|
28
7
|
popup: boolean;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
type Props = {
|
|
4
|
-
items: VunoNavigationTocItem[];
|
|
5
|
-
/** Sustituye el título visible y el nombre accesible de la navegación. */
|
|
6
|
-
label?: string;
|
|
7
|
-
ui?: VunoUi<'navigationToc'>;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
1
|
+
import type { VunoNavigationTocProps } from './NavigationToc.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoNavigationTocProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoNavigationTocProps> & Readonly<{}>, {
|
|
10
3
|
label: string;
|
|
11
|
-
ui: VunoUi<"navigationToc">;
|
|
4
|
+
ui: import("../../types/slots.js").VunoUi<"navigationToc">;
|
|
12
5
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
6
|
declare const _default: typeof __VLS_export;
|
|
14
7
|
export default _default;
|
|
File without changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
3
3
|
import { useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
4
5
|
defineOptions({ name: "VunoNavigationToc" });
|
|
5
6
|
const props = defineProps({
|
|
6
7
|
items: { type: Array, required: true },
|
|
@@ -61,7 +62,13 @@ onBeforeUnmount(() => observer?.disconnect());
|
|
|
61
62
|
:aria-label="title"
|
|
62
63
|
:class="ui.root"
|
|
63
64
|
>
|
|
64
|
-
<
|
|
65
|
+
<Text
|
|
66
|
+
:class="ui.title"
|
|
67
|
+
tag="span"
|
|
68
|
+
tone="inherit"
|
|
69
|
+
variant="inherit"
|
|
70
|
+
>{{ title }}</Text
|
|
71
|
+
>
|
|
65
72
|
|
|
66
73
|
<ul :class="ui.list">
|
|
67
74
|
<li
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
type Props = {
|
|
4
|
-
items: VunoNavigationTocItem[];
|
|
5
|
-
/** Sustituye el título visible y el nombre accesible de la navegación. */
|
|
6
|
-
label?: string;
|
|
7
|
-
ui?: VunoUi<'navigationToc'>;
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
1
|
+
import type { VunoNavigationTocProps } from './NavigationToc.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoNavigationTocProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoNavigationTocProps> & Readonly<{}>, {
|
|
10
3
|
label: string;
|
|
11
|
-
ui: VunoUi<"navigationToc">;
|
|
4
|
+
ui: import("../../types/slots.js").VunoUi<"navigationToc">;
|
|
12
5
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
6
|
declare const _default: typeof __VLS_export;
|
|
14
7
|
export default _default;
|
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* El paginador.
|
|
5
|
-
*
|
|
6
|
-
* Qué números se enseñan y dónde van los saltos lo decide `getPageItems`,
|
|
7
|
-
* que es lógica pura y vive en `utils/` con sus pruebas: es la parte que se
|
|
8
|
-
* equivoca en los extremos y en el caso de pocas páginas, y ahí un test
|
|
9
|
-
* vale más que mirar la pantalla.
|
|
10
|
-
*/
|
|
11
|
-
type Props = {
|
|
12
|
-
page?: number;
|
|
13
|
-
pageSize?: number;
|
|
14
|
-
/** Cuántas páginas se enseñan a cada lado de la actual. */
|
|
15
|
-
siblings?: number;
|
|
16
|
-
size?: VunoSize;
|
|
17
|
-
total?: number;
|
|
18
|
-
ui?: VunoUi<'pagination'>;
|
|
19
|
-
};
|
|
20
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import type { VunoPaginationProps } from './Pagination.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
3
|
"update:page": (page: number) => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<VunoPaginationProps> & Readonly<{
|
|
23
5
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
24
6
|
}>, {
|
|
7
|
+
size: import("./Pagination.types.js").VunoPaginationSize;
|
|
25
8
|
page: number;
|
|
26
|
-
size: VunoSize;
|
|
27
9
|
pageSize: number;
|
|
28
10
|
total: number;
|
|
29
|
-
ui: VunoUi<"pagination">;
|
|
11
|
+
ui: import("../../types/slots.js").VunoUi<"pagination">;
|
|
30
12
|
siblings: number;
|
|
31
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { VunoSize } from '#vuno/types/base';
|
|
2
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
3
|
+
export type VunoPaginationSize = Extract<VunoSize, 'lg' | 'md' | 'sm' | 'xl' | 'xs'>;
|
|
4
|
+
export type VunoPaginationProps = {
|
|
5
|
+
page?: number;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
siblings?: number;
|
|
8
|
+
size?: VunoPaginationSize;
|
|
9
|
+
total?: number;
|
|
10
|
+
ui?: VunoUi<'pagination'>;
|
|
11
|
+
};
|
|
File without changes
|
|
@@ -3,6 +3,7 @@ import { computed } from "vue";
|
|
|
3
3
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import { getPageCount, getPageItems } from "#vuno/utils/pagination";
|
|
5
5
|
import Button from "#vuno/components/Button/Button.vue";
|
|
6
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
6
7
|
defineOptions({ name: "VunoPagination" });
|
|
7
8
|
const props = defineProps({
|
|
8
9
|
page: { type: Number, required: false, default: 1 },
|
|
@@ -77,11 +78,14 @@ function goTo(page) {
|
|
|
77
78
|
«puntos suspensivos» entre dos números no informa de nada, y
|
|
78
79
|
el recorrido a saltos ya se entiende por los números que hay.
|
|
79
80
|
-->
|
|
80
|
-
<
|
|
81
|
+
<Text
|
|
81
82
|
v-if="item === 'gap'"
|
|
82
83
|
aria-hidden="true"
|
|
83
84
|
:class="ui.gap"
|
|
84
|
-
|
|
85
|
+
tag="span"
|
|
86
|
+
tone="inherit"
|
|
87
|
+
variant="inherit"
|
|
88
|
+
>…</Text
|
|
85
89
|
>
|
|
86
90
|
|
|
87
91
|
<!--
|
|
@@ -1,32 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* El paginador.
|
|
5
|
-
*
|
|
6
|
-
* Qué números se enseñan y dónde van los saltos lo decide `getPageItems`,
|
|
7
|
-
* que es lógica pura y vive en `utils/` con sus pruebas: es la parte que se
|
|
8
|
-
* equivoca en los extremos y en el caso de pocas páginas, y ahí un test
|
|
9
|
-
* vale más que mirar la pantalla.
|
|
10
|
-
*/
|
|
11
|
-
type Props = {
|
|
12
|
-
page?: number;
|
|
13
|
-
pageSize?: number;
|
|
14
|
-
/** Cuántas páginas se enseñan a cada lado de la actual. */
|
|
15
|
-
siblings?: number;
|
|
16
|
-
size?: VunoSize;
|
|
17
|
-
total?: number;
|
|
18
|
-
ui?: VunoUi<'pagination'>;
|
|
19
|
-
};
|
|
20
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1
|
+
import type { VunoPaginationProps } from './Pagination.types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<VunoPaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
3
|
"update:page": (page: number) => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<VunoPaginationProps> & Readonly<{
|
|
23
5
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
24
6
|
}>, {
|
|
7
|
+
size: import("./Pagination.types.js").VunoPaginationSize;
|
|
25
8
|
page: number;
|
|
26
|
-
size: VunoSize;
|
|
27
9
|
pageSize: number;
|
|
28
10
|
total: number;
|
|
29
|
-
ui: VunoUi<"pagination">;
|
|
11
|
+
ui: import("../../types/slots.js").VunoUi<"pagination">;
|
|
30
12
|
siblings: number;
|
|
31
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
description?: string;
|
|
5
|
-
dismissible?: boolean;
|
|
6
|
-
position?: 'end' | 'start';
|
|
7
|
-
size?: VunoSlideoverSize;
|
|
8
|
-
title?: string;
|
|
9
|
-
ui?: VunoUi<'slideover'>;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_Props = Props;
|
|
1
|
+
import type { VunoSlideoverProps } from './Slideover.types.js';
|
|
2
|
+
type __VLS_Props = VunoSlideoverProps;
|
|
12
3
|
type __VLS_Slots = {
|
|
13
4
|
body?: () => unknown;
|
|
14
5
|
default?: () => unknown;
|
|
@@ -28,9 +19,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
28
19
|
}>, {
|
|
29
20
|
description: string;
|
|
30
21
|
title: string;
|
|
31
|
-
size: VunoSlideoverSize;
|
|
22
|
+
size: import("./Slideover.types.js").VunoSlideoverSize;
|
|
32
23
|
position: "end" | "start";
|
|
33
|
-
ui: VunoUi<"slideover">;
|
|
24
|
+
ui: import("../../types/slots.js").VunoUi<"slideover">;
|
|
34
25
|
dismissible: boolean;
|
|
35
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { VunoSize } from '#vuno/types/base';
|
|
2
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
3
|
+
/** Anchos que admite un panel lateral, derivados de la escala global. */
|
|
4
|
+
export type VunoSlideoverSize = Extract<VunoSize, 'lg' | 'md' | 'sm' | 'xl'>;
|
|
5
|
+
export type VunoSlideoverProps = {
|
|
6
|
+
description?: string;
|
|
7
|
+
dismissible?: boolean;
|
|
8
|
+
position?: 'end' | 'start';
|
|
9
|
+
size?: VunoSlideoverSize;
|
|
10
|
+
title?: string;
|
|
11
|
+
ui?: VunoUi<'slideover'>;
|
|
12
|
+
};
|
|
File without changes
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
description?: string;
|
|
5
|
-
dismissible?: boolean;
|
|
6
|
-
position?: 'end' | 'start';
|
|
7
|
-
size?: VunoSlideoverSize;
|
|
8
|
-
title?: string;
|
|
9
|
-
ui?: VunoUi<'slideover'>;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_Props = Props;
|
|
1
|
+
import type { VunoSlideoverProps } from './Slideover.types.js';
|
|
2
|
+
type __VLS_Props = VunoSlideoverProps;
|
|
12
3
|
type __VLS_Slots = {
|
|
13
4
|
body?: () => unknown;
|
|
14
5
|
default?: () => unknown;
|
|
@@ -28,9 +19,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
28
19
|
}>, {
|
|
29
20
|
description: string;
|
|
30
21
|
title: string;
|
|
31
|
-
size: VunoSlideoverSize;
|
|
22
|
+
size: import("./Slideover.types.js").VunoSlideoverSize;
|
|
32
23
|
position: "end" | "start";
|
|
33
|
-
ui: VunoUi<"slideover">;
|
|
24
|
+
ui: import("../../types/slots.js").VunoUi<"slideover">;
|
|
34
25
|
dismissible: boolean;
|
|
35
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|