mc-plus 1.0.109 → 1.0.111
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/dist/es/index.js +40 -40
- package/dist/es/{mc-checkbox-BBIfknVB.js → mc-checkbox-BN4P6-DK.js} +2 -2
- package/dist/es/{mc-checkbox-group-C-eLZFBP.js → mc-checkbox-group-BifJ8Ni7.js} +1 -1
- package/dist/es/{mc-date-picker-Cy-yK5TI.js → mc-date-picker-CfborZX9.js} +1 -1
- package/dist/es/{mc-file-list-Dkj-S89y.js → mc-file-list-CHTB72Ds.js} +1 -1
- package/dist/es/{mc-form-ffIxRMtg.js → mc-form-DCKlCcDs.js} +20 -20
- package/dist/es/{mc-form-item-D44F-c3U.js → mc-form-item-Ksz0bBSl.js} +1 -1
- package/dist/es/{mc-input-DHBf3QjE.js → mc-input-BGgdD1HJ.js} +1 -1
- package/dist/es/{mc-otp-CNWg5Fwl.js → mc-otp-CXPGr4xS.js} +1 -1
- package/dist/es/{mc-radio-BESoY7cw.js → mc-radio-dZSSpnrK.js} +2 -2
- package/dist/es/{mc-radio-group-Ci5oCMVt.js → mc-radio-group-RBo73oRr.js} +1 -1
- package/dist/es/{mc-richtext-CorNrnhg.js → mc-richtext-ClxrTi6e.js} +3 -3
- package/dist/es/{mc-select-BOZyeL1v.js → mc-select-CneRu4Ql.js} +2 -2
- package/dist/es/{mc-select-group-plus-Blt_T5Yk.js → mc-select-group-plus-B8grrVXr.js} +1 -1
- package/dist/es/{mc-select-multi-option-C9b5LOmP.js → mc-select-multi-option-D7hD1igO.js} +1 -1
- package/dist/es/{mc-select-option-plus-Bn1RGeiS.js → mc-select-option-plus-CxY0GZeL.js} +2 -2
- package/dist/es/{mc-select-plus-DfguHmhz.js → mc-select-plus-BeYarza9.js} +66 -66
- package/dist/es/{mc-switch-Buj-pU4b.js → mc-switch-CJKHiSY9.js} +1 -1
- package/dist/es/{mc-table-Py-BMb04.js → mc-table-CA8JjLlo.js} +1 -1
- package/dist/es/{mc-textarea-P3jxTX7p.js → mc-textarea-CT_tmZlw.js} +1 -1
- package/dist/es/{mc-upload-q89LNkpa.js → mc-upload-DwBh_Xaf.js} +2 -2
- package/dist/umd/index.umd.cjs +18 -18
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { M as E } from "./mc-alert-message-MaVcKmVR.js";
|
|
|
3
3
|
import { a } from "./mc-alert-message-MaVcKmVR.js";
|
|
4
4
|
import { M as O } from "./mc-button-l3r7Y4qt.js";
|
|
5
5
|
import { a as a2 } from "./mc-button-l3r7Y4qt.js";
|
|
6
|
-
import { M as L } from "./mc-checkbox-
|
|
7
|
-
import { a as a3 } from "./mc-checkbox-
|
|
8
|
-
import { M as P } from "./mc-checkbox-group-
|
|
9
|
-
import { C, a as a4 } from "./mc-checkbox-group-
|
|
6
|
+
import { M as L } from "./mc-checkbox-BN4P6-DK.js";
|
|
7
|
+
import { a as a3 } from "./mc-checkbox-BN4P6-DK.js";
|
|
8
|
+
import { M as P } from "./mc-checkbox-group-BifJ8Ni7.js";
|
|
9
|
+
import { C, a as a4 } from "./mc-checkbox-group-BifJ8Ni7.js";
|
|
10
10
|
import { M as x } from "./mc-collapse-DCCkhFxV.js";
|
|
11
11
|
import { C as C2, a as a5 } from "./mc-collapse-DCCkhFxV.js";
|
|
12
12
|
import { M as R } from "./mc-collapse-item-BK-yFkkd.js";
|
|
@@ -17,24 +17,24 @@ import { M as U } from "./mc-count-BeEL0mVo.js";
|
|
|
17
17
|
import { a as a8 } from "./mc-count-BeEL0mVo.js";
|
|
18
18
|
import { M as B } from "./mc-currency-icon-C93ktrCE.js";
|
|
19
19
|
import { a as a9 } from "./mc-currency-icon-C93ktrCE.js";
|
|
20
|
-
import { M as G } from "./mc-date-picker-
|
|
21
|
-
import { D, a as a10, d, b, c, e, f, Y } from "./mc-date-picker-
|
|
20
|
+
import { M as G } from "./mc-date-picker-CfborZX9.js";
|
|
21
|
+
import { D, a as a10, d, b, c, e, f, Y } from "./mc-date-picker-CfborZX9.js";
|
|
22
22
|
import { M as K } from "./mc-divider-CZxIWiZh.js";
|
|
23
23
|
import { a as a11 } from "./mc-divider-CZxIWiZh.js";
|
|
24
24
|
import { M as H } from "./mc-drawer-fP8CSRLK.js";
|
|
25
25
|
import { a as a12 } from "./mc-drawer-fP8CSRLK.js";
|
|
26
26
|
import { M as X } from "./mc-footer-DPUGq_1g.js";
|
|
27
27
|
import { a as a13 } from "./mc-footer-DPUGq_1g.js";
|
|
28
|
-
import { M as y } from "./mc-form-
|
|
29
|
-
import { F, a as a14 } from "./mc-form-
|
|
30
|
-
import { M as v } from "./mc-form-item-
|
|
31
|
-
import { F as F2, a as a15 } from "./mc-form-item-
|
|
28
|
+
import { M as y } from "./mc-form-DCKlCcDs.js";
|
|
29
|
+
import { F, a as a14 } from "./mc-form-DCKlCcDs.js";
|
|
30
|
+
import { M as v } from "./mc-form-item-Ksz0bBSl.js";
|
|
31
|
+
import { F as F2, a as a15 } from "./mc-form-item-Ksz0bBSl.js";
|
|
32
32
|
import { M as w } from "./mc-icon-CnpccbFi.js";
|
|
33
33
|
import { a as a16 } from "./mc-icon-CnpccbFi.js";
|
|
34
34
|
import { M as V } from "./mc-icon-plus-YMAi6EZM.js";
|
|
35
35
|
import { b as b2 } from "./mc-icon-plus-YMAi6EZM.js";
|
|
36
|
-
import { M as J } from "./mc-input-
|
|
37
|
-
import { a as a17, c as c2, b as b3 } from "./mc-input-
|
|
36
|
+
import { M as J } from "./mc-input-BGgdD1HJ.js";
|
|
37
|
+
import { a as a17, c as c2, b as b3 } from "./mc-input-BGgdD1HJ.js";
|
|
38
38
|
import { M as Z } from "./mc-input-group-BPpVTTHQ.js";
|
|
39
39
|
import { I, a as a18 } from "./mc-input-group-BPpVTTHQ.js";
|
|
40
40
|
import { M as z } from "./mc-lightbox-BfJiHzKa.js";
|
|
@@ -45,8 +45,8 @@ import { M as $ } from "./mc-modal-header-CjqAJ3P9.js";
|
|
|
45
45
|
import { a as a21 } from "./mc-modal-header-CjqAJ3P9.js";
|
|
46
46
|
import { M as ss } from "./mc-multi-tag-BgzHzFtD.js";
|
|
47
47
|
import { a as a22 } from "./mc-multi-tag-BgzHzFtD.js";
|
|
48
|
-
import { M as os } from "./mc-otp-
|
|
49
|
-
import { a as a23 } from "./mc-otp-
|
|
48
|
+
import { M as os } from "./mc-otp-CXPGr4xS.js";
|
|
49
|
+
import { a as a23 } from "./mc-otp-CXPGr4xS.js";
|
|
50
50
|
import { M as ms } from "./mc-overlay-DjoaK_nE.js";
|
|
51
51
|
import { a as a24 } from "./mc-overlay-DjoaK_nE.js";
|
|
52
52
|
import { M as rs } from "./mc-popper-DPUYXBED.js";
|
|
@@ -61,28 +61,28 @@ import { a as ps } from "./mc-progress-indicator-item-BdtMbC7A.js";
|
|
|
61
61
|
import { M } from "./mc-progress-indicator-item-BdtMbC7A.js";
|
|
62
62
|
import { a as cs } from "./mc-progress-indicator-child-item-445fslo3.js";
|
|
63
63
|
import { M as M2 } from "./mc-progress-indicator-child-item-445fslo3.js";
|
|
64
|
-
import { M as es } from "./mc-radio-
|
|
65
|
-
import { a as a29 } from "./mc-radio-
|
|
66
|
-
import { a as Ms } from "./mc-radio-group-
|
|
67
|
-
import { b as b5, M as M3 } from "./mc-radio-group-
|
|
64
|
+
import { M as es } from "./mc-radio-dZSSpnrK.js";
|
|
65
|
+
import { a as a29 } from "./mc-radio-dZSSpnrK.js";
|
|
66
|
+
import { a as Ms } from "./mc-radio-group-RBo73oRr.js";
|
|
67
|
+
import { b as b5, M as M3 } from "./mc-radio-group-RBo73oRr.js";
|
|
68
68
|
import { M as Cs } from "./mc-removable-tag-BI8IR6RR.js";
|
|
69
69
|
import { a as a30 } from "./mc-removable-tag-BI8IR6RR.js";
|
|
70
70
|
import { M as is } from "./mc-reset-2g3HidL0.js";
|
|
71
71
|
import { a as a31 } from "./mc-reset-2g3HidL0.js";
|
|
72
|
-
import { M as fs } from "./mc-richtext-
|
|
73
|
-
import { F as F3, a as a32, b as b6, T } from "./mc-richtext-
|
|
72
|
+
import { M as fs } from "./mc-richtext-ClxrTi6e.js";
|
|
73
|
+
import { F as F3, a as a32, b as b6, T } from "./mc-richtext-ClxrTi6e.js";
|
|
74
74
|
import { M as Es } from "./mc-secondary-menu-DXNC7YoQ.js";
|
|
75
75
|
import { a as a33 } from "./mc-secondary-menu-DXNC7YoQ.js";
|
|
76
|
-
import { M as Ts } from "./mc-select-
|
|
77
|
-
import { a as a34, S } from "./mc-select-
|
|
78
|
-
import { M as js } from "./mc-select-plus-
|
|
79
|
-
import { b as b7, a as a35 } from "./mc-select-plus-
|
|
80
|
-
import { a as Os } from "./mc-select-group-plus-
|
|
81
|
-
import { M as M4 } from "./mc-select-group-plus-
|
|
82
|
-
import { M as ls } from "./mc-select-option-plus-
|
|
83
|
-
import { a as a36 } from "./mc-select-option-plus-
|
|
84
|
-
import { M as Ls } from "./mc-select-multi-option-
|
|
85
|
-
import { a as a37 } from "./mc-select-multi-option-
|
|
76
|
+
import { M as Ts } from "./mc-select-CneRu4Ql.js";
|
|
77
|
+
import { a as a34, S } from "./mc-select-CneRu4Ql.js";
|
|
78
|
+
import { M as js } from "./mc-select-plus-BeYarza9.js";
|
|
79
|
+
import { b as b7, a as a35 } from "./mc-select-plus-BeYarza9.js";
|
|
80
|
+
import { a as Os } from "./mc-select-group-plus-B8grrVXr.js";
|
|
81
|
+
import { M as M4 } from "./mc-select-group-plus-B8grrVXr.js";
|
|
82
|
+
import { M as ls } from "./mc-select-option-plus-CxY0GZeL.js";
|
|
83
|
+
import { a as a36 } from "./mc-select-option-plus-CxY0GZeL.js";
|
|
84
|
+
import { M as Ls } from "./mc-select-multi-option-D7hD1igO.js";
|
|
85
|
+
import { a as a37 } from "./mc-select-multi-option-D7hD1igO.js";
|
|
86
86
|
import { M as As } from "./mc-status-Bw9-cSOb.js";
|
|
87
87
|
import { a as a38 } from "./mc-status-Bw9-cSOb.js";
|
|
88
88
|
import { M as Is } from "./mc-step-C-2wTLJk.js";
|
|
@@ -95,22 +95,22 @@ import { a as Rs } from "./mc-step-child-item-plus-CbMY1UMS.js";
|
|
|
95
95
|
import { M as M6 } from "./mc-step-child-item-plus-CbMY1UMS.js";
|
|
96
96
|
import { M as Ss } from "./mc-success-icon-BgQB9Rmp.js";
|
|
97
97
|
import { a as a41 } from "./mc-success-icon-BgQB9Rmp.js";
|
|
98
|
-
import { M as us } from "./mc-switch-
|
|
99
|
-
import { a as a42, b as b8 } from "./mc-switch-
|
|
98
|
+
import { M as us } from "./mc-switch-CJKHiSY9.js";
|
|
99
|
+
import { a as a42, b as b8 } from "./mc-switch-CJKHiSY9.js";
|
|
100
100
|
import { M as Ns } from "./mc-tab-CT5ma0pR.js";
|
|
101
101
|
import { a as a43 } from "./mc-tab-CT5ma0pR.js";
|
|
102
102
|
import { a as Us } from "./mc-tab-item-BGbfpv43.js";
|
|
103
103
|
import { M as M7 } from "./mc-tab-item-BGbfpv43.js";
|
|
104
|
-
import { M as ns } from "./mc-table-
|
|
105
|
-
import { u, a as a44, b as b9 } from "./mc-table-
|
|
104
|
+
import { M as ns } from "./mc-table-CA8JjLlo.js";
|
|
105
|
+
import { u, a as a44, b as b9 } from "./mc-table-CA8JjLlo.js";
|
|
106
106
|
import { M as bs } from "./mc-table-plus-BiTWSn5G.js";
|
|
107
107
|
import { d as d2, f as f2, r, p, q, o, g, j, b as b10, h, l, m, n, a as a45, e as e2, i, c as c4, k } from "./mc-table-plus-BiTWSn5G.js";
|
|
108
108
|
import { a as Ds } from "./mc-table-column-plus-XSQZhnuc.js";
|
|
109
109
|
import { M as M8 } from "./mc-table-column-plus-XSQZhnuc.js";
|
|
110
110
|
import { M as ds } from "./mc-tag-nPl6YzbM.js";
|
|
111
111
|
import { a as a46 } from "./mc-tag-nPl6YzbM.js";
|
|
112
|
-
import { M as Bs } from "./mc-textarea-
|
|
113
|
-
import { a as a47 } from "./mc-textarea-
|
|
112
|
+
import { M as Bs } from "./mc-textarea-CT_tmZlw.js";
|
|
113
|
+
import { a as a47 } from "./mc-textarea-CT_tmZlw.js";
|
|
114
114
|
import { M as gs } from "./mc-title-BGuIP_KE.js";
|
|
115
115
|
import { a as a48 } from "./mc-title-BGuIP_KE.js";
|
|
116
116
|
import { M as Gs } from "./mc-title-tool-bar-gsdijNp2.js";
|
|
@@ -119,10 +119,10 @@ import { M as Ys } from "./mc-toast-BNRX1zn4.js";
|
|
|
119
119
|
import { a as a50, t } from "./mc-toast-BNRX1zn4.js";
|
|
120
120
|
import { M as hs } from "./mc-tooltip-BlsZG-T8.js";
|
|
121
121
|
import { a as a51 } from "./mc-tooltip-BlsZG-T8.js";
|
|
122
|
-
import { M as Ks } from "./mc-upload-
|
|
123
|
-
import { A, a as a52, b as b11, W } from "./mc-upload-
|
|
124
|
-
import { M as Fs } from "./mc-file-list-
|
|
125
|
-
import { a as a53 } from "./mc-file-list-
|
|
122
|
+
import { M as Ks } from "./mc-upload-DwBh_Xaf.js";
|
|
123
|
+
import { A, a as a52, b as b11, W } from "./mc-upload-DwBh_Xaf.js";
|
|
124
|
+
import { M as Fs } from "./mc-file-list-CHTB72Ds.js";
|
|
125
|
+
import { a as a53 } from "./mc-file-list-CHTB72Ds.js";
|
|
126
126
|
const Hs = [E, O, L, P, x, R, N, U, B, G, K, H, X, y, v, w, V, J, Z, z, Q, $, ss, os, ms, rs, as, ts, _s, ps, cs, es, Ms, Cs, is, fs, Es, Ts, Os, Ls, ls, js, As, Is, Rs, xs, Ps, Ss, us, Ns, Us, ns, Ds, bs, ds, Bs, gs, Gs, Ys, hs, Fs, Ks];
|
|
127
127
|
s();
|
|
128
128
|
const Xs = _(Hs);
|
|
@@ -2,8 +2,8 @@ import { _ as e, u as o } from "./utils-dWwt4JKv.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 i, withModifiers as u, normalizeClass as n, unref as m, 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 V } from "lodash-es";
|
|
5
|
-
import { C } from "./mc-checkbox-group-
|
|
6
|
-
import { u as B } from "./mc-form-
|
|
5
|
+
import { C } from "./mc-checkbox-group-BifJ8Ni7.js";
|
|
6
|
+
import { u as B } from "./mc-form-DCKlCcDs.js";
|
|
7
7
|
const S = "mc-checkbox", _ = { class: "mc-checkbox" }, G = ["id", "value", "disabled", "onKeypress"], g = { key: 0, class: "mc-checkbox-content" }, D = { key: 0, class: "mc-checkbox-remarks" }, I = o(e(l({ name: S, __name: "mc-checkbox", props: { modelValue: { type: Boolean }, disabled: { type: Boolean }, content: {}, remarks: {}, partial: { type: Boolean }, value: {}, disableValidation: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean } }, emits: ["update:modelValue", "change", "focus", "blur"], setup(e2, { emit: o2 }) {
|
|
8
8
|
const l2 = e2, S2 = o2, I2 = s(), { wrapperRef: $, isFocused: j, handleFocus: w, handleBlur: F } = v(I2), { checkboxGroupCtx: R, checkboxGroupDisabled: K, isCheckboxGroup: M, isCheckboxSelected: T, handleCheckboxSelect: q } = (() => {
|
|
9
9
|
const e3 = a(C, void 0), o3 = c(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as e } from "./utils-dWwt4JKv.js";
|
|
2
2
|
import { defineComponent as a, provide as o, computed as l, createElementBlock as t, openBlock as d, unref as i, renderSlot as s, nextTick as m } from "vue";
|
|
3
3
|
import { indexOf as c } from "lodash-es";
|
|
4
|
-
import { u } from "./mc-form-
|
|
4
|
+
import { u } from "./mc-form-DCKlCcDs.js";
|
|
5
5
|
const r = Symbol("mc-checkbox-group-context"), n = "mc-checkbox-group", p = ["id"], b = e(a({ name: n, __name: "mc-checkbox-group", props: { modelValue: { default: () => [] }, disabled: { type: Boolean, default: false }, disableValidation: { type: Boolean }, hideValidationIcon: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: a2 }) {
|
|
6
6
|
const n2 = e2, b2 = a2, { formId: f, validateByTrigger: h } = u();
|
|
7
7
|
return o(r, { modelValue: l(() => n2.modelValue), disabled: l(() => n2.disabled), disableValidation: l(() => !!n2.disableValidation), handleSelect: async (e3) => {
|
|
@@ -5,7 +5,7 @@ import { M as $ } from "./mc-icon-CnpccbFi.js";
|
|
|
5
5
|
import { M as B } from "./mc-icon-plus-YMAi6EZM.js";
|
|
6
6
|
import { M as T } from "./mc-popper-DPUYXBED.js";
|
|
7
7
|
import { M as C } from "./mc-button-l3r7Y4qt.js";
|
|
8
|
-
import { u as R } from "./mc-form-
|
|
8
|
+
import { u as R } from "./mc-form-DCKlCcDs.js";
|
|
9
9
|
const x = "mc-date-picker", A = "mc-date-picker-item", I = "mc-date-picker-list", U = "mc-date-picker-content", j = /* @__PURE__ */ new Map([[0, { shortName: "Jan", fullName: "January" }], [1, { shortName: "Feb", fullName: "February" }], [2, { shortName: "Mar", fullName: "March" }], [3, { shortName: "Apr", fullName: "April" }], [4, { shortName: "May", fullName: "May" }], [5, { shortName: "Jun", fullName: "June" }], [6, { shortName: "Jul", fullName: "July" }], [7, { shortName: "Aug", fullName: "August" }], [8, { shortName: "Sep", fullName: "September" }], [9, { shortName: "Oct", fullName: "October" }], [10, { shortName: "Nov", fullName: "November" }], [11, { shortName: "Dec", fullName: "December" }]]), E = /* @__PURE__ */ new Map([[0, "Sun"], [1, "Mon"], [2, "Tue"], [3, "Wed"], [4, "Thu"], [5, "Fri"], [6, "Sat"]]), J = 42, O = 21, P = { class: "mc-date-picker-item-text" }, z = e(l({ name: A, __name: "mc-date-picker-item", props: { isToday: { type: Boolean, default: false }, isDisabled: { type: Boolean, default: false }, isActive: { type: Boolean, default: false }, isStart: { type: Boolean, default: false }, isEnd: { type: Boolean, default: false }, isDuration: { type: Boolean, default: false } }, emits: ["click"], setup(e2, { emit: t2 }) {
|
|
10
10
|
const a2 = t2, l2 = () => {
|
|
11
11
|
a2("click");
|
|
@@ -4,7 +4,7 @@ import { useResizeObserver as k } from "@mc-plus/hooks";
|
|
|
4
4
|
import { M as y } from "./mc-icon-CnpccbFi.js";
|
|
5
5
|
import { M as x } from "./mc-divider-CZxIWiZh.js";
|
|
6
6
|
import { M as C } from "./mc-progress-bar-CcOYol7T.js";
|
|
7
|
-
import { u as g, g as b, f as w } from "./mc-upload-
|
|
7
|
+
import { u as g, g as b, f as w } from "./mc-upload-DwBh_Xaf.js";
|
|
8
8
|
const _ = "mc-file-list", $ = { class: "mc-file-list-item-content" }, h = { class: "mc-file-list-item-file mc-file-list-item-info" }, M = ["onClick"], j = { class: "mc-file-list-item-file-name-text" }, B = { class: "mc-file-list-item-file-desc" }, V = { class: "mc-file-list-item-file-size-text" }, z = { key: 0, class: "mc-file-list-item-file-progress-bar" }, T = { key: 1, class: "mc-file-list-item-file-error" }, D = { key: 0, class: "mc-file-list-item-info" }, I = { class: "mc-file-list-item-info" }, L = { class: "mc-file-list-item-label" }, R = { class: "mc-file-list-item-value" }, q = { class: "mc-file-list-item-info" }, A = { class: "mc-file-list-item-label" }, E = { class: "mc-file-list-item-value" }, F = { key: 1, class: "mc-file-list-item-info" }, G = { class: "mc-file-list-item-actions" }, H = { class: "mc-file-list-item-compact-content" }, J = { key: 0, class: "mc-file-list-item-info" }, K = { class: "mc-file-list-item-info" }, N = { class: "mc-file-list-item-label" }, O = { class: "mc-file-list-item-value" }, P = { class: "mc-file-list-item-info" }, Q = { class: "mc-file-list-item-label" }, S = { class: "mc-file-list-item-value" }, U = { key: 1, class: "mc-file-list-item-info" }, W = l(e(s({ name: _, __name: "mc-file-list", props: { modelValue: { default: () => [] }, theme: { default: "light" }, lang: { default: "en" }, downloadable: { type: Boolean, default: false }, allowCancel: { type: Boolean, default: false }, deletable: { type: Boolean, default: true } }, emits: ["update:modelValue", "change", "delete", "download", "preview", "cancel"], setup(e2, { emit: l2 }) {
|
|
9
9
|
const s2 = e2, _2 = l2, { langMap: W2 } = g(), X = i(false), Y = i();
|
|
10
10
|
k(Y, ({ width: e3 }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { p as e, _ as t, u as a } from "./utils-dWwt4JKv.js";
|
|
2
2
|
import { computed as r, defineComponent as o, provide as l, createElementBlock as i, openBlock as s, createElementVNode as d, withModifiers as n, renderSlot as c, nextTick as m, inject as u, onMounted as v, onBeforeUnmount as f, watch as p } from "vue";
|
|
3
|
-
import { isNil as I, isEmpty as b, isArray as x, each as y, keys as h, first as V, size as w, isFunction as C } from "lodash-es";
|
|
4
|
-
import { useProp as
|
|
5
|
-
import { F as
|
|
6
|
-
const
|
|
3
|
+
import { isNil as I, isEmpty as b, isArray as x, each as y, keys as h, first as V, size as w, isFunction as C, isNumber as F } from "lodash-es";
|
|
4
|
+
import { useProp as g, useId as D } from "@mc-plus/hooks";
|
|
5
|
+
import { F as _ } from "./mc-form-item-Ksz0bBSl.js";
|
|
6
|
+
const j = Symbol("mc-form-context"), P = "mc-form", S = { class: "mc-form" }, E = a(t(o({ name: P, __name: "mc-form", props: { model: { default: () => ({}) }, modelValue: {}, rules: { default: () => ({}) }, disabled: { type: Boolean }, direction: { default: "vertical" }, scrollToError: { type: Boolean, default: false } }, emits: ["update:modelValue", "reset"], setup(t2, { expose: a2, emit: o2 }) {
|
|
7
7
|
const u2 = t2, v2 = o2, f2 = /* @__PURE__ */ new Map(), p2 = (e2) => {
|
|
8
8
|
if (x(e2)) {
|
|
9
9
|
if (b(e2)) return Array.from(f2.values());
|
|
@@ -55,7 +55,7 @@ const _ = Symbol("mc-form-context"), j = "mc-form", P = { class: "mc-form" }, S
|
|
|
55
55
|
const t3 = p2(e2);
|
|
56
56
|
b(t3) || (x(t3) ? y(t3, (e3) => e3.clearValidate()) : t3.clearValidate());
|
|
57
57
|
};
|
|
58
|
-
return l(
|
|
58
|
+
return l(j, { model: r(() => I(u2.modelValue) ? u2.model : u2.modelValue), rules: r(() => u2.rules), disabled: r(() => !!u2.disabled), direction: r(() => u2.direction), addFormItem: (e2) => {
|
|
59
59
|
b(e2.prop) || f2.set(e2.prop, e2);
|
|
60
60
|
}, removeFormItem: (e2) => {
|
|
61
61
|
b(e2.prop) || f2.delete(e2.prop);
|
|
@@ -66,11 +66,11 @@ const _ = Symbol("mc-form-context"), j = "mc-form", P = { class: "mc-form" }, S
|
|
|
66
66
|
x(t3) ? y(t3, (e3) => {
|
|
67
67
|
a3[e3.prop] = e3.getInitialValue();
|
|
68
68
|
}) : a3[t3.prop] = t3.getInitialValue(), await m(), v2("reset", a3), v2("update:modelValue", a3), await m(), F2(e2);
|
|
69
|
-
}, clearValidate: F2 }), (e2, t3) => (s(), i("div",
|
|
69
|
+
}, clearValidate: F2 }), (e2, t3) => (s(), i("div", S, [d("form", { onSubmit: t3[0] || (t3[0] = n(() => {
|
|
70
70
|
}, ["prevent"])) }, [c(e2.$slots, "default", {}, void 0, true)], 32)]));
|
|
71
|
-
} }), [["__scopeId", "data-v-70bd19cc"]])),
|
|
72
|
-
const l2 =
|
|
73
|
-
const a3 = u(
|
|
71
|
+
} }), [["__scopeId", "data-v-70bd19cc"]])), B = ({ externalId: e2, externalDisabled: t2, disableValidation: a2, validator: o2 } = {}) => {
|
|
72
|
+
const l2 = g(["disableValidation", "disable-validation"]), i2 = g(["validateProp", "validate-prop"]), s2 = r(() => !!l2.value || !!(a2 == null ? void 0 : a2.value)), { formCtx: d2, formItemCtx: n2, formId: c2, formDisabled: m2 } = (({ externalId: e3, externalDisabled: t3 } = {}) => {
|
|
73
|
+
const a3 = u(j, void 0), o3 = u(_, void 0), l3 = g(["validateProp", "validate-prop"]), i3 = D((e3 == null ? void 0 : e3.value) ?? "mc-form-item");
|
|
74
74
|
v(() => {
|
|
75
75
|
s3();
|
|
76
76
|
}), f(() => {
|
|
@@ -86,20 +86,20 @@ const _ = Symbol("mc-form-context"), j = "mc-form", P = { class: "mc-form" }, S
|
|
|
86
86
|
for (const t6 of a4) "add" === e4 ? t6 && (o3 == null ? void 0 : o3.addFormId(t6, i3)) : t6 && (o3 == null ? void 0 : o3.removeFormId(t6, i3));
|
|
87
87
|
}
|
|
88
88
|
}, d3 = (({ formCtx: e4, formItemCtx: t4, externalDisabled: a4 }) => {
|
|
89
|
-
const o4 =
|
|
89
|
+
const o4 = g("disabled");
|
|
90
90
|
return r(() => o4.value || !!(e4 == null ? void 0 : e4.disabled.value) || !!(t4 == null ? void 0 : t4.disabled.value) || !!(a4 == null ? void 0 : a4.value));
|
|
91
91
|
})({ formCtx: a3, formItemCtx: o3, externalDisabled: t3 });
|
|
92
92
|
return { formCtx: a3, formItemCtx: o3, formId: i3, formDisabled: d3 };
|
|
93
|
-
})({ externalId: e2, externalDisabled: t2 }),
|
|
93
|
+
})({ externalId: e2, externalDisabled: t2 }), y2 = r(() => {
|
|
94
94
|
if (s2.value) return "init";
|
|
95
95
|
if (C(o2) && "error" === o2()) return "error";
|
|
96
96
|
const e3 = n2 == null ? void 0 : n2.validateStatus;
|
|
97
97
|
return (e3 == null ? void 0 : e3.size) ? i2.value ? e3.get(i2.value) || "init" : e3.values().next().value || "init" : "init";
|
|
98
|
-
}),
|
|
99
|
-
p(() =>
|
|
100
|
-
|
|
98
|
+
}), h2 = r(() => s2.value ? "" : `mc-form-validate-${y2.value}`), V2 = r(() => !s2.value && "error" === y2.value), w2 = r(() => !s2.value && "success" === y2.value), P2 = g(["hideValidationIcon", "hide-validation-icon"]), S2 = r(() => !s2.value && !P2.value && (V2.value ? "Reject_02" : !!w2.value && "Accept_02")), E2 = g("modelValue"), B2 = (e3) => F(e3) ? I(e3) : b(e3);
|
|
99
|
+
p(() => E2.value, (e3, t3) => {
|
|
100
|
+
B2(e3) && B2(t3) || A("change");
|
|
101
101
|
});
|
|
102
|
-
const
|
|
102
|
+
const A = async (e3) => {
|
|
103
103
|
if (!s2.value) try {
|
|
104
104
|
if (i2.value) await (n2 == null ? void 0 : n2.validate(i2.value, e3));
|
|
105
105
|
else {
|
|
@@ -114,11 +114,11 @@ const _ = Symbol("mc-form-context"), j = "mc-form", P = { class: "mc-form" }, S
|
|
|
114
114
|
console.error("[mc-form] validate error: ", e4);
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
-
return { formCtx: d2, formItemCtx: n2, formId: c2, formDisabled: m2, validateStatus:
|
|
117
|
+
return { formCtx: d2, formItemCtx: n2, formId: c2, formDisabled: m2, validateStatus: y2, validateStyle: h2, isError: V2, isSuccess: w2, statusIcon: S2, validateByTrigger: A };
|
|
118
118
|
};
|
|
119
119
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
j as F,
|
|
121
|
+
E as M,
|
|
122
|
+
P as a,
|
|
123
|
+
B as u
|
|
124
124
|
};
|
|
@@ -4,7 +4,7 @@ import { isNil as _, isEmpty as w, isArray as k, get as $, cloneDeep as M, some
|
|
|
4
4
|
import B from "async-validator";
|
|
5
5
|
import { M as A } from "./mc-tooltip-BlsZG-T8.js";
|
|
6
6
|
import { useProp as C } from "@mc-plus/hooks";
|
|
7
|
-
import { F as D } from "./mc-form-
|
|
7
|
+
import { F as D } from "./mc-form-DCKlCcDs.js";
|
|
8
8
|
const E = Symbol("mc-form-item-context"), G = "mc-form-item", H = { class: "mc-form-item-label-wrapper" }, J = { key: 0, class: "mc-form-item-label" }, K = { key: 0, class: "mc-form-item-help" }, L = { key: 0, class: "mc-form-item-desc" }, N = { class: "mc-form-item__content" }, O = { key: 0, class: "mc-form-item__error" }, Q = r(e(i({ name: G, __name: "mc-form-item", props: { prop: { default: "" }, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(e2) {
|
|
9
9
|
const r2 = e2, i2 = m(/* @__PURE__ */ new Map()), G2 = m(/* @__PURE__ */ new Map()), Q2 = n(() => G2.values().next().value), R = t(D, void 0), { addFormId: T, removeFormId: U } = ((e3) => {
|
|
10
10
|
const r3 = t(D, void 0), o2 = /* @__PURE__ */ new Map(), i3 = C("prop"), m2 = () => {
|
|
@@ -4,7 +4,7 @@ import { endsWith as w, startsWith as $, assign as I, isNil as C, isEmpty as A,
|
|
|
4
4
|
import { useProp as S, useWidthHeight as j, useFocus as T } from "@mc-plus/hooks";
|
|
5
5
|
import { M as _ } from "./mc-icon-plus-YMAi6EZM.js";
|
|
6
6
|
import { I as P } from "./mc-input-group-BPpVTTHQ.js";
|
|
7
|
-
import { u as R } from "./mc-form-
|
|
7
|
+
import { u as R } from "./mc-form-DCKlCcDs.js";
|
|
8
8
|
const E = "mc-input", M = ",", O = ".", F = { key: 0, class: "mc-input-prepend" }, D = { class: "mc-input-container" }, W = ["id", "value", "placeholder", "type", "disabled", "readonly", "autocomplete", "autofocus", "maxlength"], z = { key: 0, class: "mc-input-placeholder" }, K = { key: 0 }, q = { key: 1, class: "mc-input-status-icon" }, G = { key: 2, class: "mc-input-toolbar" }, H = { key: 3, class: "mc-input-append" }, J = l(e(r({ name: E, __name: "mc-input", props: { modelValue: {}, id: {}, type: { default: "text" }, placeholder: { default: "Please enter" }, disabled: { type: Boolean, default: false }, prefixIcon: {}, suffixIcon: {}, autocomplete: { type: Boolean, default: true }, readonly: { type: Boolean }, autofocus: { type: Boolean }, maxlength: {}, textAlign: {}, currencyAccuracy: { default: void 0 }, disableValidation: { type: Boolean }, hideValidationIcon: { type: Boolean }, validateProp: {}, clearable: { type: Boolean }, width: { default: 320 }, height: { default: 40 } }, emits: ["update:modelValue", "focus", "blur", "input", "change", "paste", "delete", "clear"], setup(e2, { emit: l2 }) {
|
|
9
9
|
const r2 = e2, E2 = l2, { width: M2, height: J2 } = j(), L = t(), N = s(P, void 0), { formId: Q, formDisabled: U, validateStyle: X, validateStatus: Y, statusIcon: Z, isError: ee, validateByTrigger: le } = R({ externalDisabled: a(() => !!(N == null ? void 0 : N.disabled.value)) });
|
|
10
10
|
n(Y, (e3) => {
|
|
@@ -3,7 +3,7 @@ import { ref as o, nextTick as a, defineComponent as l, 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-CnpccbFi.js";
|
|
5
5
|
import { useClickOutside as _, useProp as j } from "@mc-plus/hooks";
|
|
6
|
-
import { u as D } from "./mc-form-
|
|
6
|
+
import { u as D } from "./mc-form-DCKlCcDs.js";
|
|
7
7
|
const B = "mc-otp", M = ["id"], C = { class: "mc-otp-input-list" }, K = ["onClick"], U = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown"], z = t(e(l({ name: B, __name: "mc-otp", props: { modelValue: {}, disabled: { type: Boolean, default: false }, length: { default: 6 }, disableValidation: { type: Boolean }, hideValidationIcon: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: t2 }) {
|
|
8
8
|
const l2 = e2, B2 = t2, z2 = o([]), A = n(new Array(l2.length)), { focusIndex: E, setFocus: P, nextFocus: S, prevFocus: T } = ((e3) => {
|
|
9
9
|
const t3 = o(), l3 = (e4) => {
|
|
@@ -2,8 +2,8 @@ import { _ as e, u as a } from "./utils-dWwt4JKv.js";
|
|
|
2
2
|
import { defineComponent as r, inject as l, ref as o, computed as s, createElementBlock as i, openBlock as d, normalizeClass as c, createElementVNode as t, 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-BlsZG-T8.js";
|
|
5
|
-
import { M as B } from "./mc-radio-group-
|
|
6
|
-
import { u as g } from "./mc-form-
|
|
5
|
+
import { M as B } from "./mc-radio-group-RBo73oRr.js";
|
|
6
|
+
import { u as g } from "./mc-form-DCKlCcDs.js";
|
|
7
7
|
const j = "mc-radio", w = ["disabled", "onKeypress"], F = { class: "mc-radio-wrapper" }, $ = { class: "mc-radio-content" }, M = { key: 0, class: "mc-radio-help" }, R = { class: "mc-radio-remark" }, S = a(e(r({ name: j, __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(B, void 0), j2 = o(), { wrapperRef: S2, isFocused: x, handleFocus: D, handleBlur: K } = y(j2), q = s(() => {
|
|
9
9
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e, u as o } from "./utils-dWwt4JKv.js";
|
|
2
2
|
import { defineComponent as a, provide as d, computed as l, createElementBlock as t, openBlock as i, unref as m, renderSlot as r } from "vue";
|
|
3
|
-
import { u as s } from "./mc-form-
|
|
3
|
+
import { u as s } from "./mc-form-DCKlCcDs.js";
|
|
4
4
|
const p = Symbol("mc-radio-group-context"), u = "mc-radio-group", n = ["id"], c = o(e(a({ name: u, __name: "mc-radio-group", props: { modelValue: { type: [Number, String, Boolean] }, disabled: { type: Boolean }, disableValidation: { type: Boolean }, hideValidationIcon: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: o2 }) {
|
|
5
5
|
const a2 = e2, u2 = o2, { formId: c2 } = s();
|
|
6
6
|
return d(p, { modelValue: l(() => a2.modelValue), disabled: l(() => a2.disabled), handleSelect: (e3) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as e, createElementBlock as t, openBlock as l, normalizeClass as a, renderSlot as o, createBlock as i, ref as s, watch as c, watchEffect as n, normalizeStyle as r, unref as m, createElementVNode as u, createVNode as d, withCtx as v, toDisplayString as p, createTextVNode as L } from "vue";
|
|
2
2
|
import { M as h, u as f, i as A, a as g, E as M } from "./vendor-BEjxar4U.js";
|
|
3
3
|
import { useWidthHeight as x } from "@mc-plus/hooks";
|
|
4
|
-
import { M as O } from "./mc-select-plus-
|
|
5
|
-
import { M as T } from "./mc-select-option-plus-
|
|
4
|
+
import { M as O } from "./mc-select-plus-BeYarza9.js";
|
|
5
|
+
import { M as T } from "./mc-select-option-plus-CxY0GZeL.js";
|
|
6
6
|
import { a as k, M as I } from "./mc-icon-plus-YMAi6EZM.js";
|
|
7
7
|
import { M as R } from "./mc-tooltip-BlsZG-T8.js";
|
|
8
|
-
import { M as b } from "./mc-input-
|
|
8
|
+
import { M as b } from "./mc-input-BGgdD1HJ.js";
|
|
9
9
|
import { M as _ } from "./mc-button-l3r7Y4qt.js";
|
|
10
10
|
import { _ as E, u as N } from "./utils-dWwt4JKv.js";
|
|
11
11
|
const C = "McRichtext", S = "McRichtextTool";
|
|
@@ -4,8 +4,8 @@ import { useProp as k, useFocus as S, useHover as B, useWidthHeight as T, useCli
|
|
|
4
4
|
import { M } from "./mc-popper-plus-CTKgoEEE.js";
|
|
5
5
|
import { M as j } from "./mc-icon-plus-YMAi6EZM.js";
|
|
6
6
|
import { isEmpty as E, filter as C, toLower as D, includes as P } from "lodash-es";
|
|
7
|
-
import { u as L } from "./mc-select-plus-
|
|
8
|
-
import { u as z } from "./mc-form-
|
|
7
|
+
import { u as L } from "./mc-select-plus-BeYarza9.js";
|
|
8
|
+
import { u as z } from "./mc-form-DCKlCcDs.js";
|
|
9
9
|
import { I as F } from "./mc-input-group-BPpVTTHQ.js";
|
|
10
10
|
const R = Symbol("mc-select-context"), H = "mc-select", U = ["value", "placeholder", "disabled", "readonly", "onKeydown"], Y = { class: "mc-select-selected-label" }, K = { class: "mc-select-trigger-toolbar" }, J = e(s({ name: "mc-select-trigger-virtual", __name: "index", props: { search: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { default: "Please select" }, searchValue: { default: void 0 }, isExpanded: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean, default: false } }, emits: ["update:searchValue", "update:isExpanded", "press:arrow", "search", "focus", "blur", "clear"], setup(e2, { emit: l2 }) {
|
|
11
11
|
const s2 = e2, g2 = l2, { selectedValue: V2, selectOptions: x2, isDisabled: _2, validateStatus: O2, isTopPlacement: w2 } = o(R), I2 = t(() => {
|
|
@@ -2,7 +2,7 @@ import { _ as l, u as s } from "./utils-dWwt4JKv.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 m, toDisplayString as i, 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-
|
|
5
|
+
import { a as n } from "./mc-select-plus-BeYarza9.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, { filteredGroups: e2 } = t(n), { height: v2, width: w2 } = g(), j = o(() => f(e2.value, s2.label));
|
|
8
8
|
return (s3, e3) => a((p(), u("ul", _, [r("li", { class: "mc-select-group-label", style: c({ height: m(v2), width: m(w2) }) }, i(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-dWwt4JKv.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-
|
|
3
|
+
import { M as d } from "./mc-checkbox-BN4P6-DK.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);
|
|
@@ -2,8 +2,8 @@ import { _ as e, u as l } from "./utils-dWwt4JKv.js";
|
|
|
2
2
|
import { defineComponent as a, inject as t, computed as s, ref as o, withDirectives as i, createElementBlock as u, openBlock as d, normalizeStyle as c, normalizeClass as p, unref as m, renderSlot as v, createBlock as r, toDisplayString as n, vShow as b } from "vue";
|
|
3
3
|
import { find as h, some as f } from "lodash-es";
|
|
4
4
|
import { useWidthHeight as y } from "@mc-plus/hooks";
|
|
5
|
-
import { M as _ } from "./mc-select-multi-option-
|
|
6
|
-
import { a as g } from "./mc-select-plus-
|
|
5
|
+
import { M as _ } from "./mc-select-multi-option-D7hD1igO.js";
|
|
6
|
+
import { a as g } from "./mc-select-plus-BeYarza9.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(), { isMulti: j2, selectedOptions: w, filteredOptions: B, hoverOption: x, select: A, hover: C } = t(g), D = s(() => !!h(B.value, (e3) => e3.value === l2.value)), I = s(() => f(w.value, (e3) => e3.value === l2.value)), J = o(false), N = s(() => l2.label), S = () => {
|
|
9
9
|
C(l2.value);
|