@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groupteknology/vuno",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Formularios, tablas y diálogos declarativos para Nuxt 4, con componentes propios y tokens sobreescribibles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -58,28 +58,28 @@
|
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@floating-ui/dom": "^1.8.0",
|
|
61
|
-
"@iconify-json/lucide": "^1.2.
|
|
61
|
+
"@iconify-json/lucide": "^1.2.136",
|
|
62
62
|
"@nuxt/icon": "^2.5.1",
|
|
63
63
|
"@nuxt/kit": "^4.5.2",
|
|
64
|
+
"@nuxtjs/color-mode": "^4.0.1",
|
|
64
65
|
"@tailwindcss/vite": "^4.3.3",
|
|
65
|
-
"@tanstack/vue-query": "^5.
|
|
66
|
-
"clsx": "^2.1.1",
|
|
66
|
+
"@tanstack/vue-query": "^5.104.0",
|
|
67
67
|
"gsap": "^3.15.0",
|
|
68
|
-
"tailwind-
|
|
68
|
+
"tailwind-variants": "^3.3.1",
|
|
69
69
|
"tailwindcss": "^4.3.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@nuxt/module-builder": "^1.0.3",
|
|
73
73
|
"@nuxt/schema": "^4.5.2",
|
|
74
74
|
"@nuxt/test-utils": "^4.3.2",
|
|
75
|
-
"@types/node": "^26.6.
|
|
75
|
+
"@types/node": "^26.6.3",
|
|
76
76
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
77
|
-
"@vitest/coverage-v8": "^5.0.
|
|
78
|
-
"@vue/test-utils": "^2.5.
|
|
77
|
+
"@vitest/coverage-v8": "^5.0.2",
|
|
78
|
+
"@vue/test-utils": "^2.5.1",
|
|
79
79
|
"happy-dom": "^20.14.5",
|
|
80
80
|
"nuxt": "^4.5.2",
|
|
81
81
|
"typescript": "^6.0.3",
|
|
82
|
-
"vitest": "^5.0.
|
|
82
|
+
"vitest": "^5.0.2",
|
|
83
83
|
"vue": "^3.5.43",
|
|
84
84
|
"vue-tsc": "^3.3.11"
|
|
85
85
|
},
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { VunoHeadingLevel } from '#vuno/types/base';
|
|
2
|
-
import type { VunoBreadcrumbItem } from '#vuno/types/page';
|
|
3
|
-
import type { VunoUi } from '#vuno/types/slots';
|
|
4
|
-
type Props = {
|
|
5
|
-
breadcrumb?: VunoBreadcrumbItem[];
|
|
6
|
-
description?: string;
|
|
7
|
-
/**
|
|
8
|
-
* El nivel del título. `1` por defecto, que es lo correcto cuando
|
|
9
|
-
* esto **es** la pantalla.
|
|
10
|
-
*
|
|
11
|
-
* Se baja cuando no lo es: un `VPage` dentro de otra página deja dos
|
|
12
|
-
* `h1` y un salto en lo que venga debajo, y eso no se ve —se oye, y
|
|
13
|
-
* solo con un lector de pantalla—. El aspecto no cambia: el tamaño y
|
|
14
|
-
* el peso los pone `ui.title`, no la etiqueta.
|
|
15
|
-
*/
|
|
16
|
-
level?: VunoHeadingLevel;
|
|
17
|
-
title: string;
|
|
18
|
-
ui?: VunoUi<'page'>;
|
|
19
|
-
};
|
|
20
|
-
type __VLS_Slots = {
|
|
21
|
-
/** Acciones de la pantalla, a la derecha de la barra superior. */
|
|
22
|
-
actions?: () => unknown;
|
|
23
|
-
default?: () => unknown;
|
|
24
|
-
/** Lo que va antes de la miga de pan: un botón de plegado, por ejemplo. */
|
|
25
|
-
leading?: () => unknown;
|
|
26
|
-
};
|
|
27
|
-
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
28
|
-
description: string;
|
|
29
|
-
breadcrumb: VunoBreadcrumbItem[];
|
|
30
|
-
ui: VunoUi<"page">;
|
|
31
|
-
level: VunoHeadingLevel;
|
|
32
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
-
declare const _default: typeof __VLS_export;
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const pageTheme: Record<"page", {
|
|
2
|
-
/**
|
|
3
|
-
* La barra y el panel los pinta el módulo: los componentes de la gama Pro
|
|
4
|
-
* que había antes solo aportaban dos huecos, y encima había que anularles
|
|
5
|
-
* el relleno porque el ritmo lo pone `body`.
|
|
6
|
-
*/
|
|
7
|
-
readonly slots: {
|
|
8
|
-
readonly body: "flex w-full flex-col gap-7 px-4 py-6 sm:px-6 sm:py-8 lg:p-10";
|
|
9
|
-
readonly breadcrumb: "hidden min-w-0 sm:block";
|
|
10
|
-
readonly breadcrumbCurrent: "truncate text-sm font-semibold text-vuno-strong";
|
|
11
|
-
readonly breadcrumbItem: "flex min-w-0 items-center gap-1.5";
|
|
12
|
-
readonly breadcrumbLink: "truncate rounded-sm text-sm font-medium text-vuno-muted transition-colors [--vuno-accent:var(--color-vuno-primary)] hover:text-vuno-body focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--vuno-accent)";
|
|
13
|
-
readonly breadcrumbList: "flex items-center gap-1.5";
|
|
14
|
-
readonly breadcrumbSeparator: "size-4 shrink-0 text-vuno-subtle";
|
|
15
|
-
readonly description: "max-w-prose text-sm text-vuno-muted";
|
|
16
|
-
readonly heading: "flex flex-col gap-2";
|
|
17
|
-
readonly navbar: "flex h-14 shrink-0 items-center justify-between gap-3 border-b border-vuno-border bg-vuno-surface/90 px-4 backdrop-blur-xl sm:px-6";
|
|
18
|
-
readonly navbarLeft: "flex min-w-0 items-center gap-1";
|
|
19
|
-
readonly navbarRight: "flex shrink-0 items-center gap-2";
|
|
20
|
-
readonly panel: "min-h-0 flex-1 overflow-y-auto";
|
|
21
|
-
readonly root: "flex min-h-0 w-full flex-1 flex-col";
|
|
22
|
-
readonly title: "text-2xl font-bold tracking-tight text-vuno-strong sm:text-3xl";
|
|
23
|
-
};
|
|
24
|
-
readonly variants: {
|
|
25
|
-
readonly mobileNavbar: {
|
|
26
|
-
readonly false: {
|
|
27
|
-
readonly navbar: "hidden sm:flex";
|
|
28
|
-
};
|
|
29
|
-
readonly true: {};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineTheme } from "#vuno/utils/theme";
|
|
2
|
-
export const pageTheme = defineTheme("page", {
|
|
3
|
-
/**
|
|
4
|
-
* La barra y el panel los pinta el módulo: los componentes de la gama Pro
|
|
5
|
-
* que había antes solo aportaban dos huecos, y encima había que anularles
|
|
6
|
-
* el relleno porque el ritmo lo pone `body`.
|
|
7
|
-
*/
|
|
8
|
-
slots: {
|
|
9
|
-
body: "flex w-full flex-col gap-7 px-4 py-6 sm:px-6 sm:py-8 lg:p-10",
|
|
10
|
-
breadcrumb: "hidden min-w-0 sm:block",
|
|
11
|
-
breadcrumbCurrent: "truncate text-sm font-semibold text-vuno-strong",
|
|
12
|
-
breadcrumbItem: "flex min-w-0 items-center gap-1.5",
|
|
13
|
-
breadcrumbLink: "truncate rounded-sm text-sm font-medium text-vuno-muted transition-colors [--vuno-accent:var(--color-vuno-primary)] hover:text-vuno-body focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--vuno-accent)",
|
|
14
|
-
breadcrumbList: "flex items-center gap-1.5",
|
|
15
|
-
breadcrumbSeparator: "size-4 shrink-0 text-vuno-subtle",
|
|
16
|
-
description: "max-w-prose text-sm text-vuno-muted",
|
|
17
|
-
heading: "flex flex-col gap-2",
|
|
18
|
-
navbar: "flex h-14 shrink-0 items-center justify-between gap-3 border-b border-vuno-border bg-vuno-surface/90 px-4 backdrop-blur-xl sm:px-6",
|
|
19
|
-
navbarLeft: "flex min-w-0 items-center gap-1",
|
|
20
|
-
navbarRight: "flex shrink-0 items-center gap-2",
|
|
21
|
-
panel: "min-h-0 flex-1 overflow-y-auto",
|
|
22
|
-
root: "flex min-h-0 w-full flex-1 flex-col",
|
|
23
|
-
title: "text-2xl font-bold tracking-tight text-vuno-strong sm:text-3xl"
|
|
24
|
-
},
|
|
25
|
-
variants: {
|
|
26
|
-
mobileNavbar: {
|
|
27
|
-
false: { navbar: "hidden sm:flex" },
|
|
28
|
-
true: {}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { computed } from "vue";
|
|
3
|
-
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
4
|
-
import { filled } from "#vuno/internal/slots";
|
|
5
|
-
import Icon from "#vuno/components/Icon/Icon.vue";
|
|
6
|
-
defineOptions({ name: "VunoPage" });
|
|
7
|
-
const props = defineProps({
|
|
8
|
-
breadcrumb: { type: Array, required: false, default: void 0 },
|
|
9
|
-
description: { type: String, required: false, default: void 0 },
|
|
10
|
-
level: { type: Number, required: false, default: 1 },
|
|
11
|
-
title: { type: String, required: true },
|
|
12
|
-
ui: { type: Object, required: false, default: void 0 }
|
|
13
|
-
});
|
|
14
|
-
const slots = defineSlots();
|
|
15
|
-
const icons = useIcons();
|
|
16
|
-
const messages = useMessages();
|
|
17
|
-
const hasMobileNavbar = computed(() => filled(slots.actions) || filled(slots.leading));
|
|
18
|
-
const ui = useTheme(
|
|
19
|
-
"page",
|
|
20
|
-
() => props.ui,
|
|
21
|
-
() => ({ mobileNavbar: String(hasMobileNavbar.value) })
|
|
22
|
-
);
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<template>
|
|
26
|
-
<!--
|
|
27
|
-
El panel y la barra son dos `div` y no los de la gama Pro de Nuxt UI.
|
|
28
|
-
De aquellos solo se usaban cuatro huecos, y encima había que anularle el
|
|
29
|
-
relleno al panel porque el ritmo lo pone el cuerpo: lo que traían de
|
|
30
|
-
verdad —redimensionar, plegar, recordar el tamaño— no se usaba.
|
|
31
|
-
|
|
32
|
-
Se gana además quitarse una dependencia que no se veía: el panel de
|
|
33
|
-
Nuxt UI está pensado para vivir dentro de su grupo, así que `VPage`
|
|
34
|
-
solo se comportaba bien si el proyecto montaba ese armazón. Ahora
|
|
35
|
-
funciona en cualquier sitio.
|
|
36
|
-
-->
|
|
37
|
-
<div :class="ui.root">
|
|
38
|
-
<div :class="ui.navbar">
|
|
39
|
-
<!--
|
|
40
|
-
La miga ocupa la zona izquierda entera y no un hueco de título:
|
|
41
|
-
el título de una barra vive dentro de un `<h1>`, y una miga ahí
|
|
42
|
-
sería un `<nav>` dentro de un encabezado.
|
|
43
|
-
-->
|
|
44
|
-
<div :class="ui.navbarLeft">
|
|
45
|
-
<slot name="leading" />
|
|
46
|
-
|
|
47
|
-
<nav
|
|
48
|
-
v-if="props.breadcrumb?.length"
|
|
49
|
-
:aria-label="messages.breadcrumb"
|
|
50
|
-
:class="ui.breadcrumb"
|
|
51
|
-
>
|
|
52
|
-
<ol :class="ui.breadcrumbList">
|
|
53
|
-
<li
|
|
54
|
-
v-for="(item, index) in props.breadcrumb"
|
|
55
|
-
:key="`${item.label ?? item.to ?? index}`"
|
|
56
|
-
:class="ui.breadcrumbItem"
|
|
57
|
-
>
|
|
58
|
-
<!--
|
|
59
|
-
El separador va dentro del elemento al que
|
|
60
|
-
precede y no como elemento propio: no es un
|
|
61
|
-
sitio al que ir, y como `<li>` suelto haría que
|
|
62
|
-
un lector anunciara el doble de elementos de los
|
|
63
|
-
que hay. Decorativo, así que no se lee.
|
|
64
|
-
-->
|
|
65
|
-
<Icon
|
|
66
|
-
v-if="index > 0"
|
|
67
|
-
aria-hidden="true"
|
|
68
|
-
:class="ui.breadcrumbSeparator"
|
|
69
|
-
:name="icons.breadcrumbSeparator"
|
|
70
|
-
/>
|
|
71
|
-
|
|
72
|
-
<!--
|
|
73
|
-
El último no enlaza a donde ya estás, y lo dice:
|
|
74
|
-
`aria-current` es lo que distingue el sitio en el
|
|
75
|
-
que uno está de los que lo llevaron hasta aquí.
|
|
76
|
-
-->
|
|
77
|
-
<span
|
|
78
|
-
v-if="index === props.breadcrumb.length - 1"
|
|
79
|
-
aria-current="page"
|
|
80
|
-
:class="ui.breadcrumbCurrent"
|
|
81
|
-
>
|
|
82
|
-
{{ item.label }}
|
|
83
|
-
</span>
|
|
84
|
-
|
|
85
|
-
<NuxtLink
|
|
86
|
-
v-else-if="item.to"
|
|
87
|
-
:class="ui.breadcrumbLink"
|
|
88
|
-
:to="item.to"
|
|
89
|
-
>
|
|
90
|
-
{{ item.label }}
|
|
91
|
-
</NuxtLink>
|
|
92
|
-
|
|
93
|
-
<span
|
|
94
|
-
v-else
|
|
95
|
-
:class="ui.breadcrumbLink"
|
|
96
|
-
>
|
|
97
|
-
{{ item.label }}
|
|
98
|
-
</span>
|
|
99
|
-
</li>
|
|
100
|
-
</ol>
|
|
101
|
-
</nav>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<div :class="ui.navbarRight">
|
|
105
|
-
<slot name="actions" />
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
|
|
109
|
-
<div :class="ui.panel">
|
|
110
|
-
<div :class="ui.body">
|
|
111
|
-
<!-- Un `<div>` y no un `<header>`: un `<header>` suelto es un
|
|
112
|
-
landmark `banner`, y solo puede haber uno por página. -->
|
|
113
|
-
<div :class="ui.heading">
|
|
114
|
-
<component
|
|
115
|
-
:is="`h${props.level}`"
|
|
116
|
-
:class="ui.title"
|
|
117
|
-
>{{ props.title }}</component
|
|
118
|
-
>
|
|
119
|
-
|
|
120
|
-
<p
|
|
121
|
-
v-if="props.description"
|
|
122
|
-
:class="ui.description"
|
|
123
|
-
>
|
|
124
|
-
{{ props.description }}
|
|
125
|
-
</p>
|
|
126
|
-
</div>
|
|
127
|
-
|
|
128
|
-
<slot />
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</template>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { VunoHeadingLevel } from '#vuno/types/base';
|
|
2
|
-
import type { VunoBreadcrumbItem } from '#vuno/types/page';
|
|
3
|
-
import type { VunoUi } from '#vuno/types/slots';
|
|
4
|
-
type Props = {
|
|
5
|
-
breadcrumb?: VunoBreadcrumbItem[];
|
|
6
|
-
description?: string;
|
|
7
|
-
/**
|
|
8
|
-
* El nivel del título. `1` por defecto, que es lo correcto cuando
|
|
9
|
-
* esto **es** la pantalla.
|
|
10
|
-
*
|
|
11
|
-
* Se baja cuando no lo es: un `VPage` dentro de otra página deja dos
|
|
12
|
-
* `h1` y un salto en lo que venga debajo, y eso no se ve —se oye, y
|
|
13
|
-
* solo con un lector de pantalla—. El aspecto no cambia: el tamaño y
|
|
14
|
-
* el peso los pone `ui.title`, no la etiqueta.
|
|
15
|
-
*/
|
|
16
|
-
level?: VunoHeadingLevel;
|
|
17
|
-
title: string;
|
|
18
|
-
ui?: VunoUi<'page'>;
|
|
19
|
-
};
|
|
20
|
-
type __VLS_Slots = {
|
|
21
|
-
/** Acciones de la pantalla, a la derecha de la barra superior. */
|
|
22
|
-
actions?: () => unknown;
|
|
23
|
-
default?: () => unknown;
|
|
24
|
-
/** Lo que va antes de la miga de pan: un botón de plegado, por ejemplo. */
|
|
25
|
-
leading?: () => unknown;
|
|
26
|
-
};
|
|
27
|
-
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
28
|
-
description: string;
|
|
29
|
-
breadcrumb: VunoBreadcrumbItem[];
|
|
30
|
-
ui: VunoUi<"page">;
|
|
31
|
-
level: VunoHeadingLevel;
|
|
32
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
-
declare const _default: typeof __VLS_export;
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { InjectionKey } from 'vue';
|
|
2
|
-
import type { VunoContext } from '#vuno/types/app';
|
|
3
|
-
import type { VunoFormContext } from '#vuno/types/form';
|
|
4
|
-
/**
|
|
5
|
-
* Las claves de inyección del módulo.
|
|
6
|
-
*
|
|
7
|
-
* Viven aquí y no en `composables/` porque `addImportsDir` escanea **exports**:
|
|
8
|
-
* una constante exportada desde ahí acaba en el espacio global de todo proyecto
|
|
9
|
-
* que instale vuno, y `vunoContextInjectionKey` lo estaba. Nadie la escribe —el
|
|
10
|
-
* módulo la usa por ruta— así que ser global no le aportaba nada y sí ocupaba un
|
|
11
|
-
* nombre ajeno para siempre.
|
|
12
|
-
*
|
|
13
|
-
* Y no en `types/` porque son **valores**, no tipos: un `Symbol` en la carpeta de
|
|
14
|
-
* los tipos es de esas cosas que confunden al siguiente que abra el árbol.
|
|
15
|
-
*/
|
|
16
|
-
export declare const vunoContextInjectionKey: InjectionKey<VunoContext>;
|
|
17
|
-
/** Si el modal pertenece a la pila global pero ya no es el que está arriba. */
|
|
18
|
-
export declare const vunoOverlayBehindInjectionKey: InjectionKey<() => boolean>;
|
|
19
|
-
export declare const vunoFormInjectionKey: InjectionKey<VunoFormContext>;
|
|
20
|
-
/**
|
|
21
|
-
* Las ramas abiertas de una navegación anidada.
|
|
22
|
-
*
|
|
23
|
-
* El componente se recursa, así que el estado tiene que vivir en la instancia de
|
|
24
|
-
* fuera y heredarse: un `Set` por nivel dejaría cada uno abriéndose por su
|
|
25
|
-
* cuenta. La de fuera se reconoce por no encontrar nada inyectado.
|
|
26
|
-
*/
|
|
27
|
-
export declare const vunoNavigationListInjectionKey: InjectionKey<Set<string>>;
|
|
28
|
-
/** Cierres diferidos compartidos por todos los paneles de un navbar. */
|
|
29
|
-
export declare const vunoNavigationMenuCloseInjectionKey: InjectionKey<Set<ReturnType<typeof setTimeout>>>;
|
|
30
|
-
/** Ramas abiertas compartidas por todos los niveles del menú flotante. */
|
|
31
|
-
export declare const vunoNavigationMenuOpenInjectionKey: InjectionKey<Set<string>>;
|
|
32
|
-
/** Ramas fijadas por clic: no se cierran al abandonar el disparador. */
|
|
33
|
-
export declare const vunoNavigationMenuPinnedInjectionKey: InjectionKey<Set<string>>;
|
|
34
|
-
/**
|
|
35
|
-
* La dirección de lectura, que la provee `VApp`.
|
|
36
|
-
*
|
|
37
|
-
* Importa en un sitio muy concreto y nada evidente: **las flechas de una lista
|
|
38
|
-
* de pestañas**. En árabe,
|
|
39
|
-
* la flecha derecha va a la pestaña anterior, no a la siguiente, y quien no lee
|
|
40
|
-
* en árabe no lo descubre probando. El CSS del módulo no la necesita porque usa
|
|
41
|
-
* propiedades lógicas.
|
|
42
|
-
*/
|
|
43
|
-
export declare const vunoDirectionInjectionKey: InjectionKey<() => 'ltr' | 'rtl'>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export const vunoContextInjectionKey = Symbol("vuno-context");
|
|
2
|
-
export const vunoOverlayBehindInjectionKey = Symbol("vuno-overlay-behind");
|
|
3
|
-
export const vunoFormInjectionKey = Symbol("vuno-form");
|
|
4
|
-
export const vunoNavigationListInjectionKey = Symbol("vuno-navigation-list");
|
|
5
|
-
export const vunoNavigationMenuCloseInjectionKey = Symbol("vuno-navigation-menu-close");
|
|
6
|
-
export const vunoNavigationMenuOpenInjectionKey = Symbol("vuno-navigation-menu-open");
|
|
7
|
-
export const vunoNavigationMenuPinnedInjectionKey = Symbol("vuno-navigation-menu-pinned");
|
|
8
|
-
export const vunoDirectionInjectionKey = Symbol("vuno-direction");
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { VunoColor } from './base.js';
|
|
2
|
-
import type { VunoUi } from './slots.js';
|
|
3
|
-
/** Propiedades del aviso persistente que se integra en el contenido. */
|
|
4
|
-
export type VunoAlertProps = {
|
|
5
|
-
color?: VunoColor;
|
|
6
|
-
description?: string;
|
|
7
|
-
/** `null` oculta el icono semántico que Vuno elige por defecto. */
|
|
8
|
-
icon?: null | string;
|
|
9
|
-
/** `status` identifica un estado no urgente; `alert` se reserva para lo urgente. */
|
|
10
|
-
role?: 'alert' | 'status';
|
|
11
|
-
title: string;
|
|
12
|
-
ui?: VunoUi<'alert'>;
|
|
13
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { VunoUi } from './slots.js';
|
|
2
|
-
import type { VunoTableFailure } from './table.js';
|
|
3
|
-
/** El estado vacío: lo que hay que decir cuando todavía no hay nada. */
|
|
4
|
-
export type VunoStateEmptyProps = {
|
|
5
|
-
/** La pista de debajo del título. Sin ella, `messages.emptyHint`. */
|
|
6
|
-
hint?: string;
|
|
7
|
-
/** El icono. Sin él, `icons.empty`. */
|
|
8
|
-
icon?: string;
|
|
9
|
-
/** El título. Sin él, `messages.emptyTable`. */
|
|
10
|
-
title?: string;
|
|
11
|
-
/** `'empty'` o nada: es el que sale por defecto. */
|
|
12
|
-
tone?: 'empty';
|
|
13
|
-
ui?: VunoUi<'state'>;
|
|
14
|
-
};
|
|
15
|
-
/** El estado de fallo, que no existe sin el objeto que trae el reintento. */
|
|
16
|
-
export type VunoStateFailureProps = {
|
|
17
|
-
/** El fallo con su reintento dentro: no hay forma de pintarlo sin salida. */
|
|
18
|
-
failure: VunoTableFailure;
|
|
19
|
-
tone: 'failure';
|
|
20
|
-
ui?: VunoUi<'state'>;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Lo que se pinta donde debería haber contenido y no lo hay.
|
|
24
|
-
*
|
|
25
|
-
* **Es una unión discriminada y no un objeto con todo opcional**, y ahí está
|
|
26
|
-
* metida una regla de producto que antes la sostenían dos componentes
|
|
27
|
-
* separados: vacío y fallido no son lo mismo. Un fallo se pinta con su salida
|
|
28
|
-
* dentro —`VunoTableFailure` lleva el `retry`—, así que `tone: 'failure'`
|
|
29
|
-
* **exige** ese objeto y no hay manera de escribir un error sin reintento sin
|
|
30
|
-
* que el typecheck lo diga en la plantilla.
|
|
31
|
-
*
|
|
32
|
-
* Con `tone` opcional en la otra mitad, `<VState />` a secas sigue siendo el
|
|
33
|
-
* estado vacío, que es el caso que más se escribe.
|
|
34
|
-
*/
|
|
35
|
-
export type VunoStateProps = VunoStateEmptyProps | VunoStateFailureProps;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/runtime/app/components/{internal → FormField/internal}/FieldShell/FieldShell.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|