mc-plus 1.0.21 → 1.0.23
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/{hooks-D0n33nb8.js → hooks-CaHRdMVi.js} +12 -12
- package/dist/es/index.js +65 -60
- package/dist/es/mc-alert-Dc8UZwbs.js +12 -0
- package/dist/es/{mc-button-C3M_uIUL.js → mc-button-BzTZwUJY.js} +8 -8
- package/dist/es/{mc-checkbox-1v_7vBVm.js → mc-checkbox-XTu4G8Ql.js} +1 -1
- package/dist/es/{mc-collapse-D4A3D1A7.js → mc-collapse-C68KTHMo.js} +2 -2
- package/dist/es/{mc-divider-DnJ_rBx3.js → mc-divider-CetkEEWs.js} +1 -1
- package/dist/es/{mc-drawer-Dle-4Mf2.js → mc-drawer-B0OqoqTb.js} +5 -5
- package/dist/es/{mc-footer-CnMNnkA8.js → mc-footer-DQYguol3.js} +1 -1
- package/dist/es/mc-form-GD4rKC6G.js +107 -0
- package/dist/es/{mc-icon-oTgV9pMA.js → mc-icon-BCR0XCJl.js} +1 -1
- package/dist/es/{mc-input-DtvjCuAH.js → mc-input-CgkXcWFb.js} +5 -5
- package/dist/es/mc-lightbox-D7RM1TeY.js +35 -0
- package/dist/es/{mc-message-qDiSEyiP.js → mc-message-DhaFb3_V.js} +2 -2
- package/dist/es/{mc-modal-header-BVG3tywa.js → mc-modal-header-0koUQimu.js} +6 -6
- package/dist/es/{mc-overlay-DwuQMb48.js → mc-overlay-BpXL4npx.js} +1 -1
- package/dist/es/mc-popper-DQ5aNdcl.js +34 -0
- package/dist/es/{mc-radio-TczsTpWI.js → mc-radio-DURuKHAH.js} +1 -1
- package/dist/es/{mc-reset-C2LQOIpe.js → mc-reset-ism8Q2uZ.js} +2 -2
- package/dist/es/{mc-select-BpTBi_Ax.js → mc-select-hWzUKAC7.js} +6 -6
- package/dist/es/{mc-step-DPbqaW4a.js → mc-step-DV4B5rZx.js} +6 -6
- package/dist/es/{mc-success-icon-BB5f9EEL.js → mc-success-icon-BBBRzpqR.js} +1 -1
- package/dist/es/{mc-switch-COmM8JEx.js → mc-switch-DfDHgpaw.js} +1 -1
- package/dist/es/{mc-tab-CGsHEm__.js → mc-tab-k42g30rE.js} +22 -22
- package/dist/es/{mc-tag-CfYut-mf.js → mc-tag-BFd8VP2H.js} +2 -2
- package/dist/es/{mc-title-7qDFxVvc.js → mc-title-C0ioHCBh.js} +6 -6
- package/dist/es/{mc-toast-BrmJXXuA.js → mc-toast-BfgI80SY.js} +2 -2
- package/dist/es/mc-tooltip-Dp_lo0jl.js +9 -0
- package/dist/es/mc-upload-CLbFaxUl.js +120 -0
- package/dist/es/theme/mc-alert.css +1 -1
- package/dist/es/theme/mc-button.css +1 -1
- package/dist/es/theme/mc-form.css +1 -1
- package/dist/es/theme/mc-lightbox.css +1 -1
- package/dist/es/theme/mc-popper.css +1 -0
- package/dist/es/theme/mc-tooltip.css +1 -1
- package/dist/es/theme/mc-upload.css +1 -0
- package/dist/es/{utils-CMUecsjZ.js → utils-DVltbcaT.js} +1 -1
- package/dist/es/{vendor-DkZTEfn_.js → vendor-DCLhrjBP.js} +5 -5
- package/dist/index.css +1 -1
- package/dist/types/components/index.d.ts +3 -2
- package/dist/types/components/mc-form/index.d.ts +6 -0
- package/dist/types/components/mc-form/types.d.ts +2 -0
- package/dist/types/components/mc-lightbox/index.d.ts +3 -1
- package/dist/types/components/mc-popper/index.d.ts +68 -0
- package/dist/types/components/mc-popper/types.d.ts +21 -0
- package/dist/types/components/mc-tooltip/index.d.ts +16 -44
- package/dist/types/components/mc-tooltip/types.d.ts +7 -16
- package/dist/types/components/mc-upload/constanst.d.ts +11 -0
- package/dist/types/components/mc-upload/index.d.ts +124 -0
- package/dist/types/components/mc-upload/types.d.ts +46 -0
- package/dist/types/components/mc-upload/utils.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 +10 -10
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/mc-alert-BfTDI70R.js +0 -12
- package/dist/es/mc-form-C_zKtVSz.js +0 -106
- package/dist/es/mc-lightbox-BcK5Hqfm.js +0 -26
- package/dist/es/mc-tooltip-XvEaoUdt.js +0 -33
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as e, openBlock as t, normalizeStyle as c, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as i, w as l } from "./utils-
|
|
2
|
+
import { _ as i, w as l } from "./utils-DVltbcaT.js";
|
|
3
3
|
const n = i(s({ name: "McSuccessIcon", __name: "mc-success-icon", props: { width: { default: "40px" }, height: { default: "40px" } }, setup: (s2) => (s3, i2) => (t(), e("svg", { class: "success-icon", style: c({ width: s3.width, height: s3.height }), viewBox: "0 0 400 400" }, i2[0] || (i2[0] = [o("circle", { class: "circle", fill: "none", transform: "rotate(-90 200 200)", "stroke-width": "20", cx: "200", cy: "200", r: "190", "stroke-linecap": "round" }, null, -1), o("polyline", { class: "tick", fill: "none", "stroke-width": "26", points: "120,214 173,260 274,160", "stroke-linecap": "round", "stroke-linejoin": "round" }, null, -1)]), 4)) }), [["__scopeId", "data-v-cbdf5dc8"]]), r = l(n);
|
|
4
4
|
export {
|
|
5
5
|
r as M,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, createElementBlock as a, openBlock as s, createElementVNode as t, normalizeClass as d, createCommentVNode as o, normalizeStyle as c, toDisplayString as i, renderSlot as m, createTextVNode as u } from "vue";
|
|
2
|
-
import { _ as p, w as n } from "./utils-
|
|
2
|
+
import { _ as p, w as n } from "./utils-DVltbcaT.js";
|
|
3
3
|
const f = { class: "mc-switch-wrapper" }, r = ["disabled", "value"], b = { key: 0, class: "mc-switch-text" }, h = { key: 0, class: "mc-switch-label" }, w = n(p(e({ name: "McSwitch", __name: "mc-switch", props: { modelValue: { type: Boolean, default: false }, width: {}, label: {}, disabled: { type: Boolean, default: false }, onText: {}, offText: {} }, emits: ["update:modelValue"], setup(e2, { expose: p2, emit: n2 }) {
|
|
4
4
|
const w2 = e2, x = n2, y = l(), V = () => {
|
|
5
5
|
w2.disabled || x("update:modelValue", !w2.modelValue);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, computed as a, createElementBlock as l, createCommentVNode as n, openBlock as t, normalizeClass as o, renderSlot as i, Fragment as s, createTextVNode as c, toDisplayString as r, useSlots as u, ref as d, normalizeStyle as p, createElementVNode as g, renderList as m, createVNode as v, unref as h, createBlock as f, createSlots as b, withCtx as _, mergeProps as y, watch as w, withDirectives as k, vModelSelect as x, onMounted as S, nextTick as C, toRefs as I, normalizeProps as z, guardReactiveProps as R, watchEffect as M, h as $, onUnmounted as P, resolveDynamicComponent as H } from "vue";
|
|
2
|
-
import { M as W } from "./mc-checkbox-
|
|
3
|
-
import { _ as T, w as B } from "./utils-
|
|
4
|
-
import { M as O } from "./mc-icon-
|
|
5
|
-
import { m as D, f as L,
|
|
2
|
+
import { M as W } from "./mc-checkbox-XTu4G8Ql.js";
|
|
3
|
+
import { _ as T, w as B } from "./utils-DVltbcaT.js";
|
|
4
|
+
import { M as O } from "./mc-icon-BCR0XCJl.js";
|
|
5
|
+
import { m as D, f as L, r as A, q as V } from "./vendor-DCLhrjBP.js";
|
|
6
6
|
const K = ["rowspan", "colspan"], N = T(e({ __name: "mc-table-cell", props: { row: {}, column: {}, rowIndex: {}, columnIndex: {}, pagination: {}, spanMethod: { type: Function } }, setup(e2) {
|
|
7
7
|
const u2 = e2, d2 = a(() => {
|
|
8
8
|
if (u2.spanMethod) {
|
|
@@ -41,14 +41,14 @@ const K = ["rowspan", "colspan"], N = T(e({ __name: "mc-table-cell", props: { ro
|
|
|
41
41
|
return true;
|
|
42
42
|
});
|
|
43
43
|
return (e3, a2) => g2.value ? (t(), l("td", { key: 0, class: o([e3.column.className, e3.column.align ? `is-${e3.column.align}` : "", e3.column.fixed ? `is-fixed-${"boolean" == typeof e3.column.fixed ? "left" : e3.column.fixed}` : "", "is-display-" + (0 === p2.value ? "none" : "table-cell")]), rowspan: d2.value, colspan: p2.value }, [i(e3.$slots, "cell", { row: e3.row, column: e3.column, $index: e3.rowIndex, value: e3.row[e3.column.prop], prop: e3.column.prop }, () => [i(e3.$slots, e3.column.slot || e3.column.prop, { row: e3.row, column: e3.column, $index: e3.rowIndex, value: e3.row[e3.column.prop] }, () => [e3.column.formatter ? (t(), l(s, { key: 0 }, [c(r(e3.column.formatter(e3.row, e3.column, e3.row[e3.column.prop], e3.rowIndex)), 1)], 64)) : (t(), l(s, { key: 1 }, [c(r(e3.row[e3.column.prop]), 1)], 64))], true)], true)], 10, K)) : n("", true);
|
|
44
|
-
} }), [["__scopeId", "data-v-4e83cc0c"]]), j = { class: "mc-table__body", cellspacing: "0", cellpadding: "0", border: "0" }, E = { key: 0, width: "50" }, F = ["width"], U = ["onClick"],
|
|
44
|
+
} }), [["__scopeId", "data-v-4e83cc0c"]]), j = { class: "mc-table__body", cellspacing: "0", cellpadding: "0", border: "0" }, E = { key: 0, width: "50" }, F = ["width"], U = ["onClick"], q = { key: 0, class: "mc-table__selection-column" }, X = { class: "mc-table__cell" }, G = { key: 1 }, J = ["colspan"], Q = { key: 1 }, Y = T(e({ __name: "mc-table-body", props: { data: {}, columns: {}, rowKey: {}, emptyText: {}, height: {}, maxHeight: {}, pagination: {}, spanMethod: {}, getRowClass: {}, selectable: { type: Boolean, default: false }, selectedRows: {}, selectOnRowClick: { type: Boolean, default: false } }, emits: ["row-click", "select"], setup(e2, { expose: c2, emit: w2 }) {
|
|
45
45
|
const k2 = e2, x2 = u(), S2 = w2, C2 = d(), I2 = a(() => {
|
|
46
46
|
const e3 = {};
|
|
47
47
|
return k2.height && (e3.height = "number" == typeof k2.height ? `${k2.height}px` : k2.height), k2.maxHeight && (e3.maxHeight = "number" == typeof k2.maxHeight ? `${k2.maxHeight}px` : k2.maxHeight), e3;
|
|
48
48
|
}), z2 = (e3) => !!k2.selectedRows && k2.selectedRows.some((a2) => k2.rowKey ? a2[k2.rowKey] === e3[k2.rowKey] : a2 === e3);
|
|
49
49
|
return c2({ bodyWrapper: C2 }), (e3, a2) => (t(), l("div", { class: "mc-table__body-wrapper", ref_key: "bodyWrapper", ref: C2, style: p(I2.value) }, [g("table", j, [g("colgroup", null, [e3.selectable ? (t(), l("col", E)) : n("", true), (t(true), l(s, null, m(e3.columns, (e4, a3) => (t(), l("col", { key: a3, width: e4.width }, null, 8, F))), 128))]), g("tbody", null, [e3.data && e3.data.length > 0 ? (t(true), l(s, { key: 0 }, m(e3.data, (a3, c3) => (t(), l("tr", { key: e3.rowKey ? a3[e3.rowKey] : c3, class: o(e3.getRowClass ? e3.getRowClass(a3, c3) : []), onClick: (e4) => function(e5, a4) {
|
|
50
50
|
S2("row-click", e5, a4);
|
|
51
|
-
}(a3, c3) }, [e3.selectable ? (t(), l("td",
|
|
51
|
+
}(a3, c3) }, [e3.selectable ? (t(), l("td", q, [g("div", X, [v(h(W), { "model-value": z2(a3), onChange: (e4) => function(e5, a4) {
|
|
52
52
|
S2("select", e5, a4);
|
|
53
53
|
}(a3, e4) }, null, 8, ["model-value", "onChange"])])])) : n("", true), (t(true), l(s, null, m(e3.columns, (l2, n2) => (t(), f(N, { key: n2, row: a3, column: l2, "row-index": c3, "column-index": n2, "span-method": e3.spanMethod, pagination: e3.pagination }, b({ _: 2 }, [m(Object.keys(e3.$slots), (a4) => ({ name: a4, fn: _((l3) => [i(e3.$slots, a4, y({ ref_for: true }, l3), void 0, true)]) }))]), 1032, ["row", "column", "row-index", "column-index", "span-method", "pagination"]))), 128))], 10, U))), 128)) : (t(), l("tr", G, [g("td", { colspan: e3.selectable ? e3.columns.length + 1 : e3.columns.length, class: "mc-table__empty-cell" }, [h(x2).empty ? i(e3.$slots, "empty", { key: 0 }, void 0, true) : (t(), l("div", Q, r(e3.emptyText), 1))], 8, J)]))])])], 4));
|
|
54
54
|
} }), [["__scopeId", "data-v-94f9cc05"]]), Z = { class: "mc-table__header", cellspacing: "0", cellpadding: "0", border: "0" }, ee = { key: 0, width: "50" }, ae = ["width"], le = { key: 0, class: "mc-table__selection-column" }, ne = { class: "mc-table__header-cell" }, te = ["onClick"], oe = { class: "mc-table__header-cell" }, ie = { class: "mc-table__header-label" }, se = { key: 0, class: "mc-table__sort-caret" }, ce = T(e({ __name: "mc-table-header", props: { columns: {}, showHeader: { type: Boolean, default: true }, getSortOrder: { type: Function, default: () => null }, selectable: { type: Boolean, default: false }, isAllSelected: { type: Boolean, default: false }, isIndeterminate: { type: Boolean, default: false } }, emits: ["header-click", "sort-change", "select-all"], setup(e2, { expose: a2, emit: u2 }) {
|
|
@@ -182,32 +182,32 @@ function ze(e2, l2, n2) {
|
|
|
182
182
|
} };
|
|
183
183
|
}
|
|
184
184
|
const Re = B(T(e({ name: "McTable", __name: "mc-table", props: { data: {}, columns: {}, showHeader: { type: Boolean, default: true }, height: {}, maxHeight: {}, rowKey: {}, emptyText: { default: "No Data" }, pagination: {}, loading: { type: Boolean, default: false }, loadingText: { default: "Loading..." }, loadingConfig: {}, highlightCurrentRow: { type: Boolean, default: false }, selectable: { type: Boolean, default: false }, selectedRows: {}, selectOnRowClick: { type: Boolean, default: false }, spanMethod: {}, initData: {}, defaultSort: {} }, emits: ["row-click", "header-click", "page-change", "page-size-change", "sort-change", "current-change", "selection-change", "select", "select-all", "update:selectedRows"], setup(e2, { expose: s2, emit: c2 }) {
|
|
185
|
-
const r2 = e2, { data: u2, columns: p2, pagination: g2, spanMethod: y2, loading: k2, loadingText: x2, loadingConfig: S2, defaultSort: M2, highlightCurrentRow: $2, rowKey: P2, selectable: H2, selectedRows: W2, selectOnRowClick: T2 } = I(r2), B2 = c2, O2 = d(), D2 = d(), L2 = d(), { columnsWithFixed: A2 } = Ie(p2, D2, L2), { sortedData: V2, handleSort: K2, getSortOrder: N2 } = ze(u2, A2, M2 == null ? void 0 : M2.value), { paginatedData: j2, updatePagination: E2 } = Ce(V2, g2), F2 = a(() => j2.value), U2 = d(null),
|
|
185
|
+
const r2 = e2, { data: u2, columns: p2, pagination: g2, spanMethod: y2, loading: k2, loadingText: x2, loadingConfig: S2, defaultSort: M2, highlightCurrentRow: $2, rowKey: P2, selectable: H2, selectedRows: W2, selectOnRowClick: T2 } = I(r2), B2 = c2, O2 = d(), D2 = d(), L2 = d(), { columnsWithFixed: A2 } = Ie(p2, D2, L2), { sortedData: V2, handleSort: K2, getSortOrder: N2 } = ze(u2, A2, M2 == null ? void 0 : M2.value), { paginatedData: j2, updatePagination: E2 } = Ce(V2, g2), F2 = a(() => j2.value), U2 = d(null), q2 = d((W2 == null ? void 0 : W2.value) || []);
|
|
186
186
|
w(W2, (e3) => {
|
|
187
|
-
e3 && (
|
|
187
|
+
e3 && (q2.value = [...e3]);
|
|
188
188
|
}, { deep: true, immediate: true });
|
|
189
|
-
const
|
|
189
|
+
const X2 = a(() => !!F2.value.length && F2.value.every((e3) => q2.value.some((a2) => P2.value ? a2[P2.value] === e3[P2.value] : a2 === e3))), G2 = a(() => {
|
|
190
190
|
if (!F2.value.length) return false;
|
|
191
|
-
const e3 = F2.value.filter((e4) =>
|
|
191
|
+
const e3 = F2.value.filter((e4) => q2.value.some((a2) => P2.value ? a2[P2.value] === e4[P2.value] : a2 === e4)).length;
|
|
192
192
|
return e3 > 0 && e3 < F2.value.length;
|
|
193
193
|
}), J2 = (e3) => {
|
|
194
194
|
const a2 = [];
|
|
195
195
|
return $2.value && U2.value === e3 && a2.push("is-current"), a2;
|
|
196
|
-
}, Q2 = (e3) =>
|
|
196
|
+
}, Q2 = (e3) => q2.value.some((a2) => P2.value ? a2[P2.value] === e3[P2.value] : a2 === e3), Z2 = (e3, a2) => {
|
|
197
197
|
const l2 = void 0 !== a2 ? a2 : !Q2(e3);
|
|
198
|
-
if (l2) Q2(e3) ||
|
|
198
|
+
if (l2) Q2(e3) || q2.value.push(e3);
|
|
199
199
|
else {
|
|
200
|
-
const a3 =
|
|
201
|
-
a3 > -1 &&
|
|
200
|
+
const a3 = q2.value.findIndex((a4) => P2.value ? a4[P2.value] === e3[P2.value] : a4 === e3);
|
|
201
|
+
a3 > -1 && q2.value.splice(a3, 1);
|
|
202
202
|
}
|
|
203
|
-
B2("update:selectedRows", [...
|
|
203
|
+
B2("update:selectedRows", [...q2.value]), B2("selection-change", [...q2.value]), B2("select", e3, l2);
|
|
204
204
|
}, ee2 = (e3) => {
|
|
205
205
|
e3 ? F2.value.forEach((e4) => {
|
|
206
|
-
Q2(e4) ||
|
|
206
|
+
Q2(e4) || q2.value.push(e4);
|
|
207
207
|
}) : F2.value.forEach((e4) => {
|
|
208
|
-
const a2 =
|
|
209
|
-
a2 > -1 &&
|
|
210
|
-
}), B2("update:selectedRows", [...
|
|
208
|
+
const a2 = q2.value.findIndex((a3) => P2.value ? a3[P2.value] === e4[P2.value] : a3 === e4);
|
|
209
|
+
a2 > -1 && q2.value.splice(a2, 1);
|
|
210
|
+
}), B2("update:selectedRows", [...q2.value]), B2("selection-change", [...q2.value]), B2("select-all", e3);
|
|
211
211
|
}, ae2 = (e3, a2) => {
|
|
212
212
|
if ($2.value) {
|
|
213
213
|
const a3 = ((e4) => (U2.value = e4, U2.value))(e3);
|
|
@@ -239,10 +239,10 @@ const Re = B(T(e({ name: "McTable", __name: "mc-table", props: { data: {}, colum
|
|
|
239
239
|
e3.sortable && (e3.sortOrder = null);
|
|
240
240
|
});
|
|
241
241
|
}, toggleRowSelection: Z2, toggleAllSelection: ee2, clearSelection: () => {
|
|
242
|
-
|
|
243
|
-
}, getSelectedRows: () => [...
|
|
242
|
+
q2.value = [], B2("update:selectedRows", []), B2("selection-change", []);
|
|
243
|
+
}, getSelectedRows: () => [...q2.value] }), (e3, a2) => {
|
|
244
244
|
var _a;
|
|
245
|
-
return t(), l("div", { ref_key: "_ref", ref: O2, class: o(["mc-table", { "mc-table--loading": h(k2) }]) }, [v(ce, { ref_key: "headerRef", ref: D2, columns: h(A2), "show-header": e3.showHeader, "get-sort-order": h(N2), selectable: h(H2), "is-all-selected":
|
|
245
|
+
return t(), l("div", { ref_key: "_ref", ref: O2, class: o(["mc-table", { "mc-table--loading": h(k2) }]) }, [v(ce, { ref_key: "headerRef", ref: D2, columns: h(A2), "show-header": e3.showHeader, "get-sort-order": h(N2), selectable: h(H2), "is-all-selected": X2.value, "is-indeterminate": G2.value, onHeaderClick: le2, onSortChange: ne2, onSelectAll: oe2 }, b({ _: 2 }, [m(Object.keys(e3.$slots), (a3) => ({ name: a3, fn: _((l2) => [i(e3.$slots, a3, z(R(l2)), void 0, true)]) }))]), 1032, ["columns", "show-header", "get-sort-order", "selectable", "is-all-selected", "is-indeterminate"]), v(Y, { ref_key: "bodyRef", ref: L2, data: F2.value, columns: h(A2), "row-key": h(P2), "empty-text": e3.emptyText, height: e3.height, "max-height": e3.maxHeight, "span-method": h(y2), pagination: h(g2), "get-row-class": J2, selectable: h(H2), "selected-rows": q2.value, "select-on-row-click": h(T2), onRowClick: ae2, onSelect: te2 }, b({ _: 2 }, [m(Object.keys(e3.$slots), (a3) => ({ name: a3, fn: _((l2) => [i(e3.$slots, a3, z(R(l2)), void 0, true)]) }))]), 1032, ["data", "columns", "row-key", "empty-text", "height", "max-height", "span-method", "pagination", "selectable", "selected-rows", "select-on-row-click"]), h(g2) && ((_a = h(g2)) == null ? void 0 : _a.total) > 0 ? (t(), f(Se, { key: 0, pagination: h(g2), onPageChange: ie2 }, null, 8, ["pagination"])) : n("", true), v(he, { class: "mc-table__loading", loading: h(k2), "loading-text": h(x2), "loading-config": h(S2) }, { loading: _((a3) => [i(e3.$slots, "loading", z(R(a3)), void 0, true)]), _: 3 }, 8, ["loading", "loading-text", "loading-config"])], 2);
|
|
246
246
|
};
|
|
247
247
|
} }), [["__scopeId", "data-v-dc87e5f5"]])), Me = ["onClick"], $e = { key: 0, class: "mc-tab-nav-item-count" }, Pe = T(e({ name: "McTab", __name: "mc-tab", props: { modelValue: {}, type: { default: "plain" } }, emits: ["update:modelValue", "change"], setup(e2, { expose: i2, emit: c2 }) {
|
|
248
248
|
const p2 = e2, v2 = c2, h2 = d(), b2 = d(), _2 = d(), y2 = d([]), k2 = u();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, toRefs as a, computed as o, createElementBlock as l, createCommentVNode as r, openBlock as s, normalizeStyle as c, normalizeClass as i, unref as u, createBlock as d, renderSlot as n } from "vue";
|
|
2
|
-
import { M as m } from "./mc-icon-
|
|
3
|
-
import { _ as f, w as h } from "./utils-
|
|
2
|
+
import { M as m } from "./mc-icon-BCR0XCJl.js";
|
|
3
|
+
import { _ as f, w as h } from "./utils-DVltbcaT.js";
|
|
4
4
|
const g = h(f(e({ name: "McTag", __name: "mc-tag", props: { type: { default: "primary" }, size: { default: "medium" }, disabled: { type: Boolean, default: false }, closable: { type: Boolean, default: false }, color: {}, textColor: {}, backgroundColor: {}, selectedTextColor: {}, selectedBackgroundColor: {}, radius: { default: "default" }, height: {}, width: {}, icon: {}, selected: { type: Boolean } }, emits: ["click", "close"], setup(e2, { expose: f2, emit: h2 }) {
|
|
5
5
|
const g2 = t(), v = e2, p = h2, x = t(true), { type: b, size: y, disabled: M, closable: C, color: k, textColor: $, backgroundColor: _, selectedTextColor: z, selectedBackgroundColor: B, radius: w, height: W, width: T, icon: j, selected: I } = a(v), E = { small: 16, medium: 16, large: 24 }, F = o(() => {
|
|
6
6
|
const e3 = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as t, ref as e, createElementBlock as o, openBlock as s, createElementVNode as l, createVNode as a, unref as r, normalizeStyle as i, normalizeClass as m, renderSlot as c, toDisplayString as d, createBlock as n, createCommentVNode as f } from "vue";
|
|
2
|
-
import { _ as u } from "./mc-reset-
|
|
3
|
-
import { t as p } from "./vendor-
|
|
4
|
-
import { _ as h, w as v } from "./utils-
|
|
2
|
+
import { _ as u } from "./mc-reset-ism8Q2uZ.js";
|
|
3
|
+
import { t as p } from "./vendor-DCLhrjBP.js";
|
|
4
|
+
import { _ as h, w as v } from "./utils-DVltbcaT.js";
|
|
5
5
|
const _ = { class: "mc-title-tool-bar-reset" }, b = h(t({ name: "McTitleToolBar", __name: "mc-title-tool-bar", emits: ["reset"], setup(t2, { expose: i2, emit: m2 }) {
|
|
6
6
|
const c2 = e(), d2 = m2, n2 = e(false);
|
|
7
7
|
let f2;
|
|
@@ -14,9 +14,9 @@ const _ = { class: "mc-title-tool-bar-reset" }, b = h(t({ name: "McTitleToolBar"
|
|
|
14
14
|
} }), [["__scopeId", "data-v-2a031f24"]]), w = { class: "mc-title-content" }, y = { class: "mc-title-text" }, B = { class: "mc-title-tool-bar" }, T = h(t({ name: "McTitle", __name: "mc-title", props: { width: { default: "100%" }, height: { default: "auto" }, title: {}, showToolBar: { type: Boolean, default: true }, showBorder: { type: Boolean, default: false } }, emits: ["reset"], setup(t2, { expose: a2, emit: r2 }) {
|
|
15
15
|
const u2 = r2, p2 = e();
|
|
16
16
|
return a2({ ref: p2 }), (t3, e2) => (s(), o("div", { class: m(["mc-title", { "mc-title-border": t3.showBorder }]), ref_key: "_ref", ref: p2, style: i({ width: t3.width, height: t3.height }) }, [l("div", w, [c(t3.$slots, "default", {}, () => [l("h1", y, d(t3.title), 1)], true)]), l("div", B, [c(t3.$slots, "tool-bar", {}, () => [t3.showToolBar ? (s(), n(b, { key: 0, onReset: e2[0] || (e2[0] = (t4) => u2("reset")) })) : f("", true)], true)])], 6));
|
|
17
|
-
} }), [["__scopeId", "data-v-029b5f71"]]),
|
|
17
|
+
} }), [["__scopeId", "data-v-029b5f71"]]), x = v(b), M = v(T);
|
|
18
18
|
export {
|
|
19
19
|
T as M,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
M as a,
|
|
21
|
+
x as b
|
|
22
22
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as o, onUnmounted as s, createElementBlock as n, openBlock as l, normalizeClass as i, createElementVNode as a, createBlock as c, createCommentVNode as r, toDisplayString as m, isVNode as d, createVNode as y, render as p } from "vue";
|
|
2
|
-
import { _ as u, w as f } from "./utils-
|
|
3
|
-
import { M as g } from "./mc-icon-
|
|
2
|
+
import { _ as u, w as f } from "./utils-DVltbcaT.js";
|
|
3
|
+
import { M as g } from "./mc-icon-BCR0XCJl.js";
|
|
4
4
|
const _ = { class: "mc-toast__title" }, v = { class: "mc-toast__message" }, C = u(e({ name: "McToast", __name: "mc-toast", props: { type: { default: "success" }, title: { default: "" }, message: { default: "" }, icon: {}, showClose: { type: Boolean, default: true }, duration: { default: 0 }, position: {}, onClose: {} }, emits: ["close"], setup(e2, { expose: d2, emit: y2 }) {
|
|
5
5
|
const p2 = e2, u2 = y2, f2 = t(), C2 = t(true), h2 = t(false);
|
|
6
6
|
let b2 = null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as t, openBlock as e, createVNode as a, withCtx as n, renderSlot as s, createElementVNode as c, normalizeClass as l, createTextVNode as m, toDisplayString as i } from "vue";
|
|
2
|
+
import { M as p } from "./mc-icon-BCR0XCJl.js";
|
|
3
|
+
import { _ as r } from "./mc-popper-DQ5aNdcl.js";
|
|
4
|
+
import { _ as f, w as d } from "./utils-DVltbcaT.js";
|
|
5
|
+
const u = { class: "mc-tooltip" }, w = f(o({ name: "McTooltip", __name: "mc-tooltip", props: { iconSize: { default: 16 }, iconName: { default: "Info" }, content: {}, theme: { default: "light" }, placement: { default: "top" }, showArrow: { type: Boolean, default: true } }, setup: (o2) => (o3, f2) => (e(), t("div", u, [a(r, { placement: o3.placement, "show-arrow": o3.showArrow }, { content: n(() => [c("div", { class: l(["mc-tooltip-content", `mc-tooltip-content-${o3.theme}`]) }, [s(o3.$slots, "content", {}, () => [m(i(o3.content), 1)], true)], 2)]), default: n(() => [s(o3.$slots, "default", {}, () => [a(p, { class: "mc-tooltip-icon", name: o3.iconName, size: o3.iconSize }, null, 8, ["name", "size"])], true)]), _: 3 }, 8, ["placement", "show-arrow"])])) }), [["__scopeId", "data-v-10655166"]]), _ = d(w);
|
|
6
|
+
export {
|
|
7
|
+
_ as M,
|
|
8
|
+
w as _
|
|
9
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, computed as a, createElementBlock as t, openBlock as s, normalizeClass as i, createVNode as o, TransitionGroup as n, withCtx as r, Fragment as d, renderList as u, createElementVNode as c, createCommentVNode as f, createBlock as p, toDisplayString as m, unref as v, reactive as g, onMounted as h, withModifiers as y, withDirectives as w, vShow as z, renderSlot as _, Transition as B } from "vue";
|
|
2
|
+
import { M as C } from "./mc-icon-BCR0XCJl.js";
|
|
3
|
+
import { u as k } from "./hooks-CaHRdMVi.js";
|
|
4
|
+
import { _ as M, w as b } from "./utils-DVltbcaT.js";
|
|
5
|
+
import { a as S, i as x } from "./vendor-DCLhrjBP.js";
|
|
6
|
+
var $ = ((e2) => (e2.B = "B", e2.KB = "KB", e2.MB = "MB", e2.GB = "GB", e2))($ || {});
|
|
7
|
+
const T = 1024, F = (e2) => parseFloat(e2).toString(), D = (e2, l2 = 2) => e2 < T ? `${e2} B` : e2 < 1048576 ? `${F((e2 / T).toFixed(l2))} KB` : e2 < 1073741824 ? `${F((e2 / 1048576).toFixed(l2))} MB` : `${F((e2 / 1073741824).toFixed(l2))} GB`;
|
|
8
|
+
function U(e2) {
|
|
9
|
+
if (!e2) return "--";
|
|
10
|
+
const l2 = new Date(e2);
|
|
11
|
+
return `${l2.getFullYear()}/${String(l2.getMonth() + 1).padStart(2, "0")}/${String(l2.getDate()).padStart(2, "0")} ${String(l2.getHours()).padStart(2, "0")}:${String(l2.getMinutes()).padStart(2, "0")}:${String(l2.getSeconds()).padStart(2, "0")}`;
|
|
12
|
+
}
|
|
13
|
+
const H = "[?]", V = { upload_note: "Click to upload or drag and drop files here", max_size: "Max file size:", max_count: "No limit on maximum number of documents but recommend that upload then in pdf if more than 5 files are to be upload.", uploaded_by: "Uploaded by", uploaded_on: "Uploaded on", limit_count: `The number of files cannot exceed ${H} .`, limit_size: `The file size cannot exceed ${H} .`, limit_type: `Please upload only ${H} files.` }, I = { class: "file-info-container" }, j = { class: "file-name file-info" }, E = ["onClick"], G = { class: "file-name-text" }, K = { key: 0, class: "size error-info" }, P = { key: 1, class: "size" }, R = { class: "file-info" }, L = { class: "label" }, N = { class: "content" }, q = { class: "file-info" }, A = { class: "label" }, Y = { class: "content" }, J = ["onClick"], O = { key: 0, class: "compact-container" }, Q = { class: "file-info" }, W = { class: "label" }, X = { class: "content" }, Z = { class: "file-info" }, ee = { class: "label" }, le = { class: "content" }, ae = M(e({ name: "McFileList", __name: "mc-file-list", props: { files: { default: () => [] }, deletable: { type: Boolean, default: false }, theme: { default: "white" } }, emits: ["delete:file", "review:file"], setup(e2, { emit: g2 }) {
|
|
14
|
+
const h2 = e2, y2 = g2, w2 = l(), z2 = l(false), _2 = a(() => "grey" === h2.theme);
|
|
15
|
+
return k(w2, ({ width: e3 }) => {
|
|
16
|
+
z2.value = e3 <= 600;
|
|
17
|
+
}), (e3, l2) => (s(), t("div", { class: i(["mc-file-list", { "mc-file-list-grey": _2.value }]), ref_key: "fileContainerRef", ref: w2 }, [o(n, { name: "file-list", tag: "ul" }, { default: r(() => [(s(true), t(d, null, u(e3.files, (l3) => (s(), t("li", { class: i(["file-item", l3.status]), key: l3.name }, [c("div", I, [c("div", j, [c("div", { class: "file", onClick: (e4) => (async (e5) => {
|
|
18
|
+
y2("review:file", e5);
|
|
19
|
+
})(l3) }, ["loading" === l3.status ? (s(), p(C, { key: 0, name: "Loading", class: "loading-icon" })) : (s(), p(C, { key: 1, name: "Document" })), c("span", G, m(l3.name), 1)], 8, E), "failed" === l3.status ? (s(), t("div", K, m(l3.errorMessage), 1)) : (s(), t("div", P, m(l3.size ? v(D)(l3.size) : ""), 1))]), "loading" !== l3.status ? (s(), t(d, { key: 0 }, [z2.value || "successed" !== l3.status ? f("", true) : (s(), t(d, { key: 0 }, [c("div", R, [c("div", L, m(v(V).uploaded_by), 1), c("div", N, m(l3.uploadBy), 1)]), c("div", q, [c("div", A, m(v(V).uploaded_on), 1), c("div", Y, m(v(U)(l3.uploadTime)), 1)])], 64)), e3.deletable ? (s(), t("div", { key: 1, class: "delete", onClick: (e4) => ((e5) => {
|
|
20
|
+
y2("delete:file", e5);
|
|
21
|
+
})(l3) }, [o(C, { name: "Trash" })], 8, J)) : f("", true)], 64)) : f("", true)]), z2.value && "successed" === l3.status ? (s(), t("div", O, [c("div", Q, [c("div", W, m(v(V).uploaded_by), 1), c("div", X, m(l3.uploadBy), 1)]), c("div", Z, [c("div", ee, m(v(V).uploaded_on), 1), c("div", le, m(v(U)(l3.uploadTime)), 1)])])) : f("", true)], 2))), 128))]), _: 1 })], 2));
|
|
22
|
+
} }), [["__scopeId", "data-v-579e8a9d"]]), te = { class: "upload" }, se = { class: "desc" }, ie = b(M(e({ name: "McUpload", __name: "mc-upload", props: { modelValue: { default: () => [] }, fileSize: { default: () => 15728640 }, fileCount: { default: 0 }, hiddenIcon: { type: Boolean, default: false }, allowedFileTypes: {}, uploadUser: { default: "--" }, uploadFunc: {} }, emits: ["upload", "update:modelValue", "delete:file", "review:file", "error:count", "error:size"], setup(e2, { expose: n2, emit: d2 }) {
|
|
23
|
+
const u2 = e2, C2 = d2, k2 = l(), M2 = l(false), b2 = g(/* @__PURE__ */ new Map()), F2 = a(() => [...b2.values()]);
|
|
24
|
+
h(() => {
|
|
25
|
+
(() => {
|
|
26
|
+
const e3 = u2.modelValue;
|
|
27
|
+
(e3 == null ? void 0 : e3.length) && S(e3, (e4) => {
|
|
28
|
+
e4.name && b2.set(e4.name, { fid: e4.fid, name: e4.name, size: e4.size, status: "successed", uploadBy: e4.uploadBy, uploadTime: e4.uploadTime });
|
|
29
|
+
});
|
|
30
|
+
})();
|
|
31
|
+
});
|
|
32
|
+
const U2 = () => {
|
|
33
|
+
k2.value.click();
|
|
34
|
+
}, I2 = (e3) => {
|
|
35
|
+
var _a;
|
|
36
|
+
M2.value = false;
|
|
37
|
+
const l2 = (_a = e3.dataTransfer) == null ? void 0 : _a.files;
|
|
38
|
+
l2 && E2(l2);
|
|
39
|
+
}, j2 = (e3) => {
|
|
40
|
+
const l2 = e3.target.files;
|
|
41
|
+
l2 && E2(l2);
|
|
42
|
+
}, E2 = async (e3) => {
|
|
43
|
+
var _a, _b, _c, _d;
|
|
44
|
+
let l2 = Array.from(e3);
|
|
45
|
+
if (l2 = K2(l2), l2 = P2(l2), !l2.length) return void (k2.value && (k2.value.value = ""));
|
|
46
|
+
if (l2.forEach((e4) => {
|
|
47
|
+
b2.set(e4.name, { name: e4.name, size: e4.size, status: "loading", uploadBy: u2.uploadUser, uploadTime: Date.now() });
|
|
48
|
+
}), !R2(l2)) return void (k2.value && (k2.value.value = ""));
|
|
49
|
+
const a2 = [];
|
|
50
|
+
for (const e4 of l2) b2.has(e4.name) && "loading" === b2.get(e4.name).status && a2.push(N2(e4));
|
|
51
|
+
const t2 = await Promise.allSettled(a2);
|
|
52
|
+
for (let e4 = 0; e4 < t2.length; e4++) {
|
|
53
|
+
const a3 = l2[e4];
|
|
54
|
+
if ("fulfilled" === t2[e4].status) {
|
|
55
|
+
const l3 = (_b = (_a = t2[e4]) == null ? void 0 : _a.value) == null ? void 0 : _b.fid;
|
|
56
|
+
b2.set(a3.name, { fid: l3, name: a3.name, size: a3.size, status: "successed", uploadBy: u2.uploadUser, uploadTime: Date.now() });
|
|
57
|
+
} else {
|
|
58
|
+
const l3 = ((_d = (_c = t2[e4]) == null ? void 0 : _c.reason) == null ? void 0 : _d.message) || "Upload failed";
|
|
59
|
+
console.error(t2[e4]), b2.set(a3.name, { name: a3.name, size: a3.size, status: "failed", errorMessage: l3, uploadBy: u2.uploadUser, uploadTime: Date.now() });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
L2();
|
|
63
|
+
}, G2 = a(() => "number" == typeof u2.fileSize ? u2.fileSize : "string" == typeof u2.fileSize ? ((e3) => {
|
|
64
|
+
try {
|
|
65
|
+
if (!e3 || !e3.includes(" ")) throw new Error();
|
|
66
|
+
const l2 = e3.split(" ");
|
|
67
|
+
if (2 !== l2.length) throw new Error();
|
|
68
|
+
const a2 = Number(l2[0]), t2 = l2[1];
|
|
69
|
+
if (!(t2 in $)) throw new Error();
|
|
70
|
+
if ("B" === t2) return a2;
|
|
71
|
+
if ("KB" === t2) return a2 * T;
|
|
72
|
+
if ("MB" === t2) return a2 * T * T;
|
|
73
|
+
if ("GB" === t2) return a2 * T * T * T;
|
|
74
|
+
throw new Error();
|
|
75
|
+
} catch (e4) {
|
|
76
|
+
return console.error("Please config the correct file size. ", e4), -1;
|
|
77
|
+
}
|
|
78
|
+
})(u2.fileSize) : -1), K2 = (e3) => {
|
|
79
|
+
const l2 = e3.length;
|
|
80
|
+
return u2.fileCount && l2 + b2.size > u2.fileCount && (e3 = e3.slice(0, u2.fileCount - b2.size), C2("error:count")), e3;
|
|
81
|
+
}, P2 = (e3) => {
|
|
82
|
+
const l2 = u2.allowedFileTypes;
|
|
83
|
+
if (l2 == null ? void 0 : l2.length) {
|
|
84
|
+
const a2 = l2.map((e4) => e4.toUpperCase()), t2 = e3.filter((e4) => {
|
|
85
|
+
var _a;
|
|
86
|
+
const l3 = ((_a = e4.name.split(".").pop()) == null ? void 0 : _a.toUpperCase()) ?? "--";
|
|
87
|
+
return a2.includes(l3);
|
|
88
|
+
});
|
|
89
|
+
t2.length !== e3.length && C2("error:size"), e3 = t2;
|
|
90
|
+
}
|
|
91
|
+
return e3;
|
|
92
|
+
}, R2 = (e3) => {
|
|
93
|
+
const l2 = G2.value;
|
|
94
|
+
if (l2 <= 0) return true;
|
|
95
|
+
let a2 = false;
|
|
96
|
+
for (let t2 = 0; t2 < e3.length; t2++) {
|
|
97
|
+
const s2 = e3[t2];
|
|
98
|
+
s2.size > l2 ? b2.set(s2.name, { name: s2.name, size: s2.size, status: "failed", errorMessage: V.limit_size.replace(H, `${D(l2)}`), uploadBy: u2.uploadUser, uploadTime: Date.now() }) : a2 = true;
|
|
99
|
+
}
|
|
100
|
+
return a2;
|
|
101
|
+
}, L2 = () => {
|
|
102
|
+
const e3 = [...b2.values()].filter((e4) => "successed" === e4.status);
|
|
103
|
+
C2("upload", e3), C2("update:modelValue", e3);
|
|
104
|
+
}, N2 = async (e3) => x(u2.uploadFunc) ? await u2.uploadFunc(e3) : Promise.reject("UploadFunc is not a function"), q2 = (e3) => {
|
|
105
|
+
b2.delete(e3.name), k2.value && (k2.value.value = ""), C2("delete:file", e3), L2();
|
|
106
|
+
}, A2 = (e3) => {
|
|
107
|
+
C2("review:file", e3);
|
|
108
|
+
};
|
|
109
|
+
return n2({ uploadInputRef: k2, clear: () => {
|
|
110
|
+
b2.clear(), k2.value && (k2.value.value = ""), L2();
|
|
111
|
+
} }), (e3, l2) => (s(), t("div", null, [c("div", { class: i(["mc-upload", { dragover: M2.value }]), onClick: U2, onDragover: l2[2] || (l2[2] = y(() => {
|
|
112
|
+
}, ["prevent"])), onDrop: y(I2, ["prevent"]) }, [c("div", { class: "cover", onDragenter: l2[0] || (l2[0] = (e4) => M2.value = true), onDragleave: l2[1] || (l2[1] = (e4) => M2.value = false) }, null, 32), c("div", te, [w(c("div", null, l2[3] || (l2[3] = [c("svg", { class: "upload-icon", width: "32", height: "38", viewBox: "0 0 32 38", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, [c("path", { d: "M27.7647 16.5V10.3334C27.7647 7.53311 27.7647 6.13298 27.2518 5.06342C26.8006 4.12261 26.0807 3.35771 25.1952 2.87834C24.1886 2.33337 22.8708 2.33337 20.2353 2.33337H10.1961C7.56053 2.33337 6.24276 2.33337 5.23612 2.87834C4.35065 3.35771 3.63074 4.12261 3.17957 5.06342C2.66666 6.13298 2.66666 7.53311 2.66666 10.3334V27.6667C2.66666 30.467 2.66666 31.8671 3.17957 32.9367C3.63074 33.8775 4.35065 34.6424 5.23612 35.1217C6.24276 35.6667 7.56053 35.6667 10.1961 35.6667H15.2157M18.3529 17.3334H8.94117M12.0784 24H8.94117M21.4902 10.6667H8.94117M24.6274 34V24M19.9216 29H29.3333", "stroke-width": "4", "stroke-linecap": "square" })], -1)]), 512), [[z, !e3.hiddenIcon]]), c("div", se, [_(e3.$slots, "default", {}, () => [c("p", { class: i(["title", { "hidden-icon": e3.hiddenIcon }]) }, m(v(V).upload_note), 3), w(c("p", null, m(v(V).max_size) + " " + m(v(D)(G2.value)), 513), [[z, G2.value > 0]]), c("p", null, m(v(V).max_count), 1)], true)])]), c("input", { ref_key: "uploadFileRef", ref: k2, type: "file", multiple: "", style: { display: "none" }, onChange: j2 }, null, 544)], 34), o(B, { name: "file-list-show" }, { default: r(() => {
|
|
113
|
+
var _a;
|
|
114
|
+
return [((_a = F2.value) == null ? void 0 : _a.length) ? (s(), p(ae, { key: 0, class: "file-list-show", files: F2.value, "onReview:file": A2, "onDelete:file": q2, deletable: "" }, null, 8, ["files"])) : f("", true)];
|
|
115
|
+
}), _: 1 })]));
|
|
116
|
+
} }), [["__scopeId", "data-v-960abad0"]])), oe = b(ae);
|
|
117
|
+
export {
|
|
118
|
+
ie as M,
|
|
119
|
+
oe as a
|
|
120
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-alert[data-v-
|
|
1
|
+
.mc-alert[data-v-fc038f58]{--mc-alert-color: inherit;--mc-alert-background: inherit;position:relative;display:flex;align-items:center;justify-content:space-between;border-radius:var(--mc-radius);padding:8px 16px;transition:opacity var(--mc-transition-duration),transform var(--mc-transition-duration);background-color:var(--mc-alert-background)}.mc-alert__content[data-v-fc038f58]{display:flex;flex-direction:column;gap:8px;width:100%;height:100%}.mc-alert__content .mc-alert__header[data-v-fc038f58]{display:flex;align-items:center;justify-content:space-between}.mc-alert__content .mc-alert__header .mc-alert__header-left[data-v-fc038f58]{display:flex;align-items:center;gap:8px}.mc-alert__content .mc-alert__header .mc-alert__header-left .mc-alert__title[data-v-fc038f58]{font-weight:600;font-size:22px;line-height:30px}.mc-alert__content .mc-alert__header .mc-alert__icon[data-v-fc038f58]{flex-shrink:0;color:var(--mc-alert-color)}.mc-alert__content .mc-alert__header .mc-alert__close[data-v-fc038f58]{cursor:pointer;opacity:.8;transition:opacity var(--mc-transition-duration)}.mc-alert__content .mc-alert__header .mc-alert__close[data-v-fc038f58]:hover{opacity:1}.mc-alert__content .mc-alert__description[data-v-fc038f58]{font-weight:400;font-size:16px;line-height:24px;color:var(--mc-gray-800);margin-left:32px}.mc-alert--success[data-v-fc038f58]{--mc-alert-color: var(--mc-success);--mc-alert-background: var(--mc-success-background)}.mc-alert--info[data-v-fc038f58]{--mc-alert-color: var(--mc-info);--mc-alert-background: var(--mc-info-background)}.mc-alert--warning[data-v-fc038f58]{--mc-alert-color: var(--mc-warning);--mc-alert-background: var(--mc-warning-background)}.mc-alert--error[data-v-fc038f58]{--mc-alert-color: var(--mc-error);--mc-alert-background: var(--mc-error-background)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes loading-
|
|
1
|
+
@keyframes loading-22e63398{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mc-button[data-v-22e63398]{border:none;background:none;padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--mc-gap);font-weight:700;border-radius:var(--mc-radius);transition:transform var(--mc-transition-duration)}.mc-button[data-v-22e63398]:active{transform:translateY(var(--mc-transform-distance))}.mc-button .mc-button-text[data-v-22e63398]{white-space:nowrap}.mc-button.mc-button--medium[data-v-22e63398]{width:fit-content;height:var(--mc-base-height);padding:15px 16px}.mc-button.mc-button--small[data-v-22e63398]{width:fit-content;height:34px;padding:12px 16px}.mc-button.mc-button--large[data-v-22e63398]{width:fit-content;height:64px;padding:27px 16px}.mc-button.mc-button--primary[data-v-22e63398]{background-color:var(--mc-teal-500);color:var(--mc-white)}.mc-button.mc-button--primary[data-v-22e63398]:hover{background-color:var(--mc-teal-900)}.mc-button.mc-button--primary.is-disabled[data-v-22e63398]:hover{background-color:var(--mc-gray-300);color:var(--mc-gray-400);border:none}.mc-button.mc-button--plain[data-v-22e63398]{border:1px solid var(--mc-teal-500);color:var(--mc-teal-500)}.mc-button.mc-button--plain[data-v-22e63398]:hover{border:1px solid var(--mc-teal-900);color:var(--mc-teal-900)}.mc-button.mc-button--plain.is-disabled[data-v-22e63398]{border:1px solid var(--mc-gray-300);color:var(--mc-gray-300);background:none}.mc-button.mc-button--link[data-v-22e63398]{padding:0;color:var(--mc-teal-500)}.mc-button.mc-button--link[data-v-22e63398]:hover{color:var(--mc-teal-900)}.mc-button.mc-button--link.is-disabled[data-v-22e63398]{color:var(--mc-gray-300);background:none}.mc-button.is-loading .loading-icon[data-v-22e63398]{width:16px;height:16px;display:flex;justify-content:center;align-items:center;transform-origin:center;animation:loading-22e63398 1s linear infinite}.mc-button.is-disabled[data-v-22e63398]{background-color:var(--mc-gray-300);color:var(--mc-gray-400);border:none;cursor:not-allowed}.mc-button.is-disabled[data-v-22e63398]:hover{transform:translateY(0)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-form-item[data-v-
|
|
1
|
+
.mc-form-item[data-v-ac8f57c1]{margin-bottom:24px;position:relative}.mc-form-item .mc-form-item-label-wrapper[data-v-ac8f57c1]{display:flex;justify-content:space-between}.mc-form-item .mc-form-item-label-wrapper .mc-form-item-label[data-v-ac8f57c1]{display:flex;align-items:center;gap:8px}.mc-form-item .mc-form-item-label-wrapper .mc-form-item-label .mc-form-item-lable-text[data-v-ac8f57c1]{position:relative;font-weight:700;color:var(--mc-gray-500);font-size:14px}.mc-form-item .mc-form-item-label-wrapper .mc-form-item-label .mc-form-item-lable-text.mc-form-item-label-required[data-v-ac8f57c1]{margin-right:8px}.mc-form-item .mc-form-item-label-wrapper .mc-form-item-label .mc-form-item-lable-text.mc-form-item-label-required[data-v-ac8f57c1]:after{content:"*";color:var(--mc-error);position:absolute;right:-8px;top:0}.mc-form-item .mc-form-item-desc[data-v-ac8f57c1]{font-size:12px;color:var(--mc-gray-500);margin-top:4px}.mc-form-item .mc-form-item__content[data-v-ac8f57c1]{margin-top:8px}.mc-form-item .mc-form-item__error[data-v-ac8f57c1]{position:absolute;bottom:-20px;left:0;color:var(--mc-error);font-size:12px}.mc-form-item .mc-form-item-error-enter-active[data-v-ac8f57c1],.mc-form-item .mc-form-item-error-leave-active[data-v-ac8f57c1]{transition:all .3s ease}.mc-form-item .mc-form-item-error-enter-from[data-v-ac8f57c1],.mc-form-item .mc-form-item-error-leave-to[data-v-ac8f57c1]{opacity:0;transform:translateY(-8px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-lightbox[data-v-
|
|
1
|
+
.mc-lightbox[data-v-632e7454]{width:800px;height:fit-content;max-height:70%;padding:56px 0 72px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--mc-white);z-index:9999;box-sizing:border-box;border-radius:4px}.mc-lightbox.mc-lightbox-large[data-v-632e7454]{width:1024px}.mc-lightbox.mc-lightbox-small[data-v-632e7454]{width:430px}.mc-lightbox .mc-lightbox-header[data-v-632e7454]{width:100%;position:absolute;top:0}.mc-lightbox .mc-lightbox-footer[data-v-632e7454]{width:100%;position:absolute;bottom:0}.mc-lightbox .mc-lightbox-content-wrapper[data-v-632e7454]{width:100%;box-sizing:border-box;overflow-y:auto}.mc-lightbox .mc-lightbox-content-wrapper .mc-lightbox-content[data-v-632e7454]{padding:24px;box-sizing:border-box}.mc-lightbox-overlay-enter-active[data-v-632e7454],.mc-lightbox-overlay-leave-active[data-v-632e7454]{transition:opacity .3s ease-in-out}.mc-lightbox-overlay-enter-active.mc-lightbox-overlay-enter-from[data-v-632e7454],.mc-lightbox-overlay-enter-active.mc-lightbox-overlay-leave-to[data-v-632e7454],.mc-lightbox-overlay-leave-active.mc-lightbox-overlay-enter-from[data-v-632e7454],.mc-lightbox-overlay-leave-active.mc-lightbox-overlay-leave-to[data-v-632e7454]{opacity:0}.mc-lightbox-overlay-enter-active.mc-lightbox-overlay-enter-to[data-v-632e7454],.mc-lightbox-overlay-enter-active.mc-lightbox-overlay-leave-from[data-v-632e7454],.mc-lightbox-overlay-leave-active.mc-lightbox-overlay-enter-to[data-v-632e7454],.mc-lightbox-overlay-leave-active.mc-lightbox-overlay-leave-from[data-v-632e7454]{opacity:1}.mc-lightbox-content-enter-active[data-v-632e7454],.mc-lightbox-content-leave-active[data-v-632e7454]{transition:transform .5s ease-in-out,opacity .5s ease-in-out}.mc-lightbox-content-enter-active.mc-lightbox-content-enter-from[data-v-632e7454],.mc-lightbox-content-enter-active.mc-lightbox-content-leave-to[data-v-632e7454],.mc-lightbox-content-leave-active.mc-lightbox-content-enter-from[data-v-632e7454],.mc-lightbox-content-leave-active.mc-lightbox-content-leave-to[data-v-632e7454]{opacity:0;transform:translate(-50%,-50%) scale(.8)}.mc-lightbox-content-enter-active.mc-lightbox-content-enter-to[data-v-632e7454],.mc-lightbox-content-enter-active.mc-lightbox-content-leave-from[data-v-632e7454],.mc-lightbox-content-leave-active.mc-lightbox-content-enter-to[data-v-632e7454],.mc-lightbox-content-leave-active.mc-lightbox-content-leave-from[data-v-632e7454]{opacity:1;transform:translate(-50%,-50%) scale(1)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mc-popper[data-v-fee1e222],.mc-popper .mc-popper-trigger[data-v-fee1e222]{width:max-content}.mc-popper .mc-popper-popper .mc-popper-arrow[data-v-fee1e222]:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;transform:translate(-50%,-50%) rotate(45deg)}.mc-popper .mc-popper-popper[data-popper-placement^=bottom]>.mc-popper-arrow[data-v-fee1e222]{top:0}.mc-popper .mc-popper-popper[data-popper-placement^=left]>.mc-popper-arrow[data-v-fee1e222]{right:0}.fade-enter-active[data-v-fee1e222],.fade-leave-active[data-v-fee1e222]{transition:opacity var(--mc-transition-duration) ease-in-out}.fade-enter-from[data-v-fee1e222],.fade-leave-to[data-v-fee1e222]{opacity:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-tooltip[data-v-
|
|
1
|
+
.mc-tooltip .mc-tooltip-icon[data-v-10655166]{cursor:pointer;color:var(--mc-gray-400)}.mc-tooltip .mc-tooltip-content[data-v-10655166]{width:fit-content;height:fit-content;box-sizing:border-box;padding:12px 16px;display:flex;align-items:center;justify-content:center;border-radius:4px;box-shadow:0 2px 4px #04147c26;font-size:16px;font-weight:400}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-light[data-v-10655166]{background-color:var(--mc-white);color:var(--mc-gray-800)}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-light[data-v-10655166]+.mc-popper-arrow:after{background-color:var(--mc-white);box-shadow:0 2px 4px #04147c26}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-dark[data-v-10655166]{background-color:var(--mc-gray-600);color:var(--mc-white)}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-dark[data-v-10655166]+.mc-popper-arrow:after{background-color:var(--mc-gray-600);box-shadow:0 2px 4px #04147c26}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes spin-579e8a9d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}ul[data-v-579e8a9d]{margin:0;padding:0;box-sizing:border-box}ul li[data-v-579e8a9d]{list-style:none;margin:0;padding:0}.mc-file-list[data-v-579e8a9d]{width:100%;border-radius:8px;background-color:var(--mc-white)}.mc-file-list.mc-file-list-grey[data-v-579e8a9d]{background-color:var(--mc-gray-100)}.mc-file-list .file-item[data-v-579e8a9d]{padding:16px;box-sizing:border-box;margin-bottom:8px;box-shadow:0 2px 4px #0000001a}.mc-file-list .file-item .file-info-container[data-v-579e8a9d]{display:flex;justify-content:space-between;gap:24px}.mc-file-list .file-item .compact-container[data-v-579e8a9d]{margin-top:32px;position:relative}.mc-file-list .file-item .compact-container[data-v-579e8a9d]:before{content:"";height:1px;width:100%;background-color:var(--mc-white);position:absolute;top:-16px}.mc-file-list .file-item .compact-container .file-info[data-v-579e8a9d]{height:32px;display:flex;align-items:center;gap:24px}.mc-file-list .file-item .compact-container .file-info .label[data-v-579e8a9d]{margin:0;min-width:160px}.mc-file-list .file-item .compact-container .file-info .content[data-v-579e8a9d]{word-wrap:break-word}.mc-file-list .file-item[data-v-579e8a9d]:last-of-type{margin-bottom:0}.mc-file-list .file-item.loading .loading-icon[data-v-579e8a9d]{transform-origin:center;animation:spin-579e8a9d 1.5s ease-in-out 0s infinite}.mc-file-list .file-item.successed .file-name .file[data-v-579e8a9d]{color:var(--mc-teal-500);gap:4px;cursor:pointer}.mc-file-list .file-item.successed .file-name .file[data-v-579e8a9d]:hover{color:var(--mc-teal-900)}.mc-file-list .file-item.successed .file-name .file .file-name-text[data-v-579e8a9d]{max-width:500px;word-wrap:break-word}.mc-file-list .file-item.failed .file-name .file[data-v-579e8a9d],.mc-file-list .file-item.failed .file-name .size[data-v-579e8a9d]{color:var(--mc-error)}.mc-file-list .file-item.failed .error-info[data-v-579e8a9d]{color:var(--mc-error);font-size:12px!important;font-weight:700}.mc-file-list .file-item.failed .delete[data-v-579e8a9d]{color:var(--mc-error)}.mc-file-list .file-item .file-name[data-v-579e8a9d]{cursor:default}.mc-file-list .file-item .file-name .file[data-v-579e8a9d]{font-size:12px;font-weight:400;color:var(--mc-black);display:flex;gap:8px;transition:transform .2s}.mc-file-list .file-item .file-name .size[data-v-579e8a9d]{margin-top:8px;margin-left:24px;font-size:10px;color:var(--mc-gray-500)}.mc-file-list .file-item .file-info[data-v-579e8a9d]{max-width:386px;word-break:break-all}.mc-file-list .file-item .file-info .label[data-v-579e8a9d]{margin-bottom:8px;font-size:12px;min-height:24px;display:flex;align-items:center;color:var(--mc-gray-500)}.mc-file-list .file-item .file-info .content[data-v-579e8a9d]{min-height:24px;display:flex;align-items:center;font-size:16px;font-weight:400}.mc-file-list .file-item .delete[data-v-579e8a9d]{cursor:pointer;color:var(--mc-teal-500)}.mc-file-list .file-item .delete[data-v-579e8a9d]:hover{color:var(--mc-error)}.file-list-enter-from[data-v-579e8a9d],.file-list-leave-to[data-v-579e8a9d]{transform:scaleY(0);opacity:0}.file-list-enter-to[data-v-579e8a9d],.file-list-leave-from[data-v-579e8a9d]{transform:scaleY(1);opacity:1}.file-list-enter-active[data-v-579e8a9d],.file-list-leave-active[data-v-579e8a9d]{transform-origin:top;transition:transform .3s linear 0s,opacity .3s linear 0s}.mc-upload[data-v-960abad0]{width:100%;max-width:1284px;min-height:180px;padding:24px;border:1px solid var(--mc-teal-500);border-radius:8px;background-color:#d7eceb80;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-upload p[data-v-960abad0]{padding:0;margin:0}.mc-upload:hover .upload-icon path[data-v-960abad0]{stroke:var(--mc-teal-900)!important}.mc-upload:hover .desc .title[data-v-960abad0]{color:var(--mc-teal-900)!important;text-decoration:underline}.mc-upload.dragover[data-v-960abad0]{box-sizing:border-box;border:2px solid var(--mc-teal-500);box-shadow:0 4px 8px #0000001a}.mc-upload.dragover .cover[data-v-960abad0]{background-color:#d2d2d21a}.mc-upload .cover[data-v-960abad0]{width:100%;height:100%;position:absolute;border-radius:8px}.mc-upload .upload[data-v-960abad0]{display:flex;flex-direction:column;justify-content:center;align-items:center}.mc-upload .upload .upload-icon[data-v-960abad0]{margin-bottom:16px}.mc-upload .upload .upload-icon path[data-v-960abad0]{stroke:var(--mc-teal-500)}.mc-upload .upload .desc[data-v-960abad0]{display:flex;flex-direction:column;justify-content:center;align-items:center}.mc-upload .upload .desc p[data-v-960abad0]{font-weight:400!important;font-size:14px!important;color:var(--mc-gray-500)}.mc-upload .upload .desc p.title[data-v-960abad0]{color:var(--mc-teal-500);font-weight:700!important;font-size:16px!important;margin-bottom:16px}.file-list-show[data-v-960abad0]{max-width:1284px;margin-top:8px}.file-list-show-enter-from[data-v-960abad0],.file-list-show-leave-to[data-v-960abad0]{transform:scaleY(0);opacity:0}.file-list-show-enter-to[data-v-960abad0],.file-list-show-leave-from[data-v-960abad0]{transform:scaleY(1);opacity:1}.file-list-show-enter-active[data-v-960abad0],.file-list-show-leave-active[data-v-960abad0]{transform-origin:top;transition:transform .3s linear 0s,opacity .3s linear 0s}
|
|
@@ -1078,11 +1078,11 @@ export {
|
|
|
1078
1078
|
lr as k,
|
|
1079
1079
|
Ur as l,
|
|
1080
1080
|
Pn as m,
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1081
|
+
mn as n,
|
|
1082
|
+
$r as o,
|
|
1083
|
+
Ln as p,
|
|
1084
|
+
Tn as q,
|
|
1085
|
+
Un as r,
|
|
1086
1086
|
to as s,
|
|
1087
1087
|
no as t,
|
|
1088
1088
|
Dn as u
|