mc-plus 1.0.95 → 1.0.96
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 +137 -133
- package/dist/es/{mc-file-list-CFOfWUdN.js → mc-file-list-CEjzwuoW.js} +1 -1
- package/dist/es/mc-popper-plus-0ySiNa-6.js +7 -0
- package/dist/es/{mc-progress-indicator-BTqZfLHb.js → mc-progress-indicator-BHx0CkoW.js} +13 -13
- package/dist/es/{mc-radio-DiDuiR-k.js → mc-radio-SNzUO2oc.js} +5 -5
- package/dist/es/{mc-richtext-0vr1BbtW.js → mc-richtext-rpgRGRXa.js} +7 -7
- package/dist/es/{mc-select-Cy2MtaS9.js → mc-select-A1sfj0F6.js} +4 -4
- package/dist/es/{mc-select-group-CEaahxIg.js → mc-select-group-DyxMiZvG.js} +1 -1
- package/dist/es/{mc-select-group-plus-BSWFttai.js → mc-select-group-plus-B3EJzLHL.js} +1 -1
- package/dist/es/mc-select-option-DdaXGsnw.js +23 -0
- package/dist/es/{mc-select-option-plus-BBf63eox.js → mc-select-option-plus-BhrMU8QL.js} +5 -5
- package/dist/es/{mc-select-plus-ibPddIGf.js → mc-select-plus-CtXzc-qi.js} +40 -40
- package/dist/es/{mc-step-5imVgoD-.js → mc-step-BTlfLBko.js} +2 -2
- package/dist/es/{mc-step-plus-B7W_ryQ6.js → mc-step-plus-DtV193ut.js} +21 -21
- package/dist/es/{mc-tab-BGMlcjaB.js → mc-tab-1NhXVs17.js} +4 -4
- package/dist/es/{mc-table-plus-BBi3Ijp9.js → mc-table-plus-DM9Zqn5O.js} +10 -10
- package/dist/es/{mc-upload-BuuZUkJQ.js → mc-upload-BKguo5Ul.js} +11 -11
- package/dist/es/theme/mc-lightbox.css +1 -1
- package/dist/es/theme/mc-progress-indicator.css +1 -1
- package/dist/index.css +1 -1
- package/dist/types/components.d.ts +1 -0
- package/dist/types/mc-popper-plus/constant.d.ts +1 -0
- package/dist/types/mc-popper-plus/index.d.ts +15 -0
- package/dist/types/mc-popper-plus/mc-popper-plus.vue.d.ts +2 -0
- package/dist/types/mc-popper-plus/types.d.ts +4 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +35 -35
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/mc-select-option-CHWFS3Va.js +0 -23
package/dist/es/index.js
CHANGED
|
@@ -21,9 +21,9 @@ import { M as G } from "./mc-date-picker-DCcAzAgn.js";
|
|
|
21
21
|
import { D, a as a10, d, b, c, e, f, Y } from "./mc-date-picker-DCcAzAgn.js";
|
|
22
22
|
import { M as K } from "./mc-divider-BkBo-IT9.js";
|
|
23
23
|
import { a as a11 } from "./mc-divider-BkBo-IT9.js";
|
|
24
|
-
import { M as
|
|
24
|
+
import { M as H } from "./mc-drawer-7Aa0gdE0.js";
|
|
25
25
|
import { a as a12 } from "./mc-drawer-7Aa0gdE0.js";
|
|
26
|
-
import { M as
|
|
26
|
+
import { M as X } from "./mc-footer-DPUGq_1g.js";
|
|
27
27
|
import { a as a13 } from "./mc-footer-DPUGq_1g.js";
|
|
28
28
|
import { M as y } from "./mc-form-ClGYeMfQ.js";
|
|
29
29
|
import { F, b as b2 } from "./mc-form-ClGYeMfQ.js";
|
|
@@ -51,83 +51,85 @@ import { M as ms } from "./mc-overlay-DjoaK_nE.js";
|
|
|
51
51
|
import { a as a23 } from "./mc-overlay-DjoaK_nE.js";
|
|
52
52
|
import { M as rs } from "./mc-popper-CF1pmkvz.js";
|
|
53
53
|
import { a as a24 } from "./mc-popper-CF1pmkvz.js";
|
|
54
|
-
import { M as as } from "./mc-
|
|
55
|
-
import { a as a25 } from "./mc-
|
|
56
|
-
import { M as ts } from "./mc-progress-
|
|
57
|
-
import { a as a26
|
|
58
|
-
import {
|
|
54
|
+
import { M as as } from "./mc-popper-plus-0ySiNa-6.js";
|
|
55
|
+
import { a as a25 } from "./mc-popper-plus-0ySiNa-6.js";
|
|
56
|
+
import { M as ts } from "./mc-progress-bar-COF1YGM0.js";
|
|
57
|
+
import { a as a26 } from "./mc-progress-bar-COF1YGM0.js";
|
|
58
|
+
import { M as ps } from "./mc-progress-indicator-BHx0CkoW.js";
|
|
59
|
+
import { a as a27, b as b4, c as c2 } from "./mc-progress-indicator-BHx0CkoW.js";
|
|
60
|
+
import { a as _s } from "./mc-progress-indicator-item-BdtMbC7A.js";
|
|
59
61
|
import { M } from "./mc-progress-indicator-item-BdtMbC7A.js";
|
|
60
|
-
import { a as
|
|
62
|
+
import { a as cs } from "./mc-progress-indicator-child-item-445fslo3.js";
|
|
61
63
|
import { M as M2 } from "./mc-progress-indicator-child-item-445fslo3.js";
|
|
62
|
-
import { M as
|
|
63
|
-
import { a as
|
|
64
|
-
import { a as
|
|
64
|
+
import { M as es } from "./mc-radio-SNzUO2oc.js";
|
|
65
|
+
import { a as a28 } from "./mc-radio-SNzUO2oc.js";
|
|
66
|
+
import { a as Ms } from "./mc-radio-group-D5K3rD2e.js";
|
|
65
67
|
import { b as b5, M as M3 } from "./mc-radio-group-D5K3rD2e.js";
|
|
66
|
-
import { M as
|
|
67
|
-
import { a as
|
|
68
|
-
import { M as
|
|
69
|
-
import { a as
|
|
70
|
-
import { M as
|
|
71
|
-
import { F as F3, a as
|
|
72
|
-
import { M as
|
|
73
|
-
import { a as
|
|
74
|
-
import { M as
|
|
75
|
-
import { a as
|
|
76
|
-
import { M as Ts } from "./mc-select-group-
|
|
77
|
-
import { a as
|
|
78
|
-
import { M as
|
|
79
|
-
import { a as
|
|
80
|
-
import { M as
|
|
81
|
-
import { b as b7, a as
|
|
82
|
-
import { a as
|
|
83
|
-
import { M as M4 } from "./mc-select-group-plus-
|
|
84
|
-
import { M as
|
|
85
|
-
import { a as
|
|
86
|
-
import { M as
|
|
87
|
-
import { a as
|
|
68
|
+
import { M as Cs } from "./mc-removable-tag-X5mFMPl2.js";
|
|
69
|
+
import { a as a29 } from "./mc-removable-tag-X5mFMPl2.js";
|
|
70
|
+
import { M as is } from "./mc-reset-2g3HidL0.js";
|
|
71
|
+
import { a as a30 } from "./mc-reset-2g3HidL0.js";
|
|
72
|
+
import { M as fs } from "./mc-richtext-rpgRGRXa.js";
|
|
73
|
+
import { F as F3, a as a31, b as b6, T } from "./mc-richtext-rpgRGRXa.js";
|
|
74
|
+
import { M as Es } from "./mc-secondary-menu-DXNC7YoQ.js";
|
|
75
|
+
import { a as a32 } from "./mc-secondary-menu-DXNC7YoQ.js";
|
|
76
|
+
import { M as js } from "./mc-select-A1sfj0F6.js";
|
|
77
|
+
import { a as a33, S } from "./mc-select-A1sfj0F6.js";
|
|
78
|
+
import { M as Ts } from "./mc-select-group-DyxMiZvG.js";
|
|
79
|
+
import { a as a34, S as S2 } from "./mc-select-group-DyxMiZvG.js";
|
|
80
|
+
import { M as Os } from "./mc-select-option-DdaXGsnw.js";
|
|
81
|
+
import { a as a35 } from "./mc-select-option-DdaXGsnw.js";
|
|
82
|
+
import { M as ls } from "./mc-select-plus-CtXzc-qi.js";
|
|
83
|
+
import { b as b7, a as a36 } from "./mc-select-plus-CtXzc-qi.js";
|
|
84
|
+
import { a as Ls } from "./mc-select-group-plus-B3EJzLHL.js";
|
|
85
|
+
import { M as M4 } from "./mc-select-group-plus-B3EJzLHL.js";
|
|
86
|
+
import { M as As } from "./mc-select-option-plus-BhrMU8QL.js";
|
|
87
|
+
import { a as a37 } from "./mc-select-option-plus-BhrMU8QL.js";
|
|
88
|
+
import { M as xs } from "./mc-select-multi-option-CcI3A3-Q.js";
|
|
89
|
+
import { a as a38 } from "./mc-select-multi-option-CcI3A3-Q.js";
|
|
88
90
|
import { M as Is } from "./mc-status-Bw9-cSOb.js";
|
|
89
|
-
import { a as
|
|
90
|
-
import { M as
|
|
91
|
-
import { a as
|
|
92
|
-
import { M as Ss } from "./mc-step-plus-
|
|
93
|
-
import { a as
|
|
94
|
-
import { a as
|
|
91
|
+
import { a as a39 } from "./mc-status-Bw9-cSOb.js";
|
|
92
|
+
import { M as Ps } from "./mc-step-BTlfLBko.js";
|
|
93
|
+
import { a as a40 } from "./mc-step-BTlfLBko.js";
|
|
94
|
+
import { M as Ss } from "./mc-step-plus-DtV193ut.js";
|
|
95
|
+
import { a as a41 } from "./mc-step-plus-DtV193ut.js";
|
|
96
|
+
import { a as Rs } from "./mc-step-item-plus-DHDfilcx.js";
|
|
95
97
|
import { M as M5 } from "./mc-step-item-plus-DHDfilcx.js";
|
|
96
|
-
import { a as
|
|
98
|
+
import { a as us } from "./mc-step-child-item-plus-CbMY1UMS.js";
|
|
97
99
|
import { M as M6 } from "./mc-step-child-item-plus-CbMY1UMS.js";
|
|
98
|
-
import { M as
|
|
99
|
-
import { a as
|
|
100
|
-
import { M as
|
|
101
|
-
import { a as
|
|
102
|
-
import { M as
|
|
103
|
-
import { a as
|
|
100
|
+
import { M as Ns } from "./mc-success-icon-BgQB9Rmp.js";
|
|
101
|
+
import { a as a42 } from "./mc-success-icon-BgQB9Rmp.js";
|
|
102
|
+
import { M as ns } from "./mc-switch-AmnShMB0.js";
|
|
103
|
+
import { a as a43, b as b8 } from "./mc-switch-AmnShMB0.js";
|
|
104
|
+
import { M as Us } from "./mc-tab-1NhXVs17.js";
|
|
105
|
+
import { a as a44 } from "./mc-tab-1NhXVs17.js";
|
|
104
106
|
import { a as bs } from "./mc-tab-item-BGbfpv43.js";
|
|
105
107
|
import { M as M7 } from "./mc-tab-item-BGbfpv43.js";
|
|
106
|
-
import { M as
|
|
107
|
-
import { u, a as
|
|
108
|
-
import { M as
|
|
109
|
-
import { d as d2, f as f2, r, p, q, o, g, j, b as b10, h, l, m, n, a as
|
|
110
|
-
import { a as
|
|
108
|
+
import { M as ds } from "./mc-table-CejFCL7h.js";
|
|
109
|
+
import { u, a as a45, b as b9 } from "./mc-table-CejFCL7h.js";
|
|
110
|
+
import { M as Ds } from "./mc-table-plus-DM9Zqn5O.js";
|
|
111
|
+
import { d as d2, f as f2, r, p, q, o, g, j, b as b10, h, l, m, n, a as a46, e as e2, i, c as c3, k } from "./mc-table-plus-DM9Zqn5O.js";
|
|
112
|
+
import { a as gs } from "./mc-table-column-plus-XSQZhnuc.js";
|
|
111
113
|
import { M as M8 } from "./mc-table-column-plus-XSQZhnuc.js";
|
|
112
|
-
import { M as
|
|
113
|
-
import { a as
|
|
114
|
-
import { M as
|
|
115
|
-
import { a as
|
|
116
|
-
import { M as
|
|
117
|
-
import { a as
|
|
118
|
-
import { M as
|
|
119
|
-
import { a as
|
|
120
|
-
import { M as
|
|
121
|
-
import { a as
|
|
122
|
-
import { M as
|
|
123
|
-
import { a as
|
|
124
|
-
import { M as
|
|
125
|
-
import { A, a as
|
|
126
|
-
import { M as Xs } from "./mc-file-list-
|
|
127
|
-
import { a as
|
|
128
|
-
const
|
|
114
|
+
import { M as Bs } from "./mc-tag-DMybZ4uk.js";
|
|
115
|
+
import { a as a47 } from "./mc-tag-DMybZ4uk.js";
|
|
116
|
+
import { M as Gs } from "./mc-textarea-hiitv4yN.js";
|
|
117
|
+
import { a as a48 } from "./mc-textarea-hiitv4yN.js";
|
|
118
|
+
import { M as Ys } from "./mc-title-BPKi54sK.js";
|
|
119
|
+
import { a as a49 } from "./mc-title-BPKi54sK.js";
|
|
120
|
+
import { M as Ks } from "./mc-title-tool-bar-CF64WhuW.js";
|
|
121
|
+
import { a as a50 } from "./mc-title-tool-bar-CF64WhuW.js";
|
|
122
|
+
import { M as hs } from "./mc-toast-BNRX1zn4.js";
|
|
123
|
+
import { a as a51, t } from "./mc-toast-BNRX1zn4.js";
|
|
124
|
+
import { M as Fs } from "./mc-tooltip-B4YnwWwZ.js";
|
|
125
|
+
import { a as a52 } from "./mc-tooltip-B4YnwWwZ.js";
|
|
126
|
+
import { M as Hs } from "./mc-upload-BKguo5Ul.js";
|
|
127
|
+
import { A, a as a53, b as b11, W } from "./mc-upload-BKguo5Ul.js";
|
|
128
|
+
import { M as Xs } from "./mc-file-list-CEjzwuoW.js";
|
|
129
|
+
import { a as a54 } from "./mc-file-list-CEjzwuoW.js";
|
|
130
|
+
const ys = [E, O, L, x, P, R, N, U, B, G, K, H, X, y, v, w, J, V, Z, z, Q, $, ss, os, ms, rs, as, ts, ps, _s, cs, es, Ms, Cs, is, fs, Es, js, Ts, Os, Ls, xs, As, ls, Is, Ps, us, Rs, Ss, Ns, ns, Us, bs, ds, gs, Ds, Bs, Gs, Ys, Ks, hs, Fs, Xs, Hs];
|
|
129
131
|
s();
|
|
130
|
-
const
|
|
132
|
+
const Ws = _(ys);
|
|
131
133
|
export {
|
|
132
134
|
A as ALLOW_FILE_TYPES,
|
|
133
135
|
C as CHECKBOX_GROUP_INJECTION_KEY,
|
|
@@ -154,7 +156,7 @@ export {
|
|
|
154
156
|
f as MC_DATE_PICKER_WEEK,
|
|
155
157
|
a11 as MC_DIVIDER,
|
|
156
158
|
a12 as MC_DRAWER,
|
|
157
|
-
|
|
159
|
+
a54 as MC_FILE_LIST,
|
|
158
160
|
a13 as MC_FOOTER,
|
|
159
161
|
b2 as MC_FORM,
|
|
160
162
|
a14 as MC_FORM_ITEM,
|
|
@@ -169,37 +171,38 @@ export {
|
|
|
169
171
|
a22 as MC_OTP,
|
|
170
172
|
a23 as MC_OVERLAY,
|
|
171
173
|
a24 as MC_POPPER,
|
|
172
|
-
a25 as
|
|
173
|
-
a26 as
|
|
174
|
+
a25 as MC_POPPER_PLUS,
|
|
175
|
+
a26 as MC_PROGRESS_BAR,
|
|
176
|
+
a27 as MC_PROGRESS_INDICATOR,
|
|
174
177
|
M2 as MC_PROGRESS_INDICATOR_CHILD_ITEM,
|
|
175
178
|
M as MC_PROGRESS_INDICATOR_ITEM,
|
|
176
179
|
b4 as MC_PROGRESS_INDICATOR_STEP,
|
|
177
180
|
c2 as MC_PROGRESS_INDICATOR_STEP_NUM,
|
|
178
|
-
|
|
181
|
+
a28 as MC_RADIO,
|
|
179
182
|
b5 as MC_RADIO_GROUP,
|
|
180
183
|
M3 as MC_RADIO_GROUP_CTX,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
+
a29 as MC_REMOVABLE_TAG,
|
|
185
|
+
a30 as MC_RESET,
|
|
186
|
+
a31 as MC_RICHTEXT,
|
|
184
187
|
b6 as MC_RICHTEXT_TOOL,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
a32 as MC_SECONDARY_MENU,
|
|
189
|
+
a33 as MC_SELECT,
|
|
190
|
+
a34 as MC_SELECT_GROUP,
|
|
188
191
|
M4 as MC_SELECT_GROUP_PLUS,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
a38 as MC_SELECT_MULTI_OPTION,
|
|
193
|
+
a35 as MC_SELECT_OPTION,
|
|
194
|
+
a37 as MC_SELECT_OPTION_PLUS,
|
|
192
195
|
b7 as MC_SELECT_PLUS,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
a36 as MC_SELECT_PLUS_CTX,
|
|
197
|
+
a39 as MC_STATUS,
|
|
198
|
+
a40 as MC_STEP,
|
|
196
199
|
M6 as MC_STEP_CHILD_ITEM_PLUS,
|
|
197
200
|
M5 as MC_STEP_ITEM_PLUS,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
a41 as MC_STEP_PLUS,
|
|
202
|
+
a42 as MC_SUCCESS_ICON,
|
|
203
|
+
a43 as MC_SWITCH,
|
|
201
204
|
b8 as MC_SWITCH_LABEL,
|
|
202
|
-
|
|
205
|
+
a44 as MC_TAB,
|
|
203
206
|
d2 as MC_TABLE_BODY,
|
|
204
207
|
f2 as MC_TABLE_CELL,
|
|
205
208
|
M8 as MC_TABLE_COLUMN_PLUS,
|
|
@@ -214,19 +217,19 @@ export {
|
|
|
214
217
|
l as MC_TABLE_PAGE_SIZE,
|
|
215
218
|
m as MC_TABLE_PAGINATION,
|
|
216
219
|
n as MC_TABLE_PAGINATION_ITEM,
|
|
217
|
-
|
|
220
|
+
a46 as MC_TABLE_PLUS,
|
|
218
221
|
e2 as MC_TABLE_ROW,
|
|
219
222
|
i as MC_TABLE_SCROLL,
|
|
220
223
|
c3 as MC_TABLE_SORT,
|
|
221
224
|
k as MC_TABLE_TOTAL,
|
|
222
225
|
M7 as MC_TAB_ITEM,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
a47 as MC_TAG,
|
|
227
|
+
a48 as MC_TEXTAREA,
|
|
228
|
+
a49 as MC_TITLE,
|
|
229
|
+
a50 as MC_TITLE_TOOL_BAR,
|
|
230
|
+
a51 as MC_TOAST,
|
|
231
|
+
a52 as MC_TOOLTIP,
|
|
232
|
+
a53 as MC_UPLOAD,
|
|
230
233
|
b11 as MC_UPLOAD_DROPZONE,
|
|
231
234
|
E as McAlertMessage,
|
|
232
235
|
O as McButton,
|
|
@@ -239,9 +242,9 @@ export {
|
|
|
239
242
|
B as McCurrencyIcon,
|
|
240
243
|
G as McDatePicker,
|
|
241
244
|
K as McDivider,
|
|
242
|
-
|
|
245
|
+
H as McDrawer,
|
|
243
246
|
Xs as McFileList,
|
|
244
|
-
|
|
247
|
+
X as McFooter,
|
|
245
248
|
y as McForm,
|
|
246
249
|
v as McFormItem,
|
|
247
250
|
w as McIcon,
|
|
@@ -255,50 +258,51 @@ export {
|
|
|
255
258
|
os as McOtp,
|
|
256
259
|
ms as McOverlay,
|
|
257
260
|
rs as McPopper,
|
|
258
|
-
as as
|
|
259
|
-
ts as
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
es as
|
|
264
|
-
Ms as
|
|
265
|
-
Cs as
|
|
266
|
-
is as
|
|
267
|
-
fs as
|
|
268
|
-
Es as
|
|
261
|
+
as as McPopperPlus,
|
|
262
|
+
ts as McProgressBar,
|
|
263
|
+
ps as McProgressIndicator,
|
|
264
|
+
cs as McProgressIndicatorChildItem,
|
|
265
|
+
_s as McProgressIndicatorItem,
|
|
266
|
+
es as McRadio,
|
|
267
|
+
Ms as McRadioGroup,
|
|
268
|
+
Cs as McRemovableTag,
|
|
269
|
+
is as McReset,
|
|
270
|
+
fs as McRichtext,
|
|
271
|
+
Es as McSecondaryMenu,
|
|
272
|
+
js as McSelect,
|
|
269
273
|
Ts as McSelectGroup,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
Ls as McSelectGroupPlus,
|
|
275
|
+
xs as McSelectMultiOption,
|
|
276
|
+
Os as McSelectOption,
|
|
277
|
+
As as McSelectOptionPlus,
|
|
278
|
+
ls as McSelectPlus,
|
|
275
279
|
Is as McStatus,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
280
|
+
Ps as McStep,
|
|
281
|
+
us as McStepChildItemPlus,
|
|
282
|
+
Rs as McStepItemPlus,
|
|
279
283
|
Ss as McStepPlus,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
284
|
+
Ns as McSuccessIcon,
|
|
285
|
+
ns as McSwitch,
|
|
286
|
+
Us as McTab,
|
|
283
287
|
bs as McTabItem,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
ds as McTable,
|
|
289
|
+
gs as McTableColumnPlus,
|
|
290
|
+
Ds as McTablePlus,
|
|
291
|
+
Bs as McTag,
|
|
292
|
+
Gs as McTextarea,
|
|
293
|
+
Ys as McTitle,
|
|
294
|
+
Ks as McTitleToolBar,
|
|
295
|
+
hs as McToast,
|
|
296
|
+
Fs as McTooltip,
|
|
297
|
+
Hs as McUpload,
|
|
294
298
|
S2 as SELECT_GROUP_INJECTION_KEY,
|
|
295
299
|
S as SELECT_INJECTION_KEY,
|
|
296
300
|
T as TOOL_ICON,
|
|
297
301
|
W as WILDCARD,
|
|
298
302
|
Y as YEAR_SPAN,
|
|
299
|
-
|
|
303
|
+
Ws as default,
|
|
300
304
|
t as toast,
|
|
301
305
|
u as usePagination,
|
|
302
|
-
|
|
306
|
+
a45 as useTableScroll,
|
|
303
307
|
b9 as useTableSort
|
|
304
308
|
};
|
|
@@ -4,7 +4,7 @@ import { useResizeObserver as v } from "@mc-plus/hooks";
|
|
|
4
4
|
import { M as k } from "./mc-icon-CnpccbFi.js";
|
|
5
5
|
import { M as y } from "./mc-divider-BkBo-IT9.js";
|
|
6
6
|
import { M as b } from "./mc-progress-bar-COF1YGM0.js";
|
|
7
|
-
import { u as g, g as C, f as w } from "./mc-upload-
|
|
7
|
+
import { u as g, g as C, f as w } from "./mc-upload-BKguo5Ul.js";
|
|
8
8
|
const _ = "mc-file-list", h = { class: "mc-file-list-item-content" }, M = { class: "mc-file-list-item-file mc-file-list-item-info" }, j = ["onClick"], B = { class: "mc-file-list-item-file-name-text" }, V = { class: "mc-file-list-item-file-desc" }, x = { 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 = { class: "mc-file-list-item-info" }, I = { class: "mc-file-list-item-label" }, L = { class: "mc-file-list-item-value" }, R = { class: "mc-file-list-item-info" }, $ = { class: "mc-file-list-item-label" }, q = { class: "mc-file-list-item-value" }, A = { class: "mc-file-list-item-actions" }, E = { class: "mc-file-list-item-compact-content" }, F = { class: "mc-file-list-item-info" }, G = { class: "mc-file-list-item-label" }, H = { class: "mc-file-list-item-value" }, J = { class: "mc-file-list-item-info" }, K = { class: "mc-file-list-item-label" }, N = { class: "mc-file-list-item-value" }, O = l(e(i({ 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 i2 = e2, _2 = l2, { langMap: O2 } = g(), P = s(false), Q = s();
|
|
10
10
|
v(Q, ({ width: e3 }) => {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { _ as p, u as s } from "./utils-dWwt4JKv.js";
|
|
2
|
+
import { defineComponent as e, createElementBlock as o, openBlock as a } from "vue";
|
|
3
|
+
const m = "mc-popper-plus", r = s(p(e({ name: m, __name: "mc-popper-plus", setup: (p2) => (p3, s2) => (a(), o("div", null, "Mc Popper Plus")) }), [["__scopeId", "data-v-195d458e"]]));
|
|
4
|
+
export {
|
|
5
|
+
r as M,
|
|
6
|
+
m as a
|
|
7
|
+
};
|
|
@@ -9,11 +9,11 @@ import { M as L } from "./mc-success-icon-BgQB9Rmp.js";
|
|
|
9
9
|
import { useProp as R } from "@mc-plus/hooks";
|
|
10
10
|
import { M as j } from "./mc-progress-indicator-item-BdtMbC7A.js";
|
|
11
11
|
import { M as V } from "./mc-progress-indicator-child-item-445fslo3.js";
|
|
12
|
-
const
|
|
12
|
+
const H = "mc-progress-indicator", z = "mc-progress-indicator-step", A = "mc-progress-indicator-step-num", E = { key: 0, class: "mc-progress-indicator-step-num-icon" }, D = { key: 1 }, N = e(n({ name: A, __name: "mc-progress-indicator-step-num", props: { num: {}, status: { default: "default" }, showSuccessIcon: { type: Boolean, default: true }, isChild: { type: Boolean, default: false }, icon: {} }, setup(e2) {
|
|
13
13
|
const t2 = e2, s2 = l(() => t2.showSuccessIcon && "success" === t2.status && !t2.isChild);
|
|
14
|
-
return (t3, o2) => s2.value ? (r(), i(c(L), { key: 0 })) : (r(), a("div", { key: 1, class: p(["mc-progress-indicator-step-num", [`mc-progress-indicator-step-num-${e2.status}`, { "mc-progress-indicator-step-num-child": e2.isChild }]]) }, [e2.isChild ? d("", true) : (r(), a("div", E, [e2.icon ? (r(), i(c(M), { key: 0, name: e2.icon }, null, 8, ["name"])) : (r(), a("span",
|
|
14
|
+
return (t3, o2) => s2.value ? (r(), i(c(L), { key: 0 })) : (r(), a("div", { key: 1, class: p(["mc-progress-indicator-step-num", [`mc-progress-indicator-step-num-${e2.status}`, { "mc-progress-indicator-step-num-child": e2.isChild }]]) }, [e2.isChild ? d("", true) : (r(), a("div", E, [e2.icon ? (r(), i(c(M), { key: 0, name: e2.icon }, null, 8, ["name"])) : (r(), a("span", D, u(e2.num), 1))]))], 2));
|
|
15
15
|
} }), [["__scopeId", "data-v-2ba90f0e"]]);
|
|
16
|
-
class
|
|
16
|
+
class P {
|
|
17
17
|
constructor(e2, o2) {
|
|
18
18
|
__publicField(this, "id");
|
|
19
19
|
__publicField(this, "stepKey");
|
|
@@ -79,7 +79,7 @@ class q {
|
|
|
79
79
|
this.defaultSlot = void 0, this.contentSlot = void 0, this.contentTitleSlot = void 0, this.contentToolbarSlot = void 0, this.contentFooterSlot = void 0, this.contentFooterLeftSlot = void 0, this.contentFooterRightSlot = void 0;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const q = (e2, t2) => 0 === e2 ? "first" : e2 === t2 - 1 ? "last" : "middle", G = (e2, t2, s2 = "manual") => {
|
|
83
83
|
const o2 = c(t2);
|
|
84
84
|
if (B(e2 == null ? void 0 : e2.success) && e2.success) return "success";
|
|
85
85
|
if ((e2 == null ? void 0 : e2.parentStep) && "success" === G(e2.parentStep, t2)) return "success";
|
|
@@ -97,10 +97,10 @@ const D = (e2, t2) => 0 === e2 ? "first" : e2 === t2 - 1 ? "last" : "middle", G
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return e2.index <= o2.index ? "active" : "default";
|
|
100
|
-
}, J = (e2, t2) => B(e2 == null ? void 0 : e2.showContent) ? e2 == null ? void 0 : e2.showContent : !T(e2 == null ? void 0 : e2.stepKey) && e2.stepKey === (t2 == null ? void 0 : t2.stepKey), O = ["id"], Q = { key: 0, class: "mc-progress-indicator-step-container" }, U = { class: "mc-progress-indicator-step-content" }, W = { key: 0, class: "mc-progress-indicator-step-content-header" }, X = { key: 0, class: "mc-progress-indicator-step-content-footer-container" }, Y = { class: "mc-progress-indicator-step-content-footer" }, Z = { class: "mc-progress-indicator-step-content-footer-left-container" }, ee = { key: 0, class: "mc-progress-indicator-step-content-footer-left" }, te = { class: "mc-progress-indicator-step-content-footer-right-container" }, se = { key: 0, class: "mc-progress-indicator-step-content-footer-right" }, oe = e(n({ name:
|
|
100
|
+
}, J = (e2, t2) => B(e2 == null ? void 0 : e2.showContent) ? e2 == null ? void 0 : e2.showContent : !T(e2 == null ? void 0 : e2.stepKey) && e2.stepKey === (t2 == null ? void 0 : t2.stepKey), O = ["id"], Q = { key: 0, class: "mc-progress-indicator-step-container" }, U = { class: "mc-progress-indicator-step-content" }, W = { key: 0, class: "mc-progress-indicator-step-content-header" }, X = { key: 0, class: "mc-progress-indicator-step-content-footer-container" }, Y = { class: "mc-progress-indicator-step-content-footer" }, Z = { class: "mc-progress-indicator-step-content-footer-left-container" }, ee = { key: 0, class: "mc-progress-indicator-step-content-footer-left" }, te = { class: "mc-progress-indicator-step-content-footer-right-container" }, se = { key: 0, class: "mc-progress-indicator-step-content-footer-right" }, oe = e(n({ name: z, __name: "mc-progress-indicator-step", props: { successBehavior: { default: "auto" }, currentStep: {}, step: {}, position: { default: "middle" }, showSuccessIcon: { type: Boolean, default: true } }, setup(e2) {
|
|
101
101
|
const t2 = e2, s2 = l(() => J(t2.step, c(t2.currentStep))), o2 = l(() => J(t2.step.nextStep, c(t2.currentStep))), n2 = l(() => !!t2.step.isChild), i2 = l(() => G(t2.step, t2.currentStep, t2.successBehavior)), v2 = l(() => G(t2.step.previousStep, t2.currentStep, t2.successBehavior)), y2 = l(() => _(t2.step.parentIndex) ? t2.step.parentIndex + 1 : 0);
|
|
102
|
-
return (t3, l2) => (r(), a("div", { id: e2.step.id, class: "mc-progress-indicator-step" }, [h("div", { class: p(["mc-progress-indicator-step-item", { "mc-progress-indicator-step-item-child": n2.value }]) }, [h("i", { class: p(["mc-progress-indicator-step-line mc-progress-indicator-step-line-up", [`mc-progress-indicator-step-line-${v2.value}`, `mc-progress-indicator-step-line-${e2.position}`]]) }, null, 2), m(t3.$slots, "icon", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, () => [S(
|
|
103
|
-
} }), [["__scopeId", "data-v-6ce474e9"]]), ne = { class: "mc-grogress-indicator" }, le = o(e(n({ name:
|
|
102
|
+
return (t3, l2) => (r(), a("div", { id: e2.step.id, class: "mc-progress-indicator-step" }, [h("div", { class: p(["mc-progress-indicator-step-item", { "mc-progress-indicator-step-item-child": n2.value }]) }, [h("i", { class: p(["mc-progress-indicator-step-line mc-progress-indicator-step-line-up", [`mc-progress-indicator-step-line-${v2.value}`, `mc-progress-indicator-step-line-${e2.position}`]]) }, null, 2), m(t3.$slots, "icon", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, () => [S(N, { num: y2.value, icon: e2.step.icon, status: i2.value, "show-success-icon": e2.showSuccessIcon, "is-child": n2.value }, null, 8, ["num", "icon", "status", "show-success-icon", "is-child"])], true), h("i", { class: p(["mc-progress-indicator-step-line mc-progress-indicator-step-line-down", [`mc-progress-indicator-step-line-${i2.value}`, `mc-progress-indicator-step-line-${e2.position}`]]) }, null, 2)], 2), s2.value ? (r(), a("div", Q, [m(t3.$slots, "default", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, () => [h("div", U, [e2.step.hiddenHeader ? d("", true) : (r(), a("div", W, [m(t3.$slots, "content-title", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, () => [h("span", { class: p(["mc-progress-indicator-step-content-title", [`mc-progress-indicator-step-content-title-${i2.value}`]]) }, u(e2.step.label), 3)], true), m(t3.$slots, "content-toolbar", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, void 0, true)])), m(t3.$slots, "content", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, void 0, true)]), e2.step.hiddenFooter ? d("", true) : (r(), a("div", X, [m(t3.$slots, "content-footer", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, () => [h("div", Y, [h("div", Z, [e2.step.hiddenFooterLeft ? d("", true) : (r(), a("div", ee, [m(t3.$slots, "content-footer-left", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, void 0, true)]))]), h("div", te, [e2.step.hiddenFooterRight ? d("", true) : (r(), a("div", se, [m(t3.$slots, "content-footer-right", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, void 0, true)]))])])], true)]))], true)])) : (r(), a("div", { key: 1, class: p(["mc-progress-indicator-step-label", [`mc-progress-indicator-step-label-${i2.value}`, { "mc-progress-indicator-step-label-child": n2.value, "mc-progress-indicator-step-label-need-padding-bottom": o2.value }]]) }, [m(t3.$slots, "label", { stepKey: e2.step.stepKey, label: e2.step.label, status: i2.value }, () => [f(u(e2.step.label), 1)], true)], 2))], 8, O));
|
|
103
|
+
} }), [["__scopeId", "data-v-6ce474e9"]]), ne = { class: "mc-grogress-indicator" }, le = o(e(n({ name: H, __name: "mc-progress-indicator", props: { modelValue: {}, successSteps: {}, successBehavior: { default: "auto" }, previousBehavior: { default: "last-child" }, showSuccessIcon: { type: Boolean, default: true }, scrollToStep: { type: Boolean, default: false } }, emits: ["update:modelValue", "update:successSteps", "change", "click:step"], setup(e2, { expose: t2, emit: s2 }) {
|
|
104
104
|
const o2 = e2, n2 = s2, { stepItems: p2, currentStep: d2 } = (() => {
|
|
105
105
|
const e3 = v([]), t3 = v(/* @__PURE__ */ new Map()), s3 = y();
|
|
106
106
|
b(() => {
|
|
@@ -113,10 +113,10 @@ const D = (e2, t2) => 0 === e2 ? "first" : e2 === t2 - 1 ? "last" : "middle", G
|
|
|
113
113
|
var _a2, _b, _c;
|
|
114
114
|
const r2 = (_a2 = (e6 == null ? void 0 : e6.type) || {}) == null ? void 0 : _a2.name;
|
|
115
115
|
if (r2 === j) {
|
|
116
|
-
const a3 = I(e6.children) || w(e6.children) || !$((_b = e6.children) == null ? void 0 : _b.default) ? e6.children : (_c = e6.children) == null ? void 0 : _c.default(), r3 = e6.props, c2 = e6.children, p3 = new
|
|
116
|
+
const a3 = I(e6.children) || w(e6.children) || !$((_b = e6.children) == null ? void 0 : _b.default) ? e6.children : (_c = e6.children) == null ? void 0 : _c.default(), r3 = e6.props, c2 = e6.children, p3 = new P(r3, c2);
|
|
117
117
|
p3.parentIndex = n5++, p3.index = l2++, o5 && (p3.previousStep = o5, o5.nextStep = p3), o5 = p3, t4.push(p3), s4.set(p3.stepKey, p3), i2(a3, p3);
|
|
118
118
|
} else if (r2 === V) {
|
|
119
|
-
const n6 = e6.props, i3 = e6.children, r3 = new
|
|
119
|
+
const n6 = e6.props, i3 = e6.children, r3 = new P(n6, i3);
|
|
120
120
|
r3.index = l2++, a2 && (a2.clearContent(), a2.appendChildStep(r3), r3.parentIndex = a2.parentIndex, r3.parentStep = a2, r3.childIndex = a2.getChildrenSteps().length), o5 && (r3.previousStep = o5, o5.nextStep = r3), s4.set(r3.stepKey, r3), t4.push(r3), o5 = r3;
|
|
121
121
|
} else w(e6.children) && i2(e6.children, a2);
|
|
122
122
|
});
|
|
@@ -146,11 +146,11 @@ const D = (e2, t2) => 0 === e2 ? "first" : e2 === t2 - 1 ? "last" : "middle", G
|
|
|
146
146
|
const t3 = e3.previousStep;
|
|
147
147
|
"last-child" === o2.previousBehavior ? (u2(t3 == null ? void 0 : t3.stepKey), h2(t3)) : (t3 == null ? void 0 : t3.isChild) ? (u2((_e = (_d = t3.parentStep) == null ? void 0 : _d.getFirstChildStep()) == null ? void 0 : _e.stepKey), h2(t3.parentStep)) : (u2(t3 == null ? void 0 : t3.stepKey), h2(t3));
|
|
148
148
|
} else u2(e3 == null ? void 0 : e3.stepKey), (e3 == null ? void 0 : e3.isChild) && ((_f = e3.parentStep) == null ? void 0 : _f.getFirstChildStep()) === e3 ? h2(e3.parentStep) : h2(e3);
|
|
149
|
-
} }), (t3, s3) => (r(), a("div", ne, [(r(true), a(g, null, K(c(p2), (t4, s4) => (r(), i(oe, { key: t4.stepKey, position: c(
|
|
149
|
+
} }), (t3, s3) => (r(), a("div", ne, [(r(true), a(g, null, K(c(p2), (t4, s4) => (r(), i(oe, { key: t4.stepKey, position: c(q)(s4, c(p2).length), step: t4, "current-step": c(d2), "success-behavior": e2.successBehavior, "show-success-icon": e2.showSuccessIcon }, C({ _: 2 }, [t4.labelSlot ? { name: "label", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.labelSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "0" } : void 0, t4.iconSlot ? { name: "icon", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.iconSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "1" } : void 0, t4.defaultSlot ? { name: "default", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.defaultSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "2" } : void 0, t4.contentTitleSlot ? { name: "content-title", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.contentTitleSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "3" } : void 0, t4.contentToolbarSlot ? { name: "content-toolbar", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.contentToolbarSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "4" } : void 0, t4.contentSlot ? { name: "content", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.contentSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "5" } : void 0, t4.contentFooterSlot ? { name: "content-footer", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.contentFooterSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "6" } : void 0, t4.contentFooterLeftSlot ? { name: "content-footer-left", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.contentFooterLeftSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "7" } : void 0, t4.contentFooterRightSlot ? { name: "content-footer-right", fn: F(({ stepKey: e3, label: s5, status: o3 }) => [(r(), i(x(t4.contentFooterRightSlot), { stepKey: e3, label: s5, status: o3 }, null, 8, ["stepKey", "label", "status"]))]), key: "8" } : void 0]), 1032, ["position", "step", "current-step", "success-behavior", "show-success-icon"]))), 128))]));
|
|
150
150
|
} }), [["__scopeId", "data-v-35360104"]]));
|
|
151
151
|
export {
|
|
152
152
|
le as M,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
H as a,
|
|
154
|
+
z as b,
|
|
155
|
+
A as c
|
|
156
156
|
};
|
|
@@ -4,17 +4,17 @@ import { useFocus as y } from "@mc-plus/hooks";
|
|
|
4
4
|
import { M as _ } from "./mc-tooltip-B4YnwWwZ.js";
|
|
5
5
|
import { M as B } from "./mc-radio-group-D5K3rD2e.js";
|
|
6
6
|
import { u as g } from "./mc-form-ClGYeMfQ.js";
|
|
7
|
-
const j = "mc-radio", w = ["disabled", "onKeypress"],
|
|
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;
|
|
10
10
|
return ((_a = r2 == null ? void 0 : r2.modelValue) == null ? void 0 : _a.value) === a2.value;
|
|
11
|
-
}), { formDisabled: z, validateStyle: C, validateByTrigger:
|
|
11
|
+
}), { formDisabled: z, validateStyle: C, validateByTrigger: I } = g({ externalDisabled: s(() => {
|
|
12
12
|
var _a;
|
|
13
13
|
return !!((_a = r2 == null ? void 0 : r2.disabled) == null ? void 0 : _a.value);
|
|
14
|
-
}) }),
|
|
15
|
-
z.value || (r2 == null ? void 0 : r2.handleSelect(a2.value), await k(),
|
|
14
|
+
}) }), N = async () => {
|
|
15
|
+
z.value || (r2 == null ? void 0 : r2.handleSelect(a2.value), await k(), I("input"));
|
|
16
16
|
};
|
|
17
|
-
return (a3, r3) => (d(), i("div", { ref_key: "wrapperRef", ref: S2, class: c(["mc-radio", { "mc-radio-has-remark": !!e2.remark }]) }, [t("label", { class: c(["mc-radio-label", { "mc-radio-checked": q.value, "mc-radio-disabled": p(z), "mc-radio-focused": p(x), [p(C)]: p(C) }]), onClick: m(
|
|
17
|
+
return (a3, r3) => (d(), i("div", { ref_key: "wrapperRef", ref: S2, class: c(["mc-radio", { "mc-radio-has-remark": !!e2.remark }]) }, [t("label", { class: c(["mc-radio-label", { "mc-radio-checked": q.value, "mc-radio-disabled": p(z), "mc-radio-focused": p(x), [p(C)]: p(C) }]), onClick: m(N, ["prevent"]) }, [t("input", { ref_key: "inputRef", ref: j2, type: "radio", class: "mc-radio-input", disabled: p(z), onFocus: r3[0] || (r3[0] = (...e3) => p(D) && p(D)(...e3)), onBlur: r3[1] || (r3[1] = (...e3) => p(K) && p(K)(...e3)), onKeypress: n(m(N, ["prevent", "stop"]), ["enter"]) }, null, 40, w), t("div", F, [r3[2] || (r3[2] = t("span", { class: "mc-radio-circle" }, null, -1)), t("div", $, [f(a3.$slots, "default", {}, () => [v(b(e2.label), 1)], true)]), e2.help || a3.$slots.help ? (d(), i("div", M, [f(a3.$slots, "help", {}, () => [h(p(_), { content: e2.help, "icon-size": 24 }, null, 8, ["content"])], true)])) : u("", true)])], 2), t("div", R, [f(a3.$slots, "remark", {}, () => [v(b(e2.remark), 1)], true)])], 2));
|
|
18
18
|
} }), [["__scopeId", "data-v-0305e8f8"]]));
|
|
19
19
|
export {
|
|
20
20
|
S as M,
|
|
@@ -1,8 +1,8 @@
|
|
|
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-CtXzc-qi.js";
|
|
5
|
+
import { M as T } from "./mc-select-option-plus-BhrMU8QL.js";
|
|
6
6
|
import { a as k, M as I } from "./mc-icon-plus-CHgt2j0R.js";
|
|
7
7
|
import { M as R } from "./mc-tooltip-B4YnwWwZ.js";
|
|
8
8
|
import { M as b } from "./mc-input-DNxN4R08.js";
|
|
@@ -16,7 +16,7 @@ const D = E(e({ name: S, __name: "mc-richtext-tool", props: { icon: {}, isActive
|
|
|
16
16
|
return l2 = e2.icon, void c2("click", l2);
|
|
17
17
|
var l2;
|
|
18
18
|
}) }, null, 8, ["name"]))], true)], 2));
|
|
19
|
-
} }), [["__scopeId", "data-v-ca9eaab3"]]), y = h.create({ name: "custom-font", addAttributes: () => ({ class: { default: null, parseHTML: (e2) => e2.getAttribute("class"), renderHTML: (e2) => e2.class ? { class: e2.class } : {} } }), parseHTML: () => [{ tag: "span", getAttrs: (e2) => !!e2.hasAttribute("class") && null }], renderHTML: ({ HTMLAttributes: e2 }) => ["span", e2, 0] }), j = { class: "mc-richtext-toolbar" },
|
|
19
|
+
} }), [["__scopeId", "data-v-ca9eaab3"]]), y = h.create({ name: "custom-font", addAttributes: () => ({ class: { default: null, parseHTML: (e2) => e2.getAttribute("class"), renderHTML: (e2) => e2.class ? { class: e2.class } : {} } }), parseHTML: () => [{ tag: "span", getAttrs: (e2) => !!e2.hasAttribute("class") && null }], renderHTML: ({ HTMLAttributes: e2 }) => ["span", e2, 0] }), j = { class: "mc-richtext-toolbar" }, w = { class: "mc-richtext-font-selector" }, H = { class: "mc-richtext-tool-group" }, B = { class: "mc-richtext-tool-group" }, U = { class: "mc-richtext-tool-group" }, K = { class: "mc-richtext-attach-link" }, G = N(E(e({ name: C, __name: "mc-richtext", props: { modelValue: { default: "" }, width: { default: "100%" }, height: {} }, emits: ["update:modelValue"], setup(e2, { expose: o2, emit: i2 }) {
|
|
20
20
|
const h2 = e2, k2 = i2, E2 = s(), { width: N2, height: C2 } = x(), S2 = f({ content: `${h2.modelValue}`, extensions: [A, g.configure({ inline: true, allowBase64: true }), y], onUpdate: ({ editor: e3 }) => {
|
|
21
21
|
k2("update:modelValue", e3.getHTML());
|
|
22
22
|
} });
|
|
@@ -24,7 +24,7 @@ const D = E(e({ name: S, __name: "mc-richtext-tool", props: { icon: {}, isActive
|
|
|
24
24
|
const t2 = S2.value, l2 = t2 == null ? void 0 : t2.getHTML();
|
|
25
25
|
t2 && l2 !== e3 && t2.commands.setContent(e3);
|
|
26
26
|
});
|
|
27
|
-
const
|
|
27
|
+
const G2 = s(F.NORMAL), $ = (e3) => {
|
|
28
28
|
e3 === F.NORMAL ? q() : e3 === F.SMALL ? z() : e3 === F.FOOTNOTE ? J() : e3 === F.BOLD ? P() : e3 === F.ITALIC ? W() : e3 === F.LIST ? Q() : e3 === F.ORDERED_LIST ? X() : e3 === F.LINK ? te() : e3 === F.IMAGE ? le() : e3 === F.CLEAR && oe();
|
|
29
29
|
}, q = () => {
|
|
30
30
|
var _a;
|
|
@@ -52,7 +52,7 @@ const D = E(e({ name: S, __name: "mc-richtext-tool", props: { icon: {}, isActive
|
|
|
52
52
|
const e3 = S2.value;
|
|
53
53
|
if (!e3) return;
|
|
54
54
|
const t2 = e3.getAttributes("custom-font").class;
|
|
55
|
-
t2 === V.SMALL ?
|
|
55
|
+
t2 === V.SMALL ? G2.value = F.SMALL : t2 === V.FOOTNOTE ? G2.value = F.FOOTNOTE : G2.value = F.NORMAL;
|
|
56
56
|
});
|
|
57
57
|
const Y = s(), Z = s(""), ee = () => {
|
|
58
58
|
var _a;
|
|
@@ -85,12 +85,12 @@ const D = E(e({ name: S, __name: "mc-richtext-tool", props: { icon: {}, isActive
|
|
|
85
85
|
return (_a = S2.value) == null ? void 0 : _a.getText();
|
|
86
86
|
} }), (e3, o3) => {
|
|
87
87
|
var _a, _b, _c, _d, _e, _f;
|
|
88
|
-
return l(), t("div", { class: "mc-richtext", style: r({ width: m(N2), height: m(C2) }) }, [u("section", j, [u("div",
|
|
88
|
+
return l(), t("div", { class: "mc-richtext", style: r({ width: m(N2), height: m(C2) }) }, [u("section", j, [u("div", w, [d(m(O), { modelValue: G2.value, "onUpdate:modelValue": o3[0] || (o3[0] = (e4) => G2.value = e4), width: 148, height: 32, "disable-validation": "", onChange: o3[1] || (o3[1] = (e4) => $(e4)) }, { "selected-content": v(({ selectedOptionLabel: e4 }) => [u("span", { class: a(["mc-richtext-font-selected", `mc-richtext-font-${G2.value}`]) }, p(e4), 3)]), default: v(() => [d(m(T), { value: m(F).NORMAL, label: "Normal text" }, { default: v(() => [...o3[4] || (o3[4] = [u("span", { class: "mc-richtext-font-normal" }, "Normal text", -1)])]), _: 1 }, 8, ["value"]), d(m(T), { value: m(F).SMALL, label: "Small text" }, { default: v(() => [...o3[5] || (o3[5] = [u("span", { class: "mc-richtext-font-small" }, "Small text", -1)])]), _: 1 }, 8, ["value"]), d(m(T), { value: m(F).FOOTNOTE, label: "Footnote" }, { default: v(() => [...o3[6] || (o3[6] = [u("span", { class: "mc-richtext-font-footnote" }, "Footnote", -1)])]), _: 1 }, 8, ["value"])]), _: 1 }, 8, ["modelValue"])]), u("div", H, [d(D, { icon: m(F).BOLD, "is-active": !!((_a = m(S2)) == null ? void 0 : _a.isActive("bold")), onClick: $ }, null, 8, ["icon", "is-active"]), d(D, { icon: m(F).ITALIC, "is-active": !!((_b = m(S2)) == null ? void 0 : _b.isActive("italic")), onClick: $ }, null, 8, ["icon", "is-active"])]), u("div", B, [d(D, { icon: m(F).LIST, "is-active": !!((_c = m(S2)) == null ? void 0 : _c.isActive("bulletList")), onClick: $ }, null, 8, ["icon", "is-active"]), d(D, { icon: m(F).ORDERED_LIST, "is-active": !!((_d = m(S2)) == null ? void 0 : _d.isActive("orderedList")), onClick: $ }, null, 8, ["icon", "is-active"])]), u("div", U, [d(D, { icon: m(F).LINK, "is-active": !!((_e = m(S2)) == null ? void 0 : _e.isActive("link")) }, { default: v(() => [d(m(R), { placement: "bottom-start", trigger: "click", ref_key: "linkTooltipRef", ref: Y }, { content: v(() => [u("div", K, [d(m(b), { modelValue: Z.value, "onUpdate:modelValue": o3[2] || (o3[2] = (e4) => Z.value = e4), placeholder: "Please enter the URL" }, null, 8, ["modelValue"]), d(m(_), { width: "180px", onClick: o3[3] || (o3[3] = (e4) => $("link")) }, { default: v(() => [...o3[7] || (o3[7] = [L(" Attach ", -1)])]), _: 1 })])]), default: v(() => [d(m(I), { name: "link", cursor: "pointer", class: "mc-richtext-tool-icon-link", onClick: ee })]), _: 1 }, 512)]), _: 1 }, 8, ["icon", "is-active"]), d(D, { icon: m(F).IMAGE, "is-active": !!((_f = m(S2)) == null ? void 0 : _f.isActive("image")), onClick: $ }, null, 8, ["icon", "is-active"])]), d(D, { icon: m(F).CLEAR, onClick: $ }, null, 8, ["icon"])]), d(m(M), { editor: m(S2), class: "mc-richtext-content" }, null, 8, ["editor"]), u("input", { ref_key: "fileInputRef", ref: E2, type: "file", accept: "image/*", style: { display: "none" }, "aria-hidden": "true", onChange: ae }, null, 544)], 4);
|
|
89
89
|
};
|
|
90
90
|
} }), [["__scopeId", "data-v-87414743"]]));
|
|
91
91
|
export {
|
|
92
92
|
V as F,
|
|
93
|
-
|
|
93
|
+
G as M,
|
|
94
94
|
F as T,
|
|
95
95
|
C as a,
|
|
96
96
|
S as b
|
|
@@ -5,9 +5,9 @@ import { useFocus as z, useClickOutside as D } from "@mc-plus/hooks";
|
|
|
5
5
|
import { M as F } from "./mc-icon-CnpccbFi.js";
|
|
6
6
|
import { M as $ } from "./mc-button-CcrftE8N.js";
|
|
7
7
|
import { M as I } from "./mc-tag-DMybZ4uk.js";
|
|
8
|
-
import { M as
|
|
9
|
-
import { M as
|
|
10
|
-
import { M as
|
|
8
|
+
import { M as N } from "./mc-checkbox-AlY2j_HW.js";
|
|
9
|
+
import { M as T } from "./mc-title-BPKi54sK.js";
|
|
10
|
+
import { M as U } from "./mc-footer-DPUGq_1g.js";
|
|
11
11
|
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" }, K = { key: 0, class: "mc-select-no-data" }, L = 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 }) {
|
|
12
12
|
const a2 = e2, W2 = l2, L2 = t(), Q = t(), X = t(), Y = s(() => a2.multiple), Z = (e3) => Y.value && Array.isArray(e3), ee = t([]), le = s(() => j(Me.value) ? ee.value : ee.value.filter((e3) => B(A(e3.label ?? e3.value)).includes(B(Me.value)))), { wrapperRef: ae, isFocused: te, handleFocus: se, handleBlur: ue } = z(L2, {}), oe = s(() => 0 === le.value.length), ce = s(() => Y.value && a2.allowSelectAll && !oe.value), de = s(() => Y.value && a2.allowReset && !oe.value), ve = t(false), me = () => {
|
|
13
13
|
ve.value = !ve.value;
|
|
@@ -60,7 +60,7 @@ const P = Symbol("mc-select-context"), W = "mc-select", q = { key: 0, class: "mc
|
|
|
60
60
|
const l5 = [...a2.modelValue];
|
|
61
61
|
l5.splice(l5.indexOf(e4.value), 1), W2("update:modelValue", l5);
|
|
62
62
|
}
|
|
63
|
-
})(l4) }, { default: g(() => [b(w(l4.label), 1)]), _: 2 }, 1032, ["emphasis", "disabled", "onDelete"]))), 128))], 512)) : (d(), h(f(pe.value._vnode), { key: pe.value.value }))])) : p("", true), r("div", { class: m(["mc-select-input-wrapper", { "mc-select-input-wrapper-search": je.value || xe.value }]) }, [_(r("input", { class: m(["mc-select-input", { "mc-select-input-readonly": !e2.search }]), ref_key: "inputRef", ref: L2, type: "text", placeholder: xe.value ? e2.placeholder : "", "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => Me.value = e3), onInput: Re, onFocus: t2[1] || (t2[1] = (...e3) => n(se) && n(se)(...e3)), onBlur: t2[2] || (t2[2] = (...e3) => n(ue) && n(ue)(...e3)), readonly: !e2.search, disabled: e2.disabled }, null, 42, E), [[k, Me.value]])], 2), be.value ? (d(), c("div", { key: 1, class: m(["mc-select__status", [Ve.value ? "mc-select__status--error" : "mc-select__status--success"]]) }, [i(n(F), { name: Ve.value ? "Reject_02" : "Accept_02", size: 24 }, null, 8, ["name"])], 2)) : p("", true), r("div", { class: m(["mc-select-icon-wrapper", { "mc-select-icon-wrapper-expand": ve.value && !e2.disabled }]) }, [i(n(F), { name: "Down-Chevron", class: "mc-select-icon" })], 2)], 512), i(x, { name: "mc-select-dropdown-transition" }, { default: g(() => [_(r("div", { class: "mc-select-dropdown-wrapper", style: v({ paddingTop: ce.value ? "40px" : "0", paddingBottom: de.value ? "48px" : "0" }) }, [ce.value ? (d(), h(n(
|
|
63
|
+
})(l4) }, { default: g(() => [b(w(l4.label), 1)]), _: 2 }, 1032, ["emphasis", "disabled", "onDelete"]))), 128))], 512)) : (d(), h(f(pe.value._vnode), { key: pe.value.value }))])) : p("", true), r("div", { class: m(["mc-select-input-wrapper", { "mc-select-input-wrapper-search": je.value || xe.value }]) }, [_(r("input", { class: m(["mc-select-input", { "mc-select-input-readonly": !e2.search }]), ref_key: "inputRef", ref: L2, type: "text", placeholder: xe.value ? e2.placeholder : "", "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => Me.value = e3), onInput: Re, onFocus: t2[1] || (t2[1] = (...e3) => n(se) && n(se)(...e3)), onBlur: t2[2] || (t2[2] = (...e3) => n(ue) && n(ue)(...e3)), readonly: !e2.search, disabled: e2.disabled }, null, 42, E), [[k, Me.value]])], 2), be.value ? (d(), c("div", { key: 1, class: m(["mc-select__status", [Ve.value ? "mc-select__status--error" : "mc-select__status--success"]]) }, [i(n(F), { name: Ve.value ? "Reject_02" : "Accept_02", size: 24 }, null, 8, ["name"])], 2)) : p("", true), r("div", { class: m(["mc-select-icon-wrapper", { "mc-select-icon-wrapper-expand": ve.value && !e2.disabled }]) }, [i(n(F), { name: "Down-Chevron", class: "mc-select-icon" })], 2)], 512), i(x, { name: "mc-select-dropdown-transition" }, { default: g(() => [_(r("div", { class: "mc-select-dropdown-wrapper", style: v({ paddingTop: ce.value ? "40px" : "0", paddingBottom: de.value ? "48px" : "0" }) }, [ce.value ? (d(), h(n(T), { key: 0, class: "mc-select-dropdown-header", "show-tool-bar": false, height: "40px" }, { default: g(() => [r("div", G, [i(n(N), { modelValue: Se.value, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => Se.value = e3), content: "Select All", "form-validate": false, partial: Ce.value, onChange: Oe }, null, 8, ["modelValue", "partial"])])]), _: 1 })) : p("", true), r("div", H, [r("div", J, [M(l3.$slots, "default", {}, void 0, true), oe.value ? (d(), c("div", K, [M(l3.$slots, "empty", {}, () => [t2[6] || (t2[6] = b("No data", -1))], true)])) : p("", true)])]), de.value ? (d(), h(n(U), { key: 1, class: "mc-select-dropdown-footer" }, { "right-button-group": g(() => [i(n($), { type: "link", size: "small", onClick: _e }, { default: g(() => [...t2[7] || (t2[7] = [b(" Reset ", -1)])]), _: 1 }), i(n($), { type: "plain", size: "small", onClick: ke }, { default: g(() => [...t2[8] || (t2[8] = [b(" Apply ", -1)])]), _: 1 })]), _: 1 })) : p("", true)], 4), [[R, ve.value && !e2.disabled]])]), _: 3 })], 38));
|
|
64
64
|
} }), [["__scopeId", "data-v-de0906a4"]]));
|
|
65
65
|
export {
|
|
66
66
|
L as M,
|