@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
|
File without changes
|
|
@@ -3,8 +3,8 @@ import { ref } from "vue";
|
|
|
3
3
|
import { useField } from "#vuno/composables/useField";
|
|
4
4
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
5
5
|
import Button from "#vuno/components/Button/Button.vue";
|
|
6
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
7
|
-
import
|
|
6
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
7
|
+
import PrimitiveInput from "#vuno/primitives/PrimitiveInput/PrimitiveInput.vue";
|
|
8
8
|
defineOptions({ name: "VunoFieldPassword" });
|
|
9
9
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
10
10
|
const props = defineProps({
|
|
@@ -34,7 +34,7 @@ const isVisible = ref(false);
|
|
|
34
34
|
<template>
|
|
35
35
|
<FieldShell v-bind="props">
|
|
36
36
|
<template #default="control">
|
|
37
|
-
<
|
|
37
|
+
<PrimitiveInput
|
|
38
38
|
v-bind="control"
|
|
39
39
|
v-model="value"
|
|
40
40
|
:autocomplete="props.autocomplete ?? 'current-password'"
|
|
@@ -56,7 +56,7 @@ const isVisible = ref(false);
|
|
|
56
56
|
@click="isVisible = !isVisible"
|
|
57
57
|
/>
|
|
58
58
|
</template>
|
|
59
|
-
</
|
|
59
|
+
</PrimitiveInput>
|
|
60
60
|
</template>
|
|
61
61
|
</FieldShell>
|
|
62
62
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldPasswordProps } from './FieldPassword.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldPasswordProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string | undefined;
|
|
5
5
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { VunoFieldOptionValue
|
|
2
|
-
type
|
|
1
|
+
import type { VunoFieldOptionValue } from '#vuno/types/field';
|
|
2
|
+
import type { VunoFieldRadioProps } from './FieldRadio.types.js';
|
|
3
|
+
type __VLS_Props = VunoFieldRadioProps;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
modelValue?: undefined | VunoFieldOptionValue;
|
|
5
6
|
};
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import RadioGroup from "#vuno/components/FieldRadio/internal/RadioGroup/RadioGroup.vue";
|
|
5
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldRadio" });
|
|
7
7
|
const model = defineModel({ type: [Boolean, null, Number, String], skipCheck: true, ...{ default: void 0 } });
|
|
8
8
|
const props = defineProps({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { VunoFieldOptionValue
|
|
2
|
-
type
|
|
1
|
+
import type { VunoFieldOptionValue } from '#vuno/types/field';
|
|
2
|
+
import type { VunoFieldRadioProps } from './FieldRadio.types.js';
|
|
3
|
+
type __VLS_Props = VunoFieldRadioProps;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
modelValue?: undefined | VunoFieldOptionValue;
|
|
5
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VunoColor
|
|
2
|
-
import type { VunoControlOrientation, VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
1
|
+
import type { VunoColor } from '#vuno/types/base';
|
|
2
|
+
import type { VunoControlOrientation, VunoFieldOption, VunoFieldOptionValue, VunoFieldSize } from '#vuno/types/field';
|
|
3
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
4
4
|
type __VLS_Props = Props;
|
|
5
5
|
type Props = {
|
|
@@ -10,7 +10,7 @@ type Props = {
|
|
|
10
10
|
items: VunoFieldOption[];
|
|
11
11
|
orientation?: VunoControlOrientation;
|
|
12
12
|
required?: boolean;
|
|
13
|
-
size?:
|
|
13
|
+
size?: VunoFieldSize;
|
|
14
14
|
ui?: VunoUi<'fieldRadio' | 'radioGroup'>;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_ModelProps = {
|
|
@@ -23,7 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
color: VunoColor;
|
|
26
|
-
size:
|
|
26
|
+
size: VunoFieldSize;
|
|
27
27
|
orientation: VunoControlOrientation;
|
|
28
28
|
name: string;
|
|
29
29
|
ui: VunoUi<"fieldRadio" | "radioGroup">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, useId } from "vue";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
4
5
|
defineOptions({ name: "VunoRadioGroup", inheritAttrs: false });
|
|
5
6
|
const model = defineModel({ type: [Boolean, null, Number, String], skipCheck: true, ...{ default: void 0 } });
|
|
6
7
|
const props = defineProps({
|
|
@@ -67,13 +68,16 @@ function onChange(option) {
|
|
|
67
68
|
>{{ item.label }}</label
|
|
68
69
|
>
|
|
69
70
|
|
|
70
|
-
<
|
|
71
|
+
<Text
|
|
71
72
|
v-if="item.description"
|
|
72
73
|
:id="descriptionId(index)"
|
|
73
74
|
:class="ui.description"
|
|
75
|
+
tag="p"
|
|
76
|
+
tone="inherit"
|
|
77
|
+
variant="inherit"
|
|
74
78
|
>
|
|
75
79
|
{{ item.description }}
|
|
76
|
-
</
|
|
80
|
+
</Text>
|
|
77
81
|
</div>
|
|
78
82
|
</div>
|
|
79
83
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VunoColor
|
|
2
|
-
import type { VunoControlOrientation, VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
1
|
+
import type { VunoColor } from '#vuno/types/base';
|
|
2
|
+
import type { VunoControlOrientation, VunoFieldOption, VunoFieldOptionValue, VunoFieldSize } from '#vuno/types/field';
|
|
3
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
4
4
|
type __VLS_Props = Props;
|
|
5
5
|
type Props = {
|
|
@@ -10,7 +10,7 @@ type Props = {
|
|
|
10
10
|
items: VunoFieldOption[];
|
|
11
11
|
orientation?: VunoControlOrientation;
|
|
12
12
|
required?: boolean;
|
|
13
|
-
size?:
|
|
13
|
+
size?: VunoFieldSize;
|
|
14
14
|
ui?: VunoUi<'fieldRadio' | 'radioGroup'>;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_ModelProps = {
|
|
@@ -23,7 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
color: VunoColor;
|
|
26
|
-
size:
|
|
26
|
+
size: VunoFieldSize;
|
|
27
27
|
orientation: VunoControlOrientation;
|
|
28
28
|
name: string;
|
|
29
29
|
ui: VunoUi<"fieldRadio" | "radioGroup">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
3
|
-
/** Permite que composiciones como
|
|
1
|
+
import type { VunoFieldSearchProps } from './FieldSearch.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldSearchProps;
|
|
3
|
+
/** Permite que composiciones como VDataTable devuelvan el foco al buscador. */
|
|
4
4
|
declare function focus(): void;
|
|
5
5
|
type __VLS_ModelProps = {
|
|
6
6
|
modelValue?: string | undefined;
|
|
File without changes
|
|
@@ -3,8 +3,8 @@ import { useTemplateRef } from "vue";
|
|
|
3
3
|
import { useField } from "#vuno/composables/useField";
|
|
4
4
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
5
5
|
import Button from "#vuno/components/Button/Button.vue";
|
|
6
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
7
|
-
import
|
|
6
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
7
|
+
import PrimitiveInput from "#vuno/primitives/PrimitiveInput/PrimitiveInput.vue";
|
|
8
8
|
defineOptions({ name: "VunoFieldSearch" });
|
|
9
9
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
10
10
|
const props = defineProps({
|
|
@@ -42,7 +42,7 @@ defineExpose({ focus });
|
|
|
42
42
|
<template>
|
|
43
43
|
<FieldShell v-bind="props">
|
|
44
44
|
<template #default="control">
|
|
45
|
-
<
|
|
45
|
+
<PrimitiveInput
|
|
46
46
|
v-bind="control"
|
|
47
47
|
ref="input"
|
|
48
48
|
v-model="value"
|
|
@@ -68,7 +68,7 @@ defineExpose({ focus });
|
|
|
68
68
|
@click="clear"
|
|
69
69
|
/>
|
|
70
70
|
</template>
|
|
71
|
-
</
|
|
71
|
+
</PrimitiveInput>
|
|
72
72
|
</template>
|
|
73
73
|
</FieldShell>
|
|
74
74
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
3
|
-
/** Permite que composiciones como
|
|
1
|
+
import type { VunoFieldSearchProps } from './FieldSearch.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldSearchProps;
|
|
3
|
+
/** Permite que composiciones como VDataTable devuelvan el foco al buscador. */
|
|
4
4
|
declare function focus(): void;
|
|
5
5
|
type __VLS_ModelProps = {
|
|
6
6
|
modelValue?: string | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { VunoFieldOptionValue
|
|
2
|
-
type
|
|
1
|
+
import type { VunoFieldOptionValue } from '#vuno/types/field';
|
|
2
|
+
import type { VunoFieldSelectProps } from './FieldSelect.types.js';
|
|
3
|
+
type __VLS_Props = VunoFieldSelectProps;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
modelValue?: undefined | VunoFieldOptionValue | VunoFieldOptionValue[];
|
|
5
6
|
};
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import Select from "#vuno/components/FieldSelect/internal/Select/Select.vue";
|
|
5
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldSelect" });
|
|
7
7
|
const model = defineModel({ type: [Boolean, null, Number, String, Array], skipCheck: true, ...{ default: void 0 } });
|
|
8
8
|
const props = defineProps({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { VunoFieldOptionValue
|
|
2
|
-
type
|
|
1
|
+
import type { VunoFieldOptionValue } from '#vuno/types/field';
|
|
2
|
+
import type { VunoFieldSelectProps } from './FieldSelect.types.js';
|
|
3
|
+
type __VLS_Props = VunoFieldSelectProps;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
modelValue?: undefined | VunoFieldOptionValue | VunoFieldOptionValue[];
|
|
5
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import type { VunoPortalTarget, VunoRadius
|
|
3
|
-
import type { VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
2
|
+
import type { VunoPortalTarget, VunoRadius } from '#vuno/types/base';
|
|
3
|
+
import type { VunoFieldOption, VunoFieldOptionValue, VunoFieldSize } from '#vuno/types/field';
|
|
4
4
|
import type { VunoUi } from '#vuno/types/slots';
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
name: {
|
|
@@ -33,7 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
33
33
|
searchable: BooleanConstructor;
|
|
34
34
|
size: {
|
|
35
35
|
default: undefined;
|
|
36
|
-
type: PropType<
|
|
36
|
+
type: PropType<VunoFieldSize>;
|
|
37
37
|
};
|
|
38
38
|
ui: {
|
|
39
39
|
default: undefined;
|
|
@@ -72,7 +72,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
72
72
|
searchable: BooleanConstructor;
|
|
73
73
|
size: {
|
|
74
74
|
default: undefined;
|
|
75
|
-
type: PropType<
|
|
75
|
+
type: PropType<VunoFieldSize>;
|
|
76
76
|
};
|
|
77
77
|
ui: {
|
|
78
78
|
default: undefined;
|
|
@@ -82,12 +82,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
82
82
|
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any) | undefined;
|
|
83
83
|
}>, {
|
|
84
84
|
radius: VunoRadius;
|
|
85
|
-
size:
|
|
85
|
+
size: VunoFieldSize;
|
|
86
86
|
name: string;
|
|
87
87
|
required: boolean;
|
|
88
|
-
ui: Partial<Record<"root" | ("input" | "
|
|
89
|
-
disabled: boolean;
|
|
88
|
+
ui: Partial<Record<"root" | ("input" | "content" | "item" | "empty" | "itemIcon" | "itemIndicator" | "trigger" | "triggerIcon"), string | string[] | undefined>>;
|
|
90
89
|
modelValue: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined;
|
|
90
|
+
disabled: boolean;
|
|
91
91
|
placeholder: string;
|
|
92
92
|
multiple: boolean;
|
|
93
93
|
portal: VunoPortalTarget;
|
|
@@ -7,7 +7,8 @@ import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
|
7
7
|
import { toOptionKey } from "#vuno/components/FieldSelect/internal/Select/option";
|
|
8
8
|
import { useVunoSelectState } from "#vuno/components/FieldSelect/internal/Select/useVunoSelectState";
|
|
9
9
|
import Icon from "#vuno/components/Icon/Icon.vue";
|
|
10
|
-
import
|
|
10
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
11
|
+
import PrimitiveControl from "#vuno/primitives/PrimitiveControl/PrimitiveControl.vue";
|
|
11
12
|
defineOptions({ name: "VunoSelect", inheritAttrs: false });
|
|
12
13
|
const props = defineProps({
|
|
13
14
|
name: { default: void 0, type: String },
|
|
@@ -101,7 +102,7 @@ onBeforeUnmount(() => {
|
|
|
101
102
|
</script>
|
|
102
103
|
|
|
103
104
|
<template>
|
|
104
|
-
<
|
|
105
|
+
<PrimitiveControl
|
|
105
106
|
ref="control"
|
|
106
107
|
:radius="props.radius"
|
|
107
108
|
:size="fieldSize"
|
|
@@ -145,7 +146,7 @@ onBeforeUnmount(() => {
|
|
|
145
146
|
/>
|
|
146
147
|
</button>
|
|
147
148
|
</template>
|
|
148
|
-
</
|
|
149
|
+
</PrimitiveControl>
|
|
149
150
|
|
|
150
151
|
<Teleport
|
|
151
152
|
v-if="mounted"
|
|
@@ -179,17 +180,26 @@ onBeforeUnmount(() => {
|
|
|
179
180
|
@click="choose(item)"
|
|
180
181
|
@pointermove="item.disabled ? void 0 : highlighted = index"
|
|
181
182
|
>
|
|
182
|
-
<
|
|
183
|
+
<Text
|
|
184
|
+
class="truncate"
|
|
185
|
+
tag="span"
|
|
186
|
+
tone="inherit"
|
|
187
|
+
variant="inherit"
|
|
188
|
+
>{{ item.label }}</Text
|
|
189
|
+
>
|
|
183
190
|
|
|
184
|
-
<
|
|
191
|
+
<Text
|
|
185
192
|
v-if="isSelected(item)"
|
|
186
193
|
:class="ui.itemIndicator"
|
|
194
|
+
tag="span"
|
|
195
|
+
tone="inherit"
|
|
196
|
+
variant="inherit"
|
|
187
197
|
>
|
|
188
198
|
<Icon
|
|
189
199
|
:class="ui.itemIcon"
|
|
190
200
|
:name="icons.selectSelected"
|
|
191
201
|
/>
|
|
192
|
-
</
|
|
202
|
+
</Text>
|
|
193
203
|
</li>
|
|
194
204
|
</ul>
|
|
195
205
|
</Teleport>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import type { VunoPortalTarget, VunoRadius
|
|
3
|
-
import type { VunoFieldOption, VunoFieldOptionValue } from '#vuno/types/field';
|
|
2
|
+
import type { VunoPortalTarget, VunoRadius } from '#vuno/types/base';
|
|
3
|
+
import type { VunoFieldOption, VunoFieldOptionValue, VunoFieldSize } from '#vuno/types/field';
|
|
4
4
|
import type { VunoUi } from '#vuno/types/slots';
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
name: {
|
|
@@ -33,7 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
33
33
|
searchable: BooleanConstructor;
|
|
34
34
|
size: {
|
|
35
35
|
default: undefined;
|
|
36
|
-
type: PropType<
|
|
36
|
+
type: PropType<VunoFieldSize>;
|
|
37
37
|
};
|
|
38
38
|
ui: {
|
|
39
39
|
default: undefined;
|
|
@@ -72,7 +72,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
72
72
|
searchable: BooleanConstructor;
|
|
73
73
|
size: {
|
|
74
74
|
default: undefined;
|
|
75
|
-
type: PropType<
|
|
75
|
+
type: PropType<VunoFieldSize>;
|
|
76
76
|
};
|
|
77
77
|
ui: {
|
|
78
78
|
default: undefined;
|
|
@@ -82,12 +82,12 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
82
82
|
"onUpdate:modelValue"?: ((value: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined) => any) | undefined;
|
|
83
83
|
}>, {
|
|
84
84
|
radius: VunoRadius;
|
|
85
|
-
size:
|
|
85
|
+
size: VunoFieldSize;
|
|
86
86
|
name: string;
|
|
87
87
|
required: boolean;
|
|
88
|
-
ui: Partial<Record<"root" | ("input" | "
|
|
89
|
-
disabled: boolean;
|
|
88
|
+
ui: Partial<Record<"root" | ("input" | "content" | "item" | "empty" | "itemIcon" | "itemIndicator" | "trigger" | "triggerIcon"), string | string[] | undefined>>;
|
|
90
89
|
modelValue: VunoFieldOptionValue | VunoFieldOptionValue[] | undefined;
|
|
90
|
+
disabled: boolean;
|
|
91
91
|
placeholder: string;
|
|
92
92
|
multiple: boolean;
|
|
93
93
|
portal: VunoPortalTarget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldSlugProps } from './FieldSlug.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldSlugProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string | undefined;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -5,8 +5,8 @@ import { useForm } from "#vuno/composables/useForm";
|
|
|
5
5
|
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
6
6
|
import { formatSlug } from "#vuno/utils/format";
|
|
7
7
|
import Button from "#vuno/components/Button/Button.vue";
|
|
8
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
9
|
-
import
|
|
8
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
9
|
+
import PrimitiveInput from "#vuno/primitives/PrimitiveInput/PrimitiveInput.vue";
|
|
10
10
|
defineOptions({ name: "VunoFieldSlug" });
|
|
11
11
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
12
12
|
const props = defineProps({
|
|
@@ -83,7 +83,7 @@ watch(
|
|
|
83
83
|
-->
|
|
84
84
|
<FieldShell v-bind="props">
|
|
85
85
|
<template #default="control">
|
|
86
|
-
<
|
|
86
|
+
<PrimitiveInput
|
|
87
87
|
v-bind="control"
|
|
88
88
|
ref="input"
|
|
89
89
|
:disabled="props.disabled"
|
|
@@ -107,7 +107,7 @@ watch(
|
|
|
107
107
|
@mousedown.prevent
|
|
108
108
|
/>
|
|
109
109
|
</template>
|
|
110
|
-
</
|
|
110
|
+
</PrimitiveInput>
|
|
111
111
|
</template>
|
|
112
112
|
</FieldShell>
|
|
113
113
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldSlugProps } from './FieldSlug.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldSlugProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string | undefined;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldSwitchProps } from './FieldSwitch.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldSwitchProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import Switch from "#vuno/components/FieldSwitch/internal/Switch/Switch.vue";
|
|
5
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldSwitch" });
|
|
7
7
|
const model = defineModel({ type: Boolean });
|
|
8
8
|
const props = defineProps({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldSwitchProps } from './FieldSwitch.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldSwitchProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
5
5
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { VunoColor, VunoRadius
|
|
1
|
+
import type { VunoColor, VunoRadius } from '#vuno/types/base';
|
|
2
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
4
|
type __VLS_Props = Props;
|
|
4
5
|
type Props = {
|
|
5
6
|
color?: VunoColor;
|
|
6
7
|
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
7
8
|
radius?: VunoRadius;
|
|
8
|
-
size?:
|
|
9
|
+
size?: VunoFieldSize;
|
|
9
10
|
ui?: VunoUi<'fieldSwitch' | 'switch'>;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_ModelProps = {
|
|
@@ -19,7 +20,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
19
20
|
}>, {
|
|
20
21
|
color: VunoColor;
|
|
21
22
|
radius: VunoRadius;
|
|
22
|
-
size:
|
|
23
|
+
size: VunoFieldSize;
|
|
23
24
|
ui: VunoUi<"fieldSwitch" | "switch">;
|
|
24
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { VunoColor, VunoRadius
|
|
1
|
+
import type { VunoColor, VunoRadius } from '#vuno/types/base';
|
|
2
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
3
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
4
|
type __VLS_Props = Props;
|
|
4
5
|
type Props = {
|
|
5
6
|
color?: VunoColor;
|
|
6
7
|
/** La curvatura. Sin valor, la que traiga el tema. */
|
|
7
8
|
radius?: VunoRadius;
|
|
8
|
-
size?:
|
|
9
|
+
size?: VunoFieldSize;
|
|
9
10
|
ui?: VunoUi<'fieldSwitch' | 'switch'>;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_ModelProps = {
|
|
@@ -19,7 +20,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
19
20
|
}>, {
|
|
20
21
|
color: VunoColor;
|
|
21
22
|
radius: VunoRadius;
|
|
22
|
-
size:
|
|
23
|
+
size: VunoFieldSize;
|
|
23
24
|
ui: VunoUi<"fieldSwitch" | "switch">;
|
|
24
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldTagsProps } from './FieldTags.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldTagsProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string[] | undefined;
|
|
5
5
|
};
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useField } from "#vuno/composables/useField";
|
|
3
3
|
import { useTheme } from "#vuno/composables/useTheme";
|
|
4
4
|
import TagsInput from "#vuno/components/FieldTags/internal/TagsInput/TagsInput.vue";
|
|
5
|
-
import FieldShell from "#vuno/components/internal/FieldShell/FieldShell.vue";
|
|
5
|
+
import FieldShell from "#vuno/components/FormField/internal/FieldShell/FieldShell.vue";
|
|
6
6
|
defineOptions({ name: "VunoFieldTags" });
|
|
7
7
|
const model = defineModel({ type: null, ...{ default: void 0 } });
|
|
8
8
|
const props = defineProps({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { VunoFieldTagsProps } from './FieldTags.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldTagsProps;
|
|
3
3
|
type __VLS_ModelProps = {
|
|
4
4
|
modelValue?: string[] | undefined;
|
|
5
5
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VunoFieldSize } from '#vuno/types/field';
|
|
2
2
|
import type { VunoUi } from '#vuno/types/slots';
|
|
3
3
|
type __VLS_Props = Props;
|
|
4
4
|
type Props = {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
max?: number;
|
|
7
7
|
placeholder?: string;
|
|
8
|
-
size?:
|
|
8
|
+
size?: VunoFieldSize;
|
|
9
9
|
ui?: VunoUi<'control' | 'tagsInput'>;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_ModelProps = {
|
|
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
size:
|
|
20
|
+
size: VunoFieldSize;
|
|
21
21
|
ui: VunoUi<"control" | "tagsInput">;
|
|
22
|
-
placeholder: string;
|
|
23
22
|
max: number;
|
|
23
|
+
placeholder: string;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
export default _default;
|