From 96055661c0714532f2f7aa2f868abe128a38f619 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 16 Dec 2022 18:16:58 +0100 Subject: [PATCH] Update v-calendar to a @vue/compat compatible fork ... Includes: - https://github.com/nathanreyes/v-calendar/pull/1228 - https://github.com/nathanreyes/v-calendar/pull/1149 --- package.json | 1 - packages/design-system/package.json | 4 +- .../OcDatepicker/OcDatepicker.spec.ts | 14 ++--- .../components/OcDatepicker/OcDatepicker.vue | 17 ++++-- pnpm-lock.yaml | 52 ++++++++++--------- 5 files changed, 48 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index f31aaab9f0b..a2ed8432dca 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,6 @@ }, "patchedDependencies": { "@adobe/leonardo-contrast-colors@1.0.0-alpha.16": "patches/@adobe__leonardo-contrast-colors@1.0.0-alpha.16.patch", - "v-calendar@2.3.4": "patches/v-calendar@2.3.4.patch", "vue-gettext@2.1.12": "patches/vue-gettext@2.1.12.patch" } } diff --git a/packages/design-system/package.json b/packages/design-system/package.json index 478d28cf1de..4b2f6e0712c 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -106,7 +106,7 @@ "tippy.js": "^6.3.7", "typescript": "^4.3.2", "url-loader": "^4.1.1", - "v-calendar": "^2.3.4", + "v-calendar": "github:dschmidt/v-calendar#3ce6e3b8afd5491cb53ee811281d5fa8a45b044d", "vue-gettext": "^2.1.12", "vue-inline-svg": "^2.0.0", "vue-jest": "^3.0.4", @@ -134,7 +134,7 @@ "postcss-import": "^12.0.1", "postcss-url": "^9.0.0", "tippy.js": "^6.3.7", - "v-calendar": "^2.3.4", + "v-calendar": "github:dschmidt/v-calendar#3ce6e3b8afd5491cb53ee811281d5fa8a45b044d", "vue": "3.2.45", "vue-inline-svg": "^2.0.0", "vue-select": "^3.12.0", diff --git a/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts b/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts index 26b1f3c1730..c5270dfa3bb 100644 --- a/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts +++ b/packages/design-system/src/components/OcDatepicker/OcDatepicker.spec.ts @@ -1,16 +1,16 @@ -import { shallowMount } from 'web-test-helpers' - import Datepicker from './OcDatepicker.vue' - -const slotDefault = "" +import { mount } from 'web-test-helpers' describe('OcDatePicker', () => { it('renders default scoped slot', () => { - const wrapper = shallowMount(Datepicker, { + const slotDefault = "" + const wrapper = mount(Datepicker, { slots: { default: slotDefault }, - props: { value: null } + props: { value: null }, + global: { + renderStubDefaultSlot: true + } }) - expect(wrapper.find('#default-slot').exists()).toBeTruthy() }) }) diff --git a/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue b/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue index afcc4412c89..a4e8dbf208e 100644 --- a/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue +++ b/packages/design-system/src/components/OcDatepicker/OcDatepicker.vue @@ -1,5 +1,5 @@