@effect-app/vue-components 4.0.0-beta.157 → 4.0.0-beta.159
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/types/components/OmegaForm/OmegaArray.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +2 -1
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +2 -2
- package/dist/types/components/OmegaForm/errors.d.ts +33 -0
- package/dist/types/components/OmegaForm/getOmegaStore.d.ts +1 -1
- package/dist/types/components/OmegaForm/hocs.d.ts +3 -0
- package/dist/types/components/OmegaForm/index.d.ts +13 -3
- package/dist/types/components/OmegaForm/inputs.d.ts +4 -0
- package/dist/types/components/OmegaForm/meta/checks.d.ts +4 -0
- package/dist/types/components/OmegaForm/meta/createMeta.d.ts +32 -0
- package/dist/types/components/OmegaForm/meta/defaults.d.ts +2 -0
- package/dist/types/components/OmegaForm/meta/redacted.d.ts +2 -0
- package/dist/types/components/OmegaForm/meta/types.d.ts +56 -0
- package/dist/types/components/OmegaForm/meta/walker.d.ts +18 -0
- package/dist/types/components/OmegaForm/persistency.d.ts +58 -0
- package/dist/types/components/OmegaForm/submit.d.ts +60 -0
- package/dist/types/components/OmegaForm/types.d.ts +281 -0
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +6 -212
- package/dist/types/components/OmegaForm/validation/localized.d.ts +10 -0
- package/dist/vue-components.es.js +24 -16
- package/dist/vue-components10.es.js +4 -4
- package/dist/vue-components11.es.js +19 -12
- package/dist/vue-components12.es.js +22 -444
- package/dist/vue-components13.es.js +126 -3
- package/dist/vue-components14.es.js +61 -34
- package/dist/vue-components15.es.js +57 -24
- package/dist/vue-components16.es.js +20 -26
- package/dist/vue-components17.es.js +4 -6
- package/dist/vue-components18.es.js +78 -16
- package/dist/vue-components19.es.js +86 -30
- package/dist/vue-components20.es.js +72 -17
- package/dist/vue-components21.es.js +10 -19
- package/dist/vue-components22.es.js +54 -28
- package/dist/vue-components23.es.js +4 -6
- package/dist/vue-components24.es.js +43 -8
- package/dist/vue-components25.es.js +4 -37
- package/dist/vue-components26.es.js +83 -24
- package/dist/vue-components28.es.js +6 -22
- package/dist/vue-components29.es.js +8 -20
- package/dist/vue-components3.es.js +2 -2
- package/dist/vue-components30.es.js +267 -7
- package/dist/vue-components32.es.js +7 -4
- package/dist/vue-components33.es.js +71 -27
- package/dist/vue-components34.es.js +4 -4
- package/dist/vue-components35.es.js +50 -27
- package/dist/vue-components36.es.js +4 -5
- package/dist/vue-components37.es.js +23 -17
- package/dist/vue-components38.es.js +4 -55
- package/dist/vue-components39.es.js +57 -3
- package/dist/vue-components40.es.js +4 -43
- package/dist/vue-components41.es.js +11 -4
- package/dist/vue-components42.es.js +17 -79
- package/dist/vue-components44.es.js +8 -7
- package/dist/vue-components45.es.js +3 -8
- package/dist/vue-components46.es.js +36 -267
- package/dist/vue-components47.es.js +27 -0
- package/dist/vue-components48.es.js +27 -7
- package/dist/vue-components49.es.js +6 -79
- package/dist/vue-components50.es.js +17 -4
- package/dist/vue-components51.es.js +32 -69
- package/dist/vue-components52.es.js +17 -4
- package/dist/vue-components53.es.js +19 -22
- package/dist/vue-components54.es.js +29 -4
- package/dist/vue-components55.es.js +6 -58
- package/dist/vue-components56.es.js +8 -4
- package/dist/vue-components57.es.js +37 -11
- package/dist/vue-components58.es.js +24 -21
- package/dist/{vue-components27.es.js → vue-components59.es.js} +2 -2
- package/dist/vue-components6.es.js +11 -11
- package/dist/vue-components60.es.js +23 -8
- package/dist/vue-components61.es.js +18 -232
- package/dist/vue-components62.es.js +7 -31
- package/dist/vue-components63.es.js +19 -8
- package/dist/vue-components64.es.js +4 -35
- package/dist/vue-components65.es.js +29 -0
- package/dist/vue-components66.es.js +5 -0
- package/dist/vue-components67.es.js +29 -0
- package/dist/vue-components68.es.js +6 -0
- package/dist/vue-components69.es.js +18 -0
- package/dist/vue-components7.es.js +11 -26
- package/dist/vue-components70.es.js +40 -0
- package/dist/vue-components71.es.js +81 -0
- package/dist/vue-components72.es.js +33 -0
- package/dist/vue-components73.es.js +19 -0
- package/dist/vue-components74.es.js +48 -0
- package/dist/vue-components8.es.js +33 -45
- package/dist/vue-components9.es.js +46 -4
- package/package.json +7 -7
- package/src/components/CommandButton.vue +3 -1
- package/src/components/OmegaForm/OmegaArray.vue +1 -1
- package/src/components/OmegaForm/OmegaAutoGen.vue +2 -1
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +1 -1
- package/src/components/OmegaForm/OmegaFormInput.vue +1 -1
- package/src/components/OmegaForm/OmegaInput.vue +6 -68
- package/src/components/OmegaForm/OmegaInputVuetify.vue +1 -1
- package/src/components/OmegaForm/OmegaInternalInput.vue +5 -11
- package/src/components/OmegaForm/OmegaTaggedUnion.vue +2 -1
- package/src/components/OmegaForm/OmegaWrapper.vue +1 -1
- package/src/components/OmegaForm/blockDialog.ts +10 -1
- package/src/components/OmegaForm/createUseFormWithCustomInput.ts +2 -1
- package/src/components/OmegaForm/errors.ts +136 -0
- package/src/components/OmegaForm/getOmegaStore.ts +1 -1
- package/src/components/OmegaForm/hocs.ts +19 -0
- package/src/components/OmegaForm/index.ts +16 -4
- package/src/components/OmegaForm/inputs.ts +22 -0
- package/src/components/OmegaForm/meta/checks.ts +81 -0
- package/src/components/OmegaForm/meta/createMeta.ts +138 -0
- package/src/components/OmegaForm/meta/defaults.ts +132 -0
- package/src/components/OmegaForm/meta/redacted.ts +66 -0
- package/src/components/OmegaForm/meta/types.ts +78 -0
- package/src/components/OmegaForm/meta/walker.ts +247 -0
- package/src/components/OmegaForm/persistency.ts +247 -0
- package/src/components/OmegaForm/submit.ts +128 -0
- package/src/components/OmegaForm/types.ts +751 -0
- package/src/components/OmegaForm/useOmegaForm.ts +49 -913
- package/src/components/OmegaForm/validation/localized.ts +202 -0
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -173
- package/dist/vue-components31.es.js +0 -19
- package/src/components/OmegaForm/OmegaFormStuff.ts +0 -1422
|
@@ -1,269 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
};
|
|
1
|
+
import { VERSION as e } from "./vue-components45.es.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/semver.js
|
|
3
|
+
var t = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
4
|
+
function n(e) {
|
|
5
|
+
let n = new Set([e]), r = /* @__PURE__ */ new Set(), i = e.match(t);
|
|
6
|
+
if (!i) return () => !1;
|
|
7
|
+
let a = {
|
|
8
|
+
major: +i[1],
|
|
9
|
+
minor: +i[2],
|
|
10
|
+
patch: +i[3],
|
|
11
|
+
prerelease: i[4]
|
|
12
|
+
};
|
|
13
|
+
if (a.prerelease != null) return function(t) {
|
|
14
|
+
return t === e;
|
|
15
|
+
};
|
|
16
|
+
function o(e) {
|
|
17
|
+
return r.add(e), !1;
|
|
18
|
+
}
|
|
19
|
+
function s(e) {
|
|
20
|
+
return n.add(e), !0;
|
|
266
21
|
}
|
|
267
|
-
|
|
22
|
+
return function(e) {
|
|
23
|
+
if (n.has(e)) return !0;
|
|
24
|
+
if (r.has(e)) return !1;
|
|
25
|
+
let i = e.match(t);
|
|
26
|
+
if (!i) return o(e);
|
|
27
|
+
let c = {
|
|
28
|
+
major: +i[1],
|
|
29
|
+
minor: +i[2],
|
|
30
|
+
patch: +i[3],
|
|
31
|
+
prerelease: i[4]
|
|
32
|
+
};
|
|
33
|
+
return c.prerelease != null || a.major !== c.major ? o(e) : a.major === 0 ? a.minor === c.minor && a.patch <= c.patch ? s(e) : o(e) : a.minor <= c.minor ? s(e) : o(e);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
var r = n(e);
|
|
268
37
|
//#endregion
|
|
269
|
-
export {
|
|
38
|
+
export { r as isCompatible };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VERSION as e } from "./vue-components45.es.js";
|
|
2
|
+
import { isCompatible as t } from "./vue-components46.es.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
|
|
4
|
+
var n = e.split(".")[0], r = Symbol.for(`opentelemetry.js.api.${n}`), i = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {};
|
|
5
|
+
function a(t, n, a, o = !1) {
|
|
6
|
+
let s = i[r] = i[r] ?? { version: e };
|
|
7
|
+
if (!o && s[t]) {
|
|
8
|
+
let e = /* @__PURE__ */ Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);
|
|
9
|
+
return a.error(e.stack || e.message), !1;
|
|
10
|
+
}
|
|
11
|
+
if (s.version !== "1.9.1") {
|
|
12
|
+
let n = /* @__PURE__ */ Error(`@opentelemetry/api: Registration of version v${s.version} for ${t} does not match previously registered API v${e}`);
|
|
13
|
+
return a.error(n.stack || n.message), !1;
|
|
14
|
+
}
|
|
15
|
+
return s[t] = n, a.debug(`@opentelemetry/api: Registered a global for ${t} v${e}.`), !0;
|
|
16
|
+
}
|
|
17
|
+
function o(e) {
|
|
18
|
+
let n = i[r]?.version;
|
|
19
|
+
if (!(!n || !t(n))) return i[r]?.[e];
|
|
20
|
+
}
|
|
21
|
+
function s(t, n) {
|
|
22
|
+
n.debug(`@opentelemetry/api: Unregistering a global for ${t} v${e}.`);
|
|
23
|
+
let a = i[r];
|
|
24
|
+
a && delete a[t];
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { o as getGlobal, a as registerGlobal, s as unregisterGlobal };
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { getGlobal as e } from "./vue-components47.es.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
|
|
3
|
+
var t = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this._namespace = e.namespace || "DiagComponentLogger";
|
|
6
|
+
}
|
|
7
|
+
debug(...e) {
|
|
8
|
+
return n("debug", this._namespace, e);
|
|
9
|
+
}
|
|
10
|
+
error(...e) {
|
|
11
|
+
return n("error", this._namespace, e);
|
|
12
|
+
}
|
|
13
|
+
info(...e) {
|
|
14
|
+
return n("info", this._namespace, e);
|
|
15
|
+
}
|
|
16
|
+
warn(...e) {
|
|
17
|
+
return n("warn", this._namespace, e);
|
|
18
|
+
}
|
|
19
|
+
verbose(...e) {
|
|
20
|
+
return n("verbose", this._namespace, e);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function n(t, n, r) {
|
|
24
|
+
let i = e("diag");
|
|
25
|
+
if (i) return i[t](n, ...r);
|
|
26
|
+
}
|
|
7
27
|
//#endregion
|
|
8
|
-
export { t as
|
|
28
|
+
export { t as DiagComponentLogger };
|
|
@@ -1,80 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
let t = !1;
|
|
37
|
-
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), t = !0) : b.field.handleChange(e) : b.field.handleChange(e), t || b.field.setMeta((e) => ({
|
|
38
|
-
...e,
|
|
39
|
-
errorMap: {
|
|
40
|
-
...e.errorMap,
|
|
41
|
-
onSubmit: void 0
|
|
42
|
-
}
|
|
43
|
-
}));
|
|
44
|
-
}, F = (e) => new Proxy(e, { get(e, t, n) {
|
|
45
|
-
return t === "handleChange" ? P : Reflect.get(...arguments);
|
|
46
|
-
} }), I = t(() => ({
|
|
47
|
-
inputProps: {
|
|
48
|
-
id: D,
|
|
49
|
-
required: x.value,
|
|
50
|
-
minLength: b.meta?.type === "string" && b.meta?.minLength,
|
|
51
|
-
maxLength: b.meta?.type === "string" && b.meta?.maxLength,
|
|
52
|
-
max: b.meta?.type === "number" ? b.meta?.maximum ?? (typeof b.meta?.exclusiveMaximum == "number" ? b.meta.exclusiveMaximum - 1 : void 0) : void 0,
|
|
53
|
-
min: b.meta?.type === "number" ? b.meta?.minimum ?? (typeof b.meta?.exclusiveMinimum == "number" ? b.meta.exclusiveMinimum + 1 : void 0) : void 0,
|
|
54
|
-
errorMessages: M.value,
|
|
55
|
-
error: !!M.value.length,
|
|
56
|
-
type: A.value,
|
|
57
|
-
label: w.label ? b.label : `${b.label}${x.value ? " *" : ""}`,
|
|
58
|
-
options: b.options,
|
|
59
|
-
inputClass: b.inputClass
|
|
60
|
-
},
|
|
61
|
-
state: b.state,
|
|
62
|
-
field: F(b.field)
|
|
63
|
-
}));
|
|
64
|
-
return (t, o) => p(t.$slots, "default", d(c({
|
|
65
|
-
...I.value.inputProps,
|
|
66
|
-
field: I.value.field,
|
|
67
|
-
state: I.value.state
|
|
68
|
-
})), () => [i("div", { class: u(E.value) }, [m(S) ? (f(), n(e, d(l({ key: 0 }, {
|
|
69
|
-
...T.value,
|
|
70
|
-
...I.value,
|
|
71
|
-
class: b.inputClass
|
|
72
|
-
})), a({ _: 2 }, [t.$slots.label ? {
|
|
73
|
-
name: "label",
|
|
74
|
-
fn: v((e) => [p(t.$slots, "label", d(c(e)))]),
|
|
75
|
-
key: "0"
|
|
76
|
-
} : void 0]), 1040)) : r("", !0)], 2)]);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
1
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/types.js
|
|
2
|
+
var e;
|
|
3
|
+
(function(e) {
|
|
4
|
+
e[e.NONE = 0] = "NONE", e[e.ERROR = 30] = "ERROR", e[e.WARN = 50] = "WARN", e[e.INFO = 60] = "INFO", e[e.DEBUG = 70] = "DEBUG", e[e.VERBOSE = 80] = "VERBOSE", e[e.ALL = 9999] = "ALL";
|
|
5
|
+
})(e ||= {});
|
|
79
6
|
//#endregion
|
|
80
|
-
export {
|
|
7
|
+
export { e as DiagLogLevel };
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import e from "./vue-components49.es.js";
|
|
2
|
-
//#region
|
|
3
|
-
|
|
1
|
+
import { DiagLogLevel as e } from "./vue-components49.es.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
t < e.NONE ? t = e.NONE : t > e.ALL && (t = e.ALL), n ||= {};
|
|
5
|
+
function r(e, r) {
|
|
6
|
+
let i = n[e];
|
|
7
|
+
return typeof i == "function" && t >= r ? i.bind(n) : function() {};
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
error: r("error", e.ERROR),
|
|
11
|
+
warn: r("warn", e.WARN),
|
|
12
|
+
info: r("info", e.INFO),
|
|
13
|
+
debug: r("debug", e.DEBUG),
|
|
14
|
+
verbose: r("verbose", e.VERBOSE)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
4
17
|
//#endregion
|
|
5
|
-
export { t as
|
|
18
|
+
export { t as createLogLevelDiagLogger };
|
|
@@ -1,73 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (!e) return b.value;
|
|
23
|
-
let t = e;
|
|
24
|
-
return `${b.value}-${t.type}-${t.minLength ?? ""}-${t.maxLength ?? ""}-${t.minimum ?? ""}-${t.maximum ?? ""}`;
|
|
25
|
-
}), { trans: E } = e(), D = (e) => Array.isArray(e?.issues) && e.issues.length > 0, O = (e, t) => ({ "~standard": {
|
|
26
|
-
...e["~standard"],
|
|
27
|
-
validate: (n) => {
|
|
28
|
-
let r = e["~standard"].validate(n);
|
|
29
|
-
return r && typeof r.then == "function" ? r.then((e) => D(e) ? e : t["~standard"].validate(n)) : D(r) ? r : t["~standard"].validate(n);
|
|
1
|
+
import { getGlobal as e, registerGlobal as t, unregisterGlobal as n } from "./vue-components47.es.js";
|
|
2
|
+
import { DiagComponentLogger as r } from "./vue-components48.es.js";
|
|
3
|
+
import { DiagLogLevel as i } from "./vue-components49.es.js";
|
|
4
|
+
import { createLogLevelDiagLogger as a } from "./vue-components50.es.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/diag.js
|
|
6
|
+
var o = "diag", s = class s {
|
|
7
|
+
static instance() {
|
|
8
|
+
return this._instance ||= new s(), this._instance;
|
|
9
|
+
}
|
|
10
|
+
constructor() {
|
|
11
|
+
function s(t) {
|
|
12
|
+
return function(...n) {
|
|
13
|
+
let r = e("diag");
|
|
14
|
+
if (r) return r[t](...n);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
let c = this;
|
|
18
|
+
c.setLogger = (n, r = { logLevel: i.INFO }) => {
|
|
19
|
+
if (n === c) {
|
|
20
|
+
let e = /* @__PURE__ */ Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
21
|
+
return c.error(e.stack ?? e.message), !1;
|
|
30
22
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return (e, t) => (p(), a(h(c.form.Field), {
|
|
37
|
-
key: T.value,
|
|
38
|
-
name: c.name,
|
|
39
|
-
validators: {
|
|
40
|
-
...c.validators,
|
|
41
|
-
onSubmit: k.value
|
|
23
|
+
typeof r == "number" && (r = { logLevel: r });
|
|
24
|
+
let o = e("diag"), s = a(r.logLevel ?? i.INFO, n);
|
|
25
|
+
if (o && !r.suppressOverrideMessage) {
|
|
26
|
+
let e = (/* @__PURE__ */ Error()).stack ?? "<failed to generate stacktrace>";
|
|
27
|
+
o.warn(`Current logger will be overwritten from ${e}`), s.warn(`Current logger will overwrite one already registered from ${e}`);
|
|
42
28
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
inputClass: S.value
|
|
48
|
-
}, {
|
|
49
|
-
field: t,
|
|
50
|
-
state: r,
|
|
51
|
-
register: c.form.registerField,
|
|
52
|
-
label: c.label ?? g(A)(b.value),
|
|
53
|
-
meta: w.value
|
|
54
|
-
}), s({
|
|
55
|
-
default: v((t) => [m(e.$slots, "default", f(l(t)))]),
|
|
56
|
-
_: 2
|
|
57
|
-
}, [e.$slots.label ? {
|
|
58
|
-
name: "label",
|
|
59
|
-
fn: v((t) => [m(e.$slots, "label", f(l(t)))]),
|
|
60
|
-
key: "0"
|
|
61
|
-
} : void 0]), 1040, [
|
|
62
|
-
"field",
|
|
63
|
-
"state",
|
|
64
|
-
"register",
|
|
65
|
-
"label",
|
|
66
|
-
"meta"
|
|
67
|
-
])) : o("", !0)]),
|
|
68
|
-
_: 3
|
|
69
|
-
}, 8, ["name", "validators"]));
|
|
29
|
+
return t("diag", s, c, !0);
|
|
30
|
+
}, c.disable = () => {
|
|
31
|
+
n(o, c);
|
|
32
|
+
}, c.createComponentLogger = (e) => new r(e), c.verbose = s("verbose"), c.debug = s("debug"), c.info = s("info"), c.warn = s("warn"), c.error = s("error");
|
|
70
33
|
}
|
|
71
|
-
}
|
|
34
|
+
};
|
|
72
35
|
//#endregion
|
|
73
|
-
export {
|
|
36
|
+
export { s as DiagAPI };
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return Symbol.for(e);
|
|
4
|
+
}
|
|
5
|
+
var t = new class e {
|
|
6
|
+
constructor(t) {
|
|
7
|
+
let n = this;
|
|
8
|
+
n._currentContext = t ? new Map(t) : /* @__PURE__ */ new Map(), n.getValue = (e) => n._currentContext.get(e), n.setValue = (t, r) => {
|
|
9
|
+
let i = new e(n._currentContext);
|
|
10
|
+
return i._currentContext.set(t, r), i;
|
|
11
|
+
}, n.deleteValue = (t) => {
|
|
12
|
+
let r = new e(n._currentContext);
|
|
13
|
+
return r._currentContext.delete(t), r;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}();
|
|
4
17
|
//#endregion
|
|
5
|
-
export { t as
|
|
18
|
+
export { t as ROOT_CONTEXT, e as createContextKey };
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
state: {},
|
|
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.state, (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.state ? i(a.$slots, `${t.name ? `${t.name}.` : ""}${t.state}`, r(n({ key: 0 }, {
|
|
18
|
-
field: t.field,
|
|
19
|
-
state: t.state
|
|
20
|
-
}))) : e("", !0);
|
|
1
|
+
import { ROOT_CONTEXT as e } from "./vue-components52.es.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
|
|
3
|
+
var t = class {
|
|
4
|
+
active() {
|
|
5
|
+
return e;
|
|
21
6
|
}
|
|
22
|
-
|
|
7
|
+
with(e, t, n, ...r) {
|
|
8
|
+
return t.call(n, ...r);
|
|
9
|
+
}
|
|
10
|
+
bind(e, t) {
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
enable() {
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
disable() {
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
23
20
|
//#endregion
|
|
24
|
-
export {
|
|
21
|
+
export { t as NoopContextManager };
|