@v1nt1248/3nclient-lib 0.3.48 → 0.3.49
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/ui3n-components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $ as e, B as t, Q as n, R as r, T as i, V as a, X as o, Z as s, at as c, ct as l, dt as u, et as d, ft as f, ht as p, it as m, lt as h, mt as g, nt as _, o as v, ot as y, pt as b, rt as x, st as S, t as C, tt as w, ut as T, v as E, z as D } from "./chunks/plugins-keys-CmrMlx3F.js";
|
|
2
2
|
import { a as O, i as k, n as A, r as ee, t as j } from "./chunks/ui3n-notification-DPC5Ke4b.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { autoUpdate as
|
|
6
|
-
import { Fragment as
|
|
3
|
+
import { t as te } from "./chunks/emoticons-DMgiBINj.js";
|
|
4
|
+
import ne from "sanitize-html";
|
|
5
|
+
import { autoUpdate as M, computePosition as re, offset as ie } from "@floating-ui/dom";
|
|
6
|
+
import { Fragment as N, Teleport as ae, Transition as oe, TransitionGroup as se, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as ce, createVNode as z, defineComponent as B, inject as le, mergeProps as ue, nextTick as de, normalizeClass as V, normalizeStyle as H, onBeforeMount as fe, onBeforeUnmount as pe, onMounted as U, onUnmounted as me, openBlock as W, provide as he, ref as G, renderList as K, renderSlot as q, resolveDynamicComponent as ge, shallowRef as _e, toDisplayString as J, toHandlers as ve, unref as Y, useCssModule as ye, useCssVars as be, useSlots as xe, useTemplateRef as Se, vModelText as Ce, watch as X, withCtx as Z, withDirectives as we, withKeys as Q, withModifiers as $ } from "vue";
|
|
7
7
|
import { arrow as Te, autoUpdate as Ee, flip as De, offset as Oe, shift as ke, useFloating as Ae } from "@floating-ui/vue";
|
|
8
8
|
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayMap.js
|
|
9
9
|
var je = /* @__PURE__ */ g(((e, t) => {
|
|
@@ -508,39 +508,39 @@ var je = /* @__PURE__ */ g(((e, t) => {
|
|
|
508
508
|
var n = Kt(), r = x(), i = _(), a = i && i.isSet;
|
|
509
509
|
t.exports = a ? r(a) : n;
|
|
510
510
|
})), Jt = /* @__PURE__ */ g(((e, t) => {
|
|
511
|
-
var n = ot(), r = st(), i = ut(), a = gt(), s = bt(), l = xt(), u = St(), d = Et(), f = At(), p = Mt(), h = Nt(), g = o(), _ = Pt(), v = Vt(), y = Ut(), b = c(), x = m(), S = Gt(), C = T(), w = qt(), E = ht(), D = yt(), O = 1, k = 2, A = 4, ee = "[object Arguments]", j = "[object Array]",
|
|
512
|
-
|
|
513
|
-
function
|
|
514
|
-
var j,
|
|
511
|
+
var n = ot(), r = st(), i = ut(), a = gt(), s = bt(), l = xt(), u = St(), d = Et(), f = At(), p = Mt(), h = Nt(), g = o(), _ = Pt(), v = Vt(), y = Ut(), b = c(), x = m(), S = Gt(), C = T(), w = qt(), E = ht(), D = yt(), O = 1, k = 2, A = 4, ee = "[object Arguments]", j = "[object Array]", te = "[object Boolean]", ne = "[object Date]", M = "[object Error]", re = "[object Function]", ie = "[object GeneratorFunction]", N = "[object Map]", ae = "[object Number]", oe = "[object Object]", se = "[object RegExp]", P = "[object Set]", F = "[object String]", I = "[object Symbol]", L = "[object WeakMap]", R = "[object ArrayBuffer]", ce = "[object DataView]", z = "[object Float32Array]", B = "[object Float64Array]", le = "[object Int8Array]", ue = "[object Int16Array]", de = "[object Int32Array]", V = "[object Uint8Array]", H = "[object Uint8ClampedArray]", fe = "[object Uint16Array]", pe = "[object Uint32Array]", U = {};
|
|
512
|
+
U[ee] = U[j] = U[R] = U[ce] = U[te] = U[ne] = U[z] = U[B] = U[le] = U[ue] = U[de] = U[N] = U[ae] = U[oe] = U[se] = U[P] = U[F] = U[I] = U[V] = U[H] = U[fe] = U[pe] = !0, U[M] = U[re] = U[L] = !1;
|
|
513
|
+
function me(e, t, o, c, m, T) {
|
|
514
|
+
var j, te = t & O, ne = t & k, M = t & A;
|
|
515
515
|
if (o && (j = m ? o(e, c, m, T) : o(e)), j !== void 0) return j;
|
|
516
516
|
if (!C(e)) return e;
|
|
517
|
-
var
|
|
518
|
-
if (
|
|
519
|
-
if (j = _(e), !
|
|
517
|
+
var N = b(e);
|
|
518
|
+
if (N) {
|
|
519
|
+
if (j = _(e), !te) return u(e, j);
|
|
520
520
|
} else {
|
|
521
|
-
var
|
|
522
|
-
if (x(e)) return l(e,
|
|
523
|
-
if (
|
|
524
|
-
if (j =
|
|
521
|
+
var ae = g(e), se = ae == re || ae == ie;
|
|
522
|
+
if (x(e)) return l(e, te);
|
|
523
|
+
if (ae == oe || ae == ee || se && !m) {
|
|
524
|
+
if (j = ne || se ? {} : y(e), !te) return ne ? f(e, s(j, e)) : d(e, a(j, e));
|
|
525
525
|
} else {
|
|
526
|
-
if (!
|
|
527
|
-
j = v(e,
|
|
526
|
+
if (!U[ae]) return m ? e : {};
|
|
527
|
+
j = v(e, ae, te);
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
T ||= new n();
|
|
531
|
-
var
|
|
532
|
-
if (
|
|
531
|
+
var P = T.get(e);
|
|
532
|
+
if (P) return P;
|
|
533
533
|
T.set(e, j), w(e) ? e.forEach(function(n) {
|
|
534
|
-
j.add(
|
|
534
|
+
j.add(me(n, t, o, n, e, T));
|
|
535
535
|
}) : S(e) && e.forEach(function(n, r) {
|
|
536
|
-
j.set(r,
|
|
536
|
+
j.set(r, me(n, t, o, r, e, T));
|
|
537
537
|
});
|
|
538
|
-
var
|
|
539
|
-
return r(
|
|
540
|
-
|
|
538
|
+
var F = N ? void 0 : (M ? ne ? h : p : ne ? D : E)(e);
|
|
539
|
+
return r(F || e, function(n, r) {
|
|
540
|
+
F && (r = n, n = e[r]), i(j, r, me(n, t, o, r, e, T));
|
|
541
541
|
}), j;
|
|
542
542
|
}
|
|
543
|
-
t.exports =
|
|
543
|
+
t.exports = me;
|
|
544
544
|
})), Yt = /* @__PURE__ */ g(((e, t) => {
|
|
545
545
|
var n = u(), r = S(), i = "[object Symbol]";
|
|
546
546
|
function a(e) {
|
|
@@ -783,11 +783,11 @@ function wn(e, t) {
|
|
|
783
783
|
return;
|
|
784
784
|
}
|
|
785
785
|
if (typeof r == "string") {
|
|
786
|
-
e.innerHTML =
|
|
786
|
+
e.innerHTML = ne(r);
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
789
|
try {
|
|
790
|
-
e.innerHTML =
|
|
790
|
+
e.innerHTML = ne(r.dirty, { ...(0, Cn.default)(r, "dirty") });
|
|
791
791
|
return;
|
|
792
792
|
} catch (e) {
|
|
793
793
|
throw Error("[v-ui3n-html] ", e);
|
|
@@ -946,11 +946,11 @@ function Un(e, t, n) {
|
|
|
946
946
|
return;
|
|
947
947
|
}
|
|
948
948
|
let f = document.getElementById(Rn), p = f || document.createElement("div");
|
|
949
|
-
f || (p.id = Rn, p.classList.add("ui3n-title")), p.innerHTML = r, p.style.maxWidth = `${i}px`, p.style.color = a, p.style.backgroundColor = o, Object.keys(d).length && Object.assign(p.style, d), e.insertAdjacentElement("beforeend", p), Ln =
|
|
950
|
-
|
|
949
|
+
f || (p.id = Rn, p.classList.add("ui3n-title")), p.innerHTML = r, p.style.maxWidth = `${i}px`, p.style.color = a, p.style.backgroundColor = o, Object.keys(d).length && Object.assign(p.style, d), e.insertAdjacentElement("beforeend", p), Ln = M(e, p, () => {
|
|
950
|
+
re(e, p, {
|
|
951
951
|
placement: s,
|
|
952
952
|
strategy: c,
|
|
953
|
-
middleware: [
|
|
953
|
+
middleware: [ie(Vn(s, l, u))]
|
|
954
954
|
}).then(({ x: e, y: t }) => {
|
|
955
955
|
Object.assign(p.style, {
|
|
956
956
|
left: `${e}px`,
|
|
@@ -1049,7 +1049,7 @@ var Zn = {
|
|
|
1049
1049
|
}, a = qn(t);
|
|
1050
1050
|
n.removeEventListener("pointerdown", a.pointerdownEvent, i), n.removeEventListener("pointerup", a.pointerupEvent, i), n.removeEventListener("pointermove", a.pointermoveEvent, i);
|
|
1051
1051
|
}
|
|
1052
|
-
}, Qn = ["id"], $n = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1052
|
+
}, Qn = ["id"], $n = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1053
1053
|
__name: "ui3n-chip",
|
|
1054
1054
|
props: {
|
|
1055
1055
|
id: {},
|
|
@@ -1074,29 +1074,29 @@ var Zn = {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
emits: ["close", "click"],
|
|
1076
1076
|
setup(e, { emit: t }) {
|
|
1077
|
-
let n = e, r = t, i = xe(), a =
|
|
1077
|
+
let n = e, r = t, i = xe(), a = P(() => {
|
|
1078
1078
|
let e = Number(n.height);
|
|
1079
1079
|
return isNaN(e) ? 24 : e;
|
|
1080
|
-
}), o =
|
|
1080
|
+
}), o = P(() => `${a.value}px`), s = P(() => a.value - 4), c = P(() => {
|
|
1081
1081
|
let e = Math.round(a.value / 3);
|
|
1082
1082
|
return p.value ? `0 ${e}px 0 4px` : `0 ${e}px`;
|
|
1083
|
-
}), l =
|
|
1083
|
+
}), l = P(() => {
|
|
1084
1084
|
let e = Number(n.maxWidth);
|
|
1085
1085
|
return isNaN(e) ? String(n.maxWidth) : `${e}px`;
|
|
1086
|
-
}), u =
|
|
1086
|
+
}), u = P(() => n.color), d = P(() => {
|
|
1087
1087
|
let e = Number(n.textSize);
|
|
1088
1088
|
return isNaN(e) ? String(n.textSize) : `${e}px`;
|
|
1089
|
-
}), f =
|
|
1090
|
-
return (t, n) => (
|
|
1089
|
+
}), f = P(() => n.textColor), p = P(() => !!i.left);
|
|
1090
|
+
return (t, n) => (W(), L("div", {
|
|
1091
1091
|
id: e.id,
|
|
1092
|
-
class:
|
|
1092
|
+
class: V([
|
|
1093
1093
|
t.$style.ui3nChip,
|
|
1094
1094
|
e.round && t.$style.round,
|
|
1095
1095
|
e.plain && t.$style.plain,
|
|
1096
1096
|
e.closeable && t.$style.closeable,
|
|
1097
1097
|
p.value && t.$style.withIcon
|
|
1098
1098
|
]),
|
|
1099
|
-
style:
|
|
1099
|
+
style: H({
|
|
1100
1100
|
"--ui3n-chip-height": o.value,
|
|
1101
1101
|
"--ui3n-chip-max-width": l.value,
|
|
1102
1102
|
"--ui3n-chip-padding": c.value,
|
|
@@ -1106,12 +1106,12 @@ var Zn = {
|
|
|
1106
1106
|
}),
|
|
1107
1107
|
onClick: n[1] ||= (e) => r("click", e)
|
|
1108
1108
|
}, [
|
|
1109
|
-
|
|
1109
|
+
R("div", { class: V(t.$style.ui3nChipIcon) }, [q(t.$slots, "left", {
|
|
1110
1110
|
size: s.value,
|
|
1111
1111
|
color: f.value
|
|
1112
1112
|
})], 2),
|
|
1113
|
-
|
|
1114
|
-
e.closeable ? (
|
|
1113
|
+
R("div", { class: V(t.$style.ui3nChipBody) }, [q(t.$slots, "default")], 2),
|
|
1114
|
+
e.closeable ? (W(), F(A, {
|
|
1115
1115
|
key: 0,
|
|
1116
1116
|
type: "icon",
|
|
1117
1117
|
size: "small",
|
|
@@ -1120,7 +1120,7 @@ var Zn = {
|
|
|
1120
1120
|
"icon-color": "var(--color-icon-control-primary-default)",
|
|
1121
1121
|
disabled: e.disabled,
|
|
1122
1122
|
onClick: n[0] ||= $((e) => r("close"), ["stop", "prevent"])
|
|
1123
|
-
}, null, 8, ["disabled"])) :
|
|
1123
|
+
}, null, 8, ["disabled"])) : I("", !0)
|
|
1124
1124
|
], 14, Qn));
|
|
1125
1125
|
}
|
|
1126
1126
|
}), [["__cssModules", { $style: {
|
|
@@ -1133,7 +1133,7 @@ var Zn = {
|
|
|
1133
1133
|
ui3nChipIcon: "_ui3nChipIcon_prky3_33",
|
|
1134
1134
|
round: "_round_prky3_41",
|
|
1135
1135
|
plain: "_plain_prky3_50"
|
|
1136
|
-
} }]]), er = ["name"], tr = ["width", "height"], nr = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1136
|
+
} }]]), er = ["name"], tr = ["width", "height"], nr = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1137
1137
|
__name: "ui3n-drop-files",
|
|
1138
1138
|
props: {
|
|
1139
1139
|
name: { default: void 0 },
|
|
@@ -1147,7 +1147,7 @@ var Zn = {
|
|
|
1147
1147
|
},
|
|
1148
1148
|
emits: ["select"],
|
|
1149
1149
|
setup(e, { expose: t, emit: n }) {
|
|
1150
|
-
let r = Pn, i = e, a = n, o =
|
|
1150
|
+
let r = Pn, i = e, a = n, o = G(null), s = G(null), c = G(0), l = G(!1), u = G(!1);
|
|
1151
1151
|
function d(e) {
|
|
1152
1152
|
e.preventDefault(), l.value = !0;
|
|
1153
1153
|
}
|
|
@@ -1182,12 +1182,12 @@ var Zn = {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
return t({ clear: v }), X(() => i.name, (e) => {
|
|
1184
1184
|
!e && s.value && (s.value.value = "");
|
|
1185
|
-
}),
|
|
1185
|
+
}), U(() => {
|
|
1186
1186
|
_();
|
|
1187
|
-
}), (t, n) => we((
|
|
1187
|
+
}), (t, n) => we((W(), L("div", {
|
|
1188
1188
|
ref_key: "wrapperElement",
|
|
1189
1189
|
ref: o,
|
|
1190
|
-
class:
|
|
1190
|
+
class: V([
|
|
1191
1191
|
t.$style.ui3nDropFiles,
|
|
1192
1192
|
e.permanentDisplay && t.$style.ui3nDropFilesWithBorder,
|
|
1193
1193
|
(l.value || u.value) && t.$style.ui3nDropFilesWithAccentBorder
|
|
@@ -1196,7 +1196,7 @@ var Zn = {
|
|
|
1196
1196
|
onDragover: n[2] ||= $(() => {}, ["prevent"]),
|
|
1197
1197
|
onDragleave: f
|
|
1198
1198
|
}, [
|
|
1199
|
-
e.name ? (
|
|
1199
|
+
e.name ? (W(), L("input", {
|
|
1200
1200
|
key: 0,
|
|
1201
1201
|
ref_key: "fileInput",
|
|
1202
1202
|
ref: s,
|
|
@@ -1204,33 +1204,33 @@ var Zn = {
|
|
|
1204
1204
|
name: e.name,
|
|
1205
1205
|
multiple: "",
|
|
1206
1206
|
hidden: ""
|
|
1207
|
-
}, null, 8, er)) :
|
|
1207
|
+
}, null, 8, er)) : I("", !0),
|
|
1208
1208
|
q(t.$slots, "default"),
|
|
1209
|
-
e.permanentDisplay || l.value || u.value ? (
|
|
1209
|
+
e.permanentDisplay || l.value || u.value ? (W(), L("div", {
|
|
1210
1210
|
key: 1,
|
|
1211
|
-
class:
|
|
1211
|
+
class: V(t.$style.ui3nDropFilesDropzone),
|
|
1212
1212
|
onDragenter: m,
|
|
1213
1213
|
onDragover: p,
|
|
1214
1214
|
onDragleave: h,
|
|
1215
1215
|
onDrop: g
|
|
1216
1216
|
}, [
|
|
1217
|
-
|
|
1218
|
-
|
|
1217
|
+
R("h3", { class: V(t.$style.ui3nDropFilesDropzoneTitle) }, J(e.title), 3),
|
|
1218
|
+
R("div", { class: V(t.$style.ui3nDropFilesDropzoneIcon) }, [(W(), L("svg", {
|
|
1219
1219
|
width: c.value * .35,
|
|
1220
1220
|
height: c.value * .35,
|
|
1221
1221
|
viewBox: "0 0 192 192",
|
|
1222
1222
|
fill: "none",
|
|
1223
1223
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1224
|
-
}, [...n[3] ||= [
|
|
1224
|
+
}, [...n[3] ||= [R("path", {
|
|
1225
1225
|
d: "M51 152C47.9333 152 45.3333 150.934 43.2 148.8C41.0667 146.667 40 144.067 40 141V119.8H46.2V141C46.2 142.2 46.7 143.3 47.7 144.3C48.7 145.3 49.8 145.8 51 145.8H141C142.2 145.8 143.3 145.3 144.3 144.3C145.3 143.3 145.8 142.2 145.8 141V119.8H152V141C152 144.067 150.933 146.667 148.8 148.8C146.667 150.934 144.067 152 141 152H51ZM93 122.4V49.2002L72.8 69.2002L68.4 65.0002L96 37.2002L123.6 65.0002L119.2 69.2002L99 49.2002V122.4H93Z",
|
|
1226
1226
|
fill: "var(--color-icon-control-primary-default)"
|
|
1227
1227
|
}, null, -1)]], 8, tr))], 2),
|
|
1228
|
-
|
|
1229
|
-
class:
|
|
1228
|
+
R("div", {
|
|
1229
|
+
class: V(t.$style.ui3nDropFilesDropzoneAdditional),
|
|
1230
1230
|
onDragenter: n[0] ||= $(() => {}, ["stop", "prevent"]),
|
|
1231
1231
|
onDragleave: n[1] ||= $(() => {}, ["stop", "prevent"])
|
|
1232
1232
|
}, [q(t.$slots, "additional-text")], 34)
|
|
1233
|
-
], 34)) :
|
|
1233
|
+
], 34)) : I("", !0)
|
|
1234
1234
|
], 34)), [[Y(r), () => _()]]);
|
|
1235
1235
|
}
|
|
1236
1236
|
}), [["__cssModules", { $style: {
|
|
@@ -1241,7 +1241,7 @@ var Zn = {
|
|
|
1241
1241
|
ui3nDropFilesDropzoneTitle: "_ui3nDropFilesDropzoneTitle_gssdx_33",
|
|
1242
1242
|
ui3nDropFilesDropzoneIcon: "_ui3nDropFilesDropzoneIcon_gssdx_41",
|
|
1243
1243
|
ui3nDropFilesDropzoneAdditional: "_ui3nDropFilesDropzoneAdditional_gssdx_53"
|
|
1244
|
-
} }]]), rr = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1244
|
+
} }]]), rr = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1245
1245
|
__name: "ui3n-emoji",
|
|
1246
1246
|
props: {
|
|
1247
1247
|
emoji: {},
|
|
@@ -1253,7 +1253,7 @@ var Zn = {
|
|
|
1253
1253
|
},
|
|
1254
1254
|
emits: ["click"],
|
|
1255
1255
|
setup(e, { emit: t }) {
|
|
1256
|
-
let n = e, r = t, i =
|
|
1256
|
+
let n = e, r = t, i = G(null), a = P(() => te[n.emoji]), o = P(() => {
|
|
1257
1257
|
let e = isNaN(Number(n.size)) ? String(n.size) : `${n.size}px`;
|
|
1258
1258
|
return {
|
|
1259
1259
|
"--ui3n-emoji-size": e,
|
|
@@ -1264,8 +1264,8 @@ var Zn = {
|
|
|
1264
1264
|
e.stopPropagation(), r("click", e);
|
|
1265
1265
|
}
|
|
1266
1266
|
return X(() => n.emoji, (e) => {
|
|
1267
|
-
Object.keys(
|
|
1268
|
-
}, { immediate: !0 }), (t, n) => (
|
|
1267
|
+
Object.keys(te).includes(e) || console.error(`[Ui3nEmoji] Invalid emoticon: ${e}`);
|
|
1268
|
+
}, { immediate: !0 }), (t, n) => (W(), L("div", ue({
|
|
1269
1269
|
ref_key: "emojiElement",
|
|
1270
1270
|
ref: i,
|
|
1271
1271
|
class: [t.$style.ui3nEmoji, e.readonly && t.$style.readonly],
|
|
@@ -1285,7 +1285,7 @@ var Zn = {
|
|
|
1285
1285
|
"maxlength",
|
|
1286
1286
|
"minlength",
|
|
1287
1287
|
"value"
|
|
1288
|
-
], or = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1288
|
+
], or = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1289
1289
|
__name: "ui3n-input",
|
|
1290
1290
|
props: {
|
|
1291
1291
|
id: {},
|
|
@@ -1344,7 +1344,7 @@ var Zn = {
|
|
|
1344
1344
|
"update:valid"
|
|
1345
1345
|
],
|
|
1346
1346
|
setup(e, { expose: t, emit: n }) {
|
|
1347
|
-
let r = e, i = n, a = xe(), o =
|
|
1347
|
+
let r = e, i = n, a = xe(), o = G(null), s = G(""), c = G(!1), l = G(!1), u = G(""), d = P(() => !!a["prepend-icon"]), f = P(() => !!a["append-icon"]), p = P(() => r.displayStateMode === "success" && r.displayStateWithIcon && !l.value), m = P(() => !r.disabled && r.clearable && !!s.value && !p.value), h = P(() => p.value || m.value || f.value), g = P(() => !!u.value || !!(r.displayStateMode && r.displayStateMessage)), _ = P(() => !!u.value || r.displayStateMode === "error" && !!r.displayStateMessage), v = P(() => r.displayStateMode === "success" && !!r.displayStateMessage);
|
|
1348
1348
|
function y(e) {
|
|
1349
1349
|
return e.target.value;
|
|
1350
1350
|
}
|
|
@@ -1361,7 +1361,7 @@ var Zn = {
|
|
|
1361
1361
|
l.value = !0, i("focus", e);
|
|
1362
1362
|
}
|
|
1363
1363
|
function S(e) {
|
|
1364
|
-
|
|
1364
|
+
de(() => {
|
|
1365
1365
|
l.value = !1, i("blur", e);
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
@@ -1397,16 +1397,16 @@ var Zn = {
|
|
|
1397
1397
|
isDirty: c,
|
|
1398
1398
|
isFocused: l,
|
|
1399
1399
|
clearValue: O
|
|
1400
|
-
}),
|
|
1400
|
+
}), U(() => {
|
|
1401
1401
|
s.value = r.modelValue ?? "", o.value && (i("init", o.value), r.autofocus && o.value.focus()), r.validateAtStartup && (c.value = !0, b(s.value));
|
|
1402
1402
|
}), X(() => r.modelValue, (e) => {
|
|
1403
1403
|
let t = e ?? "";
|
|
1404
1404
|
t !== s.value && (s.value = t, b(t, !0));
|
|
1405
1405
|
}), X(() => r.name, (e) => {
|
|
1406
1406
|
e || O();
|
|
1407
|
-
}), (t, n) => (
|
|
1407
|
+
}), (t, n) => (W(), L("div", {
|
|
1408
1408
|
id: e.id,
|
|
1409
|
-
class:
|
|
1409
|
+
class: V([
|
|
1410
1410
|
t.$style.ui3nInput,
|
|
1411
1411
|
e.size === "large" && t.$style.large,
|
|
1412
1412
|
e.label && t.$style.withLabel,
|
|
@@ -1416,20 +1416,20 @@ var Zn = {
|
|
|
1416
1416
|
e.displayStateMode === "success" && t.$style.success
|
|
1417
1417
|
])
|
|
1418
1418
|
}, [
|
|
1419
|
-
e.label ? (
|
|
1419
|
+
e.label ? (W(), L("label", {
|
|
1420
1420
|
key: 0,
|
|
1421
|
-
class:
|
|
1422
|
-
}, J(e.label), 3)) :
|
|
1423
|
-
|
|
1421
|
+
class: V(t.$style.ui3nInputLabel)
|
|
1422
|
+
}, J(e.label), 3)) : I("", !0),
|
|
1423
|
+
R("div", { class: V([
|
|
1424
1424
|
t.$style.inputWrapper,
|
|
1425
1425
|
d.value && t.$style.withPrepend,
|
|
1426
1426
|
h.value && t.$style.withAppend
|
|
1427
1427
|
]) }, [
|
|
1428
|
-
d.value ? (
|
|
1428
|
+
d.value ? (W(), L("div", {
|
|
1429
1429
|
key: 0,
|
|
1430
|
-
class:
|
|
1431
|
-
}, [q(t.$slots, "prepend-icon")], 2)) :
|
|
1432
|
-
|
|
1430
|
+
class: V(t.$style.prependIconSlot)
|
|
1431
|
+
}, [q(t.$slots, "prepend-icon")], 2)) : I("", !0),
|
|
1432
|
+
R("input", {
|
|
1433
1433
|
ref_key: "inputElement",
|
|
1434
1434
|
ref: o,
|
|
1435
1435
|
autocomplete: e.autocomplete,
|
|
@@ -1441,7 +1441,7 @@ var Zn = {
|
|
|
1441
1441
|
maxlength: e.maxlength,
|
|
1442
1442
|
minlength: e.minlength,
|
|
1443
1443
|
value: s.value,
|
|
1444
|
-
class:
|
|
1444
|
+
class: V(t.$style.ui3nInputField),
|
|
1445
1445
|
onInput: w,
|
|
1446
1446
|
onKeydown: [
|
|
1447
1447
|
Q(T, ["enter"]),
|
|
@@ -1452,18 +1452,18 @@ var Zn = {
|
|
|
1452
1452
|
onBlur: S,
|
|
1453
1453
|
onChange: C
|
|
1454
1454
|
}, null, 42, ar),
|
|
1455
|
-
h.value ? (
|
|
1455
|
+
h.value ? (W(), L("div", {
|
|
1456
1456
|
key: 1,
|
|
1457
|
-
class:
|
|
1457
|
+
class: V(t.$style.appendIconSlot)
|
|
1458
1458
|
}, [
|
|
1459
|
-
p.value ? (
|
|
1459
|
+
p.value ? (W(), F(ee, {
|
|
1460
1460
|
key: 0,
|
|
1461
1461
|
icon: "round-check-circle-outline",
|
|
1462
1462
|
size: 16,
|
|
1463
1463
|
color: "var(--success-content-default)",
|
|
1464
|
-
class:
|
|
1465
|
-
}, null, 8, ["class"])) :
|
|
1466
|
-
m.value ? (
|
|
1464
|
+
class: V(t.$style.appendSlotItem)
|
|
1465
|
+
}, null, 8, ["class"])) : I("", !0),
|
|
1466
|
+
m.value ? (W(), F(A, {
|
|
1467
1467
|
key: 1,
|
|
1468
1468
|
type: "icon",
|
|
1469
1469
|
size: "small",
|
|
@@ -1471,22 +1471,22 @@ var Zn = {
|
|
|
1471
1471
|
icon: "round-close",
|
|
1472
1472
|
"icon-size": "16",
|
|
1473
1473
|
"icon-color": "var(--color-icon-control-accent-default)",
|
|
1474
|
-
class:
|
|
1474
|
+
class: V(t.$style.appendSlotItem),
|
|
1475
1475
|
onMousedown: n[0] ||= $(() => {}, ["prevent"]),
|
|
1476
1476
|
onTouchstart: n[1] ||= $(() => {}, ["prevent"]),
|
|
1477
1477
|
onClick: O
|
|
1478
|
-
}, null, 8, ["class"])) :
|
|
1479
|
-
f.value ? q(t.$slots, "append-icon", { key: 2 }) :
|
|
1480
|
-
], 2)) :
|
|
1478
|
+
}, null, 8, ["class"])) : I("", !0),
|
|
1479
|
+
f.value ? q(t.$slots, "append-icon", { key: 2 }) : I("", !0)
|
|
1480
|
+
], 2)) : I("", !0)
|
|
1481
1481
|
], 2),
|
|
1482
|
-
g.value ? (
|
|
1482
|
+
g.value ? (W(), L("div", {
|
|
1483
1483
|
key: 1,
|
|
1484
|
-
class:
|
|
1484
|
+
class: V([
|
|
1485
1485
|
t.$style.ui3nInputFieldMessage,
|
|
1486
1486
|
_.value && t.$style.ui3nInputErrorMessage,
|
|
1487
1487
|
v.value && t.$style.ui3nInputSuccessMessage
|
|
1488
1488
|
])
|
|
1489
|
-
}, J(u.value || e.displayStateMessage), 3)) :
|
|
1489
|
+
}, J(u.value || e.displayStateMessage), 3)) : I("", !0)
|
|
1490
1490
|
], 10, ir));
|
|
1491
1491
|
}
|
|
1492
1492
|
}), [["__cssModules", { $style: {
|
|
@@ -1647,7 +1647,7 @@ var Zn = {
|
|
|
1647
1647
|
"multiple",
|
|
1648
1648
|
"accept",
|
|
1649
1649
|
"disabled"
|
|
1650
|
-
], Ar = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1650
|
+
], Ar = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1651
1651
|
__name: "ui3n-input-file",
|
|
1652
1652
|
props: {
|
|
1653
1653
|
id: {},
|
|
@@ -1662,7 +1662,7 @@ var Zn = {
|
|
|
1662
1662
|
},
|
|
1663
1663
|
emits: ["update:modelValue", "error"],
|
|
1664
1664
|
setup(e, { expose: n, emit: r }) {
|
|
1665
|
-
let i = e, a = r, o = i.id || t(4), s =
|
|
1665
|
+
let i = e, a = r, o = i.id || t(4), s = G(null);
|
|
1666
1666
|
function c(e) {
|
|
1667
1667
|
i.disabled || (e.stopImmediatePropagation(), s.value?.click());
|
|
1668
1668
|
}
|
|
@@ -1702,11 +1702,11 @@ var Zn = {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
return n({ clear: h }), X(() => i.name, (e) => {
|
|
1704
1704
|
e || h();
|
|
1705
|
-
}), (t, n) => (
|
|
1705
|
+
}), (t, n) => (W(), L("div", { class: V(t.$style.ui3nInputFile) }, [R("label", {
|
|
1706
1706
|
for: Y(o),
|
|
1707
|
-
class:
|
|
1707
|
+
class: V([t.$style.label, e.disabled && t.$style.disabled]),
|
|
1708
1708
|
onClick: $(c, ["stop", "prevent"])
|
|
1709
|
-
}, [q(t.$slots, "default", {}, () => [
|
|
1709
|
+
}, [q(t.$slots, "default", {}, () => [ce(J(e.buttonText), 1)])], 10, Or), R("input", {
|
|
1710
1710
|
id: Y(o),
|
|
1711
1711
|
ref_key: "fileInput",
|
|
1712
1712
|
ref: s,
|
|
@@ -1731,7 +1731,7 @@ var Zn = {
|
|
|
1731
1731
|
"rows",
|
|
1732
1732
|
"max-rows",
|
|
1733
1733
|
"disabled"
|
|
1734
|
-
], Nr = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1734
|
+
], Nr = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1735
1735
|
__name: "ui3n-text",
|
|
1736
1736
|
props: {
|
|
1737
1737
|
id: {},
|
|
@@ -1764,7 +1764,7 @@ var Zn = {
|
|
|
1764
1764
|
"update:valid"
|
|
1765
1765
|
],
|
|
1766
1766
|
setup(e, { expose: t, emit: n }) {
|
|
1767
|
-
let r = e, i = n, a =
|
|
1767
|
+
let r = e, i = n, a = G(null), o = G(""), s = G(!1), c = G(!1), l = G("");
|
|
1768
1768
|
function u(e, t = !1) {
|
|
1769
1769
|
if (l.value = "", r.rules && r.rules.length) {
|
|
1770
1770
|
for (let t of r.rules) if (typeof t == "function") {
|
|
@@ -1807,26 +1807,26 @@ var Zn = {
|
|
|
1807
1807
|
function _() {
|
|
1808
1808
|
o.value = "", l.value = "", s.value = !1, a.value && (a.value.value = ""), i("update:modelValue", ""), i("input", ""), i("change", ""), i("update:valid", !0);
|
|
1809
1809
|
}
|
|
1810
|
-
return t({ clear: _ }),
|
|
1810
|
+
return t({ clear: _ }), U(() => {
|
|
1811
1811
|
a.value && (D(a.value), i("init", a.value)), r.validateAtStartup && u(o.value);
|
|
1812
1812
|
}), X(() => r.name, (e) => {
|
|
1813
1813
|
e || _();
|
|
1814
1814
|
}), X(() => r.modelValue, (e, t) => {
|
|
1815
1815
|
(e ?? "") !== (t ?? "") && (o.value = e ?? "", u(o.value, s.value || r.validateAtStartup));
|
|
1816
|
-
}, { immediate: !0 }), (t, n) => (
|
|
1816
|
+
}, { immediate: !0 }), (t, n) => (W(), L("div", {
|
|
1817
1817
|
id: e.id,
|
|
1818
|
-
class:
|
|
1818
|
+
class: V([
|
|
1819
1819
|
t.$style.ui3nText,
|
|
1820
1820
|
e.disabled && t.$style.disabled,
|
|
1821
1821
|
c.value && t.$style.focused,
|
|
1822
1822
|
l.value && t.$style.hasError
|
|
1823
1823
|
])
|
|
1824
1824
|
}, [
|
|
1825
|
-
e.label ? (
|
|
1825
|
+
e.label ? (W(), L("label", {
|
|
1826
1826
|
key: 0,
|
|
1827
|
-
class:
|
|
1828
|
-
}, J(e.label), 3)) :
|
|
1829
|
-
|
|
1827
|
+
class: V(t.$style.label)
|
|
1828
|
+
}, J(e.label), 3)) : I("", !0),
|
|
1829
|
+
R("div", { class: V(t.$style.body) }, [R("textarea", ue({
|
|
1830
1830
|
ref_key: "textareaElement",
|
|
1831
1831
|
ref: a,
|
|
1832
1832
|
class: t.$style.content,
|
|
@@ -1847,10 +1847,10 @@ var Zn = {
|
|
|
1847
1847
|
onFocusin: d,
|
|
1848
1848
|
onFocusout: f
|
|
1849
1849
|
}), null, 16, Mr)], 2),
|
|
1850
|
-
l.value ? (
|
|
1850
|
+
l.value ? (W(), L("div", {
|
|
1851
1851
|
key: 1,
|
|
1852
|
-
class:
|
|
1853
|
-
}, J(l.value), 3)) :
|
|
1852
|
+
class: V(t.$style.errorBlock)
|
|
1853
|
+
}, J(l.value), 3)) : I("", !0)
|
|
1854
1854
|
], 10, jr));
|
|
1855
1855
|
}
|
|
1856
1856
|
}), [["__cssModules", { $style: {
|
|
@@ -1868,7 +1868,7 @@ var Zn = {
|
|
|
1868
1868
|
"disabled",
|
|
1869
1869
|
"checked",
|
|
1870
1870
|
"value"
|
|
1871
|
-
], Ir = ["tabindex"], Lr = ["width", "height"], Rr = ["width", "height"], zr = /* @__PURE__ */ k(/* @__PURE__ */
|
|
1871
|
+
], Ir = ["tabindex"], Lr = ["width", "height"], Rr = ["width", "height"], zr = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
1872
1872
|
__name: "ui3n-checkbox",
|
|
1873
1873
|
props: {
|
|
1874
1874
|
id: {},
|
|
@@ -1910,16 +1910,16 @@ var Zn = {
|
|
|
1910
1910
|
},
|
|
1911
1911
|
emits: ["change", "update:modelValue"],
|
|
1912
1912
|
setup(e, { expose: t, emit: n }) {
|
|
1913
|
-
let r = O, i = e, a = n, o = xe(), s = ye(), c =
|
|
1913
|
+
let r = O, i = e, a = n, o = xe(), s = ye(), c = G(null), l = G(i.modelValue), u = G(i.indeterminate), d = P(() => u.value ? "indeterminate" : l.value === i.checkedValue ? "checked" : "unchecked"), f = P(() => typeof l.value == "boolean" ? l.value ? "on" : "" : String(l.value)), p = P(() => {
|
|
1914
1914
|
let e = parseFloat(String(i.size));
|
|
1915
1915
|
return isNaN(e) ? 12 : e - 4;
|
|
1916
|
-
}), m =
|
|
1916
|
+
}), m = P(() => ({
|
|
1917
1917
|
"--ui3n-checkbox-size": typeof i.size == "number" ? `${i.size}px` : i.size,
|
|
1918
1918
|
"--ui3n-checkbox-color": i.color
|
|
1919
|
-
})), h =
|
|
1919
|
+
})), h = P(() => {
|
|
1920
1920
|
let e = [s.ui3nCheckbox];
|
|
1921
1921
|
return i.disabled && e.push(s.disabled), !o.default && e.push(s.noLabel), e;
|
|
1922
|
-
}), g =
|
|
1922
|
+
}), g = P(() => {
|
|
1923
1923
|
let e = [s.ui3nCheckboxBody];
|
|
1924
1924
|
return d.value === "unchecked" ? e.push(s.unfilled) : e.push(s.filled), e;
|
|
1925
1925
|
});
|
|
@@ -1931,17 +1931,17 @@ var Zn = {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return t({ clear: v }), X(() => i.name, (e) => {
|
|
1933
1933
|
e || v();
|
|
1934
|
-
}), X(() => i.modelValue, (e) => l.value = e), X(() => i.indeterminate, (e) => u.value = e),
|
|
1934
|
+
}), X(() => i.modelValue, (e) => l.value = e), X(() => i.indeterminate, (e) => u.value = e), fe(() => {
|
|
1935
1935
|
let e = typeof i.checkedValue, t = typeof i.uncheckedValue, n = typeof i.modelValue;
|
|
1936
1936
|
if (e !== t || e !== n || t !== n) throw Error("[Ui3nCheckbox] types of \"value\", \"checkedValue\" and \"uncheckedValue\" are different");
|
|
1937
|
-
}), (t, n) => (
|
|
1937
|
+
}), (t, n) => (W(), L("div", {
|
|
1938
1938
|
ref_key: "checkboxEl",
|
|
1939
1939
|
ref: c,
|
|
1940
1940
|
id: e.id,
|
|
1941
|
-
class:
|
|
1942
|
-
style:
|
|
1941
|
+
class: V(h.value),
|
|
1942
|
+
style: H(m.value)
|
|
1943
1943
|
}, [
|
|
1944
|
-
|
|
1944
|
+
R("input", {
|
|
1945
1945
|
type: "checkbox",
|
|
1946
1946
|
style: { display: "none" },
|
|
1947
1947
|
name: e.name,
|
|
@@ -1950,40 +1950,40 @@ var Zn = {
|
|
|
1950
1950
|
checked: d.value !== "unchecked",
|
|
1951
1951
|
value: f.value
|
|
1952
1952
|
}, null, 8, Fr),
|
|
1953
|
-
we((
|
|
1954
|
-
class:
|
|
1953
|
+
we((W(), L("div", {
|
|
1954
|
+
class: V(g.value),
|
|
1955
1955
|
tabindex: e.disabled ? -1 : 0,
|
|
1956
1956
|
onKeydown: [Q(_, ["space"]), Q(_, ["enter"])],
|
|
1957
1957
|
onClick: _
|
|
1958
|
-
}, [d.value === "checked" ? (
|
|
1958
|
+
}, [d.value === "checked" ? (W(), L("svg", {
|
|
1959
1959
|
key: 0,
|
|
1960
1960
|
width: p.value,
|
|
1961
1961
|
height: p.value,
|
|
1962
1962
|
viewBox: "0 0 24 24",
|
|
1963
1963
|
fill: "none",
|
|
1964
|
-
class:
|
|
1965
|
-
}, [...n[0] ||= [
|
|
1964
|
+
class: V(t.$style.ui3nCheckboxIcon)
|
|
1965
|
+
}, [...n[0] ||= [R("g", { id: "SVGRepo_iconCarrier" }, [R("path", {
|
|
1966
1966
|
d: "M20.0001 7L9.0001 18L4 13",
|
|
1967
1967
|
stroke: "#fff",
|
|
1968
1968
|
"stroke-width": "3",
|
|
1969
1969
|
"stroke-linecap": "round",
|
|
1970
1970
|
"stroke-linejoin": "round"
|
|
1971
|
-
})], -1)]], 10, Lr)) :
|
|
1971
|
+
})], -1)]], 10, Lr)) : I("", !0), d.value === "indeterminate" ? (W(), L("svg", {
|
|
1972
1972
|
key: 1,
|
|
1973
1973
|
width: p.value,
|
|
1974
1974
|
height: p.value,
|
|
1975
1975
|
viewBox: "0 0 24 24",
|
|
1976
1976
|
fill: "none",
|
|
1977
|
-
class:
|
|
1978
|
-
}, [...n[1] ||= [
|
|
1977
|
+
class: V(t.$style.ui3nCheckboxIcon)
|
|
1978
|
+
}, [...n[1] ||= [R("g", { id: "SVGRepo_iconCarrier" }, [R("path", {
|
|
1979
1979
|
d: "M7 12L17 12",
|
|
1980
1980
|
stroke: "#fff",
|
|
1981
1981
|
"stroke-width": "3",
|
|
1982
1982
|
"stroke-linecap": "round",
|
|
1983
1983
|
"stroke-linejoin": "round"
|
|
1984
|
-
})], -1)]], 10, Rr)) :
|
|
1985
|
-
|
|
1986
|
-
class:
|
|
1984
|
+
})], -1)]], 10, Rr)) : I("", !0)], 42, Ir)), [[Y(r)]]),
|
|
1985
|
+
R("div", {
|
|
1986
|
+
class: V(t.$style.ui3nCheckboxLabel),
|
|
1987
1987
|
onClick: _
|
|
1988
1988
|
}, [q(t.$slots, "default")], 2)
|
|
1989
1989
|
], 14, Pr));
|
|
@@ -1997,7 +1997,7 @@ var Zn = {
|
|
|
1997
1997
|
ui3nCheckboxIcon: "_ui3nCheckboxIcon_s0t61_78",
|
|
1998
1998
|
ui3nCheckboxLabel: "_ui3nCheckboxLabel_s0t61_82",
|
|
1999
1999
|
disabled: "_disabled_s0t61_90"
|
|
2000
|
-
} }]]), Br = /* @__PURE__ */
|
|
2000
|
+
} }]]), Br = /* @__PURE__ */ B({
|
|
2001
2001
|
__name: "ui3n-table-sort-icon",
|
|
2002
2002
|
props: {
|
|
2003
2003
|
size: { default: 16 },
|
|
@@ -2005,15 +2005,15 @@ var Zn = {
|
|
|
2005
2005
|
value: {}
|
|
2006
2006
|
},
|
|
2007
2007
|
setup(e) {
|
|
2008
|
-
let t = e, n =
|
|
2008
|
+
let t = e, n = P(() => t.value === "asc" ? "round-arrow-upward" : "round-arrow-downward"), r = P(() => {
|
|
2009
2009
|
let e = Number(t.size);
|
|
2010
2010
|
return isNaN(e) ? 16 : e;
|
|
2011
2011
|
});
|
|
2012
|
-
return (t, i) => (
|
|
2012
|
+
return (t, i) => (W(), F(oe, {
|
|
2013
2013
|
mode: "out-in",
|
|
2014
2014
|
name: "fade"
|
|
2015
2015
|
}, {
|
|
2016
|
-
default: Z(() => [(
|
|
2016
|
+
default: Z(() => [(W(), F(ee, {
|
|
2017
2017
|
key: n.value,
|
|
2018
2018
|
icon: n.value,
|
|
2019
2019
|
size: r.value,
|
|
@@ -2044,10 +2044,10 @@ function qr(e) {
|
|
|
2044
2044
|
return !e || typeof e != "string" ? !1 : Kr.test(e.trim());
|
|
2045
2045
|
}
|
|
2046
2046
|
function Jr(e, t, n) {
|
|
2047
|
-
let r =
|
|
2047
|
+
let r = G(null), i = G({
|
|
2048
2048
|
sortOrder: S(),
|
|
2049
2049
|
fieldAsRowKey: x()
|
|
2050
|
-
}), a = i.value?.fieldAsRowKey ?
|
|
2050
|
+
}), a = i.value?.fieldAsRowKey ? G([]) : G(/* @__PURE__ */ new Set()), o = G(!1), s = G(null), c = null, l = P(() => !!i.value.fieldAsRowKey), u = P(() => e.head.filter((e) => !e.hidden)), d = P(() => l.value ? e.body.content.filter((e) => a.value.includes(e[i.value.fieldAsRowKey])) : Array.from(a.value)), f = P(() => l.value ? (0, Tr.default)(a.value) : a.value.size), p = P(() => e.config?.selectable === "multiple" && o.value);
|
|
2051
2051
|
function m() {
|
|
2052
2052
|
let { columnStyle: t } = e.config ?? {}, n = [];
|
|
2053
2053
|
for (let e of u.value) {
|
|
@@ -2059,14 +2059,14 @@ function Jr(e, t, n) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
return n;
|
|
2061
2061
|
}
|
|
2062
|
-
let h =
|
|
2062
|
+
let h = P(() => {
|
|
2063
2063
|
let t = Number(e.config?.stickyColumns);
|
|
2064
2064
|
return !Number.isFinite(t) || t < 1 ? 0 : Math.floor(t);
|
|
2065
|
-
}), g =
|
|
2065
|
+
}), g = P(() => {
|
|
2066
2066
|
if (!h.value) return 0;
|
|
2067
2067
|
let e = Math.max(0, u.value.length - 1);
|
|
2068
2068
|
return !e || m().length ? 0 : Math.min(h.value, e);
|
|
2069
|
-
}), _ =
|
|
2069
|
+
}), _ = P(() => g.value > 0), v = P(() => {
|
|
2070
2070
|
let t = g.value;
|
|
2071
2071
|
if (!t) return [];
|
|
2072
2072
|
let { columnStyle: n } = e.config ?? {}, r = u.value.slice(0, t).map((e) => (0, Ur.default)(n, [e.key, "width"], "0px").trim()), i = [];
|
|
@@ -2082,14 +2082,14 @@ function Jr(e, t, n) {
|
|
|
2082
2082
|
i.push(`calc(${r.slice(0, e).join(" + ")})`);
|
|
2083
2083
|
}
|
|
2084
2084
|
return i;
|
|
2085
|
-
}), y =
|
|
2085
|
+
}), y = P(() => {
|
|
2086
2086
|
if (!r.value) return "100%";
|
|
2087
2087
|
let { config: t = {}, head: n } = e, { columnStyle: i } = t, a = n.filter((e) => !e.hidden).map((e) => e.key), o = _.value;
|
|
2088
2088
|
return a.reduce((e, t, n) => {
|
|
2089
2089
|
let r = o ? (0, Ur.default)(i, [t, "width"]) : (0, Ur.default)(i, [t, "width"], "1fr");
|
|
2090
2090
|
return e = n === 0 ? `${r}` : `${e} ${r}`, e;
|
|
2091
2091
|
}, "");
|
|
2092
|
-
}), b =
|
|
2092
|
+
}), b = P(() => !e.config?.minHeightUnusedPlace || isNaN(Number(e.config?.minHeightUnusedPlace)) ? {} : { minHeight: `${Number(e.config?.minHeightUnusedPlace || 0)}px` });
|
|
2093
2093
|
function x() {
|
|
2094
2094
|
let { config: t = {}, body: n } = e, { fieldAsRowKey: r } = t;
|
|
2095
2095
|
if (r && r in (0, Ur.default)(n, ["content", 0], {})) return r;
|
|
@@ -2156,11 +2156,11 @@ function Jr(e, t, n) {
|
|
|
2156
2156
|
function j() {
|
|
2157
2157
|
l.value ? a.value = [] : a.value.clear(), o.value = !1, t("select:row", []);
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function te() {
|
|
2160
2160
|
c?.disconnect(), c = null;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2163
|
-
|
|
2162
|
+
function ne() {
|
|
2163
|
+
te();
|
|
2164
2164
|
let e = n?.value ?? r.value;
|
|
2165
2165
|
if (!e || !_.value) {
|
|
2166
2166
|
s.value = null;
|
|
@@ -2193,11 +2193,11 @@ function Jr(e, t, n) {
|
|
|
2193
2193
|
r,
|
|
2194
2194
|
_,
|
|
2195
2195
|
n
|
|
2196
|
-
],
|
|
2196
|
+
], ne, {
|
|
2197
2197
|
immediate: !0,
|
|
2198
2198
|
flush: "post"
|
|
2199
|
-
}),
|
|
2200
|
-
|
|
2199
|
+
}), pe(() => {
|
|
2200
|
+
te();
|
|
2201
2201
|
}), {
|
|
2202
2202
|
tableEl: r,
|
|
2203
2203
|
tableColumnWidth: y,
|
|
@@ -2225,7 +2225,7 @@ function Jr(e, t, n) {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
//#endregion
|
|
2227
2227
|
//#region src/components/ui3n-scrollbar/ui3n-scrollbar.vue?vue&type=script&setup=true&lang.ts
|
|
2228
|
-
var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */
|
|
2228
|
+
var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
2229
2229
|
__name: "ui3n-scrollbar",
|
|
2230
2230
|
props: {
|
|
2231
2231
|
axes: { default: "both" },
|
|
@@ -2262,59 +2262,59 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2262
2262
|
"scroll:horizontal"
|
|
2263
2263
|
],
|
|
2264
2264
|
setup(e, { expose: t, emit: n }) {
|
|
2265
|
-
let r = e, i = n, a =
|
|
2265
|
+
let r = e, i = n, a = G(null), o = G(null), s = G(null), c = G(null), l = G(null), u = P(() => r.axes ?? "both"), d = P(() => r.vertical ?? {}), f = P(() => r.horizontal ?? {}), p = G(0), m = G(0), h = G(0), g = G(0), _ = G(0), v = G(0), y = G(0), b = G(0), x = G(!1), S = G(!1), C = G(!1), w = G(!1), T = null, E, D = 0, O = 0, k = 0, A = 0, ee = P(() => g.value > _.value), j = P(() => p.value > m.value), te = P(() => S.value ? !0 : ee.value && (C.value || w.value)), ne = P(() => x.value ? !0 : j.value && (C.value || w.value)), M = P(() => u.value === "vertical" || u.value === "both"), re = P(() => u.value === "horizontal" || u.value === "both"), ie = P(() => M.value && re.value && ee.value && j.value), N = P(() => {
|
|
2266
2266
|
let e = Number(d.value.trackWidth ?? 6);
|
|
2267
2267
|
return isNaN(e) ? 6 : e;
|
|
2268
|
-
}),
|
|
2268
|
+
}), ae = P(() => {
|
|
2269
2269
|
let e = Number(f.value.trackHeight ?? 6);
|
|
2270
2270
|
return isNaN(e) ? 6 : e;
|
|
2271
|
-
}),
|
|
2271
|
+
}), oe = P(() => {
|
|
2272
2272
|
let e = d.value.trackOffsetTop;
|
|
2273
2273
|
if (e == null || e === "") return 0;
|
|
2274
2274
|
let t = Number(e);
|
|
2275
2275
|
return isNaN(t) ? 0 : Math.max(0, t);
|
|
2276
|
-
}),
|
|
2277
|
-
if (!p.value || !
|
|
2276
|
+
}), se = P(() => Yr + oe.value), F = P(() => ie.value ? Yr + ae.value + Xr : Yr), ce = P(() => ie.value ? Yr + N.value + Xr : Yr), z = P(() => Math.max(0, m.value - se.value - F.value)), B = P(() => Math.max(0, _.value - ce.value - Yr)), le = P(() => {
|
|
2277
|
+
if (!p.value || !z.value) return 0;
|
|
2278
2278
|
let e = d.value.thumbHeight, t = Number(d.value.thumbMinHeight ?? 32);
|
|
2279
2279
|
if (e && e !== "auto") {
|
|
2280
2280
|
let n = Number(e);
|
|
2281
2281
|
return Math.max(isNaN(n) ? t : n, t);
|
|
2282
2282
|
}
|
|
2283
|
-
let n = m.value / p.value, r =
|
|
2284
|
-
return Math.min(
|
|
2285
|
-
}),
|
|
2286
|
-
if (!g.value || !
|
|
2283
|
+
let n = m.value / p.value, r = z.value * n;
|
|
2284
|
+
return Math.min(z.value, Math.max(t, r));
|
|
2285
|
+
}), ue = P(() => {
|
|
2286
|
+
if (!g.value || !B.value) return 0;
|
|
2287
2287
|
let e = f.value.thumbWidth, t = Number(f.value.thumbMinWidth ?? 32);
|
|
2288
2288
|
if (e && e !== "auto") {
|
|
2289
2289
|
let n = Number(e);
|
|
2290
2290
|
return Math.max(isNaN(n) ? t : n, t);
|
|
2291
2291
|
}
|
|
2292
|
-
let n = _.value / g.value, r =
|
|
2293
|
-
return Math.min(
|
|
2294
|
-
}),
|
|
2295
|
-
if (!p.value || p.value === m.value || !
|
|
2296
|
-
let e = p.value - m.value, t = Math.max(0,
|
|
2292
|
+
let n = _.value / g.value, r = B.value * n;
|
|
2293
|
+
return Math.min(B.value, Math.max(t, r));
|
|
2294
|
+
}), de = P(() => {
|
|
2295
|
+
if (!p.value || p.value === m.value || !z.value) return 0;
|
|
2296
|
+
let e = p.value - m.value, t = Math.max(0, z.value - le.value);
|
|
2297
2297
|
return !e || !t ? 0 : h.value / e * t;
|
|
2298
|
-
}),
|
|
2299
|
-
if (!g.value || g.value === _.value || !
|
|
2300
|
-
let e = g.value - _.value, t = Math.max(0,
|
|
2298
|
+
}), fe = P(() => {
|
|
2299
|
+
if (!g.value || g.value === _.value || !B.value) return 0;
|
|
2300
|
+
let e = g.value - _.value, t = Math.max(0, B.value - ue.value);
|
|
2301
2301
|
return !e || !t ? 0 : v.value / e * t;
|
|
2302
|
-
}),
|
|
2302
|
+
}), me = P(() => {
|
|
2303
2303
|
let e = Number(d.value.trackRadius);
|
|
2304
2304
|
return isNaN(e) ? String(d.value.trackRadius ?? 4) : `${e}px`;
|
|
2305
|
-
}),
|
|
2305
|
+
}), he = P(() => d.value.trackColor ?? "transparent"), K = P(() => {
|
|
2306
2306
|
let e = Number(d.value.thumbRadius);
|
|
2307
2307
|
return isNaN(e) ? String(d.value.thumbRadius ?? 4) : `${e}px`;
|
|
2308
|
-
}), ge =
|
|
2308
|
+
}), ge = P(() => d.value.thumbColor ?? "var(--color-bg-control-accent-default)"), _e = P(() => d.value.thumbHoverColor ?? "var(--color-bg-control-accent-hover)"), J = P(() => d.value.thumbActiveColor ?? "var(--color-bg-control-accent-focused)"), ve = P(() => {
|
|
2309
2309
|
let e = Number(d.value.trackWidth);
|
|
2310
2310
|
return isNaN(e) ? String(d.value.trackWidth ?? 6) : `${e}px`;
|
|
2311
|
-
}), Y =
|
|
2311
|
+
}), Y = P(() => {
|
|
2312
2312
|
let e = Number(f.value.trackRadius);
|
|
2313
2313
|
return isNaN(e) ? String(f.value.trackRadius ?? 4) : `${e}px`;
|
|
2314
|
-
}), ye =
|
|
2314
|
+
}), ye = P(() => f.value.trackColor ?? "transparent"), be = P(() => {
|
|
2315
2315
|
let e = Number(f.value.thumbRadius);
|
|
2316
2316
|
return isNaN(e) ? String(f.value.thumbRadius ?? 4) : `${e}px`;
|
|
2317
|
-
}), xe =
|
|
2317
|
+
}), xe = P(() => f.value.thumbColor ?? "var(--color-bg-control-accent-default)"), Se = P(() => f.value.thumbHoverColor ?? "var(--color-bg-control-accent-hover)"), Ce = P(() => f.value.thumbActiveColor ?? "var(--color-bg-control-accent-focused)"), X = P(() => {
|
|
2318
2318
|
let e = Number(f.value.trackHeight);
|
|
2319
2319
|
return isNaN(e) ? String(f.value.trackHeight ?? 6) : `${e}px`;
|
|
2320
2320
|
});
|
|
@@ -2337,7 +2337,7 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2337
2337
|
}
|
|
2338
2338
|
function $(e) {
|
|
2339
2339
|
if (e.target !== o.value || !a.value || !o.value) return;
|
|
2340
|
-
let t = o.value.getBoundingClientRect(), n = e.clientY - t.top -
|
|
2340
|
+
let t = o.value.getBoundingClientRect(), n = e.clientY - t.top - le.value / 2, r = p.value - m.value, i = Math.max(0, z.value - le.value);
|
|
2341
2341
|
if (!i || !r) return;
|
|
2342
2342
|
let s = n / i * r;
|
|
2343
2343
|
s = Math.max(0, Math.min(r, s)), a.value.scrollTo({
|
|
@@ -2347,7 +2347,7 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2347
2347
|
}
|
|
2348
2348
|
function Te(e) {
|
|
2349
2349
|
if (e.target !== s.value || !a.value || !s.value) return;
|
|
2350
|
-
let t = s.value.getBoundingClientRect(), n = e.clientX - t.left -
|
|
2350
|
+
let t = s.value.getBoundingClientRect(), n = e.clientX - t.left - ue.value / 2, r = g.value - _.value, i = Math.max(0, B.value - ue.value);
|
|
2351
2351
|
if (!i || !r) return;
|
|
2352
2352
|
let o = n / i * r;
|
|
2353
2353
|
o = Math.max(0, Math.min(r, o)), a.value.scrollTo({
|
|
@@ -2360,7 +2360,7 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2360
2360
|
}
|
|
2361
2361
|
function De(e) {
|
|
2362
2362
|
if (!x.value || !a.value || !o.value) return;
|
|
2363
|
-
let t = e.clientY - D, n = p.value - m.value, r = Math.max(0,
|
|
2363
|
+
let t = e.clientY - D, n = p.value - m.value, r = Math.max(0, z.value - le.value);
|
|
2364
2364
|
if (!r || !n) return;
|
|
2365
2365
|
let i = t / r * n;
|
|
2366
2366
|
a.value.scrollTop = O + i, h.value = a.value.scrollTop;
|
|
@@ -2373,7 +2373,7 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2373
2373
|
}
|
|
2374
2374
|
function Ae(e) {
|
|
2375
2375
|
if (!S.value || !a.value || !s.value) return;
|
|
2376
|
-
let t = e.clientX - k, n = g.value - _.value, r = Math.max(0,
|
|
2376
|
+
let t = e.clientX - k, n = g.value - _.value, r = Math.max(0, B.value - ue.value);
|
|
2377
2377
|
if (!r || !n) return;
|
|
2378
2378
|
let i = t / r * n;
|
|
2379
2379
|
a.value.scrollLeft = A + i, v.value = a.value.scrollLeft;
|
|
@@ -2381,13 +2381,13 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2381
2381
|
function je() {
|
|
2382
2382
|
S.value && (S.value = !1, document.body.style.userSelect = "", l.value && (l.value.removeEventListener("pointermove", Ae), l.value.removeEventListener("pointerup", je), l.value.removeEventListener("pointercancel", je)));
|
|
2383
2383
|
}
|
|
2384
|
-
return
|
|
2384
|
+
return U(() => {
|
|
2385
2385
|
if (Z(), r.autoUpdate) {
|
|
2386
2386
|
T = new ResizeObserver(Z), T.observe(a.value);
|
|
2387
2387
|
let e = a.value?.firstElementChild;
|
|
2388
2388
|
e && T.observe(e);
|
|
2389
2389
|
}
|
|
2390
|
-
}),
|
|
2390
|
+
}), pe(() => {
|
|
2391
2391
|
T?.disconnect(), E && clearTimeout(E), c.value && (c.value.removeEventListener("pointermove", De), c.value.removeEventListener("pointerup", Oe), c.value.removeEventListener("pointercancel", Oe)), l.value && (l.value.removeEventListener("pointermove", Ae), l.value.removeEventListener("pointerup", je), l.value.removeEventListener("pointercancel", je)), document.body.style.userSelect = "";
|
|
2392
2392
|
}), t({
|
|
2393
2393
|
scrollTo: (e) => {
|
|
@@ -2407,16 +2407,16 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2407
2407
|
},
|
|
2408
2408
|
getContainer: () => a.value,
|
|
2409
2409
|
updateMetrics: Z
|
|
2410
|
-
}), (e, t) => (
|
|
2411
|
-
class:
|
|
2412
|
-
style:
|
|
2413
|
-
"--ui3n-scrollbar-vertical-thumb-radius":
|
|
2410
|
+
}), (e, t) => (W(), L("div", {
|
|
2411
|
+
class: V(e.$style.ui3nScrollbar),
|
|
2412
|
+
style: H({
|
|
2413
|
+
"--ui3n-scrollbar-vertical-thumb-radius": K.value,
|
|
2414
2414
|
"--ui3n-scrollbar-vertical-thumb-color": ge.value,
|
|
2415
2415
|
"--ui3n-scrollbar-vertical-thumb-hover-color": _e.value,
|
|
2416
2416
|
"--ui3n-scrollbar-vertical-thumb-active-color": J.value,
|
|
2417
2417
|
"--ui3n-scrollbar-vertical-track-width": ve.value,
|
|
2418
|
-
"--ui3n-scrollbar-vertical-track-radius":
|
|
2419
|
-
"--ui3n-scrollbar-vertical-track-color":
|
|
2418
|
+
"--ui3n-scrollbar-vertical-track-radius": me.value,
|
|
2419
|
+
"--ui3n-scrollbar-vertical-track-color": he.value,
|
|
2420
2420
|
"--ui3n-scrollbar-horizontal-thumb-radius": be.value,
|
|
2421
2421
|
"--ui3n-scrollbar-horizontal-thumb-color": xe.value,
|
|
2422
2422
|
"--ui3n-scrollbar-horizontal-thumb-hover-color": Se.value,
|
|
@@ -2428,53 +2428,53 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2428
2428
|
onMouseenter: t[0] ||= (e) => C.value = !0,
|
|
2429
2429
|
onMouseleave: t[1] ||= (e) => C.value = !1
|
|
2430
2430
|
}, [
|
|
2431
|
-
|
|
2431
|
+
R("div", {
|
|
2432
2432
|
ref_key: "containerRef",
|
|
2433
2433
|
ref: a,
|
|
2434
|
-
class:
|
|
2434
|
+
class: V([
|
|
2435
2435
|
e.$style.scrollbarContainer,
|
|
2436
2436
|
u.value === "vertical" && e.$style.scrollbarContainerVertical,
|
|
2437
2437
|
u.value === "horizontal" && e.$style.scrollbarContainerHorizontal
|
|
2438
2438
|
]),
|
|
2439
2439
|
onScroll: Q
|
|
2440
2440
|
}, [q(e.$slots, "default")], 34),
|
|
2441
|
-
|
|
2441
|
+
M.value ? (W(), L("div", {
|
|
2442
2442
|
key: 0,
|
|
2443
2443
|
ref_key: "trackRefV",
|
|
2444
2444
|
ref: o,
|
|
2445
|
-
class:
|
|
2446
|
-
style:
|
|
2447
|
-
top: `${
|
|
2448
|
-
bottom: `${
|
|
2445
|
+
class: V([e.$style.trackVertical, { [e.$style.trackVisible]: ne.value }]),
|
|
2446
|
+
style: H({
|
|
2447
|
+
top: `${se.value}px`,
|
|
2448
|
+
bottom: `${F.value}px`
|
|
2449
2449
|
}),
|
|
2450
2450
|
onMousedown: $
|
|
2451
|
-
}, [
|
|
2451
|
+
}, [R("div", {
|
|
2452
2452
|
ref_key: "thumbRefV",
|
|
2453
2453
|
ref: c,
|
|
2454
|
-
class:
|
|
2455
|
-
style:
|
|
2456
|
-
height: `${
|
|
2457
|
-
transform: `translateY(${
|
|
2454
|
+
class: V([e.$style.thumbVertical, { [e.$style.active]: x.value }]),
|
|
2455
|
+
style: H({
|
|
2456
|
+
height: `${le.value}px`,
|
|
2457
|
+
transform: `translateY(${de.value}px)`
|
|
2458
2458
|
}),
|
|
2459
2459
|
onPointerdown: Ee
|
|
2460
|
-
}, null, 38)], 38)) :
|
|
2461
|
-
|
|
2460
|
+
}, null, 38)], 38)) : I("", !0),
|
|
2461
|
+
re.value ? (W(), L("div", {
|
|
2462
2462
|
key: 1,
|
|
2463
2463
|
ref_key: "trackRefH",
|
|
2464
2464
|
ref: s,
|
|
2465
|
-
class:
|
|
2466
|
-
style:
|
|
2465
|
+
class: V([e.$style.trackHorizontal, { [e.$style.trackVisible]: te.value }]),
|
|
2466
|
+
style: H({ right: `${ce.value}px` }),
|
|
2467
2467
|
onMousedown: Te
|
|
2468
|
-
}, [
|
|
2468
|
+
}, [R("div", {
|
|
2469
2469
|
ref_key: "thumbRefH",
|
|
2470
2470
|
ref: l,
|
|
2471
|
-
class:
|
|
2472
|
-
style:
|
|
2473
|
-
width: `${
|
|
2474
|
-
transform: `translateX(${
|
|
2471
|
+
class: V([e.$style.thumbHorizontal, { [e.$style.active]: S.value }]),
|
|
2472
|
+
style: H({
|
|
2473
|
+
width: `${ue.value}px`,
|
|
2474
|
+
transform: `translateX(${fe.value}px)`
|
|
2475
2475
|
}),
|
|
2476
2476
|
onPointerdown: ke
|
|
2477
|
-
}, null, 38)], 38)) :
|
|
2477
|
+
}, null, 38)], 38)) : I("", !0)
|
|
2478
2478
|
], 38));
|
|
2479
2479
|
}
|
|
2480
2480
|
}), [["__cssModules", { $style: {
|
|
@@ -2488,7 +2488,7 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2488
2488
|
thumbVertical: "_thumbVertical_1ywhy_65",
|
|
2489
2489
|
active: "_active_1ywhy_79",
|
|
2490
2490
|
thumbHorizontal: "_thumbHorizontal_1ywhy_83"
|
|
2491
|
-
} }]]), Qr = ["name", "value"], $r = ["name", "value"], ei = /* @__PURE__ */ k(/* @__PURE__ */
|
|
2491
|
+
} }]]), Qr = ["name", "value"], $r = ["name", "value"], ei = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
2492
2492
|
__name: "ui3n-table",
|
|
2493
2493
|
props: {
|
|
2494
2494
|
config: {},
|
|
@@ -2497,17 +2497,17 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2497
2497
|
},
|
|
2498
2498
|
emits: ["change:sort", "select:row"],
|
|
2499
2499
|
setup(e, { expose: t, emit: n }) {
|
|
2500
|
-
let r = e, i = n, a =
|
|
2501
|
-
let e = r.config?.scrollbar?.vertical ?? {}, t =
|
|
2500
|
+
let r = e, i = n, a = G(null), o = P(() => a.value?.getContainer() ?? null), s = G(null), c = G(0), l = null, { tableEl: u, tableColumnWidth: d, unusedPlaceCssStyle: f, currentConfig: p, visibleColumns: m, hasGroupActionsRow: h, showGroupActionsRow: g, selectedRows: _, selectedRowsArray: v, selectedRowsSize: y, stickyColumnsActive: b, stickyColumnsCount: x, stickyColumnLefts: S, scrollportWidth: C, closeGroupActionsRow: w, getRowKey: T, isRowSelected: E, getRowStyle: D, processSelection: O, toggleSelectedRows: k, changeSortOrder: ee, clear: j } = Jr(r, i, o), te = { select: O }, ne = P(() => r.config?.scrollbar?.axes ?? "both"), M = P(() => {
|
|
2501
|
+
let e = r.config?.scrollbar?.vertical ?? {}, t = ne.value;
|
|
2502
2502
|
return !(t === "vertical" || t === "both") || !c.value ? e : {
|
|
2503
2503
|
...e,
|
|
2504
2504
|
trackOffsetTop: c.value
|
|
2505
2505
|
};
|
|
2506
|
-
}),
|
|
2506
|
+
}), re = P(() => {
|
|
2507
2507
|
let e = { "--ui3n-table-columns-width": d.value };
|
|
2508
2508
|
return C.value != null && (e["--ui3n-table-scrollport-width"] = `${C.value}px`), e;
|
|
2509
2509
|
});
|
|
2510
|
-
function
|
|
2510
|
+
function ie() {
|
|
2511
2511
|
l?.disconnect(), l = null;
|
|
2512
2512
|
let e = s.value;
|
|
2513
2513
|
if (!e || !r.config?.scrollbar) {
|
|
@@ -2523,10 +2523,10 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2523
2523
|
s,
|
|
2524
2524
|
() => r.config?.scrollbar,
|
|
2525
2525
|
g
|
|
2526
|
-
],
|
|
2526
|
+
], ie, {
|
|
2527
2527
|
immediate: !0,
|
|
2528
2528
|
flush: "post"
|
|
2529
|
-
}),
|
|
2529
|
+
}), pe(() => {
|
|
2530
2530
|
l?.disconnect(), l = null;
|
|
2531
2531
|
}), t({
|
|
2532
2532
|
getRowStyle: D,
|
|
@@ -2535,86 +2535,86 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2535
2535
|
hasGroupActionsRow: h,
|
|
2536
2536
|
closeGroupActionsRow: w,
|
|
2537
2537
|
clear: j
|
|
2538
|
-
}), (t, n) => e.config?.scrollbar ? (
|
|
2538
|
+
}), (t, n) => e.config?.scrollbar ? (W(), F(Zr, {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
ref_key: "scrollbarRef",
|
|
2541
2541
|
ref: a,
|
|
2542
|
-
class:
|
|
2543
|
-
axes:
|
|
2544
|
-
vertical:
|
|
2542
|
+
class: V(t.$style.tableHost),
|
|
2543
|
+
axes: ne.value,
|
|
2544
|
+
vertical: M.value,
|
|
2545
2545
|
horizontal: e.config.scrollbar.horizontal
|
|
2546
2546
|
}, {
|
|
2547
|
-
default: Z(() => [
|
|
2547
|
+
default: Z(() => [R("div", {
|
|
2548
2548
|
ref_key: "tableEl",
|
|
2549
2549
|
ref: u,
|
|
2550
|
-
style:
|
|
2551
|
-
class:
|
|
2550
|
+
style: H(re.value),
|
|
2551
|
+
class: V([
|
|
2552
2552
|
t.$style.ui3nTable,
|
|
2553
2553
|
t.$style.ui3nTableInsideScrollbar,
|
|
2554
2554
|
Y(b) && t.$style.stickyColumns
|
|
2555
2555
|
])
|
|
2556
2556
|
}, [
|
|
2557
|
-
e.config?.tableName && Y(y) > 0 ? (
|
|
2557
|
+
e.config?.tableName && Y(y) > 0 ? (W(), L("fieldset", {
|
|
2558
2558
|
key: 0,
|
|
2559
|
-
class:
|
|
2560
|
-
}, [(
|
|
2559
|
+
class: V(t.$style.hiddenBlock)
|
|
2560
|
+
}, [(W(!0), L(N, null, K(Y(v), (t, n) => (W(), L("input", {
|
|
2561
2561
|
key: Y(T)(t, n),
|
|
2562
2562
|
type: "hidden",
|
|
2563
2563
|
name: e.config.selectable === "multiple" ? `${e.config.tableName}[]` : e.config.tableName,
|
|
2564
2564
|
value: String(Y(T)(t, n))
|
|
2565
|
-
}, null, 8, Qr))), 128))], 2)) :
|
|
2566
|
-
|
|
2565
|
+
}, null, 8, Qr))), 128))], 2)) : I("", !0),
|
|
2566
|
+
R("div", {
|
|
2567
2567
|
ref_key: "headerEl",
|
|
2568
2568
|
ref: s,
|
|
2569
|
-
class:
|
|
2570
|
-
}, [Y(g) ? (
|
|
2569
|
+
class: V([t.$style.header, Y(g) && t.$style.withGroupActions])
|
|
2570
|
+
}, [Y(g) ? (W(), L("div", {
|
|
2571
2571
|
key: 0,
|
|
2572
|
-
class:
|
|
2572
|
+
class: V(t.$style.groupActions)
|
|
2573
2573
|
}, [
|
|
2574
|
-
|
|
2574
|
+
z(zr, {
|
|
2575
2575
|
indeterminate: Y(y) < e.body.content.length && Y(y) !== 0,
|
|
2576
2576
|
"model-value": Y(y) === e.body.content.length,
|
|
2577
2577
|
onChange: Y(k)
|
|
2578
2578
|
}, {
|
|
2579
|
-
default: Z(() => [
|
|
2579
|
+
default: Z(() => [ce(" Selected: " + J(Y(y)), 1)]),
|
|
2580
2580
|
_: 1
|
|
2581
2581
|
}, 8, [
|
|
2582
2582
|
"indeterminate",
|
|
2583
2583
|
"model-value",
|
|
2584
2584
|
"onChange"
|
|
2585
2585
|
]),
|
|
2586
|
-
|
|
2587
|
-
|
|
2586
|
+
R("div", { class: V(t.$style.groupActionsBody) }, [q(t.$slots, "group-actions", { selectedRows: Y(v) })], 2),
|
|
2587
|
+
z(A, {
|
|
2588
2588
|
type: "secondary",
|
|
2589
2589
|
onClick: Y(w)
|
|
2590
2590
|
}, {
|
|
2591
|
-
default: Z(() => [...n[0] ||= [
|
|
2591
|
+
default: Z(() => [...n[0] ||= [ce(" Cancel ", -1)]]),
|
|
2592
2592
|
_: 1
|
|
2593
2593
|
}, 8, ["onClick"])
|
|
2594
|
-
], 2)) :
|
|
2594
|
+
], 2)) : I("", !0), (W(!0), L(N, null, K(Y(m), (e, n) => (W(), L("div", {
|
|
2595
2595
|
key: e.key,
|
|
2596
|
-
class:
|
|
2596
|
+
class: V([
|
|
2597
2597
|
t.$style.headerItemWrapper,
|
|
2598
2598
|
n === 0 && t.$style.headerItemFirst,
|
|
2599
2599
|
n < Y(x) && t.$style.headerItemSticky,
|
|
2600
2600
|
e.sortable && t.$style.sortable,
|
|
2601
2601
|
e.sortable && Y(p).sortOrder?.field === e.key && t.$style.sortableActive
|
|
2602
2602
|
]),
|
|
2603
|
-
style:
|
|
2603
|
+
style: H([e.headCellStyle, n < Y(x) ? {
|
|
2604
2604
|
left: Y(S)[n],
|
|
2605
2605
|
zIndex: 6 + n
|
|
2606
2606
|
} : void 0])
|
|
2607
|
-
}, [
|
|
2607
|
+
}, [R("div", ue({
|
|
2608
2608
|
class: t.$style.headerItem,
|
|
2609
2609
|
style: e.headCellStyle
|
|
2610
|
-
}, ve(e.sortable ? { click: () => Y(ee)(e.key) } : {}, !0)), [q(t.$slots, `header-cell-${e.key}`, {}, () => [
|
|
2610
|
+
}, ve(e.sortable ? { click: () => Y(ee)(e.key) } : {}, !0)), [q(t.$slots, `header-cell-${e.key}`, {}, () => [R("span", { class: V(t.$style.headerText) }, J(e.text), 3)]), e.sortable && Y(p).sortOrder?.field === e.key ? (W(), F(Br, {
|
|
2611
2611
|
key: 0,
|
|
2612
2612
|
value: Y(p).sortOrder?.direction,
|
|
2613
2613
|
size: "16"
|
|
2614
|
-
}, null, 8, ["value"])) :
|
|
2615
|
-
|
|
2614
|
+
}, null, 8, ["value"])) : I("", !0)], 16)], 6))), 128))], 2),
|
|
2615
|
+
R("div", { class: V(t.$style.body) }, [e.config?.showNoDataMessage && !Y(Tr.default)(e.body.content) ? q(t.$slots, "no-data", { key: 0 }, () => [R("div", { class: V(t.$style.noData) }, "No data", 2)]) : (W(), L(N, { key: 1 }, [t.$slots.row ? (W(!0), L(N, { key: 0 }, K(e.body.content, (n, r) => (W(), L("div", {
|
|
2616
2616
|
key: Y(T)(n, r),
|
|
2617
|
-
class:
|
|
2617
|
+
class: V([
|
|
2618
2618
|
t.$style.row,
|
|
2619
2619
|
t.$slots.row && t.$style.customRow,
|
|
2620
2620
|
Y(E)(n) && t.$style.selected,
|
|
@@ -2628,29 +2628,29 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2628
2628
|
columnStyle: e.config?.columnStyle,
|
|
2629
2629
|
stickyColumnsCount: Y(x),
|
|
2630
2630
|
stickyColumnLefts: Y(S),
|
|
2631
|
-
events:
|
|
2632
|
-
})], 2))), 128)) : (
|
|
2631
|
+
events: te
|
|
2632
|
+
})], 2))), 128)) : (W(!0), L(N, { key: 1 }, K(e.body.content, (n, r) => (W(), L("div", {
|
|
2633
2633
|
key: Y(T)(n, r),
|
|
2634
|
-
class:
|
|
2634
|
+
class: V([
|
|
2635
2635
|
t.$style.row,
|
|
2636
2636
|
Y(E)(n) && t.$style.selected,
|
|
2637
2637
|
e.config.selectable && t.$style.selectable
|
|
2638
2638
|
]),
|
|
2639
|
-
style:
|
|
2640
|
-
}, [e.config.selectable ? (
|
|
2639
|
+
style: H(Y(D)(n))
|
|
2640
|
+
}, [e.config.selectable ? (W(), L("div", {
|
|
2641
2641
|
key: 0,
|
|
2642
|
-
class:
|
|
2643
|
-
}, [
|
|
2642
|
+
class: V(t.$style.rowCheckbox)
|
|
2643
|
+
}, [z(zr, {
|
|
2644
2644
|
"model-value": Y(E)(n),
|
|
2645
2645
|
onChange: (e) => Y(O)(n)
|
|
2646
|
-
}, null, 8, ["model-value", "onChange"])], 2)) :
|
|
2646
|
+
}, null, 8, ["model-value", "onChange"])], 2)) : I("", !0), (W(!0), L(N, null, K(Y(m), (i, a) => (W(), L("div", {
|
|
2647
2647
|
key: i.key,
|
|
2648
|
-
class:
|
|
2648
|
+
class: V([
|
|
2649
2649
|
t.$style.bodyItem,
|
|
2650
2650
|
a === 0 && t.$style.bodyItemFirst,
|
|
2651
2651
|
a < Y(x) && t.$style.bodyItemSticky
|
|
2652
2652
|
]),
|
|
2653
|
-
style:
|
|
2653
|
+
style: H(a < Y(x) ? {
|
|
2654
2654
|
left: Y(S)[a],
|
|
2655
2655
|
zIndex: 2 + a
|
|
2656
2656
|
} : void 0)
|
|
@@ -2660,10 +2660,10 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2660
2660
|
isRowSelected: Y(E)(n),
|
|
2661
2661
|
columnStyle: e.config?.columnStyle,
|
|
2662
2662
|
cell: n[i.key]
|
|
2663
|
-
}, () => [
|
|
2664
|
-
|
|
2665
|
-
class:
|
|
2666
|
-
style:
|
|
2663
|
+
}, () => [R("span", { class: V(t.$style.cell) }, J(i.format ? i.format(n[i.key]) : n[i.key]), 3)])], 6))), 128))], 6))), 128))], 64))], 2),
|
|
2664
|
+
R("div", {
|
|
2665
|
+
class: V(t.$style.unusedPlace),
|
|
2666
|
+
style: H(Y(f))
|
|
2667
2667
|
}, [q(t.$slots, "unused-place")], 6)
|
|
2668
2668
|
], 6)]),
|
|
2669
2669
|
_: 3
|
|
@@ -2672,70 +2672,70 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2672
2672
|
"axes",
|
|
2673
2673
|
"vertical",
|
|
2674
2674
|
"horizontal"
|
|
2675
|
-
])) : (
|
|
2675
|
+
])) : (W(), L("div", {
|
|
2676
2676
|
key: 1,
|
|
2677
2677
|
ref_key: "tableEl",
|
|
2678
2678
|
ref: u,
|
|
2679
|
-
style:
|
|
2680
|
-
class:
|
|
2679
|
+
style: H(re.value),
|
|
2680
|
+
class: V([t.$style.ui3nTable, Y(b) && t.$style.stickyColumns])
|
|
2681
2681
|
}, [
|
|
2682
|
-
e.config?.tableName && Y(y) > 0 ? (
|
|
2682
|
+
e.config?.tableName && Y(y) > 0 ? (W(), L("fieldset", {
|
|
2683
2683
|
key: 0,
|
|
2684
|
-
class:
|
|
2685
|
-
}, [(
|
|
2684
|
+
class: V(t.$style.hiddenBlock)
|
|
2685
|
+
}, [(W(!0), L(N, null, K(Y(v), (t, n) => (W(), L("input", {
|
|
2686
2686
|
key: Y(T)(t, n),
|
|
2687
2687
|
type: "hidden",
|
|
2688
2688
|
name: e.config.selectable === "multiple" ? `${e.config.tableName}[]` : e.config.tableName,
|
|
2689
2689
|
value: String(Y(T)(t, n))
|
|
2690
|
-
}, null, 8, $r))), 128))], 2)) :
|
|
2691
|
-
|
|
2690
|
+
}, null, 8, $r))), 128))], 2)) : I("", !0),
|
|
2691
|
+
R("div", { class: V([t.$style.header, Y(g) && t.$style.withGroupActions]) }, [Y(g) ? (W(), L("div", {
|
|
2692
2692
|
key: 0,
|
|
2693
|
-
class:
|
|
2693
|
+
class: V(t.$style.groupActions)
|
|
2694
2694
|
}, [
|
|
2695
|
-
|
|
2695
|
+
z(zr, {
|
|
2696
2696
|
indeterminate: Y(y) < e.body.content.length && Y(y) !== 0,
|
|
2697
2697
|
"model-value": Y(y) === e.body.content.length,
|
|
2698
2698
|
onChange: Y(k)
|
|
2699
2699
|
}, {
|
|
2700
|
-
default: Z(() => [
|
|
2700
|
+
default: Z(() => [ce(" Selected: " + J(Y(y)), 1)]),
|
|
2701
2701
|
_: 1
|
|
2702
2702
|
}, 8, [
|
|
2703
2703
|
"indeterminate",
|
|
2704
2704
|
"model-value",
|
|
2705
2705
|
"onChange"
|
|
2706
2706
|
]),
|
|
2707
|
-
|
|
2708
|
-
|
|
2707
|
+
R("div", { class: V(t.$style.groupActionsBody) }, [q(t.$slots, "group-actions", { selectedRows: Y(v) })], 2),
|
|
2708
|
+
z(A, {
|
|
2709
2709
|
type: "secondary",
|
|
2710
2710
|
onClick: Y(w)
|
|
2711
2711
|
}, {
|
|
2712
|
-
default: Z(() => [...n[1] ||= [
|
|
2712
|
+
default: Z(() => [...n[1] ||= [ce(" Cancel ", -1)]]),
|
|
2713
2713
|
_: 1
|
|
2714
2714
|
}, 8, ["onClick"])
|
|
2715
|
-
], 2)) :
|
|
2715
|
+
], 2)) : I("", !0), (W(!0), L(N, null, K(Y(m), (e, n) => (W(), L("div", {
|
|
2716
2716
|
key: e.key,
|
|
2717
|
-
class:
|
|
2717
|
+
class: V([
|
|
2718
2718
|
t.$style.headerItemWrapper,
|
|
2719
2719
|
n === 0 && t.$style.headerItemFirst,
|
|
2720
2720
|
n < Y(x) && t.$style.headerItemSticky,
|
|
2721
2721
|
e.sortable && t.$style.sortable,
|
|
2722
2722
|
e.sortable && Y(p).sortOrder?.field === e.key && t.$style.sortableActive
|
|
2723
2723
|
]),
|
|
2724
|
-
style:
|
|
2724
|
+
style: H([e.headCellStyle, n < Y(x) ? {
|
|
2725
2725
|
left: Y(S)[n],
|
|
2726
2726
|
zIndex: 6 + n
|
|
2727
2727
|
} : void 0])
|
|
2728
|
-
}, [
|
|
2728
|
+
}, [R("div", ue({
|
|
2729
2729
|
class: t.$style.headerItem,
|
|
2730
2730
|
style: e.headCellStyle
|
|
2731
|
-
}, ve(e.sortable ? { click: () => Y(ee)(e.key) } : {}, !0)), [q(t.$slots, `header-cell-${e.key}`, {}, () => [
|
|
2731
|
+
}, ve(e.sortable ? { click: () => Y(ee)(e.key) } : {}, !0)), [q(t.$slots, `header-cell-${e.key}`, {}, () => [R("span", { class: V(t.$style.headerText) }, J(e.text), 3)]), e.sortable && Y(p).sortOrder?.field === e.key ? (W(), F(Br, {
|
|
2732
2732
|
key: 0,
|
|
2733
2733
|
value: Y(p).sortOrder?.direction,
|
|
2734
2734
|
size: "16"
|
|
2735
|
-
}, null, 8, ["value"])) :
|
|
2736
|
-
|
|
2735
|
+
}, null, 8, ["value"])) : I("", !0)], 16)], 6))), 128))], 2),
|
|
2736
|
+
R("div", { class: V(t.$style.body) }, [e.config?.showNoDataMessage && !Y(Tr.default)(e.body.content) ? q(t.$slots, "no-data", { key: 0 }, () => [R("div", { class: V(t.$style.noData) }, "No data", 2)]) : (W(), L(N, { key: 1 }, [t.$slots.row ? (W(!0), L(N, { key: 0 }, K(e.body.content, (n, r) => (W(), L("div", {
|
|
2737
2737
|
key: Y(T)(n, r),
|
|
2738
|
-
class:
|
|
2738
|
+
class: V([
|
|
2739
2739
|
t.$style.row,
|
|
2740
2740
|
t.$slots.row && t.$style.customRow,
|
|
2741
2741
|
Y(E)(n) && t.$style.selected,
|
|
@@ -2749,29 +2749,29 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2749
2749
|
columnStyle: e.config?.columnStyle,
|
|
2750
2750
|
stickyColumnsCount: Y(x),
|
|
2751
2751
|
stickyColumnLefts: Y(S),
|
|
2752
|
-
events:
|
|
2753
|
-
})], 2))), 128)) : (
|
|
2752
|
+
events: te
|
|
2753
|
+
})], 2))), 128)) : (W(!0), L(N, { key: 1 }, K(e.body.content, (n, r) => (W(), L("div", {
|
|
2754
2754
|
key: Y(T)(n, r),
|
|
2755
|
-
class:
|
|
2755
|
+
class: V([
|
|
2756
2756
|
t.$style.row,
|
|
2757
2757
|
Y(E)(n) && t.$style.selected,
|
|
2758
2758
|
e.config.selectable && t.$style.selectable
|
|
2759
2759
|
]),
|
|
2760
|
-
style:
|
|
2761
|
-
}, [e.config.selectable ? (
|
|
2760
|
+
style: H(Y(D)(n))
|
|
2761
|
+
}, [e.config.selectable ? (W(), L("div", {
|
|
2762
2762
|
key: 0,
|
|
2763
|
-
class:
|
|
2764
|
-
}, [
|
|
2763
|
+
class: V(t.$style.rowCheckbox)
|
|
2764
|
+
}, [z(zr, {
|
|
2765
2765
|
"model-value": Y(E)(n),
|
|
2766
2766
|
onChange: (e) => Y(O)(n)
|
|
2767
|
-
}, null, 8, ["model-value", "onChange"])], 2)) :
|
|
2767
|
+
}, null, 8, ["model-value", "onChange"])], 2)) : I("", !0), (W(!0), L(N, null, K(Y(m), (i, a) => (W(), L("div", {
|
|
2768
2768
|
key: i.key,
|
|
2769
|
-
class:
|
|
2769
|
+
class: V([
|
|
2770
2770
|
t.$style.bodyItem,
|
|
2771
2771
|
a === 0 && t.$style.bodyItemFirst,
|
|
2772
2772
|
a < Y(x) && t.$style.bodyItemSticky
|
|
2773
2773
|
]),
|
|
2774
|
-
style:
|
|
2774
|
+
style: H(a < Y(x) ? {
|
|
2775
2775
|
left: Y(S)[a],
|
|
2776
2776
|
zIndex: 2 + a
|
|
2777
2777
|
} : void 0)
|
|
@@ -2781,10 +2781,10 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2781
2781
|
isRowSelected: Y(E)(n),
|
|
2782
2782
|
columnStyle: e.config?.columnStyle,
|
|
2783
2783
|
cell: n[i.key]
|
|
2784
|
-
}, () => [
|
|
2785
|
-
|
|
2786
|
-
class:
|
|
2787
|
-
style:
|
|
2784
|
+
}, () => [R("span", { class: V(t.$style.cell) }, J(i.format ? i.format(n[i.key]) : n[i.key]), 3)])], 6))), 128))], 6))), 128))], 64))], 2),
|
|
2785
|
+
R("div", {
|
|
2786
|
+
class: V(t.$style.unusedPlace),
|
|
2787
|
+
style: H(Y(f))
|
|
2788
2788
|
}, [q(t.$slots, "unused-place")], 6)
|
|
2789
2789
|
], 6));
|
|
2790
2790
|
}
|
|
@@ -2817,22 +2817,22 @@ var Yr = 2, Xr = 2, Zr = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2817
2817
|
headerItemSticky: "_headerItemSticky_vxa0k_236",
|
|
2818
2818
|
headerItemFirst: "_headerItemFirst_vxa0k_240",
|
|
2819
2819
|
bodyItemSticky: "_bodyItemSticky_vxa0k_246"
|
|
2820
|
-
} }]]), ti = ["id", "onClick"], ni = /* @__PURE__ */ k(/* @__PURE__ */
|
|
2820
|
+
} }]]), ti = ["id", "onClick"], ni = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
2821
2821
|
__name: "ui3n-dialog-provider",
|
|
2822
2822
|
setup(e) {
|
|
2823
|
-
let t =
|
|
2823
|
+
let t = le(C);
|
|
2824
2824
|
function n(e, n) {
|
|
2825
2825
|
(n.closeOnClickOverlay || n.dialogProps?.closeOnClickOverlay) && t.$closeDialog(e, { event: "click-overlay" });
|
|
2826
2826
|
}
|
|
2827
2827
|
function r(e, n) {
|
|
2828
2828
|
t.$closeDialog(e, n);
|
|
2829
2829
|
}
|
|
2830
|
-
return (e, i) => (
|
|
2830
|
+
return (e, i) => (W(), F(ae, { to: "body" }, [(W(!0), L(N, null, K(Y(t).dialogStack.value, (t) => (W(), L("div", {
|
|
2831
2831
|
id: `dialog-wrapper-${t.id}`,
|
|
2832
2832
|
key: t.id,
|
|
2833
|
-
class:
|
|
2833
|
+
class: V(e.$style["dialog-provider-overlay"]),
|
|
2834
2834
|
onClick: $((e) => n(t.id, t.props), ["self", "prevent"])
|
|
2835
|
-
}, [(
|
|
2835
|
+
}, [(W(), F(ge(t.component), ue({ ref_for: !0 }, t.props, { onAction: (e) => r(t.id, e) }), null, 16, ["onAction"]))], 10, ti))), 128))]));
|
|
2836
2836
|
}
|
|
2837
2837
|
}), [["__cssModules", { $style: { "dialog-provider-overlay": "_dialog-provider-overlay_v01lr_1" } }]]);
|
|
2838
2838
|
//#endregion
|
|
@@ -2846,7 +2846,7 @@ function ri({ width: e, style: t, defaultValue: n = 380 }) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
//#endregion
|
|
2848
2848
|
//#region src/components/ui3n-dialog/ui3n-dialog.vue?vue&type=script&setup=true&lang.ts
|
|
2849
|
-
var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */
|
|
2849
|
+
var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
2850
2850
|
__name: "ui3n-dialog",
|
|
2851
2851
|
props: {
|
|
2852
2852
|
id: {},
|
|
@@ -2883,14 +2883,14 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2883
2883
|
},
|
|
2884
2884
|
emits: ["action"],
|
|
2885
2885
|
setup(e, { emit: t }) {
|
|
2886
|
-
let n = e, r = t, i = Se("dialog-el"), a =
|
|
2886
|
+
let n = e, r = t, i = Se("dialog-el"), a = G(!1), o = G({
|
|
2887
2887
|
initialLeft: 0,
|
|
2888
2888
|
initialTop: 0,
|
|
2889
2889
|
left: 0,
|
|
2890
2890
|
top: 0,
|
|
2891
2891
|
shiftX: 0,
|
|
2892
2892
|
shiftY: 0
|
|
2893
|
-
}), s =
|
|
2893
|
+
}), s = P(() => ({
|
|
2894
2894
|
width: ri({
|
|
2895
2895
|
width: n.width,
|
|
2896
2896
|
style: n.cssStyle
|
|
@@ -2900,7 +2900,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2900
2900
|
left: `${o.value.left}px`,
|
|
2901
2901
|
top: `${o.value.top}px`
|
|
2902
2902
|
}
|
|
2903
|
-
})), c =
|
|
2903
|
+
})), c = P(() => n.icon ? typeof n.icon == "string" ? {
|
|
2904
2904
|
icon: n.icon,
|
|
2905
2905
|
size: 14,
|
|
2906
2906
|
color: "var(--color-icon-control-secondary-default)"
|
|
@@ -2930,8 +2930,8 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2930
2930
|
function p(e) {
|
|
2931
2931
|
a.value && (o.value.left = e.clientX - o.value.shiftX - o.value.initialLeft, o.value.top = e.clientY - o.value.shiftY - o.value.initialTop);
|
|
2932
2932
|
}
|
|
2933
|
-
return
|
|
2934
|
-
i.value && (i.value.style.setProperty("--ui3n-dialog-confirm-button-color", n.confirmButtonColor), i.value.style.setProperty("--ui3n-dialog-cancel-button-color", n.cancelButtonColor), i.value.style.setProperty("--ui3n-dialog-confirm-background-color", n.confirmButtonBackground), i.value.style.setProperty("--ui3n-dialog-cancel-background-color", n.cancelButtonBackground),
|
|
2933
|
+
return U(() => {
|
|
2934
|
+
i.value && (i.value.style.setProperty("--ui3n-dialog-confirm-button-color", n.confirmButtonColor), i.value.style.setProperty("--ui3n-dialog-cancel-button-color", n.cancelButtonColor), i.value.style.setProperty("--ui3n-dialog-confirm-background-color", n.confirmButtonBackground), i.value.style.setProperty("--ui3n-dialog-cancel-background-color", n.cancelButtonBackground), de(() => {
|
|
2935
2935
|
i.value && i.value.focus(), setTimeout(() => {
|
|
2936
2936
|
if (i.value) {
|
|
2937
2937
|
let e = i.value.getBoundingClientRect();
|
|
@@ -2939,7 +2939,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2939
2939
|
}
|
|
2940
2940
|
}, 100);
|
|
2941
2941
|
}));
|
|
2942
|
-
}), (t, i) => (
|
|
2942
|
+
}), (t, i) => (W(), L("div", ue({
|
|
2943
2943
|
id: e.id,
|
|
2944
2944
|
ref: "dialog-el",
|
|
2945
2945
|
tabindex: "1",
|
|
@@ -2956,22 +2956,22 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2956
2956
|
mousemove: p,
|
|
2957
2957
|
keydown: l
|
|
2958
2958
|
} : { keydown: l }, !0)), [
|
|
2959
|
-
e.title && !t.$slots.header ? (
|
|
2959
|
+
e.title && !t.$slots.header ? (W(), L("div", {
|
|
2960
2960
|
key: 0,
|
|
2961
|
-
class:
|
|
2962
|
-
}, [c.value ? (
|
|
2963
|
-
t.$slots.header ? (
|
|
2961
|
+
class: V([t.$style.title, t.$style.titleDefault])
|
|
2962
|
+
}, [c.value ? (W(), F(ee, ue({ key: 0 }, c.value, { class: t.$style.icon }), null, 16, ["class"])) : I("", !0), R("span", null, J(e.title), 1)], 2)) : I("", !0),
|
|
2963
|
+
t.$slots.header ? (W(), L("div", {
|
|
2964
2964
|
key: 1,
|
|
2965
|
-
class:
|
|
2966
|
-
}, [q(t.$slots, "header")], 2)) :
|
|
2967
|
-
t.$slots.body ? (
|
|
2965
|
+
class: V(t.$style.title)
|
|
2966
|
+
}, [q(t.$slots, "header")], 2)) : I("", !0),
|
|
2967
|
+
t.$slots.body ? (W(), L("div", {
|
|
2968
2968
|
key: 2,
|
|
2969
|
-
class:
|
|
2970
|
-
}, [q(t.$slots, "body")], 2)) :
|
|
2971
|
-
(e.confirmButton || e.cancelButton) && !t.$slots.actions ? (
|
|
2969
|
+
class: V(t.$style.content)
|
|
2970
|
+
}, [q(t.$slots, "body")], 2)) : I("", !0),
|
|
2971
|
+
(e.confirmButton || e.cancelButton) && !t.$slots.actions ? (W(), L("div", {
|
|
2972
2972
|
key: 3,
|
|
2973
|
-
class:
|
|
2974
|
-
}, [e.cancelButton ? (
|
|
2973
|
+
class: V([t.$style.actions, t.$style.actionsDefault])
|
|
2974
|
+
}, [e.cancelButton ? (W(), F(A, {
|
|
2975
2975
|
key: 0,
|
|
2976
2976
|
type: "custom",
|
|
2977
2977
|
color: e.cancelButtonBackground,
|
|
@@ -2981,9 +2981,9 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2981
2981
|
data: n.data
|
|
2982
2982
|
}), ["stop", "prevent"])
|
|
2983
2983
|
}, {
|
|
2984
|
-
default: Z(() => [
|
|
2984
|
+
default: Z(() => [ce(J(e.cancelButtonText), 1)]),
|
|
2985
2985
|
_: 1
|
|
2986
|
-
}, 8, ["color", "text-color"])) :
|
|
2986
|
+
}, 8, ["color", "text-color"])) : I("", !0), e.confirmButton ? (W(), F(A, {
|
|
2987
2987
|
key: 1,
|
|
2988
2988
|
type: "custom",
|
|
2989
2989
|
color: e.confirmButtonBackground,
|
|
@@ -2994,24 +2994,24 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
2994
2994
|
data: n.data
|
|
2995
2995
|
}), ["stop", "prevent"])
|
|
2996
2996
|
}, {
|
|
2997
|
-
default: Z(() => [
|
|
2997
|
+
default: Z(() => [ce(J(e.confirmButtonText), 1)]),
|
|
2998
2998
|
_: 1
|
|
2999
2999
|
}, 8, [
|
|
3000
3000
|
"color",
|
|
3001
3001
|
"text-color",
|
|
3002
3002
|
"disabled"
|
|
3003
|
-
])) :
|
|
3004
|
-
t.$slots.actions ? (
|
|
3003
|
+
])) : I("", !0)], 2)) : I("", !0),
|
|
3004
|
+
t.$slots.actions ? (W(), L("div", {
|
|
3005
3005
|
key: 4,
|
|
3006
|
-
class:
|
|
3007
|
-
}, [q(t.$slots, "actions")], 2)) :
|
|
3008
|
-
t.$slots.loading ? (
|
|
3006
|
+
class: V(t.$style.actions)
|
|
3007
|
+
}, [q(t.$slots, "actions")], 2)) : I("", !0),
|
|
3008
|
+
t.$slots.loading ? (W(), L("div", {
|
|
3009
3009
|
key: 5,
|
|
3010
|
-
class:
|
|
3011
|
-
}, [q(t.$slots, "loading")], 2)) :
|
|
3012
|
-
e.hideCloseButton ?
|
|
3010
|
+
class: V(t.$style.loading)
|
|
3011
|
+
}, [q(t.$slots, "loading")], 2)) : I("", !0),
|
|
3012
|
+
e.hideCloseButton ? I("", !0) : (W(), F(A, {
|
|
3013
3013
|
key: 6,
|
|
3014
|
-
class:
|
|
3014
|
+
class: V(t.$style.closeBtn),
|
|
3015
3015
|
type: "icon",
|
|
3016
3016
|
size: "small",
|
|
3017
3017
|
color: "var(--color-bg-block-primary-default)",
|
|
@@ -3033,7 +3033,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3033
3033
|
actions: "_actions_13zmx_74",
|
|
3034
3034
|
actionsDefault: "_actionsDefault_13zmx_81",
|
|
3035
3035
|
loading: "_loading_13zmx_89"
|
|
3036
|
-
} }]]), oi = ["id"], si = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3036
|
+
} }]]), oi = ["id"], si = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3037
3037
|
__name: "ui3n-menu",
|
|
3038
3038
|
props: {
|
|
3039
3039
|
id: {},
|
|
@@ -3078,10 +3078,10 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3078
3078
|
"update:modelValue"
|
|
3079
3079
|
],
|
|
3080
3080
|
setup(e, { expose: t, emit: n }) {
|
|
3081
|
-
let r = e, i = n, a = Se("menu-trigger-element"), o = Se("menu-content-element"), s =
|
|
3081
|
+
let r = e, i = n, a = Se("menu-trigger-element"), o = Se("menu-content-element"), s = G(!1), c = G(r.triggerElement || null), l = P(() => c.value || a.value), u = P(() => {
|
|
3082
3082
|
let e = l.value;
|
|
3083
3083
|
return e ? e instanceof HTMLElement ? e : "contextElement" in e && e.contextElement instanceof HTMLElement ? e.contextElement : null : null;
|
|
3084
|
-
}), d =
|
|
3084
|
+
}), d = P(() => {
|
|
3085
3085
|
let e = [Oe({
|
|
3086
3086
|
mainAxis: r.offsetY,
|
|
3087
3087
|
crossAxis: r.offsetX + 2
|
|
@@ -3095,7 +3095,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3095
3095
|
strategy: r.positionStrategy,
|
|
3096
3096
|
middleware: d,
|
|
3097
3097
|
whileElementsMounted: r.positionAutoupdate || r.positionStrategy === "fixed" ? Ee : void 0
|
|
3098
|
-
}), h =
|
|
3098
|
+
}), h = P(() => {
|
|
3099
3099
|
let e = "";
|
|
3100
3100
|
if (typeof r.contentBorderRadius == "number") e = `${r.contentBorderRadius}px`;
|
|
3101
3101
|
else if (Array.isArray(r.contentBorderRadius)) {
|
|
@@ -3108,7 +3108,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3108
3108
|
...e && { "--ui3n-menu-content-border-radius": e },
|
|
3109
3109
|
...r.contentStyles || {}
|
|
3110
3110
|
};
|
|
3111
|
-
}), g =
|
|
3111
|
+
}), g = P(() => ({ width: isNaN(Number(r.width)) ? String(r.width) : `${r.width}px` }));
|
|
3112
3112
|
function _(e) {
|
|
3113
3113
|
e.preventDefault();
|
|
3114
3114
|
}
|
|
@@ -3159,34 +3159,34 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3159
3159
|
e && (c.value = e, m());
|
|
3160
3160
|
}), X([() => r.offsetX, () => r.offsetY], ([e, t], [n, r]) => {
|
|
3161
3161
|
(e !== n || t !== r) && m();
|
|
3162
|
-
}),
|
|
3162
|
+
}), me(() => {
|
|
3163
3163
|
b();
|
|
3164
3164
|
}), t({
|
|
3165
3165
|
isPositioned: p,
|
|
3166
3166
|
update: m
|
|
3167
|
-
}), (t, n) => (
|
|
3167
|
+
}), (t, n) => (W(), L("div", {
|
|
3168
3168
|
ref: "menu-element",
|
|
3169
3169
|
id: e.id,
|
|
3170
|
-
class:
|
|
3171
|
-
style:
|
|
3170
|
+
class: V(t.$style.ui3nMenu),
|
|
3171
|
+
style: H(g.value),
|
|
3172
3172
|
onClick: n[0] ||= (e) => i("click", e)
|
|
3173
|
-
}, [
|
|
3173
|
+
}, [R("div", {
|
|
3174
3174
|
ref: "menu-trigger-element",
|
|
3175
|
-
class:
|
|
3175
|
+
class: V([t.$style.ui3nMenuTrigger, e.disabled && t.$style.ui3nMenuTriggerDisabled]),
|
|
3176
3176
|
onClick: $(x, ["stop"])
|
|
3177
|
-
}, [q(t.$slots, "default")], 2), s.value ? we((
|
|
3177
|
+
}, [q(t.$slots, "default")], 2), s.value ? we((W(), L("div", ue({
|
|
3178
3178
|
key: 0,
|
|
3179
3179
|
ref: "menu-content-element",
|
|
3180
3180
|
style: h.value,
|
|
3181
3181
|
class: t.$style.ui3nMenuContent
|
|
3182
|
-
}, ve(e.closeOnClick ? { click: S } : {}, !0)), [q(t.$slots, "menu")], 16)), [[Y(Dn), C]]) :
|
|
3182
|
+
}, ve(e.closeOnClick ? { click: S } : {}, !0)), [q(t.$slots, "menu")], 16)), [[Y(Dn), C]]) : I("", !0)], 14, oi));
|
|
3183
3183
|
}
|
|
3184
3184
|
}), [["__cssModules", { $style: {
|
|
3185
3185
|
ui3nMenu: "_ui3nMenu_sjqaw_3",
|
|
3186
3186
|
ui3nMenuTrigger: "_ui3nMenuTrigger_sjqaw_10",
|
|
3187
3187
|
ui3nMenuTriggerDisabled: "_ui3nMenuTriggerDisabled_sjqaw_14",
|
|
3188
3188
|
ui3nMenuContent: "_ui3nMenuContent_sjqaw_19"
|
|
3189
|
-
} }]]), ci = ["id"], li = ["onClick"], ui = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3189
|
+
} }]]), ci = ["id"], li = ["onClick"], ui = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3190
3190
|
__name: "ui3n-list",
|
|
3191
3191
|
props: {
|
|
3192
3192
|
id: {},
|
|
@@ -3205,21 +3205,21 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3205
3205
|
emits: ["select"],
|
|
3206
3206
|
setup(e, { emit: t }) {
|
|
3207
3207
|
let n = t;
|
|
3208
|
-
return (t, r) => (
|
|
3208
|
+
return (t, r) => (W(), L("div", {
|
|
3209
3209
|
ref: "listElement",
|
|
3210
3210
|
id: e.id,
|
|
3211
|
-
class:
|
|
3212
|
-
}, [
|
|
3211
|
+
class: V(t.$style.ui3nList)
|
|
3212
|
+
}, [R("div", { class: V([t.$style.ui3nListTitle, e.sticky && t.$style.ui3nListTitleSticky]) }, [q(t.$slots, "title", {}, () => [e.title ? (W(), L("div", {
|
|
3213
3213
|
key: 0,
|
|
3214
|
-
class:
|
|
3215
|
-
}, J(e.title), 3)) :
|
|
3214
|
+
class: V(t.$style.ui3nListTitleContent)
|
|
3215
|
+
}, J(e.title), 3)) : I("", !0)])], 2), R("div", { class: V(t.$style.ui3nListContent) }, [(W(!0), L(N, null, K(e.items, (r, i) => (W(), L("div", {
|
|
3216
3216
|
key: r[e.keyField],
|
|
3217
|
-
class:
|
|
3217
|
+
class: V(t.$style.ui3nListItem)
|
|
3218
3218
|
}, [q(t.$slots, "item", {
|
|
3219
3219
|
item: r,
|
|
3220
3220
|
index: i
|
|
3221
|
-
}, () => [
|
|
3222
|
-
class:
|
|
3221
|
+
}, () => [R("div", {
|
|
3222
|
+
class: V([t.$style.ui3nListItemContent, e.disabled && t.$style.ui3nListItemContentDisabled]),
|
|
3223
3223
|
onClick: $((e) => n("select", {
|
|
3224
3224
|
value: r,
|
|
3225
3225
|
index: i
|
|
@@ -3235,7 +3235,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3235
3235
|
ui3nListItem: "_ui3nListItem_1mtxl_26",
|
|
3236
3236
|
ui3nListItemContent: "_ui3nListItemContent_1mtxl_43",
|
|
3237
3237
|
ui3nListItemContentDisabled: "_ui3nListItemContentDisabled_1mtxl_50"
|
|
3238
|
-
} }]]), di = 32, fi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3238
|
+
} }]]), di = 32, fi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3239
3239
|
__name: "ui3n-scrollbar-vertical",
|
|
3240
3240
|
props: {
|
|
3241
3241
|
thumbMinHeight: { default: di },
|
|
@@ -3254,10 +3254,10 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3254
3254
|
},
|
|
3255
3255
|
emits: ["scroll"],
|
|
3256
3256
|
setup(e, { expose: t, emit: n }) {
|
|
3257
|
-
let r = e, i = n, a =
|
|
3257
|
+
let r = e, i = n, a = G(null), o = G(null), s = G(null), c = G(0), l = G(0), u = G(0), d = G(!1), f = G(!1), p = G(!1), m = null, h, g = 0, _ = 0, v = P(() => c.value > l.value), y = P(() => d.value ? !0 : v.value && (f.value || p.value)), b = P(() => {
|
|
3258
3258
|
let e = Number(r.thumbMinHeight);
|
|
3259
3259
|
return isNaN(e) ? di : e;
|
|
3260
|
-
}), x =
|
|
3260
|
+
}), x = P(() => {
|
|
3261
3261
|
if (!c.value) return 0;
|
|
3262
3262
|
if (r.thumbHeight !== "auto") {
|
|
3263
3263
|
let e = Number(r.thumbHeight);
|
|
@@ -3265,17 +3265,17 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3265
3265
|
}
|
|
3266
3266
|
let e = l.value / c.value, t = l.value * e;
|
|
3267
3267
|
return Math.max(b.value, t);
|
|
3268
|
-
}), S =
|
|
3268
|
+
}), S = P(() => {
|
|
3269
3269
|
if (!c.value || c.value === l.value) return 0;
|
|
3270
3270
|
let e = c.value - l.value, t = l.value - x.value;
|
|
3271
3271
|
return u.value / e * t;
|
|
3272
|
-
}), C =
|
|
3272
|
+
}), C = P(() => {
|
|
3273
3273
|
let e = Number(r.thumbRadius);
|
|
3274
3274
|
return isNaN(e) ? String(r.thumbRadius) : `${e}px`;
|
|
3275
|
-
}), w =
|
|
3275
|
+
}), w = P(() => r.thumbColor), T = P(() => r.thumbHoverColor), E = P(() => r.thumbActiveColor), D = P(() => {
|
|
3276
3276
|
let e = Number(r.trackWidth);
|
|
3277
3277
|
return isNaN(e) ? String(r.trackWidth) : `${e}px`;
|
|
3278
|
-
}), O =
|
|
3278
|
+
}), O = P(() => r.trackColor), k = P(() => {
|
|
3279
3279
|
let e = Number(r.trackRadius);
|
|
3280
3280
|
return isNaN(e) ? String(r.trackRadius) : `${e}px`;
|
|
3281
3281
|
});
|
|
@@ -3292,35 +3292,35 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3292
3292
|
let t = o.value.getBoundingClientRect(), n = e.clientY - t.top - x.value / 2, r = c.value - l.value, i = n / (l.value - x.value) * r;
|
|
3293
3293
|
i = Math.max(0, Math.min(r, i)), a.value.scrollTo({ top: i });
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3296
|
-
!s.value || !a.value || (e.pointerType === "mouse" && e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientY, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove",
|
|
3295
|
+
function te(e) {
|
|
3296
|
+
!s.value || !a.value || (e.pointerType === "mouse" && e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientY, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove", ne), s.value.addEventListener("pointerup", M), s.value.addEventListener("pointercancel", M));
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function ne(e) {
|
|
3299
3299
|
if (!d.value || !a.value) return;
|
|
3300
3300
|
let t = e.clientY - g, n = c.value - l.value, r = t / (l.value - x.value) * n;
|
|
3301
3301
|
a.value.scrollTop = _ + r, u.value = a.value.scrollTop;
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function M(e) {
|
|
3304
3304
|
if (d.value && (d.value = !1, document.body.style.userSelect = "", s.value)) {
|
|
3305
3305
|
try {
|
|
3306
3306
|
s.value.releasePointerCapture(e.pointerId);
|
|
3307
3307
|
} catch {}
|
|
3308
|
-
s.value.removeEventListener("pointermove",
|
|
3308
|
+
s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M);
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
return
|
|
3311
|
+
return U(() => {
|
|
3312
3312
|
A(), a.value && (m = new ResizeObserver(A), m.observe(a.value), r.autoUpdate && a.value.firstElementChild && m.observe(a.value.firstElementChild));
|
|
3313
|
-
}),
|
|
3314
|
-
m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove",
|
|
3313
|
+
}), pe(() => {
|
|
3314
|
+
m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M)), document.body.style.userSelect = "";
|
|
3315
3315
|
}), t({
|
|
3316
3316
|
scrollTo: (e) => {
|
|
3317
3317
|
a.value?.scrollTo(e);
|
|
3318
3318
|
},
|
|
3319
3319
|
getContainer: () => a.value,
|
|
3320
3320
|
updateMetrics: A
|
|
3321
|
-
}), (e, t) => (
|
|
3322
|
-
class:
|
|
3323
|
-
style:
|
|
3321
|
+
}), (e, t) => (W(), L("div", {
|
|
3322
|
+
class: V(e.$style.ui3nScrollbarVertical),
|
|
3323
|
+
style: H({
|
|
3324
3324
|
"--ui3n-scrollbar-thumb-radius": C.value,
|
|
3325
3325
|
"--ui3n-scrollbar-thumb-color": w.value,
|
|
3326
3326
|
"--ui3n-scrollbar-thumb-hover-color": T.value,
|
|
@@ -3331,25 +3331,25 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3331
3331
|
}),
|
|
3332
3332
|
onMouseenter: t[0] ||= (e) => f.value = !0,
|
|
3333
3333
|
onMouseleave: t[1] ||= (e) => f.value = !1
|
|
3334
|
-
}, [
|
|
3334
|
+
}, [R("div", {
|
|
3335
3335
|
ref_key: "containerRef",
|
|
3336
3336
|
ref: a,
|
|
3337
|
-
class:
|
|
3337
|
+
class: V(e.$style.scrollbarContainer),
|
|
3338
3338
|
onScroll: ee
|
|
3339
|
-
}, [q(e.$slots, "default")], 34),
|
|
3339
|
+
}, [q(e.$slots, "default")], 34), R("div", {
|
|
3340
3340
|
ref_key: "trackRef",
|
|
3341
3341
|
ref: o,
|
|
3342
|
-
class:
|
|
3342
|
+
class: V([e.$style.track, { [e.$style.trackVisible]: y.value }]),
|
|
3343
3343
|
onPointerdown: j
|
|
3344
|
-
}, [
|
|
3344
|
+
}, [R("div", {
|
|
3345
3345
|
ref_key: "thumbRef",
|
|
3346
3346
|
ref: s,
|
|
3347
|
-
class:
|
|
3348
|
-
style:
|
|
3347
|
+
class: V([e.$style.thumb, { [e.$style.active]: d.value }]),
|
|
3348
|
+
style: H({
|
|
3349
3349
|
height: `${x.value}px`,
|
|
3350
3350
|
transform: `translateY(${S.value}px)`
|
|
3351
3351
|
}),
|
|
3352
|
-
onPointerdown:
|
|
3352
|
+
onPointerdown: te
|
|
3353
3353
|
}, null, 38)], 34)], 38));
|
|
3354
3354
|
}
|
|
3355
3355
|
}), [["__cssModules", { $style: {
|
|
@@ -3359,7 +3359,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3359
3359
|
trackVisible: "_trackVisible_m0o0t_38",
|
|
3360
3360
|
thumb: "_thumb_m0o0t_44",
|
|
3361
3361
|
active: "_active_m0o0t_57"
|
|
3362
|
-
} }]]), pi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3362
|
+
} }]]), pi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3363
3363
|
__name: "ui3n-virtual-scroll",
|
|
3364
3364
|
props: {
|
|
3365
3365
|
items: {},
|
|
@@ -3378,11 +3378,11 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3378
3378
|
"reached-bottom"
|
|
3379
3379
|
],
|
|
3380
3380
|
setup(e, { expose: t, emit: n }) {
|
|
3381
|
-
let r = e, i = n, a =
|
|
3381
|
+
let r = e, i = n, a = G(0), o = G(null), s = G(null), c = _e([]), l = G(0), u = /* @__PURE__ */ new Map(), d = _e(/* @__PURE__ */ new Map()), f = !1, p = null, m = null, h = [], g = null, _ = /* @__PURE__ */ new Map(), v = P(() => {
|
|
3382
3382
|
if (l.value, !c.value.length) return 0;
|
|
3383
3383
|
let e = c.value[c.value.length - 1];
|
|
3384
3384
|
return e.top + e.height;
|
|
3385
|
-
}), y =
|
|
3385
|
+
}), y = P(() => {
|
|
3386
3386
|
if (o.value !== null) return o.value;
|
|
3387
3387
|
let e = s.value?.getContainer();
|
|
3388
3388
|
return e ? e.clientHeight : 0;
|
|
@@ -3399,18 +3399,18 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3399
3399
|
}
|
|
3400
3400
|
return i === -1 && (i = Math.max(0, r)), i;
|
|
3401
3401
|
}
|
|
3402
|
-
let x =
|
|
3402
|
+
let x = P(() => {
|
|
3403
3403
|
if (l.value, !c.value.length) return 0;
|
|
3404
3404
|
let e = b(c.value, a.value);
|
|
3405
3405
|
return Math.max(0, e - r.renderAhead);
|
|
3406
|
-
}), S =
|
|
3406
|
+
}), S = P(() => {
|
|
3407
3407
|
l.value;
|
|
3408
3408
|
let e = y.value;
|
|
3409
3409
|
if (!e) return r.renderAhead * 2;
|
|
3410
3410
|
if (!c.value.length) return Math.ceil(e / r.minChildHeight) + 2 * r.renderAhead;
|
|
3411
3411
|
let t = b(c.value, a.value);
|
|
3412
3412
|
return b(c.value, a.value + e) - t + 1 + 2 * r.renderAhead;
|
|
3413
|
-
}), C =
|
|
3413
|
+
}), C = P(() => (l.value, c.value.length && c.value[x.value]?.top || 0)), w = P(() => {
|
|
3414
3414
|
let e = x.value, t = S.value;
|
|
3415
3415
|
return e + t >= r.items.length - r.renderAhead ? r.items.slice(e) : r.items.slice(e, e + t);
|
|
3416
3416
|
});
|
|
@@ -3462,7 +3462,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3462
3462
|
for (let [e, t] of n) u.set(e, t);
|
|
3463
3463
|
return d.value = e, t;
|
|
3464
3464
|
}
|
|
3465
|
-
function
|
|
3465
|
+
function te() {
|
|
3466
3466
|
let e = T(), t = c.value, n = h, i = r.stickToBottom && (!t.length || D(e, t)), o = i ? null : A(t, n, a.value);
|
|
3467
3467
|
c.value = j(), l.value++, h = r.items.slice(), g = null;
|
|
3468
3468
|
let u = () => {
|
|
@@ -3474,18 +3474,18 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3474
3474
|
}
|
|
3475
3475
|
s.value?.updateMetrics();
|
|
3476
3476
|
};
|
|
3477
|
-
|
|
3477
|
+
de(() => {
|
|
3478
3478
|
requestAnimationFrame(u);
|
|
3479
3479
|
});
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3481
|
+
function ne(e) {
|
|
3482
3482
|
if (f) return;
|
|
3483
3483
|
let t = e.target;
|
|
3484
3484
|
a.value = t.scrollTop, i("scroll", e);
|
|
3485
3485
|
let n = a.value <= r.reachEdgeThreshold, o = D(t, c.value, r.reachEdgeThreshold);
|
|
3486
3486
|
n ? g !== "top" && (g = "top", i("reached-top")) : o ? g !== "bottom" && (g = "bottom", i("reached-bottom")) : g = null;
|
|
3487
3487
|
}
|
|
3488
|
-
function
|
|
3488
|
+
function M(e, t) {
|
|
3489
3489
|
if (e) {
|
|
3490
3490
|
let n = e.$el || e, r = _.get(t);
|
|
3491
3491
|
r && r !== n && p?.unobserve(r), _.set(t, n), p?.observe(n);
|
|
@@ -3494,31 +3494,31 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3494
3494
|
e && p?.unobserve(e), _.delete(t);
|
|
3495
3495
|
}
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function re() {
|
|
3498
3498
|
k(), s.value?.updateMetrics();
|
|
3499
3499
|
}
|
|
3500
|
-
function
|
|
3500
|
+
function ie(e, t, n) {
|
|
3501
3501
|
return t === "end" ? e.top + e.height - n : t === "center" ? e.top + e.height / 2 - n / 2 : e.top;
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function ae(e, t = "start", n = 5) {
|
|
3504
3504
|
let r = d.value.get(e);
|
|
3505
3505
|
if (r === void 0) return;
|
|
3506
3506
|
let i = c.value[r];
|
|
3507
3507
|
if (!i) return;
|
|
3508
3508
|
let a = T();
|
|
3509
|
-
if (O(a,
|
|
3509
|
+
if (O(a, ie(i, t, a?.clientHeight ?? y.value)), s.value?.updateMetrics(), n <= 0) return;
|
|
3510
3510
|
let o = i.top;
|
|
3511
3511
|
requestAnimationFrame(() => {
|
|
3512
3512
|
let r = d.value.get(e), i = r === void 0 ? void 0 : c.value[r];
|
|
3513
|
-
i && i.top !== o &&
|
|
3513
|
+
i && i.top !== o && ae(e, t, n - 1);
|
|
3514
3514
|
});
|
|
3515
3515
|
}
|
|
3516
3516
|
return t({
|
|
3517
|
-
scrollToBottom:
|
|
3518
|
-
scrollToItem: (e, t) =>
|
|
3517
|
+
scrollToBottom: re,
|
|
3518
|
+
scrollToItem: (e, t) => ae(e, t),
|
|
3519
3519
|
getScrollTop: () => a.value,
|
|
3520
3520
|
isStuckToBottom: () => D(T(), c.value)
|
|
3521
|
-
}),
|
|
3521
|
+
}), U(() => {
|
|
3522
3522
|
let e = T();
|
|
3523
3523
|
e && (o.value = e.clientHeight, m = new ResizeObserver((e) => {
|
|
3524
3524
|
for (let t of e) o.value = t.contentRect.height || t.target.clientHeight;
|
|
@@ -3548,25 +3548,25 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3548
3548
|
});
|
|
3549
3549
|
});
|
|
3550
3550
|
for (let e of _.values()) p.observe(e);
|
|
3551
|
-
}),
|
|
3551
|
+
}), pe(() => {
|
|
3552
3552
|
p?.disconnect(), m?.disconnect();
|
|
3553
|
-
}), X(() => r.items,
|
|
3553
|
+
}), X(() => r.items, te, { immediate: !0 }), (e, t) => (W(), F(fi, {
|
|
3554
3554
|
ref_key: "scrollbarComponentRef",
|
|
3555
3555
|
ref: s,
|
|
3556
|
-
class:
|
|
3556
|
+
class: V(e.$style.ui3nVirtualScroll),
|
|
3557
3557
|
"auto-update": !1,
|
|
3558
|
-
onScroll:
|
|
3558
|
+
onScroll: ne
|
|
3559
3559
|
}, {
|
|
3560
|
-
default: Z(() => [
|
|
3561
|
-
class:
|
|
3562
|
-
style:
|
|
3563
|
-
}, [
|
|
3564
|
-
class:
|
|
3565
|
-
style:
|
|
3566
|
-
}, [(
|
|
3560
|
+
default: Z(() => [R("div", {
|
|
3561
|
+
class: V(e.$style.viewport),
|
|
3562
|
+
style: H({ height: `${v.value}px` })
|
|
3563
|
+
}, [R("div", {
|
|
3564
|
+
class: V(e.$style.content),
|
|
3565
|
+
style: H({ transform: `translateY(${C.value}px)` })
|
|
3566
|
+
}, [(W(!0), L(N, null, K(w.value, (t, n) => (W(), L("div", ue({
|
|
3567
3567
|
key: t.id,
|
|
3568
3568
|
ref_for: !0,
|
|
3569
|
-
ref: (e) =>
|
|
3569
|
+
ref: (e) => M(e, t.id)
|
|
3570
3570
|
}, { ref_for: !0 }, { "data-sid": t.id }, {
|
|
3571
3571
|
class: e.$style.item,
|
|
3572
3572
|
style: { minHeight: `${r.minChildHeight}px` }
|
|
@@ -3582,7 +3582,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3582
3582
|
viewport: "_viewport_1mjyl_5",
|
|
3583
3583
|
content: "_content_1mjyl_14",
|
|
3584
3584
|
item: "_item_1mjyl_18"
|
|
3585
|
-
} }]]), mi = ["id"], hi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3585
|
+
} }]]), mi = ["id"], hi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3586
3586
|
__name: "ui3n-tabs",
|
|
3587
3587
|
props: {
|
|
3588
3588
|
id: {},
|
|
@@ -3596,7 +3596,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3596
3596
|
},
|
|
3597
3597
|
emits: ["update:modelValue"],
|
|
3598
3598
|
setup(e, { emit: t }) {
|
|
3599
|
-
let n = e, r = t, i = ye(), a =
|
|
3599
|
+
let n = e, r = t, i = ye(), a = G(null), o = G(n.modelValue), s = P(() => ({
|
|
3600
3600
|
"--ui3n-tabs-active-color": n.activeColor,
|
|
3601
3601
|
"--ui3n-tabs-inactive-color": n.inactiveColor,
|
|
3602
3602
|
"--ui3n-tabs-indicator-color": n.indicatorColor,
|
|
@@ -3621,17 +3621,17 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3621
3621
|
}
|
|
3622
3622
|
}
|
|
3623
3623
|
return X(() => n.modelValue, (e) => {
|
|
3624
|
-
e !== o.value && (o.value = e,
|
|
3624
|
+
e !== o.value && (o.value = e, de(() => {
|
|
3625
3625
|
c();
|
|
3626
3626
|
}));
|
|
3627
|
-
}, { immediate: !0 }),
|
|
3627
|
+
}, { immediate: !0 }), U(() => {
|
|
3628
3628
|
c();
|
|
3629
|
-
}), (t, n) => (
|
|
3629
|
+
}), (t, n) => (W(), L("div", {
|
|
3630
3630
|
ref_key: "tabs",
|
|
3631
3631
|
ref: a,
|
|
3632
3632
|
id: e.id,
|
|
3633
|
-
style:
|
|
3634
|
-
class:
|
|
3633
|
+
style: H(s.value),
|
|
3634
|
+
class: V([Y(i).ui3nTabs, e.itemDirection === "vertical" && Y(i).vertical]),
|
|
3635
3635
|
onClick: l
|
|
3636
3636
|
}, [q(t.$slots, "default")], 14, mi));
|
|
3637
3637
|
}
|
|
@@ -3640,7 +3640,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3640
3640
|
item: "_item_1yilq_13",
|
|
3641
3641
|
active: "_active_1yilq_52",
|
|
3642
3642
|
vertical: "_vertical_1yilq_60"
|
|
3643
|
-
} }]]), gi = ["id"], _i = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3643
|
+
} }]]), gi = ["id"], _i = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3644
3644
|
__name: "ui3n-badge-simple",
|
|
3645
3645
|
props: {
|
|
3646
3646
|
id: {},
|
|
@@ -3658,32 +3658,32 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3658
3658
|
v74cb25de: e.color,
|
|
3659
3659
|
v77996f31: e.textColor
|
|
3660
3660
|
}));
|
|
3661
|
-
let n = e, r = t, i =
|
|
3661
|
+
let n = e, r = t, i = G(null);
|
|
3662
3662
|
function a() {
|
|
3663
|
-
|
|
3663
|
+
de(() => {
|
|
3664
3664
|
i.value && r("change:size", {
|
|
3665
3665
|
width: i.value.offsetWidth,
|
|
3666
3666
|
height: i.value.offsetHeight
|
|
3667
3667
|
});
|
|
3668
3668
|
});
|
|
3669
3669
|
}
|
|
3670
|
-
return X(() => [n.value, n.dot], () => a()),
|
|
3670
|
+
return X(() => [n.value, n.dot], () => a()), U(() => {
|
|
3671
3671
|
a();
|
|
3672
|
-
}), (t, n) => (
|
|
3672
|
+
}), (t, n) => (W(), L("div", {
|
|
3673
3673
|
ref_key: "element",
|
|
3674
3674
|
ref: i,
|
|
3675
3675
|
id: e.id,
|
|
3676
|
-
class:
|
|
3677
|
-
}, [e.dot ?
|
|
3676
|
+
class: V([t.$style.ui3nBadgeSimple, e.dot && t.$style.ui3nBadgeDot])
|
|
3677
|
+
}, [e.dot ? I("", !0) : (W(), L("span", {
|
|
3678
3678
|
key: 0,
|
|
3679
|
-
class:
|
|
3679
|
+
class: V(t.$style.ui3nBadgeText)
|
|
3680
3680
|
}, J(e.value), 3))], 10, gi));
|
|
3681
3681
|
}
|
|
3682
3682
|
}), [["__cssModules", { $style: {
|
|
3683
3683
|
ui3nBadgeSimple: "_ui3nBadgeSimple_1vu4n_1",
|
|
3684
3684
|
ui3nBadgeDot: "_ui3nBadgeDot_1vu4n_12",
|
|
3685
3685
|
ui3nBadgeText: "_ui3nBadgeText_1vu4n_30"
|
|
3686
|
-
} }]]), vi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3686
|
+
} }]]), vi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3687
3687
|
__name: "ui3n-badge",
|
|
3688
3688
|
props: {
|
|
3689
3689
|
id: {},
|
|
@@ -3697,7 +3697,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3697
3697
|
position: { default: "right-top" }
|
|
3698
3698
|
},
|
|
3699
3699
|
setup(e) {
|
|
3700
|
-
let t = e, n = xe(), r =
|
|
3700
|
+
let t = e, n = xe(), r = G(), i = P(() => !!n.default), a = P(() => {
|
|
3701
3701
|
let [e, n] = t.position.split("-");
|
|
3702
3702
|
return {
|
|
3703
3703
|
...e === "right" && { right: `-${(0, Ur.default)(r.value, "width", 0) / 2}px` },
|
|
@@ -3706,17 +3706,17 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3706
3706
|
...n === "bottom" && { bottom: `-${(0, Ur.default)(r.value, "height", 0) / 2}px` }
|
|
3707
3707
|
};
|
|
3708
3708
|
});
|
|
3709
|
-
return (t, n) => i.value ? (
|
|
3709
|
+
return (t, n) => i.value ? (W(), L("div", {
|
|
3710
3710
|
key: 0,
|
|
3711
|
-
class:
|
|
3712
|
-
}, [
|
|
3711
|
+
class: V(t.$style.ui3nBadge)
|
|
3712
|
+
}, [R("div", { class: V(t.$style.ui3nBadgeWrapper) }, [q(t.$slots, "default"), z(_i, {
|
|
3713
3713
|
id: e.id,
|
|
3714
3714
|
dot: e.dot,
|
|
3715
3715
|
value: e.value,
|
|
3716
3716
|
color: e.color,
|
|
3717
3717
|
"text-color": e.textColor,
|
|
3718
|
-
style:
|
|
3719
|
-
class:
|
|
3718
|
+
style: H(a.value),
|
|
3719
|
+
class: V(t.$style.ui3nBadgeContent),
|
|
3720
3720
|
"onChange:size": n[0] ||= (e) => r.value = e
|
|
3721
3721
|
}, null, 8, [
|
|
3722
3722
|
"id",
|
|
@@ -3726,7 +3726,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3726
3726
|
"text-color",
|
|
3727
3727
|
"style",
|
|
3728
3728
|
"class"
|
|
3729
|
-
])], 2)], 2)) : (
|
|
3729
|
+
])], 2)], 2)) : (W(), F(_i, {
|
|
3730
3730
|
key: 1,
|
|
3731
3731
|
id: e.id,
|
|
3732
3732
|
dot: e.dot,
|
|
@@ -3745,7 +3745,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3745
3745
|
ui3nBadge: "_ui3nBadge_1slsk_1",
|
|
3746
3746
|
ui3nBadgeWrapper: "_ui3nBadgeWrapper_1slsk_6",
|
|
3747
3747
|
ui3nBadgeContent: "_ui3nBadgeContent_1slsk_12"
|
|
3748
|
-
} }]]), yi = { key: 2 }, bi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3748
|
+
} }]]), yi = { key: 2 }, bi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3749
3749
|
__name: "ui3n-breadcrumb",
|
|
3750
3750
|
props: {
|
|
3751
3751
|
separator: { default: void 0 },
|
|
@@ -3760,14 +3760,14 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3760
3760
|
},
|
|
3761
3761
|
emits: ["click"],
|
|
3762
3762
|
setup(e, { emit: t }) {
|
|
3763
|
-
let n = e, r = t, i = xe(), a = ye(), o =
|
|
3763
|
+
let n = e, r = t, i = xe(), a = ye(), o = le("ui3n-breadcrumbs-context", null), s = P(() => n.separator ? n.separator : o ? o.separator() : "/"), c = P(() => o ? o.disabled() : !1), l = P(() => {
|
|
3764
3764
|
let e = [a.ui3nBreadcrumb];
|
|
3765
3765
|
return n.isActive && e.push(a.ui3nBreadcrumbActive), (n.disabled || c.value) && e.push(a.ui3nBreadcrumbDisabled), e;
|
|
3766
3766
|
});
|
|
3767
3767
|
function u(e) {
|
|
3768
3768
|
r("click", e);
|
|
3769
3769
|
}
|
|
3770
|
-
return (t, n) => (
|
|
3770
|
+
return (t, n) => (W(), L("div", ue({ class: l.value }, ve(e.isActive && !(e.disabled || c.value) ? { click: u } : {}, !0)), [R("span", { class: V(t.$style.content) }, [q(t.$slots, "default")], 2), R("div", { class: V(t.$style.ui3nBreadcrumbSeparator) }, [typeof Y(i).separator == "function" ? q(t.$slots, "separator", { key: 0 }) : Y(o)?.customSeparatorSlot ? (W(), F(ge(Y(o).customSeparatorSlot), { key: 1 })) : (W(), L("span", yi, J(s.value), 1))], 2)], 16));
|
|
3771
3771
|
}
|
|
3772
3772
|
}), [["__cssModules", { $style: {
|
|
3773
3773
|
ui3nBreadcrumb: "_ui3nBreadcrumb_1tz9w_1",
|
|
@@ -3775,7 +3775,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3775
3775
|
content: "_content_1tz9w_14",
|
|
3776
3776
|
ui3nBreadcrumbActive: "_ui3nBreadcrumbActive_1tz9w_28",
|
|
3777
3777
|
ui3nBreadcrumbDisabled: "_ui3nBreadcrumbDisabled_1tz9w_33"
|
|
3778
|
-
} }]]), xi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3778
|
+
} }]]), xi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3779
3779
|
__name: "ui3n-breadcrumbs",
|
|
3780
3780
|
props: {
|
|
3781
3781
|
separator: { default: "/" },
|
|
@@ -3786,18 +3786,18 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3786
3786
|
},
|
|
3787
3787
|
setup(e) {
|
|
3788
3788
|
let t = e;
|
|
3789
|
-
return
|
|
3789
|
+
return he("ui3n-breadcrumbs-context", {
|
|
3790
3790
|
separator: () => t.separator,
|
|
3791
3791
|
disabled: () => t.disabled,
|
|
3792
3792
|
customSeparatorSlot: xe().separator
|
|
3793
|
-
}), (e, t) => (
|
|
3793
|
+
}), (e, t) => (W(), L("div", { class: V(e.$style.ui3nBreadcrumbs) }, [q(e.$slots, "default")], 2));
|
|
3794
3794
|
}
|
|
3795
3795
|
}), [["__cssModules", { $style: { ui3nBreadcrumbs: "_ui3nBreadcrumbs_1oq6f_1" } }]]), Si = ["id", "tabindex"], Ci = [
|
|
3796
3796
|
"name",
|
|
3797
3797
|
"checked",
|
|
3798
3798
|
"disabled",
|
|
3799
3799
|
"value"
|
|
3800
|
-
], wi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3800
|
+
], wi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3801
3801
|
__name: "ui3n-switch",
|
|
3802
3802
|
props: {
|
|
3803
3803
|
id: {},
|
|
@@ -3812,7 +3812,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3812
3812
|
},
|
|
3813
3813
|
emits: ["change", "update:modelValue"],
|
|
3814
3814
|
setup(e, { expose: t, emit: n }) {
|
|
3815
|
-
let r = e, i = n, a = xe(), o =
|
|
3815
|
+
let r = e, i = n, a = xe(), o = G(!1), s = P(() => ({
|
|
3816
3816
|
"--ui3n-switch-color": r.color,
|
|
3817
3817
|
"--ui3n-switch-size": `${r.size}px`
|
|
3818
3818
|
}));
|
|
@@ -3824,11 +3824,11 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3824
3824
|
}
|
|
3825
3825
|
return t({ clear: l }), X(() => r.name, (e) => {
|
|
3826
3826
|
e || l();
|
|
3827
|
-
}), X(() => r.modelValue, (e) => o.value = e, { immediate: !0 }), (t, n) => (
|
|
3827
|
+
}), X(() => r.modelValue, (e) => o.value = e, { immediate: !0 }), (t, n) => (W(), L("div", {
|
|
3828
3828
|
id: e.id,
|
|
3829
|
-
style:
|
|
3829
|
+
style: H(s.value),
|
|
3830
3830
|
tabindex: e.disabled ? -1 : 0,
|
|
3831
|
-
class:
|
|
3831
|
+
class: V([
|
|
3832
3832
|
t.$style.ui3nSwitch,
|
|
3833
3833
|
o.value && t.$style.checked,
|
|
3834
3834
|
!Y(a).default && t.$style.noLabel,
|
|
@@ -3837,7 +3837,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3837
3837
|
onKeydown: [Q(c, ["enter"]), Q(c, ["space"])],
|
|
3838
3838
|
onClick: c
|
|
3839
3839
|
}, [
|
|
3840
|
-
e.name ? (
|
|
3840
|
+
e.name ? (W(), L("input", {
|
|
3841
3841
|
key: 0,
|
|
3842
3842
|
type: "checkbox",
|
|
3843
3843
|
hidden: "",
|
|
@@ -3845,9 +3845,9 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3845
3845
|
checked: o.value,
|
|
3846
3846
|
disabled: e.disabled,
|
|
3847
3847
|
value: o.value ? "on" : ""
|
|
3848
|
-
}, null, 8, Ci)) :
|
|
3849
|
-
|
|
3850
|
-
|
|
3848
|
+
}, null, 8, Ci)) : I("", !0),
|
|
3849
|
+
R("div", { class: V(t.$style.body) }, [R("div", { class: V([t.$style.dot, o.value ? t.$style.right : t.$style.left]) }, null, 2)], 2),
|
|
3850
|
+
R("div", { class: V(t.$style.label) }, [q(t.$slots, "default")], 2)
|
|
3851
3851
|
], 46, Si));
|
|
3852
3852
|
}
|
|
3853
3853
|
}), [["__cssModules", { $style: {
|
|
@@ -3860,7 +3860,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3860
3860
|
right: "_right_1lo7b_57",
|
|
3861
3861
|
label: "_label_1lo7b_61",
|
|
3862
3862
|
disabled: "_disabled_1lo7b_68"
|
|
3863
|
-
} }]]), Ti = ["id"], Ei = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3863
|
+
} }]]), Ti = ["id"], Ei = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3864
3864
|
__name: "ui3n-step-line-bar",
|
|
3865
3865
|
props: {
|
|
3866
3866
|
id: {},
|
|
@@ -3869,13 +3869,13 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3869
3869
|
steps: { default: 1 }
|
|
3870
3870
|
},
|
|
3871
3871
|
setup(e) {
|
|
3872
|
-
let t = e, n =
|
|
3873
|
-
return (t, r) => (
|
|
3872
|
+
let t = e, n = P(() => Math.max(0, Math.floor(t.steps)));
|
|
3873
|
+
return (t, r) => (W(), L("div", {
|
|
3874
3874
|
id: e.id,
|
|
3875
|
-
class:
|
|
3876
|
-
}, [
|
|
3875
|
+
class: V(t.$style.ui3nStepLineBar)
|
|
3876
|
+
}, [R("div", { class: V(t.$style.label) }, J(e.label), 3), R("div", { class: V(t.$style.body) }, [(W(!0), L(N, null, K(n.value, (n) => (W(), L("div", {
|
|
3877
3877
|
key: n,
|
|
3878
|
-
class:
|
|
3878
|
+
class: V([t.$style.step, n <= e.current && t.$style.active])
|
|
3879
3879
|
}, null, 2))), 128))], 2)], 10, Ti));
|
|
3880
3880
|
}
|
|
3881
3881
|
}), [["__cssModules", { $style: {
|
|
@@ -3884,7 +3884,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3884
3884
|
body: "_body_119zg_17",
|
|
3885
3885
|
step: "_step_119zg_25",
|
|
3886
3886
|
active: "_active_119zg_33"
|
|
3887
|
-
} }]]), Di = 12, Oi = 5, ki = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3887
|
+
} }]]), Di = 12, Oi = 5, ki = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3888
3888
|
__name: "ui3n-progress-linear",
|
|
3889
3889
|
props: {
|
|
3890
3890
|
value: { default: 0 },
|
|
@@ -3904,28 +3904,28 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3904
3904
|
let t = e, n = (e) => {
|
|
3905
3905
|
let t = parseFloat(String(e));
|
|
3906
3906
|
return isNaN(t) ? 0 : t;
|
|
3907
|
-
}, r =
|
|
3907
|
+
}, r = P(() => n(t.height)), i = P(() => {
|
|
3908
3908
|
let e = n(t.value);
|
|
3909
3909
|
return Math.min(Math.max(e, 0), 100);
|
|
3910
|
-
}), a =
|
|
3910
|
+
}), a = P(() => t.withText && !t.indeterminate), o = P(() => `${i.value}%`), s = P(() => ({
|
|
3911
3911
|
"--ui3n-progress-linear-height": `${r.value}px`,
|
|
3912
3912
|
"--ui3n-progress-linear-bg": t.bgColor,
|
|
3913
3913
|
"--ui3n-progress-linear-color": t.color,
|
|
3914
3914
|
"--ui3n-progress-linear-font-size": `${Math.max(r.value - 2, 10)}px`
|
|
3915
3915
|
}));
|
|
3916
|
-
return (t, n) => (
|
|
3917
|
-
style:
|
|
3918
|
-
class:
|
|
3919
|
-
}, [a.value && r.value < Di ? (
|
|
3916
|
+
return (t, n) => (W(), L("div", {
|
|
3917
|
+
style: H(s.value),
|
|
3918
|
+
class: V([t.$style.ui3nProgressLinear, e.indeterminate && t.$style.indeterminate])
|
|
3919
|
+
}, [a.value && r.value < Di ? (W(), L("div", {
|
|
3920
3920
|
key: 0,
|
|
3921
|
-
class:
|
|
3922
|
-
}, J(o.value), 3)) :
|
|
3923
|
-
class:
|
|
3924
|
-
style:
|
|
3925
|
-
}, [a.value && r.value >= Di && i.value >= Oi ? (
|
|
3921
|
+
class: V([t.$style.text, t.$style.above])
|
|
3922
|
+
}, J(o.value), 3)) : I("", !0), R("div", { class: V(t.$style.body) }, [R("div", {
|
|
3923
|
+
class: V(t.$style.value),
|
|
3924
|
+
style: H(e.indeterminate ? void 0 : { width: o.value })
|
|
3925
|
+
}, [a.value && r.value >= Di && i.value >= Oi ? (W(), L("div", {
|
|
3926
3926
|
key: 0,
|
|
3927
|
-
class:
|
|
3928
|
-
}, J(o.value), 3)) :
|
|
3927
|
+
class: V(t.$style.text)
|
|
3928
|
+
}, J(o.value), 3)) : I("", !0)], 6)], 2)], 6));
|
|
3929
3929
|
}
|
|
3930
3930
|
}), [["__cssModules", { $style: {
|
|
3931
3931
|
ui3nProgressLinear: "_ui3nProgressLinear_1avv2_1",
|
|
@@ -3935,7 +3935,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3935
3935
|
above: "_above_1avv2_37",
|
|
3936
3936
|
indeterminate: "_indeterminate_1avv2_47",
|
|
3937
3937
|
"linear-fly": "_linear-fly_1avv2_1"
|
|
3938
|
-
} }]]), Ai = ["height", "width"], ji = ["r"], Mi = ["r", "stroke-dasharray"], Ni = /* @__PURE__ */ k(/* @__PURE__ */
|
|
3938
|
+
} }]]), Ai = ["height", "width"], ji = ["r"], Mi = ["r", "stroke-dasharray"], Ni = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
3939
3939
|
__name: "ui3n-progress-circular",
|
|
3940
3940
|
props: {
|
|
3941
3941
|
value: { default: 0 },
|
|
@@ -3956,39 +3956,39 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3956
3956
|
let t = e, n = (e) => {
|
|
3957
3957
|
let t = parseFloat(String(e));
|
|
3958
3958
|
return isNaN(t) ? 0 : t;
|
|
3959
|
-
}, r =
|
|
3959
|
+
}, r = P(() => n(t.size) || 64), i = P(() => Math.min(Math.max(n(t.value), 0), 100)), a = P(() => t.withText && !t.indeterminate), o = P(() => t.width ? n(t.width) / r.value * 100 : 8), s = P(() => (100 - o.value) / 2), c = P(() => Math.round(Math.PI * 2 * s.value)), l = P(() => {
|
|
3960
3960
|
let e = Math.round(c.value * i.value / 100);
|
|
3961
3961
|
return `${e} ${c.value - e}`;
|
|
3962
|
-
}), u =
|
|
3962
|
+
}), u = P(() => `${Math.floor(r.value / 3.8)}px`), d = P(() => ({
|
|
3963
3963
|
"--ui3n-progress-circular-size": `${r.value}px`,
|
|
3964
3964
|
"--ui3n-progress-circular-font-size": u.value,
|
|
3965
3965
|
"--ui3n-progress-circular-bg": t.bgColor,
|
|
3966
3966
|
"--ui3n-progress-circular-color": t.color,
|
|
3967
3967
|
"--ui3n-progress-virtual-width": String(o.value)
|
|
3968
3968
|
}));
|
|
3969
|
-
return (t, n) => (
|
|
3970
|
-
style:
|
|
3971
|
-
class:
|
|
3972
|
-
}, [(
|
|
3969
|
+
return (t, n) => (W(), L("div", {
|
|
3970
|
+
style: H(d.value),
|
|
3971
|
+
class: V([t.$style.ui3nProgressCircular, e.indeterminate && t.$style.indeterminate])
|
|
3972
|
+
}, [(W(), L("svg", {
|
|
3973
3973
|
height: r.value,
|
|
3974
3974
|
width: r.value,
|
|
3975
3975
|
viewBox: "0 0 100 100",
|
|
3976
|
-
class:
|
|
3977
|
-
}, [
|
|
3978
|
-
class:
|
|
3976
|
+
class: V(t.$style.pie)
|
|
3977
|
+
}, [R("circle", {
|
|
3978
|
+
class: V(t.$style.background),
|
|
3979
3979
|
r: s.value,
|
|
3980
3980
|
cx: "50",
|
|
3981
3981
|
cy: "50"
|
|
3982
|
-
}, null, 10, ji),
|
|
3983
|
-
class:
|
|
3982
|
+
}, null, 10, ji), R("circle", {
|
|
3983
|
+
class: V(t.$style.chart),
|
|
3984
3984
|
r: s.value,
|
|
3985
3985
|
cx: "50",
|
|
3986
3986
|
cy: "50",
|
|
3987
3987
|
"stroke-dasharray": e.indeterminate ? void 0 : l.value
|
|
3988
|
-
}, null, 10, Mi)], 10, Ai)), a.value ? (
|
|
3988
|
+
}, null, 10, Mi)], 10, Ai)), a.value ? (W(), L("div", {
|
|
3989
3989
|
key: 0,
|
|
3990
|
-
class:
|
|
3991
|
-
}, J(i.value) + "% ", 3)) :
|
|
3990
|
+
class: V(t.$style.text)
|
|
3991
|
+
}, J(i.value) + "% ", 3)) : I("", !0)], 6));
|
|
3992
3992
|
}
|
|
3993
3993
|
}), [["__cssModules", { $style: {
|
|
3994
3994
|
ui3nProgressCircular: "_ui3nProgressCircular_zypt9_1",
|
|
@@ -3999,7 +3999,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
3999
3999
|
indeterminate: "_indeterminate_zypt9_45",
|
|
4000
4000
|
"circular-spin": "_circular-spin_zypt9_1",
|
|
4001
4001
|
"circular-dash": "_circular-dash_zypt9_1"
|
|
4002
|
-
} }]]), Pi = 5, Fi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
4002
|
+
} }]]), Pi = 5, Fi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4003
4003
|
__name: "ui3n-tooltip",
|
|
4004
4004
|
props: {
|
|
4005
4005
|
id: {},
|
|
@@ -4026,10 +4026,10 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4026
4026
|
"update:modelValue"
|
|
4027
4027
|
],
|
|
4028
4028
|
setup(e, { emit: t }) {
|
|
4029
|
-
let n = e, r = t, i =
|
|
4029
|
+
let n = e, r = t, i = G(!1), a = G(null), o = G(null), s = G(null), c = G(!1), l = P(() => {
|
|
4030
4030
|
let [e] = n.placement.split("-");
|
|
4031
4031
|
return e;
|
|
4032
|
-
}), u =
|
|
4032
|
+
}), u = P(() => {
|
|
4033
4033
|
let e = {
|
|
4034
4034
|
mainAxis: 0,
|
|
4035
4035
|
crossAxis: 0
|
|
@@ -4049,7 +4049,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4049
4049
|
break;
|
|
4050
4050
|
}
|
|
4051
4051
|
return e;
|
|
4052
|
-
}), d =
|
|
4052
|
+
}), d = P(() => [Oe(u.value), Te({
|
|
4053
4053
|
element: s,
|
|
4054
4054
|
padding: 8
|
|
4055
4055
|
})]), { floatingStyles: f, isPositioned: p, middlewareData: m } = Ae(a, o, {
|
|
@@ -4058,7 +4058,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4058
4058
|
strategy: n.positionStrategy,
|
|
4059
4059
|
middleware: d,
|
|
4060
4060
|
whileElementsMounted: n.positionStrategy === "fixed" ? Ee : void 0
|
|
4061
|
-
}), h =
|
|
4061
|
+
}), h = P(() => {
|
|
4062
4062
|
let e = typeof n.maxContentWidth == "number" || !isNaN(Number(n.maxContentWidth)) ? `${n.maxContentWidth}px` : String(n.maxContentWidth);
|
|
4063
4063
|
return {
|
|
4064
4064
|
...f.value,
|
|
@@ -4084,33 +4084,33 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4084
4084
|
function b() {
|
|
4085
4085
|
y(), !(!a.value || n.disabled) && (n.trigger === "hover" ? (a.value.addEventListener("mouseenter", g), a.value.addEventListener("mouseleave", _)) : n.trigger === "click" && a.value.addEventListener("click", v));
|
|
4086
4086
|
}
|
|
4087
|
-
return
|
|
4087
|
+
return U(() => {
|
|
4088
4088
|
c.value = !0, b();
|
|
4089
|
-
}),
|
|
4089
|
+
}), pe(() => {
|
|
4090
4090
|
y();
|
|
4091
4091
|
}), X([() => n.trigger, () => n.disabled], () => {
|
|
4092
4092
|
b();
|
|
4093
4093
|
}), X(() => n.modelValue, (e) => n.trigger === "manual" && (i.value = e), { immediate: !0 }), X(p, (e) => {
|
|
4094
4094
|
r(e ? "opened" : "closed");
|
|
4095
|
-
}), (t, n) => (
|
|
4095
|
+
}), (t, n) => (W(), L(N, null, [R("div", {
|
|
4096
4096
|
ref_key: "referenceContainer",
|
|
4097
4097
|
ref: a,
|
|
4098
|
-
class:
|
|
4099
|
-
}, [q(t.$slots, "default")], 2), i.value ? (
|
|
4098
|
+
class: V(t.$style.container)
|
|
4099
|
+
}, [q(t.$slots, "default")], 2), i.value ? (W(), L("div", {
|
|
4100
4100
|
key: 0,
|
|
4101
4101
|
ref_key: "floatingEl",
|
|
4102
4102
|
ref: o,
|
|
4103
|
-
class:
|
|
4104
|
-
style:
|
|
4105
|
-
}, [q(t.$slots, "content", {}, () => [
|
|
4103
|
+
class: V(t.$style.floating),
|
|
4104
|
+
style: H(h.value)
|
|
4105
|
+
}, [q(t.$slots, "content", {}, () => [R("div", { class: V(t.$style.content) }, [ce(J(e.content) + " ", 1), R("div", {
|
|
4106
4106
|
ref_key: "floatingArrowEl",
|
|
4107
4107
|
ref: s,
|
|
4108
|
-
class:
|
|
4109
|
-
style:
|
|
4108
|
+
class: V([t.$style.arrow, t.$style[`arrow-${l.value}`]]),
|
|
4109
|
+
style: H({
|
|
4110
4110
|
left: Y(m).arrow?.x == null ? "" : `${Y(m).arrow?.x}px`,
|
|
4111
4111
|
top: Y(m).arrow?.y == null ? "" : `${Y(m).arrow?.y}px`
|
|
4112
4112
|
})
|
|
4113
|
-
}, null, 6)], 2)])], 6)) :
|
|
4113
|
+
}, null, 6)], 2)])], 6)) : I("", !0)], 64));
|
|
4114
4114
|
}
|
|
4115
4115
|
}), [["__cssModules", { $style: {
|
|
4116
4116
|
container: "_container_1wkac_1",
|
|
@@ -4126,7 +4126,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4126
4126
|
"checked",
|
|
4127
4127
|
"value",
|
|
4128
4128
|
"disabled"
|
|
4129
|
-
], Li = ["tabindex"], Ri = ["width", "height"], zi = ["width", "height"], Bi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
4129
|
+
], Li = ["tabindex"], Ri = ["width", "height"], zi = ["width", "height"], Bi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4130
4130
|
__name: "ui3n-radio",
|
|
4131
4131
|
props: {
|
|
4132
4132
|
id: {},
|
|
@@ -4164,7 +4164,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4164
4164
|
},
|
|
4165
4165
|
emits: ["change", "update:modelValue"],
|
|
4166
4166
|
setup(e, { expose: t, emit: n }) {
|
|
4167
|
-
let r = e, i = n, a = xe(), o =
|
|
4167
|
+
let r = e, i = n, a = xe(), o = le("ui3n-radio-group-context", null), s = P(() => o !== null), c = P(() => o ? o.groupName.value : r.name || ""), l = G(s.value && o ? o.groupValue.value : r.modelValue), u = P(() => s.value && o ? o.groupValue.value === r.checkedValue : l.value === r.checkedValue), d = P(() => ({
|
|
4168
4168
|
"--ui3n-radio-size": `${r.size}px`,
|
|
4169
4169
|
"--ui3n-radio-color": r.color
|
|
4170
4170
|
}));
|
|
@@ -4180,22 +4180,22 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4180
4180
|
function p() {
|
|
4181
4181
|
l.value = r.uncheckedValue, s.value || (i("change", l.value), i("update:modelValue", l.value));
|
|
4182
4182
|
}
|
|
4183
|
-
return t({ clear: p }),
|
|
4183
|
+
return t({ clear: p }), fe(() => {
|
|
4184
4184
|
let e = !!a.checkedIcon, t = !!a.uncheckedIcon;
|
|
4185
4185
|
if (e && !t || !e && t) throw Error("[Ui3nRadio] Both checkedIcon and uncheckedIcon slots must have values defined.");
|
|
4186
4186
|
}), X(() => r.name, (e) => {
|
|
4187
4187
|
!e && !s.value && p();
|
|
4188
4188
|
}), X(() => r.modelValue, (e) => {
|
|
4189
4189
|
e !== l.value && (l.value = e);
|
|
4190
|
-
}), (t, n) => (
|
|
4191
|
-
style:
|
|
4192
|
-
class:
|
|
4190
|
+
}), (t, n) => (W(), L("div", {
|
|
4191
|
+
style: H(d.value),
|
|
4192
|
+
class: V([
|
|
4193
4193
|
t.$style.ui3nRadio,
|
|
4194
4194
|
e.disabled && t.$style.disabled,
|
|
4195
4195
|
!Y(a).default && t.$style.noLabel
|
|
4196
4196
|
])
|
|
4197
4197
|
}, [
|
|
4198
|
-
|
|
4198
|
+
R("input", {
|
|
4199
4199
|
type: "radio",
|
|
4200
4200
|
hidden: "",
|
|
4201
4201
|
name: c.value,
|
|
@@ -4203,29 +4203,29 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4203
4203
|
value: String(e.checkedValue),
|
|
4204
4204
|
disabled: e.disabled
|
|
4205
4205
|
}, null, 8, Ii),
|
|
4206
|
-
|
|
4207
|
-
class:
|
|
4206
|
+
R("div", {
|
|
4207
|
+
class: V([t.$style.body, e.disabled && t.$style.bodyDisabled]),
|
|
4208
4208
|
tabindex: e.disabled ? -1 : 0,
|
|
4209
4209
|
onKeydown: [Q(f, ["enter"]), Q(f, ["space"])],
|
|
4210
4210
|
onClick: f
|
|
4211
|
-
}, [u.value ? q(t.$slots, "checkedIcon", { key: 0 }, () => [(
|
|
4211
|
+
}, [u.value ? q(t.$slots, "checkedIcon", { key: 0 }, () => [(W(), L("svg", {
|
|
4212
4212
|
width: Number(e.size) - 4,
|
|
4213
4213
|
height: Number(e.size) - 4,
|
|
4214
4214
|
viewBox: "0 0 24 24",
|
|
4215
|
-
class:
|
|
4216
|
-
}, [...n[0] ||= [
|
|
4215
|
+
class: V([t.$style.icon, e.disabled && t.$style.iconDisabled])
|
|
4216
|
+
}, [...n[0] ||= [R("path", {
|
|
4217
4217
|
fill: "currentColor",
|
|
4218
4218
|
d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8"
|
|
4219
|
-
}, null, -1)]], 10, Ri))]) : q(t.$slots, "uncheckedIcon", { key: 1 }, () => [(
|
|
4219
|
+
}, null, -1)]], 10, Ri))]) : q(t.$slots, "uncheckedIcon", { key: 1 }, () => [(W(), L("svg", {
|
|
4220
4220
|
width: Number(e.size) - 4,
|
|
4221
4221
|
height: Number(e.size) - 4,
|
|
4222
4222
|
viewBox: "0 0 24 24",
|
|
4223
|
-
class:
|
|
4224
|
-
}, [...n[1] ||= [
|
|
4223
|
+
class: V([t.$style.icon, e.disabled && t.$style.iconDisabled])
|
|
4224
|
+
}, [...n[1] ||= [R("path", {
|
|
4225
4225
|
fill: "currentColor",
|
|
4226
4226
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8"
|
|
4227
4227
|
}, null, -1)]], 10, zi))])], 42, Li),
|
|
4228
|
-
|
|
4228
|
+
R("div", { class: V(t.$style.label) }, [q(t.$slots, "default")], 2)
|
|
4229
4229
|
], 6));
|
|
4230
4230
|
}
|
|
4231
4231
|
}), [["__cssModules", { $style: {
|
|
@@ -4237,7 +4237,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4237
4237
|
icon: "_icon_17bki_62",
|
|
4238
4238
|
bodyDisabled: "_bodyDisabled_17bki_71",
|
|
4239
4239
|
iconDisabled: "_iconDisabled_17bki_72"
|
|
4240
|
-
} }]]), Vi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
4240
|
+
} }]]), Vi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4241
4241
|
__name: "ui3n-radio-group",
|
|
4242
4242
|
props: {
|
|
4243
4243
|
id: {},
|
|
@@ -4255,13 +4255,13 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4255
4255
|
},
|
|
4256
4256
|
emits: ["change", "update:modelValue"],
|
|
4257
4257
|
setup(e, { expose: t, emit: n }) {
|
|
4258
|
-
let r = e, i = n, a =
|
|
4258
|
+
let r = e, i = n, a = G(r.modelValue);
|
|
4259
4259
|
function o(e) {
|
|
4260
4260
|
a.value = e, i("update:modelValue", e), i("change", e);
|
|
4261
4261
|
}
|
|
4262
|
-
|
|
4263
|
-
groupValue:
|
|
4264
|
-
groupName:
|
|
4262
|
+
he("ui3n-radio-group-context", {
|
|
4263
|
+
groupValue: P(() => a.value),
|
|
4264
|
+
groupName: P(() => r.name || ""),
|
|
4265
4265
|
updateGroupValue: o
|
|
4266
4266
|
});
|
|
4267
4267
|
function s() {
|
|
@@ -4271,7 +4271,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4271
4271
|
e !== a.value && (a.value = e);
|
|
4272
4272
|
}), X(() => r.name, (e) => {
|
|
4273
4273
|
e || s();
|
|
4274
|
-
}), (t, n) => (
|
|
4274
|
+
}), (t, n) => (W(), L("div", { class: V([t.$style.ui3nRadioGroup, e.direction === "horizontal" && t.$style.horizontal]) }, [q(t.$slots, "default")], 2));
|
|
4275
4275
|
}
|
|
4276
4276
|
}), [["__cssModules", { $style: {
|
|
4277
4277
|
ui3nRadioGroup: "_ui3nRadioGroup_1aejh_1",
|
|
@@ -4280,7 +4280,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4280
4280
|
"value",
|
|
4281
4281
|
"placeholder",
|
|
4282
4282
|
"disabled"
|
|
4283
|
-
], Gi = ["title"], Ki = 60, qi = /* @__PURE__ */ k(/* @__PURE__ */
|
|
4283
|
+
], Gi = ["title"], Ki = 60, qi = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4284
4284
|
__name: "ui3n-editable",
|
|
4285
4285
|
props: {
|
|
4286
4286
|
id: {},
|
|
@@ -4303,7 +4303,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4303
4303
|
"focusout"
|
|
4304
4304
|
],
|
|
4305
4305
|
setup(e, { expose: t, emit: n }) {
|
|
4306
|
-
let r = O, i = Dn, a = e, o = n, s =
|
|
4306
|
+
let r = O, i = Dn, a = e, o = n, s = G(null), c = G(null), l = G("auto"), u = G(null), d = G(a.modelValue), f = G(a.modelValue), p = G(!1), m = P(() => {
|
|
4307
4307
|
let e = "100%";
|
|
4308
4308
|
if (a.maxWidth) {
|
|
4309
4309
|
let t = Number(a.maxWidth);
|
|
@@ -4313,12 +4313,12 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4313
4313
|
"--ui3n-editable-min-width": `${Ki}px`,
|
|
4314
4314
|
"--ui3n-editable-max-width": e
|
|
4315
4315
|
};
|
|
4316
|
-
}), h =
|
|
4316
|
+
}), h = P(() => u.value ? u.value.scrollWidth > u.value.clientWidth : !1), g = P(() => a.disallowEmptyValue ? !!d.value : !0);
|
|
4317
4317
|
function _() {
|
|
4318
4318
|
c.value && (c.value.textContent = d.value || a.placeholder || "", l.value = `${Math.max(c.value.scrollWidth + 48, Ki)}px`);
|
|
4319
4319
|
}
|
|
4320
4320
|
function v() {
|
|
4321
|
-
a.disabled || (p.value = !0, f.value = d.value,
|
|
4321
|
+
a.disabled || (p.value = !0, f.value = d.value, de(() => {
|
|
4322
4322
|
s.value && (_(), s.value.focus(), a.selectAllOnFocus && s.value.select());
|
|
4323
4323
|
}));
|
|
4324
4324
|
}
|
|
@@ -4343,32 +4343,32 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4343
4343
|
!a.disabled && o("toggle:editMode", e);
|
|
4344
4344
|
}), X(() => a.name, (e) => {
|
|
4345
4345
|
e || C();
|
|
4346
|
-
}), (t, n) => we((
|
|
4346
|
+
}), (t, n) => we((W(), L("div", {
|
|
4347
4347
|
id: e.id,
|
|
4348
|
-
class:
|
|
4348
|
+
class: V([
|
|
4349
4349
|
t.$style.ui3nEditable,
|
|
4350
4350
|
e.disabled && t.$style.ui3nEditableDisabled,
|
|
4351
4351
|
p.value && t.$style.ui3nEditableInEdit,
|
|
4352
4352
|
p.value && !g.value && t.$style.ui3nEditableInEditWarning
|
|
4353
4353
|
]),
|
|
4354
|
-
style:
|
|
4354
|
+
style: H(m.value),
|
|
4355
4355
|
onFocusin: n[0] ||= (e) => o("focusin", e)
|
|
4356
|
-
}, [e.name ? (
|
|
4356
|
+
}, [e.name ? (W(), L("input", {
|
|
4357
4357
|
key: 0,
|
|
4358
4358
|
type: "hidden",
|
|
4359
4359
|
name: e.name,
|
|
4360
4360
|
value: d.value
|
|
4361
|
-
}, null, 8, Ui)) :
|
|
4362
|
-
|
|
4361
|
+
}, null, 8, Ui)) : I("", !0), p.value ? (W(), L(N, { key: 1 }, [
|
|
4362
|
+
R("span", {
|
|
4363
4363
|
ref_key: "hiddenEl",
|
|
4364
4364
|
ref: c,
|
|
4365
|
-
class:
|
|
4365
|
+
class: V(t.$style.hidden)
|
|
4366
4366
|
}, null, 2),
|
|
4367
|
-
|
|
4367
|
+
R("input", {
|
|
4368
4368
|
ref_key: "inputEl",
|
|
4369
4369
|
ref: s,
|
|
4370
|
-
class:
|
|
4371
|
-
style:
|
|
4370
|
+
class: V(t.$style.input),
|
|
4371
|
+
style: H({ width: l.value }),
|
|
4372
4372
|
value: d.value,
|
|
4373
4373
|
placeholder: e.placeholder,
|
|
4374
4374
|
disabled: e.disabled,
|
|
@@ -4379,41 +4379,41 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4379
4379
|
Q(x, ["esc"])
|
|
4380
4380
|
]
|
|
4381
4381
|
}, null, 46, Wi),
|
|
4382
|
-
we((
|
|
4383
|
-
class:
|
|
4382
|
+
we((W(), L("div", {
|
|
4383
|
+
class: V([
|
|
4384
4384
|
t.$style.btn,
|
|
4385
4385
|
t.$style.doneBtn,
|
|
4386
4386
|
e.disabled && t.$style.btnDisabled
|
|
4387
4387
|
]),
|
|
4388
4388
|
onClick: $(b, ["stop", "prevent"])
|
|
4389
|
-
}, [
|
|
4389
|
+
}, [z(ee, {
|
|
4390
4390
|
icon: "round-done",
|
|
4391
4391
|
size: "12",
|
|
4392
4392
|
color: "var(--color-icon-table-accent-default)"
|
|
4393
4393
|
})], 2)), [[Y(r)]]),
|
|
4394
|
-
we((
|
|
4395
|
-
class:
|
|
4394
|
+
we((W(), L("div", {
|
|
4395
|
+
class: V([
|
|
4396
4396
|
t.$style.btn,
|
|
4397
4397
|
t.$style.cancelBtn,
|
|
4398
4398
|
e.disabled && t.$style.btnDisabled
|
|
4399
4399
|
]),
|
|
4400
4400
|
onClick: $(x, ["stop", "prevent"])
|
|
4401
|
-
}, [
|
|
4401
|
+
}, [z(ee, {
|
|
4402
4402
|
icon: "round-close",
|
|
4403
4403
|
size: "12",
|
|
4404
4404
|
color: "var(--color-icon-table-secondary-default)"
|
|
4405
4405
|
})], 2)), [[Y(r)]])
|
|
4406
|
-
], 64)) : (
|
|
4406
|
+
], 64)) : (W(), L("div", {
|
|
4407
4407
|
key: 2,
|
|
4408
|
-
class:
|
|
4408
|
+
class: V([t.$style.content, !d.value && t.$style.contentEmpty]),
|
|
4409
4409
|
title: h.value ? d.value : void 0
|
|
4410
|
-
}, [
|
|
4410
|
+
}, [R("span", {
|
|
4411
4411
|
ref_key: "contentValueEl",
|
|
4412
4412
|
ref: u
|
|
4413
|
-
}, J(d.value || e.placeholder || "..."), 513), we((
|
|
4414
|
-
class:
|
|
4413
|
+
}, J(d.value || e.placeholder || "..."), 513), we((W(), L("div", {
|
|
4414
|
+
class: V([t.$style.btn, t.$style.editBtn]),
|
|
4415
4415
|
onClick: $(v, ["stop", "prevent"])
|
|
4416
|
-
}, [
|
|
4416
|
+
}, [z(ee, {
|
|
4417
4417
|
icon: "round-edit",
|
|
4418
4418
|
size: "12",
|
|
4419
4419
|
color: "var(--color-icon-control-accent-unselected)"
|
|
@@ -4433,7 +4433,11 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4433
4433
|
cancelBtn: "_cancelBtn_s7l0a_128",
|
|
4434
4434
|
doneBtn: "_doneBtn_s7l0a_133",
|
|
4435
4435
|
btnDisabled: "_btnDisabled_s7l0a_139"
|
|
4436
|
-
} }]]), Ji = ["name", "value"], Yi = ["name", "value"], Xi = ["name", "value"], Zi = ["placeholder", "disabled"], Qi = [
|
|
4436
|
+
} }]]), Ji = ["name", "value"], Yi = ["name", "value"], Xi = ["name", "value"], Zi = ["placeholder", "disabled"], Qi = [
|
|
4437
|
+
"id",
|
|
4438
|
+
"aria-disabled",
|
|
4439
|
+
"onClick"
|
|
4440
|
+
], $i = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4437
4441
|
__name: "ui3n-autocomplete",
|
|
4438
4442
|
props: {
|
|
4439
4443
|
name: {},
|
|
@@ -4444,6 +4448,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4444
4448
|
},
|
|
4445
4449
|
customFilter: {},
|
|
4446
4450
|
disabled: { type: Boolean },
|
|
4451
|
+
itemDisabled: {},
|
|
4447
4452
|
filterKeys: { default: () => [] },
|
|
4448
4453
|
hideSelected: {
|
|
4449
4454
|
type: Boolean,
|
|
@@ -4474,16 +4479,23 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4474
4479
|
"valid:new-value"
|
|
4475
4480
|
],
|
|
4476
4481
|
setup(e, { expose: n, emit: r }) {
|
|
4477
|
-
let a = Tn, o = e, s = r, c = `auto-${t(4)}`, l =
|
|
4478
|
-
function x() {
|
|
4482
|
+
let a = Tn, o = e, s = r, c = `auto-${t(4)}`, l = G(""), u = G(!1), d = G(null), f = G(null), p = G(null), m = G(null), h = G(!1), g = G(!0), _ = G(!1), v = P(() => o.returnObject ? o.modelValue.map((e) => e.id) : o.modelValue), y = P(() => o.chips ? "" : o.returnObject ? o.modelValue.map((e) => e[o.itemTitle] || "?").join(", ") : o.modelValue.join(", ")), b = P(() => o.customFilter ? o.items.filter((e) => o.customFilter(e, l.value)).filter((e) => o.hideSelected ? o.returnObject ? !v.value.includes(e.id) : !v.value.includes(e[o.itemValue]) : !0) : o.items.filter((e) => e[o.itemTitle].toLowerCase().includes(l.value.toLowerCase())).filter((e) => o.hideSelected ? o.returnObject ? !v.value.includes(e.id) : !v.value.includes(e[o.itemValue]) : !0));
|
|
4483
|
+
function x(e) {
|
|
4484
|
+
return !!e && !!o.itemDisabled?.(e);
|
|
4485
|
+
}
|
|
4486
|
+
function S(e, t) {
|
|
4487
|
+
for (let n = e; n >= 0 && n < (0, Tr.default)(b.value); n += t) if (!x(b.value[n])) return n;
|
|
4488
|
+
return null;
|
|
4489
|
+
}
|
|
4490
|
+
function C() {
|
|
4479
4491
|
h.value = !1, s("update:search", l.value);
|
|
4480
4492
|
}
|
|
4481
|
-
function
|
|
4482
|
-
s("update:focused", !1), m.value = null, h.value = !1, _.value ||
|
|
4493
|
+
function w() {
|
|
4494
|
+
s("update:focused", !1), m.value = null, h.value = !1, _.value || T(), setTimeout(() => {
|
|
4483
4495
|
u.value = !1, l.value = "", _.value = !1;
|
|
4484
4496
|
}, 150);
|
|
4485
4497
|
}
|
|
4486
|
-
function
|
|
4498
|
+
function T() {
|
|
4487
4499
|
if (!o.addNewValue || o.disabled) return !1;
|
|
4488
4500
|
let e = l.value.trim();
|
|
4489
4501
|
if (!e || (g.value = o.newValueValidator ? o.newValueValidator(e) : !0, s("valid:new-value", g.value), !g.value)) return !1;
|
|
@@ -4499,11 +4511,11 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4499
4511
|
}
|
|
4500
4512
|
return g.value = !0, o.clearOnSelect && (l.value = ""), !0;
|
|
4501
4513
|
}
|
|
4502
|
-
function
|
|
4514
|
+
function E() {
|
|
4503
4515
|
_.value = !0;
|
|
4504
4516
|
}
|
|
4505
|
-
function
|
|
4506
|
-
if (o.disabled) return;
|
|
4517
|
+
function D(e) {
|
|
4518
|
+
if (o.disabled || x(e)) return;
|
|
4507
4519
|
if (!o.multiple) {
|
|
4508
4520
|
s("update:modelValue", o.returnObject ? [e] : [e[o.itemValue]]);
|
|
4509
4521
|
return;
|
|
@@ -4511,44 +4523,51 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4511
4523
|
let t = (0, Gr.default)(o.modelValue), n = o.returnObject ? o.modelValue.findIndex((t) => t.id === e.id) : o.modelValue.findIndex((t) => t === e[o.itemValue]);
|
|
4512
4524
|
n > -1 ? t.splice(n, 1) : t.push(o.returnObject ? e : e[o.itemValue]), s("update:modelValue", t), o.clearOnSelect && (l.value = "");
|
|
4513
4525
|
}
|
|
4514
|
-
function
|
|
4526
|
+
function O(e) {
|
|
4515
4527
|
if (o.disabled) return;
|
|
4516
4528
|
let t = o.returnObject ? o.modelValue.findIndex((t) => t.id === e.id) : o.modelValue.findIndex((t) => t === e), n = (0, Gr.default)(o.modelValue);
|
|
4517
4529
|
n.splice(t, 1), s("update:modelValue", n);
|
|
4518
4530
|
}
|
|
4519
|
-
function
|
|
4531
|
+
function k() {
|
|
4520
4532
|
if (m.value === null) {
|
|
4521
|
-
m.value = 0, p.value && p.value.focus({ preventScroll: !0 });
|
|
4533
|
+
m.value = S(0, 1), p.value && p.value.focus({ preventScroll: !0 });
|
|
4522
4534
|
return;
|
|
4523
4535
|
}
|
|
4524
|
-
m.value >= 0 && m.value < (0, Tr.default)(b.value) - 1
|
|
4536
|
+
if (m.value >= 0 && m.value < (0, Tr.default)(b.value) - 1) {
|
|
4537
|
+
let e = S(m.value + 1, 1);
|
|
4538
|
+
e !== null && (m.value = e);
|
|
4539
|
+
}
|
|
4525
4540
|
}
|
|
4526
|
-
function
|
|
4541
|
+
function A() {
|
|
4527
4542
|
if (m.value === null) {
|
|
4528
|
-
m.value = (0, Tr.default)(b.value) - 1, p.value && p.value.focus({ preventScroll: !0 });
|
|
4543
|
+
m.value = S((0, Tr.default)(b.value) - 1, -1), p.value && p.value.focus({ preventScroll: !0 });
|
|
4529
4544
|
return;
|
|
4530
4545
|
}
|
|
4531
|
-
m.value > 0 && m.value < (0, Tr.default)(b.value)
|
|
4546
|
+
if (m.value > 0 && m.value < (0, Tr.default)(b.value)) {
|
|
4547
|
+
let e = S(m.value - 1, -1);
|
|
4548
|
+
e !== null && (m.value = e);
|
|
4549
|
+
}
|
|
4532
4550
|
}
|
|
4533
|
-
function
|
|
4551
|
+
function ee() {
|
|
4534
4552
|
s("update:focused", !1), u.value = !1, m.value = null, l.value = "", f.value && f.value.blur(), d.value && d.value.blur();
|
|
4535
4553
|
}
|
|
4536
|
-
function
|
|
4537
|
-
o.addNewValue &&
|
|
4554
|
+
function j() {
|
|
4555
|
+
o.addNewValue && T(), s("update:focused", !1), u.value = !1, m.value = null, l.value = "";
|
|
4538
4556
|
}
|
|
4539
|
-
function
|
|
4557
|
+
function te() {
|
|
4540
4558
|
if (m.value !== null) {
|
|
4541
4559
|
let e = b.value[m.value];
|
|
4542
|
-
|
|
4560
|
+
if (x(e)) return;
|
|
4561
|
+
D(e), m.value = null, o.clearOnSelect && (l.value = "");
|
|
4543
4562
|
return;
|
|
4544
4563
|
}
|
|
4545
4564
|
if (o.addNewValue && l.value.trim()) {
|
|
4546
|
-
|
|
4565
|
+
T();
|
|
4547
4566
|
return;
|
|
4548
4567
|
}
|
|
4549
|
-
u.value || (u.value = !0, m.value = 0, p.value && p.value.focus({ preventScroll: !0 }));
|
|
4568
|
+
u.value || (u.value = !0, m.value = S(0, 1), p.value && p.value.focus({ preventScroll: !0 }));
|
|
4550
4569
|
}
|
|
4551
|
-
function
|
|
4570
|
+
function ne() {
|
|
4552
4571
|
if (o.disabled || l.value !== "" || (0, Wr.default)(o.modelValue)) return;
|
|
4553
4572
|
if (!h.value) {
|
|
4554
4573
|
h.value = !0;
|
|
@@ -4560,51 +4579,51 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4560
4579
|
function M(e, t) {
|
|
4561
4580
|
switch (t) {
|
|
4562
4581
|
case "down":
|
|
4563
|
-
e.preventDefault(), e.stopPropagation(),
|
|
4582
|
+
e.preventDefault(), e.stopPropagation(), k();
|
|
4564
4583
|
break;
|
|
4565
4584
|
case "up":
|
|
4566
|
-
e.preventDefault(), e.stopPropagation(),
|
|
4585
|
+
e.preventDefault(), e.stopPropagation(), A();
|
|
4567
4586
|
break;
|
|
4568
4587
|
case "esc":
|
|
4569
|
-
|
|
4588
|
+
ee();
|
|
4570
4589
|
break;
|
|
4571
4590
|
case "tab":
|
|
4572
|
-
|
|
4591
|
+
j();
|
|
4573
4592
|
break;
|
|
4574
4593
|
case "enter":
|
|
4575
|
-
e.preventDefault(), e.stopPropagation(),
|
|
4594
|
+
e.preventDefault(), e.stopPropagation(), te();
|
|
4576
4595
|
break;
|
|
4577
4596
|
case "backspace":
|
|
4578
|
-
|
|
4597
|
+
ne();
|
|
4579
4598
|
break;
|
|
4580
4599
|
}
|
|
4581
4600
|
}
|
|
4582
|
-
function
|
|
4601
|
+
function re() {
|
|
4583
4602
|
l.value = "", u.value = !1, m.value = null, g.value = !0, _.value = !1, s("update:modelValue", []), s("update:search", "");
|
|
4584
4603
|
}
|
|
4585
|
-
return n({ clear:
|
|
4586
|
-
e ||
|
|
4604
|
+
return n({ clear: re }), X(() => o.name, (e) => {
|
|
4605
|
+
e || re();
|
|
4587
4606
|
}), X(() => (0, Tr.default)(b.value), (e, t) => {
|
|
4588
4607
|
e !== t && (m.value = null), e && !g.value && (g.value = !0);
|
|
4589
|
-
}), (t, n) => (
|
|
4608
|
+
}), (t, n) => (W(), L("div", { class: V(t.$style.ui3nAutocomplete) }, [e.name && !Y(Wr.default)(e.modelValue) ? (W(), L("fieldset", {
|
|
4590
4609
|
key: 0,
|
|
4591
|
-
class:
|
|
4592
|
-
}, [e.multiple ? (
|
|
4610
|
+
class: V(t.$style.hiddenBlock)
|
|
4611
|
+
}, [e.multiple ? (W(), L(N, { key: 1 }, [e.returnObject ? (W(!0), L(N, { key: 1 }, K(e.modelValue, (t, n) => (W(), L("input", {
|
|
4593
4612
|
key: t.id || `${e.name}-obj-${n}`,
|
|
4594
4613
|
type: "hidden",
|
|
4595
4614
|
name: `${e.name}[]`,
|
|
4596
4615
|
value: JSON.stringify(t)
|
|
4597
|
-
}, null, 8, Xi))), 128)) : (
|
|
4616
|
+
}, null, 8, Xi))), 128)) : (W(!0), L(N, { key: 0 }, K(e.modelValue, (t, n) => (W(), L("input", {
|
|
4598
4617
|
key: `${e.name}-flat-${n}`,
|
|
4599
4618
|
type: "hidden",
|
|
4600
4619
|
name: `${e.name}[]`,
|
|
4601
4620
|
value: t
|
|
4602
|
-
}, null, 8, Yi))), 128))], 64)) : (
|
|
4621
|
+
}, null, 8, Yi))), 128))], 64)) : (W(), L("input", {
|
|
4603
4622
|
key: 0,
|
|
4604
4623
|
type: "hidden",
|
|
4605
4624
|
name: e.name,
|
|
4606
4625
|
value: e.returnObject ? JSON.stringify(e.modelValue) : e.modelValue
|
|
4607
|
-
}, null, 8, Ji))], 2)) :
|
|
4626
|
+
}, null, 8, Ji))], 2)) : I("", !0), z(si, {
|
|
4608
4627
|
modelValue: u.value,
|
|
4609
4628
|
"onUpdate:modelValue": n[8] ||= (e) => u.value = e,
|
|
4610
4629
|
width: "100%",
|
|
@@ -4621,71 +4640,72 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4621
4640
|
],
|
|
4622
4641
|
disabled: e.disabled
|
|
4623
4642
|
}, {
|
|
4624
|
-
menu: Z(() => [!Y(Wr.default)(b.value) || Y(Wr.default)(b.value) && e.noDataText ? (
|
|
4643
|
+
menu: Z(() => [!Y(Wr.default)(b.value) || Y(Wr.default)(b.value) && e.noDataText ? (W(), L("div", {
|
|
4625
4644
|
key: 0,
|
|
4626
4645
|
ref_key: "menuBodyEl",
|
|
4627
4646
|
ref: p,
|
|
4628
|
-
class:
|
|
4629
|
-
}, [Y(Tr.default)(b.value) ? (
|
|
4647
|
+
class: V(t.$style.body)
|
|
4648
|
+
}, [Y(Tr.default)(b.value) ? (W(!0), L(N, { key: 0 }, K(b.value, (n, r) => (W(), L("div", {
|
|
4630
4649
|
key: n.id,
|
|
4631
4650
|
id: `${c}-${r}`,
|
|
4632
|
-
class:
|
|
4651
|
+
class: V([
|
|
4633
4652
|
t.$style.item,
|
|
4634
4653
|
m.value === r && t.$style.itemSelected,
|
|
4635
|
-
e.disabled && t.$style.itemDisabled
|
|
4654
|
+
(e.disabled || x(n)) && t.$style.itemDisabled
|
|
4636
4655
|
]),
|
|
4637
|
-
|
|
4638
|
-
|
|
4656
|
+
"aria-disabled": e.disabled || x(n),
|
|
4657
|
+
onMousedown: E,
|
|
4658
|
+
onClick: $((e) => D(n), ["stop", "prevent"])
|
|
4639
4659
|
}, [q(t.$slots, "item", {
|
|
4640
4660
|
item: n,
|
|
4641
4661
|
index: r,
|
|
4642
4662
|
query: l.value
|
|
4643
|
-
}, () => [we(
|
|
4663
|
+
}, () => [we(R("div", { class: V(t.$style.simpleItem) }, null, 2), [[Y(a), Y(i)(n[o.itemTitle], l.value)]])])], 42, Qi))), 128)) : I("", !0), !Y(Tr.default)(b.value) && e.noDataText ? (W(), L("div", {
|
|
4644
4664
|
key: 1,
|
|
4645
|
-
class:
|
|
4646
|
-
}, [q(t.$slots, "noDataText", {}, () => [
|
|
4647
|
-
default: Z(() => [
|
|
4665
|
+
class: V(t.$style.noData)
|
|
4666
|
+
}, [q(t.$slots, "noDataText", {}, () => [ce(J(e.noDataText), 1)])], 2)) : I("", !0)], 2)) : I("", !0)]),
|
|
4667
|
+
default: Z(() => [R("div", {
|
|
4648
4668
|
ref_key: "activatorEl",
|
|
4649
4669
|
ref: d,
|
|
4650
|
-
class:
|
|
4651
|
-
}, [e.chips && !Y(Wr.default)(e.modelValue) ? (
|
|
4670
|
+
class: V(t.$style.trigger)
|
|
4671
|
+
}, [e.chips && !Y(Wr.default)(e.modelValue) ? (W(), F(se, {
|
|
4652
4672
|
key: 0,
|
|
4653
4673
|
name: "chipAnim",
|
|
4654
4674
|
tag: "div",
|
|
4655
|
-
class:
|
|
4675
|
+
class: V(t.$style.chipsContainer)
|
|
4656
4676
|
}, {
|
|
4657
|
-
default: Z(() => [(
|
|
4677
|
+
default: Z(() => [(W(!0), L(N, null, K(e.modelValue, (n, r) => (W(), L("div", {
|
|
4658
4678
|
key: n.id || r,
|
|
4659
|
-
class:
|
|
4679
|
+
class: V(t.$style.chipWrapper)
|
|
4660
4680
|
}, [q(t.$slots, "chip", {
|
|
4661
4681
|
item: n,
|
|
4662
4682
|
index: r,
|
|
4663
4683
|
isHighlighted: r === Y(Tr.default)(e.modelValue) - 1 && h.value
|
|
4664
|
-
}, () => [
|
|
4684
|
+
}, () => [z($n, {
|
|
4665
4685
|
height: "32",
|
|
4666
4686
|
color: r === Y(Tr.default)(e.modelValue) - 1 && h.value ? "var(--color-bg-control-primary-hover)" : void 0,
|
|
4667
4687
|
round: "",
|
|
4668
4688
|
closeable: "",
|
|
4669
|
-
onClose: (e) =>
|
|
4689
|
+
onClose: (e) => O(n)
|
|
4670
4690
|
}, {
|
|
4671
|
-
default: Z(() => [
|
|
4691
|
+
default: Z(() => [ce(J(e.returnObject ? n[o.itemTitle] : n), 1)]),
|
|
4672
4692
|
_: 2
|
|
4673
4693
|
}, 1032, ["color", "onClose"])])], 2))), 128))]),
|
|
4674
4694
|
_: 3
|
|
4675
|
-
}, 8, ["class"])) : (
|
|
4695
|
+
}, 8, ["class"])) : (W(), L("div", {
|
|
4676
4696
|
key: 1,
|
|
4677
|
-
class:
|
|
4678
|
-
}, J(y.value), 3)), we(
|
|
4697
|
+
class: V(t.$style.displayValue)
|
|
4698
|
+
}, J(y.value), 3)), we(R("input", {
|
|
4679
4699
|
ref_key: "inputEl",
|
|
4680
4700
|
ref: f,
|
|
4681
4701
|
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
4682
4702
|
type: "text",
|
|
4683
|
-
class:
|
|
4703
|
+
class: V([t.$style.input, !g.value && t.$style.inputWithError]),
|
|
4684
4704
|
placeholder: Y(Wr.default)(e.modelValue) && e.placeholder ? e.placeholder : "",
|
|
4685
4705
|
disabled: e.disabled,
|
|
4686
|
-
onInput:
|
|
4706
|
+
onInput: C,
|
|
4687
4707
|
onFocusin: n[1] ||= $((e) => s("update:focused", !0), ["prevent"]),
|
|
4688
|
-
onFocusout:
|
|
4708
|
+
onFocusout: w,
|
|
4689
4709
|
onKeydown: [
|
|
4690
4710
|
n[2] ||= Q((e) => M(e, "down"), ["down"]),
|
|
4691
4711
|
n[3] ||= Q((e) => M(e, "up"), ["up"]),
|
|
@@ -4717,7 +4737,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4717
4737
|
noData: "_noData_zxyrz_101",
|
|
4718
4738
|
chipsContainer: "_chipsContainer_zxyrz_114",
|
|
4719
4739
|
chipWrapper: "_chipWrapper_zxyrz_124"
|
|
4720
|
-
} }]]), ea = ["id"], ta = ["name", "value"], na = ["name", "value"], ra = ["name", "value"], ia = /* @__PURE__ */ k(/* @__PURE__ */
|
|
4740
|
+
} }]]), ea = ["id"], ta = ["name", "value"], na = ["name", "value"], ra = ["name", "value"], ia = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4721
4741
|
__name: "ui3n-slider",
|
|
4722
4742
|
props: {
|
|
4723
4743
|
id: {},
|
|
@@ -4740,32 +4760,32 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4740
4760
|
},
|
|
4741
4761
|
emits: ["update:modelValue"],
|
|
4742
4762
|
setup(e, { expose: t, emit: n }) {
|
|
4743
|
-
let r = e, i = n, o = Se("sliderEl"), s = Se("pointerEl1"), c = Se("pointerEl2"), l =
|
|
4763
|
+
let r = e, i = n, o = Se("sliderEl"), s = Se("pointerEl1"), c = Se("pointerEl2"), l = G({
|
|
4744
4764
|
1: 0,
|
|
4745
4765
|
2: 0
|
|
4746
|
-
}), u =
|
|
4766
|
+
}), u = G({
|
|
4747
4767
|
1: r.labelVisible === "always",
|
|
4748
4768
|
2: r.labelVisible === "always"
|
|
4749
|
-
}), d =
|
|
4750
|
-
|
|
4751
|
-
let p =
|
|
4769
|
+
}), d = G(0), f = G(null);
|
|
4770
|
+
P(() => `${r.thumbSize}px`);
|
|
4771
|
+
let p = P(() => Number(r.max) - Number(r.min)), m = P(() => r.step ? Number(r.step) : p.value / 100), h = P(() => {
|
|
4752
4772
|
let e = {};
|
|
4753
4773
|
if (r.range) {
|
|
4754
4774
|
let [t, n] = d.value;
|
|
4755
4775
|
return t <= Number(r.min) ? e.left = "0px" : t < Number(r.max) && (e.left = `${a((t - Number(r.min)) / p.value * 100, 0)}%`), n >= Number(r.max) ? e.width = t <= Number(r.min) ? "100%" : `${a((Number(r.max) - t) / p.value * 100, 0)}%` : n > Number(r.min) && (e.width = `${a((n - t) / p.value * 100, 0)}%`), e;
|
|
4756
4776
|
}
|
|
4757
4777
|
return d.value <= Number(r.min) ? (e.left = "0px", e.width = "0px") : d.value >= Number(r.max) ? (e.left = "0px", e.width = "100%") : (e.left = "0px", e.width = `${a((d.value - Number(r.min)) / p.value * 100, 0)}%`), e;
|
|
4758
|
-
}), g =
|
|
4778
|
+
}), g = P(() => r.range ? `calc(${h.value.left} + 1px)` : `${h.value.width}`), _ = P(() => r.range ? `calc(${h.value.width} + ${h.value.left} - 1px)` : "200%"), v = P(() => {
|
|
4759
4779
|
if (r.range) {
|
|
4760
4780
|
let e = d.value[0];
|
|
4761
4781
|
return r.transformValueMethod ? r.transformValueMethod(e) : `${e}`;
|
|
4762
4782
|
}
|
|
4763
4783
|
return r.transformValueMethod ? r.transformValueMethod(d.value) : `${d.value}`;
|
|
4764
|
-
}), y =
|
|
4784
|
+
}), y = P(() => {
|
|
4765
4785
|
if (!r.range) return "";
|
|
4766
4786
|
let e = d.value[1];
|
|
4767
4787
|
return r.transformValueMethod ? r.transformValueMethod(e) : `${e}`;
|
|
4768
|
-
}), b =
|
|
4788
|
+
}), b = P(() => ({
|
|
4769
4789
|
"--ui3n-slider-height": `${Math.max(Number(r.trackHeight), Number(r.thumbSize))}px`,
|
|
4770
4790
|
"--ui3n-slider-label-color": r.labelColor,
|
|
4771
4791
|
"--ui3n-slider-label-text-color": r.labelTextColor,
|
|
@@ -4823,40 +4843,40 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4823
4843
|
}
|
|
4824
4844
|
let t = Array.isArray(r.modelValue) ? r.modelValue[r.modelValue.length - 1] : r.modelValue;
|
|
4825
4845
|
t !== d.value && (d.value = t);
|
|
4826
|
-
}, { immediate: !0 }), (t, n) => (
|
|
4846
|
+
}, { immediate: !0 }), (t, n) => (W(), L("div", {
|
|
4827
4847
|
ref: "sliderEl",
|
|
4828
4848
|
id: e.id,
|
|
4829
|
-
style:
|
|
4830
|
-
class:
|
|
4849
|
+
style: H(b.value),
|
|
4850
|
+
class: V([t.$style.ui3nSlider, e.disabled && t.$style.disabled]),
|
|
4831
4851
|
onClick: $(E, ["stop", "prevent"])
|
|
4832
4852
|
}, [
|
|
4833
|
-
e.name ? (
|
|
4853
|
+
e.name ? (W(), L(N, { key: 0 }, [e.range ? (W(), L(N, { key: 0 }, [R("input", {
|
|
4834
4854
|
type: "hidden",
|
|
4835
4855
|
name: `${e.name}_min`,
|
|
4836
4856
|
value: d.value[0]
|
|
4837
|
-
}, null, 8, ta),
|
|
4857
|
+
}, null, 8, ta), R("input", {
|
|
4838
4858
|
type: "hidden",
|
|
4839
4859
|
name: `${e.name}_max`,
|
|
4840
4860
|
value: d.value[1]
|
|
4841
|
-
}, null, 8, na)], 64)) : (
|
|
4861
|
+
}, null, 8, na)], 64)) : (W(), L("input", {
|
|
4842
4862
|
key: 1,
|
|
4843
4863
|
type: "hidden",
|
|
4844
4864
|
name: e.name,
|
|
4845
4865
|
value: d.value
|
|
4846
|
-
}, null, 8, ra))], 64)) :
|
|
4847
|
-
|
|
4848
|
-
class:
|
|
4849
|
-
style:
|
|
4866
|
+
}, null, 8, ra))], 64)) : I("", !0),
|
|
4867
|
+
R("div", { class: V(t.$style.track) }, [R("div", {
|
|
4868
|
+
class: V(t.$style.active),
|
|
4869
|
+
style: H(h.value)
|
|
4850
4870
|
}, null, 6)], 2),
|
|
4851
|
-
|
|
4871
|
+
R("div", {
|
|
4852
4872
|
ref: "pointerEl1",
|
|
4853
|
-
class:
|
|
4873
|
+
class: V([t.$style.pointerWrapper, t.$style.pointer1]),
|
|
4854
4874
|
onPointerdown: n[0] ||= (e) => w(e, 1),
|
|
4855
4875
|
onClick: n[1] ||= $(() => {}, ["stop", "prevent"]),
|
|
4856
4876
|
onDragstart: C,
|
|
4857
4877
|
onMouseenter: n[2] ||= (e) => x(1),
|
|
4858
4878
|
onMouseleave: n[3] ||= (e) => S(1)
|
|
4859
|
-
}, [
|
|
4879
|
+
}, [z(Fi, {
|
|
4860
4880
|
"model-value": u.value[1],
|
|
4861
4881
|
content: v.value,
|
|
4862
4882
|
trigger: "manual",
|
|
@@ -4866,7 +4886,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4866
4886
|
"text-color": e.labelTextColor,
|
|
4867
4887
|
disabled: e.labelVisible === "never"
|
|
4868
4888
|
}, {
|
|
4869
|
-
default: Z(() => [
|
|
4889
|
+
default: Z(() => [R("div", { class: V([t.$style.pointer, f.value === 1 && t.$style.selected]) }, null, 2)]),
|
|
4870
4890
|
_: 1
|
|
4871
4891
|
}, 8, [
|
|
4872
4892
|
"model-value",
|
|
@@ -4875,16 +4895,16 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4875
4895
|
"text-color",
|
|
4876
4896
|
"disabled"
|
|
4877
4897
|
])], 34),
|
|
4878
|
-
e.range ? (
|
|
4898
|
+
e.range ? (W(), L("div", {
|
|
4879
4899
|
key: 1,
|
|
4880
4900
|
ref: "pointerEl2",
|
|
4881
|
-
class:
|
|
4901
|
+
class: V([t.$style.pointerWrapper, t.$style.pointer2]),
|
|
4882
4902
|
onPointerdown: n[4] ||= (e) => w(e, 2),
|
|
4883
4903
|
onClick: n[5] ||= $(() => {}, ["stop", "prevent"]),
|
|
4884
4904
|
onDragstart: C,
|
|
4885
4905
|
onMouseenter: n[6] ||= (e) => x(2),
|
|
4886
4906
|
onMouseleave: n[7] ||= (e) => S(2)
|
|
4887
|
-
}, [
|
|
4907
|
+
}, [z(Fi, {
|
|
4888
4908
|
"model-value": u.value[2],
|
|
4889
4909
|
content: y.value,
|
|
4890
4910
|
trigger: "manual",
|
|
@@ -4894,7 +4914,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4894
4914
|
"text-color": e.labelTextColor,
|
|
4895
4915
|
disabled: e.labelVisible === "never"
|
|
4896
4916
|
}, {
|
|
4897
|
-
default: Z(() => [
|
|
4917
|
+
default: Z(() => [R("div", { class: V([t.$style.pointer, f.value === 2 && t.$style.selected]) }, null, 2)]),
|
|
4898
4918
|
_: 1
|
|
4899
4919
|
}, 8, [
|
|
4900
4920
|
"model-value",
|
|
@@ -4902,7 +4922,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4902
4922
|
"color",
|
|
4903
4923
|
"text-color",
|
|
4904
4924
|
"disabled"
|
|
4905
|
-
])], 34)) :
|
|
4925
|
+
])], 34)) : I("", !0)
|
|
4906
4926
|
], 14, ea));
|
|
4907
4927
|
}
|
|
4908
4928
|
}), [["__cssModules", { $style: {
|
|
@@ -4915,7 +4935,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4915
4935
|
selected: "_selected_17be6_55",
|
|
4916
4936
|
pointer1: "_pointer1_17be6_69",
|
|
4917
4937
|
pointer2: "_pointer2_17be6_73"
|
|
4918
|
-
} }]]), aa = ["id"], oa = ["name", "value"], sa = ["tabindex"], ca = ["id", "onClick"], la = /* @__PURE__ */ k(/* @__PURE__ */
|
|
4938
|
+
} }]]), aa = ["id"], oa = ["name", "value"], sa = ["tabindex"], ca = ["id", "onClick"], la = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
4919
4939
|
__name: "ui3n-selector",
|
|
4920
4940
|
props: {
|
|
4921
4941
|
id: {},
|
|
@@ -4939,7 +4959,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
4939
4959
|
disabled: { type: Boolean }
|
|
4940
4960
|
},
|
|
4941
4961
|
setup(e, { expose: n, emit: r }) {
|
|
4942
|
-
let i = e, a = r, o = `select-${t(4)}`, s = Se("activator"), c = Se("body"), l =
|
|
4962
|
+
let i = e, a = r, o = `select-${t(4)}`, s = Se("activator"), c = Se("body"), l = G(!1), u = G(!1), d = G(null), f = P(() => i.items.filter((e) => i.hideSelected ? i.returnObject ? i.modelValue.id !== e.id : i.modelValue !== e[i.itemValue] : !0)), p = P(() => {
|
|
4943
4963
|
if (!i.modelValue) return "";
|
|
4944
4964
|
if (i.returnObject && typeof i.modelValue == "object") {
|
|
4945
4965
|
let e = i.items.find((e) => e.id === i.modelValue.id);
|
|
@@ -5034,21 +5054,21 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5034
5054
|
}
|
|
5035
5055
|
a("list:open");
|
|
5036
5056
|
} else e !== t && !e && (d.value = null, a("list:close"));
|
|
5037
|
-
}), (t, n) => (
|
|
5057
|
+
}), (t, n) => (W(), L("div", {
|
|
5038
5058
|
id: e.id,
|
|
5039
|
-
class:
|
|
5059
|
+
class: V(t.$style.ui3nSelector)
|
|
5040
5060
|
}, [
|
|
5041
|
-
e.name && e.modelValue ? (
|
|
5061
|
+
e.name && e.modelValue ? (W(), L("input", {
|
|
5042
5062
|
key: 0,
|
|
5043
5063
|
type: "hidden",
|
|
5044
5064
|
name: e.name,
|
|
5045
5065
|
value: typeof e.modelValue == "object" ? JSON.stringify(e.modelValue) : String(e.modelValue)
|
|
5046
|
-
}, null, 8, oa)) :
|
|
5047
|
-
e.label ? (
|
|
5066
|
+
}, null, 8, oa)) : I("", !0),
|
|
5067
|
+
e.label ? (W(), L("label", {
|
|
5048
5068
|
key: 1,
|
|
5049
|
-
class:
|
|
5050
|
-
}, J(e.label), 3)) :
|
|
5051
|
-
|
|
5069
|
+
class: V(t.$style.label)
|
|
5070
|
+
}, J(e.label), 3)) : I("", !0),
|
|
5071
|
+
z(si, {
|
|
5052
5072
|
modelValue: l.value,
|
|
5053
5073
|
"onUpdate:modelValue": n[6] ||= (e) => l.value = e,
|
|
5054
5074
|
width: "100%",
|
|
@@ -5060,20 +5080,20 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5060
5080
|
width: "100%",
|
|
5061
5081
|
minWidth: "var(--ui3n-selector-width, 200px)"
|
|
5062
5082
|
},
|
|
5063
|
-
class:
|
|
5083
|
+
class: V(t.$style.menu),
|
|
5064
5084
|
disabled: e.disabled,
|
|
5065
5085
|
onClick: n[7] ||= () => {
|
|
5066
5086
|
e.disabled || (l.value = !l.value);
|
|
5067
5087
|
}
|
|
5068
5088
|
}, {
|
|
5069
|
-
menu: Z(() => [!Y(Wr.default)(f.value) || Y(Wr.default)(f.value) && e.noDataText ? (
|
|
5089
|
+
menu: Z(() => [!Y(Wr.default)(f.value) || Y(Wr.default)(f.value) && e.noDataText ? (W(), L("div", {
|
|
5070
5090
|
key: 0,
|
|
5071
5091
|
ref: "body",
|
|
5072
|
-
class:
|
|
5073
|
-
}, [Y(Wr.default)(f.value) ?
|
|
5092
|
+
class: V(t.$style.body)
|
|
5093
|
+
}, [Y(Wr.default)(f.value) ? I("", !0) : (W(!0), L(N, { key: 0 }, K(f.value, (n, r) => (W(), L("div", {
|
|
5074
5094
|
key: n.id,
|
|
5075
5095
|
id: `${o}-${r}`,
|
|
5076
|
-
class:
|
|
5096
|
+
class: V([
|
|
5077
5097
|
t.$style.item,
|
|
5078
5098
|
d.value === r && t.$style.itemSelected,
|
|
5079
5099
|
e.disabled && t.$style.itemDisabled
|
|
@@ -5083,14 +5103,14 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5083
5103
|
item: n,
|
|
5084
5104
|
index: r,
|
|
5085
5105
|
activeIndex: d.value
|
|
5086
|
-
}, () => [
|
|
5106
|
+
}, () => [ce(J(m(n)), 1)])], 10, ca))), 128)), Y(Wr.default)(f.value) && e.noDataText ? (W(), L("div", {
|
|
5087
5107
|
key: 1,
|
|
5088
|
-
class:
|
|
5089
|
-
}, [q(t.$slots, "noDataText", {}, () => [
|
|
5090
|
-
default: Z(() => [
|
|
5108
|
+
class: V(t.$style.noData)
|
|
5109
|
+
}, [q(t.$slots, "noDataText", {}, () => [ce(J(e.noDataText), 1)])], 2)) : I("", !0)], 2)) : I("", !0)]),
|
|
5110
|
+
default: Z(() => [R("div", {
|
|
5091
5111
|
ref: "activator",
|
|
5092
5112
|
tabindex: e.disabled ? -1 : 0,
|
|
5093
|
-
class:
|
|
5113
|
+
class: V([
|
|
5094
5114
|
t.$style.trigger,
|
|
5095
5115
|
u.value && t.$style.triggerFocused,
|
|
5096
5116
|
e.clearable && e.modelValue && t.$style.clearable,
|
|
@@ -5110,8 +5130,8 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5110
5130
|
q(t.$slots, "selection", {
|
|
5111
5131
|
value: e.modelValue,
|
|
5112
5132
|
selectedItem: d.value === null ? void 0 : f.value[d.value]
|
|
5113
|
-
}, () => [
|
|
5114
|
-
e.clearable && e.modelValue ? (
|
|
5133
|
+
}, () => [ce(J(p.value || e.placeholder || ""), 1)]),
|
|
5134
|
+
e.clearable && e.modelValue ? (W(), F(A, {
|
|
5115
5135
|
key: 0,
|
|
5116
5136
|
type: "icon",
|
|
5117
5137
|
size: "small",
|
|
@@ -5120,16 +5140,16 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5120
5140
|
"icon-size": "16",
|
|
5121
5141
|
"icon-color": "var(--color-icon-block-primary-default)",
|
|
5122
5142
|
disabled: e.disabled,
|
|
5123
|
-
class:
|
|
5143
|
+
class: V(t.$style.clearBtn),
|
|
5124
5144
|
onClick: $(v, ["stop", "prevent"]),
|
|
5125
5145
|
onMousedown: n[0] ||= $(() => {}, ["stop", "prevent"])
|
|
5126
|
-
}, null, 8, ["disabled", "class"])) :
|
|
5127
|
-
|
|
5146
|
+
}, null, 8, ["disabled", "class"])) : I("", !0),
|
|
5147
|
+
z(ee, {
|
|
5128
5148
|
icon: "outline-arrow-drop-down",
|
|
5129
5149
|
color: "var(--color-icon-block-primary-default)",
|
|
5130
5150
|
size: "16",
|
|
5131
5151
|
"vertical-flip": l.value,
|
|
5132
|
-
class:
|
|
5152
|
+
class: V(t.$style.menuIcon)
|
|
5133
5153
|
}, null, 8, ["vertical-flip", "class"])
|
|
5134
5154
|
], 42, sa)]),
|
|
5135
5155
|
_: 3
|
|
@@ -5156,7 +5176,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5156
5176
|
item: "_item_1mwql_105",
|
|
5157
5177
|
itemSelected: "_itemSelected_1mwql_119",
|
|
5158
5178
|
itemDisabled: "_itemDisabled_1mwql_123"
|
|
5159
|
-
} }]]), ua = /* @__PURE__ */ k(/* @__PURE__ */
|
|
5179
|
+
} }]]), ua = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
5160
5180
|
__name: "ui3n-mobile-menu",
|
|
5161
5181
|
props: {
|
|
5162
5182
|
modelValue: { type: Boolean },
|
|
@@ -5165,45 +5185,45 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5165
5185
|
},
|
|
5166
5186
|
emits: ["update:modelValue"],
|
|
5167
5187
|
setup(e, { emit: t }) {
|
|
5168
|
-
let n = e, r = t, i =
|
|
5188
|
+
let n = e, r = t, i = P(() => ({
|
|
5169
5189
|
"--ui3n-menu-width-custom": isNaN(Number(n.width)) ? n.width || "240px" : `${n.width}px`,
|
|
5170
5190
|
"--ui3n-menu-blur-custom": n.withBlur ? "2px" : "0"
|
|
5171
5191
|
}));
|
|
5172
5192
|
function a() {
|
|
5173
5193
|
r("update:modelValue", !n.modelValue);
|
|
5174
5194
|
}
|
|
5175
|
-
return (t, n) => (
|
|
5176
|
-
class:
|
|
5177
|
-
style:
|
|
5178
|
-
}, [e.modelValue ?
|
|
5195
|
+
return (t, n) => (W(), L("div", {
|
|
5196
|
+
class: V(t.$style.ui3nMobileMenu),
|
|
5197
|
+
style: H(i.value)
|
|
5198
|
+
}, [e.modelValue ? I("", !0) : (W(), F(A, {
|
|
5179
5199
|
key: 0,
|
|
5180
5200
|
type: "icon",
|
|
5181
|
-
class:
|
|
5201
|
+
class: V(t.$style.menuButton),
|
|
5182
5202
|
color: "var(--color-bg-block-primary-default)",
|
|
5183
5203
|
icon: "round-menu",
|
|
5184
5204
|
"icon-color": "var(--color-icon-block-primary-default)",
|
|
5185
5205
|
"icon-size": "32",
|
|
5186
5206
|
onClick: $(a, ["stop", "prevent"])
|
|
5187
|
-
}, null, 8, ["class"])),
|
|
5188
|
-
default: Z(() => [e.modelValue ? (
|
|
5207
|
+
}, null, 8, ["class"])), z(oe, { name: "slide-fade" }, {
|
|
5208
|
+
default: Z(() => [e.modelValue ? (W(), L("div", {
|
|
5189
5209
|
key: 0,
|
|
5190
|
-
class:
|
|
5191
|
-
}, [
|
|
5192
|
-
class:
|
|
5210
|
+
class: V(t.$style.menuWrapper)
|
|
5211
|
+
}, [R("div", {
|
|
5212
|
+
class: V(t.$style.overlay),
|
|
5193
5213
|
onClick: a
|
|
5194
|
-
}, null, 2),
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
], 2),
|
|
5214
|
+
}, null, 2), R("div", { class: V(t.$style.menuPanel) }, [R("div", { class: V(t.$style.appMenu) }, [
|
|
5215
|
+
R("div", { class: V(t.$style.appMenuHeader) }, [q(t.$slots, "header")], 2),
|
|
5216
|
+
R("div", { class: V(t.$style.appMenuBody) }, [q(t.$slots, "menuBody")], 2),
|
|
5217
|
+
R("div", { class: V(t.$style.appMenuFooter) }, [q(t.$slots, "footer")], 2)
|
|
5218
|
+
], 2), z(A, {
|
|
5199
5219
|
type: "icon",
|
|
5200
5220
|
icon: "round-close",
|
|
5201
5221
|
color: "transparent",
|
|
5202
5222
|
"icon-color": "var(--color-icon-block-secondary-default)",
|
|
5203
5223
|
"icon-size": "32",
|
|
5204
|
-
class:
|
|
5224
|
+
class: V(t.$style.closeBtn),
|
|
5205
5225
|
onClick: $(a, ["stop", "prevent"])
|
|
5206
|
-
}, null, 8, ["class"])], 2)], 2)) :
|
|
5226
|
+
}, null, 8, ["class"])], 2)], 2)) : I("", !0)]),
|
|
5207
5227
|
_: 3
|
|
5208
5228
|
})], 6));
|
|
5209
5229
|
}
|
|
@@ -5218,7 +5238,7 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5218
5238
|
menuButton: "_menuButton_1991k_65",
|
|
5219
5239
|
closeBtn: "_closeBtn_1991k_70",
|
|
5220
5240
|
overlay: "_overlay_1991k_78"
|
|
5221
|
-
} }]]), da = /* @__PURE__ */ k(/* @__PURE__ */
|
|
5241
|
+
} }]]), da = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
5222
5242
|
__name: "ui3n-mobile-menu-item",
|
|
5223
5243
|
props: {
|
|
5224
5244
|
item: {},
|
|
@@ -5230,22 +5250,22 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5230
5250
|
async function i() {
|
|
5231
5251
|
r("selectItem", n.item);
|
|
5232
5252
|
}
|
|
5233
|
-
return (t, n) => (
|
|
5234
|
-
class:
|
|
5253
|
+
return (t, n) => (W(), L("div", {
|
|
5254
|
+
class: V([t.$style.menuItem, e.isActive && t.$style.menuItemSelected]),
|
|
5235
5255
|
onClick: i
|
|
5236
|
-
}, [e.item.icon ? (
|
|
5256
|
+
}, [e.item.icon ? (W(), F(ee, {
|
|
5237
5257
|
key: 0,
|
|
5238
5258
|
icon: e.item.icon,
|
|
5239
5259
|
size: "20",
|
|
5240
5260
|
color: "var(--color-icon-control-secondary-default)"
|
|
5241
|
-
}, null, 8, ["icon"])) :
|
|
5261
|
+
}, null, 8, ["icon"])) : I("", !0), R("span", { class: V(t.$style.menuItemName) }, J(e.item.name), 3)], 2));
|
|
5242
5262
|
}
|
|
5243
5263
|
}), [["__cssModules", { $style: {
|
|
5244
5264
|
menuItem: "_menuItem_5dv4z_4",
|
|
5245
5265
|
menuItemName: "_menuItemName_5dv4z_15",
|
|
5246
5266
|
menuItemSelected: "_menuItemSelected_5dv4z_21",
|
|
5247
5267
|
bounceOnce: "_bounceOnce_5dv4z_1"
|
|
5248
|
-
} }]]), fa = 32, pa = /* @__PURE__ */ k(/* @__PURE__ */
|
|
5268
|
+
} }]]), fa = 32, pa = /* @__PURE__ */ k(/* @__PURE__ */ B({
|
|
5249
5269
|
__name: "ui3n-scrollbar-horizontal",
|
|
5250
5270
|
props: {
|
|
5251
5271
|
thumbMinWidth: { default: fa },
|
|
@@ -5260,10 +5280,10 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5260
5280
|
},
|
|
5261
5281
|
emits: ["scroll"],
|
|
5262
5282
|
setup(e, { expose: t, emit: n }) {
|
|
5263
|
-
let r = e, i = n, a =
|
|
5283
|
+
let r = e, i = n, a = G(null), o = G(null), s = G(null), c = G(0), l = G(0), u = G(0), d = G(!1), f = G(!1), p = G(!1), m = null, h, g = 0, _ = 0, v = P(() => c.value > l.value), y = P(() => d.value ? !0 : v.value && (f.value || p.value)), b = P(() => {
|
|
5264
5284
|
let e = Number(r.thumbMinWidth);
|
|
5265
5285
|
return isNaN(e) ? fa : e;
|
|
5266
|
-
}), x =
|
|
5286
|
+
}), x = P(() => {
|
|
5267
5287
|
if (!c.value) return 0;
|
|
5268
5288
|
if (r.thumbWidth !== "auto") {
|
|
5269
5289
|
let e = Number(r.thumbWidth);
|
|
@@ -5271,20 +5291,20 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5271
5291
|
}
|
|
5272
5292
|
let e = l.value / c.value, t = l.value * e;
|
|
5273
5293
|
return Math.max(b.value, t);
|
|
5274
|
-
}), S =
|
|
5294
|
+
}), S = P(() => {
|
|
5275
5295
|
if (!c.value || c.value === l.value) return 0;
|
|
5276
5296
|
let e = c.value - l.value, t = l.value - x.value;
|
|
5277
5297
|
return u.value / e * t;
|
|
5278
|
-
}), C =
|
|
5298
|
+
}), C = P(() => {
|
|
5279
5299
|
let e = Number(r.thumbRadius);
|
|
5280
5300
|
return isNaN(e) ? String(r.thumbRadius) : `${e}px`;
|
|
5281
|
-
}), w =
|
|
5301
|
+
}), w = P(() => r.thumbColor), T = P(() => r.thumbHoverColor), E = P(() => r.thumbActiveColor), D = P(() => {
|
|
5282
5302
|
let e = Number(r.trackHeight);
|
|
5283
5303
|
return isNaN(e) ? String(r.trackHeight) : `${e}px`;
|
|
5284
|
-
}), O =
|
|
5304
|
+
}), O = P(() => {
|
|
5285
5305
|
let e = Number(r.trackRadius);
|
|
5286
5306
|
return isNaN(e) ? String(r.trackRadius) : `${e}px`;
|
|
5287
|
-
}), k =
|
|
5307
|
+
}), k = P(() => r.trackColor);
|
|
5288
5308
|
function A() {
|
|
5289
5309
|
a.value && (c.value = a.value.scrollWidth, l.value = a.value.clientWidth, u.value = a.value.scrollLeft);
|
|
5290
5310
|
}
|
|
@@ -5301,34 +5321,34 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5301
5321
|
behavior: "smooth"
|
|
5302
5322
|
});
|
|
5303
5323
|
}
|
|
5304
|
-
function
|
|
5305
|
-
!s.value || !a.value || (e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientX, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove",
|
|
5324
|
+
function te(e) {
|
|
5325
|
+
!s.value || !a.value || (e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientX, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove", ne), s.value.addEventListener("pointerup", M), s.value.addEventListener("pointercancel", M));
|
|
5306
5326
|
}
|
|
5307
|
-
function
|
|
5327
|
+
function ne(e) {
|
|
5308
5328
|
if (!d.value || !a.value) return;
|
|
5309
5329
|
let t = e.clientX - g, n = c.value - l.value, r = t / (l.value - x.value) * n;
|
|
5310
5330
|
a.value.scrollLeft = _ + r, u.value = a.value.scrollLeft;
|
|
5311
5331
|
}
|
|
5312
|
-
function
|
|
5332
|
+
function M(e) {
|
|
5313
5333
|
if (d.value && (d.value = !1, document.body.style.userSelect = "", s.value)) {
|
|
5314
5334
|
try {
|
|
5315
5335
|
s.value.releasePointerCapture(e.pointerId);
|
|
5316
5336
|
} catch {}
|
|
5317
|
-
s.value.removeEventListener("pointermove",
|
|
5337
|
+
s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M);
|
|
5318
5338
|
}
|
|
5319
5339
|
}
|
|
5320
|
-
return
|
|
5340
|
+
return U(() => {
|
|
5321
5341
|
A(), a.value && (m = new ResizeObserver(A), m.observe(a.value), a.value.firstElementChild && m.observe(a.value.firstElementChild));
|
|
5322
|
-
}),
|
|
5323
|
-
m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove",
|
|
5342
|
+
}), pe(() => {
|
|
5343
|
+
m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M)), document.body.style.userSelect = "";
|
|
5324
5344
|
}), t({
|
|
5325
5345
|
scrollTo: (e) => {
|
|
5326
5346
|
a.value?.scrollTo(e);
|
|
5327
5347
|
},
|
|
5328
5348
|
getContainer: () => a.value
|
|
5329
|
-
}), (e, t) => (
|
|
5330
|
-
class:
|
|
5331
|
-
style:
|
|
5349
|
+
}), (e, t) => (W(), L("div", {
|
|
5350
|
+
class: V(e.$style.ui3nScrollbarHorizontal),
|
|
5351
|
+
style: H({
|
|
5332
5352
|
"--ui3n-scrollbar-horizontal-thumb-radius": C.value,
|
|
5333
5353
|
"--ui3n-scrollbar-horizontal-thumb-color": w.value,
|
|
5334
5354
|
"--ui3n-scrollbar-horizontal-thumb-hover-color": T.value,
|
|
@@ -5339,25 +5359,25 @@ var ii = ["id"], ai = /* @__PURE__ */ k(/* @__PURE__ */ V({
|
|
|
5339
5359
|
}),
|
|
5340
5360
|
onMouseenter: t[0] ||= (e) => f.value = !0,
|
|
5341
5361
|
onMouseleave: t[1] ||= (e) => f.value = !1
|
|
5342
|
-
}, [
|
|
5362
|
+
}, [R("div", {
|
|
5343
5363
|
ref_key: "containerRef",
|
|
5344
5364
|
ref: a,
|
|
5345
|
-
class:
|
|
5365
|
+
class: V(e.$style.scrollbarContainer),
|
|
5346
5366
|
onScroll: ee
|
|
5347
|
-
}, [q(e.$slots, "default")], 34),
|
|
5367
|
+
}, [q(e.$slots, "default")], 34), R("div", {
|
|
5348
5368
|
ref_key: "trackRef",
|
|
5349
5369
|
ref: o,
|
|
5350
|
-
class:
|
|
5370
|
+
class: V([e.$style.track, { [e.$style.trackVisible]: y.value }]),
|
|
5351
5371
|
onMousedown: j
|
|
5352
|
-
}, [
|
|
5372
|
+
}, [R("div", {
|
|
5353
5373
|
ref_key: "thumbRef",
|
|
5354
5374
|
ref: s,
|
|
5355
|
-
class:
|
|
5356
|
-
style:
|
|
5375
|
+
class: V([e.$style.thumb, { [e.$style.active]: d.value }]),
|
|
5376
|
+
style: H({
|
|
5357
5377
|
width: `${x.value}px`,
|
|
5358
5378
|
transform: `translateX(${S.value}px)`
|
|
5359
5379
|
}),
|
|
5360
|
-
onPointerdown:
|
|
5380
|
+
onPointerdown: te
|
|
5361
5381
|
}, null, 38)], 34)], 38));
|
|
5362
5382
|
}
|
|
5363
5383
|
}), [["__cssModules", { $style: {
|