@effect-app/vue-components 4.0.0-beta.31 → 4.0.0-beta.310

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 (208) hide show
  1. package/README.md +13 -9
  2. package/dist/reset.css +39 -38
  3. package/dist/types/components/CommandButton.vue.d.ts +24 -5
  4. package/dist/types/components/Dialog.vue.d.ts +3 -1
  5. package/dist/types/components/FixedNuxtErrorBoundary.vue.d.ts +39 -0
  6. package/dist/types/components/OmegaForm/InputProps.d.ts +1 -1
  7. package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +1 -1
  8. package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +2 -2
  9. package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +1 -1
  10. package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +1 -1
  11. package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -1
  12. package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +6 -0
  13. package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +6 -9
  14. package/dist/types/components/OmegaForm/OmegaTaggedUnion.vue.d.ts +2 -2
  15. package/dist/types/components/OmegaForm/OmegaTaggedUnionInternal.vue.d.ts +3 -3
  16. package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +1 -1
  17. package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +4 -2
  18. package/dist/types/components/OmegaForm/errors.d.ts +33 -0
  19. package/dist/types/components/OmegaForm/getOmegaStore.d.ts +1 -1
  20. package/dist/types/components/OmegaForm/hocs.d.ts +3 -0
  21. package/dist/types/components/OmegaForm/index.d.ts +14 -3
  22. package/dist/types/components/OmegaForm/inputs.d.ts +4 -0
  23. package/dist/types/components/OmegaForm/meta/checks.d.ts +4 -0
  24. package/dist/types/components/OmegaForm/meta/createMeta.d.ts +33 -0
  25. package/dist/types/components/OmegaForm/meta/defaults.d.ts +21 -0
  26. package/dist/types/components/OmegaForm/meta/redacted.d.ts +2 -0
  27. package/dist/types/components/OmegaForm/meta/types.d.ts +56 -0
  28. package/dist/types/components/OmegaForm/meta/walker.d.ts +18 -0
  29. package/dist/types/components/OmegaForm/persistency.d.ts +58 -0
  30. package/dist/types/components/OmegaForm/submit.d.ts +60 -0
  31. package/dist/types/components/OmegaForm/types.d.ts +312 -0
  32. package/dist/types/components/OmegaForm/useOmegaForm.d.ts +9 -213
  33. package/dist/types/components/OmegaForm/validation/localized.d.ts +10 -0
  34. package/dist/types/components/index.d.ts +1 -0
  35. package/dist/types/index.d.ts +0 -1
  36. package/dist/types/utils/index.d.ts +8 -8
  37. package/dist/vue-components.es.js +30 -44
  38. package/dist/vue-components10.es.js +5 -0
  39. package/dist/vue-components11.es.js +56 -0
  40. package/dist/vue-components12.es.js +5 -0
  41. package/dist/vue-components13.es.js +20 -0
  42. package/dist/vue-components14.es.js +49 -0
  43. package/dist/vue-components15.es.js +128 -0
  44. package/dist/vue-components16.es.js +65 -0
  45. package/dist/vue-components17.es.js +114 -0
  46. package/dist/vue-components18.es.js +22 -0
  47. package/dist/vue-components19.es.js +5 -0
  48. package/dist/vue-components2.es.js +11 -0
  49. package/dist/vue-components20.es.js +80 -0
  50. package/dist/vue-components21.es.js +93 -0
  51. package/dist/vue-components22.es.js +73 -0
  52. package/dist/vue-components23.es.js +12 -0
  53. package/dist/vue-components24.es.js +57 -0
  54. package/dist/vue-components25.es.js +5 -0
  55. package/dist/vue-components26.es.js +44 -0
  56. package/dist/vue-components27.es.js +5 -0
  57. package/dist/vue-components28.es.js +84 -0
  58. package/dist/vue-components3.es.js +98 -0
  59. package/dist/vue-components30.es.js +8 -0
  60. package/dist/vue-components31.es.js +9 -0
  61. package/dist/vue-components32.es.js +24 -0
  62. package/dist/vue-components33.es.js +300 -0
  63. package/dist/vue-components35.es.js +8 -0
  64. package/dist/vue-components36.es.js +73 -0
  65. package/dist/vue-components37.es.js +5 -0
  66. package/dist/vue-components38.es.js +64 -0
  67. package/dist/vue-components39.es.js +5 -0
  68. package/dist/vue-components4.es.js +5 -0
  69. package/dist/vue-components40.es.js +24 -0
  70. package/dist/vue-components41.es.js +5 -0
  71. package/dist/vue-components42.es.js +59 -0
  72. package/dist/vue-components43.es.js +5 -0
  73. package/dist/vue-components44.es.js +12 -0
  74. package/dist/vue-components45.es.js +22 -0
  75. package/dist/vue-components47.es.js +9 -0
  76. package/dist/vue-components48.es.js +4 -0
  77. package/dist/vue-components49.es.js +38 -0
  78. package/dist/vue-components5.es.js +24 -0
  79. package/dist/vue-components50.es.js +27 -0
  80. package/dist/vue-components51.es.js +28 -0
  81. package/dist/vue-components52.es.js +7 -0
  82. package/dist/vue-components53.es.js +18 -0
  83. package/dist/vue-components54.es.js +36 -0
  84. package/dist/vue-components55.es.js +18 -0
  85. package/dist/vue-components56.es.js +21 -0
  86. package/dist/vue-components57.es.js +30 -0
  87. package/dist/vue-components58.es.js +7 -0
  88. package/dist/vue-components59.es.js +9 -0
  89. package/dist/vue-components6.es.js +13 -0
  90. package/dist/vue-components60.es.js +38 -0
  91. package/dist/vue-components61.es.js +25 -0
  92. package/dist/vue-components62.es.js +128 -0
  93. package/dist/vue-components63.es.js +24 -0
  94. package/dist/vue-components64.es.js +21 -0
  95. package/dist/vue-components65.es.js +9 -0
  96. package/dist/vue-components66.es.js +19 -0
  97. package/dist/vue-components67.es.js +5 -0
  98. package/dist/vue-components68.es.js +29 -0
  99. package/dist/vue-components69.es.js +5 -0
  100. package/dist/vue-components7.es.js +13 -0
  101. package/dist/vue-components70.es.js +43 -0
  102. package/dist/vue-components71.es.js +101 -0
  103. package/dist/vue-components72.es.js +36 -0
  104. package/dist/vue-components73.es.js +19 -0
  105. package/dist/vue-components74.es.js +50 -0
  106. package/dist/vue-components8.es.js +35 -0
  107. package/dist/vue-components9.es.js +47 -0
  108. package/package.json +39 -33
  109. package/src/components/CommandButton.vue +96 -16
  110. package/src/components/Dialog.vue +0 -1
  111. package/src/components/FixedNuxtErrorBoundary.vue +112 -0
  112. package/src/components/OmegaForm/InputProps.ts +1 -1
  113. package/src/components/OmegaForm/OmegaArray.vue +8 -9
  114. package/src/components/OmegaForm/OmegaAutoGen.vue +3 -2
  115. package/src/components/OmegaForm/OmegaErrorsInternal.vue +1 -1
  116. package/src/components/OmegaForm/OmegaFormInput.vue +1 -1
  117. package/src/components/OmegaForm/OmegaInput.vue +26 -40
  118. package/src/components/OmegaForm/OmegaInputVuetify.vue +58 -8
  119. package/src/components/OmegaForm/OmegaInternalInput.vue +32 -13
  120. package/src/components/OmegaForm/OmegaTaggedUnion.vue +10 -3
  121. package/src/components/OmegaForm/OmegaTaggedUnionInternal.vue +6 -6
  122. package/src/components/OmegaForm/OmegaWrapper.vue +1 -1
  123. package/src/components/OmegaForm/blockDialog.ts +18 -6
  124. package/src/components/OmegaForm/createUseFormWithCustomInput.ts +16 -14
  125. package/src/components/OmegaForm/errors.ts +136 -0
  126. package/src/components/OmegaForm/getOmegaStore.ts +1 -1
  127. package/src/components/OmegaForm/hocs.ts +19 -0
  128. package/src/components/OmegaForm/index.ts +17 -4
  129. package/src/components/OmegaForm/inputs.ts +22 -0
  130. package/src/components/OmegaForm/meta/checks.ts +82 -0
  131. package/src/components/OmegaForm/meta/createMeta.ts +140 -0
  132. package/src/components/OmegaForm/meta/defaults.ts +262 -0
  133. package/src/components/OmegaForm/meta/redacted.ts +66 -0
  134. package/src/components/OmegaForm/meta/types.ts +78 -0
  135. package/src/components/OmegaForm/meta/walker.ts +248 -0
  136. package/src/components/OmegaForm/persistency.ts +247 -0
  137. package/src/components/OmegaForm/submit.ts +131 -0
  138. package/src/components/OmegaForm/types.ts +801 -0
  139. package/src/components/OmegaForm/useOmegaForm.ts +103 -896
  140. package/src/components/OmegaForm/useRegisterField.ts +1 -1
  141. package/src/components/OmegaForm/validation/localized.ts +203 -0
  142. package/src/components/index.ts +1 -0
  143. package/src/index.ts +0 -1
  144. package/src/reset.css +39 -38
  145. package/src/utils/index.ts +11 -8
  146. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -159
  147. package/dist/types/constants/index.d.ts +0 -1
  148. package/dist/vue-components.es10.js +0 -239
  149. package/dist/vue-components.es11.js +0 -32
  150. package/dist/vue-components.es12.js +0 -503
  151. package/dist/vue-components.es13.js +0 -49
  152. package/dist/vue-components.es14.js +0 -4
  153. package/dist/vue-components.es15.js +0 -4
  154. package/dist/vue-components.es16.js +0 -6
  155. package/dist/vue-components.es17.js +0 -13
  156. package/dist/vue-components.es18.js +0 -57
  157. package/dist/vue-components.es19.js +0 -56
  158. package/dist/vue-components.es2.js +0 -30
  159. package/dist/vue-components.es20.js +0 -8
  160. package/dist/vue-components.es21.js +0 -8
  161. package/dist/vue-components.es22.js +0 -5
  162. package/dist/vue-components.es23.js +0 -5
  163. package/dist/vue-components.es24.js +0 -4
  164. package/dist/vue-components.es25.js +0 -4
  165. package/dist/vue-components.es26.js +0 -4
  166. package/dist/vue-components.es27.js +0 -4
  167. package/dist/vue-components.es28.js +0 -19
  168. package/dist/vue-components.es29.js +0 -13
  169. package/dist/vue-components.es3.js +0 -17
  170. package/dist/vue-components.es30.js +0 -194
  171. package/dist/vue-components.es32.js +0 -31
  172. package/dist/vue-components.es33.js +0 -6
  173. package/dist/vue-components.es34.js +0 -4
  174. package/dist/vue-components.es35.js +0 -4
  175. package/dist/vue-components.es36.js +0 -113
  176. package/dist/vue-components.es38.js +0 -9
  177. package/dist/vue-components.es39.js +0 -34
  178. package/dist/vue-components.es4.js +0 -52
  179. package/dist/vue-components.es41.js +0 -6
  180. package/dist/vue-components.es42.js +0 -25
  181. package/dist/vue-components.es43.js +0 -7
  182. package/dist/vue-components.es44.js +0 -23
  183. package/dist/vue-components.es45.js +0 -32
  184. package/dist/vue-components.es46.js +0 -24
  185. package/dist/vue-components.es47.js +0 -14
  186. package/dist/vue-components.es48.js +0 -7
  187. package/dist/vue-components.es49.js +0 -21
  188. package/dist/vue-components.es5.js +0 -52
  189. package/dist/vue-components.es50.js +0 -11
  190. package/dist/vue-components.es51.js +0 -33
  191. package/dist/vue-components.es52.js +0 -50
  192. package/dist/vue-components.es53.js +0 -28
  193. package/dist/vue-components.es54.js +0 -13
  194. package/dist/vue-components.es55.js +0 -67
  195. package/dist/vue-components.es56.js +0 -58
  196. package/dist/vue-components.es57.js +0 -19
  197. package/dist/vue-components.es58.js +0 -35
  198. package/dist/vue-components.es59.js +0 -31
  199. package/dist/vue-components.es6.js +0 -69
  200. package/dist/vue-components.es60.js +0 -44
  201. package/dist/vue-components.es61.js +0 -4
  202. package/dist/vue-components.es62.js +0 -46
  203. package/dist/vue-components.es63.js +0 -4
  204. package/dist/vue-components.es7.js +0 -83
  205. package/dist/vue-components.es8.js +0 -63
  206. package/dist/vue-components.es9.js +0 -21
  207. package/src/components/OmegaForm/OmegaFormStuff.ts +0 -1276
  208. package/src/constants/index.ts +0 -1
@@ -0,0 +1,98 @@
1
+ import { computed as e, createBlock as t, createCommentVNode as n, createElementVNode as r, createSlots as i, createTextVNode as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, resolveComponent as d, toDisplayString as f, withCtx as p } from "vue";
2
+ import * as m from "effect-app/Option";
3
+ //#region src/components/CommandButton.vue?vue&type=script&setup=true&lang.ts
4
+ var h = { class: "ml-2" }, g = { class: "ml-2" }, _ = /*@__PURE__*/ s({
5
+ name: "CommandButton",
6
+ props: {
7
+ input: {},
8
+ optionalInput: {},
9
+ command: {},
10
+ empty: { type: Boolean },
11
+ disabled: {},
12
+ title: {},
13
+ mapProgress: { type: Function }
14
+ },
15
+ setup(s) {
16
+ let _ = s, v = e(() => "optionalInput" in _ && _.optionalInput !== void 0 ? m.isSome(_.optionalInput) ? {
17
+ _tag: "ready",
18
+ value: _.optionalInput.value
19
+ } : { _tag: "missing" } : "input" in _ && _.input !== void 0 ? {
20
+ _tag: "ready",
21
+ value: _.input
22
+ } : { _tag: "void" }), y = e(() => _.command.blocked || _.disabled || v.value._tag === "missing"), b = e(() => {
23
+ if (_.mapProgress) {
24
+ let e = _.command.result;
25
+ return e === void 0 ? void 0 : _.mapProgress(e);
26
+ }
27
+ return _.command.progress;
28
+ }), x = e(() => {
29
+ let e = b.value;
30
+ if (e !== void 0) return typeof e == "string" ? e : e.text;
31
+ }), S = e(() => {
32
+ let e = b.value;
33
+ return typeof e == "object" && e ? e.percentage : void 0;
34
+ }), C = () => {
35
+ if (y.value) return;
36
+ let e = v.value, t = _.command.handle;
37
+ e._tag === "ready" ? t(e.value) : e._tag === "void" && t(void 0);
38
+ };
39
+ return (e, m) => {
40
+ let _ = d("v-progress-circular"), v = d("v-btn");
41
+ return s.command.allowed && !s.empty ? (l(), t(v, c({ key: 0 }, e.$attrs, {
42
+ loading: s.command.waiting,
43
+ disabled: y.value,
44
+ "aria-disabled": y.value,
45
+ title: s.title ?? s.command.action,
46
+ class: { "v-btn--disabled": y.value },
47
+ onClick: C
48
+ }), i({
49
+ default: p(() => [u(e.$slots, "default", {
50
+ loading: s.command.waiting,
51
+ disabled: y.value,
52
+ label: s.command.label,
53
+ title: s.title ?? s.command.action
54
+ }, () => [a(f(s.command.label), 1)])]),
55
+ _: 2
56
+ }, [x.value === void 0 ? void 0 : {
57
+ name: "loader",
58
+ fn: p(() => [o(_, {
59
+ indeterminate: S.value === void 0,
60
+ "model-value": S.value,
61
+ size: "20",
62
+ width: "2"
63
+ }, null, 8, ["indeterminate", "model-value"]), r("span", h, f(x.value), 1)]),
64
+ key: "0"
65
+ }]), 1040, [
66
+ "loading",
67
+ "disabled",
68
+ "aria-disabled",
69
+ "title",
70
+ "class"
71
+ ])) : s.command.allowed ? (l(), t(v, c({ key: 1 }, e.$attrs, {
72
+ loading: s.command.waiting,
73
+ disabled: y.value,
74
+ "aria-disabled": y.value,
75
+ title: s.title ?? s.command.action,
76
+ class: { "v-btn--disabled": y.value },
77
+ onClick: C
78
+ }), i({ _: 2 }, [x.value === void 0 ? void 0 : {
79
+ name: "loader",
80
+ fn: p(() => [o(_, {
81
+ indeterminate: S.value === void 0,
82
+ "model-value": S.value,
83
+ size: "20",
84
+ width: "2"
85
+ }, null, 8, ["indeterminate", "model-value"]), r("span", g, f(x.value), 1)]),
86
+ key: "0"
87
+ }]), 1040, [
88
+ "loading",
89
+ "disabled",
90
+ "aria-disabled",
91
+ "title",
92
+ "class"
93
+ ])) : n("", !0);
94
+ };
95
+ }
96
+ });
97
+ //#endregion
98
+ export { _ as default };
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as default };
@@ -0,0 +1,9 @@
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
3
+ import e from "./vue-components28.es.js";
4
+
5
+ import t from "./vue-components30.es.js";
6
+ //#region src/components/OmegaForm/OmegaErrorsInternal.vue
7
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-5278f8d3"]]);
8
+ //#endregion
9
+ export { n as default };
@@ -0,0 +1,24 @@
1
+ //#region src/components/OmegaForm/types.ts
2
+ var e = [
3
+ "string",
4
+ "text",
5
+ "number",
6
+ "select",
7
+ "multiple",
8
+ "boolean",
9
+ "radio",
10
+ "autocomplete",
11
+ "autocompletemultiple",
12
+ "switch",
13
+ "range",
14
+ "password",
15
+ "email",
16
+ "date",
17
+ "tel",
18
+ "url",
19
+ "color",
20
+ "time",
21
+ "search"
22
+ ];
23
+ //#endregion
24
+ export { e as typeOverrides };
@@ -0,0 +1,300 @@
1
+ import { getInputType as e } from "./vue-components13.es.js";
2
+ import { typeOverrides as t } from "./vue-components32.es.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createSlots as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, resolveComponent as h, resolveDynamicComponent as g, unref as _, watchEffect as v, withCtx as y } from "vue";
4
+ //#region src/components/OmegaForm/OmegaInputVuetify.vue?vue&type=script&setup=true&lang.ts
5
+ var b = /*@__PURE__*/ c({
6
+ inheritAttrs: !1,
7
+ __name: "OmegaInputVuetify",
8
+ props: {
9
+ inputProps: {},
10
+ field: {},
11
+ state: {}
12
+ },
13
+ emits: ["focus", "blur"],
14
+ setup(c) {
15
+ let b = c, x = r(() => !t.includes(b.inputProps.type));
16
+ return v(() => {
17
+ x.value && console.warn(`[OmegaForm] Unhandled input type "${b.inputProps.type}", falling back to a text input.`);
18
+ }), (t, r) => {
19
+ let v = h("v-text-field"), b = h("v-textarea"), S = h("v-radio"), C = h("v-radio-group"), w = h("v-select"), T = h("v-autocomplete");
20
+ return f(), o("div", {
21
+ class: "omega-input",
22
+ onFocusout: r[8] ||= (e) => {
23
+ t.$emit("blur", e), c.field.handleBlur();
24
+ },
25
+ onFocusin: r[9] ||= (e) => t.$emit("focus", e)
26
+ }, [
27
+ c.inputProps.type === "boolean" || c.inputProps.type === "switch" ? (f(), i(g(c.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), u({
28
+ key: 0,
29
+ id: c.inputProps.id,
30
+ name: c.field.name,
31
+ label: c.inputProps.label,
32
+ "error-messages": c.inputProps.errorMessages,
33
+ error: c.inputProps.error,
34
+ ripple: ""
35
+ }, t.$attrs, {
36
+ "model-value": c.state.value,
37
+ onChange: r[0] ||= (e) => c.field.handleChange(e.target.checked)
38
+ }), s({ _: 2 }, [t.$slots.label ? {
39
+ name: "label",
40
+ fn: y(() => [m(t.$slots, "label", d(l({
41
+ required: c.inputProps.required,
42
+ id: c.inputProps.id,
43
+ label: c.inputProps.label
44
+ })))]),
45
+ key: "0"
46
+ } : void 0]), 1040, [
47
+ "id",
48
+ "name",
49
+ "label",
50
+ "error-messages",
51
+ "error",
52
+ "model-value"
53
+ ])) : a("", !0),
54
+ c.inputProps.type === "email" || c.inputProps.type === "string" || c.inputProps.type === "password" || c.inputProps.type === "date" || c.inputProps.type === "tel" || c.inputProps.type === "url" || c.inputProps.type === "color" || c.inputProps.type === "time" || c.inputProps.type === "search" ? (f(), i(v, u({
55
+ key: 1,
56
+ id: c.inputProps.id,
57
+ required: c.inputProps.required,
58
+ "min-length": c.inputProps.minLength,
59
+ "max-length": c.inputProps.maxLength,
60
+ type: _(e)(c.inputProps.type),
61
+ name: c.field.name,
62
+ label: c.inputProps.label,
63
+ "error-messages": c.inputProps.errorMessages,
64
+ error: c.inputProps.error
65
+ }, t.$attrs, {
66
+ "model-value": c.state.value,
67
+ "onUpdate:modelValue": r[1] ||= (e) => c.field.handleChange(e)
68
+ }), s({ _: 2 }, [t.$slots.label ? {
69
+ name: "label",
70
+ fn: y(() => [m(t.$slots, "label", d(l({
71
+ required: c.inputProps.required,
72
+ id: c.inputProps.id,
73
+ label: c.inputProps.label
74
+ })))]),
75
+ key: "0"
76
+ } : void 0]), 1040, [
77
+ "id",
78
+ "required",
79
+ "min-length",
80
+ "max-length",
81
+ "type",
82
+ "name",
83
+ "label",
84
+ "error-messages",
85
+ "error",
86
+ "model-value"
87
+ ])) : a("", !0),
88
+ c.inputProps.type === "text" ? (f(), i(b, u({
89
+ key: 2,
90
+ id: c.inputProps.id,
91
+ required: c.inputProps.required,
92
+ "min-length": c.inputProps.minLength,
93
+ "max-length": c.inputProps.maxLength,
94
+ name: c.field.name,
95
+ label: c.inputProps.label,
96
+ "error-messages": c.inputProps.errorMessages,
97
+ error: c.inputProps.error
98
+ }, t.$attrs, {
99
+ "model-value": c.state.value,
100
+ "onUpdate:modelValue": r[2] ||= (e) => c.field.handleChange(e)
101
+ }), s({ _: 2 }, [t.$slots.label ? {
102
+ name: "label",
103
+ fn: y(() => [m(t.$slots, "label", d(l({
104
+ required: c.inputProps.required,
105
+ id: c.inputProps.id,
106
+ label: c.inputProps.label
107
+ })))]),
108
+ key: "0"
109
+ } : void 0]), 1040, [
110
+ "id",
111
+ "required",
112
+ "min-length",
113
+ "max-length",
114
+ "name",
115
+ "label",
116
+ "error-messages",
117
+ "error",
118
+ "model-value"
119
+ ])) : a("", !0),
120
+ c.inputProps.type === "number" || c.inputProps.type === "range" ? (f(), i(g(c.inputProps.type === "range" ? "v-slider" : "v-text-field"), u({
121
+ key: 3,
122
+ id: c.inputProps.id,
123
+ required: c.inputProps.required,
124
+ min: c.inputProps.min,
125
+ max: c.inputProps.max,
126
+ type: c.inputProps.type,
127
+ name: c.field.name,
128
+ label: c.inputProps.label,
129
+ "error-messages": c.inputProps.errorMessages,
130
+ error: c.inputProps.error
131
+ }, t.$attrs, {
132
+ "model-value": c.state.value,
133
+ "onUpdate:modelValue": r[3] ||= (e) => {
134
+ e || e === 0 ? c.field.handleChange(Number(e)) : c.field.handleChange(void 0);
135
+ }
136
+ }), s({ _: 2 }, [t.$slots.label ? {
137
+ name: "label",
138
+ fn: y(() => [m(t.$slots, "label", d(l({
139
+ required: c.inputProps.required,
140
+ id: c.inputProps.id,
141
+ label: c.inputProps.label
142
+ })))]),
143
+ key: "0"
144
+ } : void 0]), 1040, [
145
+ "id",
146
+ "required",
147
+ "min",
148
+ "max",
149
+ "type",
150
+ "name",
151
+ "label",
152
+ "error-messages",
153
+ "error",
154
+ "model-value"
155
+ ])) : a("", !0),
156
+ c.inputProps.type === "radio" ? (f(), i(C, u({
157
+ key: 4,
158
+ id: c.inputProps.id,
159
+ name: c.field.name,
160
+ label: c.inputProps.label,
161
+ "error-messages": c.inputProps.errorMessages,
162
+ error: c.inputProps.error
163
+ }, t.$attrs, {
164
+ "model-value": c.state.value,
165
+ "onUpdate:modelValue": r[4] ||= (e) => c.field.handleChange(e)
166
+ }), s({
167
+ default: y(() => [(f(!0), o(n, null, p(c.inputProps.options, (e) => (f(), i(S, {
168
+ key: e.value,
169
+ label: e.title,
170
+ value: e.value
171
+ }, null, 8, ["label", "value"]))), 128))]),
172
+ _: 2
173
+ }, [t.$slots.label ? {
174
+ name: "label",
175
+ fn: y(() => [m(t.$slots, "label", d(l({
176
+ required: c.inputProps.required,
177
+ id: c.inputProps.id,
178
+ label: c.inputProps.label
179
+ })))]),
180
+ key: "0"
181
+ } : void 0]), 1040, [
182
+ "id",
183
+ "name",
184
+ "label",
185
+ "error-messages",
186
+ "error",
187
+ "model-value"
188
+ ])) : a("", !0),
189
+ c.inputProps.type === "select" || c.inputProps.type === "multiple" ? (f(), i(w, u({
190
+ key: 5,
191
+ id: c.inputProps.id,
192
+ clearable: c.inputProps.type === "select",
193
+ required: c.inputProps.required,
194
+ multiple: c.inputProps.type === "multiple",
195
+ chips: c.inputProps.type === "multiple",
196
+ name: c.field.name,
197
+ label: c.inputProps.label,
198
+ items: c.inputProps.options,
199
+ "error-messages": c.inputProps.errorMessages,
200
+ error: c.inputProps.error
201
+ }, t.$attrs, {
202
+ "model-value": c.state.value,
203
+ onClear: r[5] ||= (e) => c.field.handleChange(void 0),
204
+ "onUpdate:modelValue": c.field.handleChange
205
+ }), s({ _: 2 }, [t.$slots.label ? {
206
+ name: "label",
207
+ fn: y(() => [m(t.$slots, "label", d(l({
208
+ required: c.inputProps.required,
209
+ id: c.inputProps.id,
210
+ label: c.inputProps.label
211
+ })))]),
212
+ key: "0"
213
+ } : void 0]), 1040, [
214
+ "id",
215
+ "clearable",
216
+ "required",
217
+ "multiple",
218
+ "chips",
219
+ "name",
220
+ "label",
221
+ "items",
222
+ "error-messages",
223
+ "error",
224
+ "model-value",
225
+ "onUpdate:modelValue"
226
+ ])) : a("", !0),
227
+ c.inputProps.type === "autocomplete" || c.inputProps.type === "autocompletemultiple" ? (f(), i(T, u({
228
+ key: 6,
229
+ id: c.inputProps.id,
230
+ clearable: c.inputProps.type === "autocomplete",
231
+ multiple: c.inputProps.type === "autocompletemultiple",
232
+ required: c.inputProps.required,
233
+ name: c.field.name,
234
+ label: c.inputProps.label,
235
+ items: c.inputProps.options,
236
+ "error-messages": c.inputProps.errorMessages,
237
+ error: c.inputProps.error,
238
+ chips: c.inputProps.type === "autocompletemultiple"
239
+ }, t.$attrs, {
240
+ "model-value": c.state.value,
241
+ onClear: r[6] ||= (e) => c.field.handleChange(void 0),
242
+ "onUpdate:modelValue": c.field.handleChange
243
+ }), s({ _: 2 }, [t.$slots.label ? {
244
+ name: "label",
245
+ fn: y(() => [m(t.$slots, "label", d(l({
246
+ required: c.inputProps.required,
247
+ id: c.inputProps.id,
248
+ label: c.inputProps.label
249
+ })))]),
250
+ key: "0"
251
+ } : void 0]), 1040, [
252
+ "id",
253
+ "clearable",
254
+ "multiple",
255
+ "required",
256
+ "name",
257
+ "label",
258
+ "items",
259
+ "error-messages",
260
+ "error",
261
+ "chips",
262
+ "model-value",
263
+ "onUpdate:modelValue"
264
+ ])) : a("", !0),
265
+ x.value ? (f(), i(v, u({
266
+ key: 7,
267
+ id: c.inputProps.id,
268
+ required: c.inputProps.required,
269
+ type: _(e)(c.inputProps.type),
270
+ name: c.field.name,
271
+ label: c.inputProps.label,
272
+ "error-messages": c.inputProps.errorMessages,
273
+ error: c.inputProps.error
274
+ }, t.$attrs, {
275
+ "model-value": c.state.value,
276
+ "onUpdate:modelValue": r[7] ||= (e) => c.field.handleChange(e)
277
+ }), s({ _: 2 }, [t.$slots.label ? {
278
+ name: "label",
279
+ fn: y(() => [m(t.$slots, "label", d(l({
280
+ required: c.inputProps.required,
281
+ id: c.inputProps.id,
282
+ label: c.inputProps.label
283
+ })))]),
284
+ key: "0"
285
+ } : void 0]), 1040, [
286
+ "id",
287
+ "required",
288
+ "type",
289
+ "name",
290
+ "label",
291
+ "error-messages",
292
+ "error",
293
+ "model-value"
294
+ ])) : a("", !0)
295
+ ], 32);
296
+ };
297
+ }
298
+ });
299
+ //#endregion
300
+ export { b as default };
@@ -0,0 +1,8 @@
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
3
+ import e from "./vue-components33.es.js";
4
+
5
+ //#region src/components/OmegaForm/OmegaInputVuetify.vue
6
+ var t = e;
7
+ //#endregion
8
+ export { t as default };
@@ -0,0 +1,73 @@
1
+ import e from "./vue-components35.es.js";
2
+ import { computed as t, createBlock as n, createCommentVNode as r, createElementVNode as i, createSlots as a, defineComponent as o, getCurrentInstance as s, guardReactiveProps as c, mergeProps as l, normalizeClass as u, normalizeProps as d, openBlock as f, renderSlot as p, resolveDynamicComponent as m, useAttrs as h, useId as g, useSlots as _, withCtx as v } from "vue";
3
+ import { useStore as y } from "@tanstack/vue-form";
4
+ //#region src/components/OmegaForm/OmegaInternalInput.vue?vue&type=script&setup=true&lang.ts
5
+ var b = /*@__PURE__*/ o({
6
+ inheritAttrs: !1,
7
+ __name: "OmegaInternalInput",
8
+ props: {
9
+ field: {},
10
+ state: {},
11
+ meta: {},
12
+ label: {},
13
+ type: { default: void 0 },
14
+ required: {
15
+ type: Boolean,
16
+ default: void 0
17
+ },
18
+ inputClass: { default: void 0 },
19
+ register: {},
20
+ options: { default: void 0 },
21
+ inputs: { default: void 0 }
22
+ },
23
+ setup(o) {
24
+ let b = o, x = t(() => b.required ?? b?.meta?.required), S = s()?.appContext.components.VTextField, C = h(), w = _(), T = t(() => {
25
+ let { class: e, ...t } = C;
26
+ return t;
27
+ }), E = t(() => C.class), D = g(), O = b.field;
28
+ y(O.store, (e) => e);
29
+ let k = y(O.form.store, (e) => e.fieldMeta), A = t(() => b.type ? b.type : b.meta?.type === "string" ? b.meta.format === "email" ? "email" : "string" : b.meta?.type || "unknown"), j = t(() => b.inputs?.[A.value] ?? (S ? e : void 0));
30
+ b.register(t(() => ({
31
+ name: b.field.name,
32
+ label: b.label,
33
+ id: D
34
+ })));
35
+ let M = t(() => k.value[b.field.name]?.errors ?? []), N = t(() => M.value.map((e) => e?.message).filter(Boolean)), P = (e) => e == null || e === !1 || e === "" || Number.isNaN(e), F = (e) => {
36
+ P(e) && b.meta?.type !== "boolean" ? b.meta?.nullableOrUndefined ? b.field.handleChange(b.meta.nullableOrUndefined === "undefined" ? void 0 : null) : b.meta?.isOptionalKey ? b.field.form.deleteField(b.field.name) : b.field.handleChange(e) : b.field.handleChange(e), b.field.form.normalizeNullableStructs?.();
37
+ }, I = (e) => new Proxy(e, { get(e, t, n) {
38
+ return t === "handleChange" ? F : Reflect.get(...arguments);
39
+ } }), L = t(() => ({
40
+ inputProps: {
41
+ id: D,
42
+ required: x.value,
43
+ minLength: b.meta?.type === "string" && b.meta?.minLength,
44
+ maxLength: b.meta?.type === "string" && b.meta?.maxLength,
45
+ max: b.meta?.type === "number" ? b.meta?.maximum ?? (typeof b.meta?.exclusiveMaximum == "number" ? b.meta.exclusiveMaximum - 1 : void 0) : void 0,
46
+ min: b.meta?.type === "number" ? b.meta?.minimum ?? (typeof b.meta?.exclusiveMinimum == "number" ? b.meta.exclusiveMinimum + 1 : void 0) : void 0,
47
+ errorMessages: N.value,
48
+ error: !!N.value.length,
49
+ type: A.value,
50
+ label: w.label ? b.label : `${b.label}${x.value ? " *" : ""}`,
51
+ options: b.options,
52
+ inputClass: b.inputClass
53
+ },
54
+ state: b.state,
55
+ field: I(b.field)
56
+ }));
57
+ return (e, t) => p(e.$slots, "default", d(c({
58
+ ...L.value.inputProps,
59
+ field: L.value.field,
60
+ state: L.value.state
61
+ })), () => [i("div", { class: u(E.value) }, [j.value ? (f(), n(m(j.value), d(l({ key: 0 }, {
62
+ ...T.value,
63
+ ...L.value,
64
+ class: b.inputClass
65
+ })), a({ _: 2 }, [e.$slots.label ? {
66
+ name: "label",
67
+ fn: v((t) => [p(e.$slots, "label", d(c(t)))]),
68
+ key: "0"
69
+ } : void 0]), 1040)) : r("", !0)], 2)]);
70
+ }
71
+ });
72
+ //#endregion
73
+ export { b as default };
@@ -0,0 +1,5 @@
1
+ import e from "./vue-components36.es.js";
2
+ //#region src/components/OmegaForm/OmegaInternalInput.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,64 @@
1
+ import { useErrorLabel as e } from "./vue-components22.es.js";
2
+ import t from "./vue-components37.es.js";
3
+ import { computed as n, createBlock as r, createCommentVNode as i, createSlots as a, defineComponent as o, guardReactiveProps as s, inject as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, unref as m, useAttrs as h, withCtx as g } from "vue";
4
+ //#region src/components/OmegaForm/OmegaInput.vue?vue&type=script&setup=true&lang.ts
5
+ var _ = /*@__PURE__*/ o({
6
+ inheritAttrs: !1,
7
+ __name: "OmegaInput",
8
+ props: {
9
+ form: {},
10
+ label: {},
11
+ validators: {},
12
+ required: {
13
+ type: Boolean,
14
+ default: void 0
15
+ },
16
+ name: {},
17
+ inputClass: {},
18
+ type: {},
19
+ options: {}
20
+ },
21
+ setup(o) {
22
+ let _ = o, v = n(() => ({
23
+ label: _.label,
24
+ required: _.required,
25
+ type: _.type,
26
+ options: _.options,
27
+ inputs: _.form.inputs
28
+ })), y = n(() => _.name), b = h(), x = n(() => {
29
+ if (_.inputClass !== null) return _.inputClass === void 0 ? b.class : _.inputClass;
30
+ }), S = c("getMetaFromArray", null), C = n(() => S?.value && S.value(_.name) ? S.value(y.value) : _.form.meta[y.value]), w = e(_.form);
31
+ return (e, n) => (d(), r(p(o.form.Field), {
32
+ name: o.name,
33
+ validators: o.validators
34
+ }, {
35
+ default: g(({ field: n }) => [C.value ? (d(), r(t, l({ key: 0 }, {
36
+ ...e.$attrs,
37
+ ...v.value,
38
+ inputClass: x.value
39
+ }, {
40
+ field: n,
41
+ state: n.state,
42
+ register: o.form.registerField,
43
+ label: o.label ?? m(w)(y.value),
44
+ meta: C.value
45
+ }), a({
46
+ default: g((t) => [f(e.$slots, "default", u(s(t)))]),
47
+ _: 2
48
+ }, [e.$slots.label ? {
49
+ name: "label",
50
+ fn: g((t) => [f(e.$slots, "label", u(s(t)))]),
51
+ key: "0"
52
+ } : void 0]), 1040, [
53
+ "field",
54
+ "state",
55
+ "register",
56
+ "label",
57
+ "meta"
58
+ ])) : i("", !0)]),
59
+ _: 3
60
+ }, 8, ["name", "validators"]));
61
+ }
62
+ });
63
+ //#endregion
64
+ export { _ as default };
@@ -0,0 +1,5 @@
1
+ import e from "./vue-components38.es.js";
2
+ //#region src/components/OmegaForm/OmegaInput.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,5 @@
1
+ import e from "./vue-components3.es.js";
2
+ //#region src/components/CommandButton.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,24 @@
1
+ import { createCommentVNode as e, defineComponent as t, mergeProps as n, normalizeProps as r, renderSlot as i, watch as a } from "vue";
2
+ //#region src/components/OmegaForm/OmegaTaggedUnionInternal.vue?vue&type=script&setup=true&lang.ts
3
+ var o = /*@__PURE__*/ t({
4
+ __name: "OmegaTaggedUnionInternal",
5
+ props: {
6
+ tag: {},
7
+ field: {},
8
+ name: {},
9
+ form: {}
10
+ },
11
+ setup(t) {
12
+ let o = t, s = o.form.useStore(({ values: e }) => e);
13
+ return a(() => o.tag, (e, t) => {
14
+ e === null && o.field.setValue(null), e !== t && (o.form.reset(s.value), setTimeout(() => {
15
+ o.field.validate("change");
16
+ }, 0));
17
+ }, { immediate: !0 }), (a, o) => t.tag ? i(a.$slots, `${t.name ? `${t.name}.` : ""}${t.tag}`, r(n({ key: 0 }, {
18
+ field: t.field,
19
+ tag: t.tag
20
+ }))) : e("", !0);
21
+ }
22
+ });
23
+ //#endregion
24
+ export { o as default };
@@ -0,0 +1,5 @@
1
+ import e from "./vue-components40.es.js";
2
+ //#region src/components/OmegaForm/OmegaTaggedUnionInternal.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };