@effect-app/vue-components 1.2.0 → 1.4.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 (47) hide show
  1. package/dist/types/components/OmegaForm/InputProps.d.ts +1 -0
  2. package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +5 -5
  3. package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +5 -4
  4. package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +3 -2
  5. package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +5 -4
  6. package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +5 -4
  7. package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +8 -7
  8. package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +6 -4
  9. package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +5 -4
  10. package/dist/vue-components.es12.js +15 -15
  11. package/dist/vue-components.es13.js +36 -39
  12. package/dist/vue-components.es15.js +3 -3
  13. package/dist/vue-components.es16.js +1 -1
  14. package/dist/vue-components.es17.js +1 -1
  15. package/dist/vue-components.es20.js +45 -45
  16. package/dist/vue-components.es25.js +41 -41
  17. package/dist/vue-components.es28.js +15 -15
  18. package/dist/vue-components.es31.js +22 -10
  19. package/dist/vue-components.es32.js +5 -23
  20. package/dist/vue-components.es33.js +21 -5
  21. package/dist/vue-components.es34.js +25 -16
  22. package/dist/vue-components.es35.js +15 -23
  23. package/dist/vue-components.es36.js +7 -17
  24. package/dist/vue-components.es37.js +5 -12
  25. package/dist/vue-components.es38.js +19 -5
  26. package/dist/vue-components.es39.js +9 -19
  27. package/dist/vue-components.es4.js +12 -12
  28. package/dist/vue-components.es40.js +31 -9
  29. package/dist/vue-components.es41.js +42 -25
  30. package/dist/vue-components.es42.js +16 -38
  31. package/dist/vue-components.es43.js +11 -26
  32. package/dist/vue-components.es44.js +1 -1
  33. package/dist/vue-components.es46.js +1 -1
  34. package/dist/vue-components.es48.js +3 -3
  35. package/dist/vue-components.es49.js +1 -1
  36. package/dist/vue-components.es5.js +35 -36
  37. package/dist/vue-components.es8.js +25 -19
  38. package/package.json +15 -15
  39. package/src/components/OmegaForm/InputProps.ts +1 -0
  40. package/src/components/OmegaForm/OmegaArray.vue +4 -2
  41. package/src/components/OmegaForm/OmegaAutoGen.vue +4 -2
  42. package/src/components/OmegaForm/OmegaFormInput.vue +4 -2
  43. package/src/components/OmegaForm/OmegaFormStuff.ts +7 -1
  44. package/src/components/OmegaForm/OmegaInput.vue +4 -2
  45. package/src/components/OmegaForm/OmegaInputVuetify.vue +10 -10
  46. package/src/components/OmegaForm/OmegaInternalInput.vue +20 -15
  47. package/src/components/OmegaForm/OmegaWrapper.vue +4 -2
@@ -9,6 +9,7 @@ export type InputProps<From extends Record<PropertyKey, any>, TName extends Deep
9
9
  min?: number | false;
10
10
  name: string;
11
11
  modelValue: DeepValue<From, TName>;
12
+ handleChange: (value: DeepValue<From, TName>) => void;
12
13
  errorMessages: string[];
13
14
  error: boolean;
14
15
  field: OmegaFieldInternalApi<From, TName>;
@@ -1,12 +1,11 @@
1
1
  import { type DeepKeys, type DeepValue } from "@tanstack/vue-form";
2
2
  import { type OmegaInputProps } from "./OmegaFormStuff";
3
- declare const _default: <// dprint ignore - somehow with 120 chars, this becomes a mess. should report it.
4
- From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__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<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & (Omit<OmegaInputProps<From, To>, "validators" | "options" | "label" | "type" | "items"> & {
3
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__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<Omit<OmegaInputProps<From, To>, "validators" | "options" | "label" | "type" | "items"> & {
6
5
  defaultItems?: DeepValue<From, DeepKeys<From>>;
7
6
  items?: "please use `defaultItems` instead";
8
- }) & {}> & import("vue").PublicProps;
9
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
7
+ }> & import("vue").PublicProps;
8
+ expose: (exposed: {}) => void;
10
9
  attrs: any;
11
10
  slots: {
12
11
  'pre-array'?: (props: {
@@ -34,6 +33,7 @@ From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__VL
34
33
  }>) => import("vue").VNode & {
35
34
  __ctx?: Awaited<typeof __VLS_setup>;
36
35
  };
36
+ declare const _default: typeof __VLS_export;
37
37
  export default _default;
38
38
  type __VLS_PrettifyLocal<T> = {
39
39
  [K in keyof T as K]: T[K];
@@ -1,8 +1,8 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { Order } from "effect-app";
3
3
  import { type OmegaAutoGenMeta, type OmegaInputProps } from "./OmegaFormStuff";
4
- declare const _default: <From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>>(__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<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
4
+ declare const __VLS_export: <From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>>(__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<{
6
6
  form: OmegaInputProps<From, To>["form"];
7
7
  pick?: DeepKeys<From>[];
8
8
  omit?: DeepKeys<From>[];
@@ -10,8 +10,8 @@ declare const _default: <From extends Record<PropertyKey, string>, To extends Re
10
10
  filterMap?: <M extends OmegaAutoGenMeta<From, To>>(key: DeepKeys<From>, meta: M) => boolean | M;
11
11
  order?: DeepKeys<From>[];
12
12
  sort?: Order.Order<OmegaAutoGenMeta<From, To>>;
13
- } & {}> & import("vue").PublicProps;
14
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
13
+ }> & import("vue").PublicProps;
14
+ expose: (exposed: {}) => void;
15
15
  attrs: any;
16
16
  slots: {
17
17
  default(props: {
@@ -22,6 +22,7 @@ declare const _default: <From extends Record<PropertyKey, string>, To extends Re
22
22
  }>) => import("vue").VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
25
+ declare const _default: typeof __VLS_export;
25
26
  export default _default;
26
27
  type __VLS_PrettifyLocal<T> = {
27
28
  [K in keyof T as K]: T[K];
@@ -12,8 +12,9 @@ declare var __VLS_6: {
12
12
  type __VLS_Slots = {} & {
13
13
  default?: (props: typeof __VLS_6) => any;
14
14
  };
15
- declare const __VLS_component: 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>;
16
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
+ 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>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
18
19
  type __VLS_WithSlots<T, S> = T & {
19
20
  new (): {
@@ -1,11 +1,11 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { InputProps } from "./InputProps";
3
3
  import type { DefaultInputProps } from "./OmegaFormStuff";
4
- declare const _default: <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<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ({
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<{
6
6
  name: Name;
7
- } & DefaultInputProps<From>) & {}> & import("vue").PublicProps;
8
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
7
+ } & DefaultInputProps<From>> & import("vue").PublicProps;
8
+ expose: (exposed: {}) => void;
9
9
  attrs: any;
10
10
  slots: {
11
11
  default(props: InputProps<From, Name>): void;
@@ -14,6 +14,7 @@ declare const _default: <From extends Record<PropertyKey, any>, To extends Recor
14
14
  }>) => import("vue").VNode & {
15
15
  __ctx?: Awaited<typeof __VLS_setup>;
16
16
  };
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
18
19
  type __VLS_PrettifyLocal<T> = {
19
20
  [K in keyof T as K]: T[K];
@@ -1,8 +1,7 @@
1
1
  import { type OmegaInputPropsBase } from "./OmegaFormStuff";
2
- declare const _default: <// dprint ignore - somehow with 120 chars, this becomes a mess. should report it.
3
- From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__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<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & OmegaInputPropsBase<From, To> & {}> & import("vue").PublicProps;
5
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
2
+ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__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<{
3
+ props: __VLS_PrettifyLocal<OmegaInputPropsBase<From, To>> & import("vue").PublicProps;
4
+ expose: (exposed: {}) => void;
6
5
  attrs: any;
7
6
  slots: {
8
7
  default?: (props: {
@@ -14,6 +13,7 @@ From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__VL
14
13
  min?: number | false;
15
14
  name: string;
16
15
  modelValue: import("@tanstack/vue-form").DeepValue<From, any>;
16
+ handleChange: (value: import("@tanstack/vue-form").DeepValue<From, any>) => void;
17
17
  errorMessages: string[];
18
18
  error: boolean;
19
19
  field: import("./InputProps").OmegaFieldInternalApi<From, any>;
@@ -30,6 +30,7 @@ From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__VL
30
30
  }>) => import("vue").VNode & {
31
31
  __ctx?: Awaited<typeof __VLS_setup>;
32
32
  };
33
+ declare const _default: typeof __VLS_export;
33
34
  export default _default;
34
35
  type __VLS_PrettifyLocal<T> = {
35
36
  [K in keyof T as K]: T[K];
@@ -1,14 +1,14 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { InputProps } from "./InputProps";
3
- declare const _default: <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<Pick<Partial<{}> & Omit<{
5
- readonly onBlur?: ((event: Event) => any) | undefined;
6
- readonly onFocus?: ((event: Event) => any) | undefined;
7
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur"> & {
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<{
8
5
  inputProps: InputProps<From, Name>;
9
6
  vuetifyValue: unknown;
10
- } & {}> & import("vue").PublicProps;
11
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
7
+ } & {
8
+ onBlur?: ((event: Event) => any) | undefined;
9
+ onFocus?: ((event: Event) => any) | undefined;
10
+ }> & import("vue").PublicProps;
11
+ expose: (exposed: {}) => void;
12
12
  attrs: any;
13
13
  slots: {};
14
14
  emit: {
@@ -18,6 +18,7 @@ declare const _default: <From extends Record<PropertyKey, any>, Name extends Dee
18
18
  }>) => import("vue").VNode & {
19
19
  __ctx?: Awaited<typeof __VLS_setup>;
20
20
  };
21
+ declare const _default: typeof __VLS_export;
21
22
  export default _default;
22
23
  type __VLS_PrettifyLocal<T> = {
23
24
  [K in keyof T as K]: T[K];
@@ -1,8 +1,8 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { OmegaFieldInternalApi } from "./InputProps";
3
3
  import type { FieldValidators, MetaRecord, NestedKeyOf, TypeOverride } from "./OmegaFormStuff";
4
- declare const _default: <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<{
5
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
4
+ 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<{
5
+ props: __VLS_PrettifyLocal<{
6
6
  field: OmegaFieldInternalApi<From, Name>;
7
7
  meta: MetaRecord<From>[NestedKeyOf<From>];
8
8
  label: string;
@@ -12,8 +12,8 @@ declare const _default: <From extends Record<PropertyKey, any>, Name extends Dee
12
12
  }[];
13
13
  type?: TypeOverride;
14
14
  validators?: FieldValidators<From>;
15
- } & {}> & import("vue").PublicProps;
16
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
15
+ }> & import("vue").PublicProps;
16
+ expose: (exposed: {}) => void;
17
17
  attrs: any;
18
18
  slots: {
19
19
  default?: (props: {
@@ -25,6 +25,7 @@ declare const _default: <From extends Record<PropertyKey, any>, Name extends Dee
25
25
  min?: number | false;
26
26
  name: string;
27
27
  modelValue: import("@tanstack/vue-form").DeepValue<From, Name>;
28
+ handleChange: (value: import("@tanstack/vue-form").DeepValue<From, Name>) => void;
28
29
  errorMessages: string[];
29
30
  error: boolean;
30
31
  field: OmegaFieldInternalApi<From, Name>;
@@ -41,6 +42,7 @@ declare const _default: <From extends Record<PropertyKey, any>, Name extends Dee
41
42
  }>) => import("vue").VNode & {
42
43
  __ctx?: Awaited<typeof __VLS_setup>;
43
44
  };
45
+ declare const _default: typeof __VLS_export;
44
46
  export default _default;
45
47
  type __VLS_PrettifyLocal<T> = {
46
48
  [K in keyof T as K]: T[K];
@@ -1,12 +1,12 @@
1
1
  import { type DefaultInputProps, type OmegaFormState } from "./OmegaFormStuff";
2
2
  import { type OmegaFormReturn } from "./useOmegaForm";
3
- declare const _default: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, K extends keyof OmegaFormState<From, To> = keyof OmegaFormState<From, To>, Props = DefaultInputProps<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<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
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 = DefaultInputProps<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<{
5
5
  form: OmegaFormReturn<From, To, Props>;
6
6
  disabled?: boolean;
7
7
  subscribe?: K[];
8
- } & {}> & import("vue").PublicProps;
9
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
8
+ }> & import("vue").PublicProps;
9
+ expose: (exposed: {}) => void;
10
10
  attrs: any;
11
11
  slots: {
12
12
  default(props: {
@@ -17,6 +17,7 @@ declare const _default: <From extends Record<PropertyKey, any>, To extends Recor
17
17
  }>) => import("vue").VNode & {
18
18
  __ctx?: Awaited<typeof __VLS_setup>;
19
19
  };
20
+ declare const _default: typeof __VLS_export;
20
21
  export default _default;
21
22
  type __VLS_PrettifyLocal<T> = {
22
23
  [K in keyof T as K]: T[K];
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, computed as d, onMounted as M, provide as P, createBlock as f, openBlock as m, resolveDynamicComponent as i, withCtx as c, renderSlot as o, createElementBlock as k, normalizeProps as s, guardReactiveProps as l, Fragment as A, renderList as b, mergeProps as B } from "vue";
1
+ import { defineComponent as F, computed as i, 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 b, mergeProps as B } from "vue";
2
2
  const N = /* @__PURE__ */ F({
3
3
  inheritAttrs: !1,
4
4
  __name: "OmegaArray",
@@ -8,8 +8,8 @@ const N = /* @__PURE__ */ F({
8
8
  defaultItems: {},
9
9
  items: {}
10
10
  },
11
- setup(g) {
12
- const a = g, y = a.form.useStore((e) => e.values), u = d(() => {
11
+ setup(n) {
12
+ const a = n, y = a.form.useStore((e) => e.values), d = i(() => {
13
13
  const e = a.name.replace(/\[/g, ".").replace(/\]/g, "");
14
14
  try {
15
15
  return e.split(".").reduce((r, t) => r && r[t], y.value);
@@ -18,34 +18,34 @@ const N = /* @__PURE__ */ F({
18
18
  }
19
19
  });
20
20
  M(async () => {
21
- a.defaultItems && !u.value && a.form.setFieldValue(a.name, a.defaultItems);
21
+ a.defaultItems && !d.value && a.form.setFieldValue(a.name, a.defaultItems);
22
22
  });
23
- const $ = d(() => (r) => {
23
+ const $ = i(() => (r) => {
24
24
  const t = r.replace(/\[\d+\]/g, "");
25
25
  return a.form.meta[t];
26
26
  });
27
- return P("getMetaFromArray", $), (e, r) => (m(), f(i(e.form.Field), { name: e.name }, {
28
- default: c(({ field: t, state: p }) => [
29
- o(e.$slots, "pre-array", s(l({ field: t, state: p }))),
30
- (m(!0), k(A, null, b(u.value, (C, n) => (m(), f(i(e.form.Field), {
31
- key: `${e.name}[${Number(n)}]`,
27
+ return P("getMetaFromArray", $), (e, r) => (s(), c(p(n.form.Field), { name: n.name }, {
28
+ default: g(({ field: t, state: f }) => [
29
+ o(e.$slots, "pre-array", l(u({ field: t, state: f }))),
30
+ (s(!0), k(A, null, b(d.value, (C, m) => (s(), c(p(n.form.Field), {
31
+ key: `${n.name}[${Number(m)}]`,
32
32
  name: (
33
33
  // eslint-disable-next-line
34
- `${e.name}[${Number(n)}]`
34
+ `${n.name}[${Number(m)}]`
35
35
  )
36
36
  }, {
37
- default: c(({ field: v, state: h }) => [
37
+ default: g(({ field: v, state: h }) => [
38
38
  o(e.$slots, "default", B({ ref_for: !0 }, {
39
39
  subField: v,
40
40
  subState: h,
41
- index: Number(n),
41
+ index: Number(m),
42
42
  field: t
43
43
  }))
44
44
  ]),
45
45
  _: 2
46
46
  }, 1032, ["name"]))), 128)),
47
- o(e.$slots, "post-array", s(l({ field: t, state: p }))),
48
- o(e.$slots, "field", s(l({ field: t })))
47
+ o(e.$slots, "post-array", l(u({ field: t, state: f }))),
48
+ o(e.$slots, "field", l(u({ field: t })))
49
49
  ]),
50
50
  _: 3
51
51
  }, 8, ["name"]));
@@ -1,6 +1,6 @@
1
- import { defineComponent as _, computed as O, resolveComponent as j, createElementBlock as M, openBlock as E, Fragment as v, renderList as A, renderSlot as F, createVNode as I, mergeProps as g } from "vue";
2
- import { Order as i, pipe as h, Array as l } from "effect-app";
3
- const B = /* @__PURE__ */ _({
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
4
  __name: "OmegaAutoGen",
5
5
  props: {
6
6
  form: {},
@@ -11,63 +11,60 @@ const B = /* @__PURE__ */ _({
11
11
  order: {},
12
12
  sort: {}
13
13
  },
14
- setup(p) {
15
- const u = (e) => (r) => Object.fromEntries(
16
- Object.entries(r).map(([t, n]) => [t, e(n, t)])
17
- ), m = (e) => (r) => Object.fromEntries(
18
- Object.entries(r).filter(([t, n]) => e(n, t))
19
- ), a = (e) => (r) => Object.entries(r).reduce(
20
- (t, [n, s]) => {
21
- const c = e(s, n);
22
- return c !== !1 && (t[n] = c), t;
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
23
  },
24
24
  {}
25
- ), o = p, f = (e, r) => {
25
+ ), n = i, f = (e, r) => {
26
26
  const t = r?.indexOf(e) ?? -1;
27
27
  return t === -1 ? Number.MAX_SAFE_INTEGER : t;
28
- }, d = i.mapInput(
29
- i.number,
30
- (e) => f(e.name, o.order || [])
31
- ), b = O(
32
- () => h(
33
- o.form.meta,
28
+ }, d = l.mapInput(
29
+ l.number,
30
+ (e) => f(e.name, n.order || [])
31
+ ), b = j(
32
+ () => v(
33
+ n.form.meta,
34
34
  // include / exclude
35
- m(
36
- (e, r) => o.pick ? o.pick.includes(r) && !o.omit?.includes(r) : !o.omit?.includes(r)
35
+ a(
36
+ (e, r) => n.pick ? n.pick.includes(r) && !n.omit?.includes(r) : !n.omit?.includes(r)
37
37
  ),
38
38
  (e) => e,
39
39
  // labelMap and adding name
40
- u((e, r) => ({
40
+ p((e, r) => ({
41
41
  name: r,
42
- label: o.labelMap?.(r) || r,
42
+ label: n.labelMap?.(r) || r,
43
43
  ...e
44
44
  })),
45
45
  // filterMap
46
- o.filterMap ? a((e) => {
47
- const r = o.filterMap?.(e.name, e);
46
+ n.filterMap ? m((e) => {
47
+ const r = n.filterMap?.(e.name, e);
48
48
  return r === void 0 || r === !0 ? e : r;
49
49
  }) : (e) => e,
50
50
  // transform to array
51
51
  (e) => Object.values(e),
52
52
  // order
53
- l.sort(d),
53
+ u.sort(d),
54
54
  // sort
55
- o.sort ? l.sort(o.sort) : (e) => e
55
+ n.sort ? u.sort(n.sort) : (e) => e
56
56
  )
57
57
  );
58
- return (e, r) => {
59
- const t = j("form.Input");
60
- return E(!0), M(v, null, A(b.value, ({ name: n, label: s, ...c }) => F(e.$slots, "default", {
61
- child: { name: n, label: s, ...c }
62
- }, () => [
63
- I(t, g({
64
- name: n,
65
- label: s
66
- }, { ref_for: !0 }, c), null, 16, ["name", "label"])
67
- ])), 256);
68
- };
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));
69
66
  }
70
67
  });
71
68
  export {
72
- B as default
69
+ I as default
73
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-8d0c5c48]{display:contents}fieldset[disabled][data-v-8d0c5c48]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(c,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode("fieldset[data-v-8d0c5c48]{display:contents}fieldset[disabled][data-v-8d0c5c48]>*{pointer-events:none}")),this.shadowRoot.appendChild(o)}},e.call(window.customElements,c,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-440e1a59]{display:contents}fieldset[disabled][data-v-440e1a59]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode("fieldset[data-v-440e1a59]{display:contents}fieldset[disabled][data-v-440e1a59]>*{pointer-events:none}")),this.shadowRoot.appendChild(o)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  import o from "./vue-components.es28.js";
3
3
 
4
4
  import m from "./vue-components.es27.js";
5
- const c = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8d0c5c48"]]);
5
+ const e = /* @__PURE__ */ m(o, [["__scopeId", "data-v-440e1a59"]]);
6
6
  export {
7
- c as default
7
+ e as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { TraceAPI as r } from "./vue-components.es43.js";
1
+ import { TraceAPI as r } from "./vue-components.es42.js";
2
2
  var t = r.getInstance();
3
3
  export {
4
4
  t as trace
@@ -1,4 +1,4 @@
1
- import { ContextAPI as t } from "./vue-components.es42.js";
1
+ import { ContextAPI as t } from "./vue-components.es41.js";
2
2
  var o = t.getInstance();
3
3
  export {
4
4
  o as context
@@ -1,6 +1,6 @@
1
- import { defineComponent as y, resolveComponent as s, createElementBlock as u, openBlock as o, createBlock as n, createCommentVNode as l, resolveDynamicComponent as a, mergeProps as i, unref as b, withCtx as f, Fragment as h, renderList as V } from "vue";
1
+ import { defineComponent as b, resolveComponent as o, createElementBlock as m, openBlock as r, createBlock as u, createCommentVNode as i, resolveDynamicComponent as s, mergeProps as a, unref as h, withCtx as f, Fragment as c, renderList as V } from "vue";
2
2
  import { getInputType as C } from "./vue-components.es8.js";
3
- const $ = /* @__PURE__ */ y({
3
+ const U = /* @__PURE__ */ b({
4
4
  inheritAttrs: !1,
5
5
  __name: "OmegaInputVuetify",
6
6
  props: {
@@ -8,15 +8,15 @@ const $ = /* @__PURE__ */ y({
8
8
  vuetifyValue: {}
9
9
  },
10
10
  emits: ["focus", "blur"],
11
- setup(q) {
12
- return (e, p) => {
13
- const t = s("v-text-field"), m = s("v-textarea"), d = s("v-radio"), P = s("v-radio-group"), g = s("v-select"), v = s("v-autocomplete");
14
- return o(), u("div", {
11
+ setup(e) {
12
+ return (l, n) => {
13
+ const d = o("v-text-field"), P = o("v-textarea"), p = o("v-radio"), g = o("v-radio-group"), v = o("v-select"), y = o("v-autocomplete");
14
+ return r(), m("div", {
15
15
  class: "omega-input",
16
- onFocusout: p[4] || (p[4] = (r) => e.$emit("blur", r)),
17
- onFocusin: p[5] || (p[5] = (r) => e.$emit("focus", r))
16
+ onFocusout: n[4] || (n[4] = (t) => l.$emit("blur", t)),
17
+ onFocusin: n[5] || (n[5] = (t) => l.$emit("focus", t))
18
18
  }, [
19
- e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (o(), n(a(e.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), i({
19
+ e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (r(), u(s(e.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), a({
20
20
  key: 0,
21
21
  id: e.inputProps.id,
22
22
  name: e.inputProps.name,
@@ -24,26 +24,26 @@ const $ = /* @__PURE__ */ y({
24
24
  "error-messages": e.inputProps.errorMessages,
25
25
  error: e.inputProps.error,
26
26
  ripple: ""
27
- }, e.$attrs, {
27
+ }, l.$attrs, {
28
28
  "model-value": e.vuetifyValue,
29
- onChange: p[0] || (p[0] = (r) => e.inputProps.field.handleChange(r.target.checked))
30
- }), null, 16, ["id", "name", "label", "error-messages", "error", "model-value"])) : l("", !0),
31
- e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" ? (o(), n(t, i({
29
+ onChange: n[0] || (n[0] = (t) => e.inputProps.handleChange(t.target.checked))
30
+ }), null, 16, ["id", "name", "label", "error-messages", "error", "model-value"])) : i("", !0),
31
+ e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" ? (r(), u(d, a({
32
32
  key: 1,
33
33
  id: e.inputProps.id,
34
34
  required: e.inputProps.required,
35
35
  "min-length": e.inputProps.minLength,
36
36
  "max-length": e.inputProps.maxLength,
37
- type: b(C)(e.inputProps.type),
37
+ type: h(C)(e.inputProps.type),
38
38
  name: e.inputProps.name,
39
39
  label: e.inputProps.label,
40
40
  "error-messages": e.inputProps.errorMessages,
41
41
  error: e.inputProps.error
42
- }, e.$attrs, {
42
+ }, l.$attrs, {
43
43
  "model-value": e.vuetifyValue,
44
- "onUpdate:modelValue": e.inputProps.field.handleChange
45
- }), null, 16, ["id", "required", "min-length", "max-length", "type", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
46
- e.inputProps.type === "text" ? (o(), n(m, i({
44
+ "onUpdate:modelValue": e.inputProps.handleChange
45
+ }), null, 16, ["id", "required", "min-length", "max-length", "type", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
46
+ e.inputProps.type === "text" ? (r(), u(P, a({
47
47
  key: 2,
48
48
  id: e.inputProps.id,
49
49
  required: e.inputProps.required,
@@ -53,11 +53,11 @@ const $ = /* @__PURE__ */ y({
53
53
  label: e.inputProps.label,
54
54
  "error-messages": e.inputProps.errorMessages,
55
55
  error: e.inputProps.error
56
- }, e.$attrs, {
56
+ }, l.$attrs, {
57
57
  "model-value": e.vuetifyValue,
58
- "onUpdate:modelValue": e.inputProps.field.handleChange
59
- }), null, 16, ["id", "required", "min-length", "max-length", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
60
- e.inputProps.type === "number" || e.inputProps.type === "range" ? (o(), n(a(e.inputProps.type === "range" ? "v-slider" : "v-text-field"), i({
58
+ "onUpdate:modelValue": e.inputProps.handleChange
59
+ }), null, 16, ["id", "required", "min-length", "max-length", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
60
+ e.inputProps.type === "number" || e.inputProps.type === "range" ? (r(), u(s(e.inputProps.type === "range" ? "v-slider" : "v-text-field"), a({
61
61
  key: 3,
62
62
  id: e.inputProps.id,
63
63
  required: e.inputProps.required,
@@ -68,33 +68,33 @@ const $ = /* @__PURE__ */ y({
68
68
  label: e.inputProps.label,
69
69
  "error-messages": e.inputProps.errorMessages,
70
70
  error: e.inputProps.error
71
- }, e.$attrs, {
71
+ }, l.$attrs, {
72
72
  "model-value": e.vuetifyValue,
73
- "onUpdate:modelValue": p[1] || (p[1] = (r) => {
74
- r || r === 0 ? e.inputProps.field.handleChange(Number(r)) : e.inputProps.field.handleChange(void 0);
73
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => {
74
+ t || t === 0 ? e.inputProps.handleChange(Number(t)) : e.inputProps.handleChange(void 0);
75
75
  })
76
- }), null, 16, ["id", "required", "min", "max", "type", "name", "label", "error-messages", "error", "model-value"])) : l("", !0),
77
- e.inputProps.type === "radio" ? (o(), n(P, i({
76
+ }), null, 16, ["id", "required", "min", "max", "type", "name", "label", "error-messages", "error", "model-value"])) : i("", !0),
77
+ e.inputProps.type === "radio" ? (r(), u(g, a({
78
78
  key: 4,
79
79
  id: e.inputProps.id,
80
80
  name: e.inputProps.name,
81
81
  label: e.inputProps.label,
82
82
  "error-messages": e.inputProps.errorMessages,
83
83
  error: e.inputProps.error
84
- }, e.$attrs, {
84
+ }, l.$attrs, {
85
85
  "model-value": e.vuetifyValue,
86
- "onUpdate:modelValue": e.inputProps.field.handleChange
86
+ "onUpdate:modelValue": e.inputProps.handleChange
87
87
  }), {
88
88
  default: f(() => [
89
- (o(!0), u(h, null, V(e.inputProps.options, (r) => (o(), n(d, {
90
- key: r.value,
91
- label: r.title,
92
- value: r.value
89
+ (r(!0), m(c, null, V(e.inputProps.options, (t) => (r(), u(p, {
90
+ key: t.value,
91
+ label: t.title,
92
+ value: t.value
93
93
  }, null, 8, ["label", "value"]))), 128))
94
94
  ]),
95
95
  _: 1
96
- }, 16, ["id", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
97
- e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (o(), n(g, i({
96
+ }, 16, ["id", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
97
+ e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (r(), u(v, a({
98
98
  key: 5,
99
99
  id: e.inputProps.id,
100
100
  clearable: e.inputProps.type === "select",
@@ -106,12 +106,12 @@ const $ = /* @__PURE__ */ y({
106
106
  items: e.inputProps.options,
107
107
  "error-messages": e.inputProps.errorMessages,
108
108
  error: e.inputProps.error
109
- }, e.$attrs, {
109
+ }, l.$attrs, {
110
110
  "model-value": e.vuetifyValue,
111
- onClear: p[2] || (p[2] = (r) => e.inputProps.field.handleChange(void 0)),
112
- "onUpdate:modelValue": e.inputProps.field.handleChange
113
- }), null, 16, ["id", "clearable", "required", "multiple", "chips", "name", "label", "items", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
114
- e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (o(), n(v, i({
111
+ onClear: n[2] || (n[2] = (t) => e.inputProps.handleChange(void 0)),
112
+ "onUpdate:modelValue": e.inputProps.handleChange
113
+ }), null, 16, ["id", "clearable", "required", "multiple", "chips", "name", "label", "items", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
114
+ e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (r(), u(y, a({
115
115
  key: 6,
116
116
  id: e.inputProps.id,
117
117
  clearable: e.inputProps.type === "autocomplete",
@@ -123,15 +123,15 @@ const $ = /* @__PURE__ */ y({
123
123
  "error-messages": e.inputProps.errorMessages,
124
124
  error: e.inputProps.error,
125
125
  chips: e.inputProps.type === "autocompletemultiple"
126
- }, e.$attrs, {
126
+ }, l.$attrs, {
127
127
  "model-value": e.vuetifyValue,
128
- onClear: p[3] || (p[3] = (r) => e.inputProps.field.handleChange(void 0)),
129
- "onUpdate:modelValue": e.inputProps.field.handleChange
130
- }), null, 16, ["id", "clearable", "multiple", "required", "name", "label", "items", "error-messages", "error", "chips", "model-value", "onUpdate:modelValue"])) : l("", !0)
128
+ onClear: n[3] || (n[3] = (t) => e.inputProps.handleChange(void 0)),
129
+ "onUpdate:modelValue": e.inputProps.handleChange
130
+ }), null, 16, ["id", "clearable", "multiple", "required", "name", "label", "items", "error-messages", "error", "chips", "model-value", "onUpdate:modelValue"])) : i("", !0)
131
131
  ], 32);
132
132
  };
133
133
  }
134
134
  });
135
135
  export {
136
- $ as default
136
+ U as default
137
137
  };