@web-utils/form-ui 1.0.0-beta11 → 1.0.0-beta12
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/{9r0_sTqG.mjs → 1glrRdhD.mjs} +1 -1
- package/chunks/{B0sH1q9x.mjs → 78hGOZc9.mjs} +1 -1
- package/chunks/{MyHLh1cw.mjs → BID1Rr2O.mjs} +1 -1
- package/chunks/{D6lrfzE7.mjs → BMkPC2kt.mjs} +2 -2
- package/chunks/{DF-zPBqJ.mjs → BaExlbMY.mjs} +1 -1
- package/chunks/{C-lymD_X.mjs → BeIZhqg_.mjs} +1 -1
- package/chunks/{CBsIU5Nz.mjs → BmQGmui_.mjs} +1 -1
- package/chunks/{DQS-CovH.mjs → BnycM8aG.mjs} +1 -1
- package/chunks/{nNDPU9_n.mjs → BooKKkk0.mjs} +1 -1
- package/chunks/{8R_Eq-Q1.mjs → Bs_IYr3X.mjs} +1 -1
- package/chunks/{DPkBzek6.mjs → BuZDN2DV.mjs} +2 -2
- package/chunks/{CnmwUrOm.mjs → C4JpDEWP.mjs} +1 -1
- package/chunks/{CoU4aVFm.mjs → DAjuA2O6.mjs} +2 -2
- package/chunks/DZpWiA3x.mjs +74 -0
- package/chunks/{B7c_xqYl.mjs → Dywq0t6V.mjs} +1 -1
- package/chunks/{TVsbSR1G.mjs → GlsJxLiF.mjs} +1 -1
- package/chunks/{DuPXiRRS.mjs → pFgf4c4i.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-holder/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-row/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 -32
- package/json-editor/index.mjs +1 -1
- package/json-editor/style.css +1 -1
- package/package.json +2 -1
- package/resolver.mjs +19 -19
- package/web-types.json +1 -1
- package/chunks/CItjaxJe.mjs +0 -28622
- /package/chunks/{5J-OUxoQ.mjs → 6Ukll2os.mjs} +0 -0
- /package/chunks/{EReAG82c.mjs → BPJNSq9M.mjs} +0 -0
- /package/chunks/{DDKk9iwV.mjs → Bpox2cVQ.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./
|
|
1
|
+
import { n as e, o as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { ElRate as r } from "element-plus/es";
|
|
3
3
|
import { createVNode as i, isVNode as a } from "vue";
|
|
4
4
|
//#region src/components/form/FormRate.vue?vue&type=script&lang.jsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n } from "./
|
|
2
|
-
import { t as r } from "./
|
|
1
|
+
import { a as e, n as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
|
+
import { t as r } from "./Bs_IYr3X.mjs";
|
|
3
3
|
import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./
|
|
1
|
+
import { n as e, o as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { ElSlider as r } from "element-plus/es";
|
|
3
3
|
import { createVNode as i, isVNode as a } from "vue";
|
|
4
4
|
//#region src/components/form/FormSlider.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./BPJNSq9M.mjs";
|
|
2
2
|
import { ElCol as t, ElFormItem as n, ElTooltip as r } from "element-plus/es";
|
|
3
3
|
import { computed as i, createVNode as a, h as o, inject as s, mergeProps as c, nextTick as l, unref as u, useTemplateRef as d } from "vue";
|
|
4
4
|
import { ElCol as f, rowContextKey as p } from "element-plus";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./
|
|
1
|
+
import { n as e, o as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { ElCheckbox as r, ElCheckboxGroup as i } from "element-plus/es";
|
|
3
3
|
import { computed as a, createVNode as o, isVNode as s } from "vue";
|
|
4
4
|
//#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./
|
|
1
|
+
import { n as e, o as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { ElSwitch as r } from "element-plus/es";
|
|
3
3
|
import { createVNode as i, isVNode as a } from "vue";
|
|
4
4
|
//#region src/components/form/FormSwitch.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { computed as i, createVNode as a } from "vue";
|
|
3
3
|
import { ElInput as o } from "element-plus";
|
|
4
4
|
import { validatePhoneNum as s } from "@web-utils/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n } from "./
|
|
2
|
-
import { t as r } from "./
|
|
1
|
+
import { a as e, n as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
|
+
import { t as r } from "./Bs_IYr3X.mjs";
|
|
3
3
|
import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n } from "./
|
|
2
|
-
import { t as r } from "./
|
|
1
|
+
import { a as e, n as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
|
+
import { t as r } from "./Bs_IYr3X.mjs";
|
|
3
3
|
import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -0,0 +1,74 @@
|
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, i as t, r as n } from "./
|
|
1
|
+
import { c as e, i as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { ElImage as r } from "element-plus/es";
|
|
3
3
|
import { createVNode as i, isVNode as a } from "vue";
|
|
4
4
|
//#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./
|
|
1
|
+
import { n as e, o as t, r as n } from "./BeIZhqg_.mjs";
|
|
2
2
|
import { ElRadio as r, ElRadioGroup as i } from "element-plus/es";
|
|
3
3
|
import { createVNode as a, isVNode as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BmQGmui_.mjs";
|
|
2
2
|
export { e as default };
|
package/form-checkbox/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/C4JpDEWP.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BnycM8aG.mjs";
|
|
2
2
|
export { e as default };
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/6Ukll2os.mjs";
|
|
2
2
|
export { e as default };
|
package/form-image/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/GlsJxLiF.mjs";
|
|
2
2
|
export { e as default };
|
package/form-input/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Bs_IYr3X.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BuZDN2DV.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DAjuA2O6.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/78hGOZc9.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BMkPC2kt.mjs";
|
|
2
2
|
export { e as default };
|
package/form-item-x/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { s as e } from "../chunks/
|
|
1
|
+
import { s as e } from "../chunks/BeIZhqg_.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/pFgf4c4i.mjs";
|
|
2
2
|
export { e as default };
|
package/form-rate/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BID1Rr2O.mjs";
|
|
2
2
|
export { e as default };
|
package/form-row/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Bpox2cVQ.mjs";
|
|
2
2
|
export { e as default };
|
package/form-select/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Dywq0t6V.mjs";
|
|
2
2
|
export { e as default };
|
package/form-slider/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BaExlbMY.mjs";
|
|
2
2
|
export { e as default };
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BooKKkk0.mjs";
|
|
2
2
|
export { e as default };
|
package/form-text/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/1glrRdhD.mjs";
|
|
2
2
|
export { e as default };
|
package/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./form-
|
|
6
|
-
import a from "./
|
|
7
|
-
import {
|
|
8
|
-
import { t as s } from "./chunks/
|
|
9
|
-
import { t as c } from "./chunks/
|
|
10
|
-
import
|
|
11
|
-
import u from "./
|
|
12
|
-
import { t as d } from "./chunks/
|
|
13
|
-
import { t as f } from "./chunks/
|
|
14
|
-
import { t as p } from "./chunks/
|
|
15
|
-
import { t as m } from "./chunks/
|
|
16
|
-
import { t as h } from "./chunks/
|
|
17
|
-
import { t as g } from "./chunks/
|
|
18
|
-
import
|
|
19
|
-
import v from "./form-input-
|
|
20
|
-
import y from "./form-
|
|
21
|
-
import b from "./form-item-
|
|
22
|
-
import x from "./
|
|
23
|
-
import { t as S } from "./chunks/
|
|
24
|
-
import { t as C } from "./chunks/
|
|
25
|
-
import { t as w } from "./chunks/
|
|
26
|
-
import { t as T } from "./chunks/
|
|
27
|
-
import { t as E } from "./chunks/
|
|
28
|
-
import { t as D } from "./chunks/
|
|
29
|
-
import
|
|
30
|
-
import k from "./form-view/index.mjs";
|
|
1
|
+
import e from "./element-dialog/index.mjs";
|
|
2
|
+
import t from "./empty-view/index.mjs";
|
|
3
|
+
import n from "./flex-scroll-area/index.mjs";
|
|
4
|
+
import r from "./form-advice/index.mjs";
|
|
5
|
+
import i from "./form-cell/index.mjs";
|
|
6
|
+
import { s as a } from "./chunks/BeIZhqg_.mjs";
|
|
7
|
+
import { t as o } from "./chunks/C4JpDEWP.mjs";
|
|
8
|
+
import { t as s } from "./chunks/BmQGmui_.mjs";
|
|
9
|
+
import { t as c } from "./chunks/BnycM8aG.mjs";
|
|
10
|
+
import l from "./form-red-table/index.mjs";
|
|
11
|
+
import { t as u } from "./chunks/6Ukll2os.mjs";
|
|
12
|
+
import { t as d } from "./chunks/GlsJxLiF.mjs";
|
|
13
|
+
import { t as f } from "./chunks/Bs_IYr3X.mjs";
|
|
14
|
+
import { t as p } from "./chunks/BuZDN2DV.mjs";
|
|
15
|
+
import { t as m } from "./chunks/DAjuA2O6.mjs";
|
|
16
|
+
import { t as h } from "./chunks/78hGOZc9.mjs";
|
|
17
|
+
import { t as g } from "./chunks/BMkPC2kt.mjs";
|
|
18
|
+
import _ from "./form-input-tag/index.mjs";
|
|
19
|
+
import v from "./form-input-time/index.mjs";
|
|
20
|
+
import y from "./form-item-config-provider/index.mjs";
|
|
21
|
+
import b from "./form-item-group/index.mjs";
|
|
22
|
+
import { t as x } from "./chunks/pFgf4c4i.mjs";
|
|
23
|
+
import { t as S } from "./chunks/BID1Rr2O.mjs";
|
|
24
|
+
import { t as C } from "./chunks/Bpox2cVQ.mjs";
|
|
25
|
+
import { t as w } from "./chunks/Dywq0t6V.mjs";
|
|
26
|
+
import { t as T } from "./chunks/BaExlbMY.mjs";
|
|
27
|
+
import { t as E } from "./chunks/BooKKkk0.mjs";
|
|
28
|
+
import { t as D } from "./chunks/1glrRdhD.mjs";
|
|
29
|
+
import O from "./form-view/index.mjs";
|
|
31
30
|
/* empty css */
|
|
31
|
+
import { t as k } from "./chunks/DZpWiA3x.mjs";
|
|
32
32
|
import A from "./table-view/index.mjs";
|
|
33
33
|
import j from "./toolbar/index.mjs";
|
|
34
34
|
import M from "./toolbar-button/index.mjs";
|
|
@@ -59,7 +59,7 @@ var N = /* @__PURE__ */ "ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormC
|
|
|
59
59
|
"Toolbar",
|
|
60
60
|
"ToolbarButton"
|
|
61
61
|
], F = (N) => {
|
|
62
|
-
N.component(t.name, t), N.component(n.name, n), N.component(r.name, r), N.component(i.name, i), N.component(
|
|
62
|
+
N.component(e.name, e), N.component(t.name, t), N.component(n.name, n), N.component(r.name, r), N.component(i.name, i), N.component(o.name, o), N.component(s.name, s), N.component(c.name, c), N.component(u.name, u), N.component(d.name, d), N.component(f.name, f), N.component(p.name, p), N.component(m.name, m), N.component(h.name, h), N.component(g.name, g), N.component(_.name, _), N.component(v.name, v), N.component(y.name, y), N.component(b.name, b), N.component(a.name, a), N.component(x.name, x), N.component(S.name, S), N.component(l.name, l), N.component(C.name, C), N.component(w.name, w), N.component(T.name, T), N.component(E.name, E), N.component(D.name, D), N.component(O.name, O), N.component(k.name, k), N.component(A.name, A), N.component(j.name, j), N.component(M.name, M);
|
|
63
63
|
};
|
|
64
64
|
//#endregion
|
|
65
|
-
export {
|
|
65
|
+
export { e as ElementDialog, t as EmptyView, n as FlexScrollArea, r as FormAdvice, i as FormCell, s as FormCheckBoxGroup, o as FormCheckbox, c as FormDatePicker, u as FormHolder, d as FormImage, f as FormInput, p as FormInputEmail, m as FormInputIdCard, h as FormInputNumber, g as FormInputPhoneNumber, _ as FormInputTag, v as FormInputTime, y as FormItemConfigProvider, b as FormItemGroup, a as FormItemX, x as FormRadioGroup, S as FormRate, l as FormRedTable, C as FormRow, w as FormSelect, T as FormSlider, E as FormSwitch, D as FormText, O as FormView, k as JsonEditor, A as TableView, j as Toolbar, M as ToolbarButton, N as componentNames, F as install, P as noStylesComponents };
|
package/json-editor/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DZpWiA3x.mjs";
|
|
2
2
|
export { e as default };
|