mc-plus 1.0.81 → 1.0.82

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 (29) hide show
  1. package/dist/es/index.js +40 -40
  2. package/dist/es/{mc-checkbox-kNdddXex.js → mc-checkbox-CnZgOlqy.js} +2 -2
  3. package/dist/es/{mc-checkbox-group-DUOPhB40.js → mc-checkbox-group-Bcb22OxF.js} +1 -1
  4. package/dist/es/mc-form-DHiUJW30.js +77 -0
  5. package/dist/es/{mc-form-item-C1RZSbP0.js → mc-form-item-BdDiwk3J.js} +1 -1
  6. package/dist/es/{mc-input-BoRDmOQQ.js → mc-input-DHG9UpMy.js} +2 -2
  7. package/dist/es/{mc-input-group-B4S-Un4z.js → mc-input-group-Bm5RSk_9.js} +1 -1
  8. package/dist/es/{mc-otp-CbA-TRF7.js → mc-otp-uorpadQp.js} +1 -1
  9. package/dist/es/{mc-radio-ComTPSe-.js → mc-radio-CxDJR40q.js} +2 -2
  10. package/dist/es/{mc-radio-group-CZlarcaE.js → mc-radio-group-BRgNGg1o.js} +1 -1
  11. package/dist/es/{mc-richtext-mJX-ufCG.js → mc-richtext-jEtR3SjP.js} +3 -3
  12. package/dist/es/{mc-select-CFoJQVGj.js → mc-select-DJRqoHto.js} +2 -2
  13. package/dist/es/{mc-select-group-CDeFUAG2.js → mc-select-group-Bei-NLQN.js} +1 -1
  14. package/dist/es/{mc-select-group-plus-BInUebBP.js → mc-select-group-plus-APP_78wJ.js} +1 -1
  15. package/dist/es/{mc-select-multi-option-DcJJRZoA.js → mc-select-multi-option-D7n9oExC.js} +1 -1
  16. package/dist/es/{mc-select-option-pPwRS7xM.js → mc-select-option-Bawxolt8.js} +2 -2
  17. package/dist/es/{mc-select-option-plus-H9ddV1G1.js → mc-select-option-plus-5glbaxM8.js} +2 -2
  18. package/dist/es/{mc-select-plus-M75eA6pT.js → mc-select-plus-CAmogpfF.js} +5 -5
  19. package/dist/es/{mc-switch-BKBikZqT.js → mc-switch-CuxgS0BZ.js} +1 -1
  20. package/dist/es/{mc-table-oH-F_beo.js → mc-table-DaY8VrDo.js} +1 -1
  21. package/dist/es/{mc-textarea-BcjZo_ol.js → mc-textarea-WAuVeRJH.js} +1 -1
  22. package/dist/types/mc-form/hooks/types.d.ts +2 -2
  23. package/dist/types/mc-form/hooks/useFormId.d.ts +1 -1
  24. package/dist/types/mc-form/hooks/useFormItem.d.ts +19 -3
  25. package/dist/types/mc-form/hooks/useFormValidate.d.ts +18 -2
  26. package/dist/umd/index.umd.cjs +29 -29
  27. package/dist/umd/index.umd.cjs.gz +0 -0
  28. package/package.json +1 -1
  29. package/dist/es/mc-form-CMbtX2Wt.js +0 -81
package/dist/es/index.js CHANGED
@@ -3,10 +3,10 @@ import { M as E } from "./mc-alert-message-CaYxL1Yi.js";
3
3
  import { a } from "./mc-alert-message-CaYxL1Yi.js";
4
4
  import { M as O } from "./mc-button-Bg4Yihn7.js";
5
5
  import { a as a2 } from "./mc-button-Bg4Yihn7.js";
6
- import { M as L } from "./mc-checkbox-kNdddXex.js";
7
- import { a as a3 } from "./mc-checkbox-kNdddXex.js";
8
- import { M as x } from "./mc-checkbox-group-DUOPhB40.js";
9
- import { C, a as a4 } from "./mc-checkbox-group-DUOPhB40.js";
6
+ import { M as L } from "./mc-checkbox-CnZgOlqy.js";
7
+ import { a as a3 } from "./mc-checkbox-CnZgOlqy.js";
8
+ import { M as x } from "./mc-checkbox-group-Bcb22OxF.js";
9
+ import { C, a as a4 } from "./mc-checkbox-group-Bcb22OxF.js";
10
10
  import { M as R } from "./mc-collapse-D8JEfYOu.js";
11
11
  import { C as C2, a as a5 } from "./mc-collapse-D8JEfYOu.js";
12
12
  import { M as P } from "./mc-collapse-item-B_qKeVrY.js";
@@ -23,18 +23,18 @@ import { M as G } from "./mc-drawer-DJk754RT.js";
23
23
  import { a as a11 } from "./mc-drawer-DJk754RT.js";
24
24
  import { M as Y } from "./mc-footer-BeEDYFlH.js";
25
25
  import { a as a12 } from "./mc-footer-BeEDYFlH.js";
26
- import { M as X } from "./mc-form-CMbtX2Wt.js";
27
- import { F, b } from "./mc-form-CMbtX2Wt.js";
28
- import { M as H } from "./mc-form-item-C1RZSbP0.js";
29
- import { F as F2, a as a13 } from "./mc-form-item-C1RZSbP0.js";
26
+ import { M as X } from "./mc-form-DHiUJW30.js";
27
+ import { F, b } from "./mc-form-DHiUJW30.js";
28
+ import { M as H } from "./mc-form-item-BdDiwk3J.js";
29
+ import { F as F2, a as a13 } from "./mc-form-item-BdDiwk3J.js";
30
30
  import { M as K } from "./mc-icon-CmYW61Q0.js";
31
31
  import { a as a14 } from "./mc-icon-CmYW61Q0.js";
32
32
  import { M as y } from "./mc-icon-plus-BFYVRrKw.js";
33
33
  import { b as b2 } from "./mc-icon-plus-BFYVRrKw.js";
34
- import { M as v } from "./mc-input-BoRDmOQQ.js";
35
- import { a as a15 } from "./mc-input-BoRDmOQQ.js";
36
- import { M as w } from "./mc-input-group-B4S-Un4z.js";
37
- import { I, a as a16 } from "./mc-input-group-B4S-Un4z.js";
34
+ import { M as v } from "./mc-input-DHG9UpMy.js";
35
+ import { a as a15 } from "./mc-input-DHG9UpMy.js";
36
+ import { M as w } from "./mc-input-group-Bm5RSk_9.js";
37
+ import { I, a as a16 } from "./mc-input-group-Bm5RSk_9.js";
38
38
  import { M as J } from "./mc-lightbox-DRiJSWar.js";
39
39
  import { a as a17 } from "./mc-lightbox-DRiJSWar.js";
40
40
  import { M as V } from "./mc-loading-CgQDxms4.js";
@@ -43,8 +43,8 @@ import { M as Z } from "./mc-modal-header-BUvK3-bl.js";
43
43
  import { a as a19 } from "./mc-modal-header-BUvK3-bl.js";
44
44
  import { M as z } from "./mc-multi-tag-CWwyuXAy.js";
45
45
  import { a as a20 } from "./mc-multi-tag-CWwyuXAy.js";
46
- import { M as Q } from "./mc-otp-CbA-TRF7.js";
47
- import { a as a21 } from "./mc-otp-CbA-TRF7.js";
46
+ import { M as Q } from "./mc-otp-uorpadQp.js";
47
+ import { a as a21 } from "./mc-otp-uorpadQp.js";
48
48
  import { M as $ } from "./mc-overlay-CHfJL0kY.js";
49
49
  import { a as a22 } from "./mc-overlay-CHfJL0kY.js";
50
50
  import { M as ss } from "./mc-popper-CbGrFzA5.js";
@@ -57,32 +57,32 @@ import { a as rs } from "./mc-progress-indicator-item-BiQL0uXR.js";
57
57
  import { M } from "./mc-progress-indicator-item-BiQL0uXR.js";
58
58
  import { a as as } from "./mc-progress-indicator-child-item-DAKkXWWn.js";
59
59
  import { M as M2 } from "./mc-progress-indicator-child-item-DAKkXWWn.js";
60
- import { M as ts } from "./mc-radio-ComTPSe-.js";
61
- import { a as a26 } from "./mc-radio-ComTPSe-.js";
62
- import { a as ps } from "./mc-radio-group-CZlarcaE.js";
63
- import { b as b4, M as M3 } from "./mc-radio-group-CZlarcaE.js";
60
+ import { M as ts } from "./mc-radio-CxDJR40q.js";
61
+ import { a as a26 } from "./mc-radio-CxDJR40q.js";
62
+ import { a as ps } from "./mc-radio-group-BRgNGg1o.js";
63
+ import { b as b4, M as M3 } from "./mc-radio-group-BRgNGg1o.js";
64
64
  import { M as cs } from "./mc-removable-tag-YZpBGZiE.js";
65
65
  import { a as a27 } from "./mc-removable-tag-YZpBGZiE.js";
66
66
  import { M as es } from "./mc-reset-CJBlVip8.js";
67
67
  import { a as a28 } from "./mc-reset-CJBlVip8.js";
68
- import { M as _s } from "./mc-richtext-mJX-ufCG.js";
69
- import { F as F3, a as a29, b as b5, T } from "./mc-richtext-mJX-ufCG.js";
68
+ import { M as _s } from "./mc-richtext-jEtR3SjP.js";
69
+ import { F as F3, a as a29, b as b5, T } from "./mc-richtext-jEtR3SjP.js";
70
70
  import { M as Ms } from "./mc-secondary-menu-3p4UsHZ0.js";
71
71
  import { a as a30 } from "./mc-secondary-menu-3p4UsHZ0.js";
72
- import { M as is } from "./mc-select-CFoJQVGj.js";
73
- import { a as a31, S } from "./mc-select-CFoJQVGj.js";
74
- import { M as Cs } from "./mc-select-group-CDeFUAG2.js";
75
- import { a as a32, S as S2 } from "./mc-select-group-CDeFUAG2.js";
76
- import { M as fs } from "./mc-select-option-pPwRS7xM.js";
77
- import { a as a33 } from "./mc-select-option-pPwRS7xM.js";
78
- import { M as js } from "./mc-select-plus-M75eA6pT.js";
79
- import { b as b6, a as a34 } from "./mc-select-plus-M75eA6pT.js";
80
- import { a as Es } from "./mc-select-group-plus-BInUebBP.js";
81
- import { M as M4 } from "./mc-select-group-plus-BInUebBP.js";
82
- import { M as Ts } from "./mc-select-option-plus-H9ddV1G1.js";
83
- import { a as a35 } from "./mc-select-option-plus-H9ddV1G1.js";
84
- import { M as ls } from "./mc-select-multi-option-DcJJRZoA.js";
85
- import { a as a36 } from "./mc-select-multi-option-DcJJRZoA.js";
72
+ import { M as is } from "./mc-select-DJRqoHto.js";
73
+ import { a as a31, S } from "./mc-select-DJRqoHto.js";
74
+ import { M as Cs } from "./mc-select-group-Bei-NLQN.js";
75
+ import { a as a32, S as S2 } from "./mc-select-group-Bei-NLQN.js";
76
+ import { M as fs } from "./mc-select-option-Bawxolt8.js";
77
+ import { a as a33 } from "./mc-select-option-Bawxolt8.js";
78
+ import { M as js } from "./mc-select-plus-CAmogpfF.js";
79
+ import { b as b6, a as a34 } from "./mc-select-plus-CAmogpfF.js";
80
+ import { a as Es } from "./mc-select-group-plus-APP_78wJ.js";
81
+ import { M as M4 } from "./mc-select-group-plus-APP_78wJ.js";
82
+ import { M as Ts } from "./mc-select-option-plus-5glbaxM8.js";
83
+ import { a as a35 } from "./mc-select-option-plus-5glbaxM8.js";
84
+ import { M as ls } from "./mc-select-multi-option-D7n9oExC.js";
85
+ import { a as a36 } from "./mc-select-multi-option-D7n9oExC.js";
86
86
  import { M as Os } from "./mc-status-BJGdWYD5.js";
87
87
  import { a as a37 } from "./mc-status-BJGdWYD5.js";
88
88
  import { M as Ls } from "./mc-step-DRDtR0u_.js";
@@ -96,22 +96,22 @@ import { M as M6 } from "./mc-step-child-item-plus-CUT06Cwi.js";
96
96
  import { M as Ss, a as Rs, b as us } from "./mc-step-v2-C1e_kDgg.js";
97
97
  import { M as Ps } from "./mc-success-icon-BuGz3uNE.js";
98
98
  import { a as a40 } from "./mc-success-icon-BuGz3uNE.js";
99
- import { M as ns } from "./mc-switch-BKBikZqT.js";
100
- import { a as a41, b as b7 } from "./mc-switch-BKBikZqT.js";
99
+ import { M as ns } from "./mc-switch-CuxgS0BZ.js";
100
+ import { a as a41, b as b7 } from "./mc-switch-CuxgS0BZ.js";
101
101
  import { M as Ns } from "./mc-tab-BT5bQZPB.js";
102
102
  import { a as a42 } from "./mc-tab-BT5bQZPB.js";
103
103
  import { a as bs } from "./mc-tab-item-CqXL4HVs.js";
104
104
  import { M as M7 } from "./mc-tab-item-CqXL4HVs.js";
105
- import { M as Us } from "./mc-table-oH-F_beo.js";
106
- import { u, a as a43, b as b8 } from "./mc-table-oH-F_beo.js";
105
+ import { M as Us } from "./mc-table-DaY8VrDo.js";
106
+ import { u, a as a43, b as b8 } from "./mc-table-DaY8VrDo.js";
107
107
  import { M as ds } from "./mc-table-plus-mrdERsrX.js";
108
108
  import { d, f, r, p, q, o, g, j, b as b9, h, l, m, n, a as a44, e, i, c as c2, k } from "./mc-table-plus-mrdERsrX.js";
109
109
  import { a as gs } from "./mc-table-column-plus-N4ocB9zX.js";
110
110
  import { M as M8 } from "./mc-table-column-plus-N4ocB9zX.js";
111
111
  import { M as Bs } from "./mc-tag-CeJarQKP.js";
112
112
  import { a as a45 } from "./mc-tag-CeJarQKP.js";
113
- import { M as Ds } from "./mc-textarea-BcjZo_ol.js";
114
- import { a as a46 } from "./mc-textarea-BcjZo_ol.js";
113
+ import { M as Ds } from "./mc-textarea-WAuVeRJH.js";
114
+ import { a as a46 } from "./mc-textarea-WAuVeRJH.js";
115
115
  import { M as Gs } from "./mc-title-Bp0U8n05.js";
116
116
  import { a as a47 } from "./mc-title-Bp0U8n05.js";
117
117
  import { M as hs } from "./mc-title-tool-bar-DI-TZVG5.js";
@@ -2,8 +2,8 @@ import { _ as e, u as o } from "./utils-y7s5KtP-.js";
2
2
  import { inject as a, computed as c, defineComponent as l, ref as s, createElementBlock as t, openBlock as r, createElementVNode as d, createCommentVNode as u, withModifiers as m, normalizeClass as n, unref as i, withKeys as p, renderSlot as b, createTextVNode as k, toDisplayString as h, nextTick as x } from "vue";
3
3
  import { useFocus as v } from "@mc-plus/hooks";
4
4
  import { isFunction as f, includes as y, isNil as C } from "lodash-es";
5
- import { C as V } from "./mc-checkbox-group-DUOPhB40.js";
6
- import { u as S } from "./mc-form-CMbtX2Wt.js";
5
+ import { C as V } from "./mc-checkbox-group-Bcb22OxF.js";
6
+ import { u as S } from "./mc-form-DHiUJW30.js";
7
7
  const _ = "mc-checkbox", B = { class: "mc-checkbox" }, G = ["id", "value", "disabled", "onKeypress"], D = { key: 0, class: "mc-checkbox-content" }, I = { key: 0, class: "mc-checkbox-remarks" }, $ = o(e(l({ name: _, __name: "mc-checkbox", props: { modelValue: { type: Boolean }, disabled: { type: Boolean }, content: {}, remarks: {}, partial: { type: Boolean }, disableValidation: { type: Boolean, default: false }, value: {} }, emits: ["update:modelValue", "change", "focus", "blur"], setup(e2, { emit: o2 }) {
8
8
  const l2 = e2, _2 = o2, $2 = s(), { wrapperRef: g, isFocused: j, handleFocus: w, handleBlur: F } = v($2), { checkboxGroupDisabled: R, isCheckboxGroup: K, isCheckboxSelected: M, handleCheckboxSelect: q } = (() => {
9
9
  const e3 = a(V, void 0), o3 = c(() => {
@@ -1,7 +1,7 @@
1
1
  import { u as e } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as a, watch as o, provide as l, computed as t, createElementBlock as m, openBlock as d, unref as s, renderSlot as u, nextTick as c } from "vue";
3
3
  import { indexOf as r } from "lodash-es";
4
- import { a as i } from "./mc-form-CMbtX2Wt.js";
4
+ import { a as i } from "./mc-form-DHiUJW30.js";
5
5
  const p = Symbol("mc-checkbox-group-context"), n = "mc-checkbox-group", f = ["id"], h = e(a({ name: n, __name: "mc-checkbox-group", props: { modelValue: { default: () => [] }, disabled: { type: Boolean, default: false } }, emits: ["update:modelValue", "change"], setup(e2, { emit: a2 }) {
6
6
  const n2 = e2, h2 = a2, { formId: b, formItemCtx: g } = i();
7
7
  return o(() => n2.modelValue, () => {
@@ -0,0 +1,77 @@
1
+ import { p as e, _ as t, u as a } from "./utils-y7s5KtP-.js";
2
+ import { onMounted as r, onBeforeUnmount as o, computed as l, defineComponent as i, reactive as s, toRefs as d, provide as m, createElementBlock as n, openBlock as c, createElementVNode as u, withModifiers as v, renderSlot as f, ref as p, inject as x, watch as b } from "vue";
3
+ import { keys as I, first as h, filter as y, size as C, includes as D, each as V, isFunction as _ } from "lodash-es";
4
+ import { useId as j, useProp as w } from "@mc-plus/hooks";
5
+ import { F } from "./mc-form-item-BdDiwk3J.js";
6
+ const S = Symbol("mc-form-context"), E = "mc-form", B = { class: "mc-form" }, P = a(t(i({ name: E, __name: "mc-form", props: { model: {}, rules: { default: () => ({}) }, disabled: { type: Boolean }, direction: { default: "vertical" }, scrollToError: { type: Boolean, default: false } }, emits: ["validate"], setup(t2, { expose: a2, emit: r2 }) {
7
+ const o2 = t2, l2 = r2, i2 = [], p2 = (e2, t3) => C(t3) ? y(e2, (e3) => D(t3, e3.prop)) : e2, x2 = s({ ...d(o2), emits: l2, addField: (e2) => {
8
+ e2.prop && i2.push(e2);
9
+ }, removeField: (e2) => {
10
+ e2.prop && i2.splice(i2.indexOf(e2), 1);
11
+ } });
12
+ return m(S, x2), a2({ validate: async (t3 = [], a3) => {
13
+ try {
14
+ return await (async (e2 = [], t4) => {
15
+ const a4 = C(e2) ? y(i2, (t5) => D(e2, t5.prop)) : i2;
16
+ try {
17
+ const e3 = await (async (e4 = []) => {
18
+ let t5 = [];
19
+ for (const a5 of e4) try {
20
+ await a5.validate();
21
+ } catch (e5) {
22
+ t5.push(e5);
23
+ }
24
+ return !C(t5) || Promise.reject(t5);
25
+ })(a4);
26
+ return true === e3 && (t4 == null ? void 0 : t4(true)), e3;
27
+ } catch (e3) {
28
+ if (e3 instanceof Error) throw e3;
29
+ const a5 = e3;
30
+ return t4 == null ? void 0 : t4(false, a5), Promise.reject(a5);
31
+ }
32
+ })(t3, a3);
33
+ } catch (t4) {
34
+ return o2.scrollToError && (async (t5) => {
35
+ const a4 = I(h(t5))[0], r3 = p2(i2, [a4])[0].id, o3 = document.getElementById(r3);
36
+ o3 == null ? void 0 : o3.scrollIntoView({ block: "center", inline: "center", behavior: "smooth" }), await e(500), o3 == null ? void 0 : o3.focus();
37
+ })(t4), Promise.reject(t4);
38
+ }
39
+ }, resetFields: (e2 = []) => {
40
+ V(p2(i2, e2), (e3) => e3.resetField());
41
+ }, clearValidate: (e2 = []) => {
42
+ V(p2(i2, e2), (e3) => e3.clearValidate());
43
+ } }), (e2, t3) => (c(), n("div", B, [u("form", { onSubmit: t3[0] || (t3[0] = v(() => {
44
+ }, ["prevent"])) }, [f(e2.$slots, "default", {}, void 0, true)], 32)]));
45
+ } }), [["__scopeId", "data-v-446fb309"]])), g = ({ externalId: e2, externalDisabled: t2 } = {}) => {
46
+ const a2 = p(x(S, void 0)), i2 = p(x(F, void 0)), s2 = (({ formItemCtx: e3, externalId: t3 }) => {
47
+ const a3 = j(t3 == null ? void 0 : t3.value);
48
+ return r(() => {
49
+ e3.value && (e3.value.id = a3);
50
+ }), o(() => {
51
+ e3.value && (e3.value.id = "");
52
+ }), a3;
53
+ })({ formItemCtx: i2, externalId: e2 }), d2 = (({ formCtx: e3, formItemCtx: t3, externalDisabled: a3 }) => {
54
+ const r2 = w("disabled");
55
+ return l(() => {
56
+ var _a, _b;
57
+ return r2.value || !!((_a = e3.value) == null ? void 0 : _a.disabled) || !!((_b = t3.value) == null ? void 0 : _b.disabled) || !!(a3 == null ? void 0 : a3.value);
58
+ });
59
+ })({ formCtx: a2, formItemCtx: i2, externalDisabled: t2 });
60
+ return { formCtx: a2, formItemCtx: i2, formId: s2, formDisabled: d2 };
61
+ }, k = ({ externalId: e2, externalDisabled: t2, disableValidation: a2, validator: r2 } = {}) => {
62
+ const o2 = w("disableValidation"), i2 = l(() => !!o2.value || !!(a2 == null ? void 0 : a2.value)), { formCtx: s2, formItemCtx: d2, formId: m2, formDisabled: n2 } = g({ externalId: e2, externalDisabled: t2 }), c2 = l(() => {
63
+ var _a;
64
+ return i2.value ? "init" : _(r2) && "error" === r2() ? "error" : ((_a = d2.value) == null ? void 0 : _a.validateStatus) || "init";
65
+ }), u2 = l(() => i2.value ? "" : `mc-form-validate-${c2.value}`), v2 = l(() => !i2.value && "error" === c2.value), f2 = l(() => !i2.value && "success" === c2.value), p2 = w(["hideValidationIcon", "hide-validation-icon"]), x2 = l(() => !i2.value && !p2.value && (v2.value ? "Reject_02" : !!f2.value && "Accept_02")), I2 = w("modelValue");
66
+ return b(() => I2.value, () => {
67
+ var _a;
68
+ i2.value || ((_a = d2.value) == null ? void 0 : _a.validate("change"));
69
+ }), { formCtx: s2, formItemCtx: d2, formId: m2, formDisabled: n2, validateStatus: c2, validateStyle: u2, isError: v2, isSuccess: f2, statusIcon: x2 };
70
+ };
71
+ export {
72
+ S as F,
73
+ P as M,
74
+ g as a,
75
+ E as b,
76
+ k as u
77
+ };
@@ -3,7 +3,7 @@ import { defineComponent as t, inject as l, ref as o, computed as s, reactive as
3
3
  import { isNil as $, filter as j, map as P, includes as k, keys as x, size as z, some as M, get as S, set as w, cloneDeep as B, isArray as V } from "lodash-es";
4
4
  import I from "async-validator";
5
5
  import { M as A } from "./mc-tooltip-BNmrE7e_.js";
6
- import { F as C } from "./mc-form-CMbtX2Wt.js";
6
+ import { F as C } from "./mc-form-DHiUJW30.js";
7
7
  const D = Symbol("mc-form-item-context"), E = "mc-form-item", G = { class: "mc-form-item-label-wrapper" }, H = { key: 0, class: "mc-form-item-label" }, J = { key: 0, class: "mc-form-item-help" }, K = { key: 0, class: "mc-form-item-desc" }, L = { class: "mc-form-item__content" }, N = { key: 0, class: "mc-form-item__error" }, O = r(e(t({ name: E, __name: "mc-form-item", props: { prop: { default: "" }, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(e2, { expose: r2 }) {
8
8
  const t2 = e2, E2 = l(C, void 0), O2 = o("init"), Q = o(""), R = (e3) => e3 && t2.prop && !$(S(e3, t2.prop)) ? S(e3, t2.prop) : null, T = s(() => {
9
9
  const e3 = E2 == null ? void 0 : E2.model;
@@ -3,8 +3,8 @@ import { ref as a, defineComponent as l, computed as u, onMounted as n, watch as
3
3
  import { includes as b, endsWith as _, startsWith as w, toString as I, isNil as k, isFunction as $ } from "lodash-es";
4
4
  import { useFocus as V, useHover as B } from "@mc-plus/hooks";
5
5
  import { M as S } from "./mc-icon-CmYW61Q0.js";
6
- import { u as C } from "./mc-form-CMbtX2Wt.js";
7
- import { u as A } from "./mc-input-group-B4S-Un4z.js";
6
+ import { u as C } from "./mc-form-DHiUJW30.js";
7
+ import { u as A } from "./mc-input-group-Bm5RSk_9.js";
8
8
  const R = "mc-input", j = { key: 0, class: "mc-input__prefix" }, z = ["id", "type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], F = { key: 2, class: "mc-input__password" }, T = { key: 0, class: "mc-input__suffix" }, D = { key: 4, class: "mc-input-append" }, H = { class: "mc-input-append-text" }, P = t(e(l({ name: R, __name: "mc-input", props: { modelValue: {}, width: {}, height: {}, id: {}, type: { default: "text" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { default: "Please enter" }, readonly: { type: Boolean, default: false }, autocomplete: { default: "off" }, autofocus: { type: Boolean, default: false }, prefixIcon: {}, suffixIcon: {}, maxlength: {}, currencyAccuracy: {}, inputGroupPosition: {}, disableValidation: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean, default: false }, textAlign: { default: "left" }, formatter: {}, parser: {} }, emits: ["update:modelValue", "input", "change", "focus", "blur", "paste", "clear", "delete"], setup(e2, { expose: t2, emit: l2 }) {
9
9
  const R2 = e2, { formatter: P2, parser: E } = R2, G = l2, M = a(), q = u(() => k(R2.modelValue) ? "" : I(R2.modelValue)), K = (e3) => ("number" === R2.type ? e3 = ((e4) => e4.replace(/[^\d]/g, ""))(e3) : "currency" === R2.type && (e3 = ((e4, t3 = 8) => {
10
10
  e4 = e4.replace(/(?:[^0-9.]+)/g, "");
@@ -1,7 +1,7 @@
1
1
  import { ref as e, computed as u, inject as t, watch as i, defineComponent as p, provide as r, createElementBlock as s, openBlock as o, normalizeClass as a, unref as d, createElementVNode as n, createCommentVNode as l, normalizeStyle as f, renderSlot as c } from "vue";
2
2
  import { useProp as v } from "@mc-plus/hooks";
3
3
  import { _ as x, u as m } from "./utils-y7s5KtP-.js";
4
- import { a as I } from "./mc-form-CMbtX2Wt.js";
4
+ import { a as I } from "./mc-form-DHiUJW30.js";
5
5
  const g = Symbol("mc-input-group-context"), G = "mc-input-group", A = (e2) => {
6
6
  const p2 = t(g, void 0);
7
7
  if (!p2) return;
@@ -3,7 +3,7 @@ import { ref as o, nextTick as l, defineComponent as a, reactive as n, computed
3
3
  import { isNil as w, isEmpty as F } from "lodash-es";
4
4
  import { M as k } from "./mc-icon-CmYW61Q0.js";
5
5
  import { useClickOutside as _, useProp as j } from "@mc-plus/hooks";
6
- import { u as D } from "./mc-form-CMbtX2Wt.js";
6
+ import { u as D } from "./mc-form-DHiUJW30.js";
7
7
  const C = "mc-otp", M = ["id"], K = { class: "mc-otp-input-list" }, U = ["onClick"], z = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown"], A = t(e(a({ name: C, __name: "mc-otp", props: { modelValue: {}, disabled: { type: Boolean, default: false }, length: { default: 6 } }, emits: ["update:modelValue", "change"], setup(e2, { emit: t2 }) {
8
8
  const a2 = e2, C2 = t2, A2 = o([]), B = n(new Array(a2.length)), { focusIndex: E, setFocus: P, nextFocus: S, prevFocus: q } = ((e3) => {
9
9
  const t3 = o(), a3 = (e4) => {
@@ -2,8 +2,8 @@ import { _ as e, u as a } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as r, inject as l, ref as o, computed as s, createElementBlock as i, openBlock as t, normalizeClass as c, createElementVNode as d, withModifiers as m, unref as p, withKeys as n, createCommentVNode as u, renderSlot as v, createTextVNode as f, toDisplayString as b, createVNode as h, nextTick as k } from "vue";
3
3
  import { useFocus as y } from "@mc-plus/hooks";
4
4
  import { M as _ } from "./mc-tooltip-BNmrE7e_.js";
5
- import { M as j } from "./mc-radio-group-CZlarcaE.js";
6
- import { u as w } from "./mc-form-CMbtX2Wt.js";
5
+ import { M as j } from "./mc-radio-group-BRgNGg1o.js";
6
+ import { u as w } from "./mc-form-DHiUJW30.js";
7
7
  const B = "mc-radio", $ = ["disabled", "onKeypress"], x = { class: "mc-radio-wrapper" }, D = { class: "mc-radio-content" }, F = { key: 0, class: "mc-radio-help" }, M = { class: "mc-radio-remark" }, R = a(e(r({ name: B, __name: "mc-radio", props: { label: {}, value: { type: [Number, String, Boolean] }, disabled: { type: Boolean }, remark: {}, help: {} }, emits: ["focus", "blur"], setup(e2) {
8
8
  const a2 = e2, r2 = l(j, void 0), B2 = o(), { wrapperRef: R2, isFocused: S, handleFocus: g, handleBlur: C } = y(B2), I = s(() => {
9
9
  var _a;
@@ -1,6 +1,6 @@
1
1
  import { _ as e, u as o } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as a, provide as d, computed as m, createElementBlock as l, openBlock as r, unref as t, renderSlot as s } from "vue";
3
- import { u as i } from "./mc-form-CMbtX2Wt.js";
3
+ import { u as i } from "./mc-form-DHiUJW30.js";
4
4
  const u = Symbol("mc-radio-group-context"), p = "mc-radio-group", c = ["id"], n = o(e(a({ name: p, __name: "mc-radio-group", props: { modelValue: { type: [Number, String, Boolean] }, disabled: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: o2 }) {
5
5
  const a2 = e2, p2 = o2, { formId: n2 } = i();
6
6
  return d(u, { modelValue: m(() => a2.modelValue), disabled: m(() => a2.disabled), handleSelect: (e3) => {
@@ -3,11 +3,11 @@ import { useEditor as f, EditorContent as h } from "@tiptap/vue-3";
3
3
  import { useWidthHeight as A } from "@mc-plus/hooks";
4
4
  import g from "@tiptap/starter-kit";
5
5
  import x from "@tiptap/extension-image";
6
- import { M } from "./mc-select-plus-M75eA6pT.js";
7
- import { M as O } from "./mc-select-option-plus-H9ddV1G1.js";
6
+ import { M } from "./mc-select-plus-CAmogpfF.js";
7
+ import { M as O } from "./mc-select-option-plus-5glbaxM8.js";
8
8
  import { a as T, M as k } from "./mc-icon-plus-BFYVRrKw.js";
9
9
  import { M as I } from "./mc-tooltip-BNmrE7e_.js";
10
- import { M as R } from "./mc-input-BoRDmOQQ.js";
10
+ import { M as R } from "./mc-input-DHG9UpMy.js";
11
11
  import { M as _ } from "./mc-button-Bg4Yihn7.js";
12
12
  import { _ as b, u as N } from "./utils-y7s5KtP-.js";
13
13
  import { Mark as E } from "@tiptap/core";
@@ -5,10 +5,10 @@ import { useFocus as z, useClickOutside as D } from "@mc-plus/hooks";
5
5
  import { M as F } from "./mc-icon-CmYW61Q0.js";
6
6
  import { M as I } from "./mc-button-Bg4Yihn7.js";
7
7
  import { M as $ } from "./mc-tag-CeJarQKP.js";
8
- import { M as T } from "./mc-checkbox-kNdddXex.js";
8
+ import { M as T } from "./mc-checkbox-CnZgOlqy.js";
9
9
  import { M as U } from "./mc-title-Bp0U8n05.js";
10
10
  import { M as K } from "./mc-footer-BeEDYFlH.js";
11
- import { a as N } from "./mc-form-CMbtX2Wt.js";
11
+ import { a as N } from "./mc-form-DHiUJW30.js";
12
12
  const P = Symbol("mc-select-context"), W = "mc-select", q = { key: 0, class: "mc-select-selected-content" }, E = ["placeholder", "readonly", "disabled"], G = { class: "mc-select-dropdown-header-content" }, H = { class: "mc-select-dropdown-content" }, J = { class: "mc-select-dropdown" }, L = { key: 0, class: "mc-select-no-data" }, Q = l(e(a({ name: W, __name: "mc-select", props: { modelValue: {}, placeholder: { default: "Please select" }, disabled: { type: Boolean }, multiple: { type: Boolean, default: false }, width: {}, height: {}, search: { type: Boolean }, allowReset: { type: Boolean, default: true }, allowSelectAll: { type: Boolean, default: true } }, emits: ["update:modelValue", "change", "blur", "focus", "reset"], setup(e2, { emit: l2 }) {
13
13
  const a2 = e2, W2 = l2, Q2 = t(), X = t(), Y = t(), Z = s(() => a2.multiple), ee = (e3) => Z.value && Array.isArray(e3), le = t([]), ae = s(() => M(Me.value) ? le.value : le.value.filter((e3) => R(A(e3.label ?? e3.value)).includes(R(Me.value)))), { wrapperRef: te, isFocused: se, handleFocus: ue, handleBlur: oe } = z(Q2, { afterBlur() {
14
14
  var _a;
@@ -1,6 +1,6 @@
1
1
  import { _ as e, u as t } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as s, inject as l, provide as o, computed as a, toRefs as c, useAttrs as i, toValue as r, withDirectives as m, createElementBlock as p, openBlock as u, createElementVNode as d, normalizeStyle as v, toDisplayString as g, renderSlot as n, vShow as h } from "vue";
3
- import { S as f } from "./mc-select-CFoJQVGj.js";
3
+ import { S as f } from "./mc-select-DJRqoHto.js";
4
4
  const b = Symbol("mc-select-group-context"), _ = "mc-select-group", w = { class: "mc-select-group" }, y = { class: "mc-select-group-content" }, S = t(e(s({ name: _, __name: "mc-select-group", props: { label: {}, width: {}, height: {} }, setup(e2) {
5
5
  const t2 = e2, s2 = l(f, void 0);
6
6
  o(b, { groupName: t2.label });
@@ -2,7 +2,7 @@ import { _ as l, u as s } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as e, inject as t, computed as o, withDirectives as a, createElementBlock as u, openBlock as p, createElementVNode as r, normalizeStyle as c, unref as i, toDisplayString as m, renderSlot as d, vShow as h } from "vue";
3
3
  import { includes as f } from "lodash-es";
4
4
  import { useWidthHeight as g } from "@mc-plus/hooks";
5
- import { a as n } from "./mc-select-plus-M75eA6pT.js";
5
+ import { a as n } from "./mc-select-plus-CAmogpfF.js";
6
6
  const v = "mc-select-group-plus", _ = { class: "mc-select-group" }, b = { class: "mc-select-option-list" }, w = s(l(e({ name: v, __name: "mc-select-group-plus", props: { label: {}, height: { default: 40 }, width: { default: "100%" } }, setup(l2) {
7
7
  const s2 = l2, e2 = t(n || void 0), { height: v2, width: w2 } = g(), j = o(() => f(e2 == null ? void 0 : e2.filteredGroups.value, s2.label));
8
8
  return (s3, e3) => a((p(), u("ul", _, [r("li", { class: "mc-select-group-label", style: c({ height: i(v2), width: i(w2) }) }, m(l2.label), 5), r("li", null, [r("ul", b, [d(s3.$slots, "default", {}, void 0, true)])])], 512)), [[h, j.value]]);
@@ -1,6 +1,6 @@
1
1
  import { u as e } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as l, createElementBlock as o, openBlock as t, createVNode as a, unref as m } from "vue";
3
- import { M as d } from "./mc-checkbox-kNdddXex.js";
3
+ import { M as d } from "./mc-checkbox-CnZgOlqy.js";
4
4
  const s = "mc-select-multi-option", i = { class: "mc-select-multi-option" }, u = e(l({ name: s, __name: "mc-select-multi-option", props: { modelValue: { type: Boolean, default: false }, label: {}, disabled: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: l2 }) {
5
5
  const s2 = l2, u2 = (e3) => {
6
6
  s2("update:modelValue", e3);
@@ -1,7 +1,7 @@
1
1
  import { _ as e, u as o } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as t, ref as s, inject as l, computed as c, useSlots as i, onMounted as a, onBeforeUnmount as n, h as p, createElementBlock as m, createCommentVNode as r, openBlock as v, normalizeStyle as d, normalizeClass as u, createElementVNode as f, renderSlot as h, createTextVNode as _, toDisplayString as g } from "vue";
3
- import { S as w } from "./mc-select-group-CDeFUAG2.js";
4
- import { S } from "./mc-select-CFoJQVGj.js";
3
+ import { S as w } from "./mc-select-group-Bei-NLQN.js";
4
+ import { S } from "./mc-select-DJRqoHto.js";
5
5
  const j = "mc-select-option", k = { class: "mc-select-option-content" }, y = o(e(t({ name: j, __name: "mc-select-option", props: { value: {}, label: {}, width: {}, height: {}, _group: {}, _vnode: {} }, setup(e2, { expose: o2 }) {
6
6
  const t2 = s(), j2 = e2, y2 = l(S, void 0), O = l(w, void 0), b = c(() => y2 == null ? void 0 : y2.selectValues.value.includes(j2.value)), x = c(() => !!(y2 == null ? void 0 : y2.filterOptions.value.some((e3) => e3.value === j2.value))), C = i(), I = () => {
7
7
  y2 == null ? void 0 : y2.handleSelect(J(j2));
@@ -2,8 +2,8 @@ import { _ as e, u as l } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as a, inject as t, computed as o, ref as s, withDirectives as i, createElementBlock as u, openBlock as d, normalizeStyle as c, normalizeClass as v, unref as p, renderSlot as r, createBlock as n, toDisplayString as m, vShow as b } from "vue";
3
3
  import { find as h, includes as f } from "lodash-es";
4
4
  import { useWidthHeight as y } from "@mc-plus/hooks";
5
- import { M as _ } from "./mc-select-multi-option-DcJJRZoA.js";
6
- import { a as g } from "./mc-select-plus-M75eA6pT.js";
5
+ import { M as _ } from "./mc-select-multi-option-D7n9oExC.js";
6
+ import { a as g } from "./mc-select-plus-CAmogpfF.js";
7
7
  const k = "mc-select-option-plus", M = ["aria-selected"], O = { key: 1, class: "mc-select-option-label" }, j = l(e(a({ name: k, __name: "mc-select-option-plus", props: { label: {}, value: { type: [String, Number, Boolean] }, height: { default: 40 }, width: { default: "100%" }, disabled: { type: Boolean } }, setup(e2) {
8
8
  const l2 = e2, { height: a2, width: k2 } = y(), j2 = t(g || void 0), w = o(() => !!h(j2 == null ? void 0 : j2.filteredOptions.value, (e3) => e3.value === l2.value)), B = o(() => !!(j2 == null ? void 0 : j2.isMulti.value)), N = o(() => {
9
9
  if (B.value) {
@@ -7,12 +7,12 @@ import { M as ee } from "./mc-popper-CbGrFzA5.js";
7
7
  import { M as le } from "./mc-tag-CeJarQKP.js";
8
8
  import { M as ae } from "./mc-title-Bp0U8n05.js";
9
9
  import { M as te } from "./mc-footer-BeEDYFlH.js";
10
- import { M as oe } from "./mc-checkbox-kNdddXex.js";
10
+ import { M as oe } from "./mc-checkbox-CnZgOlqy.js";
11
11
  import { M as se } from "./mc-button-Bg4Yihn7.js";
12
- import { M as ue } from "./mc-select-group-plus-BInUebBP.js";
13
- import { a as re } from "./mc-select-option-plus-H9ddV1G1.js";
14
- import { u as ne } from "./mc-form-CMbtX2Wt.js";
15
- import { I as ce, u as ie } from "./mc-input-group-B4S-Un4z.js";
12
+ import { M as ue } from "./mc-select-group-plus-APP_78wJ.js";
13
+ import { a as re } from "./mc-select-option-plus-5glbaxM8.js";
14
+ import { u as ne } from "./mc-form-DHiUJW30.js";
15
+ import { I as ce, u as ie } from "./mc-input-group-Bm5RSk_9.js";
16
16
  const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id", "placeholder", "readonly", "disabled", "onKeydown"], me = { key: 0, class: "mc-select-multi-options-wrapper" }, he = { key: 1, class: "mc-select-selected-content-wrapper" }, fe = { key: 1, class: "mc-select-placeholder" }, ge = { key: 0, class: "mc-select-status-icon-wrapper" }, ye = { key: 0, class: "mc-select-dropdown-header-content" }, be = { key: 0, class: "mc-select-empty" }, we = l(e(c({ name: ve, __name: "mc-select-plus", props: { width: { default: 320 }, height: { default: 40 }, placeholder: { default: "Please select" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, multiple: { type: Boolean, default: false }, maxTags: {}, search: { type: Boolean, default: false }, options: {}, showHeader: { type: Boolean, default: false }, showFooter: { type: Boolean, default: false }, modelValue: { type: [String, Number, Boolean, Array] }, placement: { default: "bottom-start" }, inputGroupPosition: {}, disableValidation: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean, default: false } }, emits: ["update:modelValue", "change", "focus", "blur", "expand"], setup(e2, { emit: l2 }) {
17
17
  const c2 = e2, ve2 = l2, we2 = t(() => c2.multiple), xe = a(), { wrapperRef: ke, isFocused: Oe, handleFocus: Ve, handleBlur: Se } = Q(xe), { isHovering: _e } = X(ke), { selectRef: je, width: Ae, height: Me } = (() => {
18
18
  const e3 = a(), { width: l3, height: t2 } = J(), o2 = () => {
@@ -1,7 +1,7 @@
1
1
  import { _ as e, u as l } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as t, createElementBlock as a, openBlock as s, renderSlot as i, createCommentVNode as o, createElementVNode as c, toDisplayString as n, createVNode as p, unref as h, useSlots as d, computed as m, createBlock as u, createSlots as v, withCtx as b, normalizeStyle as r, normalizeClass as w, withKeys as f, withModifiers as x } from "vue";
3
3
  import { M as y } from "./mc-tooltip-BNmrE7e_.js";
4
- import { u as $ } from "./mc-form-CMbtX2Wt.js";
4
+ import { u as $ } from "./mc-form-DHiUJW30.js";
5
5
  const k = "mc-switch", I = "mc-switch-label", T = { class: "mc-switch-label-wrapper" }, _ = { class: "mc-switch-label" }, g = { class: "mc-switch-help" }, V = e(t({ name: I, __name: "mc-switch-label", props: { label: {}, helpText: {}, helpIcon: { default: "Info" } }, setup: (e2) => (l2, t2) => (s(), a("div", T, [e2.label || l2.$slots.label ? i(l2.$slots, "label", { key: 0 }, () => [c("span", _, n(e2.label), 1)], true) : o("", true), e2.helpText || l2.$slots.help ? i(l2.$slots, "help", { key: 1 }, () => [c("div", g, [p(h(y), { "icon-name": e2.helpIcon, content: e2.helpText, "icon-size": 22 }, null, 8, ["icon-name", "content"])])], true) : o("", true)])) }), [["__scopeId", "data-v-52de74a9"]]), j = { class: "mc-switch" }, z = ["id", "disabled", "value", "onKeypress"], B = { class: "mc-switch-inner" }, C = { class: "mc-switch-inner-text" }, K = { class: "mc-switch-inner-text" }, M = l(e(t({ name: k, __name: "mc-switch", props: { modelValue: { type: Boolean, default: false }, width: {}, height: {}, activeText: {}, inactiveText: {}, disabled: { type: Boolean, default: false }, size: { default: "medium" }, label: {}, labelPosition: { default: "right" }, helpIcon: { default: "Info" }, helpText: {} }, emits: ["update:modelValue", "change"], setup(e2, { emit: l2 }) {
6
6
  const t2 = e2, p2 = l2, y2 = d(), { formId: k2, formItemCtx: I2, formDisabled: T2, validateStyle: _2 } = $(), g2 = m(() => t2.modelValue), M2 = async () => {
7
7
  var _a;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, computed as a, createElementBlock as l, createCommentVNode as t, openBlock as n, normalizeClass as o, renderSlot as i, Fragment as s, createTextVNode as r, toDisplayString as c, useSlots as u, ref as d, normalizeStyle as p, createElementVNode as g, renderList as v, createVNode as m, unref as h, createBlock as f, createSlots as b, withCtx as _, mergeProps as y, watch as w, onMounted as k, nextTick as S, toRefs as x, normalizeProps as C, guardReactiveProps as R } from "vue";
2
- import { M as z } from "./mc-checkbox-kNdddXex.js";
2
+ import { M as z } from "./mc-checkbox-CnZgOlqy.js";
3
3
  import { _ as I, u as P } from "./utils-y7s5KtP-.js";
4
4
  import { m as $ } from "./mc-icon-CmYW61Q0.js";
5
5
  const M = ["rowspan", "colspan"], H = I(e({ __name: "mc-table-cell", props: { row: {}, column: {}, rowIndex: {}, columnIndex: {}, pagination: {}, spanMethod: { type: Function } }, setup(e2) {
@@ -1,7 +1,7 @@
1
1
  import { _ as e, u as a } from "./utils-y7s5KtP-.js";
2
2
  import { defineComponent as t, ref as l, useSlots as r, computed as o, createElementBlock as u, openBlock as s, normalizeStyle as d, normalizeClass as m, unref as n, createElementVNode as h, renderSlot as c, createCommentVNode as i, toDisplayString as p, nextTick as f } from "vue";
3
3
  import { useWidthHeight as x, useFocus as g } from "@mc-plus/hooks";
4
- import { u as v } from "./mc-form-CMbtX2Wt.js";
4
+ import { u as v } from "./mc-form-DHiUJW30.js";
5
5
  const L = "mc-textarea", y = ["value", "id", "disabled", "maxlength", "placeholder"], b = { class: "mc-textarea-count" }, w = a(e(t({ name: L, __name: "mc-textarea", props: { modelValue: { default: "" }, placeholder: { default: "Please input" }, disabled: { type: Boolean, default: false }, showCount: { type: Boolean, default: true }, width: { default: "100%" }, height: { default: 88 }, resize: { default: "vertical" }, maxLength: { default: 255 } }, emits: ["update:modelValue", "change", "focus", "blur"], setup(e2, { emit: a2 }) {
6
6
  const t2 = e2, L2 = a2, { width: w2, height: _ } = x(), V = l(), { wrapperRef: k, isFocused: B, handleFocus: I, handleBlur: z } = g(V), { formId: C, formItemCtx: F, validateStyle: R, formDisabled: $ } = v(), j = async (e3) => {
7
7
  var _a;
@@ -2,7 +2,7 @@ import { Ref } from 'vue';
2
2
  import { FormContext, ValidateStatus } from '../types';
3
3
  import { FormItemContext } from '../../mc-form-item';
4
4
  export interface McFormIdHookOptions {
5
- formItem: FormItemContext;
5
+ formItemCtx: Ref<FormItemContext | undefined>;
6
6
  externalId?: Ref<string>;
7
7
  }
8
8
  export interface McFormDisabledHookOptions {
@@ -13,8 +13,8 @@ export interface McFormDisabledHookOptions {
13
13
  export interface McFormItemHookOptions {
14
14
  externalDisabled?: McFormDisabledHookOptions["externalDisabled"];
15
15
  externalId?: McFormIdHookOptions["externalId"];
16
- disableValidation?: Ref<boolean>;
17
16
  }
18
17
  export interface McFormValidateHookOptions extends McFormItemHookOptions {
19
18
  validator?: () => ValidateStatus | void;
19
+ disableValidation?: Ref<boolean>;
20
20
  }
@@ -1,3 +1,3 @@
1
1
  import { McFormIdHookOptions } from './types';
2
- declare const useFormId: ({ formItem, externalId }: McFormIdHookOptions) => string;
2
+ declare const useFormId: ({ formItemCtx, externalId }: McFormIdHookOptions) => string;
3
3
  export default useFormId;
@@ -1,7 +1,7 @@
1
1
  import { McFormItemHookOptions } from './types';
2
2
  import { FormItemContext } from '../../mc-form-item/types';
3
3
  import { FormContext } from '..';
4
- declare const useFormItem: ({ externalId, externalDisabled, disableValidation, }?: McFormItemHookOptions) => {
4
+ declare const useFormItem: ({ externalId, externalDisabled, }?: McFormItemHookOptions) => {
5
5
  formCtx: import('vue').Ref<{
6
6
  emits: import('..').FormEmits;
7
7
  addField: (field: FormItemContext) => void;
@@ -21,8 +21,24 @@ declare const useFormItem: ({ externalId, externalDisabled, disableValidation, }
21
21
  direction?: import('..').FormDirection | undefined;
22
22
  scrollToError?: boolean | undefined;
23
23
  } | undefined>;
24
- formItemCtx: import('vue').Ref<FormItemContext | undefined, FormItemContext | undefined>;
25
- formId: import('vue').Ref<string | undefined, string | undefined>;
24
+ formItemCtx: import('vue').Ref<{
25
+ id: string;
26
+ prop: string;
27
+ disabled: boolean;
28
+ validateStatus: import('..').ValidateStatus;
29
+ validate: (trigger?: import('../..').FormItemTrigger, callback?: import('..').FormValidateCallback) => import('..').FormValidateResult;
30
+ resetField: () => void;
31
+ clearValidate: () => void;
32
+ } | undefined, FormItemContext | {
33
+ id: string;
34
+ prop: string;
35
+ disabled: boolean;
36
+ validateStatus: import('..').ValidateStatus;
37
+ validate: (trigger?: import('../..').FormItemTrigger, callback?: import('..').FormValidateCallback) => import('..').FormValidateResult;
38
+ resetField: () => void;
39
+ clearValidate: () => void;
40
+ } | undefined>;
41
+ formId: string;
26
42
  formDisabled: import('vue').ComputedRef<boolean>;
27
43
  };
28
44
  export default useFormItem;
@@ -20,8 +20,24 @@ declare const useFormValidate: ({ externalId, externalDisabled, disableValidatio
20
20
  direction?: import('..').FormDirection | undefined;
21
21
  scrollToError?: boolean | undefined;
22
22
  } | undefined>;
23
- formItemCtx: import('vue').Ref<import('../..').FormItemContext | undefined, import('../..').FormItemContext | undefined>;
24
- formId: import('vue').Ref<string | undefined, string | undefined>;
23
+ formItemCtx: import('vue').Ref<{
24
+ id: string;
25
+ prop: string;
26
+ disabled: boolean;
27
+ validateStatus: ValidateStatus;
28
+ validate: (trigger?: import('../..').FormItemTrigger, callback?: import('..').FormValidateCallback) => import('..').FormValidateResult;
29
+ resetField: () => void;
30
+ clearValidate: () => void;
31
+ } | undefined, import('../..').FormItemContext | {
32
+ id: string;
33
+ prop: string;
34
+ disabled: boolean;
35
+ validateStatus: ValidateStatus;
36
+ validate: (trigger?: import('../..').FormItemTrigger, callback?: import('..').FormValidateCallback) => import('..').FormValidateResult;
37
+ resetField: () => void;
38
+ clearValidate: () => void;
39
+ } | undefined>;
40
+ formId: string;
25
41
  formDisabled: import('vue').ComputedRef<boolean>;
26
42
  validateStatus: import('vue').ComputedRef<ValidateStatus>;
27
43
  validateStyle: import('vue').ComputedRef<string>;