@loafacto/ui 0.16.3 → 0.17.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/LfSegmented-CPA9J2e7.js +417 -0
- package/dist/LfSegmented-CPA9J2e7.js.map +1 -0
- package/dist/index.js +274 -665
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +329 -240
- package/dist/map3d/LfMap3d.vue.d.ts +62 -0
- package/dist/map3d/MapScene.d.ts +146 -0
- package/dist/map3d/theme.d.ts +38 -0
- package/dist/map3d/types.d.ts +119 -0
- package/dist/map3d.d.ts +17 -0
- package/dist/map3d.js +1162 -0
- package/dist/map3d.js.map +1 -0
- package/package.json +14 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, Transition, withCtx, renderList, renderSlot, unref, nextTick, onUnmounted, createBlock, Teleport, TransitionGroup, withModifiers, useTemplateRef, onMounted, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent,
|
|
1
|
+
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, Transition, withCtx, renderList, renderSlot, unref, nextTick, onUnmounted, createBlock, Teleport, TransitionGroup, withModifiers, useTemplateRef, onMounted, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useModel, useId, mergeProps, isRef, vModelDynamic, mergeModels, vModelCheckbox, vModelRadio, useSlots } from "vue";
|
|
2
2
|
import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-8AxcQbPB.js";
|
|
3
3
|
import { b, c, d, e, f, h, i, l } from "./applyTheme-8AxcQbPB.js";
|
|
4
|
+
import { _ as _export_sfc, L as LfSpinner, a as LfIcon, u as useSplitAttrs, b as LfField, c as LfIconButton, d as LF_ICONS } from "./LfSegmented-CPA9J2e7.js";
|
|
5
|
+
import { e as e2, f as f2 } from "./LfSegmented-CPA9J2e7.js";
|
|
4
6
|
import { defineStore } from "pinia";
|
|
5
7
|
const LOAFACTO_SERVICES = [
|
|
6
8
|
{
|
|
@@ -113,8 +115,8 @@ function initTheme(options) {
|
|
|
113
115
|
});
|
|
114
116
|
} catch {
|
|
115
117
|
}
|
|
116
|
-
window.addEventListener("storage", (
|
|
117
|
-
if (
|
|
118
|
+
window.addEventListener("storage", (e3) => {
|
|
119
|
+
if (e3.key !== STORAGE_KEY) return;
|
|
118
120
|
const v = readStored();
|
|
119
121
|
explicit.value = v !== null;
|
|
120
122
|
mode.value = v ?? osPrefers();
|
|
@@ -149,33 +151,26 @@ function useTheme() {
|
|
|
149
151
|
}
|
|
150
152
|
};
|
|
151
153
|
}
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
for (const [key, val] of props) {
|
|
155
|
-
target[key] = val;
|
|
156
|
-
}
|
|
157
|
-
return target;
|
|
158
|
-
};
|
|
159
|
-
const _sfc_main$A = {};
|
|
160
|
-
const _hoisted_1$x = {
|
|
154
|
+
const _sfc_main$u = {};
|
|
155
|
+
const _hoisted_1$s = {
|
|
161
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
157
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
163
158
|
"aria-hidden": "true"
|
|
164
159
|
};
|
|
165
160
|
function _sfc_render$1(_ctx, _cache) {
|
|
166
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
161
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$s, [..._cache[0] || (_cache[0] = [
|
|
167
162
|
createStaticVNode('<g transform="translate(-27.12,-91.37) scale(0.7136)"><circle cx="74" cy="27" r="15" fill="#8F6747"></circle><circle cx="104" cy="12" r="10" fill="#8F6747"></circle><path d="M43,48 L95,48 A5,5 0 0 1 100,53 L100,59 A5,5 0 0 1 95,64 L92,64 L92,124 L164,124 L164,148 A8,8 0 0 1 156,156 L54,156 A8,8 0 0 1 46,148 L46,64 L43,64 A5,5 0 0 1 38,59 L38,53 A5,5 0 0 1 43,48 Z" fill="currentColor"></path><path d="M92,94 A18,18 0 0 1 128,94 A18,18 0 0 1 164,94 L164,124 L92,124 Z" fill="#8F6747"></path></g><path transform="translate(122.11,0)" d="M6.80 0.00V-70.00H22.90V-14.80H52.70V0.00ZM82.95 1.20Q75.05 1.20 69.05 -2.15Q63.05 -5.50 59.60 -11.40Q56.15 -17.30 56.15 -25.00Q56.15 -32.70 59.50 -38.60Q62.85 -44.50 68.90 -47.85Q74.95 -51.20 82.65 -51.20Q90.55 -51.20 96.60 -47.85Q102.65 -44.50 106.00 -38.60Q109.35 -32.70 109.35 -25.00Q109.35 -17.30 106.00 -11.40Q102.65 -5.50 96.65 -2.15Q90.65 1.20 82.95 1.20ZM82.95 -13.20Q85.95 -13.20 88.30 -14.70Q90.65 -16.20 92.00 -18.85Q93.35 -21.50 93.35 -25.00Q93.35 -28.50 92.00 -31.15Q90.65 -33.80 88.25 -35.30Q85.85 -36.80 82.75 -36.80Q79.65 -36.80 77.25 -35.30Q74.85 -33.80 73.50 -31.15Q72.15 -28.50 72.15 -25.00Q72.15 -21.50 73.50 -18.85Q74.85 -16.20 77.30 -14.70Q79.75 -13.20 82.95 -13.20ZM133.40 1.20Q124.50 1.20 119.60 -2.80Q114.70 -6.80 114.70 -14.10Q114.70 -22.00 119.80 -25.90Q124.90 -29.80 134.10 -29.80H146.30Q145.80 -33.80 143.95 -36.05Q142.10 -38.30 138.00 -38.30Q135.20 -38.30 133.10 -37.00Q131.00 -35.70 129.50 -33.40L115.90 -37.90Q117.60 -41.60 120.55 -44.60Q123.50 -47.60 127.80 -49.40Q132.10 -51.20 137.80 -51.20Q145.60 -51.20 151.00 -48.30Q156.40 -45.40 159.10 -40.20Q161.80 -35.00 161.80 -27.90L161.60 0.00H147.00L146.80 -5.10Q144.80 -2.00 141.40 -0.40Q138.00 1.20 133.40 1.20ZM136.80 -10.60Q139.70 -10.60 141.90 -11.80Q144.10 -13.00 145.35 -15.05Q146.60 -17.10 146.60 -19.50V-19.80H140.00Q135.00 -19.80 132.80 -18.40Q130.60 -17.00 130.60 -14.50Q130.60 -12.70 132.25 -11.65Q133.90 -10.60 136.80 -10.60ZM176.65 0.00V-37.70H168.75V-50.00H176.65V-54.60Q176.65 -62.80 180.95 -67.50Q185.25 -72.20 194.15 -72.20Q197.45 -72.20 201.05 -71.05Q204.65 -69.90 207.25 -68.40L201.45 -57.40Q200.25 -58.20 199.05 -58.55Q197.85 -58.90 196.85 -58.90Q194.45 -58.90 193.35 -57.25Q192.25 -55.60 192.25 -51.80V-50.00H203.55V-37.70H192.25V0.00ZM227.90 1.20Q219.00 1.20 214.10 -2.80Q209.20 -6.80 209.20 -14.10Q209.20 -22.00 214.30 -25.90Q219.40 -29.80 228.60 -29.80H240.80Q240.30 -33.80 238.45 -36.05Q236.60 -38.30 232.50 -38.30Q229.70 -38.30 227.60 -37.00Q225.50 -35.70 224.00 -33.40L210.40 -37.90Q212.10 -41.60 215.05 -44.60Q218.00 -47.60 222.30 -49.40Q226.60 -51.20 232.30 -51.20Q240.10 -51.20 245.50 -48.30Q250.90 -45.40 253.60 -40.20Q256.30 -35.00 256.30 -27.90L256.10 0.00H241.50L241.30 -5.10Q239.30 -2.00 235.90 -0.40Q232.50 1.20 227.90 1.20ZM231.30 -10.60Q234.20 -10.60 236.40 -11.80Q238.60 -13.00 239.85 -15.05Q241.10 -17.10 241.10 -19.50V-19.80H234.50Q229.50 -19.80 227.30 -18.40Q225.10 -17.00 225.10 -14.50Q225.10 -12.70 226.75 -11.65Q228.40 -10.60 231.30 -10.60ZM291.05 1.20Q283.05 1.20 276.80 -2.15Q270.55 -5.50 267.05 -11.45Q263.55 -17.40 263.55 -25.00Q263.55 -32.70 267.05 -38.60Q270.55 -44.50 276.70 -47.85Q282.85 -51.20 290.85 -51.20Q298.55 -51.20 304.95 -47.30Q311.35 -43.40 314.15 -36.00L299.35 -31.00Q298.25 -33.40 295.70 -34.95Q293.15 -36.50 290.05 -36.50Q286.95 -36.50 284.60 -35.05Q282.25 -33.60 280.90 -31.00Q279.55 -28.40 279.55 -25.00Q279.55 -21.60 280.90 -19.05Q282.25 -16.50 284.70 -15.00Q287.15 -13.50 290.25 -13.50Q293.35 -13.50 295.85 -15.10Q298.35 -16.70 299.55 -19.30L314.35 -14.30Q311.45 -6.80 305.10 -2.80Q298.75 1.20 291.05 1.20ZM342.80 1.20Q333.90 1.20 329.55 -3.05Q325.20 -7.30 325.20 -15.20V-36.90H317.40V-50.00H325.20V-65.60H340.80V-50.00H352.20V-36.90H340.80V-19.10Q340.80 -16.10 341.90 -14.70Q343.00 -13.30 345.30 -13.30Q346.20 -13.30 347.40 -13.75Q348.60 -14.20 349.60 -14.90L355.00 -3.50Q352.60 -1.50 349.25 -0.15Q345.90 1.20 342.80 1.20ZM386.85 1.20Q378.95 1.20 372.95 -2.15Q366.95 -5.50 363.50 -11.40Q360.05 -17.30 360.05 -25.00Q360.05 -32.70 363.40 -38.60Q366.75 -44.50 372.80 -47.85Q378.85 -51.20 386.55 -51.20Q394.45 -51.20 400.50 -47.85Q406.55 -44.50 409.90 -38.60Q413.25 -32.70 413.25 -25.00Q413.25 -17.30 409.90 -11.40Q406.55 -5.50 400.55 -2.15Q394.55 1.20 386.85 1.20ZM386.85 -13.20Q389.85 -13.20 392.20 -14.70Q394.55 -16.20 395.90 -18.85Q397.25 -21.50 397.25 -25.00Q397.25 -28.50 395.90 -31.15Q394.55 -33.80 392.15 -35.30Q389.75 -36.80 386.65 -36.80Q383.55 -36.80 381.15 -35.30Q378.75 -33.80 377.40 -31.15Q376.05 -28.50 376.05 -25.00Q376.05 -21.50 377.40 -18.85Q378.75 -16.20 381.20 -14.70Q383.65 -13.20 386.85 -13.20Z" fill="currentColor"></path>', 2)
|
|
168
163
|
])]);
|
|
169
164
|
}
|
|
170
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
171
|
-
const _sfc_main$
|
|
172
|
-
const _hoisted_1$
|
|
165
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$1]]);
|
|
166
|
+
const _sfc_main$t = {};
|
|
167
|
+
const _hoisted_1$r = {
|
|
173
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
169
|
viewBox: "30 -4 142 168",
|
|
175
170
|
"aria-hidden": "true"
|
|
176
171
|
};
|
|
177
172
|
function _sfc_render(_ctx, _cache) {
|
|
178
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
173
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$r, [..._cache[0] || (_cache[0] = [
|
|
179
174
|
createElementVNode("circle", {
|
|
180
175
|
cx: "74",
|
|
181
176
|
cy: "27",
|
|
@@ -198,12 +193,12 @@ function _sfc_render(_ctx, _cache) {
|
|
|
198
193
|
}, null, -1)
|
|
199
194
|
])]);
|
|
200
195
|
}
|
|
201
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
202
|
-
const _hoisted_1$
|
|
203
|
-
const _hoisted_2$
|
|
204
|
-
const _hoisted_3$
|
|
205
|
-
const _hoisted_4$
|
|
206
|
-
const _hoisted_5$
|
|
196
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render]]);
|
|
197
|
+
const _hoisted_1$q = { class: "lf-topbar" };
|
|
198
|
+
const _hoisted_2$n = { class: "lf-topbar__inner" };
|
|
199
|
+
const _hoisted_3$i = ["aria-label", "title", "aria-expanded"];
|
|
200
|
+
const _hoisted_4$g = ["href", "aria-label"];
|
|
201
|
+
const _hoisted_5$e = ["src"];
|
|
207
202
|
const _hoisted_6$b = { class: "lf-brand__name" };
|
|
208
203
|
const _hoisted_7$a = ["aria-expanded"];
|
|
209
204
|
const _hoisted_8$4 = {
|
|
@@ -264,7 +259,7 @@ const _hoisted_31 = { class: "site-footer-inner" };
|
|
|
264
259
|
const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
|
|
265
260
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
266
261
|
const RAIL_KEY = "lf-rail-hidden";
|
|
267
|
-
const _sfc_main$
|
|
262
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
268
263
|
__name: "AppShell",
|
|
269
264
|
props: {
|
|
270
265
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -330,14 +325,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
330
325
|
switcherOpen.value = false;
|
|
331
326
|
onNavigate(event, svc.path, svc);
|
|
332
327
|
}
|
|
333
|
-
function onDocumentPointerDown(
|
|
328
|
+
function onDocumentPointerDown(e3) {
|
|
334
329
|
var _a, _b;
|
|
335
|
-
const target =
|
|
330
|
+
const target = e3.target;
|
|
336
331
|
if (!((_a = switcherEl.value) == null ? void 0 : _a.contains(target))) switcherOpen.value = false;
|
|
337
332
|
if (!((_b = userEl.value) == null ? void 0 : _b.contains(target))) userOpen.value = false;
|
|
338
333
|
}
|
|
339
|
-
function onDocumentKeydown(
|
|
340
|
-
if (
|
|
334
|
+
function onDocumentKeydown(e3) {
|
|
335
|
+
if (e3.key !== "Escape") return;
|
|
341
336
|
switcherOpen.value = false;
|
|
342
337
|
userOpen.value = false;
|
|
343
338
|
}
|
|
@@ -373,9 +368,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
373
368
|
const railOpen = ref(false);
|
|
374
369
|
const railMedia = typeof window !== "undefined" ? window.matchMedia("(max-width: 860px)") : null;
|
|
375
370
|
const railOverlay = ref((railMedia == null ? void 0 : railMedia.matches) ?? false);
|
|
376
|
-
function onRailMedia(
|
|
377
|
-
railOverlay.value =
|
|
378
|
-
if (!
|
|
371
|
+
function onRailMedia(e3) {
|
|
372
|
+
railOverlay.value = e3.matches;
|
|
373
|
+
if (!e3.matches) railOpen.value = false;
|
|
379
374
|
}
|
|
380
375
|
railMedia == null ? void 0 : railMedia.addEventListener("change", onRailMedia);
|
|
381
376
|
function toggleRail() {
|
|
@@ -403,8 +398,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
403
398
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
404
399
|
})
|
|
405
400
|
}, null, 4)) : createCommentVNode("", true),
|
|
406
|
-
createElementVNode("header", _hoisted_1$
|
|
407
|
-
createElementVNode("div", _hoisted_2$
|
|
401
|
+
createElementVNode("header", _hoisted_1$q, [
|
|
402
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
408
403
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
409
404
|
key: 0,
|
|
410
405
|
type: "button",
|
|
@@ -423,7 +418,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
423
418
|
fill: "currentColor"
|
|
424
419
|
})
|
|
425
420
|
], -1)
|
|
426
|
-
])], 8, _hoisted_3$
|
|
421
|
+
])], 8, _hoisted_3$i)) : createCommentVNode("", true),
|
|
427
422
|
createElementVNode("a", {
|
|
428
423
|
class: "lf-brand",
|
|
429
424
|
href: __props.brandHref,
|
|
@@ -435,13 +430,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
435
430
|
src: __props.logoUrl,
|
|
436
431
|
alt: "",
|
|
437
432
|
class: "lf-brand__logo"
|
|
438
|
-
}, null, 8, _hoisted_5$
|
|
433
|
+
}, null, 8, _hoisted_5$e),
|
|
439
434
|
createElementVNode("span", _hoisted_6$b, toDisplayString(__props.brandName), 1)
|
|
440
435
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
441
436
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
442
437
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
443
438
|
], 64))
|
|
444
|
-
], 8, _hoisted_4$
|
|
439
|
+
], 8, _hoisted_4$g),
|
|
445
440
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
446
441
|
key: 1,
|
|
447
442
|
ref_key: "switcherEl",
|
|
@@ -623,7 +618,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
623
618
|
};
|
|
624
619
|
}
|
|
625
620
|
});
|
|
626
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
621
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ff76069c"]]);
|
|
627
622
|
function generateId() {
|
|
628
623
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
629
624
|
}
|
|
@@ -657,26 +652,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
657
652
|
}
|
|
658
653
|
return { items, add, remove, success, error, info, warning };
|
|
659
654
|
});
|
|
660
|
-
const _hoisted_1$
|
|
655
|
+
const _hoisted_1$p = {
|
|
661
656
|
class: "toast-container",
|
|
662
657
|
role: "region",
|
|
663
658
|
"aria-label": "알림"
|
|
664
659
|
};
|
|
665
|
-
const _hoisted_2$
|
|
666
|
-
const _hoisted_3$
|
|
660
|
+
const _hoisted_2$m = ["onClick"];
|
|
661
|
+
const _hoisted_3$h = {
|
|
667
662
|
class: "toast-icon",
|
|
668
663
|
viewBox: "0 0 24 24",
|
|
669
664
|
"aria-hidden": "true"
|
|
670
665
|
};
|
|
671
|
-
const _hoisted_4$
|
|
672
|
-
const _hoisted_5$
|
|
666
|
+
const _hoisted_4$f = ["d"];
|
|
667
|
+
const _hoisted_5$d = { class: "toast-message" };
|
|
673
668
|
const _hoisted_6$a = ["onClick"];
|
|
674
669
|
const _hoisted_7$9 = {
|
|
675
670
|
viewBox: "0 0 24 24",
|
|
676
671
|
"aria-hidden": "true"
|
|
677
672
|
};
|
|
678
673
|
const _hoisted_8$3 = ["d"];
|
|
679
|
-
const _sfc_main$
|
|
674
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
680
675
|
__name: "AppToast",
|
|
681
676
|
setup(__props) {
|
|
682
677
|
const toastStore = useToastStore();
|
|
@@ -708,7 +703,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
708
703
|
});
|
|
709
704
|
return (_ctx, _cache) => {
|
|
710
705
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
711
|
-
createElementVNode("div", _hoisted_1$
|
|
706
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
712
707
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
713
708
|
default: withCtx(() => [
|
|
714
709
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -718,13 +713,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
718
713
|
role: "alert",
|
|
719
714
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
720
715
|
}, [
|
|
721
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
716
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$h, [
|
|
722
717
|
createElementVNode("path", {
|
|
723
718
|
d: ICON_PATHS[item.type],
|
|
724
719
|
fill: "currentColor"
|
|
725
|
-
}, null, 8, _hoisted_4$
|
|
720
|
+
}, null, 8, _hoisted_4$f)
|
|
726
721
|
])),
|
|
727
|
-
createElementVNode("span", _hoisted_5$
|
|
722
|
+
createElementVNode("span", _hoisted_5$d, toDisplayString(item.message), 1),
|
|
728
723
|
createElementVNode("button", {
|
|
729
724
|
type: "button",
|
|
730
725
|
class: "toast-close",
|
|
@@ -738,7 +733,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
738
733
|
}, null, 8, _hoisted_8$3)
|
|
739
734
|
]))
|
|
740
735
|
], 8, _hoisted_6$a)
|
|
741
|
-
], 10, _hoisted_2$
|
|
736
|
+
], 10, _hoisted_2$m);
|
|
742
737
|
}), 128))
|
|
743
738
|
]),
|
|
744
739
|
_: 1
|
|
@@ -748,7 +743,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
748
743
|
};
|
|
749
744
|
}
|
|
750
745
|
});
|
|
751
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
746
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-58e54e0c"]]);
|
|
752
747
|
const useLoadingStore = defineStore("loading", () => {
|
|
753
748
|
const count = ref(0);
|
|
754
749
|
const loading = computed(() => count.value > 0);
|
|
@@ -768,14 +763,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
768
763
|
}
|
|
769
764
|
return { loading, count, start, stop, withLoading };
|
|
770
765
|
});
|
|
771
|
-
const _hoisted_1$
|
|
766
|
+
const _hoisted_1$o = {
|
|
772
767
|
key: 0,
|
|
773
768
|
class: "loading-overlay",
|
|
774
769
|
role: "status",
|
|
775
770
|
"aria-live": "polite",
|
|
776
771
|
"aria-label": "로딩 중"
|
|
777
772
|
};
|
|
778
|
-
const _sfc_main$
|
|
773
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
779
774
|
__name: "AppLoadingOverlay",
|
|
780
775
|
setup(__props) {
|
|
781
776
|
const loadingStore = useLoadingStore();
|
|
@@ -783,7 +778,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
783
778
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
784
779
|
createVNode(Transition, { name: "fade" }, {
|
|
785
780
|
default: withCtx(() => [
|
|
786
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
781
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$o, [..._cache[0] || (_cache[0] = [
|
|
787
782
|
createElementVNode("div", {
|
|
788
783
|
class: "loading-spinner",
|
|
789
784
|
"aria-hidden": "true"
|
|
@@ -796,7 +791,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
796
791
|
};
|
|
797
792
|
}
|
|
798
793
|
});
|
|
799
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
794
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
800
795
|
const useConfirmStore = defineStore("confirm", () => {
|
|
801
796
|
const open = ref(false);
|
|
802
797
|
const title = ref("확인");
|
|
@@ -844,18 +839,18 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
844
839
|
resolve
|
|
845
840
|
};
|
|
846
841
|
});
|
|
847
|
-
const _hoisted_1$
|
|
842
|
+
const _hoisted_1$n = {
|
|
848
843
|
key: 0,
|
|
849
844
|
class: "app-confirm-backdrop"
|
|
850
845
|
};
|
|
851
|
-
const _hoisted_2$
|
|
846
|
+
const _hoisted_2$l = {
|
|
852
847
|
class: "app-confirm",
|
|
853
848
|
role: "dialog",
|
|
854
849
|
"aria-modal": "true"
|
|
855
850
|
};
|
|
856
|
-
const _hoisted_3$
|
|
857
|
-
const _hoisted_4$
|
|
858
|
-
const _hoisted_5$
|
|
851
|
+
const _hoisted_3$g = { class: "app-confirm__header" };
|
|
852
|
+
const _hoisted_4$e = { class: "app-confirm__title" };
|
|
853
|
+
const _hoisted_5$c = { class: "app-confirm__body" };
|
|
859
854
|
const _hoisted_6$9 = { class: "app-confirm__message" };
|
|
860
855
|
const _hoisted_7$8 = {
|
|
861
856
|
key: 0,
|
|
@@ -864,14 +859,14 @@ const _hoisted_7$8 = {
|
|
|
864
859
|
const _hoisted_8$2 = { class: "app-confirm__require-label" };
|
|
865
860
|
const _hoisted_9$1 = { class: "app-confirm__actions" };
|
|
866
861
|
const _hoisted_10$1 = ["disabled"];
|
|
867
|
-
const _sfc_main$
|
|
862
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
868
863
|
__name: "AppConfirmModal",
|
|
869
864
|
setup(__props) {
|
|
870
865
|
const store = useConfirmStore();
|
|
871
866
|
const requireInput = useTemplateRef("requireInput");
|
|
872
|
-
function onKeydown(
|
|
873
|
-
if (
|
|
874
|
-
|
|
867
|
+
function onKeydown(e3) {
|
|
868
|
+
if (e3.key !== "Escape" || !store.open) return;
|
|
869
|
+
e3.stopPropagation();
|
|
875
870
|
store.resolve(false);
|
|
876
871
|
}
|
|
877
872
|
onMounted(() => document.addEventListener("keydown", onKeydown));
|
|
@@ -889,12 +884,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
889
884
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
890
885
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
891
886
|
default: withCtx(() => [
|
|
892
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
893
|
-
createElementVNode("div", _hoisted_2$
|
|
894
|
-
createElementVNode("div", _hoisted_3$
|
|
895
|
-
createElementVNode("h3", _hoisted_4$
|
|
887
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
888
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
889
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
890
|
+
createElementVNode("h3", _hoisted_4$e, toDisplayString(unref(store).title), 1)
|
|
896
891
|
]),
|
|
897
|
-
createElementVNode("div", _hoisted_5$
|
|
892
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
898
893
|
createElementVNode("p", _hoisted_6$9, toDisplayString(unref(store).message), 1),
|
|
899
894
|
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$8, [
|
|
900
895
|
createElementVNode("span", _hoisted_8$2, [
|
|
@@ -937,126 +932,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
937
932
|
};
|
|
938
933
|
}
|
|
939
934
|
});
|
|
940
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
941
|
-
const
|
|
942
|
-
close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
|
|
943
|
-
search: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19 15.5 14zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z",
|
|
944
|
-
check: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",
|
|
945
|
-
check_circle: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z",
|
|
946
|
-
info: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",
|
|
947
|
-
warning: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",
|
|
948
|
-
error: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",
|
|
949
|
-
expand_more: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",
|
|
950
|
-
expand_less: "M12 8.83 16.59 13.41 18 12l-6-6-6 6 1.41 1.41z",
|
|
951
|
-
chevron_left: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z",
|
|
952
|
-
chevron_right: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",
|
|
953
|
-
arrow_back: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z",
|
|
954
|
-
arrow_upward: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z",
|
|
955
|
-
arrow_downward: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z",
|
|
956
|
-
add: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z",
|
|
957
|
-
remove: "M19 13H5v-2h14z",
|
|
958
|
-
edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",
|
|
959
|
-
delete: "M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",
|
|
960
|
-
refresh: "M17.65 6.35A8 8 0 1 0 19.73 14h-2.08A6 6 0 1 1 12 6a5.94 5.94 0 0 1 4.22 1.78L13 11h7V4l-2.35 2.35z",
|
|
961
|
-
more_vert: "M12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
962
|
-
download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
|
|
963
|
-
upload: "M9 16h6v-6h4l-7-7-7 7h4v6zM5 18h14v2H5v-2z",
|
|
964
|
-
filter_list: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",
|
|
965
|
-
settings: "M19.14 12.94a7.07 7.07 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.3 7.3 0 0 0-1.62-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.67 8.86a.5.5 0 0 0 .12.62l2.03 1.58a7.07 7.07 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.62l1.92 3.32c.12.22.38.3.6.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.04.24.25.42.5.42h3.84c.25 0 .46-.18.5-.42l.36-2.54c.59-.24 1.12-.56 1.62-.94l2.39.96c.22.08.48 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.03-1.58zM12 15.6A3.6 3.6 0 1 1 15.6 12 3.6 3.6 0 0 1 12 15.6z",
|
|
966
|
-
person: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",
|
|
967
|
-
people: "M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z",
|
|
968
|
-
logout: "M17 7l-1.41 1.41L17.17 10H9v2h8.17l-1.58 1.59L17 15l4-4-4-4zM5 5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7v-2H5V5z",
|
|
969
|
-
menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
|
|
970
|
-
visibility: "M12 4.5A11.83 11.83 0 0 0 1 12a11.83 11.83 0 0 0 22 0 11.83 11.83 0 0 0-11-7.5zm0 12.5a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z",
|
|
971
|
-
visibility_off: "M12 6.5a5 5 0 0 1 5 5c0 .51-.08 1-.23 1.45l2.92 2.92A11.8 11.8 0 0 0 23 11.5 11.83 11.83 0 0 0 8.36 4.9l2.16 2.16c.46-.35.99-.56 1.48-.56zM2.71 3.16 1.29 4.58l2.44 2.44A11.75 11.75 0 0 0 1 11.5a11.83 11.83 0 0 0 15.23 6.7l3.19 3.19 1.41-1.41L2.71 3.16zM12 16.5a5 5 0 0 1-5-5c0-.69.15-1.34.4-1.93l1.57 1.57c-.03.12-.05.24-.05.36a3 3 0 0 0 3 3c.12 0 .24-.02.36-.05l1.57 1.57c-.59.25-1.24.4-1.93.4z",
|
|
972
|
-
content_copy: "M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z",
|
|
973
|
-
open_in_new: "M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z",
|
|
974
|
-
help: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 17h-2v-2h2v2zm2.07-7.75-.9.92A3.4 3.4 0 0 0 13 14h-2v-.5a4 4 0 0 1 1.17-2.83l1.24-1.26A1.96 1.96 0 0 0 12 6a2 2 0 0 0-2 2H8a4 4 0 1 1 8 0 3.2 3.2 0 0 1-.93 2.25z",
|
|
975
|
-
lock: "M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6zm3 12a2 2 0 1 1 2-2 2 2 0 0 1-2 2z",
|
|
976
|
-
mail: "M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z",
|
|
977
|
-
calendar_today: "M19 3h-1V1h-2v2H8V1H6v2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 18H5V9h14v12z",
|
|
978
|
-
save: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4zm-5 16a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm3-10H5V5h10v4z"
|
|
979
|
-
};
|
|
980
|
-
const _hoisted_1$r = ["role", "aria-label", "aria-hidden"];
|
|
981
|
-
const _hoisted_2$o = { key: 0 };
|
|
982
|
-
const _hoisted_3$j = ["d"];
|
|
983
|
-
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
984
|
-
__name: "LfIcon",
|
|
985
|
-
props: {
|
|
986
|
-
name: {},
|
|
987
|
-
path: {},
|
|
988
|
-
size: { default: "1em" },
|
|
989
|
-
label: {}
|
|
990
|
-
},
|
|
991
|
-
setup(__props) {
|
|
992
|
-
const props = __props;
|
|
993
|
-
const d2 = computed(() => props.path ?? (props.name ? LF_ICONS[props.name] : void 0));
|
|
994
|
-
const resolvedSize = computed(
|
|
995
|
-
() => typeof props.size === "number" ? `${props.size}px` : props.size
|
|
996
|
-
);
|
|
997
|
-
return (_ctx, _cache) => {
|
|
998
|
-
return openBlock(), createElementBlock("svg", {
|
|
999
|
-
class: "lf-icon",
|
|
1000
|
-
viewBox: "0 0 24 24",
|
|
1001
|
-
style: normalizeStyle({ width: resolvedSize.value, height: resolvedSize.value }),
|
|
1002
|
-
role: __props.label ? "img" : void 0,
|
|
1003
|
-
"aria-label": __props.label || void 0,
|
|
1004
|
-
"aria-hidden": __props.label ? void 0 : "true"
|
|
1005
|
-
}, [
|
|
1006
|
-
__props.label ? (openBlock(), createElementBlock("title", _hoisted_2$o, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
1007
|
-
d2.value ? (openBlock(), createElementBlock("path", {
|
|
1008
|
-
key: 1,
|
|
1009
|
-
d: d2.value,
|
|
1010
|
-
fill: "currentColor"
|
|
1011
|
-
}, null, 8, _hoisted_3$j)) : createCommentVNode("", true)
|
|
1012
|
-
], 12, _hoisted_1$r);
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-b70b3868"]]);
|
|
1017
|
-
const _hoisted_1$q = ["role", "aria-label", "aria-hidden"];
|
|
1018
|
-
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1019
|
-
__name: "LfSpinner",
|
|
1020
|
-
props: {
|
|
1021
|
-
size: { default: "1.25rem" },
|
|
1022
|
-
label: {}
|
|
1023
|
-
},
|
|
1024
|
-
setup(__props) {
|
|
1025
|
-
const props = __props;
|
|
1026
|
-
const resolvedSize = computed(
|
|
1027
|
-
() => typeof props.size === "number" ? `${props.size}px` : props.size
|
|
1028
|
-
);
|
|
1029
|
-
return (_ctx, _cache) => {
|
|
1030
|
-
return openBlock(), createElementBlock("svg", {
|
|
1031
|
-
class: "lf-spinner",
|
|
1032
|
-
viewBox: "0 0 24 24",
|
|
1033
|
-
style: normalizeStyle({ width: resolvedSize.value, height: resolvedSize.value }),
|
|
1034
|
-
role: __props.label ? "status" : void 0,
|
|
1035
|
-
"aria-label": __props.label || void 0,
|
|
1036
|
-
"aria-hidden": __props.label ? void 0 : "true"
|
|
1037
|
-
}, [..._cache[0] || (_cache[0] = [
|
|
1038
|
-
createElementVNode("circle", {
|
|
1039
|
-
class: "lf-spinner__track",
|
|
1040
|
-
cx: "12",
|
|
1041
|
-
cy: "12",
|
|
1042
|
-
r: "9"
|
|
1043
|
-
}, null, -1),
|
|
1044
|
-
createElementVNode("circle", {
|
|
1045
|
-
class: "lf-spinner__head",
|
|
1046
|
-
cx: "12",
|
|
1047
|
-
cy: "12",
|
|
1048
|
-
r: "9"
|
|
1049
|
-
}, null, -1)
|
|
1050
|
-
])], 12, _hoisted_1$q);
|
|
1051
|
-
};
|
|
1052
|
-
}
|
|
1053
|
-
});
|
|
1054
|
-
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-4aedf6b0"]]);
|
|
1055
|
-
const _hoisted_1$p = {
|
|
935
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-561536f9"]]);
|
|
936
|
+
const _hoisted_1$m = {
|
|
1056
937
|
key: 2,
|
|
1057
938
|
class: "lf-btn__label"
|
|
1058
939
|
};
|
|
1059
|
-
const _sfc_main$
|
|
940
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1060
941
|
__name: "LfButton",
|
|
1061
942
|
props: {
|
|
1062
943
|
variant: { default: "ghost" },
|
|
@@ -1093,7 +974,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1093
974
|
name: __props.icon,
|
|
1094
975
|
path: __props.iconPath
|
|
1095
976
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
1096
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
977
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$m, [
|
|
1097
978
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1098
979
|
])) : createCommentVNode("", true),
|
|
1099
980
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -1106,118 +987,19 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1106
987
|
};
|
|
1107
988
|
}
|
|
1108
989
|
});
|
|
1109
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1112
|
-
props: {
|
|
1113
|
-
icon: {},
|
|
1114
|
-
iconPath: {},
|
|
1115
|
-
label: {},
|
|
1116
|
-
size: { default: "md" },
|
|
1117
|
-
accent: { type: Boolean },
|
|
1118
|
-
danger: { type: Boolean },
|
|
1119
|
-
disabled: { type: Boolean },
|
|
1120
|
-
loading: { type: Boolean },
|
|
1121
|
-
href: {},
|
|
1122
|
-
external: { type: Boolean }
|
|
1123
|
-
},
|
|
1124
|
-
setup(__props) {
|
|
1125
|
-
const props = __props;
|
|
1126
|
-
const iconSize = computed(() => props.size === "sm" ? "1.125rem" : "1.375rem");
|
|
1127
|
-
return (_ctx, _cache) => {
|
|
1128
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.href ? "a" : "button"), {
|
|
1129
|
-
class: normalizeClass(["lf-icon-btn", [`lf-icon-btn--${__props.size}`, { "lf-icon-btn--accent": __props.accent, "lf-icon-btn--danger": __props.danger }]]),
|
|
1130
|
-
type: __props.href ? void 0 : "button",
|
|
1131
|
-
href: __props.href,
|
|
1132
|
-
target: __props.href && __props.external ? "_blank" : void 0,
|
|
1133
|
-
rel: __props.href && __props.external ? "noopener noreferrer" : void 0,
|
|
1134
|
-
disabled: __props.href ? void 0 : __props.disabled || __props.loading,
|
|
1135
|
-
"aria-busy": __props.loading ? "true" : void 0,
|
|
1136
|
-
"aria-label": __props.label,
|
|
1137
|
-
title: __props.label
|
|
1138
|
-
}, {
|
|
1139
|
-
default: withCtx(() => [
|
|
1140
|
-
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
1141
|
-
key: 0,
|
|
1142
|
-
size: iconSize.value
|
|
1143
|
-
}, null, 8, ["size"])) : (openBlock(), createBlock(LfIcon, {
|
|
1144
|
-
key: 1,
|
|
1145
|
-
name: __props.icon,
|
|
1146
|
-
path: __props.iconPath,
|
|
1147
|
-
size: iconSize.value
|
|
1148
|
-
}, null, 8, ["name", "path", "size"]))
|
|
1149
|
-
]),
|
|
1150
|
-
_: 1
|
|
1151
|
-
}, 8, ["class", "type", "href", "target", "rel", "disabled", "aria-busy", "aria-label", "title"]);
|
|
1152
|
-
};
|
|
1153
|
-
}
|
|
1154
|
-
});
|
|
1155
|
-
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-6af12755"]]);
|
|
1156
|
-
const _hoisted_1$o = ["for"];
|
|
1157
|
-
const _hoisted_2$n = {
|
|
1158
|
-
key: 0,
|
|
1159
|
-
class: "lf-field__required",
|
|
1160
|
-
"aria-hidden": "true"
|
|
1161
|
-
};
|
|
1162
|
-
const _hoisted_3$i = {
|
|
1163
|
-
key: 1,
|
|
1164
|
-
class: "lf-field__error",
|
|
1165
|
-
role: "alert"
|
|
1166
|
-
};
|
|
1167
|
-
const _hoisted_4$g = {
|
|
1168
|
-
key: 2,
|
|
1169
|
-
class: "lf-field__hint"
|
|
1170
|
-
};
|
|
1171
|
-
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1172
|
-
__name: "LfField",
|
|
1173
|
-
props: {
|
|
1174
|
-
label: {},
|
|
1175
|
-
hint: {},
|
|
1176
|
-
error: {},
|
|
1177
|
-
required: { type: Boolean },
|
|
1178
|
-
htmlFor: {}
|
|
1179
|
-
},
|
|
1180
|
-
setup(__props) {
|
|
1181
|
-
return (_ctx, _cache) => {
|
|
1182
|
-
return openBlock(), createElementBlock("div", {
|
|
1183
|
-
class: normalizeClass(["lf-field", { "lf-field--error": !!__props.error }])
|
|
1184
|
-
}, [
|
|
1185
|
-
__props.label ? (openBlock(), createElementBlock("label", {
|
|
1186
|
-
key: 0,
|
|
1187
|
-
class: "lf-field__label",
|
|
1188
|
-
for: __props.htmlFor
|
|
1189
|
-
}, [
|
|
1190
|
-
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1191
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$n, "*")) : createCommentVNode("", true)
|
|
1192
|
-
], 8, _hoisted_1$o)) : createCommentVNode("", true),
|
|
1193
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1194
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$i, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$g, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1195
|
-
], 2);
|
|
1196
|
-
};
|
|
1197
|
-
}
|
|
1198
|
-
});
|
|
1199
|
-
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-38509e4d"]]);
|
|
1200
|
-
function useSplitAttrs() {
|
|
1201
|
-
const attrs = useAttrs();
|
|
1202
|
-
const rootAttrs = computed(() => ({ class: attrs.class, style: attrs.style }));
|
|
1203
|
-
const controlAttrs = computed(() => {
|
|
1204
|
-
const { class: _class, style: _style, ...rest } = attrs;
|
|
1205
|
-
return rest;
|
|
1206
|
-
});
|
|
1207
|
-
return { rootAttrs, controlAttrs };
|
|
1208
|
-
}
|
|
1209
|
-
const _hoisted_1$n = { class: "lf-control-wrap" };
|
|
1210
|
-
const _hoisted_2$m = {
|
|
990
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-0d2e2b97"]]);
|
|
991
|
+
const _hoisted_1$l = { class: "lf-control-wrap" };
|
|
992
|
+
const _hoisted_2$k = {
|
|
1211
993
|
key: 0,
|
|
1212
994
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
1213
995
|
};
|
|
1214
|
-
const _hoisted_3$
|
|
1215
|
-
const _hoisted_4$
|
|
996
|
+
const _hoisted_3$f = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
997
|
+
const _hoisted_4$d = {
|
|
1216
998
|
key: 1,
|
|
1217
999
|
class: "lf-control-wrap__suffix"
|
|
1218
1000
|
};
|
|
1219
|
-
const _hoisted_5$
|
|
1220
|
-
const _sfc_main$
|
|
1001
|
+
const _hoisted_5$b = ["aria-label"];
|
|
1002
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1221
1003
|
...{ inheritAttrs: false },
|
|
1222
1004
|
__name: "LfTextField",
|
|
1223
1005
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1269,8 +1051,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1269
1051
|
"html-for": unref(inputId)
|
|
1270
1052
|
}), {
|
|
1271
1053
|
default: withCtx(() => [
|
|
1272
|
-
createElementVNode("div", _hoisted_1$
|
|
1273
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1054
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
1055
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$k, [
|
|
1274
1056
|
createVNode(LfIcon, {
|
|
1275
1057
|
name: __props.icon,
|
|
1276
1058
|
path: __props.iconPath,
|
|
@@ -1291,10 +1073,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1291
1073
|
readonly: __props.readonly,
|
|
1292
1074
|
required: __props.required,
|
|
1293
1075
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1294
|
-
}), null, 16, _hoisted_3$
|
|
1076
|
+
}), null, 16, _hoisted_3$f), [
|
|
1295
1077
|
[vModelDynamic, unref(model)]
|
|
1296
1078
|
]),
|
|
1297
|
-
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1079
|
+
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$d, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1298
1080
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1299
1081
|
key: 2,
|
|
1300
1082
|
type: "button",
|
|
@@ -1306,7 +1088,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1306
1088
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1307
1089
|
size: "1.125rem"
|
|
1308
1090
|
}, null, 8, ["name"])
|
|
1309
|
-
], 8, _hoisted_5$
|
|
1091
|
+
], 8, _hoisted_5$b)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1310
1092
|
key: 3,
|
|
1311
1093
|
type: "button",
|
|
1312
1094
|
class: "lf-control-action",
|
|
@@ -1325,13 +1107,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1325
1107
|
};
|
|
1326
1108
|
}
|
|
1327
1109
|
});
|
|
1328
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1329
|
-
const _hoisted_1$
|
|
1330
|
-
const _hoisted_2$
|
|
1110
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-e113043f"]]);
|
|
1111
|
+
const _hoisted_1$k = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1112
|
+
const _hoisted_2$j = {
|
|
1331
1113
|
key: 0,
|
|
1332
1114
|
class: "lf-textarea__counter"
|
|
1333
1115
|
};
|
|
1334
|
-
const _sfc_main$
|
|
1116
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1335
1117
|
...{ inheritAttrs: false },
|
|
1336
1118
|
__name: "LfTextarea",
|
|
1337
1119
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1395,117 +1177,32 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1395
1177
|
maxlength: __props.maxlength,
|
|
1396
1178
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1397
1179
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1398
|
-
}), null, 16, _hoisted_1$
|
|
1180
|
+
}), null, 16, _hoisted_1$k), [
|
|
1399
1181
|
[vModelText, model.value]
|
|
1400
1182
|
]),
|
|
1401
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1402
|
-
]),
|
|
1403
|
-
_: 1
|
|
1404
|
-
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1405
|
-
};
|
|
1406
|
-
}
|
|
1407
|
-
});
|
|
1408
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-81fbed25"]]);
|
|
1409
|
-
const _hoisted_1$l = { class: "lf-control-wrap" };
|
|
1410
|
-
const _hoisted_2$k = ["id", "disabled", "required", "aria-invalid"];
|
|
1411
|
-
const _hoisted_3$g = ["disabled"];
|
|
1412
|
-
const _hoisted_4$e = ["value", "disabled"];
|
|
1413
|
-
const _hoisted_5$b = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
|
|
1414
|
-
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1415
|
-
...{ inheritAttrs: false },
|
|
1416
|
-
__name: "LfSelect",
|
|
1417
|
-
props: /* @__PURE__ */ mergeModels({
|
|
1418
|
-
options: { default: () => [] },
|
|
1419
|
-
label: {},
|
|
1420
|
-
hint: {},
|
|
1421
|
-
error: {},
|
|
1422
|
-
required: { type: Boolean },
|
|
1423
|
-
placeholder: {},
|
|
1424
|
-
clearable: { type: Boolean },
|
|
1425
|
-
disabled: { type: Boolean },
|
|
1426
|
-
size: { default: "md" }
|
|
1427
|
-
}, {
|
|
1428
|
-
"modelValue": {
|
|
1429
|
-
required: true
|
|
1430
|
-
},
|
|
1431
|
-
"modelModifiers": {}
|
|
1432
|
-
}),
|
|
1433
|
-
emits: ["update:modelValue"],
|
|
1434
|
-
setup(__props) {
|
|
1435
|
-
const props = __props;
|
|
1436
|
-
const [model, modifiers] = useModel(__props, "modelValue", {
|
|
1437
|
-
set(value) {
|
|
1438
|
-
if (!modifiers.number || value === "" || typeof value === "number") return value;
|
|
1439
|
-
const n = parseFloat(String(value));
|
|
1440
|
-
return Number.isNaN(n) ? value : n;
|
|
1441
|
-
}
|
|
1442
|
-
});
|
|
1443
|
-
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
1444
|
-
const inputId = useId();
|
|
1445
|
-
const normalized = computed(
|
|
1446
|
-
() => props.options.map((o) => typeof o === "string" || typeof o === "number" ? { value: o, label: String(o) } : o)
|
|
1447
|
-
);
|
|
1448
|
-
return (_ctx, _cache) => {
|
|
1449
|
-
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
1450
|
-
label: __props.label,
|
|
1451
|
-
hint: __props.hint,
|
|
1452
|
-
error: __props.error,
|
|
1453
|
-
required: __props.required,
|
|
1454
|
-
"html-for": unref(inputId)
|
|
1455
|
-
}), {
|
|
1456
|
-
default: withCtx(() => [
|
|
1457
|
-
createElementVNode("div", _hoisted_1$l, [
|
|
1458
|
-
withDirectives(createElementVNode("select", mergeProps({ id: unref(inputId) }, unref(controlAttrs), {
|
|
1459
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
1460
|
-
class: ["lf-control lf-select lf-control--has-right", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }],
|
|
1461
|
-
disabled: __props.disabled,
|
|
1462
|
-
required: __props.required,
|
|
1463
|
-
"aria-invalid": __props.error ? "true" : void 0
|
|
1464
|
-
}), [
|
|
1465
|
-
__props.placeholder ? (openBlock(), createElementBlock("option", {
|
|
1466
|
-
key: 0,
|
|
1467
|
-
value: "",
|
|
1468
|
-
disabled: !__props.clearable
|
|
1469
|
-
}, toDisplayString(__props.placeholder), 9, _hoisted_3$g)) : createCommentVNode("", true),
|
|
1470
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1471
|
-
return openBlock(), createElementBlock("option", {
|
|
1472
|
-
key: String(opt.value),
|
|
1473
|
-
value: opt.value,
|
|
1474
|
-
disabled: opt.disabled
|
|
1475
|
-
}, toDisplayString(opt.label), 9, _hoisted_4$e);
|
|
1476
|
-
}), 128))
|
|
1477
|
-
], 16, _hoisted_2$k), [
|
|
1478
|
-
[vModelSelect, unref(model)]
|
|
1479
|
-
]),
|
|
1480
|
-
createElementVNode("span", _hoisted_5$b, [
|
|
1481
|
-
createVNode(LfIcon, {
|
|
1482
|
-
name: "expand_more",
|
|
1483
|
-
size: "1.125rem"
|
|
1484
|
-
})
|
|
1485
|
-
])
|
|
1486
|
-
])
|
|
1183
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$j, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1487
1184
|
]),
|
|
1488
1185
|
_: 1
|
|
1489
1186
|
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1490
1187
|
};
|
|
1491
1188
|
}
|
|
1492
1189
|
});
|
|
1493
|
-
const
|
|
1494
|
-
const _hoisted_1$
|
|
1495
|
-
const _hoisted_2$
|
|
1190
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-81fbed25"]]);
|
|
1191
|
+
const _hoisted_1$j = ["disabled", "value"];
|
|
1192
|
+
const _hoisted_2$i = {
|
|
1496
1193
|
class: "lf-check__box",
|
|
1497
1194
|
"aria-hidden": "true"
|
|
1498
1195
|
};
|
|
1499
|
-
const _hoisted_3$
|
|
1196
|
+
const _hoisted_3$e = {
|
|
1500
1197
|
key: 0,
|
|
1501
1198
|
class: "lf-check__text"
|
|
1502
1199
|
};
|
|
1503
|
-
const _hoisted_4$
|
|
1200
|
+
const _hoisted_4$c = { class: "lf-check__label" };
|
|
1504
1201
|
const _hoisted_5$a = {
|
|
1505
1202
|
key: 0,
|
|
1506
1203
|
class: "lf-check__desc"
|
|
1507
1204
|
};
|
|
1508
|
-
const _sfc_main$
|
|
1205
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1509
1206
|
...{ inheritAttrs: false },
|
|
1510
1207
|
__name: "LfCheckbox",
|
|
1511
1208
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1530,17 +1227,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1530
1227
|
type: "checkbox",
|
|
1531
1228
|
disabled: __props.disabled,
|
|
1532
1229
|
value: __props.value
|
|
1533
|
-
}), null, 16, _hoisted_1$
|
|
1230
|
+
}), null, 16, _hoisted_1$j), [
|
|
1534
1231
|
[vModelCheckbox, model.value]
|
|
1535
1232
|
]),
|
|
1536
|
-
createElementVNode("span", _hoisted_2$
|
|
1233
|
+
createElementVNode("span", _hoisted_2$i, [
|
|
1537
1234
|
createVNode(LfIcon, {
|
|
1538
1235
|
name: "check",
|
|
1539
1236
|
size: "0.875rem"
|
|
1540
1237
|
})
|
|
1541
1238
|
]),
|
|
1542
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1543
|
-
createElementVNode("span", _hoisted_4$
|
|
1239
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$e, [
|
|
1240
|
+
createElementVNode("span", _hoisted_4$c, [
|
|
1544
1241
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1545
1242
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1546
1243
|
], true)
|
|
@@ -1551,18 +1248,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1551
1248
|
};
|
|
1552
1249
|
}
|
|
1553
1250
|
});
|
|
1554
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1555
|
-
const _hoisted_1$
|
|
1251
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a86332f0"]]);
|
|
1252
|
+
const _hoisted_1$i = {
|
|
1556
1253
|
key: 0,
|
|
1557
1254
|
class: "lf-switch__text"
|
|
1558
1255
|
};
|
|
1559
|
-
const _hoisted_2$
|
|
1560
|
-
const _hoisted_3$
|
|
1256
|
+
const _hoisted_2$h = { class: "lf-switch__label" };
|
|
1257
|
+
const _hoisted_3$d = {
|
|
1561
1258
|
key: 0,
|
|
1562
1259
|
class: "lf-switch__desc"
|
|
1563
1260
|
};
|
|
1564
|
-
const _hoisted_4$
|
|
1565
|
-
const _sfc_main$
|
|
1261
|
+
const _hoisted_4$b = ["disabled"];
|
|
1262
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1566
1263
|
...{ inheritAttrs: false },
|
|
1567
1264
|
__name: "LfSwitch",
|
|
1568
1265
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1581,13 +1278,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1581
1278
|
return openBlock(), createElementBlock("label", {
|
|
1582
1279
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1583
1280
|
}, [
|
|
1584
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1585
|
-
createElementVNode("span", _hoisted_2$
|
|
1281
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$i, [
|
|
1282
|
+
createElementVNode("span", _hoisted_2$h, [
|
|
1586
1283
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1587
1284
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1588
1285
|
], true)
|
|
1589
1286
|
]),
|
|
1590
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1287
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1591
1288
|
])) : createCommentVNode("", true),
|
|
1592
1289
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1593
1290
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1595,7 +1292,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1595
1292
|
type: "checkbox",
|
|
1596
1293
|
role: "switch",
|
|
1597
1294
|
disabled: __props.disabled
|
|
1598
|
-
}), null, 16, _hoisted_4$
|
|
1295
|
+
}), null, 16, _hoisted_4$b), [
|
|
1599
1296
|
[vModelCheckbox, model.value]
|
|
1600
1297
|
]),
|
|
1601
1298
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1608,18 +1305,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1608
1305
|
};
|
|
1609
1306
|
}
|
|
1610
1307
|
});
|
|
1611
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1612
|
-
const _hoisted_1$
|
|
1308
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1309
|
+
const _hoisted_1$h = {
|
|
1613
1310
|
key: 0,
|
|
1614
1311
|
class: "lf-radio-group__legend"
|
|
1615
1312
|
};
|
|
1616
|
-
const _hoisted_2$
|
|
1313
|
+
const _hoisted_2$g = {
|
|
1617
1314
|
key: 0,
|
|
1618
1315
|
class: "lf-radio-group__required",
|
|
1619
1316
|
"aria-hidden": "true"
|
|
1620
1317
|
};
|
|
1621
|
-
const _hoisted_3$
|
|
1622
|
-
const _hoisted_4$
|
|
1318
|
+
const _hoisted_3$c = ["name", "value", "disabled"];
|
|
1319
|
+
const _hoisted_4$a = { class: "lf-radio__text" };
|
|
1623
1320
|
const _hoisted_5$9 = { class: "lf-radio__label" };
|
|
1624
1321
|
const _hoisted_6$8 = {
|
|
1625
1322
|
key: 0,
|
|
@@ -1634,7 +1331,7 @@ const _hoisted_8$1 = {
|
|
|
1634
1331
|
key: 2,
|
|
1635
1332
|
class: "lf-radio-group__hint"
|
|
1636
1333
|
};
|
|
1637
|
-
const _sfc_main$
|
|
1334
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1638
1335
|
__name: "LfRadioGroup",
|
|
1639
1336
|
props: /* @__PURE__ */ mergeModels({
|
|
1640
1337
|
options: { default: () => [] },
|
|
@@ -1660,9 +1357,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1660
1357
|
return openBlock(), createElementBlock("fieldset", {
|
|
1661
1358
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1662
1359
|
}, [
|
|
1663
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1360
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$h, [
|
|
1664
1361
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1665
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1362
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$g, "*")) : createCommentVNode("", true)
|
|
1666
1363
|
])) : createCommentVNode("", true),
|
|
1667
1364
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1668
1365
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1676,14 +1373,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1676
1373
|
name: unref(groupName),
|
|
1677
1374
|
value: opt.value,
|
|
1678
1375
|
disabled: __props.disabled || opt.disabled
|
|
1679
|
-
}, null, 8, _hoisted_3$
|
|
1376
|
+
}, null, 8, _hoisted_3$c), [
|
|
1680
1377
|
[vModelRadio, model.value]
|
|
1681
1378
|
]),
|
|
1682
1379
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1683
1380
|
class: "lf-radio__dot",
|
|
1684
1381
|
"aria-hidden": "true"
|
|
1685
1382
|
}, null, -1)),
|
|
1686
|
-
createElementVNode("span", _hoisted_4$
|
|
1383
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
1687
1384
|
createElementVNode("span", _hoisted_5$9, toDisplayString(opt.label), 1),
|
|
1688
1385
|
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1689
1386
|
])
|
|
@@ -1694,14 +1391,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1694
1391
|
};
|
|
1695
1392
|
}
|
|
1696
1393
|
});
|
|
1697
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1698
|
-
const _hoisted_1$
|
|
1699
|
-
const _hoisted_2$
|
|
1394
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-cffad147"]]);
|
|
1395
|
+
const _hoisted_1$g = ["aria-labelledby", "aria-label"];
|
|
1396
|
+
const _hoisted_2$f = {
|
|
1700
1397
|
key: 0,
|
|
1701
1398
|
class: "lf-modal__header"
|
|
1702
1399
|
};
|
|
1703
|
-
const _hoisted_3$
|
|
1704
|
-
const _hoisted_4$
|
|
1400
|
+
const _hoisted_3$b = { class: "lf-modal__heading" };
|
|
1401
|
+
const _hoisted_4$9 = ["id"];
|
|
1705
1402
|
const _hoisted_5$8 = {
|
|
1706
1403
|
key: 0,
|
|
1707
1404
|
class: "lf-modal__subtitle"
|
|
@@ -1711,7 +1408,7 @@ const _hoisted_7$6 = {
|
|
|
1711
1408
|
key: 1,
|
|
1712
1409
|
class: "lf-modal__footer"
|
|
1713
1410
|
};
|
|
1714
|
-
const _sfc_main$
|
|
1411
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1715
1412
|
__name: "LfModal",
|
|
1716
1413
|
props: /* @__PURE__ */ mergeModels({
|
|
1717
1414
|
title: {},
|
|
@@ -1748,13 +1445,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1748
1445
|
downOnScrim = false;
|
|
1749
1446
|
if (props.closeOnScrim) close("scrim");
|
|
1750
1447
|
}
|
|
1751
|
-
function onKeydown(
|
|
1752
|
-
if (
|
|
1753
|
-
|
|
1448
|
+
function onKeydown(e3) {
|
|
1449
|
+
if (e3.key === "Escape" && props.closeOnEsc) {
|
|
1450
|
+
e3.stopPropagation();
|
|
1754
1451
|
close("esc");
|
|
1755
1452
|
return;
|
|
1756
1453
|
}
|
|
1757
|
-
if (
|
|
1454
|
+
if (e3.key !== "Tab" || !panel.value) return;
|
|
1758
1455
|
const focusables = panel.value.querySelectorAll(
|
|
1759
1456
|
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
1760
1457
|
);
|
|
@@ -1762,11 +1459,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1762
1459
|
const first = focusables[0];
|
|
1763
1460
|
const last = focusables[focusables.length - 1];
|
|
1764
1461
|
const active = document.activeElement;
|
|
1765
|
-
if (
|
|
1766
|
-
|
|
1462
|
+
if (e3.shiftKey && (active === first || active === panel.value)) {
|
|
1463
|
+
e3.preventDefault();
|
|
1767
1464
|
last.focus();
|
|
1768
|
-
} else if (!
|
|
1769
|
-
|
|
1465
|
+
} else if (!e3.shiftKey && active === last) {
|
|
1466
|
+
e3.preventDefault();
|
|
1770
1467
|
first.focus();
|
|
1771
1468
|
}
|
|
1772
1469
|
}
|
|
@@ -1823,13 +1520,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1823
1520
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1824
1521
|
onKeydown
|
|
1825
1522
|
}, [
|
|
1826
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1523
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$f, [
|
|
1827
1524
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1828
|
-
createElementVNode("div", _hoisted_3$
|
|
1525
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
1829
1526
|
createElementVNode("h2", {
|
|
1830
1527
|
id: unref(titleId),
|
|
1831
1528
|
class: "lf-modal__title"
|
|
1832
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1529
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$9),
|
|
1833
1530
|
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1834
1531
|
])
|
|
1835
1532
|
], true),
|
|
@@ -1847,7 +1544,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1847
1544
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$6, [
|
|
1848
1545
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1849
1546
|
])) : createCommentVNode("", true)
|
|
1850
|
-
], 42, _hoisted_1$
|
|
1547
|
+
], 42, _hoisted_1$g)
|
|
1851
1548
|
], 32)) : createCommentVNode("", true)
|
|
1852
1549
|
]),
|
|
1853
1550
|
_: 3
|
|
@@ -1856,17 +1553,17 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1856
1553
|
};
|
|
1857
1554
|
}
|
|
1858
1555
|
});
|
|
1859
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1860
|
-
const _hoisted_1$
|
|
1556
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-da4a649b"]]);
|
|
1557
|
+
const _hoisted_1$f = {
|
|
1861
1558
|
key: 0,
|
|
1862
1559
|
class: "lf-card__head"
|
|
1863
1560
|
};
|
|
1864
|
-
const _hoisted_2$
|
|
1561
|
+
const _hoisted_2$e = {
|
|
1865
1562
|
key: 0,
|
|
1866
1563
|
class: "lf-card__icon"
|
|
1867
1564
|
};
|
|
1868
|
-
const _hoisted_3$
|
|
1869
|
-
const _hoisted_4$
|
|
1565
|
+
const _hoisted_3$a = { class: "lf-card__title" };
|
|
1566
|
+
const _hoisted_4$8 = {
|
|
1870
1567
|
key: 1,
|
|
1871
1568
|
class: "lf-card__count"
|
|
1872
1569
|
};
|
|
@@ -1879,7 +1576,7 @@ const _hoisted_7$5 = {
|
|
|
1879
1576
|
key: 1,
|
|
1880
1577
|
class: "lf-card__foot"
|
|
1881
1578
|
};
|
|
1882
|
-
const _sfc_main$
|
|
1579
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1883
1580
|
__name: "LfCard",
|
|
1884
1581
|
props: {
|
|
1885
1582
|
title: {},
|
|
@@ -1895,9 +1592,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1895
1592
|
return openBlock(), createElementBlock("section", {
|
|
1896
1593
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1897
1594
|
}, [
|
|
1898
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1595
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$f, [
|
|
1899
1596
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1900
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1597
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$e, [
|
|
1901
1598
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1902
1599
|
createVNode(LfIcon, {
|
|
1903
1600
|
name: __props.icon,
|
|
@@ -1906,8 +1603,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1906
1603
|
}, null, 8, ["name", "path"])
|
|
1907
1604
|
], true)
|
|
1908
1605
|
])) : createCommentVNode("", true),
|
|
1909
|
-
createElementVNode("h3", _hoisted_3$
|
|
1910
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1606
|
+
createElementVNode("h3", _hoisted_3$a, toDisplayString(__props.title), 1),
|
|
1607
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$8, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1911
1608
|
], true),
|
|
1912
1609
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1913
1610
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
@@ -1924,11 +1621,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1924
1621
|
};
|
|
1925
1622
|
}
|
|
1926
1623
|
});
|
|
1927
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1928
|
-
const _hoisted_1$
|
|
1929
|
-
const _hoisted_2$
|
|
1930
|
-
const _hoisted_3$
|
|
1931
|
-
const _hoisted_4$
|
|
1624
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-3ffcb11e"]]);
|
|
1625
|
+
const _hoisted_1$e = { class: "lf-page-header" };
|
|
1626
|
+
const _hoisted_2$d = { class: "lf-page-header__title-box" };
|
|
1627
|
+
const _hoisted_3$9 = { class: "lf-page-header__title" };
|
|
1628
|
+
const _hoisted_4$7 = {
|
|
1932
1629
|
key: 0,
|
|
1933
1630
|
class: "lf-page-header__icon"
|
|
1934
1631
|
};
|
|
@@ -1944,7 +1641,7 @@ const _hoisted_7$4 = {
|
|
|
1944
1641
|
key: 1,
|
|
1945
1642
|
class: "lf-page-header__desc"
|
|
1946
1643
|
};
|
|
1947
|
-
const _sfc_main$
|
|
1644
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1948
1645
|
__name: "LfPageHeader",
|
|
1949
1646
|
props: {
|
|
1950
1647
|
title: {},
|
|
@@ -1957,10 +1654,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1957
1654
|
const slots = useSlots();
|
|
1958
1655
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1959
1656
|
return (_ctx, _cache) => {
|
|
1960
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1961
|
-
createElementVNode("div", _hoisted_2$
|
|
1962
|
-
createElementVNode("h1", _hoisted_3$
|
|
1963
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
1658
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
1659
|
+
createElementVNode("h1", _hoisted_3$9, [
|
|
1660
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$7, [
|
|
1964
1661
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1965
1662
|
createVNode(LfIcon, {
|
|
1966
1663
|
name: __props.icon,
|
|
@@ -1989,14 +1686,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1989
1686
|
};
|
|
1990
1687
|
}
|
|
1991
1688
|
});
|
|
1992
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1993
|
-
const _hoisted_1$
|
|
1689
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a7ef2659"]]);
|
|
1690
|
+
const _hoisted_1$d = {
|
|
1994
1691
|
key: 0,
|
|
1995
1692
|
class: "lf-badge__dot",
|
|
1996
1693
|
"aria-hidden": "true"
|
|
1997
1694
|
};
|
|
1998
|
-
const _hoisted_2$
|
|
1999
|
-
const _sfc_main$
|
|
1695
|
+
const _hoisted_2$c = ["aria-label"];
|
|
1696
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2000
1697
|
__name: "LfBadge",
|
|
2001
1698
|
props: {
|
|
2002
1699
|
label: {},
|
|
@@ -2016,7 +1713,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2016
1713
|
return openBlock(), createElementBlock("span", {
|
|
2017
1714
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
2018
1715
|
}, [
|
|
2019
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1716
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$d)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2020
1717
|
key: 1,
|
|
2021
1718
|
name: __props.icon,
|
|
2022
1719
|
path: __props.iconPath,
|
|
@@ -2036,19 +1733,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2036
1733
|
name: "close",
|
|
2037
1734
|
size: "0.75rem"
|
|
2038
1735
|
})
|
|
2039
|
-
], 8, _hoisted_2$
|
|
1736
|
+
], 8, _hoisted_2$c)) : createCommentVNode("", true)
|
|
2040
1737
|
], 2);
|
|
2041
1738
|
};
|
|
2042
1739
|
}
|
|
2043
1740
|
});
|
|
2044
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2045
|
-
const _hoisted_1$
|
|
2046
|
-
const _hoisted_2$
|
|
1741
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b55cda7f"]]);
|
|
1742
|
+
const _hoisted_1$c = ["role"];
|
|
1743
|
+
const _hoisted_2$b = {
|
|
2047
1744
|
class: "lf-alert__badge",
|
|
2048
1745
|
"aria-hidden": "true"
|
|
2049
1746
|
};
|
|
2050
|
-
const _hoisted_3$
|
|
2051
|
-
const _hoisted_4$
|
|
1747
|
+
const _hoisted_3$8 = { class: "lf-alert__body" };
|
|
1748
|
+
const _hoisted_4$6 = {
|
|
2052
1749
|
key: 0,
|
|
2053
1750
|
class: "lf-alert__title"
|
|
2054
1751
|
};
|
|
@@ -2056,7 +1753,7 @@ const _hoisted_5$5 = {
|
|
|
2056
1753
|
key: 2,
|
|
2057
1754
|
class: "lf-alert__actions"
|
|
2058
1755
|
};
|
|
2059
|
-
const _sfc_main$
|
|
1756
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2060
1757
|
__name: "LfAlert",
|
|
2061
1758
|
props: {
|
|
2062
1759
|
tone: { default: "info" },
|
|
@@ -2082,7 +1779,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2082
1779
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
2083
1780
|
role: __props.tone === "error" ? "alert" : "status"
|
|
2084
1781
|
}, [
|
|
2085
|
-
createElementVNode("span", _hoisted_2$
|
|
1782
|
+
createElementVNode("span", _hoisted_2$b, [
|
|
2086
1783
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2087
1784
|
createVNode(LfIcon, {
|
|
2088
1785
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -2091,8 +1788,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2091
1788
|
}, null, 8, ["name", "path", "size"])
|
|
2092
1789
|
], true)
|
|
2093
1790
|
]),
|
|
2094
|
-
createElementVNode("div", _hoisted_3$
|
|
2095
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1791
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
1792
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$6, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
2096
1793
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
2097
1794
|
key: 1,
|
|
2098
1795
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -2113,14 +1810,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2113
1810
|
label: __props.closeLabel,
|
|
2114
1811
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
2115
1812
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
2116
|
-
], 10, _hoisted_1$
|
|
1813
|
+
], 10, _hoisted_1$c);
|
|
2117
1814
|
};
|
|
2118
1815
|
}
|
|
2119
1816
|
});
|
|
2120
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2121
|
-
const _hoisted_1$
|
|
2122
|
-
const _hoisted_2$
|
|
2123
|
-
const _sfc_main$
|
|
1817
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-62839786"]]);
|
|
1818
|
+
const _hoisted_1$b = ["title"];
|
|
1819
|
+
const _hoisted_2$a = ["src", "alt"];
|
|
1820
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2124
1821
|
__name: "LfAvatar",
|
|
2125
1822
|
props: {
|
|
2126
1823
|
name: {},
|
|
@@ -2155,21 +1852,21 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2155
1852
|
src: __props.src,
|
|
2156
1853
|
alt: __props.name ?? "",
|
|
2157
1854
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
2158
|
-
}, null, 40, _hoisted_2$
|
|
1855
|
+
}, null, 40, _hoisted_2$a)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2159
1856
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
2160
1857
|
], 64))
|
|
2161
|
-
], 14, _hoisted_1$
|
|
1858
|
+
], 14, _hoisted_1$b);
|
|
2162
1859
|
};
|
|
2163
1860
|
}
|
|
2164
1861
|
});
|
|
2165
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2166
|
-
const _hoisted_1$
|
|
2167
|
-
const _hoisted_2$
|
|
2168
|
-
const _hoisted_3$
|
|
2169
|
-
const _hoisted_4$
|
|
1862
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-61adf36e"]]);
|
|
1863
|
+
const _hoisted_1$a = { class: "lf-table-wrap" };
|
|
1864
|
+
const _hoisted_2$9 = ["aria-sort"];
|
|
1865
|
+
const _hoisted_3$7 = ["onClick"];
|
|
1866
|
+
const _hoisted_4$5 = { key: 1 };
|
|
2170
1867
|
const _hoisted_5$4 = ["colspan"];
|
|
2171
1868
|
const _hoisted_6$4 = ["tabindex", "onClick", "onKeydown"];
|
|
2172
|
-
const _sfc_main$
|
|
1869
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
2173
1870
|
__name: "LfTable",
|
|
2174
1871
|
props: {
|
|
2175
1872
|
columns: {},
|
|
@@ -2201,7 +1898,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2201
1898
|
return props.sort.order === "asc" ? "ascending" : "descending";
|
|
2202
1899
|
}
|
|
2203
1900
|
return (_ctx, _cache) => {
|
|
2204
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1901
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
2205
1902
|
createElementVNode("table", {
|
|
2206
1903
|
class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
|
|
2207
1904
|
style: normalizeStyle({ minWidth: __props.minWidth })
|
|
@@ -2228,10 +1925,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2228
1925
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
2229
1926
|
size: "0.875rem"
|
|
2230
1927
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
2231
|
-
], 8, _hoisted_3$
|
|
1928
|
+
], 8, _hoisted_3$7)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2232
1929
|
createTextVNode(toDisplayString(col.label), 1)
|
|
2233
1930
|
], 64))
|
|
2234
|
-
], 14, _hoisted_2$
|
|
1931
|
+
], 14, _hoisted_2$9);
|
|
2235
1932
|
}), 128))
|
|
2236
1933
|
])
|
|
2237
1934
|
]),
|
|
@@ -2250,7 +1947,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2250
1947
|
])], 2);
|
|
2251
1948
|
}), 128))
|
|
2252
1949
|
]);
|
|
2253
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$
|
|
1950
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$5, [
|
|
2254
1951
|
createElementVNode("td", {
|
|
2255
1952
|
class: "lf-table__empty",
|
|
2256
1953
|
colspan: __props.columns.length
|
|
@@ -2290,17 +1987,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2290
1987
|
};
|
|
2291
1988
|
}
|
|
2292
1989
|
});
|
|
2293
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2294
|
-
const _hoisted_1$
|
|
2295
|
-
const _hoisted_2$
|
|
1990
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-dc7b5ff5"]]);
|
|
1991
|
+
const _hoisted_1$9 = ["aria-label"];
|
|
1992
|
+
const _hoisted_2$8 = {
|
|
2296
1993
|
key: 0,
|
|
2297
1994
|
class: "lf-pagination__total"
|
|
2298
1995
|
};
|
|
2299
|
-
const _hoisted_3$
|
|
1996
|
+
const _hoisted_3$6 = {
|
|
2300
1997
|
key: 1,
|
|
2301
1998
|
class: "lf-pagination__btns"
|
|
2302
1999
|
};
|
|
2303
|
-
const _hoisted_4$
|
|
2000
|
+
const _hoisted_4$4 = ["disabled"];
|
|
2304
2001
|
const _hoisted_5$3 = {
|
|
2305
2002
|
key: 0,
|
|
2306
2003
|
class: "lf-pagination__gap",
|
|
@@ -2309,7 +2006,7 @@ const _hoisted_5$3 = {
|
|
|
2309
2006
|
const _hoisted_6$3 = ["aria-current", "onClick"];
|
|
2310
2007
|
const _hoisted_7$3 = ["disabled"];
|
|
2311
2008
|
const ELLIPSIS = -1;
|
|
2312
|
-
const _sfc_main$
|
|
2009
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2313
2010
|
__name: "LfPagination",
|
|
2314
2011
|
props: /* @__PURE__ */ mergeModels({
|
|
2315
2012
|
total: { default: 0 },
|
|
@@ -2350,12 +2047,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2350
2047
|
class: "lf-pagination",
|
|
2351
2048
|
"aria-label": __props.ariaLabel
|
|
2352
2049
|
}, [
|
|
2353
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2050
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$8, [
|
|
2354
2051
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2355
2052
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2356
2053
|
], true)
|
|
2357
2054
|
])) : createCommentVNode("", true),
|
|
2358
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2055
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
2359
2056
|
createElementVNode("button", {
|
|
2360
2057
|
type: "button",
|
|
2361
2058
|
class: "lf-pagination__btn",
|
|
@@ -2367,7 +2064,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2367
2064
|
name: "chevron_left",
|
|
2368
2065
|
size: "1rem"
|
|
2369
2066
|
})
|
|
2370
|
-
], 8, _hoisted_4$
|
|
2067
|
+
], 8, _hoisted_4$4),
|
|
2371
2068
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2372
2069
|
return openBlock(), createElementBlock(Fragment, {
|
|
2373
2070
|
key: `${p}-${i2}`
|
|
@@ -2394,25 +2091,25 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2394
2091
|
})
|
|
2395
2092
|
], 8, _hoisted_7$3)
|
|
2396
2093
|
])) : createCommentVNode("", true)
|
|
2397
|
-
], 8, _hoisted_1$
|
|
2094
|
+
], 8, _hoisted_1$9)) : createCommentVNode("", true);
|
|
2398
2095
|
};
|
|
2399
2096
|
}
|
|
2400
2097
|
});
|
|
2401
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2402
|
-
const _hoisted_1$
|
|
2098
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-be847541"]]);
|
|
2099
|
+
const _hoisted_1$8 = {
|
|
2403
2100
|
key: 0,
|
|
2404
2101
|
class: "lf-empty__icon"
|
|
2405
2102
|
};
|
|
2406
|
-
const _hoisted_2$
|
|
2407
|
-
const _hoisted_3$
|
|
2103
|
+
const _hoisted_2$7 = { class: "lf-empty__title" };
|
|
2104
|
+
const _hoisted_3$5 = {
|
|
2408
2105
|
key: 1,
|
|
2409
2106
|
class: "lf-empty__desc"
|
|
2410
2107
|
};
|
|
2411
|
-
const _hoisted_4$
|
|
2108
|
+
const _hoisted_4$3 = {
|
|
2412
2109
|
key: 2,
|
|
2413
2110
|
class: "lf-empty__action"
|
|
2414
2111
|
};
|
|
2415
|
-
const _sfc_main$
|
|
2112
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2416
2113
|
__name: "LfEmptyState",
|
|
2417
2114
|
props: {
|
|
2418
2115
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2427,7 +2124,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2427
2124
|
return openBlock(), createElementBlock("div", {
|
|
2428
2125
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2429
2126
|
}, [
|
|
2430
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2127
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
2431
2128
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2432
2129
|
createVNode(LfIcon, {
|
|
2433
2130
|
name: __props.icon,
|
|
@@ -2436,31 +2133,31 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2436
2133
|
}, null, 8, ["name", "path"])
|
|
2437
2134
|
], true)
|
|
2438
2135
|
])) : createCommentVNode("", true),
|
|
2439
|
-
createElementVNode("p", _hoisted_2$
|
|
2136
|
+
createElementVNode("p", _hoisted_2$7, [
|
|
2440
2137
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2441
2138
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2442
2139
|
], true)
|
|
2443
2140
|
]),
|
|
2444
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2141
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$5, [
|
|
2445
2142
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2446
2143
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2447
2144
|
], true)
|
|
2448
2145
|
])) : createCommentVNode("", true),
|
|
2449
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2146
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
2450
2147
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2451
2148
|
])) : createCommentVNode("", true)
|
|
2452
2149
|
], 2);
|
|
2453
2150
|
};
|
|
2454
2151
|
}
|
|
2455
2152
|
});
|
|
2456
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2457
|
-
const _hoisted_1$
|
|
2153
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2154
|
+
const _hoisted_1$7 = {
|
|
2458
2155
|
key: 0,
|
|
2459
2156
|
class: "lf-skeleton-group",
|
|
2460
2157
|
"aria-busy": true,
|
|
2461
2158
|
"aria-live": "polite"
|
|
2462
2159
|
};
|
|
2463
|
-
const _sfc_main$
|
|
2160
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2464
2161
|
__name: "LfSkeleton",
|
|
2465
2162
|
props: {
|
|
2466
2163
|
variant: { default: "text" },
|
|
@@ -2475,7 +2172,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2475
2172
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2476
2173
|
}
|
|
2477
2174
|
return (_ctx, _cache) => {
|
|
2478
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2175
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
2479
2176
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2480
2177
|
return openBlock(), createElementBlock("span", {
|
|
2481
2178
|
key: n,
|
|
@@ -2492,14 +2189,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2492
2189
|
};
|
|
2493
2190
|
}
|
|
2494
2191
|
});
|
|
2495
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2496
|
-
const _hoisted_1$
|
|
2192
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-a01556ce"]]);
|
|
2193
|
+
const _hoisted_1$6 = {
|
|
2497
2194
|
class: "lf-stat__badge",
|
|
2498
2195
|
"aria-hidden": "true"
|
|
2499
2196
|
};
|
|
2500
|
-
const _hoisted_2$
|
|
2501
|
-
const _hoisted_3$
|
|
2502
|
-
const _hoisted_4$
|
|
2197
|
+
const _hoisted_2$6 = { class: "lf-stat__body" };
|
|
2198
|
+
const _hoisted_3$4 = { class: "lf-stat__label" };
|
|
2199
|
+
const _hoisted_4$2 = { class: "lf-stat__value-row" };
|
|
2503
2200
|
const _hoisted_5$2 = { class: "lf-stat__value" };
|
|
2504
2201
|
const _hoisted_6$2 = {
|
|
2505
2202
|
key: 0,
|
|
@@ -2509,7 +2206,7 @@ const _hoisted_7$2 = {
|
|
|
2509
2206
|
key: 0,
|
|
2510
2207
|
class: "lf-stat__hint"
|
|
2511
2208
|
};
|
|
2512
|
-
const _sfc_main$
|
|
2209
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2513
2210
|
__name: "LfStatCard",
|
|
2514
2211
|
props: {
|
|
2515
2212
|
label: {},
|
|
@@ -2538,7 +2235,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2538
2235
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2539
2236
|
}, {
|
|
2540
2237
|
default: withCtx(() => [
|
|
2541
|
-
createElementVNode("span", _hoisted_1$
|
|
2238
|
+
createElementVNode("span", _hoisted_1$6, [
|
|
2542
2239
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2543
2240
|
createVNode(LfIcon, {
|
|
2544
2241
|
name: __props.icon,
|
|
@@ -2547,9 +2244,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2547
2244
|
}, null, 8, ["name", "path"])
|
|
2548
2245
|
], true)
|
|
2549
2246
|
]),
|
|
2550
|
-
createElementVNode("div", _hoisted_2$
|
|
2551
|
-
createElementVNode("div", _hoisted_3$
|
|
2552
|
-
createElementVNode("div", _hoisted_4$
|
|
2247
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
2248
|
+
createElementVNode("div", _hoisted_3$4, toDisplayString(__props.label), 1),
|
|
2249
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
2553
2250
|
createElementVNode("span", _hoisted_5$2, [
|
|
2554
2251
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2555
2252
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
@@ -2575,10 +2272,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2575
2272
|
};
|
|
2576
2273
|
}
|
|
2577
2274
|
});
|
|
2578
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2579
|
-
const _hoisted_1$
|
|
2580
|
-
const _hoisted_2$
|
|
2581
|
-
const _sfc_main$
|
|
2275
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-ddc6565d"]]);
|
|
2276
|
+
const _hoisted_1$5 = ["aria-describedby"];
|
|
2277
|
+
const _hoisted_2$5 = ["id"];
|
|
2278
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2582
2279
|
__name: "LfTooltip",
|
|
2583
2280
|
props: {
|
|
2584
2281
|
text: {},
|
|
@@ -2595,7 +2292,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2595
2292
|
"aria-describedby": unref(bubbleId)
|
|
2596
2293
|
}, [
|
|
2597
2294
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2598
|
-
], 8, _hoisted_1$
|
|
2295
|
+
], 8, _hoisted_1$5),
|
|
2599
2296
|
createElementVNode("span", {
|
|
2600
2297
|
id: unref(bubbleId),
|
|
2601
2298
|
class: "lf-tooltip__bubble",
|
|
@@ -2604,19 +2301,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2604
2301
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2605
2302
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2606
2303
|
], true)
|
|
2607
|
-
], 8, _hoisted_2$
|
|
2304
|
+
], 8, _hoisted_2$5)
|
|
2608
2305
|
], 2);
|
|
2609
2306
|
};
|
|
2610
2307
|
}
|
|
2611
2308
|
});
|
|
2612
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2613
|
-
const _hoisted_1$
|
|
2614
|
-
const _hoisted_2$
|
|
2615
|
-
const _hoisted_3$
|
|
2309
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-ae3bf5db"]]);
|
|
2310
|
+
const _hoisted_1$4 = ["disabled", "onClick"];
|
|
2311
|
+
const _hoisted_2$4 = { class: "lf-menu__item-text" };
|
|
2312
|
+
const _hoisted_3$3 = {
|
|
2616
2313
|
key: 0,
|
|
2617
2314
|
class: "lf-menu__item-desc"
|
|
2618
2315
|
};
|
|
2619
|
-
const _sfc_main$
|
|
2316
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2620
2317
|
__name: "LfMenu",
|
|
2621
2318
|
props: {
|
|
2622
2319
|
items: { default: () => [] },
|
|
@@ -2644,12 +2341,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2644
2341
|
open.value = false;
|
|
2645
2342
|
emit("select", item);
|
|
2646
2343
|
}
|
|
2647
|
-
function onPointerDown(
|
|
2344
|
+
function onPointerDown(e3) {
|
|
2648
2345
|
var _a;
|
|
2649
|
-
if (!((_a = root.value) == null ? void 0 : _a.contains(
|
|
2346
|
+
if (!((_a = root.value) == null ? void 0 : _a.contains(e3.target))) open.value = false;
|
|
2650
2347
|
}
|
|
2651
|
-
function onKeydown(
|
|
2652
|
-
if (
|
|
2348
|
+
function onKeydown(e3) {
|
|
2349
|
+
if (e3.key === "Escape") open.value = false;
|
|
2653
2350
|
}
|
|
2654
2351
|
watch(open, (isOpen) => {
|
|
2655
2352
|
if (isOpen) {
|
|
@@ -2706,11 +2403,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2706
2403
|
size: "1.125rem",
|
|
2707
2404
|
class: "lf-menu__item-icon"
|
|
2708
2405
|
}), null, 16)) : createCommentVNode("", true),
|
|
2709
|
-
createElementVNode("span", _hoisted_2$
|
|
2406
|
+
createElementVNode("span", _hoisted_2$4, [
|
|
2710
2407
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2711
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2408
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2712
2409
|
])
|
|
2713
|
-
], 8, _hoisted_1$
|
|
2410
|
+
], 8, _hoisted_1$4);
|
|
2714
2411
|
}), 128))
|
|
2715
2412
|
], true)
|
|
2716
2413
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2721,22 +2418,22 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2721
2418
|
};
|
|
2722
2419
|
}
|
|
2723
2420
|
});
|
|
2724
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2725
|
-
const _hoisted_1$
|
|
2421
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0318782c"]]);
|
|
2422
|
+
const _hoisted_1$3 = {
|
|
2726
2423
|
key: 0,
|
|
2727
2424
|
class: "lf-rail__group",
|
|
2728
2425
|
role: "presentation"
|
|
2729
2426
|
};
|
|
2730
|
-
const _hoisted_2$
|
|
2731
|
-
const _hoisted_3$
|
|
2732
|
-
const _hoisted_4$
|
|
2427
|
+
const _hoisted_2$3 = { class: "lf-rail__group-name" };
|
|
2428
|
+
const _hoisted_3$2 = { class: "lf-rail__icon" };
|
|
2429
|
+
const _hoisted_4$1 = {
|
|
2733
2430
|
key: 2,
|
|
2734
2431
|
class: "lf-rail__badge"
|
|
2735
2432
|
};
|
|
2736
2433
|
const _hoisted_5$1 = { class: "lf-rail__name" };
|
|
2737
2434
|
const _hoisted_6$1 = { class: "lf-rail__short" };
|
|
2738
2435
|
const _hoisted_7$1 = { class: "lf-rail__long" };
|
|
2739
|
-
const _sfc_main$
|
|
2436
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2740
2437
|
__name: "LfNavRail",
|
|
2741
2438
|
props: {
|
|
2742
2439
|
items: {},
|
|
@@ -2752,12 +2449,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2752
2449
|
}
|
|
2753
2450
|
const list = useTemplateRef("list");
|
|
2754
2451
|
const thumb = ref(null);
|
|
2452
|
+
const instant = ref(true);
|
|
2453
|
+
let lastEl = null;
|
|
2755
2454
|
function measure() {
|
|
2756
2455
|
var _a;
|
|
2757
|
-
const el = (_a = list.value) == null ? void 0 : _a.querySelector(".lf-rail__link--active, .lf-rail__link.router-link-active");
|
|
2758
|
-
const next = el ? { x: el.offsetLeft, y: el.offsetTop, w: el.offsetWidth, h: el.offsetHeight } : null;
|
|
2456
|
+
const el = ((_a = list.value) == null ? void 0 : _a.querySelector(".lf-rail__link--active, .lf-rail__link.router-link-active")) ?? null;
|
|
2457
|
+
const next = el && el.offsetWidth ? { x: el.offsetLeft, y: el.offsetTop, w: el.offsetWidth, h: el.offsetHeight } : null;
|
|
2759
2458
|
const cur = thumb.value;
|
|
2760
2459
|
if (cur && next && cur.x === next.x && cur.y === next.y && cur.w === next.w && cur.h === next.h) return;
|
|
2460
|
+
instant.value = !lastEl || el === lastEl || !cur;
|
|
2461
|
+
if (next) lastEl = el;
|
|
2761
2462
|
thumb.value = next;
|
|
2762
2463
|
}
|
|
2763
2464
|
let mo = null;
|
|
@@ -2793,17 +2494,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2793
2494
|
}, [
|
|
2794
2495
|
thumb.value ? (openBlock(), createElementBlock("span", {
|
|
2795
2496
|
key: 0,
|
|
2796
|
-
class: "lf-rail__thumb",
|
|
2497
|
+
class: normalizeClass(["lf-rail__thumb", { "lf-rail__thumb--instant": instant.value }]),
|
|
2797
2498
|
style: normalizeStyle({ transform: `translate(${thumb.value.x}px, ${thumb.value.y}px)`, width: `${thumb.value.w}px`, height: `${thumb.value.h}px` }),
|
|
2798
2499
|
"aria-hidden": "true"
|
|
2799
|
-
}, null,
|
|
2500
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
2800
2501
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
2801
2502
|
var _a;
|
|
2802
2503
|
return openBlock(), createElementBlock(Fragment, {
|
|
2803
2504
|
key: item.to
|
|
2804
2505
|
}, [
|
|
2805
|
-
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2806
|
-
createElementVNode("span", _hoisted_2$
|
|
2506
|
+
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2507
|
+
createElementVNode("span", _hoisted_2$3, toDisplayString(item.group), 1)
|
|
2807
2508
|
])) : createCommentVNode("", true),
|
|
2808
2509
|
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2809
2510
|
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
@@ -2812,7 +2513,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2812
2513
|
onClick: ($event) => emit("navigate", item)
|
|
2813
2514
|
}), {
|
|
2814
2515
|
default: withCtx(() => [
|
|
2815
|
-
createElementVNode("span", _hoisted_3$
|
|
2516
|
+
createElementVNode("span", _hoisted_3$2, [
|
|
2816
2517
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2817
2518
|
key: 0,
|
|
2818
2519
|
path: item.iconPath,
|
|
@@ -2822,7 +2523,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2822
2523
|
name: item.icon,
|
|
2823
2524
|
size: "1.15rem"
|
|
2824
2525
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2825
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2526
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2826
2527
|
]),
|
|
2827
2528
|
createElementVNode("span", _hoisted_5$1, [
|
|
2828
2529
|
createElementVNode("span", _hoisted_6$1, toDisplayString(item.short ?? item.label), 1),
|
|
@@ -2837,99 +2538,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2837
2538
|
};
|
|
2838
2539
|
}
|
|
2839
2540
|
});
|
|
2840
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2841
|
-
const _hoisted_1$3 = ["aria-label"];
|
|
2842
|
-
const _hoisted_2$3 = ["aria-checked", "aria-label", "title", "disabled", "onClick"];
|
|
2843
|
-
const _hoisted_3$2 = {
|
|
2844
|
-
key: 1,
|
|
2845
|
-
class: "lf-seg__label"
|
|
2846
|
-
};
|
|
2847
|
-
const _hoisted_4$1 = {
|
|
2848
|
-
key: 2,
|
|
2849
|
-
class: "lf-seg__badge"
|
|
2850
|
-
};
|
|
2851
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2852
|
-
__name: "LfSegmented",
|
|
2853
|
-
props: /* @__PURE__ */ mergeModels({
|
|
2854
|
-
options: { default: () => [] },
|
|
2855
|
-
size: { default: "md" },
|
|
2856
|
-
labelHidden: { type: Boolean },
|
|
2857
|
-
block: { type: Boolean },
|
|
2858
|
-
disabled: { type: Boolean },
|
|
2859
|
-
ariaLabel: {}
|
|
2860
|
-
}, {
|
|
2861
|
-
"modelValue": { required: true },
|
|
2862
|
-
"modelModifiers": {}
|
|
2863
|
-
}),
|
|
2864
|
-
emits: ["update:modelValue"],
|
|
2865
|
-
setup(__props) {
|
|
2866
|
-
const props = __props;
|
|
2867
|
-
const model = useModel(__props, "modelValue");
|
|
2868
|
-
const normalized = computed(
|
|
2869
|
-
() => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
|
|
2870
|
-
);
|
|
2871
|
-
const root = useTemplateRef("root");
|
|
2872
|
-
const thumb = ref(null);
|
|
2873
|
-
function measure() {
|
|
2874
|
-
var _a;
|
|
2875
|
-
const el = (_a = root.value) == null ? void 0 : _a.querySelector(".lf-seg__btn--on");
|
|
2876
|
-
thumb.value = el ? { x: el.offsetLeft, w: el.offsetWidth } : null;
|
|
2877
|
-
}
|
|
2878
|
-
watch(() => [model.value, normalized.value.length], () => {
|
|
2879
|
-
void nextTick(measure);
|
|
2880
|
-
});
|
|
2881
|
-
let ro = null;
|
|
2882
|
-
onMounted(() => {
|
|
2883
|
-
measure();
|
|
2884
|
-
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
2885
|
-
ro = new ResizeObserver(() => measure());
|
|
2886
|
-
ro.observe(root.value);
|
|
2887
|
-
}
|
|
2888
|
-
});
|
|
2889
|
-
onBeforeUnmount(() => ro == null ? void 0 : ro.disconnect());
|
|
2890
|
-
function iconOf(opt) {
|
|
2891
|
-
if (!opt.icon) return {};
|
|
2892
|
-
return opt.icon in LF_ICONS ? { name: opt.icon } : { path: opt.icon };
|
|
2893
|
-
}
|
|
2894
|
-
return (_ctx, _cache) => {
|
|
2895
|
-
return openBlock(), createElementBlock("div", {
|
|
2896
|
-
ref_key: "root",
|
|
2897
|
-
ref: root,
|
|
2898
|
-
class: normalizeClass(["lf-seg", [`lf-seg--${__props.size}`, { "lf-seg--block": __props.block, "lf-seg--thumb": thumb.value }]]),
|
|
2899
|
-
role: "radiogroup",
|
|
2900
|
-
"aria-label": __props.ariaLabel
|
|
2901
|
-
}, [
|
|
2902
|
-
thumb.value ? (openBlock(), createElementBlock("span", {
|
|
2903
|
-
key: 0,
|
|
2904
|
-
class: "lf-seg__thumb",
|
|
2905
|
-
style: normalizeStyle({ transform: `translateX(${thumb.value.x}px)`, width: `${thumb.value.w}px` }),
|
|
2906
|
-
"aria-hidden": "true"
|
|
2907
|
-
}, null, 4)) : createCommentVNode("", true),
|
|
2908
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
2909
|
-
return openBlock(), createElementBlock("button", {
|
|
2910
|
-
key: String(opt.value),
|
|
2911
|
-
type: "button",
|
|
2912
|
-
class: normalizeClass(["lf-seg__btn", { "lf-seg__btn--on": opt.value === model.value }]),
|
|
2913
|
-
role: "radio",
|
|
2914
|
-
"aria-checked": opt.value === model.value ? "true" : "false",
|
|
2915
|
-
"aria-label": __props.labelHidden ? opt.label : void 0,
|
|
2916
|
-
title: __props.labelHidden ? opt.label : void 0,
|
|
2917
|
-
disabled: __props.disabled || opt.disabled,
|
|
2918
|
-
onClick: ($event) => model.value = opt.value
|
|
2919
|
-
}, [
|
|
2920
|
-
opt.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
2921
|
-
key: 0,
|
|
2922
|
-
ref_for: true
|
|
2923
|
-
}, iconOf(opt), { class: "lf-seg__icon" }), null, 16)) : createCommentVNode("", true),
|
|
2924
|
-
!__props.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(opt.label), 1)) : createCommentVNode("", true),
|
|
2925
|
-
opt.badge !== void 0 && opt.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(opt.badge), 1)) : createCommentVNode("", true)
|
|
2926
|
-
], 10, _hoisted_2$3);
|
|
2927
|
-
}), 128))
|
|
2928
|
-
], 10, _hoisted_1$3);
|
|
2929
|
-
};
|
|
2930
|
-
}
|
|
2931
|
-
});
|
|
2932
|
-
const LfSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-474f0f2f"]]);
|
|
2541
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a29be44a"]]);
|
|
2933
2542
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2934
2543
|
__name: "LfTransitionList",
|
|
2935
2544
|
props: {
|
|
@@ -3153,54 +2762,54 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3153
2762
|
text.value = "";
|
|
3154
2763
|
(_a = control.value) == null ? void 0 : _a.focus();
|
|
3155
2764
|
}
|
|
3156
|
-
function onKeydown(
|
|
2765
|
+
function onKeydown(e3) {
|
|
3157
2766
|
var _a, _b;
|
|
3158
|
-
if (
|
|
3159
|
-
|
|
2767
|
+
if (e3.key === "ArrowDown" || e3.key === "ArrowUp") {
|
|
2768
|
+
e3.preventDefault();
|
|
3160
2769
|
if (!open.value) {
|
|
3161
2770
|
show();
|
|
3162
2771
|
return;
|
|
3163
2772
|
}
|
|
3164
2773
|
const n = filtered.value.length;
|
|
3165
2774
|
if (!n) return;
|
|
3166
|
-
active.value = (active.value + (
|
|
2775
|
+
active.value = (active.value + (e3.key === "ArrowDown" ? 1 : -1) + n) % n;
|
|
3167
2776
|
(_b = (_a = list.value) == null ? void 0 : _a.querySelectorAll("[role=option]")[active.value]) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
|
|
3168
2777
|
return;
|
|
3169
2778
|
}
|
|
3170
|
-
if (
|
|
2779
|
+
if (e3.key === "Enter") {
|
|
3171
2780
|
if (!open.value) return;
|
|
3172
2781
|
const opt = filtered.value[active.value];
|
|
3173
2782
|
if (opt) {
|
|
3174
|
-
|
|
2783
|
+
e3.preventDefault();
|
|
3175
2784
|
pick(opt);
|
|
3176
2785
|
} else if (props.editable) hide();
|
|
3177
2786
|
return;
|
|
3178
2787
|
}
|
|
3179
|
-
if ((
|
|
3180
|
-
|
|
2788
|
+
if ((e3.key === " " || e3.key === "Spacebar") && !props.editable && !props.searchable) {
|
|
2789
|
+
e3.preventDefault();
|
|
3181
2790
|
toggle();
|
|
3182
2791
|
}
|
|
3183
2792
|
}
|
|
3184
|
-
function onFocusOut(
|
|
2793
|
+
function onFocusOut(e3) {
|
|
3185
2794
|
var _a, _b;
|
|
3186
|
-
const next =
|
|
2795
|
+
const next = e3.relatedTarget;
|
|
3187
2796
|
if (next && (((_a = root.value) == null ? void 0 : _a.contains(next)) || ((_b = list.value) == null ? void 0 : _b.contains(next)))) return;
|
|
3188
2797
|
hide();
|
|
3189
2798
|
}
|
|
3190
|
-
function onPointerDown(
|
|
2799
|
+
function onPointerDown(e3) {
|
|
3191
2800
|
var _a, _b;
|
|
3192
|
-
const t =
|
|
2801
|
+
const t = e3.target;
|
|
3193
2802
|
if (!((_a = root.value) == null ? void 0 : _a.contains(t)) && !((_b = list.value) == null ? void 0 : _b.contains(t))) hide();
|
|
3194
2803
|
}
|
|
3195
|
-
function onDocKeydown(
|
|
2804
|
+
function onDocKeydown(e3) {
|
|
3196
2805
|
var _a;
|
|
3197
|
-
if (
|
|
3198
|
-
|
|
2806
|
+
if (e3.key !== "Escape") return;
|
|
2807
|
+
e3.stopPropagation();
|
|
3199
2808
|
hide();
|
|
3200
2809
|
(_a = control.value) == null ? void 0 : _a.focus();
|
|
3201
2810
|
}
|
|
3202
|
-
function onScroll(
|
|
3203
|
-
if (list.value && list.value.contains(
|
|
2811
|
+
function onScroll(e3) {
|
|
2812
|
+
if (list.value && list.value.contains(e3.target)) return;
|
|
3204
2813
|
hide();
|
|
3205
2814
|
}
|
|
3206
2815
|
watch(open, (isOpen) => {
|
|
@@ -3641,8 +3250,8 @@ export {
|
|
|
3641
3250
|
LfPageHeader,
|
|
3642
3251
|
LfPagination,
|
|
3643
3252
|
LfRadioGroup,
|
|
3644
|
-
LfSegmented,
|
|
3645
|
-
LfSelect,
|
|
3253
|
+
e2 as LfSegmented,
|
|
3254
|
+
f2 as LfSelect,
|
|
3646
3255
|
LfSkeleton,
|
|
3647
3256
|
LfSpinner,
|
|
3648
3257
|
LfStatCard,
|