@web-utils/form-ui 1.0.0-beta18 → 1.0.0-beta19

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.
Files changed (44) hide show
  1. package/chunks/{DkqF25wT.mjs → B3DY36vM.mjs} +1 -1
  2. package/chunks/{53gSZ624.mjs → B9-9iYg8.mjs} +2 -1
  3. package/chunks/{7Desvoh-.mjs → BAm_wcwz.mjs} +6 -2
  4. package/chunks/{7vQ29mMd.mjs → BSriw1Qr.mjs} +1 -1
  5. package/chunks/{DUDm42gn.mjs → Be_E_4G0.mjs} +16 -10
  6. package/chunks/{D2WviyxF.mjs → Bk3PtIYo.mjs} +6 -1
  7. package/chunks/{Bj5l6sFx.mjs → CJeq96R0.mjs} +1 -1
  8. package/chunks/CNtf2MHr.mjs +106 -0
  9. package/chunks/{BsbfEk0E.mjs → CPE8fqJc.mjs} +2 -2
  10. package/chunks/{DH1_fmkX.mjs → DAS1h_Ei.mjs} +2 -2
  11. package/chunks/{Bb5BT11-.mjs → D_Xobj10.mjs} +2 -2
  12. package/chunks/{CKw_uzPc.mjs → DgCwGit4.mjs} +1 -1
  13. package/chunks/nJ1-P9vh.mjs +189 -0
  14. package/constants.d.ts +10 -0
  15. package/constants.mjs +2 -2
  16. package/form-date-picker/index.mjs +1 -1
  17. package/form-holder/index.mjs +1 -1
  18. package/form-input/index.mjs +1 -1
  19. package/form-input-cron-expression/index.mjs +1 -1
  20. package/form-input-email/index.mjs +1 -1
  21. package/form-input-id-card/index.mjs +1 -1
  22. package/form-input-number/index.mjs +1 -1
  23. package/form-input-phone-number/index.mjs +1 -1
  24. package/form-item-config-provider/index.mjs +6 -6
  25. package/form-item-group/index.d.ts +91 -17
  26. package/form-item-group/index.mjs +2 -94
  27. package/form-item-group/style.css +1 -1
  28. package/form-radio-group/index.mjs +1 -1
  29. package/form-rate/index.mjs +1 -1
  30. package/form-row/index.mjs +1 -1
  31. package/form-select/index.mjs +1 -1
  32. package/form-slider/index.mjs +1 -1
  33. package/form-switch/index.d.ts +18 -4
  34. package/form-switch/index.mjs +1 -1
  35. package/form-text/index.d.ts +2 -0
  36. package/form-text/index.mjs +1 -1
  37. package/index.mjs +16 -16
  38. package/package.json +1 -1
  39. package/web-types.json +1 -1
  40. package/chunks/DCKxvrCR.mjs +0 -189
  41. /package/chunks/{Q9EsFJ4H.mjs → B7fKv2-x.mjs} +0 -0
  42. /package/chunks/{CFwUzdTu.mjs → BJObhbQz.mjs} +0 -0
  43. /package/chunks/{B4LDPAZu.mjs → D7hrSVVl.mjs} +0 -0
  44. /package/chunks/{98bTmBOR.mjs → DdDv8RSI.mjs} +0 -0
@@ -1,94 +1,2 @@
1
- import { formItemGroupContextKey as e } from "../constants.mjs";
2
- import t from "../empty-view/index.mjs";
3
- import { ElRow as n } from "element-plus/es";
4
- import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, inject as d, normalizeClass as f, onBeforeUnmount as p, onMounted as m, openBlock as h, provide as g, reactive as _, ref as v, renderSlot as y, toDisplayString as b, toRef as x, unref as S, vShow as C, watchEffect as w, withCtx as T, withDirectives as E } from "vue";
5
- import { ElCollapseTransition as D } from "element-plus";
6
- //#region src/components/form/FormItemGroup.vue
7
- var O = {
8
- class: "flex-item",
9
- style: { flex: "1" }
10
- }, k = { style: {
11
- color: "#ff0000",
12
- "font-size": "14px"
13
- } }, A = /* @__PURE__ */ Object.assign({ name: "FormItemGroup" }, {
14
- __name: "FormItemGroup",
15
- props: {
16
- blockTitle: String,
17
- size: String,
18
- tips: String,
19
- active: Boolean,
20
- enabled: {
21
- type: Boolean,
22
- default: void 0
23
- },
24
- disabled: {
25
- type: Boolean,
26
- default: void 0
27
- },
28
- wrapRow: {
29
- type: Boolean,
30
- default: !0
31
- },
32
- gutter: {
33
- type: Number,
34
- default: 20
35
- },
36
- collapse: Boolean,
37
- showTitle: {
38
- type: Boolean,
39
- default: !0
40
- },
41
- notDispatch: Boolean
42
- },
43
- setup(A, { expose: j }) {
44
- let M = A, N = d("formView", null), P = v(!0), F = x(() => M.enabled), I = x(() => M.disabled), L = _({ enabled: F });
45
- console.log(F.value), console.log(L.enabled);
46
- let R = i(() => M.enabled === !0 ? !1 : M.disabled === !0), z = () => P.value = !P.value, B = _({
47
- disabled: I,
48
- enabled: F,
49
- isDisabled: R,
50
- size: i(() => M.size)
51
- });
52
- return w(() => {
53
- P.value = !M.collapse;
54
- }), g(e, B), m(() => {
55
- if (!M.notDispatch) {
56
- var e;
57
- N == null || (e = N.addGroup) == null || e.call(N, this);
58
- }
59
- }), p(() => {
60
- if (!M.notDispatch) {
61
- var e;
62
- N == null || (e = N.removeGroup) == null || e.call(N, this);
63
- }
64
- }), j(B), (e, i) => {
65
- let d = n, p = t;
66
- return h(), s("div", { class: f(["form-item-group", {
67
- "default-active": A.active,
68
- "is-disabled": S(R)
69
- }]) }, [E(c("div", {
70
- class: "form-item-group-title",
71
- onClick: z
72
- }, [c("span", O, [
73
- e.$slots.title || A.blockTitle ? y(e.$slots, "title", { key: 0 }, () => [l(b(A.blockTitle), 1)]) : o("v-if", !0),
74
- e.$slots.tips || A.tips ? y(e.$slots, "tips", { key: 1 }, () => [c("span", k, "(" + b(A.tips) + ")", 1)]) : o("v-if", !0),
75
- e.$slots["title-right"] ? y(e.$slots, "title-right", { key: 2 }) : o("v-if", !0)
76
- ]), c("i", { class: f(S(P) ? "el-icon-arrow-down" : "el-icon-arrow-right") }, null, 2)], 512), [[C, A.showTitle]]), u(S(D), null, {
77
- default: T(() => [E(c("div", null, [e.$slots.default ? (h(), s(r, { key: 0 }, [A.wrapRow ? (h(), a(d, {
78
- key: 0,
79
- gutter: A.gutter
80
- }, {
81
- default: T(() => [y(e.$slots, "default")]),
82
- _: 3
83
- }, 8, ["gutter"])) : y(e.$slots, "default", { key: 1 })], 64)) : (h(), a(p, {
84
- key: 1,
85
- "font-size": "14px",
86
- "empty-tips": "暂无信息"
87
- }))], 512), [[C, S(P)]])]),
88
- _: 3
89
- })], 2);
90
- };
91
- }
92
- });
93
- //#endregion
94
- export { A as default };
1
+ import { t as e } from "../chunks/CNtf2MHr.mjs";
2
+ export { e as default };
@@ -1 +1 @@
1
- .form-item-group{width:100%}.form-item-group.is-disabled .is-required .el-form-item__label:before,.form-item-group.is-disabled .required .el-form-item__label:before{display:none}.form-item-group .form-item-group-title{color:#333;height:30px;font-weight:700;font-size:var(--gloal-font-size);cursor:pointer;background-color:#f3f5fb;flex-direction:row;align-items:center;margin:0 0 10px;padding:0 10px;line-height:30px;display:flex}
1
+ .form-item-group.is-disabled .is-required .el-form-item__label:before,.form-item-group.is-disabled .required .el-form-item__label:before{display:none}.form-item-group .form-item-group-title{color:#333;height:30px;font-weight:700;font-size:var(--gloal-font-size);cursor:pointer;background-color:#f3f5fb;flex-direction:row;align-items:center;margin:0 0 10px;padding:0 10px;line-height:30px;display:flex}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/B4LDPAZu.mjs";
1
+ import { t as e } from "../chunks/D7hrSVVl.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/Q9EsFJ4H.mjs";
1
+ import { t as e } from "../chunks/B7fKv2-x.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/98bTmBOR.mjs";
1
+ import { t as e } from "../chunks/DdDv8RSI.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/7Desvoh-.mjs";
1
+ import { t as e } from "../chunks/BAm_wcwz.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CFwUzdTu.mjs";
1
+ import { t as e } from "../chunks/BJObhbQz.mjs";
2
2
  export { e as default };
@@ -25,8 +25,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
25
25
  type: StringConstructor;
26
26
  default: string;
27
27
  };
28
- activeValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
29
- inactiveValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
28
+ activeValue: {
29
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
30
+ default: boolean;
31
+ };
32
+ inactiveValue: {
33
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
34
+ default: boolean;
35
+ };
30
36
  name: {
31
37
  type: StringConstructor;
32
38
  default: string;
@@ -171,8 +177,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
171
177
  type: StringConstructor;
172
178
  default: string;
173
179
  };
174
- activeValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
175
- inactiveValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
180
+ activeValue: {
181
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
182
+ default: boolean;
183
+ };
184
+ inactiveValue: {
185
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
186
+ default: boolean;
187
+ };
176
188
  name: {
177
189
  type: StringConstructor;
178
190
  default: string;
@@ -316,6 +328,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
316
328
  inlinePrompt: boolean;
317
329
  activeText: string;
318
330
  inactiveText: string;
331
+ activeValue: string | number | boolean;
332
+ inactiveValue: string | number | boolean;
319
333
  activeColor: string;
320
334
  inactiveColor: string;
321
335
  borderColor: string;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DUDm42gn.mjs";
1
+ import { t as e } from "../chunks/Be_E_4G0.mjs";
2
2
  export { e as default };
@@ -13,6 +13,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
13
  type: StringConstructor;
14
14
  default: string;
15
15
  };
16
+ text: StringConstructor;
16
17
  wrapFormItem: {
17
18
  type: BooleanConstructor;
18
19
  default: boolean;
@@ -114,6 +115,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
114
115
  type: StringConstructor;
115
116
  default: string;
116
117
  };
118
+ text: StringConstructor;
117
119
  wrapFormItem: {
118
120
  type: BooleanConstructor;
119
121
  default: boolean;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/53gSZ624.mjs";
1
+ import { t as e } from "../chunks/B9-9iYg8.mjs";
2
2
  export { e as default };
package/index.mjs CHANGED
@@ -7,28 +7,28 @@ import a from "./form-cell/index.mjs";
7
7
  import { a as o } from "./chunks/C1DlzLpD.mjs";
8
8
  import { t as s } from "./chunks/BVzpe2oN.mjs";
9
9
  import { t as c } from "./chunks/8ORg8rrN.mjs";
10
- import { t as l } from "./chunks/D2WviyxF.mjs";
10
+ import { t as l } from "./chunks/Bk3PtIYo.mjs";
11
11
  import u from "./form-red-table/index.mjs";
12
- import { t as d } from "./chunks/DCKxvrCR.mjs";
12
+ import { t as d } from "./chunks/nJ1-P9vh.mjs";
13
13
  import { t as f } from "./chunks/DgbDpRQg.mjs";
14
- import { t as p } from "./chunks/Bj5l6sFx.mjs";
14
+ import { t as p } from "./chunks/CJeq96R0.mjs";
15
15
  import { t as m } from "./chunks/wfL1FAwc.mjs";
16
- import { t as h } from "./chunks/7vQ29mMd.mjs";
17
- import { t as g } from "./chunks/Bb5BT11-.mjs";
18
- import { t as _ } from "./chunks/DH1_fmkX.mjs";
19
- import { t as v } from "./chunks/CKw_uzPc.mjs";
20
- import { t as y } from "./chunks/BsbfEk0E.mjs";
16
+ import { t as h } from "./chunks/BSriw1Qr.mjs";
17
+ import { t as g } from "./chunks/D_Xobj10.mjs";
18
+ import { t as _ } from "./chunks/DAS1h_Ei.mjs";
19
+ import { t as v } from "./chunks/DgCwGit4.mjs";
20
+ import { t as y } from "./chunks/CPE8fqJc.mjs";
21
21
  import b from "./form-input-tag/index.mjs";
22
22
  import x from "./form-input-time/index.mjs";
23
23
  import S from "./form-item-config-provider/index.mjs";
24
- import C from "./form-item-group/index.mjs";
25
- import { t as w } from "./chunks/B4LDPAZu.mjs";
26
- import { t as T } from "./chunks/Q9EsFJ4H.mjs";
27
- import { t as E } from "./chunks/98bTmBOR.mjs";
28
- import { t as D } from "./chunks/7Desvoh-.mjs";
29
- import { t as O } from "./chunks/CFwUzdTu.mjs";
30
- import { t as k } from "./chunks/DUDm42gn.mjs";
31
- import { t as A } from "./chunks/53gSZ624.mjs";
24
+ import { t as C } from "./chunks/CNtf2MHr.mjs";
25
+ import { t as w } from "./chunks/D7hrSVVl.mjs";
26
+ import { t as T } from "./chunks/B7fKv2-x.mjs";
27
+ import { t as E } from "./chunks/DdDv8RSI.mjs";
28
+ import { t as D } from "./chunks/BAm_wcwz.mjs";
29
+ import { t as O } from "./chunks/BJObhbQz.mjs";
30
+ import { t as k } from "./chunks/Be_E_4G0.mjs";
31
+ import { t as A } from "./chunks/B9-9iYg8.mjs";
32
32
  import j from "./form-view/index.mjs";
33
33
  import M from "./month-calendar/index.mjs";
34
34
  import N from "./table-view/index.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/form-ui",
3
3
  "description": "form-ui",
4
- "version": "1.0.0-beta18",
4
+ "version": "1.0.0-beta19",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",