@web-utils/form-ui 1.0.0-beta13 → 1.0.0-beta14
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/{DeOt3q3a.mjs → BDhGvPmU.mjs} +1 -1
- package/chunks/{CaHyPp0T.mjs → BXOvvlL2.mjs} +1 -1
- package/chunks/{ALt4yf68.mjs → C6tYoDfK.mjs} +1 -1
- package/chunks/{BG_Z3LzE.mjs → CAYDWMXC.mjs} +1 -1
- package/chunks/{oRDjUjCZ.mjs → CXHvVx2H.mjs} +1 -1
- package/chunks/{BJCpNo2b.mjs → CykRgGj0.mjs} +5 -9
- package/chunks/{BGad3Wff.mjs → D4SiGR5u.mjs} +2 -2
- package/chunks/{DZdQxw_s.mjs → DAEpRn3D.mjs} +2 -2
- package/chunks/{Bc4d8vFN.mjs → DL4ovOwO.mjs} +1 -1
- package/chunks/{BouiHKbN.mjs → DXrQ5tWJ.mjs} +1 -1
- package/chunks/{CmtaSp-T.mjs → Xww4oyW1.mjs} +1 -1
- package/chunks/{BYqiGFdT.mjs → ciEWoJ1U.mjs} +1 -1
- package/chunks/{CQowXkhx.mjs → jpMiw_3M.mjs} +1 -1
- package/chunks/{Dr0gqiWt.mjs → vlkluoXb.mjs} +1 -1
- package/chunks/{B9ZV4Ei4.mjs → wo0ekOcp.mjs} +2 -2
- 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-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.d.ts +1 -2
- package/index.mjs +36 -37
- package/package.json +1 -1
- package/web-types.json +1 -1
- package/chunks/BM34G781.mjs +0 -26848
- package/json-editor/index.d.ts +0 -32
- package/json-editor/index.mjs +0 -2
- package/json-editor/style.css +0 -1
- /package/chunks/{6Ukll2os.mjs → B5BIQCcK.mjs} +0 -0
- /package/chunks/{Bpox2cVQ.mjs → CI_28Uw4.mjs} +0 -0
- /package/chunks/{Cqm2ahW2.mjs → DK2YoEOD.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 "./DK2YoEOD.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,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 "./DK2YoEOD.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 "./DK2YoEOD.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,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 "./DK2YoEOD.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,6 +1,6 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./DK2YoEOD.mjs";
|
|
2
|
+
import { ElInput as i } from "element-plus/es";
|
|
3
|
+
import { computed as a, createVNode as o } from "vue";
|
|
4
4
|
import { validatePhoneNum as s } from "@web-utils/core";
|
|
5
5
|
//#region src/util/form-validate.js
|
|
6
6
|
var c = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
@@ -8,10 +8,6 @@ function l(e, t, n) {
|
|
|
8
8
|
t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region src/components/form/FormInput.vue?vue&type=script&lang.jsx
|
|
12
|
-
console.log(o.props.inputStyle.type);
|
|
13
|
-
for (let e = 0; e < o.props.inputStyle.type.length; e++) console.log(o.props.inputStyle.type[e].name);
|
|
14
|
-
//#endregion
|
|
15
11
|
//#region src/components/form/FormInput.vue
|
|
16
12
|
var u = {
|
|
17
13
|
name: "FormInput",
|
|
@@ -46,7 +42,7 @@ var u = {
|
|
|
46
42
|
let d = `请输入正确的${e.label}!`, { emitInput: f, render: p, placeholder: m, disabled: h } = t(e, {
|
|
47
43
|
emit: n,
|
|
48
44
|
slots: u,
|
|
49
|
-
rules:
|
|
45
|
+
rules: a(() => {
|
|
50
46
|
if (!e.type || e.type === "textarea") return null;
|
|
51
47
|
let t = {
|
|
52
48
|
message: d,
|
|
@@ -63,7 +59,7 @@ var u = {
|
|
|
63
59
|
}, _ = () => {
|
|
64
60
|
n("clear");
|
|
65
61
|
};
|
|
66
|
-
return () => p({ vNodes:
|
|
62
|
+
return () => p({ vNodes: o(i, {
|
|
67
63
|
class: ["form-input", {
|
|
68
64
|
"is-readonly": e.readonlyGrey && e.readonly && !e.picker,
|
|
69
65
|
"el-input-cursor-pointer": e.picker && !h.value
|
|
@@ -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 "./DK2YoEOD.mjs";
|
|
2
|
+
import { t as r } from "./CykRgGj0.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) {
|
|
@@ -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 "./DK2YoEOD.mjs";
|
|
2
|
+
import { t as r } from "./CykRgGj0.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,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 "./DK2YoEOD.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 } from "./
|
|
1
|
+
import { n as e, o as t, r as n } from "./DK2YoEOD.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,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 "./DK2YoEOD.mjs";
|
|
2
|
+
import { t as r } from "./CykRgGj0.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,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CXHvVx2H.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/DXrQ5tWJ.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/jpMiw_3M.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/B5BIQCcK.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/BXOvvlL2.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/CykRgGj0.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/DAEpRn3D.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/D4SiGR5u.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/C6tYoDfK.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/wo0ekOcp.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/DK2YoEOD.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/CAYDWMXC.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/BDhGvPmU.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/CI_28Uw4.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/Xww4oyW1.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/vlkluoXb.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/DL4ovOwO.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/ciEWoJ1U.mjs";
|
|
2
2
|
export { e as default };
|
package/index.d.ts
CHANGED
|
@@ -28,11 +28,10 @@ import { default as FormSlider } from './form-slider/index.js';
|
|
|
28
28
|
import { default as FormSwitch } from './form-switch/index.js';
|
|
29
29
|
import { default as FormText } from './form-text/index.js';
|
|
30
30
|
import { default as FormView } from './form-view/index.js';
|
|
31
|
-
import { default as JsonEditor } from './json-editor/index.js';
|
|
32
31
|
import { default as TableView } from './table-view/index.js';
|
|
33
32
|
import { default as Toolbar } from './toolbar/index.js';
|
|
34
33
|
import { default as ToolbarButton } from './toolbar-button/index.js';
|
|
35
|
-
export { ElementDialog, EmptyView, FlexScrollArea, FormAdvice, FormCell, FormCheckbox, FormCheckBoxGroup, FormDatePicker, FormHolder, FormImage, FormInput, FormInputEmail, FormInputIdCard, FormInputNumber, FormInputPhoneNumber, FormInputTag, FormInputTime, FormItemConfigProvider, FormItemGroup, FormItemX, FormRadioGroup, FormRate, FormRedTable, FormRow, FormSelect, FormSlider, FormSwitch, FormText, FormView,
|
|
34
|
+
export { ElementDialog, EmptyView, FlexScrollArea, FormAdvice, FormCell, FormCheckbox, FormCheckBoxGroup, FormDatePicker, FormHolder, FormImage, FormInput, FormInputEmail, FormInputIdCard, FormInputNumber, FormInputPhoneNumber, FormInputTag, FormInputTime, FormItemConfigProvider, FormItemGroup, FormItemX, FormRadioGroup, FormRate, FormRedTable, FormRow, FormSelect, FormSlider, FormSwitch, FormText, FormView, TableView, Toolbar, ToolbarButton };
|
|
36
35
|
export declare const componentNames: string[];
|
|
37
36
|
export declare const noStylesComponents: string[];
|
|
38
37
|
export declare const install: (app: App) => void;
|
package/index.mjs
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
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 "./
|
|
31
|
-
import A from "./
|
|
32
|
-
import j from "./toolbar/index.mjs";
|
|
33
|
-
import M from "./toolbar-button/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/DK2YoEOD.mjs";
|
|
7
|
+
import { t as o } from "./chunks/DXrQ5tWJ.mjs";
|
|
8
|
+
import { t as s } from "./chunks/CXHvVx2H.mjs";
|
|
9
|
+
import { t as c } from "./chunks/jpMiw_3M.mjs";
|
|
10
|
+
import l from "./form-red-table/index.mjs";
|
|
11
|
+
import { t as u } from "./chunks/B5BIQCcK.mjs";
|
|
12
|
+
import { t as d } from "./chunks/BXOvvlL2.mjs";
|
|
13
|
+
import { t as f } from "./chunks/CykRgGj0.mjs";
|
|
14
|
+
import { t as p } from "./chunks/DAEpRn3D.mjs";
|
|
15
|
+
import { t as m } from "./chunks/D4SiGR5u.mjs";
|
|
16
|
+
import { t as h } from "./chunks/C6tYoDfK.mjs";
|
|
17
|
+
import { t as g } from "./chunks/wo0ekOcp.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/CAYDWMXC.mjs";
|
|
23
|
+
import { t as S } from "./chunks/BDhGvPmU.mjs";
|
|
24
|
+
import { t as C } from "./chunks/CI_28Uw4.mjs";
|
|
25
|
+
import { t as w } from "./chunks/Xww4oyW1.mjs";
|
|
26
|
+
import { t as T } from "./chunks/vlkluoXb.mjs";
|
|
27
|
+
import { t as E } from "./chunks/DL4ovOwO.mjs";
|
|
28
|
+
import { t as D } from "./chunks/ciEWoJ1U.mjs";
|
|
29
|
+
import O from "./form-view/index.mjs";
|
|
30
|
+
import k from "./table-view/index.mjs";
|
|
31
|
+
import A from "./toolbar/index.mjs";
|
|
32
|
+
import j from "./toolbar-button/index.mjs";
|
|
34
33
|
//#region src/components/index.ts
|
|
35
|
-
var
|
|
34
|
+
var M = /* @__PURE__ */ "ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormCell.FormCheckbox.FormCheckBoxGroup.FormDatePicker.FormHolder.FormImage.FormInput.FormInputEmail.FormInputIdCard.FormInputNumber.FormInputPhoneNumber.FormInputTag.FormInputTime.FormItemConfigProvider.FormItemGroup.FormItemX.FormRadioGroup.FormRate.FormRedTable.FormRow.FormSelect.FormSlider.FormSwitch.FormText.FormView.TableView.Toolbar.ToolbarButton".split("."), N = [
|
|
36
35
|
"FlexScrollArea",
|
|
37
36
|
"FormAdvice",
|
|
38
37
|
"FormCell",
|
|
@@ -57,8 +56,8 @@ var N = /* @__PURE__ */ "ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormC
|
|
|
57
56
|
"TableView",
|
|
58
57
|
"Toolbar",
|
|
59
58
|
"ToolbarButton"
|
|
60
|
-
],
|
|
61
|
-
|
|
59
|
+
], P = (M) => {
|
|
60
|
+
M.component(e.name, e), M.component(t.name, t), M.component(n.name, n), M.component(r.name, r), M.component(i.name, i), M.component(o.name, o), M.component(s.name, s), M.component(c.name, c), M.component(u.name, u), M.component(d.name, d), M.component(f.name, f), M.component(p.name, p), M.component(m.name, m), M.component(h.name, h), M.component(g.name, g), M.component(_.name, _), M.component(v.name, v), M.component(y.name, y), M.component(b.name, b), M.component(a.name, a), M.component(x.name, x), M.component(S.name, S), M.component(l.name, l), M.component(C.name, C), M.component(w.name, w), M.component(T.name, T), M.component(E.name, E), M.component(D.name, D), M.component(O.name, O), M.component(k.name, k), M.component(A.name, A), M.component(j.name, j);
|
|
62
61
|
};
|
|
63
62
|
//#endregion
|
|
64
|
-
export {
|
|
63
|
+
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 TableView, A as Toolbar, j as ToolbarButton, M as componentNames, P as install, N as noStylesComponents };
|