diff --git a/README.md b/README.md index 1f9f1834..e6c179ec 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ · Request feature · + Roadmap + · Blog
@@ -46,7 +48,7 @@ Several quick start options are available: -- [Download the latest release](https://github.com/coreui/coreui-vue/archive/v5.6.0.zip) +- [Download the latest release](https://github.com/coreui/coreui-vue/archive/v5.7.0.zip) - Clone the repo: `git clone https://github.com/coreui/coreui-vue.git` - Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue` - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue` @@ -183,10 +185,11 @@ CoreUI supports most popular frameworks. Fully featured, out-of-the-box, templates for your application based on CoreUI. -- [Angular Admin Template](https://coreui.io/angular) -- [Bootstrap Admin Template](https://coreui.io/) -- [React Admin Template](https://coreui.io/react) -- [Vue Admin Template](https://coreui.io/vue) +- [Angular Admin Templates](https://coreui.io/themes-templates/admin-dashboard/angular/) +- [Bootstrap Admin Templates](https://coreui.io/themes-templates/admin-dashboard/bootstrap/) +- [Next.js Admin Templates](https://coreui.io/themes-templates/admin-dashboard/next-js/) +- [React Admin Templates](https://coreui.io/themes-templates/admin-dashboard/react/) +- [Vue Admin Templates](https://coreui.io/themes-templates/admin-dashboard/vue/) ## Contributing @@ -198,9 +201,9 @@ Editor preferences are available in the [editor config](https://github.com/coreu Stay up to date on the development of CoreUI and reach out to the community with these helpful resources. -- Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog/). - -You can also follow [@core_ui on Twitter](https://twitter.com/core_ui). +- Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog). +- Follow [@core_ui on Twitter](https://x.com/core_ui). +- Discuss, ask questions, and more on [the community Discord](https://discord.gg/pQRWe5XdGm). ## Versioning diff --git a/lerna.json b/lerna.json index a4d781c9..e456a603 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "npmClient": "yarn", "packages": ["packages/*"], - "version": "5.6.0", + "version": "5.7.0", "$schema": "node_modules/lerna/schemas/lerna-schema.json" } diff --git a/package.json b/package.json index c862edad..345d3fae 100644 --- a/package.json +++ b/package.json @@ -23,15 +23,15 @@ }, "devDependencies": { "@vue/vue3-jest": "29.2.6", - "eslint": "^9.34.0", + "eslint": "^9.35.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", - "eslint-plugin-unicorn": "^60.0.0", + "eslint-plugin-unicorn": "^61.0.2", "eslint-plugin-vue": "^10.4.0", - "globals": "^16.3.0", - "lerna": "^8.2.3", + "globals": "^16.4.0", + "lerna": "^8.2.4", "npm-run-all": "^4.1.5", "prettier": "^3.6.2", - "typescript-eslint": "^8.41.0" + "typescript-eslint": "^8.44.0" } } diff --git a/packages/coreui-vue/README.md b/packages/coreui-vue/README.md index aabe8d99..6237b002 100644 --- a/packages/coreui-vue/README.md +++ b/packages/coreui-vue/README.md @@ -46,7 +46,7 @@ Several quick start options are available: -- [Download the latest release](https://github.com/coreui/coreui-vue/archive/v5.6.0.zip) +- [Download the latest release](https://github.com/coreui/coreui-vue/archive/v5.7.0.zip) - Clone the repo: `git clone https://github.com/coreui/coreui-vue.git` - Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue` - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue` diff --git a/packages/coreui-vue/package.json b/packages/coreui-vue/package.json index 52f613fe..f932b6c5 100644 --- a/packages/coreui-vue/package.json +++ b/packages/coreui-vue/package.json @@ -1,6 +1,6 @@ { "name": "@coreui/vue", - "version": "5.6.0", + "version": "5.7.0", "description": "UI Components Library for Vue.js", "keywords": [ "vue", @@ -54,11 +54,11 @@ "cross-env": "^10.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", - "rollup": "^4.50.0", + "rollup": "^4.50.2", "rollup-plugin-vue": "^6.0.0", "ts-jest": "^29.4.1", "typescript": "^5.9.2", - "vue": "^3.5.20", + "vue": "^3.5.21", "vue-types": "^6.0.0" }, "peerDependencies": { diff --git a/packages/coreui-vue/src/components/dropdown/CDropdown.ts b/packages/coreui-vue/src/components/dropdown/CDropdown.ts index 997e39a3..d51b4c8e 100644 --- a/packages/coreui-vue/src/components/dropdown/CDropdown.ts +++ b/packages/coreui-vue/src/components/dropdown/CDropdown.ts @@ -1,4 +1,15 @@ -import { defineComponent, h, ref, provide, watch, PropType, onUnmounted, nextTick } from 'vue' +import { + computed, + defineComponent, + h, + nextTick, + onUnmounted, + provide, + PropType, + ref, + Ref, + watch, +} from 'vue' import type { Placement } from '@popperjs/core' import { usePopper } from '../../composables' @@ -6,7 +17,8 @@ import type { Triggers } from '../../types' import { getNextActiveElement, isRTL } from '../../utils' import type { Alignments } from './types' -import { getPlacement } from './utils' +import { getPlacement, getReferenceElement } from './utils' +import { CFocusTrap } from '../focus-trap' const CDropdown = defineComponent({ name: 'CDropdown', @@ -53,7 +65,7 @@ const CDropdown = defineComponent({ * - `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu. */ autoClose: { - type: [Boolean, String], + type: [Boolean, String] as PropType