@groupteknology/vuno 1.0.1 → 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 +227 -183
- package/dist/module.d.mts +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +40 -13
- 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/stylesheet.css +1 -0
- package/dist/runtime/app/assets/css/theme.css +1 -1
- package/dist/runtime/app/assets/css/tokens.css +1 -1
- package/dist/runtime/app/components/Alert/Alert.d.vue.ts +20 -0
- package/dist/runtime/app/components/Alert/Alert.theme.d.ts +14 -0
- package/dist/runtime/app/components/Alert/Alert.theme.js +14 -0
- package/dist/runtime/app/components/Alert/Alert.types.d.ts +10 -0
- package/dist/runtime/app/components/Alert/Alert.vue +68 -0
- package/dist/runtime/app/components/Alert/Alert.vue.d.ts +20 -0
- package/dist/runtime/app/components/{overlays → App}/App.d.vue.ts +3 -20
- package/dist/runtime/app/components/App/App.types.d.ts +4 -0
- package/dist/runtime/app/components/{overlays → App}/App.vue +56 -41
- package/dist/runtime/app/components/{overlays → App}/App.vue.d.ts +3 -20
- package/dist/runtime/app/components/App/internal/Overlay/Overlay.d.vue.ts +7 -0
- package/dist/runtime/app/components/{overlays → App/internal/Overlay}/Overlay.vue +5 -6
- package/dist/runtime/app/components/App/internal/Overlay/Overlay.vue.d.ts +7 -0
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.d.vue.ts +8 -0
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue +18 -0
- package/dist/runtime/app/components/App/internal/OverlayItem/OverlayItem.vue.d.ts +8 -0
- package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.d.vue.ts +3 -3
- package/dist/runtime/app/components/App/internal/Toast/Toast.theme.d.ts +13 -0
- package/dist/runtime/app/components/App/internal/Toast/Toast.theme.js +16 -0
- package/dist/runtime/app/components/App/internal/Toast/Toast.vue +55 -0
- package/dist/runtime/app/components/{overlays → App/internal/Toast}/Toast.vue.d.ts +3 -3
- package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.d.vue.ts +3 -3
- package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.d.ts +15 -0
- package/dist/runtime/app/components/App/internal/Toaster/Toaster.theme.js +16 -0
- package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.vue +3 -2
- package/dist/runtime/app/components/{overlays → App/internal/Toaster}/Toaster.vue.d.ts +3 -3
- package/dist/runtime/app/components/Avatar/Avatar.d.vue.ts +10 -0
- package/dist/runtime/app/components/Avatar/Avatar.theme.d.ts +30 -0
- package/dist/runtime/app/components/Avatar/Avatar.theme.js +22 -0
- package/dist/runtime/app/components/Avatar/Avatar.types.d.ts +10 -0
- package/dist/runtime/app/components/Avatar/Avatar.types.js +0 -0
- package/dist/runtime/app/components/{actions → Avatar}/Avatar.vue +7 -5
- package/dist/runtime/app/components/Avatar/Avatar.vue.d.ts +10 -0
- package/dist/runtime/app/components/Badge/Badge.d.vue.ts +21 -0
- package/dist/runtime/app/components/Badge/Badge.theme.d.ts +40 -0
- package/dist/runtime/app/components/Badge/Badge.theme.js +22 -0
- package/dist/runtime/app/components/Badge/Badge.types.d.ts +12 -0
- package/dist/runtime/app/components/Badge/Badge.types.js +0 -0
- package/dist/runtime/app/components/{actions → Badge}/Badge.vue +3 -0
- package/dist/runtime/app/components/Badge/Badge.vue.d.ts +21 -0
- 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 +29 -0
- package/dist/runtime/app/components/Button/Button.theme.d.ts +102 -0
- package/dist/runtime/app/components/Button/Button.theme.js +67 -0
- 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 +129 -0
- package/dist/runtime/app/components/Button/Button.vue.d.ts +29 -0
- package/dist/runtime/app/components/Card/Card.d.vue.ts +32 -0
- package/dist/runtime/app/components/Card/Card.theme.d.ts +100 -0
- package/dist/runtime/app/components/Card/Card.theme.js +82 -0
- 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 +51 -0
- package/dist/runtime/app/components/Card/Card.vue.d.ts +32 -0
- package/dist/runtime/app/components/Code/Code.d.vue.ts +9 -0
- package/dist/runtime/app/components/Code/Code.theme.d.ts +11 -0
- package/dist/runtime/app/components/Code/Code.theme.js +12 -0
- package/dist/runtime/app/components/Code/Code.types.d.ts +8 -0
- package/dist/runtime/app/components/Code/Code.types.js +0 -0
- package/dist/runtime/app/components/Code/Code.vue +116 -0
- package/dist/runtime/app/components/Code/Code.vue.d.ts +9 -0
- 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/{overlays → Confirm}/Confirm.d.vue.ts +2 -6
- package/dist/runtime/app/components/Confirm/Confirm.theme.d.ts +12 -0
- package/dist/runtime/app/components/Confirm/Confirm.theme.js +13 -0
- package/dist/runtime/app/components/Confirm/Confirm.types.d.ts +6 -0
- package/dist/runtime/app/components/Confirm/Confirm.types.js +0 -0
- package/dist/runtime/app/components/{overlays → Confirm}/Confirm.vue +10 -5
- package/dist/runtime/app/components/{overlays → Confirm}/Confirm.vue.d.ts +2 -6
- package/dist/runtime/app/components/Container/Container.d.vue.ts +18 -0
- package/dist/runtime/app/components/Container/Container.theme.d.ts +53 -0
- package/dist/runtime/app/components/Container/Container.theme.js +31 -0
- package/dist/runtime/app/components/Container/Container.types.d.ts +9 -0
- package/dist/runtime/app/components/Container/Container.types.js +0 -0
- package/dist/runtime/app/components/{structure → Container}/Container.vue +3 -2
- package/dist/runtime/app/components/Container/Container.vue.d.ts +18 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.d.vue.ts +17 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.theme.d.ts +16 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.theme.js +13 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.types.d.ts +9 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.types.js +0 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.vue +26 -0
- package/dist/runtime/app/components/ControlGroup/ControlGroup.vue.d.ts +17 -0
- package/dist/runtime/app/components/{structure/Table.d.vue.ts → DataTable/DataTable.d.vue.ts} +6 -19
- 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/{structure/Table.vue.d.ts → DataTable/DataTable.vue.d.ts} +6 -19
- package/dist/runtime/app/{internal/useVunoTable.d.ts → components/DataTable/internal/useVunoDataTable.d.ts} +8 -30
- package/dist/runtime/app/{internal/useVunoTable.js → components/DataTable/internal/useVunoDataTable.js} +2 -29
- package/dist/runtime/app/components/FieldArray/FieldArray.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.theme.d.ts +12 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.theme.js +13 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.types.js +0 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.vue +180 -0
- package/dist/runtime/app/components/FieldArray/FieldArray.vue.d.ts +13 -0
- package/dist/runtime/app/components/{forms/Switch.d.vue.ts → FieldCheckbox/FieldCheckbox.d.vue.ts} +4 -12
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.theme.js +2 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.types.js +0 -0
- package/dist/runtime/app/components/FieldCheckbox/FieldCheckbox.vue +39 -0
- package/dist/runtime/app/components/{forms/Switch.vue.d.ts → FieldCheckbox/FieldCheckbox.vue.d.ts} +4 -12
- package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.d.vue.ts +12 -6
- package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.theme.d.ts +30 -0
- package/dist/runtime/app/components/FieldCheckbox/internal/Checkbox/Checkbox.theme.js +10 -0
- package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue +7 -4
- package/dist/runtime/app/components/{forms → FieldCheckbox/internal/Checkbox}/Checkbox.vue.d.ts +12 -6
- package/dist/runtime/app/components/FieldColor/FieldColor.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.theme.d.ts +27 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.theme.js +18 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldColor/FieldColor.types.js +0 -0
- package/dist/runtime/app/components/{forms/fields → FieldColor}/FieldColor.vue +39 -32
- package/dist/runtime/app/components/FieldColor/FieldColor.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.theme.js +2 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.types.js +0 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue +51 -0
- package/dist/runtime/app/components/FieldCurrency/FieldCurrency.vue.d.ts +13 -0
- package/dist/runtime/app/components/{forms/fields → FieldFile}/FieldFile.d.vue.ts +11 -3
- package/dist/runtime/app/components/FieldFile/FieldFile.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.theme.js +2 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.types.js +0 -0
- package/dist/runtime/app/components/FieldFile/FieldFile.vue +99 -0
- package/dist/runtime/app/components/{forms/fields → FieldFile}/FieldFile.vue.d.ts +11 -3
- package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.d.vue.ts +26 -20
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.d.ts +89 -0
- package/dist/runtime/app/components/FieldFile/internal/FileUpload/FileUpload.theme.js +56 -0
- package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.vue +46 -24
- package/dist/runtime/app/components/{forms → FieldFile/internal/FileUpload}/FileUpload.vue.d.ts +26 -20
- package/dist/runtime/app/components/FieldInput/FieldInput.d.vue.ts +24 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.theme.js +2 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.types.js +0 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.vue +61 -0
- package/dist/runtime/app/components/FieldInput/FieldInput.vue.d.ts +24 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.theme.js +2 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.types.js +0 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.vue +47 -0
- package/dist/runtime/app/components/FieldNumber/FieldNumber.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.theme.js +2 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.types.js +0 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.vue +62 -0
- package/dist/runtime/app/components/FieldPassword/FieldPassword.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.d.vue.ts +14 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.theme.js +2 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.types.js +0 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.vue +41 -0
- package/dist/runtime/app/components/FieldRadio/FieldRadio.vue.d.ts +14 -0
- package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.d.vue.ts +11 -9
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.theme.d.ts +54 -0
- package/dist/runtime/app/components/FieldRadio/internal/RadioGroup/RadioGroup.theme.js +31 -0
- package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue +12 -5
- package/dist/runtime/app/components/{forms → FieldRadio/internal/RadioGroup}/RadioGroup.vue.d.ts +11 -9
- package/dist/runtime/app/components/FieldSearch/FieldSearch.d.vue.ts +17 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.theme.d.ts +6 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.theme.js +7 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.types.js +0 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.vue +74 -0
- package/dist/runtime/app/components/FieldSearch/FieldSearch.vue.d.ts +17 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.d.vue.ts +14 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.theme.js +2 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.types.js +0 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.vue +45 -0
- package/dist/runtime/app/components/FieldSelect/FieldSelect.vue.d.ts +14 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.d.vue.ts +97 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.theme.d.ts +36 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.theme.js +49 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue +206 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/Select.vue.d.ts +97 -0
- package/dist/runtime/app/{utils → components/FieldSelect/internal/Select}/option.d.ts +3 -4
- package/dist/runtime/app/components/FieldSelect/internal/Select/useVunoSelectState.d.ts +30 -0
- package/dist/runtime/app/components/FieldSelect/internal/Select/useVunoSelectState.js +142 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.theme.js +2 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSlug/FieldSlug.types.js +0 -0
- package/dist/runtime/app/components/{forms/fields → FieldSlug}/FieldSlug.vue +58 -47
- package/dist/runtime/app/components/FieldSlug/FieldSlug.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.theme.js +2 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.types.js +0 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue +37 -0
- package/dist/runtime/app/components/FieldSwitch/FieldSwitch.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.d.vue.ts +27 -0
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.theme.d.ts +39 -0
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.theme.js +20 -0
- package/dist/runtime/app/components/{forms → FieldSwitch/internal/Switch}/Switch.vue +4 -2
- package/dist/runtime/app/components/FieldSwitch/internal/Switch/Switch.vue.d.ts +27 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.d.vue.ts +13 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.theme.js +2 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.types.js +0 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.vue +41 -0
- package/dist/runtime/app/components/FieldTags/FieldTags.vue.d.ts +13 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.d.vue.ts +26 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.theme.d.ts +34 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.theme.js +20 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue +107 -0
- package/dist/runtime/app/components/FieldTags/internal/TagsInput/TagsInput.vue.d.ts +26 -0
- package/dist/runtime/app/components/{forms/fields → FieldTextarea}/FieldTextarea.d.vue.ts +11 -3
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.theme.d.ts +5 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.theme.js +2 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.types.d.ts +2 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.types.js +0 -0
- package/dist/runtime/app/components/FieldTextarea/FieldTextarea.vue +45 -0
- package/dist/runtime/app/components/{forms/fields → FieldTextarea}/FieldTextarea.vue.d.ts +11 -3
- package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.d.vue.ts +12 -6
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.theme.d.ts +36 -0
- package/dist/runtime/app/components/FieldTextarea/internal/Textarea/Textarea.theme.js +37 -0
- package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.vue +9 -7
- package/dist/runtime/app/components/{forms → FieldTextarea/internal/Textarea}/Textarea.vue.d.ts +12 -6
- package/dist/runtime/app/components/Form/Form.d.vue.ts +36 -0
- package/dist/runtime/app/components/Form/Form.theme.d.ts +9 -0
- package/dist/runtime/app/components/Form/Form.theme.js +10 -0
- package/dist/runtime/app/components/Form/Form.types.d.ts +8 -0
- package/dist/runtime/app/components/Form/Form.types.js +0 -0
- package/dist/runtime/app/components/{forms → Form}/Form.vue +10 -9
- package/dist/runtime/app/components/Form/Form.vue.d.ts +36 -0
- package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.d.vue.ts +7 -0
- package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue +67 -0
- package/dist/runtime/app/components/Form/internal/FormFieldRenderer/FormFieldRenderer.vue.d.ts +7 -0
- package/dist/runtime/app/components/Form/internal/standard-schema.d.ts +29 -0
- package/dist/runtime/app/{internal → components/Form/internal}/useVunoFormState.d.ts +5 -3
- package/dist/runtime/app/{internal → components/Form/internal}/useVunoFormState.js +4 -3
- package/dist/runtime/app/components/FormField/FormField.d.vue.ts +21 -0
- package/dist/runtime/app/components/FormField/FormField.theme.d.ts +62 -0
- package/dist/runtime/app/components/FormField/FormField.theme.js +28 -0
- package/dist/runtime/app/components/FormField/FormField.types.d.ts +14 -0
- package/dist/runtime/app/components/FormField/FormField.types.js +0 -0
- package/dist/runtime/app/components/{forms → FormField}/FormField.vue +78 -43
- package/dist/runtime/app/components/FormField/FormField.vue.d.ts +21 -0
- package/dist/runtime/app/components/FormField/internal/FieldShell/FieldShell.d.vue.ts +22 -0
- package/dist/runtime/app/components/FormField/internal/FieldShell/FieldShell.vue +63 -0
- package/dist/runtime/app/components/FormField/internal/FieldShell/FieldShell.vue.d.ts +22 -0
- package/dist/runtime/app/components/FormModal/FormModal.d.vue.ts +44 -0
- package/dist/runtime/app/components/FormModal/FormModal.theme.d.ts +8 -0
- package/dist/runtime/app/components/FormModal/FormModal.theme.js +9 -0
- package/dist/runtime/app/components/FormModal/FormModal.types.d.ts +14 -0
- package/dist/runtime/app/components/FormModal/FormModal.types.js +0 -0
- package/dist/runtime/app/components/{forms → FormModal}/FormModal.vue +27 -14
- package/dist/runtime/app/components/FormModal/FormModal.vue.d.ts +44 -0
- package/dist/runtime/app/components/FormSection/FormSection.d.vue.ts +4 -0
- package/dist/runtime/app/components/FormSection/FormSection.theme.d.ts +12 -0
- package/dist/runtime/app/components/FormSection/FormSection.theme.js +14 -0
- package/dist/runtime/app/components/FormSection/FormSection.types.d.ts +7 -0
- package/dist/runtime/app/components/FormSection/FormSection.types.js +0 -0
- package/dist/runtime/app/components/{forms → FormSection}/FormSection.vue +16 -7
- package/dist/runtime/app/components/FormSection/FormSection.vue.d.ts +4 -0
- package/dist/runtime/app/components/Icon/Icon.d.vue.ts +4 -0
- 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 +32 -0
- package/dist/runtime/app/components/Icon/Icon.vue.d.ts +4 -0
- package/dist/runtime/app/components/Menu/Menu.d.vue.ts +19 -0
- package/dist/runtime/app/components/Menu/Menu.theme.d.ts +17 -0
- package/dist/runtime/app/components/Menu/Menu.theme.js +20 -0
- package/dist/runtime/app/components/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 +90 -0
- package/dist/runtime/app/components/Menu/Menu.vue.d.ts +19 -0
- 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 +31 -0
- package/dist/runtime/app/components/Modal/Modal.theme.d.ts +63 -0
- package/dist/runtime/app/components/Modal/Modal.theme.js +43 -0
- 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 +249 -0
- package/dist/runtime/app/components/Modal/Modal.vue.d.ts +31 -0
- package/dist/runtime/app/components/Navbar/Navbar.d.vue.ts +20 -0
- package/dist/runtime/app/components/Navbar/Navbar.theme.d.ts +30 -0
- package/dist/runtime/app/components/Navbar/Navbar.theme.js +31 -0
- 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/{structure → Navbar}/Navbar.vue +1 -0
- package/dist/runtime/app/components/Navbar/Navbar.vue.d.ts +20 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.d.vue.ts +9 -0
- 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.theme.d.ts +32 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.theme.js +35 -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 +233 -0
- package/dist/runtime/app/components/NavigationList/NavigationList.vue.d.ts +9 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.d.vue.ts +10 -0
- 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.theme.d.ts +26 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.theme.js +27 -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 +268 -0
- package/dist/runtime/app/components/NavigationMenu/NavigationMenu.vue.d.ts +10 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.d.vue.ts +7 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.theme.d.ts +9 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.theme.js +10 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.types.d.ts +7 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.types.js +0 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.vue +88 -0
- package/dist/runtime/app/components/NavigationToc/NavigationToc.vue.d.ts +7 -0
- package/dist/runtime/app/components/Pagination/Pagination.d.vue.ts +15 -0
- package/dist/runtime/app/components/Pagination/Pagination.theme.d.ts +13 -0
- package/dist/runtime/app/components/Pagination/Pagination.theme.js +14 -0
- package/dist/runtime/app/components/Pagination/Pagination.types.d.ts +11 -0
- package/dist/runtime/app/components/Pagination/Pagination.types.js +0 -0
- package/dist/runtime/app/components/{structure → Pagination}/Pagination.vue +9 -3
- package/dist/runtime/app/components/Pagination/Pagination.vue.d.ts +15 -0
- package/dist/runtime/app/components/{overlays/Modal.d.vue.ts → Slideover/Slideover.d.vue.ts} +5 -22
- package/dist/runtime/app/components/Slideover/Slideover.theme.d.ts +35 -0
- package/dist/runtime/app/components/Slideover/Slideover.theme.js +24 -0
- package/dist/runtime/app/components/Slideover/Slideover.types.d.ts +12 -0
- package/dist/runtime/app/components/Slideover/Slideover.types.js +0 -0
- package/dist/runtime/app/components/Slideover/Slideover.vue +58 -0
- package/dist/runtime/app/components/{overlays/Modal.vue.d.ts → Slideover/Slideover.vue.d.ts} +5 -22
- package/dist/runtime/app/components/State/State.d.vue.ts +14 -0
- package/dist/runtime/app/components/State/State.theme.d.ts +19 -0
- package/dist/runtime/app/components/State/State.theme.js +26 -0
- package/dist/runtime/app/components/State/State.types.d.ts +15 -0
- package/dist/runtime/app/components/State/State.types.js +0 -0
- package/dist/runtime/app/components/{structure → State}/State.vue +21 -6
- package/dist/runtime/app/components/State/State.vue.d.ts +14 -0
- package/dist/runtime/app/components/Table/Table.d.vue.ts +33 -0
- package/dist/runtime/app/components/Table/Table.theme.d.ts +32 -0
- package/dist/runtime/app/components/Table/Table.theme.js +31 -0
- 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 +211 -0
- package/dist/runtime/app/components/Table/Table.vue.d.ts +33 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.vue +2 -1
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.theme.d.ts +21 -0
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.theme.js +11 -0
- package/dist/runtime/app/components/Table/internal/CellBoolean/CellBoolean.vue +42 -0
- package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.theme.d.ts +5 -0
- package/dist/runtime/app/components/Table/internal/CellCurrency/CellCurrency.theme.js +4 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.vue +9 -1
- package/dist/runtime/app/components/Table/internal/CellDate/CellDate.theme.d.ts +5 -0
- package/dist/runtime/app/components/Table/internal/CellDate/CellDate.theme.js +4 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.vue +9 -1
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.vue +2 -1
- package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.theme.d.ts +5 -0
- package/dist/runtime/app/components/Table/internal/CellNumber/CellNumber.theme.js +4 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.vue +9 -1
- package/dist/runtime/app/components/Table/internal/CellText/CellText.theme.d.ts +13 -0
- package/dist/runtime/app/components/Table/internal/CellText/CellText.theme.js +11 -0
- package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.vue +9 -1
- package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.d.vue.ts +2 -2
- package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.vue +9 -8
- package/dist/runtime/app/components/{structure → Table/internal/TableCell}/TableCell.vue.d.ts +2 -2
- package/dist/runtime/app/{utils → components/Table/internal}/column.d.ts +9 -0
- package/dist/runtime/app/components/Table/internal/column.js +20 -0
- package/dist/runtime/app/components/Table/internal/useVunoTableSelection.d.ts +21 -0
- package/dist/runtime/app/components/Table/internal/useVunoTableSelection.js +29 -0
- package/dist/runtime/app/components/{structure → Tabs}/Tabs.d.vue.ts +5 -23
- package/dist/runtime/app/components/Tabs/Tabs.theme.d.ts +41 -0
- package/dist/runtime/app/components/Tabs/Tabs.theme.js +32 -0
- 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 +193 -0
- package/dist/runtime/app/components/{structure → Tabs}/Tabs.vue.d.ts +5 -23
- 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 +19 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.theme.d.ts +12 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.theme.js +13 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.types.d.ts +11 -0
- package/dist/runtime/app/components/Tooltip/Tooltip.types.js +0 -0
- package/dist/runtime/app/components/{actions → Tooltip}/Tooltip.vue +10 -23
- package/dist/runtime/app/components/Tooltip/Tooltip.vue.d.ts +19 -0
- package/dist/runtime/app/composables/defineShortcuts.d.ts +19 -0
- package/dist/runtime/app/composables/defineShortcuts.js +68 -0
- package/dist/runtime/app/{internal → composables/internal}/useVunoAnchor.d.ts +6 -4
- package/dist/runtime/app/{internal → composables/internal}/useVunoAnchor.js +3 -2
- package/dist/runtime/app/composables/internal/useVunoContext.d.ts +5 -0
- package/dist/runtime/app/composables/internal/useVunoContext.js +8 -0
- package/dist/runtime/app/composables/internal/useVunoControlGroup.d.ts +16 -0
- package/dist/runtime/app/composables/internal/useVunoControlGroup.js +18 -0
- 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/{internal → composables/internal}/useVunoPortal.d.ts +3 -8
- package/dist/runtime/app/composables/internal/useVunoPortal.js +12 -0
- package/dist/runtime/app/composables/useContext.js +2 -3
- package/dist/runtime/app/composables/useCrud.js +5 -4
- package/dist/runtime/app/composables/useField.d.ts +3 -3
- package/dist/runtime/app/composables/useField.js +16 -8
- package/dist/runtime/app/composables/useForm.d.ts +3 -0
- package/dist/runtime/app/composables/useForm.js +4 -5
- package/dist/runtime/app/composables/useModal.js +1 -3
- package/dist/runtime/app/composables/useTableQuery.d.ts +1 -1
- package/dist/runtime/app/composables/useTableQuery.js +29 -13
- package/dist/runtime/app/composables/useTheme.d.ts +3 -2
- package/dist/runtime/app/composables/useTheme.js +8 -3
- package/dist/runtime/app/plugins/vue-query.d.ts +8 -0
- package/dist/runtime/app/plugins/vue-query.js +13 -0
- package/dist/runtime/app/{components/forms/ControlShell.d.vue.ts → primitives/PrimitiveControl/PrimitiveControl.d.vue.ts} +12 -7
- package/dist/runtime/app/primitives/PrimitiveControl/PrimitiveControl.theme.d.ts +50 -0
- package/dist/runtime/app/primitives/PrimitiveControl/PrimitiveControl.theme.js +38 -0
- package/dist/runtime/app/primitives/PrimitiveControl/PrimitiveControl.vue +33 -0
- package/dist/runtime/app/{components/forms/ControlShell.vue.d.ts → primitives/PrimitiveControl/PrimitiveControl.vue.d.ts} +12 -7
- package/dist/runtime/app/{components/forms/Input.d.vue.ts → primitives/PrimitiveInput/PrimitiveInput.d.vue.ts} +18 -12
- package/dist/runtime/app/primitives/PrimitiveInput/PrimitiveInput.theme.d.ts +30 -0
- package/dist/runtime/app/primitives/PrimitiveInput/PrimitiveInput.theme.js +21 -0
- package/dist/runtime/app/{components/forms/Input.vue → primitives/PrimitiveInput/PrimitiveInput.vue} +10 -8
- package/dist/runtime/app/{components/forms/Input.vue.d.ts → primitives/PrimitiveInput/PrimitiveInput.vue.d.ts} +18 -12
- package/dist/runtime/app/{components/forms/NumberInput.d.vue.ts → primitives/PrimitiveNumberInput/PrimitiveNumberInput.d.vue.ts} +15 -10
- package/dist/runtime/app/primitives/PrimitiveNumberInput/PrimitiveNumberInput.theme.d.ts +34 -0
- package/dist/runtime/app/primitives/PrimitiveNumberInput/PrimitiveNumberInput.theme.js +29 -0
- package/dist/runtime/app/primitives/PrimitiveNumberInput/PrimitiveNumberInput.vue +223 -0
- package/dist/runtime/app/{components/forms/NumberInput.vue.d.ts → primitives/PrimitiveNumberInput/PrimitiveNumberInput.vue.d.ts} +15 -10
- package/dist/runtime/app/{utils → primitives/PrimitiveNumberInput}/number.d.ts +7 -0
- package/dist/runtime/app/primitives/PrimitiveNumberInput/number.js +64 -0
- package/dist/runtime/app/theme/icons.js +4 -1
- package/dist/runtime/app/theme/index.d.ts +1320 -8
- package/dist/runtime/app/theme/index.js +124 -10
- package/dist/runtime/app/theme/messages.js +11 -3
- package/dist/runtime/app/theme/shared.d.ts +20 -3
- package/dist/runtime/app/theme/shared.js +16 -1
- package/dist/runtime/app/types/app.d.ts +4 -2
- package/dist/runtime/app/types/base.d.ts +13 -13
- package/dist/runtime/app/types/field-type.d.ts +4 -0
- package/dist/runtime/app/types/field-type.js +0 -0
- package/dist/runtime/app/types/field.d.ts +135 -27
- package/dist/runtime/app/types/form.d.ts +29 -4
- package/dist/runtime/app/types/index.d.ts +63 -12
- 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 +14 -10
- package/dist/runtime/app/types/shortcuts.d.ts +44 -0
- package/dist/runtime/app/types/shortcuts.js +0 -0
- package/dist/runtime/app/types/slots.d.ts +34 -0
- package/dist/runtime/app/types/slots.js +0 -0
- package/dist/runtime/app/types/table.d.ts +31 -30
- 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 +64 -17
- package/dist/runtime/app/utils/format.js +5 -4
- package/dist/runtime/app/utils/path.js +5 -3
- package/dist/runtime/app/{internal → utils}/slots.d.ts +5 -2
- package/dist/runtime/app/utils/slots.js +24 -0
- package/dist/runtime/app/utils/theme.d.ts +9 -24
- package/dist/runtime/app/utils/theme.js +35 -15
- package/package.json +24 -9
- package/dist/runtime/app/components/actions/Avatar.d.vue.ts +0 -23
- package/dist/runtime/app/components/actions/Avatar.vue.d.ts +0 -23
- package/dist/runtime/app/components/actions/Badge.d.vue.ts +0 -36
- package/dist/runtime/app/components/actions/Badge.vue.d.ts +0 -36
- package/dist/runtime/app/components/actions/Button.d.vue.ts +0 -45
- package/dist/runtime/app/components/actions/Button.vue +0 -71
- package/dist/runtime/app/components/actions/Button.vue.d.ts +0 -45
- package/dist/runtime/app/components/actions/Icon.d.vue.ts +0 -6
- package/dist/runtime/app/components/actions/Icon.vue +0 -32
- package/dist/runtime/app/components/actions/Icon.vue.d.ts +0 -6
- package/dist/runtime/app/components/actions/Menu.d.vue.ts +0 -34
- package/dist/runtime/app/components/actions/Menu.vue +0 -189
- package/dist/runtime/app/components/actions/Menu.vue.d.ts +0 -34
- package/dist/runtime/app/components/actions/Tooltip.d.vue.ts +0 -40
- package/dist/runtime/app/components/actions/Tooltip.vue.d.ts +0 -40
- package/dist/runtime/app/components/forms/ControlShell.vue +0 -19
- package/dist/runtime/app/components/forms/Form.d.vue.ts +0 -53
- package/dist/runtime/app/components/forms/Form.vue.d.ts +0 -53
- package/dist/runtime/app/components/forms/FormField.d.vue.ts +0 -32
- package/dist/runtime/app/components/forms/FormField.vue.d.ts +0 -32
- package/dist/runtime/app/components/forms/FormFieldRenderer.d.vue.ts +0 -7
- package/dist/runtime/app/components/forms/FormFieldRenderer.vue +0 -88
- package/dist/runtime/app/components/forms/FormFieldRenderer.vue.d.ts +0 -7
- package/dist/runtime/app/components/forms/FormModal.d.vue.ts +0 -61
- package/dist/runtime/app/components/forms/FormModal.vue.d.ts +0 -61
- package/dist/runtime/app/components/forms/FormSection.d.vue.ts +0 -12
- package/dist/runtime/app/components/forms/FormSection.vue.d.ts +0 -12
- package/dist/runtime/app/components/forms/NumberInput.vue +0 -160
- package/dist/runtime/app/components/forms/Select.d.vue.ts +0 -61
- package/dist/runtime/app/components/forms/Select.vue +0 -336
- package/dist/runtime/app/components/forms/Select.vue.d.ts +0 -61
- package/dist/runtime/app/components/forms/fields/FieldArray.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldArray.vue +0 -129
- package/dist/runtime/app/components/forms/fields/FieldArray.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldCheckbox.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldCheckbox.vue +0 -31
- package/dist/runtime/app/components/forms/fields/FieldCheckbox.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldColor.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldColor.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldEmail.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldEmail.vue +0 -38
- package/dist/runtime/app/components/forms/fields/FieldEmail.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldFile.vue +0 -91
- package/dist/runtime/app/components/forms/fields/FieldNumber.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldNumber.vue +0 -39
- package/dist/runtime/app/components/forms/fields/FieldNumber.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldPassword.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldPassword.vue +0 -36
- package/dist/runtime/app/components/forms/fields/FieldPassword.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldRadio.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldRadio.vue +0 -33
- package/dist/runtime/app/components/forms/fields/FieldRadio.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSelect.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSelect.vue +0 -37
- package/dist/runtime/app/components/forms/fields/FieldSelect.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSlug.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSlug.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSwitch.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldSwitch.vue +0 -29
- package/dist/runtime/app/components/forms/fields/FieldSwitch.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldText.d.vue.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldText.vue +0 -39
- package/dist/runtime/app/components/forms/fields/FieldText.vue.d.ts +0 -5
- package/dist/runtime/app/components/forms/fields/FieldTextarea.vue +0 -37
- package/dist/runtime/app/components/layouts/dashboard/DashboardAside.d.vue.ts +0 -56
- package/dist/runtime/app/components/layouts/dashboard/DashboardAside.vue +0 -96
- package/dist/runtime/app/components/layouts/dashboard/DashboardAside.vue.d.ts +0 -56
- package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.d.vue.ts +0 -57
- package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.vue +0 -164
- package/dist/runtime/app/components/layouts/dashboard/DashboardLayout.vue.d.ts +0 -57
- package/dist/runtime/app/components/layouts/dashboard/DashboardPage.d.vue.ts +0 -49
- package/dist/runtime/app/components/layouts/dashboard/DashboardPage.vue +0 -45
- package/dist/runtime/app/components/layouts/dashboard/DashboardPage.vue.d.ts +0 -49
- package/dist/runtime/app/components/layouts/public/PublicLayout.d.vue.ts +0 -50
- package/dist/runtime/app/components/layouts/public/PublicLayout.vue +0 -56
- package/dist/runtime/app/components/layouts/public/PublicLayout.vue.d.ts +0 -50
- package/dist/runtime/app/components/overlays/Context.d.vue.ts +0 -3
- package/dist/runtime/app/components/overlays/Context.vue +0 -7
- package/dist/runtime/app/components/overlays/Context.vue.d.ts +0 -3
- package/dist/runtime/app/components/overlays/Modal.vue +0 -158
- package/dist/runtime/app/components/overlays/Overlay.d.vue.ts +0 -7
- package/dist/runtime/app/components/overlays/Overlay.vue.d.ts +0 -7
- package/dist/runtime/app/components/overlays/Toast.vue +0 -63
- package/dist/runtime/app/components/structure/Card.d.vue.ts +0 -90
- package/dist/runtime/app/components/structure/Card.vue +0 -43
- package/dist/runtime/app/components/structure/Card.vue.d.ts +0 -90
- package/dist/runtime/app/components/structure/Container.d.vue.ts +0 -42
- package/dist/runtime/app/components/structure/Container.vue.d.ts +0 -42
- package/dist/runtime/app/components/structure/Navbar.d.vue.ts +0 -49
- package/dist/runtime/app/components/structure/Navbar.vue.d.ts +0 -49
- package/dist/runtime/app/components/structure/Navigation.d.vue.ts +0 -14
- package/dist/runtime/app/components/structure/Navigation.vue +0 -147
- package/dist/runtime/app/components/structure/Navigation.vue.d.ts +0 -14
- package/dist/runtime/app/components/structure/Page.d.vue.ts +0 -39
- package/dist/runtime/app/components/structure/Page.vue +0 -124
- package/dist/runtime/app/components/structure/Page.vue.d.ts +0 -39
- package/dist/runtime/app/components/structure/Pagination.d.vue.ts +0 -32
- package/dist/runtime/app/components/structure/Pagination.vue.d.ts +0 -32
- package/dist/runtime/app/components/structure/State.d.vue.ts +0 -14
- package/dist/runtime/app/components/structure/State.vue.d.ts +0 -14
- package/dist/runtime/app/components/structure/Table.vue +0 -493
- package/dist/runtime/app/components/structure/Tabs.vue +0 -114
- package/dist/runtime/app/components/structure/cells/CellBoolean.vue +0 -26
- package/dist/runtime/app/composables/useDashboard.d.ts +0 -14
- package/dist/runtime/app/composables/useDashboard.js +0 -9
- package/dist/runtime/app/internal/keys.d.ts +0 -37
- package/dist/runtime/app/internal/keys.js +0 -5
- package/dist/runtime/app/internal/slots.js +0 -12
- package/dist/runtime/app/internal/useVunoDashboard.d.ts +0 -15
- package/dist/runtime/app/internal/useVunoDashboard.js +0 -5
- package/dist/runtime/app/internal/useVunoPortal.js +0 -8
- package/dist/runtime/app/theme/actions.d.ts +0 -2
- package/dist/runtime/app/theme/actions.js +0 -123
- package/dist/runtime/app/theme/forms.d.ts +0 -2
- package/dist/runtime/app/theme/forms.js +0 -442
- package/dist/runtime/app/theme/layouts.d.ts +0 -2
- package/dist/runtime/app/theme/layouts.js +0 -76
- package/dist/runtime/app/theme/overlays.d.ts +0 -2
- package/dist/runtime/app/theme/overlays.js +0 -90
- package/dist/runtime/app/theme/structure.d.ts +0 -2
- package/dist/runtime/app/theme/structure.js +0 -351
- package/dist/runtime/app/types/dashboard.d.ts +0 -7
- package/dist/runtime/app/types/state.d.ts +0 -35
- package/dist/runtime/app/utils/column.js +0 -5
- package/dist/runtime/app/utils/number.js +0 -30
- package/dist/runtime/app/utils/standard-schema.d.ts +0 -62
- /package/dist/runtime/app/{types/dashboard.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/{utils → components/DataTable/internal}/query.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/DataTable/internal}/query.js +0 -0
- /package/dist/runtime/app/{utils → components/FieldSelect/internal/Select}/option.js +0 -0
- /package/dist/runtime/app/{utils → components/Form/internal}/grid.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Form/internal}/grid.js +0 -0
- /package/dist/runtime/app/{utils → components/Form/internal}/standard-schema.js +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBadge}/CellBadge.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBoolean}/CellBoolean.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellBoolean}/CellBoolean.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellCurrency}/CellCurrency.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellDate}/CellDate.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellImage}/CellImage.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellNumber}/CellNumber.vue.d.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.d.vue.ts +0 -0
- /package/dist/runtime/app/components/{structure/cells → Table/internal/CellText}/CellText.vue.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/selection.d.ts +0 -0
- /package/dist/runtime/app/{utils → components/Table/internal}/selection.js +0 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useId, useSlots, useTemplateRef } from "vue";
|
|
3
|
+
import { useIcons, useMessages, useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import Badge from "#vuno/components/Badge/Badge.vue";
|
|
5
|
+
import Button from "#vuno/components/Button/Button.vue";
|
|
6
|
+
import FieldSearch from "#vuno/components/FieldSearch/FieldSearch.vue";
|
|
7
|
+
import Form from "#vuno/components/Form/Form.vue";
|
|
8
|
+
import Pagination from "#vuno/components/Pagination/Pagination.vue";
|
|
9
|
+
import Slideover from "#vuno/components/Slideover/Slideover.vue";
|
|
10
|
+
import State from "#vuno/components/State/State.vue";
|
|
11
|
+
import VunoTable from "#vuno/components/Table/Table.vue";
|
|
12
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
13
|
+
import { useVunoDataTable } from "./internal/useVunoDataTable";
|
|
14
|
+
import PrimitiveControl from "#vuno/primitives/PrimitiveControl/PrimitiveControl.vue";
|
|
15
|
+
defineOptions({ name: "VunoDataTable" });
|
|
16
|
+
const query = defineModel("query", { type: Object, ...{ required: true } });
|
|
17
|
+
const selection = defineModel("selection", { type: Array, ...{ default: () => [] } });
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
data: { type: Array, required: true },
|
|
20
|
+
definition: { type: Object, required: true },
|
|
21
|
+
failure: { type: Object, required: false },
|
|
22
|
+
loading: { type: Boolean, required: false },
|
|
23
|
+
radius: { type: String, required: false },
|
|
24
|
+
tableUi: { type: Object, required: false },
|
|
25
|
+
total: { type: Number, required: false },
|
|
26
|
+
ui: { type: Object, required: false }
|
|
27
|
+
});
|
|
28
|
+
const emit = defineEmits(["rowClick"]);
|
|
29
|
+
defineSlots();
|
|
30
|
+
const slots = useSlots();
|
|
31
|
+
const total = computed(() => props.total ?? 0);
|
|
32
|
+
const hasFailure = computed(() => Boolean(props.failure));
|
|
33
|
+
const icons = useIcons();
|
|
34
|
+
const messages = useMessages();
|
|
35
|
+
const ui = useTheme("dataTable", () => props.ui);
|
|
36
|
+
const table = useVunoDataTable({
|
|
37
|
+
query,
|
|
38
|
+
selection,
|
|
39
|
+
definition: () => props.definition,
|
|
40
|
+
total: () => total.value
|
|
41
|
+
});
|
|
42
|
+
const { activeFilters, applyFilters, clearFilters, clearQuery, clearSelection, filtersDefinition, filtersOpen, filterState, goToPage, isFiltered, pageSizes, paginated, rangeEnd, rangeStart, removeFilter, search, searchable, setPageSize } = table;
|
|
43
|
+
const searchField = useTemplateRef("searchField");
|
|
44
|
+
const rows = computed(() => hasFailure.value ? [] : props.data);
|
|
45
|
+
const footerId = useId();
|
|
46
|
+
const skippable = computed(() => rows.value.length > 3 && total.value > 0 && !hasFailure.value);
|
|
47
|
+
const cellSlots = computed(() => Object.keys(slots).filter((name) => name.startsWith("cell-")));
|
|
48
|
+
const tableSort = computed({
|
|
49
|
+
get: () => query.value.sort,
|
|
50
|
+
set: (sort) => {
|
|
51
|
+
query.value = { ...query.value, page: 1, sort };
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function clearSearch() {
|
|
55
|
+
table.clearSearch();
|
|
56
|
+
searchField.value?.focus();
|
|
57
|
+
}
|
|
58
|
+
function updateSearch(value) {
|
|
59
|
+
if (value === "") {
|
|
60
|
+
clearSearch();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
search.value = value ?? "";
|
|
64
|
+
}
|
|
65
|
+
defineExpose({
|
|
66
|
+
clearFilters,
|
|
67
|
+
clearQuery,
|
|
68
|
+
clearSearch,
|
|
69
|
+
clearSelection,
|
|
70
|
+
goToPage
|
|
71
|
+
});
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<template>
|
|
75
|
+
<div :class="ui.root">
|
|
76
|
+
<div
|
|
77
|
+
v-if="searchable || (props.definition.filters?.length ?? 0) > 0 || $slots.toolbar"
|
|
78
|
+
:class="ui.toolbar"
|
|
79
|
+
>
|
|
80
|
+
<FieldSearch
|
|
81
|
+
v-if="searchable"
|
|
82
|
+
ref="searchField"
|
|
83
|
+
:modelValue="search"
|
|
84
|
+
:placeholder="props.definition.searchPlaceholder ?? messages.searchPlaceholder"
|
|
85
|
+
:ui="{ root: ui.search }"
|
|
86
|
+
@update:model-value="updateSearch"
|
|
87
|
+
/>
|
|
88
|
+
|
|
89
|
+
<div :class="ui.toolbarActions">
|
|
90
|
+
<Button
|
|
91
|
+
v-if="(props.definition.filters?.length ?? 0) > 0"
|
|
92
|
+
color="neutral"
|
|
93
|
+
:icon="icons.filter"
|
|
94
|
+
:label="messages.filters"
|
|
95
|
+
variant="outline"
|
|
96
|
+
@click="filtersOpen = true"
|
|
97
|
+
>
|
|
98
|
+
<!-- `UButton` no admite `badge`: el contador va en el slot. -->
|
|
99
|
+
<template
|
|
100
|
+
v-if="activeFilters.length > 0"
|
|
101
|
+
#trailing
|
|
102
|
+
>
|
|
103
|
+
<Badge
|
|
104
|
+
color="primary"
|
|
105
|
+
:label="String(activeFilters.length)"
|
|
106
|
+
size="sm"
|
|
107
|
+
variant="solid"
|
|
108
|
+
/>
|
|
109
|
+
</template>
|
|
110
|
+
</Button>
|
|
111
|
+
|
|
112
|
+
<slot
|
|
113
|
+
name="toolbar"
|
|
114
|
+
:query="query"
|
|
115
|
+
/>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div
|
|
120
|
+
v-if="props.definition.selectable && selection.length > 0"
|
|
121
|
+
:class="ui.selection"
|
|
122
|
+
>
|
|
123
|
+
<slot
|
|
124
|
+
:clear="clearSelection"
|
|
125
|
+
:count="selection.length"
|
|
126
|
+
:keys="selection"
|
|
127
|
+
name="selection"
|
|
128
|
+
>
|
|
129
|
+
<Text
|
|
130
|
+
tag="span"
|
|
131
|
+
tone="inherit"
|
|
132
|
+
variant="inherit"
|
|
133
|
+
>{{ selection.length }} {{ selection.length === 1 ? messages.rowSelected : messages.rowsSelected }}</Text
|
|
134
|
+
>
|
|
135
|
+
<Button
|
|
136
|
+
color="neutral"
|
|
137
|
+
:label="messages.clearSelection"
|
|
138
|
+
size="xs"
|
|
139
|
+
variant="ghost"
|
|
140
|
+
@click="clearSelection"
|
|
141
|
+
/>
|
|
142
|
+
</slot>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<div
|
|
146
|
+
v-if="activeFilters.length > 0"
|
|
147
|
+
:class="ui.chips"
|
|
148
|
+
>
|
|
149
|
+
<Badge
|
|
150
|
+
v-for="filter in activeFilters"
|
|
151
|
+
:key="filter.name"
|
|
152
|
+
color="neutral"
|
|
153
|
+
variant="subtle"
|
|
154
|
+
>
|
|
155
|
+
<Text
|
|
156
|
+
tag="span"
|
|
157
|
+
tone="inherit"
|
|
158
|
+
variant="inherit"
|
|
159
|
+
>{{ filter.label }}: {{ filter.value }}</Text
|
|
160
|
+
>
|
|
161
|
+
<Button
|
|
162
|
+
:aria-label="`${messages.clearFilters}: ${filter.label}`"
|
|
163
|
+
color="neutral"
|
|
164
|
+
:icon="icons.fileRemove"
|
|
165
|
+
size="xs"
|
|
166
|
+
variant="link"
|
|
167
|
+
@click="removeFilter(filter.name)"
|
|
168
|
+
/>
|
|
169
|
+
</Badge>
|
|
170
|
+
|
|
171
|
+
<Button
|
|
172
|
+
color="neutral"
|
|
173
|
+
:label="messages.clearFilters"
|
|
174
|
+
size="xs"
|
|
175
|
+
variant="ghost"
|
|
176
|
+
@click="clearFilters"
|
|
177
|
+
/>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
<!-- El panel comparte el `<dialog>` nativo de `VModal`: así hereda el
|
|
181
|
+
foco, el portal y la capa superior sin mezclar geometrías. -->
|
|
182
|
+
<Slideover
|
|
183
|
+
v-model:open="filtersOpen"
|
|
184
|
+
position="end"
|
|
185
|
+
:title="messages.filtersTitle"
|
|
186
|
+
>
|
|
187
|
+
<template #body>
|
|
188
|
+
<Form
|
|
189
|
+
v-model:state="filterState"
|
|
190
|
+
:definition="filtersDefinition"
|
|
191
|
+
:ui="{ sections: ui.filtersBody }"
|
|
192
|
+
/>
|
|
193
|
+
</template>
|
|
194
|
+
|
|
195
|
+
<template #footer>
|
|
196
|
+
<div :class="ui.filtersFooter">
|
|
197
|
+
<Button
|
|
198
|
+
color="neutral"
|
|
199
|
+
:label="messages.clearFilters"
|
|
200
|
+
variant="ghost"
|
|
201
|
+
@click="clearFilters"
|
|
202
|
+
/>
|
|
203
|
+
<Button
|
|
204
|
+
:label="messages.applyFilters"
|
|
205
|
+
@click="applyFilters"
|
|
206
|
+
/>
|
|
207
|
+
</div>
|
|
208
|
+
</template>
|
|
209
|
+
</Slideover>
|
|
210
|
+
|
|
211
|
+
<a
|
|
212
|
+
v-if="skippable"
|
|
213
|
+
:class="ui.skip"
|
|
214
|
+
:href="`#${footerId}`"
|
|
215
|
+
>{{ messages.skipTable }}</a
|
|
216
|
+
>
|
|
217
|
+
|
|
218
|
+
<VunoTable
|
|
219
|
+
v-model:selection="selection"
|
|
220
|
+
v-model:sort="tableSort"
|
|
221
|
+
:data="rows"
|
|
222
|
+
:definition="props.definition"
|
|
223
|
+
:radius="props.radius"
|
|
224
|
+
:ui="props.tableUi"
|
|
225
|
+
@row-click="emit('rowClick', $event)"
|
|
226
|
+
>
|
|
227
|
+
<template
|
|
228
|
+
v-for="name in cellSlots"
|
|
229
|
+
:key="name"
|
|
230
|
+
#[name]="slotProps"
|
|
231
|
+
>
|
|
232
|
+
<slot
|
|
233
|
+
:name="name"
|
|
234
|
+
v-bind="slotProps"
|
|
235
|
+
/>
|
|
236
|
+
</template>
|
|
237
|
+
|
|
238
|
+
<template #empty>
|
|
239
|
+
<State
|
|
240
|
+
v-if="props.failure"
|
|
241
|
+
:failure="props.failure"
|
|
242
|
+
tone="failure"
|
|
243
|
+
/>
|
|
244
|
+
|
|
245
|
+
<div v-else-if="props.loading || total > 0" />
|
|
246
|
+
|
|
247
|
+
<slot
|
|
248
|
+
v-else-if="isFiltered"
|
|
249
|
+
:clear="clearQuery"
|
|
250
|
+
name="no-matches"
|
|
251
|
+
>
|
|
252
|
+
<State
|
|
253
|
+
:hint="messages.noMatchesHint"
|
|
254
|
+
:icon="icons.noMatches"
|
|
255
|
+
:title="messages.noMatches"
|
|
256
|
+
>
|
|
257
|
+
<template #actions>
|
|
258
|
+
<slot
|
|
259
|
+
:clear="clearQuery"
|
|
260
|
+
name="no-matches-actions"
|
|
261
|
+
>
|
|
262
|
+
<Button
|
|
263
|
+
color="neutral"
|
|
264
|
+
:label="messages.clearQuery"
|
|
265
|
+
variant="outline"
|
|
266
|
+
@click="clearQuery"
|
|
267
|
+
/>
|
|
268
|
+
</slot>
|
|
269
|
+
</template>
|
|
270
|
+
</State>
|
|
271
|
+
</slot>
|
|
272
|
+
|
|
273
|
+
<slot
|
|
274
|
+
v-else
|
|
275
|
+
name="empty"
|
|
276
|
+
>
|
|
277
|
+
<State
|
|
278
|
+
:hint="props.definition.empty?.hint"
|
|
279
|
+
:icon="props.definition.empty?.icon"
|
|
280
|
+
:title="props.definition.empty?.title"
|
|
281
|
+
>
|
|
282
|
+
<template #actions>
|
|
283
|
+
<slot name="empty-actions" />
|
|
284
|
+
</template>
|
|
285
|
+
</State>
|
|
286
|
+
</slot>
|
|
287
|
+
</template>
|
|
288
|
+
</VunoTable>
|
|
289
|
+
|
|
290
|
+
<div
|
|
291
|
+
v-if="total > 0 && !hasFailure"
|
|
292
|
+
:id="footerId"
|
|
293
|
+
:class="ui.footer"
|
|
294
|
+
tabindex="-1"
|
|
295
|
+
>
|
|
296
|
+
<div :class="ui.meta">
|
|
297
|
+
<Text
|
|
298
|
+
v-if="paginated"
|
|
299
|
+
tag="span"
|
|
300
|
+
tone="inherit"
|
|
301
|
+
variant="inherit"
|
|
302
|
+
>{{ messages.showing }} {{ rangeStart }}–{{ rangeEnd }} {{ messages.of }} {{ total }}</Text
|
|
303
|
+
>
|
|
304
|
+
|
|
305
|
+
<!-- Sin paginar, un rango «1–30 de 30» sugiere que hay más. -->
|
|
306
|
+
<Text
|
|
307
|
+
v-else
|
|
308
|
+
tag="span"
|
|
309
|
+
tone="inherit"
|
|
310
|
+
variant="inherit"
|
|
311
|
+
>{{ total }} {{ messages.results }}</Text
|
|
312
|
+
>
|
|
313
|
+
|
|
314
|
+
<!--
|
|
315
|
+
Un `<select>` nativo y no un combobox: son cinco números sin
|
|
316
|
+
búsqueda ni selección múltiple, y el navegador ya resuelve
|
|
317
|
+
el teclado, el foco y la lista —en el móvil, con su propia
|
|
318
|
+
rueda—. La caja la pone `PrimitiveControl` para que se vea como
|
|
319
|
+
los demás controles.
|
|
320
|
+
|
|
321
|
+
El ancho va por `ui` porque pelea con el `w-full` del tema;
|
|
322
|
+
puesto como `class` sobre el componente convivirían los dos.
|
|
323
|
+
-->
|
|
324
|
+
|
|
325
|
+
<PrimitiveControl
|
|
326
|
+
v-if="paginated"
|
|
327
|
+
size="xs"
|
|
328
|
+
:ui="{ root: ui.pageSizeControl }"
|
|
329
|
+
>
|
|
330
|
+
<select
|
|
331
|
+
:aria-label="messages.pageSize"
|
|
332
|
+
:class="ui.pageSizeSelect"
|
|
333
|
+
:value="query.pageSize"
|
|
334
|
+
@change="(event) => setPageSize(Number(event.target.value))"
|
|
335
|
+
>
|
|
336
|
+
<option
|
|
337
|
+
v-for="size in pageSizes"
|
|
338
|
+
:key="size"
|
|
339
|
+
:value="size"
|
|
340
|
+
>
|
|
341
|
+
{{ size }}
|
|
342
|
+
</option>
|
|
343
|
+
</select>
|
|
344
|
+
</PrimitiveControl>
|
|
345
|
+
</div>
|
|
346
|
+
|
|
347
|
+
<Pagination
|
|
348
|
+
v-if="paginated"
|
|
349
|
+
:page="query.page"
|
|
350
|
+
:pageSize="query.pageSize"
|
|
351
|
+
:total="total"
|
|
352
|
+
@update:page="goToPage"
|
|
353
|
+
/>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
</template>
|
package/dist/runtime/app/components/{structure/Table.vue.d.ts → DataTable/DataTable.vue.d.ts}
RENAMED
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
declare const __VLS_export: <TRow extends VunoTableRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
|
-
data: TRow[];
|
|
6
|
-
definition: VunoTableDefinition<TRow>;
|
|
7
|
-
/**
|
|
8
|
-
* Fallo de la consulta. Sin esto, un error se pintaría como «no hay
|
|
9
|
-
* resultados» y la tabla afirmaría que no hay nada cuando en realidad
|
|
10
|
-
* no se pudo saber.
|
|
11
|
-
*/
|
|
12
|
-
failure?: VunoTableFailure;
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
/** Total de filas en servidor, no las de la página actual. */
|
|
15
|
-
total?: number;
|
|
16
|
-
ui?: VunoSlots;
|
|
17
|
-
} & {
|
|
1
|
+
import type { VunoTableQuery } from '#vuno/types/table';
|
|
2
|
+
import type { VunoDataTableProps } from './DataTable.types.js';
|
|
3
|
+
declare const __VLS_export: <TRow extends import("#vuno/types/table").VunoTableRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(VunoDataTableProps<TRow> & {
|
|
18
5
|
/**
|
|
19
6
|
* Estado de consulta. El consumidor lo observa y devuelve `data` y `total`.
|
|
20
7
|
*
|
|
@@ -29,8 +16,8 @@ declare const __VLS_export: <TRow extends VunoTableRow>(__VLS_props: NonNullable
|
|
|
29
16
|
selection?: (number | string)[];
|
|
30
17
|
}) & {
|
|
31
18
|
onRowClick?: ((row: TRow) => any) | undefined;
|
|
32
|
-
"onUpdate:query"?: ((value: VunoTableQuery) => any) | undefined;
|
|
33
19
|
"onUpdate:selection"?: ((value: (string | number)[]) => any) | undefined;
|
|
20
|
+
"onUpdate:query"?: ((value: VunoTableQuery) => any) | undefined;
|
|
34
21
|
}> & (typeof globalThis extends {
|
|
35
22
|
__VLS_PROPS_FALLBACK: infer P;
|
|
36
23
|
} ? P : {});
|
|
@@ -64,7 +51,7 @@ declare const __VLS_export: <TRow extends VunoTableRow>(__VLS_props: NonNullable
|
|
|
64
51
|
query: VunoTableQuery;
|
|
65
52
|
}) => unknown;
|
|
66
53
|
};
|
|
67
|
-
emit: ((evt: "rowClick", row: TRow) => void) & (((event: "update:
|
|
54
|
+
emit: ((evt: "rowClick", row: TRow) => void) & (((event: "update:selection", value: (string | number)[]) => void) & ((event: "update:query", value: VunoTableQuery) => void));
|
|
68
55
|
}>) => import("vue").VNode & {
|
|
69
56
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
70
57
|
};
|
|
@@ -1,40 +1,20 @@
|
|
|
1
1
|
import { type ComputedRef, type Ref } from 'vue';
|
|
2
2
|
import type { VunoFormDefinition } from '#vuno/types/form';
|
|
3
|
-
import type {
|
|
4
|
-
/**
|
|
5
|
-
* Una columna lista para pintar: la definición y lo que la disposición necesita
|
|
6
|
-
* resuelto una vez.
|
|
7
|
-
*
|
|
8
|
-
* La columna va **dentro** y no esparcida: `VunoTableColumn` es una unión
|
|
9
|
-
* discriminada por `type` y esparcirla la aplana, que es justo lo que impide a
|
|
10
|
-
* la celda saber qué está pintando.
|
|
11
|
-
*/
|
|
12
|
-
export type VunoTableRenderColumn<TRow extends VunoTableRow> = {
|
|
13
|
-
/** Alineación y clases propias de la columna, para la celda. */
|
|
14
|
-
cellClass: string;
|
|
15
|
-
column: VunoTableColumn<TRow>;
|
|
16
|
-
/** Alineación y ancho, para la cabecera. */
|
|
17
|
-
headerClass: string;
|
|
18
|
-
key: string;
|
|
19
|
-
/** El rótulo ya resuelto; la columna de acciones no lleva salvo que se pida. */
|
|
20
|
-
label: string;
|
|
21
|
-
sortable: boolean;
|
|
22
|
-
};
|
|
3
|
+
import type { VunoDataTableDefinition, VunoTableFilters, VunoTableQuery } from '#vuno/types/table';
|
|
23
4
|
/** Un filtro activo, listo para pintarse como chip. */
|
|
24
|
-
|
|
5
|
+
type VunoTableActiveFilter = {
|
|
25
6
|
name: string;
|
|
26
7
|
label: string;
|
|
27
8
|
value: string;
|
|
28
9
|
};
|
|
29
|
-
|
|
10
|
+
type VunoTableOptions<TRow extends object> = {
|
|
30
11
|
query: Ref<VunoTableQuery>;
|
|
31
12
|
selection: Ref<(number | string)[]>;
|
|
32
|
-
definition: () =>
|
|
13
|
+
definition: () => VunoDataTableDefinition<TRow>;
|
|
33
14
|
total: () => number;
|
|
34
15
|
};
|
|
35
|
-
|
|
16
|
+
type VunoTableContext = {
|
|
36
17
|
activeFilters: ComputedRef<VunoTableActiveFilter[]>;
|
|
37
|
-
columns: ComputedRef<VunoTableRenderColumn<TRow>[]>;
|
|
38
18
|
filtersDefinition: ComputedRef<VunoFormDefinition>;
|
|
39
19
|
filtersOpen: Ref<boolean>;
|
|
40
20
|
/** Copia editable del panel: no llega a la consulta hasta aplicar. */
|
|
@@ -70,17 +50,14 @@ export type VunoTableContext<TRow extends VunoTableRow> = {
|
|
|
70
50
|
clearQuery: () => void;
|
|
71
51
|
clearSearch: () => void;
|
|
72
52
|
clearSelection: () => void;
|
|
73
|
-
getRowId: (row: TRow) => string;
|
|
74
53
|
goToPage: (page: number) => void;
|
|
75
54
|
removeFilter: (name: string) => void;
|
|
76
55
|
setPageSize: (size: number) => void;
|
|
77
|
-
sortDirectionFor: (key: string) => null | VunoTableSortDirection;
|
|
78
|
-
toggleSort: (key: string) => void;
|
|
79
56
|
};
|
|
80
57
|
/**
|
|
81
58
|
* Toda la lógica de una tabla, sin nada de disposición.
|
|
82
59
|
*
|
|
83
|
-
* Vive aparte del componente para que `
|
|
60
|
+
* Vive aparte del componente para que `VDataTable` mantenga separada su lógica
|
|
84
61
|
* y no la única: quien necesite los filtros en línea en vez de detrás de un
|
|
85
62
|
* botón puede escribir su propia plantilla sobre esto, en lugar de esperar a
|
|
86
63
|
* que el componente crezca un prop más por cada proyecto que no encaja.
|
|
@@ -89,4 +66,5 @@ export type VunoTableContext<TRow extends VunoTableRow> = {
|
|
|
89
66
|
* `composables/`—: publicarlo congela esta forma, y antes conviene que la haya
|
|
90
67
|
* usado algo real.
|
|
91
68
|
*/
|
|
92
|
-
export declare function
|
|
69
|
+
export declare function useVunoDataTable<TRow extends object>(options: VunoTableOptions<TRow>): VunoTableContext;
|
|
70
|
+
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { computed, onBeforeUnmount, ref, watch } from "vue";
|
|
2
2
|
import { clampPage } from "#vuno/utils/pagination";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export function useVunoTable(options) {
|
|
3
|
+
import { hasActiveQuery, hasFilterValue } from "./query.js";
|
|
4
|
+
export function useVunoDataTable(options) {
|
|
6
5
|
const { query, selection } = options;
|
|
7
6
|
const definition = computed(() => options.definition());
|
|
8
7
|
const total = computed(() => options.total());
|
|
9
|
-
const rowKey = computed(() => definition.value.rowKey ?? "id");
|
|
10
8
|
const pageSizes = computed(() => definition.value.pageSizes ?? [25, 50, 100]);
|
|
11
9
|
const searchable = computed(() => definition.value.searchable ?? true);
|
|
12
10
|
const paginated = computed(() => definition.value.paginated ?? true);
|
|
13
|
-
const getRowId = (row) => String(getPath(row, rowKey.value) ?? "");
|
|
14
11
|
const search = ref(query.value.search);
|
|
15
12
|
let searchTimer;
|
|
16
13
|
watch(search, (value) => {
|
|
@@ -32,14 +29,6 @@ export function useVunoTable(options) {
|
|
|
32
29
|
search.value = "";
|
|
33
30
|
query.value = { ...query.value, page: 1, search: "" };
|
|
34
31
|
}
|
|
35
|
-
function sortDirectionFor(key) {
|
|
36
|
-
return query.value.sort?.column === key ? query.value.sort.direction : null;
|
|
37
|
-
}
|
|
38
|
-
function toggleSort(key) {
|
|
39
|
-
const current = sortDirectionFor(key);
|
|
40
|
-
const sort = current === null ? { column: key, direction: "asc" } : current === "asc" ? { column: key, direction: "desc" } : null;
|
|
41
|
-
query.value = { ...query.value, page: 1, sort };
|
|
42
|
-
}
|
|
43
32
|
const filtersOpen = ref(false);
|
|
44
33
|
const filterState = ref({ ...query.value.filters });
|
|
45
34
|
watch(
|
|
@@ -88,18 +77,6 @@ export function useVunoTable(options) {
|
|
|
88
77
|
const clearSelection = () => {
|
|
89
78
|
selection.value = [];
|
|
90
79
|
};
|
|
91
|
-
const alignClass = (align) => align === "end" ? "text-end" : align === "center" ? "text-center" : "";
|
|
92
|
-
const columns = computed(
|
|
93
|
-
() => definition.value.columns.map((column) => ({
|
|
94
|
-
cellClass: [alignClass(column.align), column.class].filter(Boolean).join(" "),
|
|
95
|
-
column,
|
|
96
|
-
headerClass: [alignClass(column.align), column.width].filter(Boolean).join(" "),
|
|
97
|
-
key: column.key,
|
|
98
|
-
// La columna de acciones no lleva rótulo salvo que se pida uno.
|
|
99
|
-
label: column.type === "actions" ? column.label ?? "" : column.label ?? column.key,
|
|
100
|
-
sortable: column.sortable ?? false
|
|
101
|
-
}))
|
|
102
|
-
);
|
|
103
80
|
const lastPage = computed(() => Math.max(1, Math.ceil(total.value / query.value.pageSize)));
|
|
104
81
|
watch(
|
|
105
82
|
[total, lastPage],
|
|
@@ -129,11 +106,9 @@ export function useVunoTable(options) {
|
|
|
129
106
|
clearQuery,
|
|
130
107
|
clearSearch,
|
|
131
108
|
clearSelection,
|
|
132
|
-
columns,
|
|
133
109
|
filtersDefinition,
|
|
134
110
|
filtersOpen,
|
|
135
111
|
filterState,
|
|
136
|
-
getRowId,
|
|
137
112
|
goToPage,
|
|
138
113
|
isFiltered,
|
|
139
114
|
lastPage,
|
|
@@ -146,8 +121,6 @@ export function useVunoTable(options) {
|
|
|
146
121
|
searchable,
|
|
147
122
|
setPageSize,
|
|
148
123
|
shownPage,
|
|
149
|
-
sortDirectionFor,
|
|
150
|
-
toggleSort,
|
|
151
124
|
total
|
|
152
125
|
};
|
|
153
126
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VunoFieldArrayProps } from './FieldArray.types.js';
|
|
2
|
+
type __VLS_Props = VunoFieldArrayProps;
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
modelValue?: Record<string, unknown>[] | undefined;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: Record<string, unknown>[] | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown>[] | undefined) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const fieldArrayTheme: Record<"fieldArray", {
|
|
2
|
+
readonly slots: {
|
|
3
|
+
readonly empty: "rounded-sm border border-dashed border-vuno-border px-4 py-6 text-center text-sm text-vuno-muted";
|
|
4
|
+
readonly item: "flex flex-col gap-3 rounded-sm border border-vuno-border p-4";
|
|
5
|
+
readonly itemAction: "pointer-coarse:size-11";
|
|
6
|
+
readonly itemActions: "flex items-center gap-1";
|
|
7
|
+
readonly itemFields: "grid w-full grid-cols-12 gap-x-4 gap-y-5";
|
|
8
|
+
readonly itemHeader: "flex items-center justify-between gap-2";
|
|
9
|
+
readonly itemLabel: "text-xs font-medium text-vuno-muted";
|
|
10
|
+
readonly root: "flex w-full flex-col gap-3";
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineTheme } from "#vuno/utils/theme";
|
|
2
|
+
export const fieldArrayTheme = defineTheme("fieldArray", {
|
|
3
|
+
slots: {
|
|
4
|
+
empty: "rounded-sm border border-dashed border-vuno-border px-4 py-6 text-center text-sm text-vuno-muted",
|
|
5
|
+
item: "flex flex-col gap-3 rounded-sm border border-vuno-border p-4",
|
|
6
|
+
itemAction: "pointer-coarse:size-11",
|
|
7
|
+
itemActions: "flex items-center gap-1",
|
|
8
|
+
itemFields: "grid w-full grid-cols-12 gap-x-4 gap-y-5",
|
|
9
|
+
itemHeader: "flex items-center justify-between gap-2",
|
|
10
|
+
itemLabel: "text-xs font-medium text-vuno-muted",
|
|
11
|
+
root: "flex w-full flex-col gap-3"
|
|
12
|
+
}
|
|
13
|
+
});
|
|
File without changes
|