@effect-app/vue-components 4.0.0-beta.221 → 4.0.0-beta.222
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.
- package/dist/vue-components.es.js +15 -15
- package/dist/vue-components12.es.js +47 -25
- package/dist/vue-components13.es.js +120 -62
- package/dist/vue-components14.es.js +63 -13
- package/dist/vue-components15.es.js +60 -27
- package/dist/vue-components16.es.js +21 -52
- package/dist/vue-components17.es.js +4 -86
- package/dist/vue-components18.es.js +79 -3
- package/dist/vue-components19.es.js +92 -3
- package/dist/vue-components2.es.js +6 -15
- package/dist/vue-components20.es.js +71 -17
- package/dist/vue-components21.es.js +11 -72
- package/dist/vue-components22.es.js +54 -12
- package/dist/vue-components23.es.js +4 -25
- package/dist/vue-components24.es.js +41 -249
- package/dist/vue-components25.es.js +4 -64
- package/dist/vue-components26.es.js +81 -65
- package/dist/vue-components28.es.js +7 -11
- package/dist/vue-components29.es.js +8 -5
- package/dist/vue-components30.es.js +266 -25
- package/dist/vue-components32.es.js +7 -108
- package/dist/vue-components33.es.js +71 -55
- package/dist/vue-components34.es.js +4 -6
- package/dist/vue-components35.es.js +51 -3
- package/dist/vue-components36.es.js +4 -5
- package/dist/vue-components37.es.js +21 -685
- package/dist/vue-components38.es.js +4 -6
- package/dist/vue-components39.es.js +58 -4
- package/dist/vue-components40.es.js +4 -5
- package/dist/vue-components41.es.js +11 -26
- package/dist/vue-components42.es.js +21 -4
- package/dist/vue-components44.es.js +8 -69
- package/dist/vue-components45.es.js +3 -8
- package/dist/vue-components46.es.js +37 -9
- package/dist/vue-components47.es.js +26 -7
- package/dist/vue-components48.es.js +24 -169
- package/dist/vue-components49.es.js +6 -13
- package/dist/vue-components50.es.js +16 -9
- package/dist/vue-components51.es.js +35 -3
- package/dist/vue-components52.es.js +17 -6
- package/dist/vue-components53.es.js +19 -27
- package/dist/vue-components54.es.js +21 -212
- package/dist/vue-components55.es.js +6 -84
- package/dist/vue-components56.es.js +7 -72
- package/dist/vue-components57.es.js +26 -807
- package/dist/vue-components58.es.js +24 -3
- package/dist/vue-components59.es.js +122 -103
- package/dist/vue-components60.es.js +19 -49
- package/dist/vue-components61.es.js +15 -514
- package/dist/vue-components62.es.js +7 -438
- package/dist/vue-components63.es.js +18 -9
- package/dist/vue-components64.es.js +4 -12
- package/dist/vue-components65.es.js +26 -16
- package/dist/vue-components66.es.js +4 -28
- package/dist/vue-components67.es.js +42 -21
- package/dist/vue-components68.es.js +78 -26
- package/dist/vue-components69.es.js +32 -28
- package/dist/vue-components70.es.js +18 -72
- package/dist/vue-components71.es.js +47 -5
- package/package.json +3 -3
- package/dist/vue-components100.es.js +0 -269
- package/dist/vue-components102.es.js +0 -8
- package/dist/vue-components103.es.js +0 -73
- package/dist/vue-components104.es.js +0 -5
- package/dist/vue-components105.es.js +0 -52
- package/dist/vue-components106.es.js +0 -5
- package/dist/vue-components107.es.js +0 -24
- package/dist/vue-components108.es.js +0 -5
- package/dist/vue-components109.es.js +0 -59
- package/dist/vue-components110.es.js +0 -5
- package/dist/vue-components111.es.js +0 -12
- package/dist/vue-components112.es.js +0 -22
- package/dist/vue-components114.es.js +0 -9
- package/dist/vue-components115.es.js +0 -4
- package/dist/vue-components116.es.js +0 -38
- package/dist/vue-components117.es.js +0 -27
- package/dist/vue-components118.es.js +0 -28
- package/dist/vue-components119.es.js +0 -7
- package/dist/vue-components120.es.js +0 -18
- package/dist/vue-components121.es.js +0 -36
- package/dist/vue-components122.es.js +0 -18
- package/dist/vue-components123.es.js +0 -21
- package/dist/vue-components124.es.js +0 -30
- package/dist/vue-components125.es.js +0 -7
- package/dist/vue-components126.es.js +0 -9
- package/dist/vue-components127.es.js +0 -38
- package/dist/vue-components128.es.js +0 -25
- package/dist/vue-components129.es.js +0 -128
- package/dist/vue-components130.es.js +0 -24
- package/dist/vue-components131.es.js +0 -21
- package/dist/vue-components132.es.js +0 -9
- package/dist/vue-components133.es.js +0 -19
- package/dist/vue-components134.es.js +0 -5
- package/dist/vue-components135.es.js +0 -29
- package/dist/vue-components136.es.js +0 -5
- package/dist/vue-components137.es.js +0 -43
- package/dist/vue-components138.es.js +0 -82
- package/dist/vue-components139.es.js +0 -33
- package/dist/vue-components140.es.js +0 -19
- package/dist/vue-components141.es.js +0 -48
- package/dist/vue-components27.es.js +0 -8
- package/dist/vue-components31.es.js +0 -75
- package/dist/vue-components43.es.js +0 -48
- package/dist/vue-components72.es.js +0 -18
- package/dist/vue-components73.es.js +0 -5
- package/dist/vue-components74.es.js +0 -70
- package/dist/vue-components75.es.js +0 -140
- package/dist/vue-components76.es.js +0 -4
- package/dist/vue-components77.es.js +0 -21
- package/dist/vue-components78.es.js +0 -55
- package/dist/vue-components79.es.js +0 -9
- package/dist/vue-components80.es.js +0 -16
- package/dist/vue-components81.es.js +0 -39
- package/dist/vue-components82.es.js +0 -49
- package/dist/vue-components83.es.js +0 -128
- package/dist/vue-components84.es.js +0 -65
- package/dist/vue-components85.es.js +0 -63
- package/dist/vue-components86.es.js +0 -25
- package/dist/vue-components87.es.js +0 -5
- package/dist/vue-components88.es.js +0 -80
- package/dist/vue-components89.es.js +0 -95
- package/dist/vue-components90.es.js +0 -73
- package/dist/vue-components91.es.js +0 -12
- package/dist/vue-components92.es.js +0 -56
- package/dist/vue-components93.es.js +0 -5
- package/dist/vue-components94.es.js +0 -44
- package/dist/vue-components95.es.js +0 -5
- package/dist/vue-components96.es.js +0 -84
- package/dist/vue-components98.es.js +0 -8
- package/dist/vue-components99.es.js +0 -9
|
@@ -1,28 +1,269 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { getInputType as e } from "./vue-components11.es.js";
|
|
2
|
+
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createSlots as a, defineComponent as o, guardReactiveProps as s, mergeProps as c, normalizeProps as l, openBlock as u, renderList as d, renderSlot as f, resolveComponent as p, resolveDynamicComponent as m, unref as h, withCtx as g } from "vue";
|
|
3
|
+
//#region src/components/OmegaForm/OmegaInputVuetify.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _ = /* @__PURE__ */ o({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "OmegaInputVuetify",
|
|
7
|
+
props: {
|
|
8
|
+
inputProps: {},
|
|
9
|
+
field: {},
|
|
10
|
+
state: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["focus", "blur"],
|
|
13
|
+
setup(o) {
|
|
14
|
+
return (_, v) => {
|
|
15
|
+
let y = p("v-text-field"), b = p("v-textarea"), x = p("v-radio"), S = p("v-radio-group"), C = p("v-select"), w = p("v-autocomplete");
|
|
16
|
+
return u(), i("div", {
|
|
17
|
+
class: "omega-input",
|
|
18
|
+
onFocusout: v[4] ||= (e) => {
|
|
19
|
+
_.$emit("blur", e), o.field.handleBlur();
|
|
20
|
+
},
|
|
21
|
+
onFocusin: v[5] ||= (e) => _.$emit("focus", e)
|
|
22
|
+
}, [
|
|
23
|
+
o.inputProps.type === "boolean" || o.inputProps.type === "switch" ? (u(), n(m(o.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), c({
|
|
24
|
+
key: 0,
|
|
25
|
+
id: o.inputProps.id,
|
|
26
|
+
name: o.field.name,
|
|
27
|
+
label: o.inputProps.label,
|
|
28
|
+
"error-messages": o.inputProps.errorMessages,
|
|
29
|
+
error: o.inputProps.error,
|
|
30
|
+
ripple: ""
|
|
31
|
+
}, _.$attrs, {
|
|
32
|
+
"model-value": o.state.value,
|
|
33
|
+
onChange: v[0] ||= (e) => o.field.handleChange(e.target.checked)
|
|
34
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
35
|
+
name: "label",
|
|
36
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
37
|
+
required: o.inputProps.required,
|
|
38
|
+
id: o.inputProps.id,
|
|
39
|
+
label: o.inputProps.label
|
|
40
|
+
})))]),
|
|
41
|
+
key: "0"
|
|
42
|
+
} : void 0]), 1040, [
|
|
43
|
+
"id",
|
|
44
|
+
"name",
|
|
45
|
+
"label",
|
|
46
|
+
"error-messages",
|
|
47
|
+
"error",
|
|
48
|
+
"model-value"
|
|
49
|
+
])) : r("", !0),
|
|
50
|
+
o.inputProps.type === "email" || o.inputProps.type === "string" || o.inputProps.type === "password" || o.inputProps.type === "date" ? (u(), n(y, c({
|
|
51
|
+
key: 1,
|
|
52
|
+
id: o.inputProps.id,
|
|
53
|
+
required: o.inputProps.required,
|
|
54
|
+
"min-length": o.inputProps.minLength,
|
|
55
|
+
"max-length": o.inputProps.maxLength,
|
|
56
|
+
type: h(e)(o.inputProps.type),
|
|
57
|
+
name: o.field.name,
|
|
58
|
+
label: o.inputProps.label,
|
|
59
|
+
"error-messages": o.inputProps.errorMessages,
|
|
60
|
+
error: o.inputProps.error
|
|
61
|
+
}, _.$attrs, {
|
|
62
|
+
"model-value": o.state.value,
|
|
63
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
64
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
65
|
+
name: "label",
|
|
66
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
67
|
+
required: o.inputProps.required,
|
|
68
|
+
id: o.inputProps.id,
|
|
69
|
+
label: o.inputProps.label
|
|
70
|
+
})))]),
|
|
71
|
+
key: "0"
|
|
72
|
+
} : void 0]), 1040, [
|
|
73
|
+
"id",
|
|
74
|
+
"required",
|
|
75
|
+
"min-length",
|
|
76
|
+
"max-length",
|
|
77
|
+
"type",
|
|
78
|
+
"name",
|
|
79
|
+
"label",
|
|
80
|
+
"error-messages",
|
|
81
|
+
"error",
|
|
82
|
+
"model-value",
|
|
83
|
+
"onUpdate:modelValue"
|
|
84
|
+
])) : r("", !0),
|
|
85
|
+
o.inputProps.type === "text" ? (u(), n(b, c({
|
|
86
|
+
key: 2,
|
|
87
|
+
id: o.inputProps.id,
|
|
88
|
+
required: o.inputProps.required,
|
|
89
|
+
"min-length": o.inputProps.minLength,
|
|
90
|
+
"max-length": o.inputProps.maxLength,
|
|
91
|
+
name: o.field.name,
|
|
92
|
+
label: o.inputProps.label,
|
|
93
|
+
"error-messages": o.inputProps.errorMessages,
|
|
94
|
+
error: o.inputProps.error
|
|
95
|
+
}, _.$attrs, {
|
|
96
|
+
"model-value": o.state.value,
|
|
97
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
98
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
99
|
+
name: "label",
|
|
100
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
101
|
+
required: o.inputProps.required,
|
|
102
|
+
id: o.inputProps.id,
|
|
103
|
+
label: o.inputProps.label
|
|
104
|
+
})))]),
|
|
105
|
+
key: "0"
|
|
106
|
+
} : void 0]), 1040, [
|
|
107
|
+
"id",
|
|
108
|
+
"required",
|
|
109
|
+
"min-length",
|
|
110
|
+
"max-length",
|
|
111
|
+
"name",
|
|
112
|
+
"label",
|
|
113
|
+
"error-messages",
|
|
114
|
+
"error",
|
|
115
|
+
"model-value",
|
|
116
|
+
"onUpdate:modelValue"
|
|
117
|
+
])) : r("", !0),
|
|
118
|
+
o.inputProps.type === "number" || o.inputProps.type === "range" ? (u(), n(m(o.inputProps.type === "range" ? "v-slider" : "v-text-field"), c({
|
|
119
|
+
key: 3,
|
|
120
|
+
id: o.inputProps.id,
|
|
121
|
+
required: o.inputProps.required,
|
|
122
|
+
min: o.inputProps.min,
|
|
123
|
+
max: o.inputProps.max,
|
|
124
|
+
type: o.inputProps.type,
|
|
125
|
+
name: o.field.name,
|
|
126
|
+
label: o.inputProps.label,
|
|
127
|
+
"error-messages": o.inputProps.errorMessages,
|
|
128
|
+
error: o.inputProps.error
|
|
129
|
+
}, _.$attrs, {
|
|
130
|
+
"model-value": o.state.value,
|
|
131
|
+
"onUpdate:modelValue": v[1] ||= (e) => {
|
|
132
|
+
e || e === 0 ? o.field.handleChange(Number(e)) : o.field.handleChange(void 0);
|
|
133
|
+
}
|
|
134
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
135
|
+
name: "label",
|
|
136
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
137
|
+
required: o.inputProps.required,
|
|
138
|
+
id: o.inputProps.id,
|
|
139
|
+
label: o.inputProps.label
|
|
140
|
+
})))]),
|
|
141
|
+
key: "0"
|
|
142
|
+
} : void 0]), 1040, [
|
|
143
|
+
"id",
|
|
144
|
+
"required",
|
|
145
|
+
"min",
|
|
146
|
+
"max",
|
|
147
|
+
"type",
|
|
148
|
+
"name",
|
|
149
|
+
"label",
|
|
150
|
+
"error-messages",
|
|
151
|
+
"error",
|
|
152
|
+
"model-value"
|
|
153
|
+
])) : r("", !0),
|
|
154
|
+
o.inputProps.type === "radio" ? (u(), n(S, c({
|
|
155
|
+
key: 4,
|
|
156
|
+
id: o.inputProps.id,
|
|
157
|
+
name: o.field.name,
|
|
158
|
+
label: o.inputProps.label,
|
|
159
|
+
"error-messages": o.inputProps.errorMessages,
|
|
160
|
+
error: o.inputProps.error
|
|
161
|
+
}, _.$attrs, {
|
|
162
|
+
"model-value": o.state.value,
|
|
163
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
164
|
+
}), a({
|
|
165
|
+
default: g(() => [(u(!0), i(t, null, d(o.inputProps.options, (e) => (u(), n(x, {
|
|
166
|
+
key: e.value,
|
|
167
|
+
label: e.title,
|
|
168
|
+
value: e.value
|
|
169
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
170
|
+
_: 2
|
|
171
|
+
}, [_.$slots.label ? {
|
|
172
|
+
name: "label",
|
|
173
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
174
|
+
required: o.inputProps.required,
|
|
175
|
+
id: o.inputProps.id,
|
|
176
|
+
label: o.inputProps.label
|
|
177
|
+
})))]),
|
|
178
|
+
key: "0"
|
|
179
|
+
} : void 0]), 1040, [
|
|
180
|
+
"id",
|
|
181
|
+
"name",
|
|
182
|
+
"label",
|
|
183
|
+
"error-messages",
|
|
184
|
+
"error",
|
|
185
|
+
"model-value",
|
|
186
|
+
"onUpdate:modelValue"
|
|
187
|
+
])) : r("", !0),
|
|
188
|
+
o.inputProps.type === "select" || o.inputProps.type === "multiple" ? (u(), n(C, c({
|
|
189
|
+
key: 5,
|
|
190
|
+
id: o.inputProps.id,
|
|
191
|
+
clearable: o.inputProps.type === "select",
|
|
192
|
+
required: o.inputProps.required,
|
|
193
|
+
multiple: o.inputProps.type === "multiple",
|
|
194
|
+
chips: o.inputProps.type === "multiple",
|
|
195
|
+
name: o.field.name,
|
|
196
|
+
label: o.inputProps.label,
|
|
197
|
+
items: o.inputProps.options,
|
|
198
|
+
"error-messages": o.inputProps.errorMessages,
|
|
199
|
+
error: o.inputProps.error
|
|
200
|
+
}, _.$attrs, {
|
|
201
|
+
"model-value": o.state.value,
|
|
202
|
+
onClear: v[2] ||= (e) => o.field.handleChange(void 0),
|
|
203
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
204
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
205
|
+
name: "label",
|
|
206
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
207
|
+
required: o.inputProps.required,
|
|
208
|
+
id: o.inputProps.id,
|
|
209
|
+
label: o.inputProps.label
|
|
210
|
+
})))]),
|
|
211
|
+
key: "0"
|
|
212
|
+
} : void 0]), 1040, [
|
|
213
|
+
"id",
|
|
214
|
+
"clearable",
|
|
215
|
+
"required",
|
|
216
|
+
"multiple",
|
|
217
|
+
"chips",
|
|
218
|
+
"name",
|
|
219
|
+
"label",
|
|
220
|
+
"items",
|
|
221
|
+
"error-messages",
|
|
222
|
+
"error",
|
|
223
|
+
"model-value",
|
|
224
|
+
"onUpdate:modelValue"
|
|
225
|
+
])) : r("", !0),
|
|
226
|
+
o.inputProps.type === "autocomplete" || o.inputProps.type === "autocompletemultiple" ? (u(), n(w, c({
|
|
227
|
+
key: 6,
|
|
228
|
+
id: o.inputProps.id,
|
|
229
|
+
clearable: o.inputProps.type === "autocomplete",
|
|
230
|
+
multiple: o.inputProps.type === "autocompletemultiple",
|
|
231
|
+
required: o.inputProps.required,
|
|
232
|
+
name: o.field.name,
|
|
233
|
+
label: o.inputProps.label,
|
|
234
|
+
items: o.inputProps.options,
|
|
235
|
+
"error-messages": o.inputProps.errorMessages,
|
|
236
|
+
error: o.inputProps.error,
|
|
237
|
+
chips: o.inputProps.type === "autocompletemultiple"
|
|
238
|
+
}, _.$attrs, {
|
|
239
|
+
"model-value": o.state.value,
|
|
240
|
+
onClear: v[3] ||= (e) => o.field.handleChange(void 0),
|
|
241
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
242
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
243
|
+
name: "label",
|
|
244
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
245
|
+
required: o.inputProps.required,
|
|
246
|
+
id: o.inputProps.id,
|
|
247
|
+
label: o.inputProps.label
|
|
248
|
+
})))]),
|
|
249
|
+
key: "0"
|
|
250
|
+
} : void 0]), 1040, [
|
|
251
|
+
"id",
|
|
252
|
+
"clearable",
|
|
253
|
+
"multiple",
|
|
254
|
+
"required",
|
|
255
|
+
"name",
|
|
256
|
+
"label",
|
|
257
|
+
"items",
|
|
258
|
+
"error-messages",
|
|
259
|
+
"error",
|
|
260
|
+
"chips",
|
|
261
|
+
"model-value",
|
|
262
|
+
"onUpdate:modelValue"
|
|
263
|
+
])) : r("", !0)
|
|
264
|
+
], 32);
|
|
265
|
+
};
|
|
24
266
|
}
|
|
25
|
-
return [];
|
|
26
267
|
});
|
|
27
268
|
//#endregion
|
|
28
|
-
export {
|
|
269
|
+
export { _ as default };
|
|
@@ -1,109 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var d = "~effect/Context/Service", f = function() {
|
|
8
|
-
let e = Error.stackTraceLimit;
|
|
9
|
-
Error.stackTraceLimit = 2;
|
|
10
|
-
let t = /* @__PURE__ */ Error();
|
|
11
|
-
Error.stackTraceLimit = e;
|
|
12
|
-
function n() {}
|
|
13
|
-
let r = n;
|
|
14
|
-
return Object.setPrototypeOf(r, p), Object.defineProperty(r, "stack", { get() {
|
|
15
|
-
return t.stack;
|
|
16
|
-
} }), arguments.length > 0 ? (r.key = arguments[0], arguments[1]?.defaultValue && (r[m] = m, r.defaultValue = arguments[1].defaultValue), r) : function(e, t) {
|
|
17
|
-
return r.key = e, t?.make && (r.make = t.make), r;
|
|
18
|
-
};
|
|
19
|
-
}, p = {
|
|
20
|
-
[d]: d,
|
|
21
|
-
...s,
|
|
22
|
-
...c,
|
|
23
|
-
toJSON() {
|
|
24
|
-
return {
|
|
25
|
-
_id: "Service",
|
|
26
|
-
key: this.key,
|
|
27
|
-
stack: this.stack
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
asEffect() {
|
|
31
|
-
return (this.asEffect = e(u((e) => l(T(e.context, this)))))();
|
|
32
|
-
},
|
|
33
|
-
of(e) {
|
|
34
|
-
return e;
|
|
35
|
-
},
|
|
36
|
-
context(e) {
|
|
37
|
-
return S(this, e);
|
|
38
|
-
},
|
|
39
|
-
use(e) {
|
|
40
|
-
return u((t) => e(T(t.context, this)));
|
|
41
|
-
},
|
|
42
|
-
useSync(e) {
|
|
43
|
-
return u((t) => l(e(T(t.context, this))));
|
|
44
|
-
}
|
|
45
|
-
}, m = "~effect/Context/Reference", h = "~effect/Context", g = (e) => {
|
|
46
|
-
let t = Object.create(_);
|
|
47
|
-
return t.mapUnsafe = e, t.mutable = !1, t;
|
|
48
|
-
}, _ = {
|
|
49
|
-
...s,
|
|
50
|
-
[h]: { _Services: (e) => e },
|
|
51
|
-
toJSON() {
|
|
52
|
-
return {
|
|
53
|
-
_id: "Context",
|
|
54
|
-
services: Array.from(this.mapUnsafe).map(([e, t]) => ({
|
|
55
|
-
key: e,
|
|
56
|
-
value: t
|
|
57
|
-
}))
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
[o](e) {
|
|
61
|
-
if (!v(e) || this.mapUnsafe.size !== e.mapUnsafe.size) return !1;
|
|
62
|
-
for (let t of this.mapUnsafe.keys()) if (!e.mapUnsafe.has(t) || !a(this.mapUnsafe.get(t), e.mapUnsafe.get(t))) return !1;
|
|
63
|
-
return !0;
|
|
64
|
-
},
|
|
65
|
-
[i]() {
|
|
66
|
-
return r(this.mapUnsafe.size);
|
|
67
|
-
}
|
|
68
|
-
}, v = (e) => n(e, h), y = (e) => n(e, m), b = () => x, x = /* @__PURE__ */ g(/* @__PURE__ */ new Map()), S = (e, t) => g(new Map([[e.key, t]])), C = /* @__PURE__ */ t(3, (e, t, n) => N(e, (e) => {
|
|
69
|
-
e.set(t.key, n);
|
|
70
|
-
})), w = /* @__PURE__ */ t(3, (e, t, n) => e.mapUnsafe.has(t.key) ? e.mapUnsafe.get(t.key) : y(t) ? O(t) : n()), T = /* @__PURE__ */ t(2, (e, t) => {
|
|
71
|
-
if (!e.mapUnsafe.has(t.key)) {
|
|
72
|
-
if (m in t) return O(t);
|
|
73
|
-
throw k(t);
|
|
74
|
-
}
|
|
75
|
-
return e.mapUnsafe.get(t.key);
|
|
76
|
-
}), E = (e, t) => e.mapUnsafe.has(t.key) ? e.mapUnsafe.get(t.key) : O(t), D = "~effect/Context/defaultValue", O = (e) => D in e ? e[D] : e[D] = e.defaultValue(), k = (e) => {
|
|
77
|
-
let t = /* @__PURE__ */ Error(`Service not found${e.key ? `: ${String(e.key)}` : ""}`);
|
|
78
|
-
if (e.stack) {
|
|
79
|
-
let n = e.stack.split("\n");
|
|
80
|
-
if (n.length > 2) {
|
|
81
|
-
let e = n[2].match(/at (.*)/);
|
|
82
|
-
e && (t.message += ` (defined at ${e[1]})`);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (t.stack) {
|
|
86
|
-
let e = t.stack.split("\n");
|
|
87
|
-
e.splice(1, 3), t.stack = e.join("\n");
|
|
88
|
-
}
|
|
89
|
-
return t;
|
|
90
|
-
}, A = /* @__PURE__ */ t(2, (e, t) => e.mapUnsafe.size === 0 ? t : t.mapUnsafe.size === 0 ? e : N(e, (e) => {
|
|
91
|
-
t.mapUnsafe.forEach((t, n) => e.set(n, t));
|
|
92
|
-
})), j = (...e) => {
|
|
93
|
-
let t = /* @__PURE__ */ new Map();
|
|
94
|
-
for (let n = 0; n < e.length; n++) e[n].mapUnsafe.forEach((e, n) => {
|
|
95
|
-
t.set(n, e);
|
|
96
|
-
});
|
|
97
|
-
return g(t);
|
|
98
|
-
}, M = (...e) => (t) => N(t, (t) => {
|
|
99
|
-
let n = new Set(e.map((e) => e.key));
|
|
100
|
-
t.forEach((e, r) => {
|
|
101
|
-
n.has(r) || t.delete(r);
|
|
102
|
-
});
|
|
103
|
-
}), N = (e, t) => {
|
|
104
|
-
if (e.mutable) return t(e.mapUnsafe), e;
|
|
105
|
-
let n = new Map(e.mapUnsafe);
|
|
106
|
-
return t(n), g(n);
|
|
107
|
-
}, P = f;
|
|
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-components30.es.js";
|
|
4
|
+
|
|
5
|
+
//#region src/components/OmegaForm/OmegaInputVuetify.vue
|
|
6
|
+
var t = e;
|
|
108
7
|
//#endregion
|
|
109
|
-
export {
|
|
8
|
+
export { t as default };
|
|
@@ -1,57 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import e from "./vue-components32.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, unref 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
|
+
validators: { default: void 0 },
|
|
15
|
+
required: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
inputClass: { default: void 0 },
|
|
20
|
+
register: {},
|
|
21
|
+
options: { 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");
|
|
30
|
+
b.register(t(() => ({
|
|
31
|
+
name: b.field.name,
|
|
32
|
+
label: b.label,
|
|
33
|
+
id: D
|
|
34
|
+
})));
|
|
35
|
+
let j = t(() => k.value[b.field.name]?.errors ?? []), M = t(() => j.value.map((e) => e?.message).filter(Boolean)), N = (e) => e == null || e === !1 || e === "" || Number.isNaN(e), P = (e) => {
|
|
36
|
+
N(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);
|
|
37
|
+
}, F = (e) => new Proxy(e, { get(e, t, n) {
|
|
38
|
+
return t === "handleChange" ? P : Reflect.get(...arguments);
|
|
39
|
+
} }), I = 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: M.value,
|
|
48
|
+
error: !!M.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: F(b.field)
|
|
56
|
+
}));
|
|
57
|
+
return (t, o) => p(t.$slots, "default", d(c({
|
|
58
|
+
...I.value.inputProps,
|
|
59
|
+
field: I.value.field,
|
|
60
|
+
state: I.value.state
|
|
61
|
+
})), () => [i("div", { class: u(E.value) }, [m(S) ? (f(), n(e, d(l({ key: 0 }, {
|
|
62
|
+
...T.value,
|
|
63
|
+
...I.value,
|
|
64
|
+
class: b.inputClass
|
|
65
|
+
})), a({ _: 2 }, [t.$slots.label ? {
|
|
66
|
+
name: "label",
|
|
67
|
+
fn: v((e) => [p(t.$slots, "label", d(c(e)))]),
|
|
68
|
+
key: "0"
|
|
69
|
+
} : void 0]), 1040)) : r("", !0)], 2)]);
|
|
15
70
|
}
|
|
16
|
-
|
|
17
|
-
let e = this.buckets;
|
|
18
|
-
return this.buckets = [], e;
|
|
19
|
-
}
|
|
20
|
-
}, i = class {
|
|
21
|
-
executionMode;
|
|
22
|
-
setImmediate;
|
|
23
|
-
constructor(e = "async", t = n) {
|
|
24
|
-
this.executionMode = e, this.setImmediate = t;
|
|
25
|
-
}
|
|
26
|
-
shouldYield(e) {
|
|
27
|
-
return e.currentOpCount >= e.maxOpsBeforeYield;
|
|
28
|
-
}
|
|
29
|
-
makeDispatcher() {
|
|
30
|
-
return new a(this.setImmediate);
|
|
31
|
-
}
|
|
32
|
-
}, a = class {
|
|
33
|
-
tasks = /* @__PURE__ */ new r();
|
|
34
|
-
running = void 0;
|
|
35
|
-
setImmediate;
|
|
36
|
-
constructor(e = n) {
|
|
37
|
-
this.setImmediate = e;
|
|
38
|
-
}
|
|
39
|
-
scheduleTask(e, t) {
|
|
40
|
-
this.tasks.scheduleTask(e, t), this.running === void 0 && (this.running = this.setImmediate(this.afterScheduled));
|
|
41
|
-
}
|
|
42
|
-
afterScheduled = () => {
|
|
43
|
-
this.running = void 0, this.runTasks();
|
|
44
|
-
};
|
|
45
|
-
runTasks() {
|
|
46
|
-
let e = this.tasks.drain();
|
|
47
|
-
for (let t = 0; t < e.length; t++) {
|
|
48
|
-
let n = e[t][1];
|
|
49
|
-
for (let e = 0; e < n.length; e++) n[e]();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
flush() {
|
|
53
|
-
for (; this.tasks.buckets.length > 0;) this.running !== void 0 && (this.running(), this.running = void 0), this.runTasks();
|
|
54
|
-
}
|
|
55
|
-
}, o = /* @__PURE__ */ e("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 }), s = /* @__PURE__ */ e("effect/Scheduler/PreventSchedulerYield", { defaultValue: () => !1 });
|
|
71
|
+
});
|
|
56
72
|
//#endregion
|
|
57
|
-
export {
|
|
73
|
+
export { b as default };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region
|
|
3
|
-
var t =
|
|
4
|
-
e()(t);
|
|
5
|
-
var n = "effect/Tracer";
|
|
1
|
+
import e from "./vue-components33.es.js";
|
|
2
|
+
//#region src/components/OmegaForm/OmegaInternalInput.vue
|
|
3
|
+
var t = e;
|
|
6
4
|
//#endregion
|
|
7
|
-
export { t as
|
|
5
|
+
export { t as default };
|
|
@@ -1,4 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { useErrorLabel as e } from "./vue-components20.es.js";
|
|
2
|
+
import t from "./vue-components34.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
|
+
name: {},
|
|
13
|
+
inputClass: {}
|
|
14
|
+
},
|
|
15
|
+
setup(o) {
|
|
16
|
+
let _ = o, v = n(() => _.name), y = h(), b = n(() => {
|
|
17
|
+
if (_.inputClass !== null) return _.inputClass === void 0 ? y.class : _.inputClass;
|
|
18
|
+
}), x = c("getMetaFromArray", null), S = n(() => x?.value && x.value(_.name) ? x.value(v.value) : _.form.meta[v.value]), C = e(_.form);
|
|
19
|
+
return (e, n) => (d(), r(p(o.form.Field), {
|
|
20
|
+
name: o.name,
|
|
21
|
+
validators: o.validators
|
|
22
|
+
}, {
|
|
23
|
+
default: g(({ field: n, state: c }) => [S.value ? (d(), r(t, l({ key: 0 }, {
|
|
24
|
+
...e.$attrs,
|
|
25
|
+
...e.$props,
|
|
26
|
+
inputClass: b.value
|
|
27
|
+
}, {
|
|
28
|
+
field: n,
|
|
29
|
+
state: c,
|
|
30
|
+
register: o.form.registerField,
|
|
31
|
+
label: o.label ?? m(C)(v.value),
|
|
32
|
+
meta: S.value
|
|
33
|
+
}), a({
|
|
34
|
+
default: g((t) => [f(e.$slots, "default", u(s(t)))]),
|
|
35
|
+
_: 2
|
|
36
|
+
}, [e.$slots.label ? {
|
|
37
|
+
name: "label",
|
|
38
|
+
fn: g((t) => [f(e.$slots, "label", u(s(t)))]),
|
|
39
|
+
key: "0"
|
|
40
|
+
} : void 0]), 1040, [
|
|
41
|
+
"field",
|
|
42
|
+
"state",
|
|
43
|
+
"register",
|
|
44
|
+
"label",
|
|
45
|
+
"meta"
|
|
46
|
+
])) : i("", !0)]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 8, ["name", "validators"]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
3
51
|
//#endregion
|
|
4
|
-
export {
|
|
52
|
+
export { _ as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var n = /* @__PURE__ */ t("effect/References/CurrentConcurrency", { defaultValue: () => "unbounded" }), r = /* @__PURE__ */ t("effect/References/CurrentStackFrame", { defaultValue: e }), i = /* @__PURE__ */ t("effect/References/CurrentLogLevel", { defaultValue: () => "Info" }), a = /* @__PURE__ */ t("effect/References/MinimumLogLevel", { defaultValue: () => "Info" });
|
|
1
|
+
import e from "./vue-components35.es.js";
|
|
2
|
+
//#region src/components/OmegaForm/OmegaInput.vue
|
|
3
|
+
var t = e;
|
|
5
4
|
//#endregion
|
|
6
|
-
export {
|
|
5
|
+
export { t as default };
|