-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to Vue3 and Vuetify3 #44
Comments
Some I noticed in Vuetify-3 is a vue-intl (formatjs) intl adapter https://github.com/vuetifyjs/vuetify/blob/next/packages/vuetify/src/locale/adapters/vue-intl.ts |
Hi. |
Hi @deka, It depends. The Vuetify renderer set supports most of the Vanilla use cases and many more. Therefore you can very likely reuse your schemas and UI Schemas and everything should still work. If you implemented some custom renderers, they will likely still work, however they will no longer fit to the renderer set as you probably also want to use Vuetify for them then. These have to be reimplemented. Also any custom CSS will probably not fit when you switch. |
Hi @sdirix @kchobantonov After installation is done, when i am trying to use the package by importing vuetifyRenderers, getting following error,
Source code can be found here, code Could you please tell me what went wrong here? Thanks! |
@sdirix just went throught your fork sdirix/jsonforms-vuetify-renderers/tree/vue3-exploration |
@suraj740 Great that it works for you! Did you do many changes? Can you push your changes somewhere so I can take a look? |
Hi @sdirix Not many changes, just few ones like in You can have a look at my fork here. |
added fix for all enums, radiogroup, password and multistringcontrol types as well. |
Is it possible to actually create a pull-request of this in-progress integration and make a branch out of it ? |
@sdirix sometimes i get this error |
I created a Main missing parts:
Any help of the community is greatly appreciated, just open a PR against |
A first version of the Vue 3 Vuetify renderers is released as |
I tried using the preview branch with Nuxt3 and it also worked, thank you @sdirix |
Hi, @sdirix , oneOf examples don't work well with vuetify3 renderer, $ref won't be rendered even when the corresponding option is selected |
I'm trying this library out to finally migrate our codebase to vue3. So far, everything looks good but we also have a lot of custom renderers, so we don't use that many features. I'd also like to switch to vitest instead of jest. However I run into one problem I don't know how to resolve, maybe it's a bug? Or maybe some special configuration is required? Anyways: using a "standard" vite - vitest - vue3/test-utils with testing-library setup with the following vite config:
I get the following error:
which looks like it is coming from here. Any ideas? For full reproduction, see https://github.com/Martin-Idel/jsonformsproblem/tree/vitest-problem (branch vitest-problem):
|
Hi @Martin-Idel, It seems that you somehow end up in our commonJS product ( I'm not familiar with |
I literally just encountered the same thing. We're running Vite/Vitest so should be full ESM. I'll try to make a minimal reproduction to pin down where the miss-aligned import is happening. |
@yaffol Thanks. You can also try out my branch, it's already pretty stripped down, but my knowledge aoubt esm/cjs, etc. is sadly limited. |
Are the datepickers working with this I'm just trying to use a date input but it renders the default browser behaviour instead of the one that is part of vuetify Current render: Desired render: |
@fablexis the Vuetify 3 date pickers weren't released when the initial porting to Vue 3/Vuetify 3 happened, so they were reverted to native HTML5 datepickers. The Vuetify 3 date pickers are now released so it wouldn't be much work to port the components across from the main branch into the |
@Martin-Idel I tracked down the trouble with vitest to a missing Can you try this version of my fork to see if it fixes it for you too? |
@yaffol Sorry for the VERY late reply, I was preoccupied with other projects. I still get error messages, but this time, different ones, so that definitely goes in the right direction.
That looks like a different sort of problem between node and ESM module types. Maybe this time around, the error is on my part, but I don't see it, yet. |
Vuetify 3 beta is almost released.
It would be wise to test the renderer set against Vuetify 3 (and also, therefore, Vue3).
The text was updated successfully, but these errors were encountered: