@web-utils/form-ui 1.0.0-beta12 → 1.0.0-beta13
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/chunks/{78hGOZc9.mjs → ALt4yf68.mjs} +1 -1
- package/chunks/{BMkPC2kt.mjs → B9ZV4Ei4.mjs} +2 -2
- package/chunks/{pFgf4c4i.mjs → BG_Z3LzE.mjs} +1 -1
- package/chunks/{DAjuA2O6.mjs → BGad3Wff.mjs} +2 -2
- package/chunks/{Bs_IYr3X.mjs → BJCpNo2b.mjs} +1 -1
- package/chunks/BM34G781.mjs +26848 -0
- package/chunks/{1glrRdhD.mjs → BYqiGFdT.mjs} +1 -1
- package/chunks/{BooKKkk0.mjs → Bc4d8vFN.mjs} +1 -1
- package/chunks/{C4JpDEWP.mjs → BouiHKbN.mjs} +1 -1
- package/chunks/{BnycM8aG.mjs → CQowXkhx.mjs} +1 -1
- package/chunks/{GlsJxLiF.mjs → CaHyPp0T.mjs} +1 -1
- package/chunks/{Dywq0t6V.mjs → CmtaSp-T.mjs} +1 -1
- package/chunks/{BeIZhqg_.mjs → Cqm2ahW2.mjs} +1 -1
- package/chunks/{BuZDN2DV.mjs → DZdQxw_s.mjs} +2 -2
- package/chunks/{BID1Rr2O.mjs → DeOt3q3a.mjs} +1 -1
- package/chunks/{BaExlbMY.mjs → Dr0gqiWt.mjs} +1 -1
- package/chunks/{BmQGmui_.mjs → oRDjUjCZ.mjs} +1 -1
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/index.mjs +32 -33
- package/json-editor/index.mjs +1 -1
- package/json-editor/style.css +1 -1
- package/package.json +1 -2
- package/resolver.mjs +12 -64
- package/web-types.json +1 -1
- package/chunks/BPJNSq9M.mjs +0 -4
- package/chunks/DZpWiA3x.mjs +0 -74
package/chunks/DZpWiA3x.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { createVNode as e, nextTick as t, onMounted as n, useTemplateRef as r, watch as i } from "vue";
|
|
2
|
-
import a from "jsoneditor/dist/jsoneditor";
|
|
3
|
-
import "jsoneditor/dist/jsoneditor.css";
|
|
4
|
-
//#region src/components/json-editor/JsonEditor.vue?vue&type=script&lang.jsx
|
|
5
|
-
var o = [
|
|
6
|
-
"tree",
|
|
7
|
-
"view",
|
|
8
|
-
"form"
|
|
9
|
-
], s = {
|
|
10
|
-
name: "JsonEditor",
|
|
11
|
-
props: {
|
|
12
|
-
modelValue: [
|
|
13
|
-
String,
|
|
14
|
-
Boolean,
|
|
15
|
-
Object,
|
|
16
|
-
Array
|
|
17
|
-
],
|
|
18
|
-
expanded: Boolean,
|
|
19
|
-
mode: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "tree"
|
|
22
|
-
},
|
|
23
|
-
modes: {
|
|
24
|
-
type: Array,
|
|
25
|
-
default() {
|
|
26
|
-
return [
|
|
27
|
-
"tree",
|
|
28
|
-
"code",
|
|
29
|
-
"form",
|
|
30
|
-
"text",
|
|
31
|
-
"view"
|
|
32
|
-
];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: [
|
|
37
|
-
"mode-change",
|
|
38
|
-
"error",
|
|
39
|
-
"update:modelValue"
|
|
40
|
-
],
|
|
41
|
-
setup(s, { emit: c }) {
|
|
42
|
-
let l = r("editor"), u = !1, d, f = () => {
|
|
43
|
-
s.expanded && o.includes(s.mode) && d.expandAll();
|
|
44
|
-
}, p = (e) => {
|
|
45
|
-
d && d.set(e);
|
|
46
|
-
};
|
|
47
|
-
return i(() => s.modelValue, (e) => {
|
|
48
|
-
u || (p(e), f());
|
|
49
|
-
}, { immediate: !0 }), n(() => {
|
|
50
|
-
let e = {
|
|
51
|
-
mode: s.mode,
|
|
52
|
-
modes: s.modes,
|
|
53
|
-
onChange() {
|
|
54
|
-
try {
|
|
55
|
-
u = !0, c("update:modelValue", d.get()), t(() => {
|
|
56
|
-
u = !1;
|
|
57
|
-
});
|
|
58
|
-
} catch (e) {
|
|
59
|
-
c("error", e);
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
onModeChange(e) {
|
|
63
|
-
c("mode-change", e), o.includes(e) && f();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
d = new a(l.value, e, s.modelValue);
|
|
67
|
-
}), () => e("div", {
|
|
68
|
-
ref: "editor",
|
|
69
|
-
class: "json-editor"
|
|
70
|
-
}, null);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
//#endregion
|
|
74
|
-
export { s as t };
|