@halo-dev/components 1.1.0 → 1.2.0
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/components/dialog/Dialog.vue.d.ts +13 -0
- package/dist/components/modal/Modal.vue.d.ts +13 -0
- package/dist/halo-components.es.js +196 -183
- package/dist/halo-components.es.js.map +1 -1
- package/dist/halo-components.iife.js +2 -2
- package/dist/halo-components.iife.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as Q, createElementBlock as S, createElementVNode as y, defineComponent as
|
|
1
|
+
import { openBlock as Q, createElementBlock as S, createElementVNode as y, defineComponent as oe, ref as Ke, onMounted as To, computed as ce, normalizeClass as re, unref as _, normalizeStyle as an, toDisplayString as F, createBlock as yt, renderSlot as I, resolveDynamicComponent as ks, createVNode as he, createCommentVNode as U, createTextVNode as gi, provide as Dh, useSlots as Lh, inject as jh, withModifiers as Un, Transition as Yn, withCtx as Xe, withDirectives as Gt, vShow as Xi, watch as ko, nextTick as sd, Teleport as rd, withKeys as od, Fragment as Mr, renderList as Ar, render as Cs, isRef as ml, vModelSelect as yl, shallowRef as Fs, onBeforeUnmount as ld, resolveComponent as Ih, watchEffect as ad } from "vue";
|
|
2
2
|
import { useRouter as hd } from "vue-router";
|
|
3
3
|
import { useOffsetPagination as cd } from "@vueuse/core";
|
|
4
4
|
const ud = {
|
|
@@ -868,7 +868,7 @@ const Im = {
|
|
|
868
868
|
key: 1,
|
|
869
869
|
class: "avatar-placeholder"
|
|
870
870
|
}, Vm = ["src", "alt"];
|
|
871
|
-
var DT = /* @__PURE__ */
|
|
871
|
+
var DT = /* @__PURE__ */ oe({
|
|
872
872
|
__name: "Avatar",
|
|
873
873
|
props: {
|
|
874
874
|
src: { default: void 0 },
|
|
@@ -879,7 +879,7 @@ var DT = /* @__PURE__ */ re({
|
|
|
879
879
|
circle: { type: Boolean, default: !1 }
|
|
880
880
|
},
|
|
881
881
|
setup(n) {
|
|
882
|
-
const e = n, t =
|
|
882
|
+
const e = n, t = Ke(!1), i = Ke(!1), s = async () => {
|
|
883
883
|
if (!e.src)
|
|
884
884
|
return Promise.reject();
|
|
885
885
|
const a = new Image();
|
|
@@ -917,7 +917,7 @@ var DT = /* @__PURE__ */ re({
|
|
|
917
917
|
return a[0].charAt(0).toUpperCase() + a[1].charAt(0).toUpperCase();
|
|
918
918
|
});
|
|
919
919
|
return (a, h) => (Q(), S("div", {
|
|
920
|
-
class:
|
|
920
|
+
class: re(["avatar-wrapper", _(r)]),
|
|
921
921
|
style: an(_(o))
|
|
922
922
|
}, [
|
|
923
923
|
t.value || i.value ? (Q(), S("div", Im, [
|
|
@@ -940,7 +940,7 @@ const Zm = { class: "alert-header" }, Bm = { class: "alert-icon" }, qm = { class
|
|
|
940
940
|
key: 1,
|
|
941
941
|
class: "alert-actions"
|
|
942
942
|
};
|
|
943
|
-
var Ym = /* @__PURE__ */
|
|
943
|
+
var Ym = /* @__PURE__ */ oe({
|
|
944
944
|
__name: "Alert",
|
|
945
945
|
props: {
|
|
946
946
|
type: { default: "default" },
|
|
@@ -960,7 +960,7 @@ var Ym = /* @__PURE__ */ re({
|
|
|
960
960
|
e("close");
|
|
961
961
|
};
|
|
962
962
|
return (o, l) => (Q(), S("div", {
|
|
963
|
-
class:
|
|
963
|
+
class: re([_(s), "alert-wrapper"])
|
|
964
964
|
}, [
|
|
965
965
|
y("div", Zm, [
|
|
966
966
|
y("div", Bm, [
|
|
@@ -1018,7 +1018,7 @@ const Fm = ["disabled"], Hm = {
|
|
|
1018
1018
|
Jm,
|
|
1019
1019
|
e1
|
|
1020
1020
|
], i1 = { class: "btn-content" };
|
|
1021
|
-
var Sl = /* @__PURE__ */
|
|
1021
|
+
var Sl = /* @__PURE__ */ oe({
|
|
1022
1022
|
__name: "Button",
|
|
1023
1023
|
props: {
|
|
1024
1024
|
type: { default: "default" },
|
|
@@ -1042,7 +1042,7 @@ var Sl = /* @__PURE__ */ re({
|
|
|
1042
1042
|
t.disabled || t.loading || (t.route && i.push(t.route), e("click"));
|
|
1043
1043
|
}
|
|
1044
1044
|
return (o, l) => (Q(), S("button", {
|
|
1045
|
-
class:
|
|
1045
|
+
class: re([_(s), "btn"]),
|
|
1046
1046
|
disabled: n.disabled,
|
|
1047
1047
|
type: "button",
|
|
1048
1048
|
onClick: r
|
|
@@ -1063,7 +1063,7 @@ const n1 = { class: "card-wrapper" }, s1 = {
|
|
|
1063
1063
|
key: 1,
|
|
1064
1064
|
class: "card-footer"
|
|
1065
1065
|
};
|
|
1066
|
-
var jT = /* @__PURE__ */
|
|
1066
|
+
var jT = /* @__PURE__ */ oe({
|
|
1067
1067
|
__name: "Card",
|
|
1068
1068
|
props: {
|
|
1069
1069
|
title: null,
|
|
@@ -1080,7 +1080,7 @@ var jT = /* @__PURE__ */ re({
|
|
|
1080
1080
|
])
|
|
1081
1081
|
])) : U("", !0),
|
|
1082
1082
|
y("div", {
|
|
1083
|
-
class:
|
|
1083
|
+
class: re([n.bodyClass, "card-body"])
|
|
1084
1084
|
}, [
|
|
1085
1085
|
I(e.$slots, "default")
|
|
1086
1086
|
], 2),
|
|
@@ -1091,7 +1091,7 @@ var jT = /* @__PURE__ */ re({
|
|
|
1091
1091
|
}
|
|
1092
1092
|
});
|
|
1093
1093
|
const a1 = { class: "flex items-center justify-between bg-white p-4 h-14" }, h1 = { class: "min-w-0 flex-1 self-center" }, c1 = { class: "flex items-center truncate text-xl font-bold text-gray-800" }, u1 = { class: "self-center" };
|
|
1094
|
-
var IT = /* @__PURE__ */
|
|
1094
|
+
var IT = /* @__PURE__ */ oe({
|
|
1095
1095
|
__name: "PageHeader",
|
|
1096
1096
|
props: {
|
|
1097
1097
|
title: null
|
|
@@ -1111,7 +1111,7 @@ var IT = /* @__PURE__ */ re({
|
|
|
1111
1111
|
}
|
|
1112
1112
|
});
|
|
1113
1113
|
const f1 = { class: "menu-container w-full p-3" };
|
|
1114
|
-
var zT = /* @__PURE__ */
|
|
1114
|
+
var zT = /* @__PURE__ */ oe({
|
|
1115
1115
|
__name: "Menu",
|
|
1116
1116
|
props: {
|
|
1117
1117
|
openIds: null
|
|
@@ -1128,7 +1128,7 @@ const d1 = ["onClick"], O1 = {
|
|
|
1128
1128
|
key: 0,
|
|
1129
1129
|
class: "menu-icon mr-3 self-center"
|
|
1130
1130
|
}, p1 = { class: "menu-title flex-1 self-center" }, g1 = { class: "sub-menu-items transition-all" };
|
|
1131
|
-
var NT = /* @__PURE__ */
|
|
1131
|
+
var NT = /* @__PURE__ */ oe({
|
|
1132
1132
|
__name: "MenuItem",
|
|
1133
1133
|
props: {
|
|
1134
1134
|
id: { default: "" },
|
|
@@ -1137,7 +1137,7 @@ var NT = /* @__PURE__ */ re({
|
|
|
1137
1137
|
},
|
|
1138
1138
|
emits: ["select"],
|
|
1139
1139
|
setup(n, { emit: e }) {
|
|
1140
|
-
const t = n, i = Lh(), s =
|
|
1140
|
+
const t = n, i = Lh(), s = Ke(!1), r = jh("openIds");
|
|
1141
1141
|
r != null && r.includes(t.id) && (s.value = !0);
|
|
1142
1142
|
const o = ce(() => i.default && i.default().length > 0);
|
|
1143
1143
|
function l() {
|
|
@@ -1148,11 +1148,11 @@ var NT = /* @__PURE__ */ re({
|
|
|
1148
1148
|
e("select", t.id);
|
|
1149
1149
|
}
|
|
1150
1150
|
return (a, h) => (Q(), S("li", {
|
|
1151
|
-
class:
|
|
1151
|
+
class: re([{ "has-submenus": _(o) }, "menu-item"]),
|
|
1152
1152
|
onClick: Un(l, ["stop"])
|
|
1153
1153
|
}, [
|
|
1154
1154
|
y("div", {
|
|
1155
|
-
class:
|
|
1155
|
+
class: re([{ active: n.active }, "menu-item-title"])
|
|
1156
1156
|
}, [
|
|
1157
1157
|
a.$slots.icon ? (Q(), S("span", O1, [
|
|
1158
1158
|
I(a.$slots, "icon")
|
|
@@ -1160,7 +1160,7 @@ var NT = /* @__PURE__ */ re({
|
|
|
1160
1160
|
y("span", p1, F(n.title), 1),
|
|
1161
1161
|
a.$slots.default ? (Q(), S("span", {
|
|
1162
1162
|
key: 1,
|
|
1163
|
-
class:
|
|
1163
|
+
class: re([{ open: s.value }, "menu-icon-collapse self-center transition-all"])
|
|
1164
1164
|
}, [
|
|
1165
1165
|
he(_(_r))
|
|
1166
1166
|
], 2)) : U("", !0)
|
|
@@ -1195,7 +1195,7 @@ const S1 = {
|
|
|
1195
1195
|
key: 1,
|
|
1196
1196
|
class: "modal-footer"
|
|
1197
1197
|
};
|
|
1198
|
-
var $1 = /* @__PURE__ */
|
|
1198
|
+
var $1 = /* @__PURE__ */ oe({
|
|
1199
1199
|
__name: "Modal",
|
|
1200
1200
|
props: {
|
|
1201
1201
|
visible: { type: Boolean, default: !1 },
|
|
@@ -1205,11 +1205,12 @@ var $1 = /* @__PURE__ */ re({
|
|
|
1205
1205
|
fullscreen: { type: Boolean, default: !1 },
|
|
1206
1206
|
bodyClass: { default: void 0 },
|
|
1207
1207
|
mountToBody: { type: Boolean, default: !1 },
|
|
1208
|
-
centered: { type: Boolean, default: !0 }
|
|
1208
|
+
centered: { type: Boolean, default: !0 },
|
|
1209
|
+
layerClosable: { type: Boolean, default: !1 }
|
|
1209
1210
|
},
|
|
1210
1211
|
emits: ["update:visible", "close"],
|
|
1211
1212
|
setup(n, { emit: e }) {
|
|
1212
|
-
const t = n, i =
|
|
1213
|
+
const t = n, i = Ke(!1), s = Ke(), r = ce(() => ({
|
|
1213
1214
|
"modal-wrapper-fullscreen": t.fullscreen,
|
|
1214
1215
|
"modal-wrapper-centered": t.centered
|
|
1215
1216
|
})), o = ce(() => ({
|
|
@@ -1219,26 +1220,36 @@ var $1 = /* @__PURE__ */ re({
|
|
|
1219
1220
|
function l() {
|
|
1220
1221
|
e("update:visible", !1), e("close");
|
|
1221
1222
|
}
|
|
1223
|
+
const a = Ke(!1);
|
|
1224
|
+
function h() {
|
|
1225
|
+
if (t.layerClosable) {
|
|
1226
|
+
l();
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1229
|
+
a.value = !0, setTimeout(() => {
|
|
1230
|
+
a.value = !1;
|
|
1231
|
+
}, 300);
|
|
1232
|
+
}
|
|
1222
1233
|
return ko(
|
|
1223
1234
|
() => t.visible,
|
|
1224
1235
|
() => {
|
|
1225
1236
|
t.visible && sd(() => {
|
|
1226
|
-
var
|
|
1227
|
-
(
|
|
1237
|
+
var c;
|
|
1238
|
+
(c = s.value) == null || c.focus();
|
|
1228
1239
|
});
|
|
1229
1240
|
}
|
|
1230
|
-
), (
|
|
1241
|
+
), (c, u) => (Q(), yt(rd, {
|
|
1231
1242
|
disabled: !n.mountToBody,
|
|
1232
1243
|
to: "body"
|
|
1233
1244
|
}, [
|
|
1234
1245
|
Gt(y("div", {
|
|
1235
1246
|
ref_key: "modelWrapper",
|
|
1236
1247
|
ref: s,
|
|
1237
|
-
class:
|
|
1248
|
+
class: re([_(r), "modal-wrapper"]),
|
|
1238
1249
|
"aria-modal": "true",
|
|
1239
1250
|
role: "dialog",
|
|
1240
1251
|
tabindex: "0",
|
|
1241
|
-
onKeyup:
|
|
1252
|
+
onKeyup: u[4] || (u[4] = od(Un((f) => l(), ["stop"]), ["esc"]))
|
|
1242
1253
|
}, [
|
|
1243
1254
|
he(Yn, {
|
|
1244
1255
|
"enter-active-class": "ease-out duration-200",
|
|
@@ -1247,13 +1258,13 @@ var $1 = /* @__PURE__ */ re({
|
|
|
1247
1258
|
"leave-active-class": "ease-in duration-100",
|
|
1248
1259
|
"leave-from-class": "opacity-100",
|
|
1249
1260
|
"leave-to-class": "opacity-0",
|
|
1250
|
-
onBeforeEnter:
|
|
1251
|
-
onAfterLeave:
|
|
1261
|
+
onBeforeEnter: u[1] || (u[1] = (f) => i.value = !0),
|
|
1262
|
+
onAfterLeave: u[2] || (u[2] = (f) => i.value = !1)
|
|
1252
1263
|
}, {
|
|
1253
1264
|
default: Xe(() => [
|
|
1254
1265
|
Gt(y("div", {
|
|
1255
1266
|
class: "modal-layer",
|
|
1256
|
-
onClick:
|
|
1267
|
+
onClick: u[0] || (u[0] = Un((f) => h(), ["stop"]))
|
|
1257
1268
|
}, null, 512), [
|
|
1258
1269
|
[Xi, n.visible]
|
|
1259
1270
|
])
|
|
@@ -1271,19 +1282,19 @@ var $1 = /* @__PURE__ */ re({
|
|
|
1271
1282
|
default: Xe(() => [
|
|
1272
1283
|
Gt(y("div", {
|
|
1273
1284
|
style: an(_(o)),
|
|
1274
|
-
class: "modal-content transform transition-all"
|
|
1285
|
+
class: re(["modal-content transform transition-all duration-300", { "modal-focus": a.value }])
|
|
1275
1286
|
}, [
|
|
1276
|
-
|
|
1277
|
-
I(
|
|
1287
|
+
c.$slots.header || n.title ? (Q(), S("div", S1, [
|
|
1288
|
+
I(c.$slots, "header", {}, () => [
|
|
1278
1289
|
y("div", x1, F(n.title), 1),
|
|
1279
|
-
|
|
1280
|
-
I(
|
|
1290
|
+
c.$slots.center ? (Q(), S("div", b1, [
|
|
1291
|
+
I(c.$slots, "center")
|
|
1281
1292
|
])) : U("", !0),
|
|
1282
1293
|
y("div", w1, [
|
|
1283
|
-
I(
|
|
1294
|
+
I(c.$slots, "actions"),
|
|
1284
1295
|
y("span", {
|
|
1285
1296
|
class: "bg-gray-50",
|
|
1286
|
-
onClick:
|
|
1297
|
+
onClick: u[3] || (u[3] = (f) => l())
|
|
1287
1298
|
}, [
|
|
1288
1299
|
he(_(Ps))
|
|
1289
1300
|
])
|
|
@@ -1291,14 +1302,14 @@ var $1 = /* @__PURE__ */ re({
|
|
|
1291
1302
|
])
|
|
1292
1303
|
])) : U("", !0),
|
|
1293
1304
|
y("div", {
|
|
1294
|
-
class:
|
|
1305
|
+
class: re([n.bodyClass, "modal-body"])
|
|
1295
1306
|
}, [
|
|
1296
|
-
I(
|
|
1307
|
+
I(c.$slots, "default")
|
|
1297
1308
|
], 2),
|
|
1298
|
-
|
|
1299
|
-
I(
|
|
1309
|
+
c.$slots.footer ? (Q(), S("div", v1, [
|
|
1310
|
+
I(c.$slots, "footer")
|
|
1300
1311
|
])) : U("", !0)
|
|
1301
|
-
],
|
|
1312
|
+
], 6), [
|
|
1302
1313
|
[Xi, n.visible]
|
|
1303
1314
|
])
|
|
1304
1315
|
]),
|
|
@@ -1316,7 +1327,7 @@ const T1 = {
|
|
|
1316
1327
|
md: 16,
|
|
1317
1328
|
lg: 20
|
|
1318
1329
|
};
|
|
1319
|
-
var k1 = /* @__PURE__ */
|
|
1330
|
+
var k1 = /* @__PURE__ */ oe({
|
|
1320
1331
|
__name: "Space",
|
|
1321
1332
|
props: {
|
|
1322
1333
|
spacing: { default: "xs" },
|
|
@@ -1329,7 +1340,7 @@ var k1 = /* @__PURE__ */ re({
|
|
|
1329
1340
|
return [`space-direction-${i}`, `space-align-${s}`];
|
|
1330
1341
|
});
|
|
1331
1342
|
return (i, s) => (Q(), S("div", {
|
|
1332
|
-
class:
|
|
1343
|
+
class: re([_(t), "space-wrapper"]),
|
|
1333
1344
|
style: an(`gap: ${_(T1)[n.spacing]}px`)
|
|
1334
1345
|
}, [
|
|
1335
1346
|
I(i.$slots, "default")
|
|
@@ -1337,7 +1348,7 @@ var k1 = /* @__PURE__ */ re({
|
|
|
1337
1348
|
}
|
|
1338
1349
|
});
|
|
1339
1350
|
const C1 = { class: "tabs-bar-wrapper" }, P1 = { class: "tabs-items-wrapper" };
|
|
1340
|
-
var XT = /* @__PURE__ */
|
|
1351
|
+
var XT = /* @__PURE__ */ oe({
|
|
1341
1352
|
__name: "Tabs",
|
|
1342
1353
|
props: {
|
|
1343
1354
|
activeId: { default: void 0 },
|
|
@@ -1363,7 +1374,7 @@ var XT = /* @__PURE__ */ re({
|
|
|
1363
1374
|
e("update:activeId", l), e("change", l);
|
|
1364
1375
|
};
|
|
1365
1376
|
return (l, a) => (Q(), S("div", {
|
|
1366
|
-
class:
|
|
1377
|
+
class: re([_(r), "tabs-wrapper"])
|
|
1367
1378
|
}, [
|
|
1368
1379
|
y("div", C1, [
|
|
1369
1380
|
he(_(L1), {
|
|
@@ -1384,7 +1395,7 @@ const M1 = {
|
|
|
1384
1395
|
key: 0,
|
|
1385
1396
|
class: "tabs-item-wrapper"
|
|
1386
1397
|
};
|
|
1387
|
-
var ET = /* @__PURE__ */
|
|
1398
|
+
var ET = /* @__PURE__ */ oe({
|
|
1388
1399
|
__name: "TabItem",
|
|
1389
1400
|
props: {
|
|
1390
1401
|
id: null,
|
|
@@ -1404,7 +1415,7 @@ const A1 = { class: "tabbar-items" }, _1 = ["onClick"], R1 = {
|
|
|
1404
1415
|
key: 1,
|
|
1405
1416
|
class: "tabbar-item-label"
|
|
1406
1417
|
};
|
|
1407
|
-
var L1 = /* @__PURE__ */
|
|
1418
|
+
var L1 = /* @__PURE__ */ oe({
|
|
1408
1419
|
__name: "Tabbar",
|
|
1409
1420
|
props: {
|
|
1410
1421
|
activeId: { default: void 0 },
|
|
@@ -1420,12 +1431,12 @@ var L1 = /* @__PURE__ */ re({
|
|
|
1420
1431
|
e("update:activeId", r), e("change", r);
|
|
1421
1432
|
};
|
|
1422
1433
|
return (r, o) => (Q(), S("div", {
|
|
1423
|
-
class:
|
|
1434
|
+
class: re([_(i), "tabbar-wrapper"])
|
|
1424
1435
|
}, [
|
|
1425
1436
|
y("div", A1, [
|
|
1426
1437
|
(Q(!0), S(Mr, null, Ar(n.items, (l, a) => (Q(), S("div", {
|
|
1427
1438
|
key: a,
|
|
1428
|
-
class:
|
|
1439
|
+
class: re([{ "tabbar-item-active": l[n.idKey] === n.activeId }, "tabbar-item"]),
|
|
1429
1440
|
onClick: (h) => s(l[n.idKey])
|
|
1430
1441
|
}, [
|
|
1431
1442
|
l.icon ? (Q(), S("div", R1, [
|
|
@@ -1444,7 +1455,7 @@ const j1 = {
|
|
|
1444
1455
|
key: 1,
|
|
1445
1456
|
class: "tag-right-icon"
|
|
1446
1457
|
};
|
|
1447
|
-
var VT = /* @__PURE__ */
|
|
1458
|
+
var VT = /* @__PURE__ */ oe({
|
|
1448
1459
|
__name: "Tag",
|
|
1449
1460
|
props: {
|
|
1450
1461
|
theme: { default: "default" },
|
|
@@ -1454,7 +1465,7 @@ var VT = /* @__PURE__ */ re({
|
|
|
1454
1465
|
setup(n) {
|
|
1455
1466
|
const e = n, t = ce(() => [`tag-${e.theme}`, { "tag-rounded": e.rounded }]);
|
|
1456
1467
|
return (i, s) => (Q(), S("div", {
|
|
1457
|
-
class:
|
|
1468
|
+
class: re([_(t), "tag-wrapper"]),
|
|
1458
1469
|
style: an(n.styles)
|
|
1459
1470
|
}, [
|
|
1460
1471
|
i.$slots.leftIcon ? (Q(), S("div", j1, [
|
|
@@ -1470,7 +1481,7 @@ var VT = /* @__PURE__ */ re({
|
|
|
1470
1481
|
}
|
|
1471
1482
|
});
|
|
1472
1483
|
const N1 = { class: "switch-wrapper" };
|
|
1473
|
-
var ZT = /* @__PURE__ */
|
|
1484
|
+
var ZT = /* @__PURE__ */ oe({
|
|
1474
1485
|
__name: "Switch",
|
|
1475
1486
|
props: {
|
|
1476
1487
|
modelValue: { type: Boolean, default: !1 }
|
|
@@ -1482,7 +1493,7 @@ var ZT = /* @__PURE__ */ re({
|
|
|
1482
1493
|
};
|
|
1483
1494
|
return (s, r) => (Q(), S("div", N1, [
|
|
1484
1495
|
y("button", {
|
|
1485
|
-
class:
|
|
1496
|
+
class: re([{
|
|
1486
1497
|
"bg-gray-200": !n.modelValue,
|
|
1487
1498
|
"!bg-primary": n.modelValue
|
|
1488
1499
|
}, "switch-inner"]),
|
|
@@ -1492,7 +1503,7 @@ var ZT = /* @__PURE__ */ re({
|
|
|
1492
1503
|
onClick: i
|
|
1493
1504
|
}, [
|
|
1494
1505
|
y("span", {
|
|
1495
|
-
class:
|
|
1506
|
+
class: re([{
|
|
1496
1507
|
"translate-x-0": !n.modelValue,
|
|
1497
1508
|
"translate-x-5": n.modelValue
|
|
1498
1509
|
}, "switch-indicator"]),
|
|
@@ -1505,7 +1516,7 @@ var ZT = /* @__PURE__ */ re({
|
|
|
1505
1516
|
}
|
|
1506
1517
|
});
|
|
1507
1518
|
const W1 = { class: "flex justify-between items-start py-2 mb-2" }, X1 = { class: "flex flex-row items-center gap-3" }, E1 = { class: "text-base text-gray-900 font-bold" }, V1 = { class: "flex items-center gap-4" }, Z1 = { class: "flex-1 flex items-stretch" }, B1 = { class: "text-sm text-gray-700" }, q1 = { class: "flex flex-col sm:flex-row gap-[10px]" };
|
|
1508
|
-
var G1 = /* @__PURE__ */
|
|
1519
|
+
var G1 = /* @__PURE__ */ oe({
|
|
1509
1520
|
__name: "Dialog",
|
|
1510
1521
|
props: {
|
|
1511
1522
|
type: { default: "info" },
|
|
@@ -1539,7 +1550,7 @@ var G1 = /* @__PURE__ */ re({
|
|
|
1539
1550
|
icon: zh,
|
|
1540
1551
|
color: "red"
|
|
1541
1552
|
}
|
|
1542
|
-
}, s = ce(() => i[t.type]), r =
|
|
1553
|
+
}, s = ce(() => i[t.type]), r = Ke(!1), o = () => {
|
|
1543
1554
|
t.onCancel && t.onCancel(), a();
|
|
1544
1555
|
}, l = async () => {
|
|
1545
1556
|
t.onConfirm && (r.value = !0, await t.onConfirm()), a();
|
|
@@ -1549,6 +1560,7 @@ var G1 = /* @__PURE__ */ re({
|
|
|
1549
1560
|
return (h, c) => (Q(), yt(_($1), {
|
|
1550
1561
|
visible: n.visible,
|
|
1551
1562
|
width: 450,
|
|
1563
|
+
"layer-closable": !0,
|
|
1552
1564
|
onClose: c[0] || (c[0] = (u) => o())
|
|
1553
1565
|
}, {
|
|
1554
1566
|
footer: Xe(() => [
|
|
@@ -1575,7 +1587,7 @@ var G1 = /* @__PURE__ */ re({
|
|
|
1575
1587
|
y("div", W1, [
|
|
1576
1588
|
y("div", X1, [
|
|
1577
1589
|
(Q(), yt(ks(_(s).icon), {
|
|
1578
|
-
class:
|
|
1590
|
+
class: re([`text-${_(s).color}-500`, "w-6 h-6"])
|
|
1579
1591
|
}, null, 8, ["class"])),
|
|
1580
1592
|
y("div", E1, F(n.title), 1)
|
|
1581
1593
|
]),
|
|
@@ -1630,7 +1642,7 @@ const F1 = { class: "bg-white flex items-center justify-between" }, H1 = { class
|
|
|
1630
1642
|
key: 0,
|
|
1631
1643
|
value: 0
|
|
1632
1644
|
}, o0 = ["value"], l0 = /* @__PURE__ */ y("span", { class: "text-sm text-gray-500" }, "页", -1), a0 = { class: "inline-flex items-center gap-2" }, h0 = ["value"], c0 = /* @__PURE__ */ y("span", { class: "text-sm text-gray-500" }, "条 / 页", -1);
|
|
1633
|
-
var BT = /* @__PURE__ */
|
|
1645
|
+
var BT = /* @__PURE__ */ oe({
|
|
1634
1646
|
__name: "Pagination",
|
|
1635
1647
|
props: {
|
|
1636
1648
|
page: { default: 1 },
|
|
@@ -1640,7 +1652,7 @@ var BT = /* @__PURE__ */ re({
|
|
|
1640
1652
|
},
|
|
1641
1653
|
emits: ["update:page", "update:size", "change"],
|
|
1642
1654
|
setup(n, { emit: e }) {
|
|
1643
|
-
const t = n, i =
|
|
1655
|
+
const t = n, i = Ke(t.page), s = Ke(t.size), r = Ke(t.total);
|
|
1644
1656
|
ko([() => t.page, () => t.size, () => t.total], () => {
|
|
1645
1657
|
i.value = t.page, s.value = t.size, r.value = t.total;
|
|
1646
1658
|
});
|
|
@@ -1783,7 +1795,7 @@ class E {
|
|
|
1783
1795
|
s,
|
|
1784
1796
|
1
|
|
1785
1797
|
/* Open.From */
|
|
1786
|
-
),
|
|
1798
|
+
), ot.from(s, this.length - (t - e) + i.length);
|
|
1787
1799
|
}
|
|
1788
1800
|
/**
|
|
1789
1801
|
Append another document to this one.
|
|
@@ -1796,7 +1808,7 @@ class E {
|
|
|
1796
1808
|
*/
|
|
1797
1809
|
slice(e, t = this.length) {
|
|
1798
1810
|
let i = [];
|
|
1799
|
-
return this.decompose(e, t, i, 0),
|
|
1811
|
+
return this.decompose(e, t, i, 0), ot.from(i, t - e);
|
|
1800
1812
|
}
|
|
1801
1813
|
/**
|
|
1802
1814
|
Test whether this text is equal to another instance.
|
|
@@ -1867,10 +1879,10 @@ class E {
|
|
|
1867
1879
|
static of(e) {
|
|
1868
1880
|
if (e.length == 0)
|
|
1869
1881
|
throw new RangeError("A document must have at least one line");
|
|
1870
|
-
return e.length == 1 && !e[0] ? E.empty : e.length <= 32 ? new
|
|
1882
|
+
return e.length == 1 && !e[0] ? E.empty : e.length <= 32 ? new le(e) : ot.from(le.split(e, []));
|
|
1871
1883
|
}
|
|
1872
1884
|
}
|
|
1873
|
-
class
|
|
1885
|
+
class le extends E {
|
|
1874
1886
|
constructor(e, t = u0(e)) {
|
|
1875
1887
|
super(), this.text = e, this.length = t;
|
|
1876
1888
|
}
|
|
@@ -1889,23 +1901,23 @@ class oe extends E {
|
|
|
1889
1901
|
}
|
|
1890
1902
|
}
|
|
1891
1903
|
decompose(e, t, i, s) {
|
|
1892
|
-
let r = e <= 0 && t >= this.length ? this : new
|
|
1904
|
+
let r = e <= 0 && t >= this.length ? this : new le(xl(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
1893
1905
|
if (s & 1) {
|
|
1894
1906
|
let o = i.pop(), l = zn(r.text, o.text.slice(), 0, r.length);
|
|
1895
1907
|
if (l.length <= 32)
|
|
1896
|
-
i.push(new
|
|
1908
|
+
i.push(new le(l, o.length + r.length));
|
|
1897
1909
|
else {
|
|
1898
1910
|
let a = l.length >> 1;
|
|
1899
|
-
i.push(new
|
|
1911
|
+
i.push(new le(l.slice(0, a)), new le(l.slice(a)));
|
|
1900
1912
|
}
|
|
1901
1913
|
} else
|
|
1902
1914
|
i.push(r);
|
|
1903
1915
|
}
|
|
1904
1916
|
replace(e, t, i) {
|
|
1905
|
-
if (!(i instanceof
|
|
1917
|
+
if (!(i instanceof le))
|
|
1906
1918
|
return super.replace(e, t, i);
|
|
1907
1919
|
let s = zn(this.text, zn(i.text, xl(this.text, 0, e)), t), r = this.length + i.length - (t - e);
|
|
1908
|
-
return s.length <= 32 ? new
|
|
1920
|
+
return s.length <= 32 ? new le(s, r) : ot.from(le.split(s, []), r);
|
|
1909
1921
|
}
|
|
1910
1922
|
sliceString(e, t = this.length, i = `
|
|
1911
1923
|
`) {
|
|
@@ -1926,11 +1938,11 @@ class oe extends E {
|
|
|
1926
1938
|
static split(e, t) {
|
|
1927
1939
|
let i = [], s = -1;
|
|
1928
1940
|
for (let r of e)
|
|
1929
|
-
i.push(r), s += r.length + 1, i.length == 32 && (t.push(new
|
|
1930
|
-
return s > -1 && t.push(new
|
|
1941
|
+
i.push(r), s += r.length + 1, i.length == 32 && (t.push(new le(i, s)), i = [], s = -1);
|
|
1942
|
+
return s > -1 && t.push(new le(i, s)), t;
|
|
1931
1943
|
}
|
|
1932
1944
|
}
|
|
1933
|
-
class
|
|
1945
|
+
class ot extends E {
|
|
1934
1946
|
constructor(e, t) {
|
|
1935
1947
|
super(), this.children = e, this.length = t, this.lines = 0;
|
|
1936
1948
|
for (let i of e)
|
|
@@ -1962,7 +1974,7 @@ class rt extends E {
|
|
|
1962
1974
|
let a = o.replace(e - r, t - r, i), h = this.lines - o.lines + a.lines;
|
|
1963
1975
|
if (a.lines < h >> 5 - 1 && a.lines > h >> 5 + 1) {
|
|
1964
1976
|
let c = this.children.slice();
|
|
1965
|
-
return c[s] = a, new
|
|
1977
|
+
return c[s] = a, new ot(c, this.length - (t - e) + i.length);
|
|
1966
1978
|
}
|
|
1967
1979
|
return super.replace(r, l, a);
|
|
1968
1980
|
}
|
|
@@ -1984,7 +1996,7 @@ class rt extends E {
|
|
|
1984
1996
|
t.flatten(e);
|
|
1985
1997
|
}
|
|
1986
1998
|
scanIdentical(e, t) {
|
|
1987
|
-
if (!(e instanceof
|
|
1999
|
+
if (!(e instanceof ot))
|
|
1988
2000
|
return 0;
|
|
1989
2001
|
let i = 0, [s, r, o, l] = t > 0 ? [0, 0, this.children.length, e.children.length] : [this.children.length - 1, e.children.length - 1, -1, -1];
|
|
1990
2002
|
for (; ; s += t, r += t) {
|
|
@@ -2004,7 +2016,7 @@ class rt extends E {
|
|
|
2004
2016
|
let d = [];
|
|
2005
2017
|
for (let O of e)
|
|
2006
2018
|
O.flatten(d);
|
|
2007
|
-
return new
|
|
2019
|
+
return new le(d, t);
|
|
2008
2020
|
}
|
|
2009
2021
|
let s = Math.max(
|
|
2010
2022
|
32,
|
|
@@ -2013,21 +2025,21 @@ class rt extends E {
|
|
|
2013
2025
|
), r = s << 1, o = s >> 1, l = [], a = 0, h = -1, c = [];
|
|
2014
2026
|
function u(d) {
|
|
2015
2027
|
let O;
|
|
2016
|
-
if (d.lines > r && d instanceof
|
|
2028
|
+
if (d.lines > r && d instanceof ot)
|
|
2017
2029
|
for (let m of d.children)
|
|
2018
2030
|
u(m);
|
|
2019
2031
|
else
|
|
2020
|
-
d.lines > o && (a > o || !a) ? (f(), l.push(d)) : d instanceof
|
|
2032
|
+
d.lines > o && (a > o || !a) ? (f(), l.push(d)) : d instanceof le && a && (O = c[c.length - 1]) instanceof le && d.lines + O.lines <= 32 ? (a += d.lines, h += d.length + 1, c[c.length - 1] = new le(O.text.concat(d.text), O.length + 1 + d.length)) : (a + d.lines > s && f(), a += d.lines, h += d.length + 1, c.push(d));
|
|
2021
2033
|
}
|
|
2022
2034
|
function f() {
|
|
2023
|
-
a != 0 && (l.push(c.length == 1 ? c[0] :
|
|
2035
|
+
a != 0 && (l.push(c.length == 1 ? c[0] : ot.from(c, h)), h = -1, a = c.length = 0);
|
|
2024
2036
|
}
|
|
2025
2037
|
for (let d of e)
|
|
2026
2038
|
u(d);
|
|
2027
|
-
return f(), l.length == 1 ? l[0] : new
|
|
2039
|
+
return f(), l.length == 1 ? l[0] : new ot(l, t);
|
|
2028
2040
|
}
|
|
2029
2041
|
}
|
|
2030
|
-
E.empty = /* @__PURE__ */ new
|
|
2042
|
+
E.empty = /* @__PURE__ */ new le([""], 0);
|
|
2031
2043
|
function u0(n) {
|
|
2032
2044
|
let e = -1;
|
|
2033
2045
|
for (let t of n)
|
|
@@ -2046,11 +2058,11 @@ function xl(n, e, t) {
|
|
|
2046
2058
|
}
|
|
2047
2059
|
class Ei {
|
|
2048
2060
|
constructor(e, t = 1) {
|
|
2049
|
-
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof
|
|
2061
|
+
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof le ? e.text.length : e.children.length) << 1];
|
|
2050
2062
|
}
|
|
2051
2063
|
nextInner(e, t) {
|
|
2052
2064
|
for (this.done = this.lineBreak = !1; ; ) {
|
|
2053
|
-
let i = this.nodes.length - 1, s = this.nodes[i], r = this.offsets[i], o = r >> 1, l = s instanceof
|
|
2065
|
+
let i = this.nodes.length - 1, s = this.nodes[i], r = this.offsets[i], o = r >> 1, l = s instanceof le ? s.text.length : s.children.length;
|
|
2054
2066
|
if (o == (t > 0 ? l : 0)) {
|
|
2055
2067
|
if (i == 0)
|
|
2056
2068
|
return this.done = !0, this.value = "", this;
|
|
@@ -2060,14 +2072,14 @@ class Ei {
|
|
|
2060
2072
|
return this.lineBreak = !0, this.value = `
|
|
2061
2073
|
`, this;
|
|
2062
2074
|
e--;
|
|
2063
|
-
} else if (s instanceof
|
|
2075
|
+
} else if (s instanceof le) {
|
|
2064
2076
|
let a = s.text[o + (t < 0 ? -1 : 0)];
|
|
2065
2077
|
if (this.offsets[i] += t, a.length > Math.max(0, e))
|
|
2066
2078
|
return this.value = e == 0 ? a : t > 0 ? a.slice(e) : a.slice(0, a.length - e), this;
|
|
2067
2079
|
e -= a.length;
|
|
2068
2080
|
} else {
|
|
2069
2081
|
let a = s.children[o + (t < 0 ? -1 : 0)];
|
|
2070
|
-
e > a.length ? (e -= a.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof
|
|
2082
|
+
e > a.length ? (e -= a.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof le ? a.text.length : a.children.length) << 1));
|
|
2071
2083
|
}
|
|
2072
2084
|
}
|
|
2073
2085
|
}
|
|
@@ -5964,7 +5976,7 @@ function kc(n) {
|
|
|
5964
5976
|
e.push(1 << +n[t]);
|
|
5965
5977
|
return e;
|
|
5966
5978
|
}
|
|
5967
|
-
const Z0 = /* @__PURE__ */ kc("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), B0 = /* @__PURE__ */ kc("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), to = /* @__PURE__ */ Object.create(null),
|
|
5979
|
+
const Z0 = /* @__PURE__ */ kc("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), B0 = /* @__PURE__ */ kc("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), to = /* @__PURE__ */ Object.create(null), tt = [];
|
|
5968
5980
|
for (let n of ["()", "[]", "{}"]) {
|
|
5969
5981
|
let e = /* @__PURE__ */ n.charCodeAt(0), t = /* @__PURE__ */ n.charCodeAt(1);
|
|
5970
5982
|
to[e] = t, to[t] = -e;
|
|
@@ -6039,29 +6051,29 @@ function U0(n, e) {
|
|
|
6039
6051
|
if (c = to[h = n.charCodeAt(o)])
|
|
6040
6052
|
if (c < 0) {
|
|
6041
6053
|
for (let f = l - 3; f >= 0; f -= 3)
|
|
6042
|
-
if (
|
|
6043
|
-
let d =
|
|
6044
|
-
O && (ee[o] = ee[
|
|
6054
|
+
if (tt[f + 1] == -c) {
|
|
6055
|
+
let d = tt[f + 2], O = d & 2 ? i : d & 4 ? d & 1 ? s : i : 0;
|
|
6056
|
+
O && (ee[o] = ee[tt[f]] = O), l = f;
|
|
6045
6057
|
break;
|
|
6046
6058
|
}
|
|
6047
6059
|
} else {
|
|
6048
|
-
if (
|
|
6060
|
+
if (tt.length == 189)
|
|
6049
6061
|
break;
|
|
6050
|
-
|
|
6062
|
+
tt[l++] = o, tt[l++] = h, tt[l++] = a;
|
|
6051
6063
|
}
|
|
6052
6064
|
else if ((u = ee[o]) == 2 || u == 1) {
|
|
6053
6065
|
let f = u == i;
|
|
6054
6066
|
a = f ? 0 : 1;
|
|
6055
6067
|
for (let d = l - 3; d >= 0; d -= 3) {
|
|
6056
|
-
let O =
|
|
6068
|
+
let O = tt[d + 2];
|
|
6057
6069
|
if (O & 2)
|
|
6058
6070
|
break;
|
|
6059
6071
|
if (f)
|
|
6060
|
-
|
|
6072
|
+
tt[d + 2] |= 2;
|
|
6061
6073
|
else {
|
|
6062
6074
|
if (O & 4)
|
|
6063
6075
|
break;
|
|
6064
|
-
|
|
6076
|
+
tt[d + 2] |= 4;
|
|
6065
6077
|
}
|
|
6066
6078
|
}
|
|
6067
6079
|
}
|
|
@@ -10931,7 +10943,7 @@ class Be {
|
|
|
10931
10943
|
continue;
|
|
10932
10944
|
let f = c.findChild(0, c.buffer.length, t, i - u, s);
|
|
10933
10945
|
if (f > -1)
|
|
10934
|
-
return new
|
|
10946
|
+
return new lt(new UQ(o, c, e, u), null, f);
|
|
10935
10947
|
} else if (r & K.IncludeAnonymous || !c.type.isAnonymous || Vo(c)) {
|
|
10936
10948
|
let f;
|
|
10937
10949
|
if (!(r & K.IgnoreMounts) && c.props && (f = c.prop(z.mounted)) && !f.overlay)
|
|
@@ -11087,7 +11099,7 @@ class UQ {
|
|
|
11087
11099
|
this.parent = e, this.buffer = t, this.index = i, this.start = s;
|
|
11088
11100
|
}
|
|
11089
11101
|
}
|
|
11090
|
-
class
|
|
11102
|
+
class lt {
|
|
11091
11103
|
constructor(e, t, i) {
|
|
11092
11104
|
this.context = e, this._parent = t, this.index = i, this.type = e.buffer.set.types[e.buffer.buffer[i]];
|
|
11093
11105
|
}
|
|
@@ -11102,7 +11114,7 @@ class ot {
|
|
|
11102
11114
|
}
|
|
11103
11115
|
child(e, t, i) {
|
|
11104
11116
|
let { buffer: s } = this.context, r = s.findChild(this.index + 4, s.buffer[this.index + 3], e, t - this.context.start, i);
|
|
11105
|
-
return r < 0 ? null : new
|
|
11117
|
+
return r < 0 ? null : new lt(this.context, this, r);
|
|
11106
11118
|
}
|
|
11107
11119
|
get firstChild() {
|
|
11108
11120
|
return this.child(
|
|
@@ -11140,7 +11152,7 @@ class ot {
|
|
|
11140
11152
|
if (i & K.ExcludeBuffers)
|
|
11141
11153
|
return null;
|
|
11142
11154
|
let { buffer: s } = this.context, r = s.findChild(this.index + 4, s.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
11143
|
-
return r < 0 ? null : new
|
|
11155
|
+
return r < 0 ? null : new lt(this.context, this, r);
|
|
11144
11156
|
}
|
|
11145
11157
|
get parent() {
|
|
11146
11158
|
return this._parent || this.context.parent.nextSignificantParent();
|
|
@@ -11156,11 +11168,11 @@ class ot {
|
|
|
11156
11168
|
}
|
|
11157
11169
|
get nextSibling() {
|
|
11158
11170
|
let { buffer: e } = this.context, t = e.buffer[this.index + 3];
|
|
11159
|
-
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new
|
|
11171
|
+
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new lt(this.context, this._parent, t) : this.externalSibling(1);
|
|
11160
11172
|
}
|
|
11161
11173
|
get prevSibling() {
|
|
11162
11174
|
let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
|
|
11163
|
-
return this.index == t ? this.externalSibling(-1) : new
|
|
11175
|
+
return this.index == t ? this.externalSibling(-1) : new lt(this.context, this._parent, e.findChild(
|
|
11164
11176
|
t,
|
|
11165
11177
|
this.index,
|
|
11166
11178
|
-1,
|
|
@@ -11415,8 +11427,8 @@ class tn {
|
|
|
11415
11427
|
}
|
|
11416
11428
|
}
|
|
11417
11429
|
for (let s = i; s < this.stack.length; s++)
|
|
11418
|
-
t = new
|
|
11419
|
-
return this.bufferNode = new
|
|
11430
|
+
t = new lt(this.buffer, t, this.stack[s]);
|
|
11431
|
+
return this.bufferNode = new lt(this.buffer, t, this.index);
|
|
11420
11432
|
}
|
|
11421
11433
|
/// Get the [tree](#common.Tree) that represents the current node, if
|
|
11422
11434
|
/// any. Will return null when the node is in a [tree
|
|
@@ -11646,11 +11658,11 @@ class FQ {
|
|
|
11646
11658
|
}
|
|
11647
11659
|
/// Set the value for this syntax node.
|
|
11648
11660
|
set(e, t) {
|
|
11649
|
-
e instanceof
|
|
11661
|
+
e instanceof lt ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof Be && this.map.set(e.tree, t);
|
|
11650
11662
|
}
|
|
11651
11663
|
/// Retrieve value for this syntax node, if it exists in the map.
|
|
11652
11664
|
get(e) {
|
|
11653
|
-
return e instanceof
|
|
11665
|
+
return e instanceof lt ? this.getBuffer(e.context.buffer, e.index) : e instanceof Be ? this.map.get(e.tree) : void 0;
|
|
11654
11666
|
}
|
|
11655
11667
|
/// Set the value for the node that a cursor currently points to.
|
|
11656
11668
|
cursorSet(e, t) {
|
|
@@ -12008,7 +12020,7 @@ function Ca(n, e) {
|
|
|
12008
12020
|
return t;
|
|
12009
12021
|
}
|
|
12010
12022
|
let r2 = 0;
|
|
12011
|
-
class
|
|
12023
|
+
class rt {
|
|
12012
12024
|
/// @internal
|
|
12013
12025
|
constructor(e, t, i) {
|
|
12014
12026
|
this.set = e, this.base = t, this.modified = i, this.id = r2++;
|
|
@@ -12021,7 +12033,7 @@ class st {
|
|
|
12021
12033
|
static define(e) {
|
|
12022
12034
|
if (e != null && e.base)
|
|
12023
12035
|
throw new Error("Can not derive from a modified tag");
|
|
12024
|
-
let t = new
|
|
12036
|
+
let t = new rt([], null, []);
|
|
12025
12037
|
if (t.set.push(t), e)
|
|
12026
12038
|
for (let i of e.set)
|
|
12027
12039
|
t.set.push(i);
|
|
@@ -12053,7 +12065,7 @@ class hs {
|
|
|
12053
12065
|
let i = t[0].instances.find((l) => l.base == e && l2(t, l.modified));
|
|
12054
12066
|
if (i)
|
|
12055
12067
|
return i;
|
|
12056
|
-
let s = [], r = new
|
|
12068
|
+
let s = [], r = new rt(s, e, t);
|
|
12057
12069
|
for (let l of t)
|
|
12058
12070
|
l.instances.push(r);
|
|
12059
12071
|
let o = au(t);
|
|
@@ -12214,7 +12226,7 @@ function u2(n) {
|
|
|
12214
12226
|
e = e.next;
|
|
12215
12227
|
return e || null;
|
|
12216
12228
|
}
|
|
12217
|
-
const w =
|
|
12229
|
+
const w = rt.define, Pn = w(), bt = w(), Pa = w(bt), Ma = w(bt), wt = w(), Mn = w(wt), cr = w(wt), st = w(), Xt = w(st), it = w(), nt = w(), fo = w(), Ai = w(fo), An = w(), p = {
|
|
12218
12230
|
/// A comment.
|
|
12219
12231
|
comment: Pn,
|
|
12220
12232
|
/// A line [comment](#highlight.tags.comment).
|
|
@@ -12271,47 +12283,47 @@ const w = st.define, Pn = w(), bt = w(), Pa = w(bt), Ma = w(bt), wt = w(), Mn =
|
|
|
12271
12283
|
/// A URL [literal](#highlight.tags.literal).
|
|
12272
12284
|
url: w(wt),
|
|
12273
12285
|
/// A language keyword.
|
|
12274
|
-
keyword:
|
|
12286
|
+
keyword: it,
|
|
12275
12287
|
/// The [keyword](#highlight.tags.keyword) for the self or this
|
|
12276
12288
|
/// object.
|
|
12277
|
-
self: w(
|
|
12289
|
+
self: w(it),
|
|
12278
12290
|
/// The [keyword](#highlight.tags.keyword) for null.
|
|
12279
|
-
null: w(
|
|
12291
|
+
null: w(it),
|
|
12280
12292
|
/// A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
12281
|
-
atom: w(
|
|
12293
|
+
atom: w(it),
|
|
12282
12294
|
/// A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
12283
|
-
unit: w(
|
|
12295
|
+
unit: w(it),
|
|
12284
12296
|
/// A modifier [keyword](#highlight.tags.keyword).
|
|
12285
|
-
modifier: w(
|
|
12297
|
+
modifier: w(it),
|
|
12286
12298
|
/// A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
12287
|
-
operatorKeyword: w(
|
|
12299
|
+
operatorKeyword: w(it),
|
|
12288
12300
|
/// A control-flow related [keyword](#highlight.tags.keyword).
|
|
12289
|
-
controlKeyword: w(
|
|
12301
|
+
controlKeyword: w(it),
|
|
12290
12302
|
/// A [keyword](#highlight.tags.keyword) that defines something.
|
|
12291
|
-
definitionKeyword: w(
|
|
12303
|
+
definitionKeyword: w(it),
|
|
12292
12304
|
/// A [keyword](#highlight.tags.keyword) related to defining or
|
|
12293
12305
|
/// interfacing with modules.
|
|
12294
|
-
moduleKeyword: w(
|
|
12306
|
+
moduleKeyword: w(it),
|
|
12295
12307
|
/// An operator.
|
|
12296
|
-
operator:
|
|
12308
|
+
operator: nt,
|
|
12297
12309
|
/// An [operator](#highlight.tags.operator) that dereferences something.
|
|
12298
|
-
derefOperator: w(
|
|
12310
|
+
derefOperator: w(nt),
|
|
12299
12311
|
/// Arithmetic-related [operator](#highlight.tags.operator).
|
|
12300
|
-
arithmeticOperator: w(
|
|
12312
|
+
arithmeticOperator: w(nt),
|
|
12301
12313
|
/// Logical [operator](#highlight.tags.operator).
|
|
12302
|
-
logicOperator: w(
|
|
12314
|
+
logicOperator: w(nt),
|
|
12303
12315
|
/// Bit [operator](#highlight.tags.operator).
|
|
12304
|
-
bitwiseOperator: w(
|
|
12316
|
+
bitwiseOperator: w(nt),
|
|
12305
12317
|
/// Comparison [operator](#highlight.tags.operator).
|
|
12306
|
-
compareOperator: w(
|
|
12318
|
+
compareOperator: w(nt),
|
|
12307
12319
|
/// [Operator](#highlight.tags.operator) that updates its operand.
|
|
12308
|
-
updateOperator: w(
|
|
12320
|
+
updateOperator: w(nt),
|
|
12309
12321
|
/// [Operator](#highlight.tags.operator) that defines something.
|
|
12310
|
-
definitionOperator: w(
|
|
12322
|
+
definitionOperator: w(nt),
|
|
12311
12323
|
/// Type-related [operator](#highlight.tags.operator).
|
|
12312
|
-
typeOperator: w(
|
|
12324
|
+
typeOperator: w(nt),
|
|
12313
12325
|
/// Control-flow [operator](#highlight.tags.operator).
|
|
12314
|
-
controlOperator: w(
|
|
12326
|
+
controlOperator: w(nt),
|
|
12315
12327
|
/// Program or markup punctuation.
|
|
12316
12328
|
punctuation: fo,
|
|
12317
12329
|
/// [Punctuation](#highlight.tags.punctuation) that separates
|
|
@@ -12332,7 +12344,7 @@ const w = st.define, Pn = w(), bt = w(), Pa = w(bt), Ma = w(bt), wt = w(), Mn =
|
|
|
12332
12344
|
/// [bracket](#highlight.tags.bracket).
|
|
12333
12345
|
brace: w(Ai),
|
|
12334
12346
|
/// Content, for example plain text in XML or markup documents.
|
|
12335
|
-
content:
|
|
12347
|
+
content: st,
|
|
12336
12348
|
/// [Content](#highlight.tags.content) that represents a heading.
|
|
12337
12349
|
heading: Xt,
|
|
12338
12350
|
/// A level 1 [heading](#highlight.tags.heading).
|
|
@@ -12348,23 +12360,23 @@ const w = st.define, Pn = w(), bt = w(), Pa = w(bt), Ma = w(bt), wt = w(), Mn =
|
|
|
12348
12360
|
/// A level 6 [heading](#highlight.tags.heading).
|
|
12349
12361
|
heading6: w(Xt),
|
|
12350
12362
|
/// A prose separator (such as a horizontal rule).
|
|
12351
|
-
contentSeparator: w(
|
|
12363
|
+
contentSeparator: w(st),
|
|
12352
12364
|
/// [Content](#highlight.tags.content) that represents a list.
|
|
12353
|
-
list: w(
|
|
12365
|
+
list: w(st),
|
|
12354
12366
|
/// [Content](#highlight.tags.content) that represents a quote.
|
|
12355
|
-
quote: w(
|
|
12367
|
+
quote: w(st),
|
|
12356
12368
|
/// [Content](#highlight.tags.content) that is emphasized.
|
|
12357
|
-
emphasis: w(
|
|
12369
|
+
emphasis: w(st),
|
|
12358
12370
|
/// [Content](#highlight.tags.content) that is styled strong.
|
|
12359
|
-
strong: w(
|
|
12371
|
+
strong: w(st),
|
|
12360
12372
|
/// [Content](#highlight.tags.content) that is part of a link.
|
|
12361
|
-
link: w(
|
|
12373
|
+
link: w(st),
|
|
12362
12374
|
/// [Content](#highlight.tags.content) that is styled as code or
|
|
12363
12375
|
/// monospace.
|
|
12364
|
-
monospace: w(
|
|
12376
|
+
monospace: w(st),
|
|
12365
12377
|
/// [Content](#highlight.tags.content) that has a strike-through
|
|
12366
12378
|
/// style.
|
|
12367
|
-
strikethrough: w(
|
|
12379
|
+
strikethrough: w(st),
|
|
12368
12380
|
/// Inserted text in a change-tracking format.
|
|
12369
12381
|
inserted: w(),
|
|
12370
12382
|
/// Deleted text.
|
|
@@ -12387,30 +12399,30 @@ const w = st.define, Pn = w(), bt = w(), Pa = w(bt), Ma = w(bt), wt = w(), Mn =
|
|
|
12387
12399
|
/// [Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
12388
12400
|
/// given element is being defined. Expected to be used with the
|
|
12389
12401
|
/// various [name](#highlight.tags.name) tags.
|
|
12390
|
-
definition:
|
|
12402
|
+
definition: rt.defineModifier(),
|
|
12391
12403
|
/// [Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
12392
12404
|
/// something is constant. Mostly expected to be used with
|
|
12393
12405
|
/// [variable names](#highlight.tags.variableName).
|
|
12394
|
-
constant:
|
|
12406
|
+
constant: rt.defineModifier(),
|
|
12395
12407
|
/// [Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
12396
12408
|
/// a [variable](#highlight.tags.variableName) or [property
|
|
12397
12409
|
/// name](#highlight.tags.propertyName) is being called or defined
|
|
12398
12410
|
/// as a function.
|
|
12399
|
-
function:
|
|
12411
|
+
function: rt.defineModifier(),
|
|
12400
12412
|
/// [Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
12401
12413
|
/// [names](#highlight.tags.name) to indicate that they belong to
|
|
12402
12414
|
/// the language's standard environment.
|
|
12403
|
-
standard:
|
|
12415
|
+
standard: rt.defineModifier(),
|
|
12404
12416
|
/// [Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
12405
12417
|
/// [names](#highlight.tags.name) is local to some scope.
|
|
12406
|
-
local:
|
|
12418
|
+
local: rt.defineModifier(),
|
|
12407
12419
|
/// A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
12408
12420
|
/// can be used to tag language-specific alternative variants of
|
|
12409
12421
|
/// some common tag. It is recommended for themes to define special
|
|
12410
12422
|
/// forms of at least the [string](#highlight.tags.string) and
|
|
12411
12423
|
/// [variable name](#highlight.tags.variableName) tags, since those
|
|
12412
12424
|
/// come up a lot.
|
|
12413
|
-
special:
|
|
12425
|
+
special: rt.defineModifier()
|
|
12414
12426
|
};
|
|
12415
12427
|
cu([
|
|
12416
12428
|
{ tag: p.link, class: "tok-link" },
|
|
@@ -13493,7 +13505,7 @@ const B2 = /* @__PURE__ */ pe.define({
|
|
|
13493
13505
|
for (let s of e.state.selection.ranges) {
|
|
13494
13506
|
if (!s.empty)
|
|
13495
13507
|
continue;
|
|
13496
|
-
let r =
|
|
13508
|
+
let r = at(e.state, s.head, -1, i) || s.head > 0 && at(e.state, s.head - 1, 1, i) || i.afterCursor && (at(e.state, s.head, 1, i) || s.head < e.state.doc.length && at(e.state, s.head + 1, -1, i));
|
|
13497
13509
|
r && (t = t.concat(i.renderMatch(r, e.state)));
|
|
13498
13510
|
}
|
|
13499
13511
|
return R.set(t, !0);
|
|
@@ -13517,7 +13529,7 @@ function po(n, e, t) {
|
|
|
13517
13529
|
}
|
|
13518
13530
|
return null;
|
|
13519
13531
|
}
|
|
13520
|
-
function
|
|
13532
|
+
function at(n, e, t, i = {}) {
|
|
13521
13533
|
let s = i.maxScanDistance || wu, r = i.brackets || vu, o = ie(n), l = o.resolveInner(e, t);
|
|
13522
13534
|
for (let a = l; a; a = a.parent) {
|
|
13523
13535
|
let h = po(a.type, t, r);
|
|
@@ -14081,13 +14093,13 @@ function fS(n) {
|
|
|
14081
14093
|
}
|
|
14082
14094
|
const Du = /* @__PURE__ */ pe.define({
|
|
14083
14095
|
create() {
|
|
14084
|
-
return
|
|
14096
|
+
return ht.empty;
|
|
14085
14097
|
},
|
|
14086
14098
|
update(n, e) {
|
|
14087
14099
|
let t = e.state.facet(Ru), i = e.annotation(go);
|
|
14088
14100
|
if (i) {
|
|
14089
14101
|
let a = e.docChanged ? b.single(fS(e.changes)) : void 0, h = Ae.fromTransaction(e, a), c = i.side, u = c == 0 ? n.undone : n.done;
|
|
14090
|
-
return h ? u = ds(u, u.length, t.minDepth, h) : u = Iu(u, e.startState.selection), new
|
|
14102
|
+
return h ? u = ds(u, u.length, t.minDepth, h) : u = Iu(u, e.startState.selection), new ht(c == 0 ? i.rest : u, c == 0 ? u : i.rest);
|
|
14091
14103
|
}
|
|
14092
14104
|
let s = e.annotation(cS);
|
|
14093
14105
|
if ((s == "full" || s == "before") && (n = n.isolate()), e.annotation(de.addToHistory) === !1)
|
|
@@ -14099,7 +14111,7 @@ const Du = /* @__PURE__ */ pe.define({
|
|
|
14099
14111
|
return { done: n.done.map((e) => e.toJSON()), undone: n.undone.map((e) => e.toJSON()) };
|
|
14100
14112
|
},
|
|
14101
14113
|
fromJSON(n) {
|
|
14102
|
-
return new
|
|
14114
|
+
return new ht(n.done.map(Ae.fromJSON), n.undone.map(Ae.fromJSON));
|
|
14103
14115
|
}
|
|
14104
14116
|
});
|
|
14105
14117
|
function dS(n = {}) {
|
|
@@ -14213,24 +14225,24 @@ function SS(n, e, t) {
|
|
|
14213
14225
|
return new Ae(s, L.mapEffects(n.effects, e), o, n.startSelection.map(r), i);
|
|
14214
14226
|
}
|
|
14215
14227
|
const xS = /^(input\.type|delete)($|\.)/;
|
|
14216
|
-
class
|
|
14228
|
+
class ht {
|
|
14217
14229
|
constructor(e, t, i = 0, s = void 0) {
|
|
14218
14230
|
this.done = e, this.undone = t, this.prevTime = i, this.prevUserEvent = s;
|
|
14219
14231
|
}
|
|
14220
14232
|
isolate() {
|
|
14221
|
-
return this.prevTime ? new
|
|
14233
|
+
return this.prevTime ? new ht(this.done, this.undone) : this;
|
|
14222
14234
|
}
|
|
14223
14235
|
addChanges(e, t, i, s, r) {
|
|
14224
14236
|
let o = this.done, l = o[o.length - 1];
|
|
14225
14237
|
return l && l.changes && !l.changes.empty && e.changes && (!i || xS.test(i)) && (!l.selectionsAfter.length && t - this.prevTime < s && gS(l.changes, e.changes) || // For compose (but not compose.start) events, always join with previous event
|
|
14226
|
-
i == "input.type.compose") ? o = ds(o, o.length - 1, r, new Ae(e.changes.compose(l.changes), ju(e.effects, l.effects), l.mapped, l.startSelection, Ze)) : o = ds(o, o.length, r, e), new
|
|
14238
|
+
i == "input.type.compose") ? o = ds(o, o.length - 1, r, new Ae(e.changes.compose(l.changes), ju(e.effects, l.effects), l.mapped, l.startSelection, Ze)) : o = ds(o, o.length, r, e), new ht(o, Ze, t, i);
|
|
14227
14239
|
}
|
|
14228
14240
|
addSelection(e, t, i, s) {
|
|
14229
14241
|
let r = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Ze;
|
|
14230
|
-
return r.length > 0 && t - this.prevTime < s && i == this.prevUserEvent && i && /^select($|\.)/.test(i) && mS(r[r.length - 1], e) ? this : new
|
|
14242
|
+
return r.length > 0 && t - this.prevTime < s && i == this.prevUserEvent && i && /^select($|\.)/.test(i) && mS(r[r.length - 1], e) ? this : new ht(Iu(this.done, e), this.undone, t, i);
|
|
14231
14243
|
}
|
|
14232
14244
|
addMapping(e) {
|
|
14233
|
-
return new
|
|
14245
|
+
return new ht(gr(this.done, e), gr(this.undone, e), this.prevTime, this.prevUserEvent);
|
|
14234
14246
|
}
|
|
14235
14247
|
pop(e, t, i) {
|
|
14236
14248
|
let s = e == 0 ? this.done : this.undone;
|
|
@@ -14259,7 +14271,7 @@ class at {
|
|
|
14259
14271
|
return null;
|
|
14260
14272
|
}
|
|
14261
14273
|
}
|
|
14262
|
-
|
|
14274
|
+
ht.empty = /* @__PURE__ */ new ht(Ze, Ze);
|
|
14263
14275
|
const bS = [
|
|
14264
14276
|
{ key: "Mod-z", run: Lu, preventDefault: !0 },
|
|
14265
14277
|
{ key: "Mod-y", mac: "Mod-Shift-z", run: mo, preventDefault: !0 },
|
|
@@ -14273,7 +14285,7 @@ function ki(n, e) {
|
|
|
14273
14285
|
function Ot(n, e) {
|
|
14274
14286
|
return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
|
|
14275
14287
|
}
|
|
14276
|
-
function
|
|
14288
|
+
function Je({ state: n, dispatch: e }, t) {
|
|
14277
14289
|
let i = ki(n.selection, t);
|
|
14278
14290
|
return i.eq(n.selection) ? !1 : (e(Ot(n, i)), !0);
|
|
14279
14291
|
}
|
|
@@ -14281,14 +14293,14 @@ function Vs(n, e) {
|
|
|
14281
14293
|
return b.cursor(e ? n.to : n.from);
|
|
14282
14294
|
}
|
|
14283
14295
|
function zu(n, e) {
|
|
14284
|
-
return
|
|
14296
|
+
return Je(n, (t) => t.empty ? n.moveByChar(t, e) : Vs(t, e));
|
|
14285
14297
|
}
|
|
14286
14298
|
function $e(n) {
|
|
14287
14299
|
return n.textDirectionAt(n.state.selection.main.head) == te.LTR;
|
|
14288
14300
|
}
|
|
14289
14301
|
const Nu = (n) => zu(n, !$e(n)), Wu = (n) => zu(n, $e(n));
|
|
14290
14302
|
function Xu(n, e) {
|
|
14291
|
-
return
|
|
14303
|
+
return Je(n, (t) => t.empty ? n.moveByGroup(t, e) : Vs(t, e));
|
|
14292
14304
|
}
|
|
14293
14305
|
const wS = (n) => Xu(n, !$e(n)), vS = (n) => Xu(n, $e(n));
|
|
14294
14306
|
function $S(n, e, t) {
|
|
@@ -14306,11 +14318,11 @@ function Zs(n, e, t) {
|
|
|
14306
14318
|
$S(n, h, s) ? i = h : a = t ? h.to : h.from;
|
|
14307
14319
|
}
|
|
14308
14320
|
let r = i.type.prop(s), o, l;
|
|
14309
|
-
return r && (o = t ?
|
|
14321
|
+
return r && (o = t ? at(n, i.from, 1) : at(n, i.to, -1)) && o.matched ? l = t ? o.end.to : o.end.from : l = t ? i.to : i.from, b.cursor(l, t ? -1 : 1);
|
|
14310
14322
|
}
|
|
14311
|
-
const TS = (n) =>
|
|
14323
|
+
const TS = (n) => Je(n, (e) => Zs(n.state, e, !$e(n))), kS = (n) => Je(n, (e) => Zs(n.state, e, $e(n)));
|
|
14312
14324
|
function Eu(n, e) {
|
|
14313
|
-
return
|
|
14325
|
+
return Je(n, (t) => {
|
|
14314
14326
|
if (!t.empty)
|
|
14315
14327
|
return Vs(t, e);
|
|
14316
14328
|
let i = n.moveVertically(t, e);
|
|
@@ -14337,10 +14349,10 @@ function Nt(n, e, t) {
|
|
|
14337
14349
|
}
|
|
14338
14350
|
return s;
|
|
14339
14351
|
}
|
|
14340
|
-
const CS = (n) =>
|
|
14352
|
+
const CS = (n) => Je(n, (e) => Nt(n, e, !0)), PS = (n) => Je(n, (e) => Nt(n, e, !1)), MS = (n) => Je(n, (e) => Nt(n, e, !$e(n))), AS = (n) => Je(n, (e) => Nt(n, e, $e(n))), _S = (n) => Je(n, (e) => b.cursor(n.lineBlockAt(e.head).from, 1)), RS = (n) => Je(n, (e) => b.cursor(n.lineBlockAt(e.head).to, -1));
|
|
14341
14353
|
function DS(n, e, t) {
|
|
14342
14354
|
let i = !1, s = ki(n.selection, (r) => {
|
|
14343
|
-
let o =
|
|
14355
|
+
let o = at(n, r.head, -1) || at(n, r.head, 1) || r.head > 0 && at(n, r.head - 1, 1) || r.head < n.doc.length && at(n, r.head + 1, -1);
|
|
14344
14356
|
if (!o || !o.end)
|
|
14345
14357
|
return r;
|
|
14346
14358
|
i = !0;
|
|
@@ -17599,7 +17611,7 @@ class qn {
|
|
|
17599
17611
|
}
|
|
17600
17612
|
}
|
|
17601
17613
|
qn.prototype.contextual = qn.prototype.fallback = qn.prototype.extend = !1;
|
|
17602
|
-
class
|
|
17614
|
+
class et {
|
|
17603
17615
|
/// Create a tokenizer. The first argument is the function that,
|
|
17604
17616
|
/// given an input stream, scans for the types of tokens it
|
|
17605
17617
|
/// recognizes at the stream's position, and calls
|
|
@@ -18375,7 +18387,7 @@ const Tw = [vs, Wf, If, zf, Nf], kw = new jf({
|
|
|
18375
18387
|
return n ? n.hash : 0;
|
|
18376
18388
|
},
|
|
18377
18389
|
strict: !1
|
|
18378
|
-
}), Cw = new
|
|
18390
|
+
}), Cw = new et((n, e) => {
|
|
18379
18391
|
if (n.next != Ef) {
|
|
18380
18392
|
n.next < 0 && e.context && n.acceptToken(wr);
|
|
18381
18393
|
return;
|
|
@@ -18411,7 +18423,7 @@ const Tw = [vs, Wf, If, zf, Nf], kw = new jf({
|
|
|
18411
18423
|
return n.acceptToken(Wf);
|
|
18412
18424
|
s && ph[s] && ph[s][i] ? n.acceptToken(wr, -1) : n.acceptToken(vs);
|
|
18413
18425
|
}
|
|
18414
|
-
}, { contextual: !0 }), Pw = new
|
|
18426
|
+
}, { contextual: !0 }), Pw = new et((n) => {
|
|
18415
18427
|
for (let e = 0, t = 0; ; t++) {
|
|
18416
18428
|
if (n.next < 0) {
|
|
18417
18429
|
t && n.acceptToken(Oh);
|
|
@@ -18429,7 +18441,7 @@ const Tw = [vs, Wf, If, zf, Nf], kw = new jf({
|
|
|
18429
18441
|
});
|
|
18430
18442
|
function Ol(n, e, t) {
|
|
18431
18443
|
let i = 2 + n.length;
|
|
18432
|
-
return new
|
|
18444
|
+
return new et((s) => {
|
|
18433
18445
|
for (let r = 0, o = 0, l = 0; ; l++) {
|
|
18434
18446
|
if (s.next < 0) {
|
|
18435
18447
|
l && s.acceptToken(e);
|
|
@@ -18546,7 +18558,7 @@ function $s(n) {
|
|
|
18546
18558
|
function qw(n) {
|
|
18547
18559
|
return n >= 48 && n <= 57;
|
|
18548
18560
|
}
|
|
18549
|
-
const Gw = new
|
|
18561
|
+
const Gw = new et((n, e) => {
|
|
18550
18562
|
for (let t = !1, i = 0, s = 0; ; s++) {
|
|
18551
18563
|
let { next: r } = n;
|
|
18552
18564
|
if ($s(r) || r == Gn || r == qf || t && qw(r))
|
|
@@ -18556,12 +18568,12 @@ const Gw = new Je((n, e) => {
|
|
|
18556
18568
|
break;
|
|
18557
18569
|
}
|
|
18558
18570
|
}
|
|
18559
|
-
}), Uw = new
|
|
18571
|
+
}), Uw = new et((n) => {
|
|
18560
18572
|
if (Bf.includes(n.peek(-1))) {
|
|
18561
18573
|
let { next: e } = n;
|
|
18562
18574
|
($s(e) || e == qf || e == Zw || e == Vw || e == Ew || e == Ww || e == Gn) && n.acceptToken(Iw);
|
|
18563
18575
|
}
|
|
18564
|
-
}), Yw = new
|
|
18576
|
+
}), Yw = new et((n) => {
|
|
18565
18577
|
if (!Bf.includes(n.peek(-1))) {
|
|
18566
18578
|
let { next: e } = n;
|
|
18567
18579
|
if (e == Bw && (n.advance(), n.acceptToken(Sh)), $s(e)) {
|
|
@@ -19411,20 +19423,20 @@ const nv = 1, vh = 281, $h = 2, sv = 3, In = 282, rv = 4, ov = 283, Th = 284, lv
|
|
|
19411
19423
|
return e == hv || e == cv || e == lv ? n : e == av;
|
|
19412
19424
|
},
|
|
19413
19425
|
strict: !1
|
|
19414
|
-
}), bv = new
|
|
19426
|
+
}), bv = new et((n, e) => {
|
|
19415
19427
|
let { next: t } = n;
|
|
19416
19428
|
(t == Uf || t == -1 || e.context) && e.canShift(Th) && n.acceptToken(Th);
|
|
19417
|
-
}, { contextual: !0, fallback: !0 }), wv = new
|
|
19429
|
+
}, { contextual: !0, fallback: !0 }), wv = new et((n, e) => {
|
|
19418
19430
|
let { next: t } = n, i;
|
|
19419
19431
|
fv.indexOf(t) > -1 || t == kh && ((i = n.peek(1)) == kh || i == pv) || t != Uf && t != Ov && t != -1 && !e.context && e.canShift(vh) && n.acceptToken(vh);
|
|
19420
|
-
}, { contextual: !0 }), vv = new
|
|
19432
|
+
}, { contextual: !0 }), vv = new et((n, e) => {
|
|
19421
19433
|
let { next: t } = n;
|
|
19422
19434
|
if ((t == gv || t == mv) && (n.advance(), t == n.next)) {
|
|
19423
19435
|
n.advance();
|
|
19424
19436
|
let i = !e.context && e.canShift($h);
|
|
19425
19437
|
n.acceptToken(i ? $h : sv);
|
|
19426
19438
|
}
|
|
19427
|
-
}, { contextual: !0 }), $v = new
|
|
19439
|
+
}, { contextual: !0 }), $v = new et((n) => {
|
|
19428
19440
|
for (let e = !1, t = 0; ; t++) {
|
|
19429
19441
|
let { next: i } = n;
|
|
19430
19442
|
if (i < 0) {
|
|
@@ -19443,7 +19455,7 @@ const nv = 1, vh = 281, $h = 2, sv = 3, In = 282, rv = 4, ov = 283, Th = 284, lv
|
|
|
19443
19455
|
i == Sv && n.advance();
|
|
19444
19456
|
e = i == yv, n.advance();
|
|
19445
19457
|
}
|
|
19446
|
-
}), Tv = new
|
|
19458
|
+
}), Tv = new et((n, e) => {
|
|
19447
19459
|
if (!(n.next != 101 || !e.dialectEnabled(uv))) {
|
|
19448
19460
|
n.advance();
|
|
19449
19461
|
for (let t = 0; t < 6; t++) {
|
|
@@ -20438,7 +20450,7 @@ const Gv = /* @__PURE__ */ k.inputHandler.of((n, e, t, i) => {
|
|
|
20438
20450
|
function Hv() {
|
|
20439
20451
|
return new Is(Fv);
|
|
20440
20452
|
}
|
|
20441
|
-
var FT = /* @__PURE__ */
|
|
20453
|
+
var FT = /* @__PURE__ */ oe({
|
|
20442
20454
|
__name: "Codemirror",
|
|
20443
20455
|
props: {
|
|
20444
20456
|
modelValue: { default: "" },
|
|
@@ -20459,7 +20471,8 @@ var FT = /* @__PURE__ */ re({
|
|
|
20459
20471
|
json: Hv()
|
|
20460
20472
|
}, s = k.theme({
|
|
20461
20473
|
"&": {
|
|
20462
|
-
height: t.height
|
|
20474
|
+
height: t.height,
|
|
20475
|
+
width: "100%"
|
|
20463
20476
|
}
|
|
20464
20477
|
}), r = Fs(), o = Fs(), l = Fs(), a = () => {
|
|
20465
20478
|
const h = typeof t.language == "string" ? i[t.language] : t.language;
|
|
@@ -20507,7 +20520,7 @@ var FT = /* @__PURE__ */ re({
|
|
|
20507
20520
|
}
|
|
20508
20521
|
}), Kv = "data:image/svg+xml;base64,P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sMTEuOTY2LDAsMCwwLDEyLDIuMjE1LDQuNTA2LDQuNTA2LDAsMCwwLDIuOTMtMy4xMzZoMGE0LjUsNC41LDAsMCwwLTEuNjE4LTMuOTc1LDExLjA4NCwxMS4wODQsMCwwLDAtNS43LTIuNzUzQTEyLjk1NywxMi45NTcsMCwwLDAsNTA3LjQ0MiwxMi42NzhaIgogICAgICAgICAgZmlsbD0iIzI5MmEyZSI+PC9wYXRoPgogICAgICAgIDxwb2x5Z29uIHBvaW50cz0iNTA3LjY2OCAxMS42ODIgNTA1LjY1NyAyMy43NDggNTA4LjYyNCAyNC40MjQgNTExLjExMiAxMi4xNzUgNTA3LjY2OCAxMS42ODIiCiAgICAgICAgICAgICAgICAgZmlsbD0iIzI5MmEyZSI+PC9wb2x5Z29uPgogICAgICAgIDxjaXJjbGUgY3g9IjUxOS43MjMiIGN5PSIyMy42OTEiIHI9IjAuOTcyIiBmaWxsPSIjMjkyYTJlIj48L2NpcmNsZT4KICAgICAgICA8Y2lyY2xlIGN4PSI1MjEuNDE3IiBjeT0iMTguNzE1IiByPSIwLjk3MiIgZmlsbD0iIzI5MmEyZSI+PC9jaXJjbGU+CiAgICAgIDwvZz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=";
|
|
20509
20522
|
const Jv = { class: "empty-wrapper" }, e$ = { class: "empty-image h-32 w-32" }, t$ = ["src"], i$ = { class: "empty-title" }, n$ = { class: "empty-message" }, s$ = { class: "empty-actions" };
|
|
20510
|
-
var HT = /* @__PURE__ */
|
|
20523
|
+
var HT = /* @__PURE__ */ oe({
|
|
20511
20524
|
__name: "Empty",
|
|
20512
20525
|
props: {
|
|
20513
20526
|
title: null,
|
|
@@ -20539,7 +20552,7 @@ var HT = /* @__PURE__ */ re({
|
|
|
20539
20552
|
const r$ = /* @__PURE__ */ y("div", { class: "status-dot-body" }, [
|
|
20540
20553
|
/* @__PURE__ */ y("span", { class: "status-dot-inner" })
|
|
20541
20554
|
], -1), o$ = { class: "status-dot-text" };
|
|
20542
|
-
var KT = /* @__PURE__ */
|
|
20555
|
+
var KT = /* @__PURE__ */ oe({
|
|
20543
20556
|
__name: "StatusDot",
|
|
20544
20557
|
props: {
|
|
20545
20558
|
state: { default: "success" },
|
|
@@ -20549,7 +20562,7 @@ var KT = /* @__PURE__ */ re({
|
|
|
20549
20562
|
setup(n) {
|
|
20550
20563
|
const e = n, t = ce(() => [`status-dot-${e.state}`, { "status-dot-animate": e.animate }]);
|
|
20551
20564
|
return (i, s) => (Q(), S("div", {
|
|
20552
|
-
class:
|
|
20565
|
+
class: re(["status-dot-wrapper", _(t)])
|
|
20553
20566
|
}, [
|
|
20554
20567
|
r$,
|
|
20555
20568
|
i.$slots.text || n.text ? I(i.$slots, "text", { key: 0 }, () => [
|
|
@@ -20565,7 +20578,7 @@ const l$ = { class: "entity-selected-indicator" }, a$ = { class: "entity-body" }
|
|
|
20565
20578
|
key: 1,
|
|
20566
20579
|
class: "entity-dropdown"
|
|
20567
20580
|
}, d$ = { class: "w-48 p-2" }, O$ = { key: 0 };
|
|
20568
|
-
var JT = /* @__PURE__ */
|
|
20581
|
+
var JT = /* @__PURE__ */ oe({
|
|
20569
20582
|
__name: "Entity",
|
|
20570
20583
|
props: {
|
|
20571
20584
|
isSelected: { type: Boolean, default: !1 }
|
|
@@ -20578,7 +20591,7 @@ var JT = /* @__PURE__ */ re({
|
|
|
20578
20591
|
return (i, s) => {
|
|
20579
20592
|
const r = Ih("FloatingDropdown");
|
|
20580
20593
|
return Q(), S("div", {
|
|
20581
|
-
class:
|
|
20594
|
+
class: re([_(t), "entity-wrapper group"])
|
|
20582
20595
|
}, [
|
|
20583
20596
|
Gt(y("div", l$, null, 512), [
|
|
20584
20597
|
[Xi, n.isSelected]
|
|
@@ -20611,7 +20624,7 @@ var JT = /* @__PURE__ */ re({
|
|
|
20611
20624
|
]),
|
|
20612
20625
|
default: Xe(() => [
|
|
20613
20626
|
y("div", {
|
|
20614
|
-
class:
|
|
20627
|
+
class: re(["entity-dropdown-trigger group-hover:bg-gray-200/60", { "!bg-gray-300/60": n.isSelected }]),
|
|
20615
20628
|
onClick: s[0] || (s[0] = Un(() => {
|
|
20616
20629
|
}, ["stop"]))
|
|
20617
20630
|
}, [
|
|
@@ -20636,7 +20649,7 @@ const p$ = {
|
|
|
20636
20649
|
key: 1,
|
|
20637
20650
|
class: "entity-field-description-body"
|
|
20638
20651
|
}, y$ = ["title"];
|
|
20639
|
-
var ek = /* @__PURE__ */
|
|
20652
|
+
var ek = /* @__PURE__ */ oe({
|
|
20640
20653
|
__name: "EntityField",
|
|
20641
20654
|
props: {
|
|
20642
20655
|
title: { default: void 0 },
|
|
@@ -20706,7 +20719,7 @@ const Q$ = { class: "toast-body" }, S$ = { class: "toast-icon" }, x$ = { class:
|
|
|
20706
20719
|
key: 0,
|
|
20707
20720
|
class: "toast-count"
|
|
20708
20721
|
};
|
|
20709
|
-
var $$ = /* @__PURE__ */
|
|
20722
|
+
var $$ = /* @__PURE__ */ oe({
|
|
20710
20723
|
__name: "Toast",
|
|
20711
20724
|
props: {
|
|
20712
20725
|
type: { default: "success" },
|
|
@@ -20719,7 +20732,7 @@ var $$ = /* @__PURE__ */ re({
|
|
|
20719
20732
|
},
|
|
20720
20733
|
emits: ["close"],
|
|
20721
20734
|
setup(n, { expose: e, emit: t }) {
|
|
20722
|
-
const i = n, s =
|
|
20735
|
+
const i = n, s = Ke(), r = {
|
|
20723
20736
|
success: {
|
|
20724
20737
|
icon: Co,
|
|
20725
20738
|
color: "text-green-500"
|
|
@@ -20769,7 +20782,7 @@ var $$ = /* @__PURE__ */ re({
|
|
|
20769
20782
|
y("div", Q$, [
|
|
20770
20783
|
y("div", S$, [
|
|
20771
20784
|
(Q(), yt(ks(_(o).icon), {
|
|
20772
|
-
class:
|
|
20785
|
+
class: re([_(o).color])
|
|
20773
20786
|
}, null, 8, ["class"]))
|
|
20774
20787
|
]),
|
|
20775
20788
|
y("div", x$, [
|