@effect-app/vue-components 4.0.0-beta.2 → 4.0.0-beta.4

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 (85) hide show
  1. package/dist/vue-components.es10.js +12 -12
  2. package/dist/vue-components.es11.js +2 -2
  3. package/dist/vue-components.es12.js +3 -3
  4. package/dist/vue-components.es16.js +9 -721
  5. package/dist/vue-components.es17.js +701 -119
  6. package/dist/vue-components.es18.js +141 -4
  7. package/dist/vue-components.es19.js +4 -11
  8. package/dist/vue-components.es20.js +11 -3
  9. package/dist/vue-components.es21.js +3 -24
  10. package/dist/vue-components.es22.js +24 -4
  11. package/dist/vue-components.es23.js +4 -8
  12. package/dist/vue-components.es24.js +8 -55
  13. package/dist/vue-components.es25.js +50 -64
  14. package/dist/vue-components.es26.js +69 -6
  15. package/dist/vue-components.es27.js +5 -5
  16. package/dist/vue-components.es28.js +6 -3
  17. package/dist/vue-components.es29.js +3 -3
  18. package/dist/vue-components.es30.js +3 -2
  19. package/dist/vue-components.es31.js +1 -1
  20. package/dist/vue-components.es32.js +1 -1
  21. package/dist/vue-components.es33.js +1 -1
  22. package/dist/vue-components.es34.js +2 -17
  23. package/dist/vue-components.es35.js +16 -10
  24. package/dist/vue-components.es36.js +189 -315
  25. package/dist/vue-components.es38.js +4 -27
  26. package/dist/vue-components.es39.js +37 -51
  27. package/dist/vue-components.es40.js +4 -64
  28. package/dist/vue-components.es41.js +83 -4
  29. package/dist/vue-components.es42.js +52 -4
  30. package/dist/vue-components.es43.js +556 -19
  31. package/dist/vue-components.es44.js +37 -71
  32. package/dist/vue-components.es45.js +21 -34
  33. package/dist/vue-components.es46.js +5 -314
  34. package/dist/vue-components.es47.js +34 -93
  35. package/dist/vue-components.es48.js +308 -25
  36. package/dist/vue-components.es49.js +31 -2
  37. package/dist/vue-components.es5.js +1 -1
  38. package/dist/vue-components.es50.js +4 -2
  39. package/dist/vue-components.es51.js +24 -2
  40. package/dist/vue-components.es52.js +73 -109
  41. package/dist/vue-components.es53.js +101 -0
  42. package/dist/vue-components.es54.js +2 -7
  43. package/dist/vue-components.es55.js +317 -31
  44. package/dist/vue-components.es56.js +66 -0
  45. package/dist/vue-components.es57.js +2 -192
  46. package/dist/vue-components.es58.js +4 -0
  47. package/dist/vue-components.es59.js +109 -36
  48. package/dist/vue-components.es61.js +7 -41
  49. package/dist/vue-components.es62.js +32 -5
  50. package/dist/vue-components.es64.js +100 -22
  51. package/dist/vue-components.es65.js +2 -5
  52. package/dist/vue-components.es66.js +21 -21
  53. package/dist/vue-components.es67.js +80 -28
  54. package/dist/vue-components.es68.js +12 -22
  55. package/dist/vue-components.es69.js +112 -11
  56. package/dist/vue-components.es7.js +1 -1
  57. package/dist/vue-components.es70.js +3 -5
  58. package/dist/vue-components.es71.js +31 -18
  59. package/dist/vue-components.es72.js +2 -9
  60. package/dist/vue-components.es73.js +2 -31
  61. package/dist/vue-components.es74.js +15 -48
  62. package/dist/vue-components.es75.js +70 -26
  63. package/dist/vue-components.es76.js +22 -100
  64. package/dist/vue-components.es77.js +5 -82
  65. package/dist/vue-components.es78.js +21 -21
  66. package/dist/vue-components.es79.js +30 -12
  67. package/dist/vue-components.es80.js +21 -112
  68. package/dist/vue-components.es81.js +12 -3
  69. package/dist/vue-components.es82.js +5 -32
  70. package/dist/vue-components.es83.js +19 -2
  71. package/dist/vue-components.es84.js +9 -2
  72. package/dist/vue-components.es85.js +31 -16
  73. package/dist/vue-components.es86.js +46 -13
  74. package/dist/vue-components.es87.js +26 -70
  75. package/dist/vue-components.es88.js +15 -8
  76. package/dist/vue-components.es89.js +16 -2
  77. package/dist/vue-components.es90.js +7 -14
  78. package/dist/vue-components.es92.js +1 -1
  79. package/dist/vue-components.es94.js +1 -1
  80. package/dist/vue-components.es96.js +3 -3
  81. package/dist/vue-components.es97.js +1 -1
  82. package/package.json +3 -3
  83. package/dist/vue-components.es37.js +0 -563
  84. package/dist/vue-components.es60.js +0 -85
  85. package/dist/vue-components.es63.js +0 -6
@@ -1,6 +1,143 @@
1
- import "vue";
2
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3
- const t = Object.prototype.toString, c = (o) => t.call(o) === "[object Object]";
1
+ import { pretty as b } from "./vue-components.es40.js";
2
+ import { mapErrorEager as E, runFork as w, match as U } from "./vue-components.es22.js";
3
+ import { isSuccess as v } from "./vue-components.es50.js";
4
+ import { make as $ } from "./vue-components.es51.js";
5
+ import { MixedScheduler as y } from "./vue-components.es52.js";
6
+ import { makeFilter as F, Arrays as I, Literal as O, union as h, null as T, decodeTo as _, string as A, unknown as L, boolean as N, number as j, undefined as x } from "./vue-components.es17.js";
7
+ import { transform as f } from "./vue-components.es47.js";
8
+ import { makeFormatterStandardSchemaV1 as C } from "./vue-components.es48.js";
9
+ import { decodeUnknownEffect as k } from "./vue-components.es53.js";
10
+ import { make as M, passthrough as P } from "./vue-components.es49.js";
11
+ import { lambda as V } from "./vue-components.es54.js";
12
+ const p = "~effect/Schema/SchemaError";
13
+ class B {
14
+ [p] = p;
15
+ _tag = "SchemaError";
16
+ name = "SchemaError";
17
+ issue;
18
+ constructor(r) {
19
+ this.issue = r;
20
+ }
21
+ get message() {
22
+ return this.issue.toString();
23
+ }
24
+ toString() {
25
+ return `SchemaError(${this.message})`;
26
+ }
27
+ }
28
+ function l(e) {
29
+ return v(e) ? e.value : {
30
+ issues: [{
31
+ message: b(e.cause)
32
+ }]
33
+ };
34
+ }
35
+ function oe(e, r) {
36
+ const n = k(e), a = {
37
+ errors: "all",
38
+ ...r?.parseOptions
39
+ }, o = C(), i = (s) => {
40
+ const m = new y(), u = w(U(n(s, a), {
41
+ onFailure: o,
42
+ onSuccess: (c) => ({
43
+ value: c
44
+ })
45
+ }), {
46
+ scheduler: m
47
+ });
48
+ m.flush();
49
+ const d = u.pollUnsafe();
50
+ return d ? l(d) : new Promise((c) => {
51
+ u.addObserver((g) => {
52
+ c(l(g));
53
+ });
54
+ });
55
+ };
56
+ if ("~standard" in e) {
57
+ const s = e;
58
+ return "validate" in s["~standard"] || Object.assign(s["~standard"], {
59
+ validate: i
60
+ }), s;
61
+ } else
62
+ return Object.assign(e, {
63
+ "~standard": {
64
+ version: 1,
65
+ vendor: "effect",
66
+ validate: i
67
+ }
68
+ });
69
+ }
70
+ function R(e) {
71
+ const r = k(e);
72
+ return (n, a) => E(r(n, a), (o) => new B(o));
73
+ }
74
+ const se = R, t = $;
75
+ function q(e) {
76
+ const r = t(new O(e), {
77
+ literal: e,
78
+ transform(n) {
79
+ return r.pipe(D(q(n), {
80
+ decode: f(() => n),
81
+ encode: f(() => e)
82
+ }));
83
+ }
84
+ });
85
+ return r;
86
+ }
87
+ const ae = /* @__PURE__ */ t(L), ce = /* @__PURE__ */ t(T), ie = /* @__PURE__ */ t(x), me = /* @__PURE__ */ t(A), z = /* @__PURE__ */ t(j), ue = /* @__PURE__ */ t(N), de = /* @__PURE__ */ V((e) => t(new I(!1, [], [e.ast]), {
88
+ schema: e
89
+ }));
90
+ function S(e, r) {
91
+ return t(e, {
92
+ members: r,
93
+ mapMembers(n, a) {
94
+ const o = n(this.members);
95
+ return S(h(o, this.ast.mode, a?.unsafePreserveChecks ? this.ast.checks : void 0), o);
96
+ }
97
+ });
98
+ }
99
+ function fe(e, r) {
100
+ return S(h(e, "anyOf", void 0), e);
101
+ }
102
+ function D(e, r) {
103
+ return (n) => t(_(n.ast, e.ast, r ? M(r) : P()), {
104
+ from: n,
105
+ to: e
106
+ });
107
+ }
108
+ const G = F;
109
+ function H(e) {
110
+ return G((r) => globalThis.Number.isSafeInteger(r), {
111
+ expected: "an integer",
112
+ meta: {
113
+ _tag: "isInt"
114
+ },
115
+ toArbitraryConstraint: {
116
+ number: {
117
+ isInteger: !0
118
+ }
119
+ },
120
+ ...e
121
+ });
122
+ }
123
+ const pe = /* @__PURE__ */ z.check(/* @__PURE__ */ H());
4
124
  export {
5
- c as isObject
125
+ de as Array,
126
+ ue as Boolean,
127
+ pe as Int,
128
+ q as Literal,
129
+ ce as Null,
130
+ z as Number,
131
+ B as SchemaError,
132
+ me as String,
133
+ ie as Undefined,
134
+ fe as Union,
135
+ ae as Unknown,
136
+ se as decodeEffect,
137
+ D as decodeTo,
138
+ R as decodeUnknownEffect,
139
+ H as isInt,
140
+ t as make,
141
+ G as makeFilter,
142
+ oe as toStandardSchemaV1
6
143
  };
@@ -1,13 +1,6 @@
1
- import { Exit as c } from "effect";
2
- import { dual as i } from "./vue-components.es39.js";
3
- import { isFunction as m } from "./vue-components.es38.js";
4
- const n = /* @__PURE__ */ Symbol.for("clone-trait"), u = i(2, (o, t) => n in o ? o[n](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(o)));
5
- i(2, (o, t) => u(o, { ...o, ...m(t) ? t(o) : t }));
6
- const b = (o, t) => new Promise((e, s) => o.addObserver((r) => {
7
- c.isSuccess(r) ? e(r.value) : s(r.cause);
8
- }));
1
+ import "vue";
2
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3
+ const t = Object.prototype.toString, c = (o) => t.call(o) === "[object Object]";
9
4
  export {
10
- u as clone,
11
- n as cloneTrait,
12
- b as runtimeFiberAsPromise
5
+ c as isObject
13
6
  };
@@ -1,5 +1,13 @@
1
- import { TaggedError as r } from "./vue-components.es36.js";
2
- const g = r;
1
+ import { Exit as c } from "effect";
2
+ import { dual as i } from "./vue-components.es42.js";
3
+ import { isFunction as m } from "./vue-components.es45.js";
4
+ const n = /* @__PURE__ */ Symbol.for("clone-trait"), u = i(2, (o, t) => n in o ? o[n](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(o)));
5
+ i(2, (o, t) => u(o, { ...o, ...m(t) ? t(o) : t }));
6
+ const b = (o, t) => new Promise((e, s) => o.addObserver((r) => {
7
+ c.isSuccess(r) ? e(r.value) : s(r.cause);
8
+ }));
3
9
  export {
4
- g as TaggedError
10
+ u as clone,
11
+ n as cloneTrait,
12
+ b as runtimeFiberAsPromise
5
13
  };
@@ -1,26 +1,5 @@
1
- import { EffectTypeId as c } from "./vue-components.es36.js";
2
- import { currentSpan as n, mapErrorEager as e, runPromise as r, flatMap as t, fnUntraced as s, option as o, promise as p, runFork as u, match as E, fnUntracedEager as f, runSync as i, runSyncExit as m, flatMapEager as $, fail as d, succeed as g, succeedSome as S, succeedNone as l, exit as y, mapEager as x, catchEager as h } from "./vue-components.es37.js";
3
- const M = c, F = (a) => typeof a == "object" && a !== null && M in a, N = p, P = g, I = l, T = S, b = d, j = t, q = o, v = y, w = E, z = n, A = u, B = r, C = i, D = m, G = s, H = x, J = e, K = $, L = h, O = f;
1
+ import { TaggedError as r } from "./vue-components.es55.js";
2
+ const g = r;
4
3
  export {
5
- L as catchEager,
6
- z as currentSpan,
7
- v as exit,
8
- b as fail,
9
- j as flatMap,
10
- K as flatMapEager,
11
- G as fnUntraced,
12
- O as fnUntracedEager,
13
- F as isEffect,
14
- H as mapEager,
15
- J as mapErrorEager,
16
- w as match,
17
- q as option,
18
- N as promise,
19
- A as runFork,
20
- B as runPromise,
21
- C as runSync,
22
- D as runSyncExit,
23
- P as succeed,
24
- I as succeedNone,
25
- T as succeedSome
4
+ g as TaggedError
26
5
  };
@@ -1,6 +1,26 @@
1
- import { FiberTypeId as o } from "./vue-components.es37.js";
2
- import { hasProperty as e } from "./vue-components.es38.js";
3
- const t = (r) => e(r, o);
1
+ import { EffectTypeId as c } from "./vue-components.es55.js";
2
+ import { currentSpan as n, mapErrorEager as e, runPromise as r, flatMap as t, fnUntraced as s, option as o, promise as p, runFork as u, match as E, fnUntracedEager as f, runSync as i, runSyncExit as m, flatMapEager as $, fail as d, succeed as g, succeedSome as S, succeedNone as l, exit as y, mapEager as x, catchEager as h } from "./vue-components.es43.js";
3
+ const M = c, F = (a) => typeof a == "object" && a !== null && M in a, N = p, P = g, I = l, T = S, b = d, j = t, q = o, v = y, w = E, z = n, A = u, B = r, C = i, D = m, G = s, H = x, J = e, K = $, L = h, O = f;
4
4
  export {
5
- t as isFiber
5
+ L as catchEager,
6
+ z as currentSpan,
7
+ v as exit,
8
+ b as fail,
9
+ j as flatMap,
10
+ K as flatMapEager,
11
+ G as fnUntraced,
12
+ O as fnUntracedEager,
13
+ F as isEffect,
14
+ H as mapEager,
15
+ J as mapErrorEager,
16
+ w as match,
17
+ q as option,
18
+ N as promise,
19
+ A as runFork,
20
+ B as runPromise,
21
+ C as runSync,
22
+ D as runSyncExit,
23
+ P as succeed,
24
+ I as succeedNone,
25
+ T as succeedSome
6
26
  };
@@ -1,10 +1,6 @@
1
- import { dual as n } from "./vue-components.es39.js";
2
- import { some as e, none as m, isNone as i, isSome as t } from "./vue-components.es40.js";
3
- const a = () => m, c = e, r = i, N = t, S = /* @__PURE__ */ n(2, (o, s) => r(o) ? a() : c(s(o.value)));
1
+ import { FiberTypeId as o } from "./vue-components.es43.js";
2
+ import { hasProperty as e } from "./vue-components.es45.js";
3
+ const t = (r) => e(r, o);
4
4
  export {
5
- r as isNone,
6
- N as isSome,
7
- S as map,
8
- a as none,
9
- c as some
5
+ t as isFiber
10
6
  };
@@ -1,57 +1,10 @@
1
- import { defineComponent as F, computed as f, onMounted as M, provide as P, createBlock as c, openBlock as s, resolveDynamicComponent as p, withCtx as g, renderSlot as o, createElementBlock as k, normalizeProps as l, guardReactiveProps as u, Fragment as A, renderList as C, mergeProps as b } from "vue";
2
- const N = /* @__PURE__ */ F({
3
- inheritAttrs: !1,
4
- __name: "OmegaArray",
5
- props: {
6
- form: {},
7
- inputClass: {},
8
- name: {},
9
- defaultItems: {},
10
- items: {}
11
- },
12
- setup(n) {
13
- const a = n, y = a.form.useStore((e) => e.values), i = f(() => {
14
- const e = a.name.replace(/\[/g, ".").replace(/\]/g, "");
15
- try {
16
- return e.split(".").reduce((r, t) => r && r[t], y.value);
17
- } catch (r) {
18
- return console.error(r), [];
19
- }
20
- });
21
- M(async () => {
22
- a.defaultItems && !i.value && a.form.setFieldValue(a.name, a.defaultItems);
23
- });
24
- const $ = f(() => (r) => {
25
- const t = r.replace(/\[\d+\]/g, "");
26
- return a.form.meta[t];
27
- });
28
- return P("getMetaFromArray", $), (e, r) => (s(), c(p(n.form.Field), { name: n.name }, {
29
- default: g(({ field: t, state: d }) => [
30
- o(e.$slots, "pre-array", l(u({ field: t, state: d }))),
31
- (s(!0), k(A, null, C(i.value, (B, m) => (s(), c(p(n.form.Field), {
32
- key: `${n.name}[${Number(m)}]`,
33
- name: (
34
- // eslint-disable-next-line
35
- `${n.name}[${Number(m)}]`
36
- )
37
- }, {
38
- default: g(({ field: v, state: h }) => [
39
- o(e.$slots, "default", b({ ref_for: !0 }, {
40
- subField: v,
41
- subState: h,
42
- index: Number(m),
43
- field: t
44
- }))
45
- ]),
46
- _: 2
47
- }, 1032, ["name"]))), 128)),
48
- o(e.$slots, "post-array", l(u({ field: t, state: d }))),
49
- o(e.$slots, "field", l(u({ field: t })))
50
- ]),
51
- _: 3
52
- }, 8, ["name"]));
53
- }
54
- });
1
+ import { dual as n } from "./vue-components.es42.js";
2
+ import { some as e, none as m, isNone as i, isSome as t } from "./vue-components.es56.js";
3
+ const a = () => m, c = e, r = i, N = t, S = /* @__PURE__ */ n(2, (o, s) => r(o) ? a() : c(s(o.value)));
55
4
  export {
56
- N as default
5
+ r as isNone,
6
+ N as isSome,
7
+ S as map,
8
+ a as none,
9
+ c as some
57
10
  };
@@ -1,71 +1,57 @@
1
- import { defineComponent as d, computed as b, createElementBlock as O, openBlock as j, Fragment as M, renderList as _, renderSlot as E, createVNode as N, unref as F, mergeProps as g } from "vue";
2
- import { pipe as h } from "./vue-components.es39.js";
3
- import { mapInput as k, Number as v } from "./vue-components.es88.js";
4
- const I = /* @__PURE__ */ d({
5
- __name: "OmegaAutoGen",
1
+ import { defineComponent as F, computed as f, onMounted as M, provide as P, createBlock as c, openBlock as s, resolveDynamicComponent as p, withCtx as g, renderSlot as o, createElementBlock as k, normalizeProps as l, guardReactiveProps as u, Fragment as A, renderList as C, mergeProps as b } from "vue";
2
+ const N = /* @__PURE__ */ F({
3
+ inheritAttrs: !1,
4
+ __name: "OmegaArray",
6
5
  props: {
7
6
  form: {},
8
- pick: {},
9
- omit: {},
10
- labelMap: { type: Function },
11
- filterMap: { type: Function },
12
- order: {},
13
- sort: {}
7
+ inputClass: {},
8
+ name: {},
9
+ defaultItems: {},
10
+ items: {}
14
11
  },
15
- setup(i) {
16
- const l = (e) => (r) => Object.fromEntries(
17
- Object.entries(r).map(([t, n]) => [t, e(n, t)])
18
- ), u = (e) => (r) => Object.fromEntries(
19
- Object.entries(r).filter(([t, n]) => e(n, t))
20
- ), p = (e) => (r) => Object.entries(r).reduce(
21
- (t, [n, c]) => {
22
- const s = e(c, n);
23
- return s !== !1 && (t[n] = s), t;
24
- },
25
- {}
26
- ), o = i, m = (e, r) => {
27
- const t = r?.indexOf(e) ?? -1;
28
- return t === -1 ? Number.MAX_SAFE_INTEGER : t;
29
- }, a = k(
30
- v,
31
- (e) => m(e.name, o.order || [])
32
- ), f = b(
33
- () => h(
34
- o.form.meta,
35
- // include / exclude
36
- u(
37
- (e, r) => o.pick ? o.pick.includes(r) && !o.omit?.includes(r) : !o.omit?.includes(r)
38
- ),
39
- (e) => e,
40
- // labelMap and adding name
41
- l((e, r) => ({
42
- name: r,
43
- label: o.labelMap?.(r) || r,
44
- ...e ?? {}
45
- })),
46
- // filterMap
47
- o.filterMap ? p((e) => {
48
- const r = o.filterMap?.(e.name, e);
49
- return r === void 0 || r === !0 ? e : r;
50
- }) : (e) => e,
51
- // transform to array
52
- (e) => Object.values(e),
53
- // order
54
- (e) => [...e].sort((r, t) => a(r, t)),
55
- // sort
56
- o.sort ? (e) => [...e].sort((r, t) => o.sort(r, t)) : (e) => e
57
- )
58
- );
59
- return (e, r) => (j(!0), O(M, null, _(f.value, ({ name: t, label: n, ...c }) => E(e.$slots, "default", {
60
- child: { name: t, label: n, ...c }
61
- }, () => [
62
- N(F(i.form).Input, g({
63
- name: t,
64
- label: n
65
- }, { ref_for: !0 }, c), null, 16, ["name", "label"])
66
- ])), 256));
12
+ setup(n) {
13
+ const a = n, y = a.form.useStore((e) => e.values), i = f(() => {
14
+ const e = a.name.replace(/\[/g, ".").replace(/\]/g, "");
15
+ try {
16
+ return e.split(".").reduce((r, t) => r && r[t], y.value);
17
+ } catch (r) {
18
+ return console.error(r), [];
19
+ }
20
+ });
21
+ M(async () => {
22
+ a.defaultItems && !i.value && a.form.setFieldValue(a.name, a.defaultItems);
23
+ });
24
+ const $ = f(() => (r) => {
25
+ const t = r.replace(/\[\d+\]/g, "");
26
+ return a.form.meta[t];
27
+ });
28
+ return P("getMetaFromArray", $), (e, r) => (s(), c(p(n.form.Field), { name: n.name }, {
29
+ default: g(({ field: t, state: d }) => [
30
+ o(e.$slots, "pre-array", l(u({ field: t, state: d }))),
31
+ (s(!0), k(A, null, C(i.value, (B, m) => (s(), c(p(n.form.Field), {
32
+ key: `${n.name}[${Number(m)}]`,
33
+ name: (
34
+ // eslint-disable-next-line
35
+ `${n.name}[${Number(m)}]`
36
+ )
37
+ }, {
38
+ default: g(({ field: v, state: h }) => [
39
+ o(e.$slots, "default", b({ ref_for: !0 }, {
40
+ subField: v,
41
+ subState: h,
42
+ index: Number(m),
43
+ field: t
44
+ }))
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["name"]))), 128)),
48
+ o(e.$slots, "post-array", l(u({ field: t, state: d }))),
49
+ o(e.$slots, "field", l(u({ field: t })))
50
+ ]),
51
+ _: 3
52
+ }, 8, ["name"]));
67
53
  }
68
54
  });
69
55
  export {
70
- I as default
56
+ N as default
71
57
  };
@@ -1,8 +1,71 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-4d6b105c],.v-leave-to[data-v-4d6b105c]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-4d6b105c],.v-leave-active[data-v-4d6b105c]{display:grid;transition:all .15s}.v-enter-to[data-v-4d6b105c],.v-leave-from[data-v-4d6b105c]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-4d6b105c]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-4d6b105c]{min-height:0}.error-list[data-v-4d6b105c]{list-style-position:inside}.error-list [data-v-4d6b105c]::marker{margin:0;padding:0}.error-alert-content[data-v-4d6b105c]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-4d6b105c]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-4d6b105c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-4d6b105c]{font-weight:700;font-size:1.25em}.error-message[data-v-4d6b105c]{font-style:italic}.error-item[data-v-4d6b105c]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-4d6b105c]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-4d6b105c]{display:flex;gap:1.5em}.container svg[data-v-4d6b105c]{width:3em}.container .single-error[data-v-4d6b105c]{display:inline-block}')),document.head.appendChild(a),window.customElements){const t=window.customElements.define;window.customElements.define=function(d,e){const r=e.prototype.connectedCallback;return e.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-4d6b105c],.v-leave-to[data-v-4d6b105c]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-4d6b105c],.v-leave-active[data-v-4d6b105c]{display:grid;transition:all .15s}.v-enter-to[data-v-4d6b105c],.v-leave-from[data-v-4d6b105c]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-4d6b105c]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-4d6b105c]{min-height:0}.error-list[data-v-4d6b105c]{list-style-position:inside}.error-list [data-v-4d6b105c]::marker{margin:0;padding:0}.error-alert-content[data-v-4d6b105c]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-4d6b105c]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-4d6b105c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-4d6b105c]{font-weight:700;font-size:1.25em}.error-message[data-v-4d6b105c]{font-style:italic}.error-item[data-v-4d6b105c]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-4d6b105c]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-4d6b105c]{display:flex;gap:1.5em}.container svg[data-v-4d6b105c]{width:3em}.container .single-error[data-v-4d6b105c]{display:inline-block}')),this.shadowRoot.appendChild(o)}},t.call(window.customElements,d,e)}}}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import r from "./vue-components.es52.js";
3
-
4
- import o from "./vue-components.es54.js";
5
- const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-4d6b105c"]]);
1
+ import { defineComponent as d, computed as b, createElementBlock as O, openBlock as j, Fragment as M, renderList as _, renderSlot as E, createVNode as N, unref as F, mergeProps as g } from "vue";
2
+ import { pipe as h } from "./vue-components.es42.js";
3
+ import { mapInput as k, Number as v } from "./vue-components.es90.js";
4
+ const I = /* @__PURE__ */ d({
5
+ __name: "OmegaAutoGen",
6
+ props: {
7
+ form: {},
8
+ pick: {},
9
+ omit: {},
10
+ labelMap: { type: Function },
11
+ filterMap: { type: Function },
12
+ order: {},
13
+ sort: {}
14
+ },
15
+ setup(i) {
16
+ const l = (e) => (r) => Object.fromEntries(
17
+ Object.entries(r).map(([t, n]) => [t, e(n, t)])
18
+ ), u = (e) => (r) => Object.fromEntries(
19
+ Object.entries(r).filter(([t, n]) => e(n, t))
20
+ ), p = (e) => (r) => Object.entries(r).reduce(
21
+ (t, [n, c]) => {
22
+ const s = e(c, n);
23
+ return s !== !1 && (t[n] = s), t;
24
+ },
25
+ {}
26
+ ), o = i, m = (e, r) => {
27
+ const t = r?.indexOf(e) ?? -1;
28
+ return t === -1 ? Number.MAX_SAFE_INTEGER : t;
29
+ }, a = k(
30
+ v,
31
+ (e) => m(e.name, o.order || [])
32
+ ), f = b(
33
+ () => h(
34
+ o.form.meta,
35
+ // include / exclude
36
+ u(
37
+ (e, r) => o.pick ? o.pick.includes(r) && !o.omit?.includes(r) : !o.omit?.includes(r)
38
+ ),
39
+ (e) => e,
40
+ // labelMap and adding name
41
+ l((e, r) => ({
42
+ name: r,
43
+ label: o.labelMap?.(r) || r,
44
+ ...e ?? {}
45
+ })),
46
+ // filterMap
47
+ o.filterMap ? p((e) => {
48
+ const r = o.filterMap?.(e.name, e);
49
+ return r === void 0 || r === !0 ? e : r;
50
+ }) : (e) => e,
51
+ // transform to array
52
+ (e) => Object.values(e),
53
+ // order
54
+ (e) => [...e].sort((r, t) => a(r, t)),
55
+ // sort
56
+ o.sort ? (e) => [...e].sort((r, t) => o.sort(r, t)) : (e) => e
57
+ )
58
+ );
59
+ return (e, r) => (j(!0), O(M, null, _(f.value, ({ name: t, label: n, ...c }) => E(e.$slots, "default", {
60
+ child: { name: t, label: n, ...c }
61
+ }, () => [
62
+ N(F(i.form).Input, g({
63
+ name: t,
64
+ label: n
65
+ }, { ref_for: !0 }, c), null, 16, ["name", "label"])
66
+ ])), 256));
67
+ }
68
+ });
6
69
  export {
7
- e as default
70
+ I as default
8
71
  };
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import o from "./vue-components.es55.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-4d6b105c],.v-leave-to[data-v-4d6b105c]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-4d6b105c],.v-leave-active[data-v-4d6b105c]{display:grid;transition:all .15s}.v-enter-to[data-v-4d6b105c],.v-leave-from[data-v-4d6b105c]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-4d6b105c]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-4d6b105c]{min-height:0}.error-list[data-v-4d6b105c]{list-style-position:inside}.error-list [data-v-4d6b105c]::marker{margin:0;padding:0}.error-alert-content[data-v-4d6b105c]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-4d6b105c]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-4d6b105c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-4d6b105c]{font-weight:700;font-size:1.25em}.error-message[data-v-4d6b105c]{font-style:italic}.error-item[data-v-4d6b105c]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-4d6b105c]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-4d6b105c]{display:flex;gap:1.5em}.container svg[data-v-4d6b105c]{width:3em}.container .single-error[data-v-4d6b105c]{display:inline-block}')),document.head.appendChild(a),window.customElements){const t=window.customElements.define;window.customElements.define=function(d,e){const r=e.prototype.connectedCallback;return e.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-4d6b105c],.v-leave-to[data-v-4d6b105c]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-4d6b105c],.v-leave-active[data-v-4d6b105c]{display:grid;transition:all .15s}.v-enter-to[data-v-4d6b105c],.v-leave-from[data-v-4d6b105c]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-4d6b105c]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-4d6b105c]{min-height:0}.error-list[data-v-4d6b105c]{list-style-position:inside}.error-list [data-v-4d6b105c]::marker{margin:0;padding:0}.error-alert-content[data-v-4d6b105c]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-4d6b105c]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-4d6b105c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-4d6b105c]{font-weight:700;font-size:1.25em}.error-message[data-v-4d6b105c]{font-style:italic}.error-item[data-v-4d6b105c]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-4d6b105c]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-4d6b105c]{display:flex;gap:1.5em}.container svg[data-v-4d6b105c]{width:3em}.container .single-error[data-v-4d6b105c]{display:inline-block}')),this.shadowRoot.appendChild(o)}},t.call(window.customElements,d,e)}}}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import r from "./vue-components.es59.js";
3
3
 
4
- import m from "./vue-components.es54.js";
5
- const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
4
+ import o from "./vue-components.es61.js";
5
+ const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-4d6b105c"]]);
6
6
  export {
7
- a as default
7
+ e as default
8
8
  };
@@ -1,5 +1,8 @@
1
- import { TraceAPI as r } from "./vue-components.es75.js";
2
- var t = r.getInstance();
1
+ (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import o from "./vue-components.es62.js";
3
+
4
+ import m from "./vue-components.es61.js";
5
+ const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
3
6
  export {
4
- t as trace
7
+ a as default
5
8
  };
@@ -1,5 +1,5 @@
1
- import { ContextAPI as t } from "./vue-components.es74.js";
2
- var o = t.getInstance();
1
+ import { TraceAPI as r } from "./vue-components.es87.js";
2
+ var t = r.getInstance();
3
3
  export {
4
- o as context
4
+ t as trace
5
5
  };
@@ -1,4 +1,5 @@
1
- import f from "./vue-components.es6.js";
1
+ import { ContextAPI as t } from "./vue-components.es86.js";
2
+ var o = t.getInstance();
2
3
  export {
3
- f as default
4
+ o as context
4
5
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es7.js";
1
+ import f from "./vue-components.es6.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es8.js";
1
+ import f from "./vue-components.es7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import f from "./vue-components.es9.js";
1
+ import f from "./vue-components.es8.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,19 +1,4 @@
1
- function c(t) {
2
- return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, f) {
3
- var i = t.get(e);
4
- i ? i.push(f) : t.set(e, [f]);
5
- }, off: function(e, f) {
6
- var i = t.get(e);
7
- i && (f ? i.splice(i.indexOf(f) >>> 0, 1) : t.set(e, []));
8
- }, emit: function(e, f) {
9
- var i = t.get(e);
10
- i && i.slice().map(function(a) {
11
- a(f);
12
- }), (i = t.get("*")) && i.slice().map(function(a) {
13
- a(e, f);
14
- });
15
- } };
16
- }
1
+ import f from "./vue-components.es9.js";
17
2
  export {
18
- c as default
3
+ f as default
19
4
  };