-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: replace redundant useManagedState with Vue's defineModel #2529
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 21148a0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
42ee9e0
to
7deab1a
Compare
packages/sit-onyx/src/components/OnyxMiniSearch/OnyxMiniSearch.vue
Outdated
Show resolved
Hide resolved
packages/sit-onyx/src/components/examples/FormExample/FormExample.vue
Outdated
Show resolved
Hide resolved
@@ -3,6 +3,7 @@ | |||
"include": ["src/**/*"], | |||
"compilerOptions": { | |||
"rootDir": "./src", | |||
"lib": ["DOM", "DOM.Iterable", "ES2022"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed? Same question for the playground
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm shouldn't the headless code be inlined? Maybe this has something to do with the update to Vite 6 in #2530 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JavaScript is inlined, the typings are not inlined afaik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is related, because there are no issues on main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should find out why and fix this, otherwise propably all projects using onyx will have build errors...
a77be86
to
77d2951
Compare
@@ -424,7 +423,6 @@ defineExpose({ input: computed(() => selectInput.value?.input) }); | |||
value: option.value, | |||
label: option.label, | |||
disabled: option.disabled, | |||
// TODO: remove type cast once its fixed in Vue / vue-tsc version | |||
selected: arrayValue.some((value: TValue) => value === option.value), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selected: arrayValue.some((value: TValue) => value === option.value), | |
selected: arrayValue.some((value) => value === option.value), |
I guess the TODO was meant for this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the type hint here is still necessary
6138353
to
21148a0
Compare
The changes are mostly internal, but the typings were of
OnyxSelect
have changed:modelValue
now infers a specific subtype ofSelectOptionValue
and theoptions
values must match.withSearch
: Filtering of the options will not automatically disabled anymore whensearchTerm
is bound. InsteadnoFilter
must be set.Arrayable
type, imported fromvitest
, as it was an internal type. Replaced with our own type with the same name.MaybeReactiveSource
type, as it is now covered by Vue'sMaybeRefOrGetter
type