diff --git a/package.json b/package.json index a860f8d3..38d19388 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,10 @@ "@vueuse/core": "9.2.0", "@vueuse/router": "9.2.0", "axios": "0.27.2", - "blurhash": "1.1.5", + "blurhash": "2.0.0", "bulma-css-variables": "0.9.33", "camel-case": "4.1.2", - "date-fns": "2.29.2", + "date-fns": "2.29.3", "dompurify": "2.4.0", "easymde": "2.17.0", "flatpickr": "4.6.13", @@ -66,33 +66,33 @@ "@cypress/vue": "4.2.0", "@faker-js/faker": "7.5.0", "@types/flexsearch": "0.7.3", - "@typescript-eslint/eslint-plugin": "5.36.2", - "@typescript-eslint/parser": "5.36.2", + "@typescript-eslint/eslint-plugin": "5.37.0", + "@typescript-eslint/parser": "5.37.0", "@vitejs/plugin-legacy": "2.1.0", "@vitejs/plugin-vue": "3.1.0", "@vue/eslint-config-typescript": "11.0.1", "@vue/test-utils": "2.0.2", "@vue/tsconfig": "0.1.3", - "autoprefixer": "10.4.8", + "autoprefixer": "10.4.10", "browserslist": "4.21.3", - "caniuse-lite": "1.0.30001390", + "caniuse-lite": "1.0.30001397", "cypress": "10.7.0", "esbuild": "0.15.7", - "eslint": "8.23.0", + "eslint": "8.23.1", "eslint-plugin-vue": "9.4.0", "express": "4.18.1", "happy-dom": "6.0.4", - "netlify-cli": "11.5.1", + "netlify-cli": "11.7.1", "postcss": "8.4.16", "postcss-preset-env": "7.8.1", "rollup": "2.79.0", "rollup-plugin-visualizer": "5.8.1", "sass": "1.54.9", - "typescript": "4.8.2", + "typescript": "4.8.3", "vite": "3.1.0", "vite-plugin-pwa": "0.12.7", "vite-svg-loader": "3.6.0", - "vitest": "0.23.1", + "vitest": "0.23.2", "vue-tsc": "0.40.13", "wait-on": "6.0.1", "workbox-cli": "6.5.4" diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index 848877c4..e27acf7a 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -85,7 +85,7 @@ import DatemathHelp from '@/components/date/datemathHelp.vue' const store = useStore() const {t} = useI18n({useScope: 'global'}) -const emit = defineEmits(['dateChanged', 'update:modelValue']) +const emit = defineEmits(['update:modelValue']) const props = defineProps({ modelValue: { required: false, @@ -127,7 +127,6 @@ function emitChanged() { dateFrom: from.value === '' ? null : from.value, dateTo: to.value === '' ? null : to.value, } - emit('dateChanged', args) emit('update:modelValue', args) } diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue index 33cbf62f..dc09c5d7 100644 --- a/src/components/home/navigation.vue +++ b/src/components/home/navigation.vue @@ -156,8 +156,8 @@ import {calculateItemPosition} from '@/helpers/calculateItemPosition' import {getNamespaceTitle} from '@/helpers/getNamespaceTitle' import {getListTitle} from '@/helpers/getListTitle' import {useEventListener} from '@vueuse/core' -import type { IList } from '@/models/list' -import type { INamespace } from '@/models/namespace' +import type {IList} from '@/modelTypes/IList' +import type {INamespace} from '@/modelTypes/INamespace' const drag = ref(false) const dragOptions = { diff --git a/src/components/input/colorPicker.vue b/src/components/input/colorPicker.vue index 335afce3..1cb0c58e 100644 --- a/src/components/input/colorPicker.vue +++ b/src/components/input/colorPicker.vue @@ -68,7 +68,7 @@ export default defineComponent({ default: 'top', }, }, - emits: ['update:modelValue', 'change'], + emits: ['update:modelValue'], watch: { modelValue: { handler(modelValue) { @@ -98,7 +98,6 @@ export default defineComponent({ this.lastChangeTimeout = setTimeout(() => { this.$emit('update:modelValue', this.color) - this.$emit('change') }, 500) }, reset() { diff --git a/src/components/input/datepicker.vue b/src/components/input/datepicker.vue index d5e35e33..733a9fab 100644 --- a/src/components/input/datepicker.vue +++ b/src/components/input/datepicker.vue @@ -131,7 +131,7 @@ export default defineComponent({ default: false, }, }, - emits: ['update:modelValue', 'change', 'close', 'close-on-change'], + emits: ['update:modelValue', 'close', 'close-on-change'], mounted() { document.addEventListener('click', this.hideDatePopup) }, @@ -186,7 +186,6 @@ export default defineComponent({ updateData() { this.changed = true this.$emit('update:modelValue', this.date) - this.$emit('change', this.date) }, toggleDatePopup() { if (this.disabled) { diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue index e2ec5d66..839df338 100644 --- a/src/components/input/editor.vue +++ b/src/components/input/editor.vue @@ -136,7 +136,7 @@ export default defineComponent({ default: '', }, }, - emits: ['update:modelValue', 'change'], + emits: ['update:modelValue'], computed: { showPreviewText() { return this.isPreviewActive && this.text === '' && this.emptyText !== '' @@ -212,7 +212,6 @@ export default defineComponent({ this.changeTimeout = setTimeout(() => { this.$emit('update:modelValue', this.text) - this.$emit('change', this.text) }, timeout) }, replaceAt(str, index, replacement) { diff --git a/src/components/list/list-settings-dropdown.vue b/src/components/list/list-settings-dropdown.vue index 611bf870..c32078a2 100644 --- a/src/components/list/list-settings-dropdown.vue +++ b/src/components/list/list-settings-dropdown.vue @@ -60,8 +60,8 @@ :is-button="false" entity="list" :entity-id="list.id" - :subscription="list.subscription" - @change="sub => subscription = sub" + :model-value="list.subscription" + @update:model-value="sub => subscription = sub" type="dropdown" /> {{ $t('task.attributes.dueDate') }}
+ v-model="filters.dueDate" + @update:model-value="values => setDateFilter('due_date', values)" + >