@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
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,49 +1,76 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addComponentsDir, addImportsDir, addTemplate, addVitePlugin } from '@nuxt/kit';
|
|
2
|
-
import { sep } from 'node:path';
|
|
1
|
+
import { defineNuxtModule, createResolver, addComponent, resolveModule, addTypeTemplate, addComponentsDir, addImportsDir, addPlugin, addTemplate, addVitePlugin } from '@nuxt/kit';
|
|
3
2
|
import tailwindcss from '@tailwindcss/vite';
|
|
3
|
+
import { sep } from 'node:path';
|
|
4
4
|
|
|
5
5
|
const module$1 = defineNuxtModule({
|
|
6
6
|
defaults: {
|
|
7
7
|
prefix: "V",
|
|
8
|
-
tailwind: true
|
|
8
|
+
tailwind: true,
|
|
9
|
+
vueQuery: true
|
|
9
10
|
},
|
|
10
11
|
meta: {
|
|
11
12
|
name: "vuno",
|
|
12
13
|
configKey: "vuno"
|
|
13
14
|
},
|
|
14
15
|
moduleDependencies: {
|
|
15
|
-
/*
|
|
16
|
-
* Los iconos del módulo se pintan con el componente global `Icon`, que
|
|
17
|
-
* trae `@nuxt/icon`. Hoy llega de rebote porque lo instala Nuxt UI, y
|
|
18
|
-
* eso no basta: `Base/Icon.vue` cae en un `<span>` vacío cuando el
|
|
19
|
-
* global no está registrado —que es lo correcto— y por tanto quedarse
|
|
20
|
-
* sin él no rompe nada, solo deja la interfaz sin iconos.
|
|
21
|
-
*/
|
|
22
16
|
"@nuxt/icon": {
|
|
23
17
|
defaults: {
|
|
24
18
|
clientBundle: {
|
|
25
19
|
scan: true
|
|
26
20
|
}
|
|
27
21
|
}
|
|
22
|
+
},
|
|
23
|
+
"@nuxtjs/color-mode": {
|
|
24
|
+
defaults: {
|
|
25
|
+
storage: "cookie",
|
|
26
|
+
storageKey: "vuno-theme"
|
|
27
|
+
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(options, nuxt) {
|
|
31
31
|
const resolver = createResolver(import.meta.url);
|
|
32
|
-
|
|
32
|
+
const runtimeDir = resolver.resolve("./runtime/app");
|
|
33
|
+
addComponent({
|
|
34
|
+
name: "VunoIconRenderer",
|
|
35
|
+
filePath: resolveModule("@nuxt/icon/runtime/components/index", { url: new URL(import.meta.url) }),
|
|
36
|
+
global: true
|
|
37
|
+
});
|
|
38
|
+
nuxt.options.alias["#vuno"] = runtimeDir;
|
|
39
|
+
nuxt.hook("prepare:types", ({ nodeTsConfig }) => {
|
|
40
|
+
nodeTsConfig.compilerOptions ??= {};
|
|
41
|
+
nodeTsConfig.compilerOptions.paths ??= {};
|
|
42
|
+
nodeTsConfig.compilerOptions.paths["#vuno"] = [runtimeDir];
|
|
43
|
+
nodeTsConfig.compilerOptions.paths["#vuno/*"] = [`${runtimeDir}/*`];
|
|
44
|
+
});
|
|
45
|
+
addTypeTemplate({
|
|
46
|
+
filename: "types/vuno-page-meta.d.ts",
|
|
47
|
+
getContents: () => `declare module '#app' {
|
|
48
|
+
interface PageMeta {
|
|
49
|
+
/** T\xEDtulo de la p\xE1gina disponible tambi\xE9n mediante \`route.meta.title\`. */
|
|
50
|
+
title?: string
|
|
51
|
+
/** \xCDndice declarativo disponible durante el render del servidor. */
|
|
52
|
+
toc?: import('@groupteknology/vuno').VunoNavigationTocItem[]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {}
|
|
57
|
+
`
|
|
58
|
+
});
|
|
33
59
|
addComponentsDir({
|
|
34
60
|
global: true,
|
|
35
|
-
ignore: ["
|
|
61
|
+
ignore: ["**/internal/**"],
|
|
36
62
|
path: resolver.resolve("./runtime/app/components"),
|
|
37
63
|
pathPrefix: false,
|
|
38
64
|
prefix: options.prefix
|
|
39
65
|
});
|
|
40
66
|
nuxt.hook("components:extend", (components) => {
|
|
41
67
|
for (const component of components) {
|
|
42
|
-
const path = component.filePath.
|
|
68
|
+
const path = component.filePath.replaceAll("\\", "/");
|
|
43
69
|
if (path.includes("/components/modal/")) component.global = true;
|
|
44
70
|
}
|
|
45
71
|
});
|
|
46
72
|
addImportsDir(resolver.resolve("./runtime/app/composables"));
|
|
73
|
+
if (options.vueQuery) addPlugin(resolver.resolve("./runtime/app/plugins/vue-query"));
|
|
47
74
|
addTemplate({
|
|
48
75
|
filename: "vuno.css",
|
|
49
76
|
write: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--vuno-modal-duration:180ms;--vuno-modal-ease:cubic-bezier(0.32,0.72,0,1);--vuno-backdrop:rgba(0,0,0,.5)}dialog{opacity:0;transform:scale(.97) translateY(.5rem);transition:opacity var(--vuno-modal-duration) var(--vuno-modal-ease),transform var(--vuno-modal-duration) var(--vuno-modal-ease),display var(--vuno-modal-duration) allow-discrete,overlay var(--vuno-modal-duration) allow-discrete}dialog[open]{opacity:1;transform:scale(1) translateY(0)}@starting-style{dialog[open]{opacity:0;transform:scale(.97) translateY(.5rem)}}dialog::backdrop{background-color:transparent;transition:background-color var(--vuno-modal-duration) var(--vuno-modal-ease),display var(--vuno-modal-duration) allow-discrete,overlay var(--vuno-modal-duration) allow-discrete}dialog[open]::backdrop{background-color:var(--vuno-backdrop)}@starting-style{dialog[open]::backdrop{background-color:transparent}}dialog[data-position=end],dialog[data-position=start]{transform:translateX(var(--vuno-panel-from))}dialog[data-position=end]{--vuno-panel-from:100%}[dir=rtl] dialog[data-position=end],dialog[data-position=start]{--vuno-panel-from:-100%}[dir=rtl] dialog[data-position=start]{--vuno-panel-from:100%}dialog[data-position=end][open],dialog[data-position=start][open]{transform:translateX(0)}@starting-style{dialog[data-position=end][open],dialog[data-position=start][open]{transform:translateX(var(--vuno-panel-from))}}dialog.vuno-overlay-behind::backdrop,dialog.vuno-overlay-behind[open]::backdrop{background-color:transparent}@media (prefers-reduced-motion:reduce){dialog,dialog::backdrop{transition-duration:1ms}dialog,dialog[data-position=end],dialog[data-position=end][open],dialog[data-position=start],dialog[data-position=start][open]{transform:none}}
|
|
1
|
+
:root{--vuno-modal-duration:180ms;--vuno-modal-ease:cubic-bezier(0.32,0.72,0,1);--vuno-backdrop:rgba(0,0,0,.5)}dialog[data-vuno-modal]{opacity:0;transform:scale(.97) translateY(.5rem);transition:opacity var(--vuno-modal-duration) var(--vuno-modal-ease),transform var(--vuno-modal-duration) var(--vuno-modal-ease),display var(--vuno-modal-duration) allow-discrete,overlay var(--vuno-modal-duration) allow-discrete}dialog[data-vuno-modal][open]{opacity:1;transform:scale(1) translateY(0)}@starting-style{dialog[data-vuno-modal][open]{opacity:0;transform:scale(.97) translateY(.5rem)}}@media (width < 40rem){dialog[data-vuno-modal]:not([data-position]){transform:translateY(100%)}dialog[data-vuno-modal]:not([data-position])[open]{transform:translateY(0)}@starting-style{dialog[data-vuno-modal]:not([data-position])[open]{transform:translateY(100%)}}}dialog[data-vuno-modal]::backdrop{background-color:transparent;transition:background-color var(--vuno-modal-duration) var(--vuno-modal-ease),display var(--vuno-modal-duration) allow-discrete,overlay var(--vuno-modal-duration) allow-discrete}dialog[data-vuno-modal][open]::backdrop{background-color:var(--vuno-backdrop)}@starting-style{dialog[data-vuno-modal][open]::backdrop{background-color:transparent}}dialog[data-vuno-modal][data-position=end],dialog[data-vuno-modal][data-position=start]{transform:translateX(var(--vuno-panel-from))}dialog[data-vuno-modal][data-position=end]{--vuno-panel-from:100%}[dir=rtl] dialog[data-vuno-modal][data-position=end],dialog[data-vuno-modal][data-position=start]{--vuno-panel-from:-100%}[dir=rtl] dialog[data-vuno-modal][data-position=start]{--vuno-panel-from:100%}dialog[data-vuno-modal][data-position=end][open],dialog[data-vuno-modal][data-position=start][open]{transform:translateX(0)}@starting-style{dialog[data-vuno-modal][data-position=end][open],dialog[data-vuno-modal][data-position=start][open]{transform:translateX(var(--vuno-panel-from))}}dialog[data-vuno-modal].vuno-overlay-behind::backdrop,dialog[data-vuno-modal].vuno-overlay-behind[open]::backdrop{background-color:transparent}@media (prefers-reduced-motion:reduce){dialog[data-vuno-modal],dialog[data-vuno-modal]::backdrop{transition-duration:1ms}dialog[data-vuno-modal],dialog[data-vuno-modal][data-position=end],dialog[data-vuno-modal][data-position=end][open],dialog[data-vuno-modal][data-position=start],dialog[data-vuno-modal][data-position=start][open]{transform:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "tailwindcss";@import "#build/vuno.css";@import "./tokens.css";@import "./theme.css";@import "./dialog.css";@source "../../**/*";
|
|
1
|
+
@import "tailwindcss";@import "#build/vuno.css";@import "./tokens.css";@import "./theme.css";@import "./dialog.css";@custom-variant dark (&:where(.dark, .dark *));@source "../../**/*";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";@import "./tokens.css";@import "./theme.css";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@theme inline{--color-vuno-primary:var(--vuno-primary);--color-vuno-primary-contrast:var(--vuno-primary-contrast);--color-vuno-secondary:var(--vuno-secondary);--color-vuno-secondary-contrast:var(--vuno-secondary-contrast);--color-vuno-neutral:var(--vuno-neutral);--color-vuno-neutral-contrast:var(--vuno-neutral-contrast);--color-vuno-surface:var(--vuno-surface);--color-vuno-surface-1:var(--vuno-surface-1);--color-vuno-surface-2:var(--vuno-surface-2);--color-vuno-surface-inverse:var(--vuno-surface-inverse);--color-vuno-strong:var(--vuno-text-strong);--color-vuno-body:var(--vuno-text-body);--color-vuno-muted:var(--vuno-text-muted);--color-vuno-subtle:var(--vuno-text-subtle);--color-vuno-inverse:var(--vuno-text-inverse);--font-sans:var(--vuno-font-sans);--font-mono:var(--vuno-font-mono);--color-vuno-border:var(--vuno-border);--color-vuno-border-strong:var(--vuno-border-strong);--color-vuno-success:var(--vuno-success);--color-vuno-success-contrast:var(--vuno-success-contrast);--color-vuno-info:var(--vuno-info);--color-vuno-info-contrast:var(--vuno-info-contrast);--color-vuno-warning:var(--vuno-warning);--color-vuno-warning-contrast:var(--vuno-warning-contrast);--color-vuno-error:var(--vuno-error);--color-vuno-error-contrast:var(--vuno-error-contrast);--
|
|
1
|
+
@theme inline{--color-vuno-primary:var(--vuno-primary);--color-vuno-primary-contrast:var(--vuno-primary-contrast);--color-vuno-secondary:var(--vuno-secondary);--color-vuno-secondary-contrast:var(--vuno-secondary-contrast);--color-vuno-neutral:var(--vuno-neutral);--color-vuno-neutral-contrast:var(--vuno-neutral-contrast);--color-vuno-brand:var(--vuno-brand);--color-vuno-brand-hover:var(--vuno-brand-hover);--color-vuno-brand-contrast:var(--vuno-brand-contrast);--color-vuno-control:var(--vuno-control);--color-vuno-tint:var(--vuno-tint);--color-vuno-line:var(--vuno-line);--color-vuno-focus:var(--vuno-focus);--color-vuno-danger-solid:var(--vuno-danger-solid);--color-vuno-danger-solid-hover:var(--vuno-danger-solid-hover);--color-vuno-danger-solid-contrast:var(--vuno-danger-solid-contrast);--color-vuno-surface:var(--vuno-surface);--color-vuno-surface-1:var(--vuno-surface-1);--color-vuno-surface-2:var(--vuno-surface-2);--color-vuno-surface-inverse:var(--vuno-surface-inverse);--color-vuno-strong:var(--vuno-text-strong);--color-vuno-body:var(--vuno-text-body);--color-vuno-muted:var(--vuno-text-muted);--color-vuno-subtle:var(--vuno-text-subtle);--color-vuno-inverse:var(--vuno-text-inverse);--font-sans:var(--vuno-font-sans);--font-mono:var(--vuno-font-mono);--color-vuno-border:var(--vuno-border);--color-vuno-border-strong:var(--vuno-border-strong);--color-vuno-success:var(--vuno-success);--color-vuno-success-contrast:var(--vuno-success-contrast);--color-vuno-info:var(--vuno-info);--color-vuno-info-contrast:var(--vuno-info-contrast);--color-vuno-warning:var(--vuno-warning);--color-vuno-warning-contrast:var(--vuno-warning-contrast);--color-vuno-error:var(--vuno-error);--color-vuno-error-contrast:var(--vuno-error-contrast);--container-8xl:96rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer base{:root{color-scheme:light;--vuno-color-white:oklch(100% 0 0);--vuno-color-slate-50:oklch(98.
|
|
1
|
+
@layer base{:root{color-scheme:light;--vuno-color-white:oklch(100% 0 0);--vuno-color-slate-50:oklch(98.75% 0 0);--vuno-color-slate-100:oklch(98% 0 0);--vuno-color-slate-200:oklch(96.5% 0 0);--vuno-color-slate-300:oklch(92.2% 0 0);--vuno-color-slate-400:oklch(70.8% 0 0);--vuno-color-slate-500:oklch(55.6% 0 0);--vuno-color-slate-600:oklch(43.9% 0 0);--vuno-color-slate-700:oklch(32% 0 0);--vuno-color-slate-800:oklch(26.9% 0 0);--vuno-color-slate-900:oklch(20.5% 0 0);--vuno-color-slate-925:oklch(17% 0 0);--vuno-color-slate-950:oklch(10% 0 0);--vuno-color-blue-400:oklch(75.668% 0.1242 263.014);--vuno-color-blue-600:oklch(53.463% 0.1595 261.622);--vuno-color-violet-400:oklch(78.263% 0.0571 279.398);--vuno-color-violet-600:oklch(50.733% 0.0826 278.816);--vuno-color-emerald-400:oklch(78.38% 0.0683 165.304);--vuno-color-emerald-700:oklch(51.266% 0.071 168.046);--vuno-color-cyan-400:oklch(78.873% 0.0666 223.957);--vuno-color-cyan-700:oklch(51.089% 0.0694 228.76);--vuno-color-red-400:oklch(76.599% 0.0951 15.392);--vuno-color-red-700:oklch(54.926% 0.1344 17.946);--vuno-color-amber-300:oklch(79.558% 0.1002 81.479);--vuno-color-amber-400:oklch(51.495% 0.0997 72.607);--vuno-font-sans:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--vuno-font-mono:"JetBrains Mono",ui-monospace,"Cascadia Code","Source Code Pro",Menlo,monospace;--vuno-primary:var(--vuno-color-blue-600);--vuno-primary-contrast:var(--vuno-color-white);--vuno-secondary:var(--vuno-color-violet-600);--vuno-secondary-contrast:var(--vuno-color-white);--vuno-neutral:var(--vuno-color-slate-600);--vuno-neutral-contrast:var(--vuno-color-white);--vuno-surface:var(--vuno-color-white);--vuno-surface-1:var(--vuno-color-slate-100);--vuno-surface-2:var(--vuno-color-slate-200);--vuno-surface-inverse:var(--vuno-color-slate-900);--vuno-text-strong:var(--vuno-color-slate-900);--vuno-text-body:var(--vuno-color-slate-700);--vuno-text-muted:var(--vuno-color-slate-600);--vuno-text-subtle:var(--vuno-color-slate-400);--vuno-text-inverse:var(--vuno-color-slate-50);--vuno-border:var(--vuno-color-slate-300);--vuno-border-strong:var(--vuno-color-slate-500);--vuno-success:var(--vuno-color-emerald-700);--vuno-success-contrast:var(--vuno-color-white);--vuno-info:var(--vuno-color-cyan-700);--vuno-info-contrast:var(--vuno-color-white);--vuno-warning:var(--vuno-color-amber-400);--vuno-warning-contrast:var(--vuno-color-white);--vuno-error:var(--vuno-color-red-700);--vuno-error-contrast:var(--vuno-color-white);--vuno-brand:var(--vuno-color-blue-600);--vuno-brand-hover:oklch(47.771% 0.1444 262.217);--vuno-brand-contrast:var(--vuno-color-white);--vuno-control:var(--vuno-color-white);--vuno-tint:oklch(97% 0 0);--vuno-line:oklch(14.5% 0 0/10%);--vuno-focus:oklch(15% 0 0);--vuno-danger-solid:var(--vuno-color-red-700);--vuno-danger-solid-hover:oklch(47.974% 0.1224 17.032);--vuno-danger-solid-contrast:var(--vuno-color-white)}.dark{color-scheme:dark;--vuno-primary:var(--vuno-color-blue-400);--vuno-primary-contrast:var(--vuno-color-slate-950);--vuno-secondary:var(--vuno-color-violet-400);--vuno-secondary-contrast:var(--vuno-color-slate-950);--vuno-neutral:var(--vuno-color-slate-400);--vuno-neutral-contrast:var(--vuno-color-slate-950);--vuno-surface:var(--vuno-color-slate-950);--vuno-surface-1:var(--vuno-color-slate-925);--vuno-surface-2:var(--vuno-color-slate-800);--vuno-surface-inverse:var(--vuno-color-slate-100);--vuno-text-strong:var(--vuno-color-white);--vuno-text-body:var(--vuno-color-slate-300);--vuno-text-muted:var(--vuno-color-slate-400);--vuno-text-subtle:var(--vuno-color-slate-500);--vuno-text-inverse:var(--vuno-color-slate-900);--vuno-border:var(--vuno-color-slate-700);--vuno-success:var(--vuno-color-emerald-400);--vuno-success-contrast:var(--vuno-color-slate-950);--vuno-info:var(--vuno-color-cyan-400);--vuno-info-contrast:var(--vuno-color-slate-950);--vuno-warning:var(--vuno-color-amber-300);--vuno-warning-contrast:var(--vuno-color-slate-950);--vuno-error:var(--vuno-color-red-400);--vuno-error-contrast:var(--vuno-color-slate-950);--vuno-control:oklch(21% 0.006 285.885);--vuno-tint:oklch(26.9% 0 0);--vuno-line:oklch(32% 0 0);--vuno-focus:oklch(93.5% 0 0)}html{scrollbar-gutter:stable}body{background-color:var(--vuno-surface);color:var(--vuno-text-body);font-family:var(--vuno-font-sans);font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { VunoColor } from '#vuno/types/base';
|
|
2
|
+
import type { VunoAlertProps } from './Alert.types.js';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/** Acciones relacionadas con el aviso. */
|
|
5
|
+
actions?: () => unknown;
|
|
6
|
+
/** Contenido que sustituye a `description`. */
|
|
7
|
+
default?: () => unknown;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<VunoAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoAlertProps> & Readonly<{}>, {
|
|
10
|
+
color: VunoColor;
|
|
11
|
+
role: "alert" | "status" | null;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const alertTheme: Record<"alert", {
|
|
2
|
+
readonly slots: {
|
|
3
|
+
readonly actions: "flex shrink-0 flex-wrap items-center gap-2 empty:hidden";
|
|
4
|
+
readonly body: "flex min-w-0 flex-1 flex-wrap items-center justify-between gap-3";
|
|
5
|
+
readonly content: "flex min-w-0 flex-1 flex-col gap-0.5";
|
|
6
|
+
readonly description: "text-sm leading-snug text-(--vuno-accent)";
|
|
7
|
+
readonly icon: "mt-0.5 size-4 shrink-0 text-(--vuno-accent)";
|
|
8
|
+
readonly root: "flex w-full items-start gap-3 rounded-lg bg-(--vuno-accent)/10 px-4 py-3";
|
|
9
|
+
readonly title: "text-sm leading-snug font-medium text-(--vuno-accent)";
|
|
10
|
+
};
|
|
11
|
+
readonly variants: {
|
|
12
|
+
readonly color: Record<import("../../types/base.js").VunoColor, Record<"root", string>>;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { accentByColor } from "#vuno/theme/shared";
|
|
2
|
+
import { defineTheme } from "#vuno/utils/theme";
|
|
3
|
+
export const alertTheme = defineTheme("alert", {
|
|
4
|
+
slots: {
|
|
5
|
+
actions: "flex shrink-0 flex-wrap items-center gap-2 empty:hidden",
|
|
6
|
+
body: "flex min-w-0 flex-1 flex-wrap items-center justify-between gap-3",
|
|
7
|
+
content: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
8
|
+
description: "text-sm leading-snug text-(--vuno-accent)",
|
|
9
|
+
icon: "mt-0.5 size-4 shrink-0 text-(--vuno-accent)",
|
|
10
|
+
root: "flex w-full items-start gap-3 rounded-lg bg-(--vuno-accent)/10 px-4 py-3",
|
|
11
|
+
title: "text-sm leading-snug font-medium text-(--vuno-accent)"
|
|
12
|
+
},
|
|
13
|
+
variants: { color: accentByColor("root") }
|
|
14
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VunoColor } from '#vuno/types/base';
|
|
2
|
+
import type { VunoUi } from '#vuno/types/slots';
|
|
3
|
+
export type VunoAlertProps = {
|
|
4
|
+
color?: VunoColor;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: null | string;
|
|
7
|
+
role?: 'alert' | 'status' | null;
|
|
8
|
+
title: string;
|
|
9
|
+
ui?: VunoUi<'alert'>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useIcons, useTheme } from "#vuno/composables/useTheme";
|
|
4
|
+
import Icon from "#vuno/components/Icon/Icon.vue";
|
|
5
|
+
import Text from "#vuno/components/Text/Text.vue";
|
|
6
|
+
defineOptions({ name: "VunoAlert" });
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
color: { type: String, required: false, default: "info" },
|
|
9
|
+
description: { type: String, required: false },
|
|
10
|
+
icon: { type: [null, String], required: false },
|
|
11
|
+
role: { type: [String, null], required: false, default: "status" },
|
|
12
|
+
title: { type: String, required: true },
|
|
13
|
+
ui: { type: Object, required: false }
|
|
14
|
+
});
|
|
15
|
+
defineSlots();
|
|
16
|
+
const icons = useIcons();
|
|
17
|
+
const defaultIcons = {
|
|
18
|
+
error: icons.value.notifyError,
|
|
19
|
+
info: icons.value.notifyInfo,
|
|
20
|
+
neutral: icons.value.notifyInfo,
|
|
21
|
+
primary: icons.value.notifyInfo,
|
|
22
|
+
secondary: icons.value.notifyInfo,
|
|
23
|
+
success: icons.value.notifySuccess,
|
|
24
|
+
warning: icons.value.notifyWarning
|
|
25
|
+
};
|
|
26
|
+
const iconName = computed(() => props.icon === null ? void 0 : props.icon ?? defaultIcons[props.color]);
|
|
27
|
+
const ui = useTheme(
|
|
28
|
+
"alert",
|
|
29
|
+
() => props.ui,
|
|
30
|
+
() => ({ color: props.color })
|
|
31
|
+
);
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div
|
|
36
|
+
:class="ui.root"
|
|
37
|
+
:role="props.role ?? void 0"
|
|
38
|
+
>
|
|
39
|
+
<Icon
|
|
40
|
+
v-if="iconName"
|
|
41
|
+
:class="ui.icon"
|
|
42
|
+
:name="iconName"
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
<div :class="ui.body">
|
|
46
|
+
<div :class="ui.content">
|
|
47
|
+
<Text
|
|
48
|
+
:class="ui.title"
|
|
49
|
+
tag="p"
|
|
50
|
+
tone="inherit"
|
|
51
|
+
variant="inherit"
|
|
52
|
+
>{{ props.title }}</Text
|
|
53
|
+
>
|
|
54
|
+
|
|
55
|
+
<div
|
|
56
|
+
v-if="props.description || $slots.default"
|
|
57
|
+
:class="ui.description"
|
|
58
|
+
>
|
|
59
|
+
<slot>{{ props.description }}</slot>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div :class="ui.actions">
|
|
64
|
+
<slot name="actions" />
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { VunoColor } from '#vuno/types/base';
|
|
2
|
+
import type { VunoAlertProps } from './Alert.types.js';
|
|
3
|
+
type __VLS_Slots = {
|
|
4
|
+
/** Acciones relacionadas con el aviso. */
|
|
5
|
+
actions?: () => unknown;
|
|
6
|
+
/** Contenido que sustituye a `description`. */
|
|
7
|
+
default?: () => unknown;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<VunoAlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoAlertProps> & Readonly<{}>, {
|
|
10
|
+
color: VunoColor;
|
|
11
|
+
role: "alert" | "status" | null;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { type Component } from 'vue';
|
|
2
2
|
import type { VunoAlertRequest, VunoConfirmRequest, VunoNotifyRequest } from '#vuno/types/app';
|
|
3
|
-
|
|
4
|
-
* Raíz del módulo: provee el contexto global, aloja los overlays y la pila
|
|
5
|
-
* de notificaciones.
|
|
6
|
-
*
|
|
7
|
-
* Ya no va dentro de nada: monta él mismo lo que necesitan las piezas de
|
|
8
|
-
* Reka, que antes ponía `UApp`.
|
|
9
|
-
*/
|
|
10
|
-
type __VLS_Props = {
|
|
11
|
-
/**
|
|
12
|
-
* Dirección de lectura.
|
|
13
|
-
*
|
|
14
|
-
* Se provee a los componentes que la necesitan —hoy solo las
|
|
15
|
-
* pestañas, para invertir sus flechas— y se pone además en el
|
|
16
|
-
* elemento, que es de donde la lee el navegador para el texto y
|
|
17
|
-
* para las propiedades lógicas del CSS.
|
|
18
|
-
*/
|
|
19
|
-
dir?: 'ltr' | 'rtl';
|
|
20
|
-
};
|
|
3
|
+
import type { VunoAppProps } from './App.types.js';
|
|
21
4
|
/**
|
|
22
5
|
* Monta un componente y espera a que emita `close`.
|
|
23
6
|
*
|
|
@@ -33,14 +16,14 @@ declare var __VLS_1: {};
|
|
|
33
16
|
type __VLS_Slots = {} & {
|
|
34
17
|
default?: (props: typeof __VLS_1) => any;
|
|
35
18
|
};
|
|
36
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<VunoAppProps, {
|
|
37
20
|
alert: (request: VunoAlertRequest) => Promise<void>;
|
|
38
21
|
closeAll: typeof closeAll;
|
|
39
22
|
confirm: (request: VunoConfirmRequest) => Promise<boolean>;
|
|
40
23
|
dismiss: typeof dismiss;
|
|
41
24
|
notify: typeof notify;
|
|
42
25
|
open: typeof open;
|
|
43
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoAppProps> & Readonly<{}>, {
|
|
44
27
|
dir: "ltr" | "rtl";
|
|
45
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,35 +1,52 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { markRaw, onBeforeUnmount,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import Overlay from "#vuno/components/
|
|
6
|
-
import Toaster from "#vuno/components/
|
|
2
|
+
import { markRaw, onBeforeUnmount, reactive, shallowReactive } from "vue";
|
|
3
|
+
import { provideVunoContext } from "#vuno/composables/internal/useVunoContext";
|
|
4
|
+
import { provideVunoDirection } from "#vuno/composables/internal/useVunoDirection";
|
|
5
|
+
import Overlay from "#vuno/components/App/internal/Overlay/Overlay.vue";
|
|
6
|
+
import Toaster from "#vuno/components/App/internal/Toaster/Toaster.vue";
|
|
7
|
+
import Confirm from "#vuno/components/Confirm/Confirm.vue";
|
|
8
|
+
defineOptions({ name: "VunoApp" });
|
|
7
9
|
const props = defineProps({
|
|
8
10
|
dir: { type: String, required: false, default: "ltr" }
|
|
9
11
|
});
|
|
10
|
-
const overlays = reactive([]);
|
|
11
12
|
const notifications = shallowReactive([]);
|
|
13
|
+
const overlays = reactive([]);
|
|
12
14
|
let nextId = 0;
|
|
15
|
+
let unmounting = false;
|
|
13
16
|
const EXIT_MS = 220;
|
|
17
|
+
const overlayRemovalTimers = /* @__PURE__ */ new Map();
|
|
14
18
|
function removeOverlay(id) {
|
|
19
|
+
const timer = overlayRemovalTimers.get(id);
|
|
20
|
+
if (timer) {
|
|
21
|
+
clearTimeout(timer);
|
|
22
|
+
overlayRemovalTimers.delete(id);
|
|
23
|
+
}
|
|
15
24
|
const index = overlays.findIndex((entry) => entry.id === id);
|
|
16
25
|
if (index !== -1) overlays.splice(index, 1);
|
|
17
26
|
}
|
|
18
27
|
function dismissOverlay(id) {
|
|
19
28
|
const entry = overlays.find((item) => item.id === id);
|
|
20
|
-
if (entry)
|
|
21
|
-
|
|
29
|
+
if (!entry) return;
|
|
30
|
+
entry.open = false;
|
|
31
|
+
if (unmounting) {
|
|
32
|
+
removeOverlay(id);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
overlayRemovalTimers.set(id, setTimeout(() => removeOverlay(id), EXIT_MS));
|
|
36
|
+
}
|
|
37
|
+
function createOverlayResolver(id, resolve) {
|
|
38
|
+
let settled = false;
|
|
39
|
+
return (value) => {
|
|
40
|
+
if (settled) return;
|
|
41
|
+
settled = true;
|
|
42
|
+
resolve(value);
|
|
43
|
+
dismissOverlay(id);
|
|
44
|
+
};
|
|
22
45
|
}
|
|
23
46
|
function open(component, props2 = {}) {
|
|
24
47
|
return new Promise((resolve) => {
|
|
25
48
|
const id = nextId++;
|
|
26
|
-
|
|
27
|
-
const settle = (value) => {
|
|
28
|
-
if (settled) return;
|
|
29
|
-
settled = true;
|
|
30
|
-
resolve(value);
|
|
31
|
-
dismissOverlay(id);
|
|
32
|
-
};
|
|
49
|
+
const settle = createOverlayResolver(id, resolve);
|
|
33
50
|
overlays.push({
|
|
34
51
|
id,
|
|
35
52
|
// El registro es reactivo en profundidad para poder animar la
|
|
@@ -64,13 +81,7 @@ function open(component, props2 = {}) {
|
|
|
64
81
|
function askConfirm(request, dismissed) {
|
|
65
82
|
return new Promise((resolve) => {
|
|
66
83
|
const id = nextId++;
|
|
67
|
-
|
|
68
|
-
const settle = (value) => {
|
|
69
|
-
if (settled) return;
|
|
70
|
-
settled = true;
|
|
71
|
-
resolve(value);
|
|
72
|
-
dismissOverlay(id);
|
|
73
|
-
};
|
|
84
|
+
const settle = createOverlayResolver(id, resolve);
|
|
74
85
|
overlays.push({
|
|
75
86
|
id,
|
|
76
87
|
component: markRaw(Confirm),
|
|
@@ -93,14 +104,17 @@ const alert = async (request) => {
|
|
|
93
104
|
await askConfirm({ ...request, alert: true }, true);
|
|
94
105
|
};
|
|
95
106
|
function closeAll() {
|
|
96
|
-
for (
|
|
107
|
+
for (let index = overlays.length - 1; index >= 0; index--) {
|
|
108
|
+
const entry = overlays[index];
|
|
109
|
+
(entry.listeners.cancel ?? entry.listeners.close)?.();
|
|
110
|
+
}
|
|
97
111
|
}
|
|
98
|
-
const
|
|
112
|
+
const notificationTimers = /* @__PURE__ */ new Map();
|
|
99
113
|
function dismiss(id) {
|
|
100
|
-
const timer =
|
|
114
|
+
const timer = notificationTimers.get(id);
|
|
101
115
|
if (timer) {
|
|
102
116
|
clearTimeout(timer);
|
|
103
|
-
|
|
117
|
+
notificationTimers.delete(id);
|
|
104
118
|
}
|
|
105
119
|
const index = notifications.findIndex((entry) => entry.id === id);
|
|
106
120
|
if (index !== -1) notifications.splice(index, 1);
|
|
@@ -110,36 +124,37 @@ function notify(request) {
|
|
|
110
124
|
const duration = request.duration ?? 5e3;
|
|
111
125
|
notifications.push({ ...request, id, color: request.color ?? "neutral", duration });
|
|
112
126
|
if (duration > 0)
|
|
113
|
-
|
|
127
|
+
notificationTimers.set(
|
|
114
128
|
id,
|
|
115
129
|
setTimeout(() => dismiss(id), duration)
|
|
116
130
|
);
|
|
117
131
|
return id;
|
|
118
132
|
}
|
|
119
133
|
onBeforeUnmount(() => {
|
|
120
|
-
|
|
121
|
-
|
|
134
|
+
unmounting = true;
|
|
135
|
+
closeAll();
|
|
136
|
+
for (const timer of overlayRemovalTimers.values()) clearTimeout(timer);
|
|
137
|
+
for (const timer of notificationTimers.values()) clearTimeout(timer);
|
|
138
|
+
overlayRemovalTimers.clear();
|
|
139
|
+
notificationTimers.clear();
|
|
140
|
+
overlays.splice(0);
|
|
141
|
+
notifications.splice(0);
|
|
122
142
|
});
|
|
123
143
|
const context = { alert, closeAll, confirm, dismiss, notifications, notify, open, overlays };
|
|
124
|
-
|
|
125
|
-
|
|
144
|
+
provideVunoDirection(() => props.dir);
|
|
145
|
+
provideVunoContext(context);
|
|
126
146
|
defineExpose({ alert, closeAll, confirm, dismiss, notify, open });
|
|
127
147
|
</script>
|
|
128
148
|
|
|
129
149
|
<template>
|
|
130
150
|
<!--
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
Lo otro que daba era una fuente estable de `useId` para las piezas de
|
|
136
|
-
Reka. Eso lo resuelve ahora Vue: el `useId` de Nuxt coincide entre
|
|
137
|
-
servidor y cliente por sí solo, y es el que usan los componentes del
|
|
138
|
-
módulo desde que no hay ninguna pieza de Reka que dependa del contexto.
|
|
151
|
+
La dirección de lectura se pone en el elemento —de donde la lee el
|
|
152
|
+
navegador— y se provee además a los componentes que la necesitan.
|
|
153
|
+
Vue aporta un `useId` estable que Nuxt conserva entre servidor y cliente.
|
|
139
154
|
|
|
140
155
|
El `div` es la única forma de llevar el `dir` sin pedirle nada al
|
|
141
|
-
proyecto. No
|
|
142
|
-
|
|
156
|
+
proyecto. No tiene estilos propios, pero sí forma parte del contrato:
|
|
157
|
+
es una caja de bloque alrededor de la aplicación.
|
|
143
158
|
-->
|
|
144
159
|
<div :dir="props.dir">
|
|
145
160
|
<slot />
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { type Component } from 'vue';
|
|
2
2
|
import type { VunoAlertRequest, VunoConfirmRequest, VunoNotifyRequest } from '#vuno/types/app';
|
|
3
|
-
|
|
4
|
-
* Raíz del módulo: provee el contexto global, aloja los overlays y la pila
|
|
5
|
-
* de notificaciones.
|
|
6
|
-
*
|
|
7
|
-
* Ya no va dentro de nada: monta él mismo lo que necesitan las piezas de
|
|
8
|
-
* Reka, que antes ponía `UApp`.
|
|
9
|
-
*/
|
|
10
|
-
type __VLS_Props = {
|
|
11
|
-
/**
|
|
12
|
-
* Dirección de lectura.
|
|
13
|
-
*
|
|
14
|
-
* Se provee a los componentes que la necesitan —hoy solo las
|
|
15
|
-
* pestañas, para invertir sus flechas— y se pone además en el
|
|
16
|
-
* elemento, que es de donde la lee el navegador para el texto y
|
|
17
|
-
* para las propiedades lógicas del CSS.
|
|
18
|
-
*/
|
|
19
|
-
dir?: 'ltr' | 'rtl';
|
|
20
|
-
};
|
|
3
|
+
import type { VunoAppProps } from './App.types.js';
|
|
21
4
|
/**
|
|
22
5
|
* Monta un componente y espera a que emita `close`.
|
|
23
6
|
*
|
|
@@ -33,14 +16,14 @@ declare var __VLS_1: {};
|
|
|
33
16
|
type __VLS_Slots = {} & {
|
|
34
17
|
default?: (props: typeof __VLS_1) => any;
|
|
35
18
|
};
|
|
36
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<VunoAppProps, {
|
|
37
20
|
alert: (request: VunoAlertRequest) => Promise<void>;
|
|
38
21
|
closeAll: typeof closeAll;
|
|
39
22
|
confirm: (request: VunoConfirmRequest) => Promise<boolean>;
|
|
40
23
|
dismiss: typeof dismiss;
|
|
41
24
|
notify: typeof notify;
|
|
42
25
|
open: typeof open;
|
|
43
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VunoAppProps> & Readonly<{}>, {
|
|
44
27
|
dir: "ltr" | "rtl";
|
|
45
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VunoOverlayEntry } from '#vuno/types/app';
|
|
2
|
+
type Props = {
|
|
3
|
+
overlays: readonly VunoOverlayEntry[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
+
import OverlayItem from "#vuno/components/App/internal/OverlayItem/OverlayItem.vue";
|
|
4
|
+
defineOptions({ name: "VunoOverlay" });
|
|
3
5
|
const props = defineProps({
|
|
4
6
|
overlays: { type: Array, required: true }
|
|
5
7
|
});
|
|
@@ -28,13 +30,10 @@ const isTopmost = (index) => index === topmost.value;
|
|
|
28
30
|
Tampoco lleva contenedor propio: cada diálogo se sale del flujo por su
|
|
29
31
|
cuenta, así que un elemento aquí solo añadiría un nodo vacío.
|
|
30
32
|
-->
|
|
31
|
-
<
|
|
32
|
-
:is="entry.component"
|
|
33
|
+
<OverlayItem
|
|
33
34
|
v-for="(entry, index) in props.overlays"
|
|
34
35
|
:key="entry.id"
|
|
35
|
-
|
|
36
|
-
:
|
|
37
|
-
:open="entry.open"
|
|
38
|
-
v-on="entry.listeners"
|
|
36
|
+
:behind="!isTopmost(index)"
|
|
37
|
+
:entry="entry"
|
|
39
38
|
/>
|
|
40
39
|
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VunoOverlayEntry } from '#vuno/types/app';
|
|
2
|
+
type Props = {
|
|
3
|
+
overlays: readonly VunoOverlayEntry[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VunoOverlayEntry } from '#vuno/types/app';
|
|
2
|
+
type Props = {
|
|
3
|
+
behind: boolean;
|
|
4
|
+
entry: VunoOverlayEntry;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { provideVunoOverlayBehind } from "#vuno/composables/internal/useVunoOverlayBehind";
|
|
3
|
+
defineOptions({ name: "VunoOverlayItem" });
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
behind: { type: Boolean, required: true },
|
|
6
|
+
entry: { type: Object, required: true }
|
|
7
|
+
});
|
|
8
|
+
provideVunoOverlayBehind(() => props.behind);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<component
|
|
13
|
+
:is="props.entry.component"
|
|
14
|
+
v-bind="props.entry.props"
|
|
15
|
+
:open="props.entry.open"
|
|
16
|
+
v-on="props.entry.listeners"
|
|
17
|
+
/>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VunoOverlayEntry } from '#vuno/types/app';
|
|
2
|
+
type Props = {
|
|
3
|
+
behind: boolean;
|
|
4
|
+
entry: VunoOverlayEntry;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|