@effect-app/vue-components 1.6.6 → 1.7.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 (44) hide show
  1. package/dist/types/components/OmegaForm/InputProps.d.ts +9 -3
  2. package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +2 -4
  3. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +14 -8
  4. package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -5
  5. package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +2 -2
  6. package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +1 -9
  7. package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +2 -2
  8. package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +2 -2
  9. package/dist/types/components/OmegaForm/index.d.ts +2 -1
  10. package/dist/types/components/OmegaForm/useOmegaForm.d.ts +4 -6
  11. package/dist/vue-components.es16.js +3 -3
  12. package/dist/vue-components.es17.js +1 -1
  13. package/dist/vue-components.es18.js +1 -1
  14. package/dist/vue-components.es31.js +1 -1
  15. package/dist/vue-components.es34.js +10 -22
  16. package/dist/vue-components.es35.js +23 -5
  17. package/dist/vue-components.es36.js +5 -21
  18. package/dist/vue-components.es37.js +16 -25
  19. package/dist/vue-components.es38.js +23 -15
  20. package/dist/vue-components.es39.js +17 -7
  21. package/dist/vue-components.es4.js +17 -21
  22. package/dist/vue-components.es40.js +12 -5
  23. package/dist/vue-components.es41.js +5 -19
  24. package/dist/vue-components.es42.js +19 -9
  25. package/dist/vue-components.es43.js +9 -31
  26. package/dist/vue-components.es44.js +25 -42
  27. package/dist/vue-components.es45.js +38 -16
  28. package/dist/vue-components.es46.js +26 -11
  29. package/dist/vue-components.es47.js +1 -1
  30. package/dist/vue-components.es49.js +1 -1
  31. package/dist/vue-components.es5.js +26 -25
  32. package/dist/vue-components.es51.js +3 -3
  33. package/dist/vue-components.es52.js +1 -1
  34. package/package.json +1 -1
  35. package/src/components/OmegaForm/InputProps.ts +9 -2
  36. package/src/components/OmegaForm/OmegaFormInput.vue +2 -9
  37. package/src/components/OmegaForm/OmegaFormStuff.ts +17 -8
  38. package/src/components/OmegaForm/OmegaInput.vue +1 -3
  39. package/src/components/OmegaForm/OmegaInputVuetify.vue +2 -2
  40. package/src/components/OmegaForm/OmegaInternalInput.vue +7 -5
  41. package/src/components/OmegaForm/OmegaWrapper.vue +2 -2
  42. package/src/components/OmegaForm/createUseFormWithCustomInput.ts +6 -5
  43. package/src/components/OmegaForm/index.ts +2 -1
  44. package/src/components/OmegaForm/useOmegaForm.ts +6 -8
@@ -11,13 +11,19 @@ export type InputProps<From extends Record<PropertyKey, any>, TName extends Deep
11
11
  errorMessages: string[];
12
12
  error: boolean;
13
13
  setRealDirty: () => void;
14
- type: string;
15
14
  label: string;
15
+ type: string;
16
+ };
17
+ field: OmegaFieldInternalApi<From, TName>;
18
+ };
19
+ export type MergedInputProps<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = InputProps<From, TName>["inputProps"] & Pick<InputProps<From, TName>, "field">;
20
+ export type VuetifyInputProps<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = {
21
+ inputProps: InputProps<From, TName>["inputProps"] & {
22
+ type: string;
16
23
  options?: {
17
24
  title: string;
18
25
  value: string;
19
26
  }[];
20
27
  };
21
- field: OmegaFieldInternalApi<From, TName>;
28
+ field: InputProps<From, TName>["field"];
22
29
  };
23
- export type MergedInputProps<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = InputProps<From, TName>["inputProps"] & Pick<InputProps<From, TName>, "field">;
@@ -1,10 +1,8 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { MergedInputProps } from "./InputProps";
3
- import type { DefaultInputProps } from "./OmegaFormStuff";
3
+ import type { BaseProps, DefaultTypeProps } from "./OmegaFormStuff";
4
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
- name: Name;
7
- } & DefaultInputProps<From>> & import("vue").PublicProps;
5
+ props: __VLS_PrettifyLocal<BaseProps<From, Name> & DefaultTypeProps> & import("vue").PublicProps;
8
6
  expose: (exposed: {}) => void;
9
7
  attrs: any;
10
8
  slots: {
@@ -4,29 +4,35 @@ import { type RuntimeFiber } from "effect/Fiber";
4
4
  import { type OmegaFieldInternalApi } from "./InputProps";
5
5
  import { type OF, type OmegaFormReturn } from "./useOmegaForm";
6
6
  export type ShowErrorsOn = "onChange" | "onBlur" | "onSubmit";
7
- export type DefaultInputProps<From> = {
7
+ export type BaseProps<From, TName extends DeepKeys<From>> = {
8
+ /** Will fallback to i18n when not specified */
8
9
  label?: string;
9
10
  validators?: FieldValidators<From>;
11
+ name: TName;
12
+ };
13
+ export type TypesWithOptions = "radio" | "select" | "multiple" | "autocomplete" | "autocompletemultiple";
14
+ export type DefaultTypeProps = {
15
+ type?: TypeOverride;
16
+ options?: undefined;
17
+ } | {
18
+ type?: TypesWithOptions;
10
19
  options?: {
11
20
  title: string;
12
21
  value: string;
13
22
  }[];
14
- type?: TypeOverride;
15
23
  };
16
24
  export type OmegaInputPropsBase<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>> = {
17
25
  form: OF<From, To> & {
18
26
  meta: MetaRecord<From>;
19
27
  i18nNamespace?: string;
20
28
  };
21
- name: NestedKeyOf<From>;
22
- } & DefaultInputProps<From>;
23
- export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, InputProps = DefaultInputProps<From>> = {
24
- form: OmegaFormReturn<From, To, InputProps> & {
29
+ } & BaseProps<From, NestedKeyOf<From>>;
30
+ export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> = {
31
+ form: OmegaFormReturn<From, To, TypeProps> & {
25
32
  meta: MetaRecord<From>;
26
33
  i18nNamespace?: string;
27
34
  };
28
- name: NestedKeyOf<From>;
29
- } & DefaultInputProps<From>;
35
+ } & BaseProps<From, NestedKeyOf<From>>;
30
36
  export type TypeOverride = "string" | "text" | "number" | "select" | "multiple" | "boolean" | "radio" | "autocomplete" | "autocompletemultiple" | "switch" | "range" | "password" | "email";
31
37
  export interface OmegaError {
32
38
  label: string;
@@ -15,12 +15,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
15
15
  errorMessages: string[];
16
16
  error: boolean;
17
17
  setRealDirty: () => void;
18
- type: string;
19
18
  label: string;
20
- options?: {
21
- title: string;
22
- value: string;
23
- }[];
19
+ type: string;
24
20
  }) => any;
25
21
  };
26
22
  emit: {};
@@ -1,7 +1,7 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
- import type { InputProps } from "./InputProps";
2
+ import type { VuetifyInputProps } from "./InputProps";
3
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<InputProps<From, Name> & {
4
+ props: __VLS_PrettifyLocal<VuetifyInputProps<From, Name> & {
5
5
  onBlur?: ((event: Event) => any) | undefined;
6
6
  onFocus?: ((event: Event) => any) | undefined;
7
7
  }> & import("vue").PublicProps;
@@ -6,10 +6,6 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends
6
6
  field: OmegaFieldInternalApi<From, Name>;
7
7
  meta: MetaRecord<From>[NestedKeyOf<From>];
8
8
  label: string;
9
- options?: {
10
- title: string;
11
- value: string;
12
- }[];
13
9
  type?: TypeOverride;
14
10
  validators?: FieldValidators<From>;
15
11
  }> & import("vue").PublicProps;
@@ -27,12 +23,8 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends
27
23
  errorMessages: string[];
28
24
  error: boolean;
29
25
  setRealDirty: () => void;
30
- type: string;
31
26
  label: string;
32
- options?: {
33
- title: string;
34
- value: string;
35
- }[];
27
+ type: string;
36
28
  }) => any;
37
29
  };
38
30
  emit: {};
@@ -1,6 +1,6 @@
1
- import { type DefaultInputProps, type OmegaFormState } from "./OmegaFormStuff";
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 = 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<{
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
4
  props: __VLS_PrettifyLocal<{
5
5
  form: OmegaFormReturn<From, To, Props>;
6
6
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
1
  import { type Component } from "vue";
2
- import { type DefaultInputProps } from "./OmegaFormStuff";
2
+ import { type DefaultTypeProps } from "./OmegaFormStuff";
3
3
  import { useOmegaForm } from "./useOmegaForm";
4
- export declare const createUseFormWithCustomInput: (CustomInputComponent: Component) => <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Props = DefaultInputProps<From>>(...args: Parameters<typeof useOmegaForm<From, To>>) => import("./useOmegaForm").OmegaFormReturn<From, To, Props>;
4
+ export declare const createUseFormWithCustomInput: <TypeProps = DefaultTypeProps>(CustomInputComponent: Component) => <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(...args: Parameters<typeof useOmegaForm<From, To>>) => import("./useOmegaForm").OmegaFormReturn<From, To, TypeProps>;
@@ -1,6 +1,7 @@
1
1
  export * as OmegaErrorsContext from "./OmegaErrorsContext";
2
2
  export * from "./OmegaFormStuff";
3
- export { type OmegaFormReturn, useOmegaForm } from "./useOmegaForm";
3
+ export { type OmegaConfig, type OmegaFormReturn, useOmegaForm } from "./useOmegaForm";
4
+ export { type InputProps, type MergedInputProps } from "./InputProps";
4
5
  export { default as OmegaInput } from "./OmegaInput.vue";
5
6
  export { default as OmegaVuetifyInput } from "./OmegaInternalInput.vue";
6
7
  export { useOnClose, usePreventClose } from "./blockDialog";
@@ -2,7 +2,7 @@ import { type DeepKeys, DeepValue, StandardSchemaV1Issue, ValidationError, Valid
2
2
  import { Effect, Order, S } from "effect-app";
3
3
  import { type InjectionKey } from "vue";
4
4
  import { MergedInputProps } from "./InputProps";
5
- import { DefaultInputProps, type FilterItems, type FormProps, type MetaRecord, type NestedKeyOf, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState, OmegaInputProps, ShowErrorsOn } from "./OmegaFormStuff";
5
+ import { BaseProps, DefaultTypeProps, type FilterItems, type FormProps, type MetaRecord, type NestedKeyOf, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState, OmegaInputProps, ShowErrorsOn } from "./OmegaFormStuff";
6
6
  type keysRule<T> = {
7
7
  keys?: NestedKeyOf<T>[];
8
8
  banKeys?: "You should only use one of banKeys or keys, not both, moron";
@@ -63,11 +63,9 @@ export declare const OmegaFormKey: InjectionKey<OF<any, any>>;
63
63
  type __VLS_PrettifyLocal<T> = {
64
64
  [K in keyof T]: T[K];
65
65
  } & {};
66
- export interface OmegaFormReturn<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Props = DefaultInputProps<From>> extends OF<From, To> {
66
+ export interface OmegaFormReturn<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> extends OF<From, To> {
67
67
  Input: <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<{
68
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
69
- name: Name;
70
- } & Props & Partial<{}>> & import("vue").PublicProps;
68
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BaseProps<From, Name> & TypeProps & Partial<{}>> & import("vue").PublicProps;
71
69
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
72
70
  attrs: any;
73
71
  slots: {
@@ -161,5 +159,5 @@ export interface OmegaFormReturn<From extends Record<PropertyKey, any>, To exten
161
159
  __ctx?: Awaited<typeof __VLS_setup>;
162
160
  };
163
161
  }
164
- export declare const useOmegaForm: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Props = DefaultInputProps<From>>(schema: S.Schema<To, From, never>, tanstackFormOptions?: NoInfer<FormProps<From, To>>, omegaConfig?: OmegaConfig<To>) => OmegaFormReturn<From, To, Props>;
162
+ export declare const useOmegaForm: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps>(schema: S.Schema<To, From, never>, tanstackFormOptions?: NoInfer<FormProps<From, To>>, omegaConfig?: OmegaConfig<To>) => OmegaFormReturn<From, To, TypeProps>;
165
163
  export {};
@@ -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-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)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8fe92df3]{display:contents}fieldset[disabled][data-v-8fe92df3]>*{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-8fe92df3]{display:contents}fieldset[disabled][data-v-8fe92df3]>*{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.es31.js";
3
3
 
4
4
  import m from "./vue-components.es30.js";
5
- const e = /* @__PURE__ */ m(o, [["__scopeId", "data-v-440e1a59"]]);
5
+ const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8fe92df3"]]);
6
6
  export {
7
- e as default
7
+ a as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { TraceAPI as r } from "./vue-components.es45.js";
1
+ import { TraceAPI as r } from "./vue-components.es46.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.es44.js";
1
+ import { ContextAPI as t } from "./vue-components.es45.js";
2
2
  var o = t.getInstance();
3
3
  export {
4
4
  o as context
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as s, renderSlot as b } from "vue";
2
2
  import { useStore as f } from "@tanstack/vue-form";
3
- import { getOmegaStore as c } from "./vue-components.es46.js";
3
+ import { getOmegaStore as c } from "./vue-components.es34.js";
4
4
  const p = ["disabled"], V = /* @__PURE__ */ m({
5
5
  __name: "OmegaWrapper",
6
6
  props: {
@@ -1,25 +1,13 @@
1
- function a(t) {
2
- return Symbol.for(t);
1
+ import { useStore as u } from "@tanstack/vue-form";
2
+ import { computed as f } from "vue";
3
+ function c(o, t) {
4
+ return f(() => t ? u(o.store, (n) => {
5
+ const r = {};
6
+ for (const e of t)
7
+ r[e] = n[e];
8
+ return r;
9
+ }).value : {});
3
10
  }
4
- var c = (
5
- /** @class */
6
- /* @__PURE__ */ (function() {
7
- function t(u) {
8
- var e = this;
9
- e._currentContext = u ? new Map(u) : /* @__PURE__ */ new Map(), e.getValue = function(n) {
10
- return e._currentContext.get(n);
11
- }, e.setValue = function(n, r) {
12
- var o = new t(e._currentContext);
13
- return o._currentContext.set(n, r), o;
14
- }, e.deleteValue = function(n) {
15
- var r = new t(e._currentContext);
16
- return r._currentContext.delete(n), r;
17
- };
18
- }
19
- return t;
20
- })()
21
- ), x = new c();
22
11
  export {
23
- x as ROOT_CONTEXT,
24
- a as createContextKey
12
+ c as getOmegaStore
25
13
  };
@@ -1,7 +1,25 @@
1
- var R;
2
- (function(E) {
3
- E[E.NONE = 0] = "NONE", E[E.ERROR = 30] = "ERROR", E[E.WARN = 50] = "WARN", E[E.INFO = 60] = "INFO", E[E.DEBUG = 70] = "DEBUG", E[E.VERBOSE = 80] = "VERBOSE", E[E.ALL = 9999] = "ALL";
4
- })(R || (R = {}));
1
+ function a(t) {
2
+ return Symbol.for(t);
3
+ }
4
+ var c = (
5
+ /** @class */
6
+ /* @__PURE__ */ (function() {
7
+ function t(u) {
8
+ var e = this;
9
+ e._currentContext = u ? new Map(u) : /* @__PURE__ */ new Map(), e.getValue = function(n) {
10
+ return e._currentContext.get(n);
11
+ }, e.setValue = function(n, r) {
12
+ var o = new t(e._currentContext);
13
+ return o._currentContext.set(n, r), o;
14
+ }, e.deleteValue = function(n) {
15
+ var r = new t(e._currentContext);
16
+ return r._currentContext.delete(n), r;
17
+ };
18
+ }
19
+ return t;
20
+ })()
21
+ ), x = new c();
5
22
  export {
6
- R as DiagLogLevel
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
7
25
  };
@@ -1,23 +1,7 @@
1
- import { NoopTracer as o } from "./vue-components.es37.js";
2
- var s = new o(), c = (
3
- /** @class */
4
- (function() {
5
- function r(t, e, n, a) {
6
- this._provider = t, this.name = e, this.version = n, this.options = a;
7
- }
8
- return r.prototype.startSpan = function(t, e, n) {
9
- return this._getTracer().startSpan(t, e, n);
10
- }, r.prototype.startActiveSpan = function(t, e, n, a) {
11
- var i = this._getTracer();
12
- return Reflect.apply(i.startActiveSpan, i, arguments);
13
- }, r.prototype._getTracer = function() {
14
- if (this._delegate)
15
- return this._delegate;
16
- var t = this._provider.getDelegateTracer(this.name, this.version, this.options);
17
- return t ? (this._delegate = t, this._delegate) : s;
18
- }, r;
19
- })()
20
- );
1
+ var R;
2
+ (function(E) {
3
+ E[E.NONE = 0] = "NONE", E[E.ERROR = 30] = "ERROR", E[E.WARN = 50] = "WARN", E[E.INFO = 60] = "INFO", E[E.DEBUG = 70] = "DEBUG", E[E.VERBOSE = 80] = "VERBOSE", E[E.ALL = 9999] = "ALL";
4
+ })(R || (R = {}));
21
5
  export {
22
- c as ProxyTracer
6
+ R as DiagLogLevel
23
7
  };
@@ -1,32 +1,23 @@
1
- import { ContextAPI as l } from "./vue-components.es44.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es51.js";
3
- import { NonRecordingSpan as p } from "./vue-components.es43.js";
4
- import { isSpanContextValid as S } from "./vue-components.es41.js";
5
- var f = l.getInstance(), I = (
1
+ import { NoopTracer as o } from "./vue-components.es38.js";
2
+ var s = new o(), c = (
6
3
  /** @class */
7
4
  (function() {
8
- function t() {
5
+ function r(t, e, n, a) {
6
+ this._provider = t, this.name = e, this.version = n, this.options = a;
9
7
  }
10
- return t.prototype.startSpan = function(u, e, r) {
11
- r === void 0 && (r = f.active());
12
- var i = !!e?.root;
13
- if (i)
14
- return new p();
15
- var n = r && m(r);
16
- return g(n) && S(n) ? new p(n) : new p();
17
- }, t.prototype.startActiveSpan = function(u, e, r, i) {
18
- var n, o, a;
19
- if (!(arguments.length < 2)) {
20
- arguments.length === 2 ? a = e : arguments.length === 3 ? (n = e, a = r) : (n = e, o = r, a = i);
21
- var v = o ?? f.active(), s = this.startSpan(u, n, v), c = d(v, s);
22
- return f.with(c, a, void 0, s);
23
- }
24
- }, t;
8
+ return r.prototype.startSpan = function(t, e, n) {
9
+ return this._getTracer().startSpan(t, e, n);
10
+ }, r.prototype.startActiveSpan = function(t, e, n, a) {
11
+ var i = this._getTracer();
12
+ return Reflect.apply(i.startActiveSpan, i, arguments);
13
+ }, r.prototype._getTracer = function() {
14
+ if (this._delegate)
15
+ return this._delegate;
16
+ var t = this._provider.getDelegateTracer(this.name, this.version, this.options);
17
+ return t ? (this._delegate = t, this._delegate) : s;
18
+ }, r;
25
19
  })()
26
20
  );
27
- function g(t) {
28
- return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
29
- }
30
21
  export {
31
- I as NoopTracer
22
+ c as ProxyTracer
32
23
  };
@@ -1,24 +1,32 @@
1
- import { ProxyTracer as i } from "./vue-components.es36.js";
2
- import { NoopTracerProvider as n } from "./vue-components.es39.js";
3
- var c = new n(), g = (
1
+ import { ContextAPI as l } from "./vue-components.es45.js";
2
+ import { getSpanContext as m, setSpan as d } from "./vue-components.es51.js";
3
+ import { NonRecordingSpan as p } from "./vue-components.es44.js";
4
+ import { isSpanContextValid as S } from "./vue-components.es42.js";
5
+ var f = l.getInstance(), I = (
4
6
  /** @class */
5
7
  (function() {
6
8
  function t() {
7
9
  }
8
- return t.prototype.getTracer = function(e, o, a) {
9
- var r;
10
- return (r = this.getDelegateTracer(e, o, a)) !== null && r !== void 0 ? r : new i(this, e, o, a);
11
- }, t.prototype.getDelegate = function() {
12
- var e;
13
- return (e = this._delegate) !== null && e !== void 0 ? e : c;
14
- }, t.prototype.setDelegate = function(e) {
15
- this._delegate = e;
16
- }, t.prototype.getDelegateTracer = function(e, o, a) {
17
- var r;
18
- return (r = this._delegate) === null || r === void 0 ? void 0 : r.getTracer(e, o, a);
10
+ return t.prototype.startSpan = function(u, e, r) {
11
+ r === void 0 && (r = f.active());
12
+ var i = !!e?.root;
13
+ if (i)
14
+ return new p();
15
+ var n = r && m(r);
16
+ return g(n) && S(n) ? new p(n) : new p();
17
+ }, t.prototype.startActiveSpan = function(u, e, r, i) {
18
+ var n, o, a;
19
+ if (!(arguments.length < 2)) {
20
+ arguments.length === 2 ? a = e : arguments.length === 3 ? (n = e, a = r) : (n = e, o = r, a = i);
21
+ var v = o ?? f.active(), s = this.startSpan(u, n, v), c = d(v, s);
22
+ return f.with(c, a, void 0, s);
23
+ }
19
24
  }, t;
20
25
  })()
21
26
  );
27
+ function g(t) {
28
+ return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
29
+ }
22
30
  export {
23
- g as ProxyTracerProvider
31
+ I as NoopTracer
24
32
  };
@@ -1,14 +1,24 @@
1
- import { NoopTracer as o } from "./vue-components.es37.js";
2
- var p = (
1
+ import { ProxyTracer as i } from "./vue-components.es37.js";
2
+ import { NoopTracerProvider as n } from "./vue-components.es40.js";
3
+ var c = new n(), g = (
3
4
  /** @class */
4
5
  (function() {
5
- function r() {
6
+ function t() {
6
7
  }
7
- return r.prototype.getTracer = function(e, n, t) {
8
- return new o();
9
- }, r;
8
+ return t.prototype.getTracer = function(e, o, a) {
9
+ var r;
10
+ return (r = this.getDelegateTracer(e, o, a)) !== null && r !== void 0 ? r : new i(this, e, o, a);
11
+ }, t.prototype.getDelegate = function() {
12
+ var e;
13
+ return (e = this._delegate) !== null && e !== void 0 ? e : c;
14
+ }, t.prototype.setDelegate = function(e) {
15
+ this._delegate = e;
16
+ }, t.prototype.getDelegateTracer = function(e, o, a) {
17
+ var r;
18
+ return (r = this._delegate) === null || r === void 0 ? void 0 : r.getTracer(e, o, a);
19
+ }, t;
10
20
  })()
11
21
  );
12
22
  export {
13
- p as NoopTracerProvider
23
+ g as ProxyTracerProvider
14
24
  };
@@ -1,48 +1,44 @@
1
- import { defineComponent as y, inject as h, computed as s, createBlock as i, openBlock as u, resolveDynamicComponent as M, withCtx as c, createCommentVNode as $, mergeProps as b, renderSlot as C, normalizeProps as k, guardReactiveProps as F } from "vue";
1
+ import { defineComponent as h, inject as $, computed as s, createBlock as i, openBlock as u, resolveDynamicComponent as M, withCtx as f, createCommentVNode as b, mergeProps as C, renderSlot as k, normalizeProps as y, guardReactiveProps as F } from "vue";
2
2
  import { useIntl as A } from "./vue-components.es3.js";
3
3
  import { generateInputStandardSchemaFromFieldMeta as w } from "./vue-components.es9.js";
4
4
  import I from "./vue-components.es5.js";
5
- const z = /* @__PURE__ */ y({
5
+ const z = /* @__PURE__ */ h({
6
6
  inheritAttrs: !1,
7
7
  __name: "OmegaInput",
8
8
  props: {
9
9
  form: {},
10
- name: {},
11
10
  label: {},
12
11
  validators: {},
13
- options: {},
14
- type: {}
12
+ name: {}
15
13
  },
16
14
  setup(a) {
17
- const e = a, r = h(
15
+ const e = a, n = $(
18
16
  "getMetaFromArray",
19
17
  null
20
- ), t = s(() => r?.value && r.value(e.name) ? r.value(e.name) : e.form.meta[e.name]), f = s(() => {
21
- if (!t.value)
18
+ ), r = s(() => n?.value && n.value(e.name) ? n.value(e.name) : e.form.meta[e.name]), c = s(() => {
19
+ if (!r.value)
22
20
  throw console.log(e.name, Object.keys(e.form.meta), e.form.meta), new Error("Meta is undefined");
23
- return w(t.value);
24
- }), { formatMessage: o } = A(), d = (n) => n.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).trim(), m = () => o({ id: `general.fields.${e.name}`, defaultMessage: d(e.name) }), p = () => e.form.i18nNamespace ? o({ id: `${e.form.i18nNamespace}.fields.${e.name}`, defaultMessage: m() }) : m();
25
- return (n, l) => (u(), i(M(a.form.Field), {
21
+ return w(r.value);
22
+ }), { formatMessage: o } = A(), d = (t) => t.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).trim(), m = () => o({ id: `general.fields.${e.name}`, defaultMessage: d(e.name) }), p = () => e.form.i18nNamespace ? o({ id: `${e.form.i18nNamespace}.fields.${e.name}`, defaultMessage: m() }) : m();
23
+ return (t, l) => (u(), i(M(a.form.Field), {
26
24
  name: a.name,
27
25
  validators: {
28
- onChange: f.value,
26
+ onChange: c.value,
29
27
  ...a.validators
30
28
  }
31
29
  }, {
32
- default: c(({ field: v }) => [
33
- t.value ? (u(), i(I, b({
30
+ default: f(({ field: v }) => [
31
+ r.value ? (u(), i(I, C({
34
32
  key: 0,
35
33
  field: v,
36
34
  label: a.label ?? p(),
37
- options: a.options,
38
- meta: t.value,
39
- type: a.type
40
- }, n.$attrs), {
41
- default: c((g) => [
42
- C(n.$slots, "default", k(F(g)))
35
+ meta: r.value
36
+ }, { ...t.$attrs, ...t.$props }), {
37
+ default: f((g) => [
38
+ k(t.$slots, "default", y(F(g)))
43
39
  ]),
44
40
  _: 3
45
- }, 16, ["field", "label", "options", "meta", "type"])) : $("", !0)
41
+ }, 16, ["field", "label", "meta"])) : b("", !0)
46
42
  ]),
47
43
  _: 3
48
44
  }, 8, ["name", "validators"]));
@@ -1,7 +1,14 @@
1
- var N;
2
- (function(E) {
3
- E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
- })(N || (N = {}));
1
+ import { NoopTracer as o } from "./vue-components.es38.js";
2
+ var p = (
3
+ /** @class */
4
+ (function() {
5
+ function r() {
6
+ }
7
+ return r.prototype.getTracer = function(e, n, t) {
8
+ return new o();
9
+ }, r;
10
+ })()
11
+ );
5
12
  export {
6
- N as TraceFlags
13
+ p as NoopTracerProvider
7
14
  };
@@ -1,21 +1,7 @@
1
- import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es42.js";
2
- import { NonRecordingSpan as i } from "./vue-components.es43.js";
3
- var a = /^([0-9a-f]{32})$/i, o = /^[0-9a-f]{16}$/i;
4
- function I(n) {
5
- return a.test(n) && n !== r;
6
- }
7
- function e(n) {
8
- return o.test(n) && n !== t;
9
- }
10
- function A(n) {
11
- return I(n.traceId) && e(n.spanId);
12
- }
13
- function D(n) {
14
- return new i(n);
15
- }
1
+ var N;
2
+ (function(E) {
3
+ E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
+ })(N || (N = {}));
16
5
  export {
17
- A as isSpanContextValid,
18
- e as isValidSpanId,
19
- I as isValidTraceId,
20
- D as wrapSpanContext
6
+ N as TraceFlags
21
7
  };
@@ -1,11 +1,21 @@
1
- import { TraceFlags as I } from "./vue-components.es40.js";
2
- var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
3
- traceId: r,
4
- spanId: a,
5
- traceFlags: I.NONE
6
- };
1
+ import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es43.js";
2
+ import { NonRecordingSpan as i } from "./vue-components.es44.js";
3
+ var a = /^([0-9a-f]{32})$/i, o = /^[0-9a-f]{16}$/i;
4
+ function I(n) {
5
+ return a.test(n) && n !== r;
6
+ }
7
+ function e(n) {
8
+ return o.test(n) && n !== t;
9
+ }
10
+ function A(n) {
11
+ return I(n.traceId) && e(n.spanId);
12
+ }
13
+ function D(n) {
14
+ return new i(n);
15
+ }
7
16
  export {
8
- a as INVALID_SPANID,
9
- A as INVALID_SPAN_CONTEXT,
10
- r as INVALID_TRACEID
17
+ A as isSpanContextValid,
18
+ e as isValidSpanId,
19
+ I as isValidTraceId,
20
+ D as wrapSpanContext
11
21
  };