@effect-app/vue-components 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/types/components/CommandButton.vue.d.ts +12 -8
  2. package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +8 -4
  3. package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +9 -5
  4. package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +4 -4
  5. package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +8 -4
  6. package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +8 -4
  7. package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +9 -5
  8. package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +9 -5
  9. package/dist/types/components/OmegaForm/OmegaTaggedUnion.vue.d.ts +9 -9
  10. package/dist/types/components/OmegaForm/OmegaTaggedUnionInternal.vue.d.ts +9 -5
  11. package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +9 -5
  12. package/dist/vue-components.es10.js +7 -7
  13. package/dist/vue-components.es11.js +3 -3
  14. package/dist/vue-components.es12.js +1 -1
  15. package/dist/vue-components.es16.js +11 -4
  16. package/dist/vue-components.es17.js +4 -10
  17. package/dist/vue-components.es18.js +10 -55
  18. package/dist/vue-components.es19.js +50 -63
  19. package/dist/vue-components.es20.js +68 -6
  20. package/dist/vue-components.es21.js +5 -5
  21. package/dist/vue-components.es22.js +6 -3
  22. package/dist/vue-components.es23.js +3 -3
  23. package/dist/vue-components.es24.js +3 -2
  24. package/dist/vue-components.es25.js +1 -1
  25. package/dist/vue-components.es26.js +1 -1
  26. package/dist/vue-components.es27.js +1 -1
  27. package/dist/vue-components.es28.js +2 -17
  28. package/dist/vue-components.es29.js +16 -10
  29. package/dist/vue-components.es3.js +1 -1
  30. package/dist/vue-components.es33.js +1 -1
  31. package/dist/vue-components.es34.js +1 -1
  32. package/dist/vue-components.es5.js +1 -1
  33. package/dist/vue-components.es57.js +1 -1
  34. package/package.json +24 -24
@@ -3,8 +3,11 @@ import type { VBtn } from "vuetify/components";
3
3
  export type VBtnProps = VBtn["$props"];
4
4
  export interface ButtonProps extends /* @vue-ignore */ VBtnProps {
5
5
  }
6
- declare const __VLS_export: <I = never>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
- props: __VLS_PrettifyLocal<({
6
+ /** Command Button is an easy way to connect commands and have it execute on click, while keeping track of disabled/loading states automatically */
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ declare const __VLS_export: <I = never>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
10
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
8
11
  input: NoInfer<I>;
9
12
  command: CommandBase<I>;
10
13
  empty?: boolean;
@@ -15,7 +18,9 @@ declare const __VLS_export: <I = never>(__VLS_props: NonNullable<Awaited<typeof
15
18
  }) & {
16
19
  disabled?: ButtonProps["disabled"];
17
20
  title?: string;
18
- } & ButtonProps> & import("vue").PublicProps;
21
+ } & ButtonProps> & (typeof globalThis extends {
22
+ __VLS_PROPS_FALLBACK: infer P;
23
+ } ? P : {});
19
24
  expose: (exposed: {}) => void;
20
25
  attrs: any;
21
26
  slots: {
@@ -30,9 +35,8 @@ declare const __VLS_export: <I = never>(__VLS_props: NonNullable<Awaited<typeof
30
35
  }>) => import("vue").VNode & {
31
36
  __ctx?: Awaited<typeof __VLS_setup>;
32
37
  };
33
- /** Command Button is an easy way to connect commands and have it execute on click, while keeping track of disabled/loading states automatically */
34
- declare const _default: typeof __VLS_export;
35
- export default _default;
36
- type __VLS_PrettifyLocal<T> = {
38
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
39
+ [K in keyof T]: T[K];
40
+ } : {
37
41
  [K in keyof T as K]: T[K];
38
- } & {};
42
+ }) & {};
@@ -1,7 +1,9 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { type OmegaArrayProps } from "./OmegaFormStuff";
3
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<OmegaArrayProps<From, To, Name>> & import("vue").PublicProps;
3
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<OmegaArrayProps<From, To, Name>> & (typeof globalThis extends {
5
+ __VLS_PROPS_FALLBACK: infer P;
6
+ } ? P : {});
5
7
  expose: (exposed: {}) => void;
6
8
  attrs: any;
7
9
  slots: {
@@ -32,6 +34,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
32
34
  };
33
35
  declare const _default: typeof __VLS_export;
34
36
  export default _default;
35
- type __VLS_PrettifyLocal<T> = {
37
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
38
+ [K in keyof T]: T[K];
39
+ } : {
36
40
  [K in keyof T as K]: T[K];
37
- } & {};
41
+ }) & {};
@@ -2,8 +2,8 @@ import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { Order } from "effect-app";
3
3
  import { type OmegaAutoGenMeta, type OmegaInputProps } from "./OmegaFormStuff";
4
4
  declare const __VLS_export: <// dprint-ignore
5
- From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<{
5
+ From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
7
7
  form: OmegaInputProps<From, To, Name>["form"];
8
8
  pick?: DeepKeys<From>[];
9
9
  omit?: DeepKeys<From>[];
@@ -11,7 +11,9 @@ From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>
11
11
  filterMap?: <M extends OmegaAutoGenMeta<From, To, Name>>(key: DeepKeys<From>, meta: M) => boolean | M;
12
12
  order?: DeepKeys<From>[];
13
13
  sort?: Order.Order<OmegaAutoGenMeta<From, To, Name>>;
14
- }> & import("vue").PublicProps;
14
+ }> & (typeof globalThis extends {
15
+ __VLS_PROPS_FALLBACK: infer P;
16
+ } ? P : {});
15
17
  expose: (exposed: {}) => void;
16
18
  attrs: any;
17
19
  slots: {
@@ -25,6 +27,8 @@ From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>
25
27
  };
26
28
  declare const _default: typeof __VLS_export;
27
29
  export default _default;
28
- type __VLS_PrettifyLocal<T> = {
30
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
31
+ [K in keyof T]: T[K];
32
+ } : {
29
33
  [K in keyof T as K]: T[K];
30
- } & {};
34
+ }) & {};
@@ -5,14 +5,14 @@ type __VLS_Props = {
5
5
  errors: OmegaError[];
6
6
  hideErrorDetails?: boolean;
7
7
  };
8
- declare var __VLS_6: {
8
+ declare var __VLS_7: {
9
9
  errors: OmegaError[];
10
10
  showedGeneralErrors: string[];
11
- }, __VLS_13: {};
11
+ }, __VLS_15: {};
12
12
  type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_6) => any;
13
+ default?: (props: typeof __VLS_7) => any;
14
14
  } & {
15
- icon?: (props: typeof __VLS_13) => any;
15
+ icon?: (props: typeof __VLS_15) => any;
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,8 +1,10 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { MergedInputProps } from "./InputProps";
3
3
  import type { BaseProps, DefaultTypeProps } from "./OmegaFormStuff";
4
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<BaseProps<From, Name> & DefaultTypeProps> & import("vue").PublicProps;
4
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<BaseProps<From, Name> & DefaultTypeProps> & (typeof globalThis extends {
6
+ __VLS_PROPS_FALLBACK: infer P;
7
+ } ? P : {});
6
8
  expose: (exposed: {}) => void;
7
9
  attrs: any;
8
10
  slots: {
@@ -14,6 +16,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
14
16
  };
15
17
  declare const _default: typeof __VLS_export;
16
18
  export default _default;
17
- type __VLS_PrettifyLocal<T> = {
19
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
20
+ [K in keyof T]: T[K];
21
+ } : {
18
22
  [K in keyof T as K]: T[K];
19
- } & {};
23
+ }) & {};
@@ -1,7 +1,9 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { type OmegaInputPropsBase } from "./OmegaFormStuff";
3
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<OmegaInputPropsBase<From, To, Name>> & import("vue").PublicProps;
3
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<OmegaInputPropsBase<From, To, Name>> & (typeof globalThis extends {
5
+ __VLS_PROPS_FALLBACK: infer P;
6
+ } ? P : {});
5
7
  expose: (exposed: {}) => void;
6
8
  attrs: any;
7
9
  slots: {
@@ -18,6 +20,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
18
20
  };
19
21
  declare const _default: typeof __VLS_export;
20
22
  export default _default;
21
- type __VLS_PrettifyLocal<T> = {
23
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
24
+ [K in keyof T]: T[K];
25
+ } : {
22
26
  [K in keyof T as K]: T[K];
23
- } & {};
27
+ }) & {};
@@ -1,10 +1,12 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { VuetifyInputProps } from "./InputProps";
3
- declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<VuetifyInputProps<From, Name> & {
3
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<VuetifyInputProps<From, Name> & {
5
5
  onBlur?: ((event: Event) => any) | undefined;
6
6
  onFocus?: ((event: Event) => any) | undefined;
7
- }> & import("vue").PublicProps;
7
+ }> & (typeof globalThis extends {
8
+ __VLS_PROPS_FALLBACK: infer P;
9
+ } ? P : {});
8
10
  expose: (exposed: {}) => void;
9
11
  attrs: any;
10
12
  slots: {
@@ -59,6 +61,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends
59
61
  };
60
62
  declare const _default: typeof __VLS_export;
61
63
  export default _default;
62
- type __VLS_PrettifyLocal<T> = {
64
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
65
+ [K in keyof T]: T[K];
66
+ } : {
63
67
  [K in keyof T as K]: T[K];
64
- } & {};
68
+ }) & {};
@@ -2,8 +2,8 @@ import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { type ComputedRef } from "vue";
3
3
  import type { OmegaFieldInternalApi } from "./InputProps";
4
4
  import type { FieldValidators, MetaRecord, NestedKeyOf, TypeOverride } from "./OmegaFormStuff";
5
- declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<{
5
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
7
7
  field: OmegaFieldInternalApi<From, Name>;
8
8
  state: OmegaFieldInternalApi<From, Name>["state"];
9
9
  meta: MetaRecord<From>[NestedKeyOf<From>];
@@ -21,7 +21,9 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends
21
21
  title: string;
22
22
  value: string;
23
23
  }[];
24
- }> & import("vue").PublicProps;
24
+ }> & (typeof globalThis extends {
25
+ __VLS_PROPS_FALLBACK: infer P;
26
+ } ? P : {});
25
27
  expose: (exposed: {}) => void;
26
28
  attrs: any;
27
29
  slots: {
@@ -53,6 +55,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends
53
55
  };
54
56
  declare const _default: typeof __VLS_export;
55
57
  export default _default;
56
- type __VLS_PrettifyLocal<T> = {
58
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
59
+ [K in keyof T]: T[K];
60
+ } : {
57
61
  [K in keyof T as K]: T[K];
58
- } & {};
62
+ }) & {};
@@ -1,14 +1,16 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { type TaggedUnionOption } from "./InputProps";
3
3
  import { type useOmegaForm } from "./useOmegaForm";
4
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From> | undefined = DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<{
4
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From> | undefined = DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
6
6
  name?: Name;
7
7
  form: ReturnType<typeof useOmegaForm<From, To>>;
8
8
  type?: "select" | "radio";
9
9
  options: TaggedUnionOption<From, Name>[];
10
10
  label?: string;
11
- }> & import("vue").PublicProps;
11
+ }> & (typeof globalThis extends {
12
+ __VLS_PROPS_FALLBACK: infer P;
13
+ } ? P : {});
12
14
  expose: (exposed: {}) => void;
13
15
  attrs: any;
14
16
  slots: {
@@ -16,10 +18,6 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
16
18
  field: import("./InputProps").OmegaFieldInternalApi<From, "_tag" | `${NonNullable<Name>}._tag`>;
17
19
  state: NonNullable<import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>>;
18
20
  }) => any) | undefined;
19
- [x: number]: ((props: {
20
- field: import("./InputProps").OmegaFieldInternalApi<From, "_tag" | `${NonNullable<Name>}._tag`>;
21
- state: NonNullable<import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>>;
22
- }) => any) | undefined;
23
21
  } & {
24
22
  OmegaCustomInput?: (props: {
25
23
  field: import("@tanstack/vue-form").FieldApi<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").StandardSchemaV1<From, To>, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, Record<string, any> | undefined>;
@@ -36,6 +34,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
36
34
  };
37
35
  declare const _default: typeof __VLS_export;
38
36
  export default _default;
39
- type __VLS_PrettifyLocal<T> = {
37
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
38
+ [K in keyof T]: T[K];
39
+ } : {
40
40
  [K in keyof T as K]: T[K];
41
- } & {};
41
+ }) & {};
@@ -1,13 +1,15 @@
1
1
  import { type DeepKeys, type DeepValue } from "@tanstack/vue-form";
2
2
  import { type OmegaFieldInternalApi } from "./InputProps";
3
3
  import { type useOmegaForm } from "./useOmegaForm";
4
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<{
4
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
6
6
  state: DeepValue<From, Name>;
7
7
  field: OmegaFieldInternalApi<From, Name>;
8
8
  name?: DeepKeys<From>;
9
9
  form: ReturnType<typeof useOmegaForm<From, To>>;
10
- }> & import("vue").PublicProps;
10
+ }> & (typeof globalThis extends {
11
+ __VLS_PROPS_FALLBACK: infer P;
12
+ } ? P : {});
11
13
  expose: (exposed: {}) => void;
12
14
  attrs: any;
13
15
  slots: {
@@ -22,6 +24,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
22
24
  };
23
25
  declare const _default: typeof __VLS_export;
24
26
  export default _default;
25
- type __VLS_PrettifyLocal<T> = {
27
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
28
+ [K in keyof T]: T[K];
29
+ } : {
26
30
  [K in keyof T as K]: T[K];
27
- } & {};
31
+ }) & {};
@@ -1,11 +1,13 @@
1
1
  import { type DefaultTypeProps, type OmegaFormState } from "./OmegaFormStuff";
2
2
  import { type OmegaFormReturn } from "./useOmegaForm";
3
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, K extends keyof OmegaFormState<From, To> = keyof OmegaFormState<From, To>, Props = DefaultTypeProps>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<{
3
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, K extends keyof OmegaFormState<From, To> = keyof OmegaFormState<From, To>, Props = DefaultTypeProps>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
5
5
  form: OmegaFormReturn<From, To, Props>;
6
6
  disabled?: boolean;
7
7
  subscribe?: K[];
8
- }> & import("vue").PublicProps;
8
+ }> & (typeof globalThis extends {
9
+ __VLS_PROPS_FALLBACK: infer P;
10
+ } ? P : {});
9
11
  expose: (exposed: {}) => void;
10
12
  attrs: any;
11
13
  slots: {
@@ -19,6 +21,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
19
21
  };
20
22
  declare const _default: typeof __VLS_export;
21
23
  export default _default;
22
- type __VLS_PrettifyLocal<T> = {
24
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
25
+ [K in keyof T]: T[K];
26
+ } : {
23
27
  [K in keyof T as K]: T[K];
24
- } & {};
28
+ }) & {};
@@ -1,17 +1,17 @@
1
1
  import { useForm as K } from "@tanstack/vue-form";
2
2
  import { Data as T, S as W, Effect as d, Fiber as $, Option as j, Array as F } from "effect-app";
3
- import { runtimeFiberAsPromise as z } from "./vue-components.es17.js";
3
+ import { runtimeFiberAsPromise as z } from "./vue-components.es18.js";
4
4
  import { computed as x, onUnmounted as D, onMounted as G, onBeforeUnmount as Z, watch as R, ref as Q, h as J } from "vue";
5
5
  import { useIntl as X } from "./vue-components.es3.js";
6
- import Y from "./vue-components.es18.js";
7
- import C from "./vue-components.es19.js";
8
- import ee from "./vue-components.es20.js";
6
+ import Y from "./vue-components.es19.js";
7
+ import C from "./vue-components.es20.js";
8
+ import ee from "./vue-components.es21.js";
9
9
  import { generateMetaFromSchema as re, deepMerge as N, defaultsValueFromSchema as te } from "./vue-components.es12.js";
10
10
  import se from "./vue-components.es6.js";
11
11
  import ne from "./vue-components.es8.js";
12
- import oe from "./vue-components.es21.js";
13
- import { trace as H } from "./vue-components.es22.js";
14
- import { context as U } from "./vue-components.es23.js";
12
+ import oe from "./vue-components.es22.js";
13
+ import { trace as H } from "./vue-components.es23.js";
14
+ import { context as U } from "./vue-components.es24.js";
15
15
  class ie extends T.TaggedError("FormErrors") {
16
16
  }
17
17
  const M = (i) => function(s) {
@@ -1,7 +1,7 @@
1
- import l from "./vue-components.es28.js";
1
+ import l from "./vue-components.es29.js";
2
2
  import { inject as c, provide as u } from "vue";
3
- import { onMountedWithCleanup as f } from "./vue-components.es29.js";
4
- const p = () => l(), i = Symbol("DialogBus"), r = () => c(i, null), g = () => {
3
+ import { onMountedWithCleanup as f } from "./vue-components.es16.js";
4
+ const p = () => l(), i = /* @__PURE__ */ Symbol("DialogBus"), r = () => c(i, null), g = () => {
5
5
  const n = p();
6
6
  return u(i, n), n;
7
7
  }, d = (n) => {
@@ -1,7 +1,7 @@
1
1
  import { S as i, Option as M } from "effect-app";
2
2
  import { getMetadataFromSchema as V } from "@effect-app/vue/form";
3
3
  import { useIntl as E, getTransformationFrom as _ } from "./vue-components.es3.js";
4
- import { isObject as $ } from "./vue-components.es16.js";
4
+ import { isObject as $ } from "./vue-components.es17.js";
5
5
  const j = (e) => i.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKeyword" || n === i.Null.ast), c = (e) => !e || !i.AST.isUnion(e) ? !1 : e.types.find((n) => n._tag === "UndefinedKeyword") ? "undefined" : e.types.find((n) => n === i.Null.ast) ? "null" : !1, L = (e) => {
6
6
  const n = [];
7
7
  for (const t of e)
@@ -1,6 +1,13 @@
1
- import "vue";
2
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3
- const t = Object.prototype.toString, c = (o) => t.call(o) === "[object Object]";
1
+ import { onMounted as e, onUnmounted as u } from "vue";
2
+ function p(t) {
3
+ let n;
4
+ e(() => {
5
+ const o = t();
6
+ o && (n = o);
7
+ }), u(() => {
8
+ n && n();
9
+ });
10
+ }
4
11
  export {
5
- c as isObject
12
+ p as onMountedWithCleanup
6
13
  };
@@ -1,12 +1,6 @@
1
- import { Exit as c, Runtime as u } from "effect";
2
- import { dual as n, isFunction as m } from "./vue-components.es32.js";
3
- const i = Symbol.for("clone-trait"), a = n(2, (e, t) => i in e ? e[i](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e)));
4
- n(2, (e, t) => a(e, { ...e, ...m(t) ? t(e) : t }));
5
- const p = (e, t) => new Promise((o, s) => e.addObserver((r) => {
6
- c.isSuccess(r) ? o(r.value) : s(u.makeFiberFailure(r.cause));
7
- }));
1
+ import "vue";
2
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3
+ const t = Object.prototype.toString, c = (o) => t.call(o) === "[object Object]";
8
4
  export {
9
- a as clone,
10
- i as cloneTrait,
11
- p as runtimeFiberAsPromise
5
+ c as isObject
12
6
  };
@@ -1,57 +1,12 @@
1
- import { defineComponent as F, computed as f, onMounted as M, provide as P, createBlock as c, openBlock as s, resolveDynamicComponent as p, withCtx as g, renderSlot as o, createElementBlock as k, normalizeProps as l, guardReactiveProps as u, Fragment as A, renderList as C, mergeProps as b } from "vue";
2
- const N = /* @__PURE__ */ F({
3
- inheritAttrs: !1,
4
- __name: "OmegaArray",
5
- props: {
6
- form: {},
7
- inputClass: {},
8
- name: {},
9
- defaultItems: {},
10
- items: {}
11
- },
12
- setup(n) {
13
- const a = n, y = a.form.useStore((e) => e.values), i = f(() => {
14
- const e = a.name.replace(/\[/g, ".").replace(/\]/g, "");
15
- try {
16
- return e.split(".").reduce((r, t) => r && r[t], y.value);
17
- } catch (r) {
18
- return console.error(r), [];
19
- }
20
- });
21
- M(async () => {
22
- a.defaultItems && !i.value && a.form.setFieldValue(a.name, a.defaultItems);
23
- });
24
- const $ = f(() => (r) => {
25
- const t = r.replace(/\[\d+\]/g, "");
26
- return a.form.meta[t];
27
- });
28
- return P("getMetaFromArray", $), (e, r) => (s(), c(p(n.form.Field), { name: n.name }, {
29
- default: g(({ field: t, state: d }) => [
30
- o(e.$slots, "pre-array", l(u({ field: t, state: d }))),
31
- (s(!0), k(A, null, C(i.value, (B, m) => (s(), c(p(n.form.Field), {
32
- key: `${n.name}[${Number(m)}]`,
33
- name: (
34
- // eslint-disable-next-line
35
- `${n.name}[${Number(m)}]`
36
- )
37
- }, {
38
- default: g(({ field: v, state: h }) => [
39
- o(e.$slots, "default", b({ ref_for: !0 }, {
40
- subField: v,
41
- subState: h,
42
- index: Number(m),
43
- field: t
44
- }))
45
- ]),
46
- _: 2
47
- }, 1032, ["name"]))), 128)),
48
- o(e.$slots, "post-array", l(u({ field: t, state: d }))),
49
- o(e.$slots, "field", l(u({ field: t })))
50
- ]),
51
- _: 3
52
- }, 8, ["name"]));
53
- }
54
- });
1
+ import { Exit as c, Runtime as u } from "effect";
2
+ import { dual as n, isFunction as m } from "./vue-components.es32.js";
3
+ const i = /* @__PURE__ */ Symbol.for("clone-trait"), a = n(2, (e, t) => i in e ? e[i](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e)));
4
+ n(2, (e, t) => a(e, { ...e, ...m(t) ? t(e) : t }));
5
+ const p = (e, t) => new Promise((o, s) => e.addObserver((r) => {
6
+ c.isSuccess(r) ? o(r.value) : s(u.makeFiberFailure(r.cause));
7
+ }));
55
8
  export {
56
- N as default
9
+ a as clone,
10
+ i as cloneTrait,
11
+ p as runtimeFiberAsPromise
57
12
  };
@@ -1,70 +1,57 @@
1
- import { defineComponent as O, computed as j, createElementBlock as M, openBlock as _, Fragment as E, renderList as A, renderSlot as F, createVNode as g, unref as h, mergeProps as k } from "vue";
2
- import { Order as l, pipe as v, Array as u } from "effect-app";
3
- const I = /* @__PURE__ */ O({
4
- __name: "OmegaAutoGen",
1
+ import { defineComponent as F, computed as f, onMounted as M, provide as P, createBlock as c, openBlock as s, resolveDynamicComponent as p, withCtx as g, renderSlot as o, createElementBlock as k, normalizeProps as l, guardReactiveProps as u, Fragment as A, renderList as C, mergeProps as b } from "vue";
2
+ const N = /* @__PURE__ */ F({
3
+ inheritAttrs: !1,
4
+ __name: "OmegaArray",
5
5
  props: {
6
6
  form: {},
7
- pick: {},
8
- omit: {},
9
- labelMap: { type: Function },
10
- filterMap: { type: Function },
11
- order: {},
12
- sort: {}
7
+ inputClass: {},
8
+ name: {},
9
+ defaultItems: {},
10
+ items: {}
13
11
  },
14
- setup(i) {
15
- const p = (e) => (r) => Object.fromEntries(
16
- Object.entries(r).map(([t, o]) => [t, e(o, t)])
17
- ), a = (e) => (r) => Object.fromEntries(
18
- Object.entries(r).filter(([t, o]) => e(o, t))
19
- ), m = (e) => (r) => Object.entries(r).reduce(
20
- (t, [o, c]) => {
21
- const s = e(c, o);
22
- return s !== !1 && (t[o] = s), t;
23
- },
24
- {}
25
- ), n = i, f = (e, r) => {
26
- const t = r?.indexOf(e) ?? -1;
27
- return t === -1 ? Number.MAX_SAFE_INTEGER : t;
28
- }, d = l.mapInput(
29
- l.number,
30
- (e) => f(e.name, n.order || [])
31
- ), b = j(
32
- () => v(
33
- n.form.meta,
34
- // include / exclude
35
- a(
36
- (e, r) => n.pick ? n.pick.includes(r) && !n.omit?.includes(r) : !n.omit?.includes(r)
37
- ),
38
- (e) => e,
39
- // labelMap and adding name
40
- p((e, r) => ({
41
- name: r,
42
- label: n.labelMap?.(r) || r,
43
- ...e
44
- })),
45
- // filterMap
46
- n.filterMap ? m((e) => {
47
- const r = n.filterMap?.(e.name, e);
48
- return r === void 0 || r === !0 ? e : r;
49
- }) : (e) => e,
50
- // transform to array
51
- (e) => Object.values(e),
52
- // order
53
- u.sort(d),
54
- // sort
55
- n.sort ? u.sort(n.sort) : (e) => e
56
- )
57
- );
58
- return (e, r) => (_(!0), M(E, null, A(b.value, ({ name: t, label: o, ...c }) => F(e.$slots, "default", {
59
- child: { name: t, label: o, ...c }
60
- }, () => [
61
- g(h(i.form).Input, k({
62
- name: t,
63
- label: o
64
- }, { ref_for: !0 }, c), null, 16, ["name", "label"])
65
- ])), 256));
12
+ setup(n) {
13
+ const a = n, y = a.form.useStore((e) => e.values), i = f(() => {
14
+ const e = a.name.replace(/\[/g, ".").replace(/\]/g, "");
15
+ try {
16
+ return e.split(".").reduce((r, t) => r && r[t], y.value);
17
+ } catch (r) {
18
+ return console.error(r), [];
19
+ }
20
+ });
21
+ M(async () => {
22
+ a.defaultItems && !i.value && a.form.setFieldValue(a.name, a.defaultItems);
23
+ });
24
+ const $ = f(() => (r) => {
25
+ const t = r.replace(/\[\d+\]/g, "");
26
+ return a.form.meta[t];
27
+ });
28
+ return P("getMetaFromArray", $), (e, r) => (s(), c(p(n.form.Field), { name: n.name }, {
29
+ default: g(({ field: t, state: d }) => [
30
+ o(e.$slots, "pre-array", l(u({ field: t, state: d }))),
31
+ (s(!0), k(A, null, C(i.value, (B, m) => (s(), c(p(n.form.Field), {
32
+ key: `${n.name}[${Number(m)}]`,
33
+ name: (
34
+ // eslint-disable-next-line
35
+ `${n.name}[${Number(m)}]`
36
+ )
37
+ }, {
38
+ default: g(({ field: v, state: h }) => [
39
+ o(e.$slots, "default", b({ ref_for: !0 }, {
40
+ subField: v,
41
+ subState: h,
42
+ index: Number(m),
43
+ field: t
44
+ }))
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["name"]))), 128)),
48
+ o(e.$slots, "post-array", l(u({ field: t, state: d }))),
49
+ o(e.$slots, "field", l(u({ field: t })))
50
+ ]),
51
+ _: 3
52
+ }, 8, ["name"]));
66
53
  }
67
54
  });
68
55
  export {
69
- I as default
56
+ N as default
70
57
  };
@@ -1,8 +1,70 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),document.head.appendChild(a),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const r=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),this.shadowRoot.appendChild(o)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import r from "./vue-components.es35.js";
3
-
4
- import o from "./vue-components.es37.js";
5
- const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6b2bf87e"]]);
1
+ import { defineComponent as O, computed as j, createElementBlock as M, openBlock as _, Fragment as E, renderList as A, renderSlot as F, createVNode as g, unref as h, mergeProps as k } from "vue";
2
+ import { Order as l, pipe as v, Array as u } from "effect-app";
3
+ const I = /* @__PURE__ */ O({
4
+ __name: "OmegaAutoGen",
5
+ props: {
6
+ form: {},
7
+ pick: {},
8
+ omit: {},
9
+ labelMap: { type: Function },
10
+ filterMap: { type: Function },
11
+ order: {},
12
+ sort: {}
13
+ },
14
+ setup(i) {
15
+ const p = (e) => (r) => Object.fromEntries(
16
+ Object.entries(r).map(([t, o]) => [t, e(o, t)])
17
+ ), a = (e) => (r) => Object.fromEntries(
18
+ Object.entries(r).filter(([t, o]) => e(o, t))
19
+ ), m = (e) => (r) => Object.entries(r).reduce(
20
+ (t, [o, c]) => {
21
+ const s = e(c, o);
22
+ return s !== !1 && (t[o] = s), t;
23
+ },
24
+ {}
25
+ ), n = i, f = (e, r) => {
26
+ const t = r?.indexOf(e) ?? -1;
27
+ return t === -1 ? Number.MAX_SAFE_INTEGER : t;
28
+ }, d = l.mapInput(
29
+ l.number,
30
+ (e) => f(e.name, n.order || [])
31
+ ), b = j(
32
+ () => v(
33
+ n.form.meta,
34
+ // include / exclude
35
+ a(
36
+ (e, r) => n.pick ? n.pick.includes(r) && !n.omit?.includes(r) : !n.omit?.includes(r)
37
+ ),
38
+ (e) => e,
39
+ // labelMap and adding name
40
+ p((e, r) => ({
41
+ name: r,
42
+ label: n.labelMap?.(r) || r,
43
+ ...e
44
+ })),
45
+ // filterMap
46
+ n.filterMap ? m((e) => {
47
+ const r = n.filterMap?.(e.name, e);
48
+ return r === void 0 || r === !0 ? e : r;
49
+ }) : (e) => e,
50
+ // transform to array
51
+ (e) => Object.values(e),
52
+ // order
53
+ u.sort(d),
54
+ // sort
55
+ n.sort ? u.sort(n.sort) : (e) => e
56
+ )
57
+ );
58
+ return (e, r) => (_(!0), M(E, null, A(b.value, ({ name: t, label: o, ...c }) => F(e.$slots, "default", {
59
+ child: { name: t, label: o, ...c }
60
+ }, () => [
61
+ g(h(i.form).Input, k({
62
+ name: t,
63
+ label: o
64
+ }, { ref_for: !0 }, c), null, 16, ["name", "label"])
65
+ ])), 256));
66
+ }
67
+ });
6
68
  export {
7
- m as default
69
+ I as default
8
70
  };
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import o from "./vue-components.es38.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),document.head.appendChild(a),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const r=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),this.shadowRoot.appendChild(o)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import r from "./vue-components.es35.js";
3
3
 
4
- import m from "./vue-components.es37.js";
5
- const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
4
+ import o from "./vue-components.es37.js";
5
+ const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6b2bf87e"]]);
6
6
  export {
7
- a as default
7
+ m as default
8
8
  };
@@ -1,5 +1,8 @@
1
- import { TraceAPI as r } from "./vue-components.es52.js";
2
- var t = r.getInstance();
1
+ (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import o from "./vue-components.es38.js";
3
+
4
+ import m from "./vue-components.es37.js";
5
+ const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
3
6
  export {
4
- t as trace
7
+ a as default
5
8
  };
@@ -1,5 +1,5 @@
1
- import { ContextAPI as t } from "./vue-components.es51.js";
2
- var o = t.getInstance();
1
+ import { TraceAPI as r } from "./vue-components.es52.js";
2
+ var t = r.getInstance();
3
3
  export {
4
- o as context
4
+ t as trace
5
5
  };
@@ -1,4 +1,5 @@
1
- import f from "./vue-components.es6.js";
1
+ import { ContextAPI as t } from "./vue-components.es51.js";
2
+ var o = t.getInstance();
2
3
  export {
3
- f as default
4
+ o as context
4
5
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es7.js";
1
+ import f from "./vue-components.es6.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es8.js";
1
+ import f from "./vue-components.es7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es9.js";
1
+ import f from "./vue-components.es8.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,19 +1,4 @@
1
- function c(t) {
2
- return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, f) {
3
- var i = t.get(e);
4
- i ? i.push(f) : t.set(e, [f]);
5
- }, off: function(e, f) {
6
- var i = t.get(e);
7
- i && (f ? i.splice(i.indexOf(f) >>> 0, 1) : t.set(e, []));
8
- }, emit: function(e, f) {
9
- var i = t.get(e);
10
- i && i.slice().map(function(a) {
11
- a(f);
12
- }), (i = t.get("*")) && i.slice().map(function(a) {
13
- a(e, f);
14
- });
15
- } };
16
- }
1
+ import f from "./vue-components.es9.js";
17
2
  export {
18
- c as default
3
+ f as default
19
4
  };
@@ -1,13 +1,19 @@
1
- import { onMounted as e, onUnmounted as u } from "vue";
2
- function p(t) {
3
- let n;
4
- e(() => {
5
- const o = t();
6
- o && (n = o);
7
- }), u(() => {
8
- n && n();
9
- });
1
+ function c(t) {
2
+ return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, f) {
3
+ var i = t.get(e);
4
+ i ? i.push(f) : t.set(e, [f]);
5
+ }, off: function(e, f) {
6
+ var i = t.get(e);
7
+ i && (f ? i.splice(i.indexOf(f) >>> 0, 1) : t.set(e, []));
8
+ }, emit: function(e, f) {
9
+ var i = t.get(e);
10
+ i && i.slice().map(function(a) {
11
+ a(f);
12
+ }), (i = t.get("*")) && i.slice().map(function(a) {
13
+ a(e, f);
14
+ });
15
+ } };
10
16
  }
11
17
  export {
12
- p as onMountedWithCleanup
18
+ c as default
13
19
  };
@@ -1,5 +1,5 @@
1
1
  import { provide as t, inject as o } from "vue";
2
- const n = Symbol(), s = () => {
2
+ const n = /* @__PURE__ */ Symbol(), s = () => {
3
3
  const r = o(n);
4
4
  if (!r)
5
5
  throw new Error("useIntl must be used within a IntlProvider");
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es18.js";
1
+ import f from "./vue-components.es19.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es19.js";
1
+ import f from "./vue-components.es20.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as v, mergeModels as C, useModel as k, useSlots as V, computed as _, resolveComponent as g, createBlock as y, openBlock as B, unref as a, createSlots as E, withCtx as u, renderSlot as d, renderList as M, normalizeProps as S, guardReactiveProps as w } from "vue";
2
2
  import { useOnClose as L } from "./vue-components.es11.js";
3
- import { onMountedWithCleanup as h } from "./vue-components.es29.js";
3
+ import { onMountedWithCleanup as h } from "./vue-components.es16.js";
4
4
  const z = /* @__PURE__ */ v({
5
5
  __name: "Dialog",
6
6
  props: /* @__PURE__ */ C({
@@ -1,7 +1,7 @@
1
1
  import { VERSION as t } from "./vue-components.es60.js";
2
2
  import { isCompatible as f } from "./vue-components.es61.js";
3
3
  import { _globalThis as m } from "./vue-components.es62.js";
4
- var u = t.split(".")[0], n = Symbol.for("opentelemetry.js.api." + u), l = m;
4
+ var u = t.split(".")[0], n = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + u), l = m;
5
5
  function d(r, o, e, i) {
6
6
  var v;
7
7
  i === void 0 && (i = !1);
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
2
  "name": "@effect-app/vue-components",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "peerDependencies": {
5
5
  "@mdi/js": "^7.4.47",
6
- "effect": "^3.19.3",
7
- "intl-messageformat": "^10.7.18",
6
+ "effect": "^3.19.14",
7
+ "intl-messageformat": "^11.1.0",
8
8
  "mdi-js": "^1.0.1",
9
9
  "primeflex": "^4.0.0",
10
10
  "primeicons": "^7.0.0",
11
- "primevue": "^4.4.1",
12
- "vue": "^3.5.24",
13
- "vuetify": "^3.10.11"
11
+ "primevue": "^4.5.4",
12
+ "vue": "^3.5.26",
13
+ "vuetify": "^3.11.6"
14
14
  },
15
15
  "devDependencies": {
16
- "@storybook/vue3": "^10.0.7",
17
- "@storybook/vue3-vite": "^10.0.7",
18
- "@types/node": "^24.10.1",
19
- "@vitejs/plugin-vue": "^6.0.1",
16
+ "@storybook/vue3": "^10.1.11",
17
+ "@storybook/vue3-vite": "^10.1.11",
18
+ "@types/node": "^25.0.8",
19
+ "@vitejs/plugin-vue": "^6.0.3",
20
20
  "@vue/test-utils": "^2.4.6",
21
- "@vueuse/core": "^14.0.0",
22
- "dprint": "^0.50.2",
23
- "jsdom": "^27.2.0",
24
- "rimraf": "^6.1.0",
25
- "sass": "^1.94.0",
26
- "storybook": "^10.0.7",
21
+ "@vueuse/core": "^14.1.0",
22
+ "dprint": "^0.51.1",
23
+ "jsdom": "^27.4.0",
24
+ "rimraf": "^6.1.2",
25
+ "sass": "^1.97.2",
26
+ "storybook": "^10.1.11",
27
27
  "typescript": "~5.9.3",
28
- "vite": "^7.2.2",
28
+ "vite": "^7.3.1",
29
29
  "vite-plugin-css-injected-by-js": "^3.5.2",
30
30
  "vitepress": "^1.6.4",
31
- "vitest": "^4.0.9",
32
- "vue-router": "^4.6.3",
31
+ "vitest": "^4.0.17",
32
+ "vue-router": "^4.6.4",
33
33
  "vue-toastification": "^2.0.0-rc.5",
34
- "vue-tsc": "^3.1.3",
35
- "vuetify": "^3.10.11",
36
- "@effect-app/eslint-shared-config": "0.4.1"
34
+ "vue-tsc": "^3.2.2",
35
+ "vuetify": "^3.11.6",
36
+ "@effect-app/eslint-shared-config": "0.5.0"
37
37
  },
38
38
  "files": [
39
39
  "src",
@@ -53,8 +53,8 @@
53
53
  "highlight.js": "^11.11.1",
54
54
  "mitt": "^3.0.1",
55
55
  "vue3-highlightjs": "^1.0.5",
56
- "@effect-app/vue": "2.93.8",
57
- "effect-app": "3.15.1"
56
+ "@effect-app/vue": "2.94.0",
57
+ "effect-app": "3.16.0"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "pnpm build:run",