diff --git a/.github/workflows/daily-project-check.yml b/.github/workflows/daily-project-check.yml index b4042d4b..e2c187d7 100644 --- a/.github/workflows/daily-project-check.yml +++ b/.github/workflows/daily-project-check.yml @@ -2,8 +2,8 @@ name: Daily project check on: schedule: - # build runs everyday at 6AM UTC - - cron: '0 6 * * *' + # build runs every weekday at 6AM UTC + - cron: '0 6 * * 1-5' jobs: build: @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [12.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: @@ -26,4 +26,4 @@ jobs: npm i npm run release env: - CI: true \ No newline at end of file + CI: true diff --git a/.github/workflows/project-check.yml b/.github/workflows/project-check.yml index 0553ccbb..61e73bed 100644 --- a/.github/workflows/project-check.yml +++ b/.github/workflows/project-check.yml @@ -1,8 +1,12 @@ name: Project check -on: +on: push: + branches: + - master pull_request: + branches: + - master jobs: build: @@ -11,7 +15,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [12.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: @@ -25,4 +29,4 @@ jobs: npm i npm run release env: - CI: true \ No newline at end of file + CI: true diff --git a/CHANGELOG.md b/CHANGELOG.md index f2d82404..b7530a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [3.1.5](https://github.com/coreui/coreui-vue/compare/3.1.4...3.1.5) + +> 7 December 2020 + +### Changed + +- chore: dependencies update [`dd02660`](https://github.com/coreui/coreui-vue/commit/dd02660767c8dc64bd9d50e77a70df685df3f2d3) +- chore: project checks update [`599dc2e`](https://github.com/coreui/coreui-vue/commit/599dc2e09a012c234239b39424a77917404a356d) +- fix(CTooltip): add missing updateTitle functionality [`ae9d901`](https://github.com/coreui/coreui-vue/commit/ae9d90113dab4253e84ee60bb729d7f9b1b0992a) + ## [3.1.4](https://github.com/coreui/coreui-vue/compare/3.1.3...3.1.4) > 26 October 2020 diff --git a/README.md b/README.md index 8ebc0434..907074e2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [][coreui] [][coreui] [][coreui] + [npm-coreui-vue]: https://www.npmjs.com/package/@coreui/vue [npm-coreui-vue-badge-latest]: https://img.shields.io/npm/v/@coreui/vue/latest?style=flat-square&color=brightgreen diff --git a/package.json b/package.json index 6504c79b..4806c323 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@coreui/vue", "description": "CoreUI Vue Bootstrap 4 layout components", - "version": "3.1.4", + "version": "3.1.5", "license": "MIT", "main": "dist/coreui-vue.common.js", "types": "src/index.d.ts", @@ -69,10 +69,10 @@ "changelog": "auto-changelog --template changelog-template.hbs --commit-limit false --package --backfill-limit 0 --starting-version 3.0.1" }, "dependencies": { - "@coreui/icons": "^2.0.0-beta.5", + "@coreui/icons": "^2.0.0-rc.0", "@coreui/icons-vue": "^1.3.5", "@coreui/utils": "^1.3.1", - "@popperjs/core": "~2.5.3", + "@popperjs/core": "~2.5.4", "lodash.clonedeep": "~4.5.0", "perfect-scrollbar": "~1.5.0", "tooltip.js": "~1.3.3", @@ -80,34 +80,33 @@ "vue-functional-data-merge": "~3.1.0" }, "devDependencies": { - "@vue/cli-plugin-babel": "~4.5.8", - "@vue/cli-plugin-eslint": "~4.5.8", - "@vue/cli-plugin-unit-jest": "~4.5.8", - "@vue/cli-service": "~4.5.8", + "@vue/cli-plugin-babel": "~4.5.9", + "@vue/cli-plugin-eslint": "~4.5.9", + "@vue/cli-plugin-unit-jest": "~4.5.9", + "@vue/cli-service": "~4.5.9", "@vue/test-utils": "1.0.0-beta.29", "auto-changelog": "^2.2.1", "babel-eslint": "~10.1.0", - "babel-jest": "~26.6.1", - "core-js": "~3.6.5", - "eslint": "~7.12.0", + "babel-jest": "~26.6.3", + "core-js": "~3.8.1", + "eslint": "^7.15.0", "eslint-plugin-vue": "~6.2.2", "identity-obj-proxy": "^3.0.0", "node-sass": "~4.14.1", "node-sass-magic-importer": "~5.3.2", "npm-run-all": "~4.1.5", - "rollup": "^2.32.1", + "rollup": "^2.34.2", "rollup-plugin-babel": "~4.4.0", "rollup-plugin-commonjs": "~10.1.0", - "rollup-plugin-filesize": "~9.0.2", + "rollup-plugin-filesize": "~9.1.0", "rollup-plugin-json": "~4.0.0", "rollup-plugin-license": "^2.2.0", "rollup-plugin-node-resolve": "~5.2.0", "rollup-plugin-postcss": "^3.1.8", "rollup-plugin-replace": "~2.2.0", - "rollup-plugin-uglify": "~6.0.4", "rollup-plugin-vue": "~5.1.9", "sass-loader": "^9.0.3", - "vue-router": "~3.4.8", + "vue-router": "~3.4.9", "vue-template-compiler": "^2.6.12" }, "eslintConfig": { diff --git a/src/directives/CTooltip.js b/src/directives/CTooltip.js index 471bbc9b..2f3d818e 100644 --- a/src/directives/CTooltip.js +++ b/src/directives/CTooltip.js @@ -5,6 +5,7 @@ export default { name: 'c-tooltip', inserted (el, binding) { binding.def._tooltip = new Tooltip(el, binding.def.getTooltipConfig(binding)) + el._c_tooltip = binding.def._tooltip if (binding.value.active) { binding.def._tooltip.show() } @@ -14,14 +15,15 @@ export default { if (tooltip) { tooltip.dispose() tooltip = null + el._c_tooltip = null } }, getTooltipConfig (binding) { const props = binding.value const title = props.content || props - const html = props.html === false ? false : true + const html = !!props.html !== false // const modifiersTriggers = String(Object.keys(binding.modifiers)).replace(',',' ') - const closeOnClickOutside = props.closeOnClickOutside === false ? false : true + const closeOnClickOutside = !!props.closeOnClickOutside !== false const popperOptions = props.popperOptions || { modifiers: { preventOverflow: { boundariesElement: 'offsetParent' }}} return { title, @@ -44,5 +46,15 @@ export default {
` + }, + update(el, binding, vnode) { + if (binding.value.content !== binding.oldValue.content && el === vnode.elm) { + el._c_tooltip.hide() + vnode.context.$nextTick(() => { + const title = binding.value.content + el._c_tooltip.updateTitleContent(title) + el._c_tooltip.show() + }) + } } }