@loafacto/ui 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppShell.vue.d.ts +7 -3
- package/dist/components/LfNavRail.vue.d.ts +18 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +434 -299
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +257 -53
- package/dist/stores/toast.d.ts +1 -1
- package/dist/types.d.ts +24 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList,
|
|
1
|
+
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, useTemplateRef, onMounted, nextTick, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useModel, useId, mergeProps, vModelDynamic, mergeModels, vModelSelect, 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
4
|
import { defineStore } from "pinia";
|
|
@@ -156,26 +156,26 @@ const _export_sfc = (sfc, props) => {
|
|
|
156
156
|
}
|
|
157
157
|
return target;
|
|
158
158
|
};
|
|
159
|
-
const _sfc_main$
|
|
160
|
-
const _hoisted_1$
|
|
159
|
+
const _sfc_main$v = {};
|
|
160
|
+
const _hoisted_1$u = {
|
|
161
161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
162
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
163
163
|
"aria-hidden": "true"
|
|
164
164
|
};
|
|
165
165
|
function _sfc_render$1(_ctx, _cache) {
|
|
166
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
166
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, [..._cache[0] || (_cache[0] = [
|
|
167
167
|
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
168
|
])]);
|
|
169
169
|
}
|
|
170
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
171
|
-
const _sfc_main$
|
|
172
|
-
const _hoisted_1$
|
|
170
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$1]]);
|
|
171
|
+
const _sfc_main$u = {};
|
|
172
|
+
const _hoisted_1$t = {
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
viewBox: "30 -4 142 168",
|
|
175
175
|
"aria-hidden": "true"
|
|
176
176
|
};
|
|
177
177
|
function _sfc_render(_ctx, _cache) {
|
|
178
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
178
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, [..._cache[0] || (_cache[0] = [
|
|
179
179
|
createElementVNode("circle", {
|
|
180
180
|
cx: "74",
|
|
181
181
|
cy: "27",
|
|
@@ -198,13 +198,13 @@ function _sfc_render(_ctx, _cache) {
|
|
|
198
198
|
}, null, -1)
|
|
199
199
|
])]);
|
|
200
200
|
}
|
|
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$
|
|
207
|
-
const _hoisted_6$
|
|
201
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render]]);
|
|
202
|
+
const _hoisted_1$s = { class: "lf-topbar" };
|
|
203
|
+
const _hoisted_2$o = { class: "lf-topbar__inner" };
|
|
204
|
+
const _hoisted_3$j = ["aria-label", "title", "aria-expanded"];
|
|
205
|
+
const _hoisted_4$h = ["href", "aria-label"];
|
|
206
|
+
const _hoisted_5$d = ["src"];
|
|
207
|
+
const _hoisted_6$a = { class: "lf-brand__name" };
|
|
208
208
|
const _hoisted_7$8 = ["aria-expanded"];
|
|
209
209
|
const _hoisted_8$3 = {
|
|
210
210
|
key: 0,
|
|
@@ -242,7 +242,7 @@ const _hoisted_19 = {
|
|
|
242
242
|
const _hoisted_20 = ["href"];
|
|
243
243
|
const _hoisted_21 = ["href"];
|
|
244
244
|
const _hoisted_22 = {
|
|
245
|
-
key:
|
|
245
|
+
key: 4,
|
|
246
246
|
class: "lf-shortcuts",
|
|
247
247
|
"aria-label": "바로가기"
|
|
248
248
|
};
|
|
@@ -258,12 +258,17 @@ const _hoisted_27 = {
|
|
|
258
258
|
"aria-hidden": "true"
|
|
259
259
|
};
|
|
260
260
|
const _hoisted_28 = ["d"];
|
|
261
|
-
const _hoisted_29 = { class: "lf-content" };
|
|
262
|
-
const _hoisted_30 = {
|
|
263
|
-
|
|
261
|
+
const _hoisted_29 = { class: "lf-content lf-content--rail" };
|
|
262
|
+
const _hoisted_30 = {
|
|
263
|
+
key: 2,
|
|
264
|
+
class: "lf-content"
|
|
265
|
+
};
|
|
266
|
+
const _hoisted_31 = { class: "site-footer" };
|
|
267
|
+
const _hoisted_32 = { class: "site-footer-inner" };
|
|
264
268
|
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
269
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
266
|
-
const
|
|
270
|
+
const RAIL_KEY = "lf-rail-hidden";
|
|
271
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
267
272
|
__name: "AppShell",
|
|
268
273
|
props: {
|
|
269
274
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -336,10 +341,42 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
336
341
|
onBeforeUnmount(() => {
|
|
337
342
|
document.removeEventListener("pointerdown", onDocumentPointerDown);
|
|
338
343
|
document.removeEventListener("keydown", onDocumentKeydown);
|
|
344
|
+
railMedia == null ? void 0 : railMedia.removeEventListener("change", onRailMedia);
|
|
339
345
|
});
|
|
346
|
+
const railHidden = ref(
|
|
347
|
+
(() => {
|
|
348
|
+
try {
|
|
349
|
+
return localStorage.getItem(RAIL_KEY) === "1";
|
|
350
|
+
} catch {
|
|
351
|
+
return false;
|
|
352
|
+
}
|
|
353
|
+
})()
|
|
354
|
+
);
|
|
355
|
+
const railOpen = ref(false);
|
|
356
|
+
const railMedia = typeof window !== "undefined" ? window.matchMedia("(max-width: 860px)") : null;
|
|
357
|
+
const railOverlay = ref((railMedia == null ? void 0 : railMedia.matches) ?? false);
|
|
358
|
+
function onRailMedia(e2) {
|
|
359
|
+
railOverlay.value = e2.matches;
|
|
360
|
+
if (!e2.matches) railOpen.value = false;
|
|
361
|
+
}
|
|
362
|
+
railMedia == null ? void 0 : railMedia.addEventListener("change", onRailMedia);
|
|
363
|
+
function toggleRail() {
|
|
364
|
+
if (railOverlay.value) {
|
|
365
|
+
railOpen.value = !railOpen.value;
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
railHidden.value = !railHidden.value;
|
|
369
|
+
try {
|
|
370
|
+
localStorage.setItem(RAIL_KEY, railHidden.value ? "1" : "0");
|
|
371
|
+
} catch {
|
|
372
|
+
}
|
|
373
|
+
window.setTimeout(() => window.dispatchEvent(new Event("resize")), 180);
|
|
374
|
+
}
|
|
340
375
|
return (_ctx, _cache) => {
|
|
341
376
|
var _a;
|
|
342
|
-
return openBlock(), createElementBlock("div",
|
|
377
|
+
return openBlock(), createElementBlock("div", {
|
|
378
|
+
class: normalizeClass(["lf-shell", { "lf-shell--rail": !!_ctx.$slots.rail }])
|
|
379
|
+
}, [
|
|
343
380
|
__props.backgroundColor || __props.backgroundImage ? (openBlock(), createElementBlock("div", {
|
|
344
381
|
key: 0,
|
|
345
382
|
class: "app-background-layer",
|
|
@@ -348,8 +385,27 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
348
385
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
349
386
|
})
|
|
350
387
|
}, null, 4)) : createCommentVNode("", true),
|
|
351
|
-
createElementVNode("header",
|
|
352
|
-
createElementVNode("div",
|
|
388
|
+
createElementVNode("header", _hoisted_1$s, [
|
|
389
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
390
|
+
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
391
|
+
key: 0,
|
|
392
|
+
type: "button",
|
|
393
|
+
class: "lf-rail-toggle",
|
|
394
|
+
"aria-label": railHidden.value ? "메뉴 열기" : "메뉴 닫기",
|
|
395
|
+
title: railHidden.value ? "메뉴 열기" : "메뉴 닫기",
|
|
396
|
+
"aria-expanded": !railHidden.value,
|
|
397
|
+
onClick: toggleRail
|
|
398
|
+
}, [..._cache[6] || (_cache[6] = [
|
|
399
|
+
createElementVNode("svg", {
|
|
400
|
+
viewBox: "0 0 24 24",
|
|
401
|
+
"aria-hidden": "true"
|
|
402
|
+
}, [
|
|
403
|
+
createElementVNode("path", {
|
|
404
|
+
d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
|
|
405
|
+
fill: "currentColor"
|
|
406
|
+
})
|
|
407
|
+
], -1)
|
|
408
|
+
])], 8, _hoisted_3$j)) : createCommentVNode("", true),
|
|
353
409
|
createElementVNode("a", {
|
|
354
410
|
class: "lf-brand",
|
|
355
411
|
href: __props.brandHref,
|
|
@@ -361,15 +417,15 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
361
417
|
src: __props.logoUrl,
|
|
362
418
|
alt: "",
|
|
363
419
|
class: "lf-brand__logo"
|
|
364
|
-
}, null, 8, _hoisted_5$
|
|
365
|
-
createElementVNode("span", _hoisted_6$
|
|
420
|
+
}, null, 8, _hoisted_5$d),
|
|
421
|
+
createElementVNode("span", _hoisted_6$a, toDisplayString(__props.brandName), 1)
|
|
366
422
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
367
423
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
368
424
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
369
425
|
], 64))
|
|
370
|
-
], 8, _hoisted_4$
|
|
426
|
+
], 8, _hoisted_4$h),
|
|
371
427
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
372
|
-
key:
|
|
428
|
+
key: 1,
|
|
373
429
|
ref_key: "switcherEl",
|
|
374
430
|
ref: switcherEl,
|
|
375
431
|
class: "lf-switcher"
|
|
@@ -382,7 +438,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
382
438
|
onClick: _cache[1] || (_cache[1] = ($event) => switcherOpen.value = !switcherOpen.value)
|
|
383
439
|
}, [
|
|
384
440
|
createElementVNode("span", null, toDisplayString(((_a = currentService.value) == null ? void 0 : _a.name) ?? "서비스"), 1),
|
|
385
|
-
_cache[
|
|
441
|
+
_cache[7] || (_cache[7] = createElementVNode("svg", {
|
|
386
442
|
class: "lf-switcher__caret",
|
|
387
443
|
viewBox: "0 0 24 24",
|
|
388
444
|
"aria-hidden": "true"
|
|
@@ -417,9 +473,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
417
473
|
}), 128))
|
|
418
474
|
])) : createCommentVNode("", true)
|
|
419
475
|
], 512)) : createCommentVNode("", true),
|
|
420
|
-
_cache[
|
|
476
|
+
_cache[9] || (_cache[9] = createElementVNode("div", { class: "lf-topbar__spacer" }, null, -1)),
|
|
421
477
|
__props.user ? (openBlock(), createElementBlock("div", {
|
|
422
|
-
key:
|
|
478
|
+
key: 2,
|
|
423
479
|
ref_key: "userEl",
|
|
424
480
|
ref: userEl,
|
|
425
481
|
class: "lf-user"
|
|
@@ -438,7 +494,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
438
494
|
class: "lf-user__avatar"
|
|
439
495
|
}, null, 8, _hoisted_16)) : (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(userInitial.value), 1)),
|
|
440
496
|
createElementVNode("span", _hoisted_18, toDisplayString(__props.user.displayName), 1),
|
|
441
|
-
_cache[
|
|
497
|
+
_cache[8] || (_cache[8] = createElementVNode("svg", {
|
|
442
498
|
class: "lf-user__caret",
|
|
443
499
|
viewBox: "0 0 24 24",
|
|
444
500
|
"aria-hidden": "true"
|
|
@@ -467,7 +523,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
467
523
|
href: __props.logoutHref
|
|
468
524
|
}, "로그아웃", 8, _hoisted_21)) : createCommentVNode("", true)
|
|
469
525
|
])) : createCommentVNode("", true)
|
|
470
|
-
], 512)) : renderSlot(_ctx.$slots, "auth-actions", {}, void 0, true,
|
|
526
|
+
], 512)) : renderSlot(_ctx.$slots, "auth-actions", {}, void 0, true, 3),
|
|
471
527
|
__props.shortcuts.length ? (openBlock(), createElementBlock("nav", _hoisted_22, [
|
|
472
528
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (s) => {
|
|
473
529
|
return openBlock(), createElementBlock("a", {
|
|
@@ -489,7 +545,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
489
545
|
}), 128))
|
|
490
546
|
])) : createCommentVNode("", true),
|
|
491
547
|
__props.themeToggle ? (openBlock(), createElementBlock("button", {
|
|
492
|
-
key:
|
|
548
|
+
key: 5,
|
|
493
549
|
type: "button",
|
|
494
550
|
class: "lf-glass lf-icon-btn",
|
|
495
551
|
title: unref(mode2) === "dark" ? "밝은 테마로" : "어두운 테마로",
|
|
@@ -507,21 +563,35 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
507
563
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
508
564
|
])
|
|
509
565
|
]),
|
|
510
|
-
|
|
566
|
+
_ctx.$slots.rail ? (openBlock(), createElementBlock("div", {
|
|
567
|
+
key: 1,
|
|
568
|
+
class: normalizeClass(["lf-shell__body", { "lf-shell__body--no-rail": railHidden.value }])
|
|
569
|
+
}, [
|
|
570
|
+
createElementVNode("nav", {
|
|
571
|
+
class: normalizeClass(["lf-rail", { "lf-rail--open": railOpen.value, "lf-rail--hidden": railHidden.value, "lf-rail--overlay": railOverlay.value }]),
|
|
572
|
+
"aria-label": "메뉴",
|
|
573
|
+
onClick: _cache[5] || (_cache[5] = ($event) => railOpen.value = false)
|
|
574
|
+
}, [
|
|
575
|
+
renderSlot(_ctx.$slots, "rail", {}, void 0, true)
|
|
576
|
+
], 2),
|
|
577
|
+
createElementVNode("main", _hoisted_29, [
|
|
578
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
579
|
+
])
|
|
580
|
+
], 2)) : (openBlock(), createElementBlock("main", _hoisted_30, [
|
|
511
581
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
512
|
-
]),
|
|
513
|
-
createElementVNode("footer",
|
|
514
|
-
createElementVNode("div",
|
|
582
|
+
])),
|
|
583
|
+
createElementVNode("footer", _hoisted_31, [
|
|
584
|
+
createElementVNode("div", _hoisted_32, [
|
|
515
585
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
516
|
-
_cache[
|
|
586
|
+
_cache[10] || (_cache[10] = createElementVNode("p", { class: "site-footer-copy" }, "© Loafacto. All rights reserved.", -1))
|
|
517
587
|
], true)
|
|
518
588
|
])
|
|
519
589
|
])
|
|
520
|
-
]);
|
|
590
|
+
], 2);
|
|
521
591
|
};
|
|
522
592
|
}
|
|
523
593
|
});
|
|
524
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
594
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-e12e3587"]]);
|
|
525
595
|
function generateId() {
|
|
526
596
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
527
597
|
}
|
|
@@ -555,26 +625,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
555
625
|
}
|
|
556
626
|
return { items, add, remove, success, error, info, warning };
|
|
557
627
|
});
|
|
558
|
-
const _hoisted_1$
|
|
628
|
+
const _hoisted_1$r = {
|
|
559
629
|
class: "toast-container",
|
|
560
630
|
role: "region",
|
|
561
631
|
"aria-label": "알림"
|
|
562
632
|
};
|
|
563
|
-
const _hoisted_2$
|
|
564
|
-
const _hoisted_3$
|
|
633
|
+
const _hoisted_2$n = ["onClick"];
|
|
634
|
+
const _hoisted_3$i = {
|
|
565
635
|
class: "toast-icon",
|
|
566
636
|
viewBox: "0 0 24 24",
|
|
567
637
|
"aria-hidden": "true"
|
|
568
638
|
};
|
|
569
|
-
const _hoisted_4$
|
|
570
|
-
const _hoisted_5$
|
|
571
|
-
const _hoisted_6$
|
|
639
|
+
const _hoisted_4$g = ["d"];
|
|
640
|
+
const _hoisted_5$c = { class: "toast-message" };
|
|
641
|
+
const _hoisted_6$9 = ["onClick"];
|
|
572
642
|
const _hoisted_7$7 = {
|
|
573
643
|
viewBox: "0 0 24 24",
|
|
574
644
|
"aria-hidden": "true"
|
|
575
645
|
};
|
|
576
646
|
const _hoisted_8$2 = ["d"];
|
|
577
|
-
const _sfc_main$
|
|
647
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
578
648
|
__name: "AppToast",
|
|
579
649
|
setup(__props) {
|
|
580
650
|
const toastStore = useToastStore();
|
|
@@ -606,7 +676,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
606
676
|
});
|
|
607
677
|
return (_ctx, _cache) => {
|
|
608
678
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
609
|
-
createElementVNode("div", _hoisted_1$
|
|
679
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
610
680
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
611
681
|
default: withCtx(() => [
|
|
612
682
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -616,13 +686,13 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
616
686
|
role: "alert",
|
|
617
687
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
618
688
|
}, [
|
|
619
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
689
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$i, [
|
|
620
690
|
createElementVNode("path", {
|
|
621
691
|
d: ICON_PATHS[item.type],
|
|
622
692
|
fill: "currentColor"
|
|
623
|
-
}, null, 8, _hoisted_4$
|
|
693
|
+
}, null, 8, _hoisted_4$g)
|
|
624
694
|
])),
|
|
625
|
-
createElementVNode("span", _hoisted_5$
|
|
695
|
+
createElementVNode("span", _hoisted_5$c, toDisplayString(item.message), 1),
|
|
626
696
|
createElementVNode("button", {
|
|
627
697
|
type: "button",
|
|
628
698
|
class: "toast-close",
|
|
@@ -635,8 +705,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
635
705
|
fill: "currentColor"
|
|
636
706
|
}, null, 8, _hoisted_8$2)
|
|
637
707
|
]))
|
|
638
|
-
], 8, _hoisted_6$
|
|
639
|
-
], 10, _hoisted_2$
|
|
708
|
+
], 8, _hoisted_6$9)
|
|
709
|
+
], 10, _hoisted_2$n);
|
|
640
710
|
}), 128))
|
|
641
711
|
]),
|
|
642
712
|
_: 1
|
|
@@ -646,7 +716,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
646
716
|
};
|
|
647
717
|
}
|
|
648
718
|
});
|
|
649
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
719
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-284b8ae8"]]);
|
|
650
720
|
const useLoadingStore = defineStore("loading", () => {
|
|
651
721
|
const count = ref(0);
|
|
652
722
|
const loading = computed(() => count.value > 0);
|
|
@@ -666,14 +736,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
666
736
|
}
|
|
667
737
|
return { loading, count, start, stop, withLoading };
|
|
668
738
|
});
|
|
669
|
-
const _hoisted_1$
|
|
739
|
+
const _hoisted_1$q = {
|
|
670
740
|
key: 0,
|
|
671
741
|
class: "loading-overlay",
|
|
672
742
|
role: "status",
|
|
673
743
|
"aria-live": "polite",
|
|
674
744
|
"aria-label": "로딩 중"
|
|
675
745
|
};
|
|
676
|
-
const _sfc_main$
|
|
746
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
677
747
|
__name: "AppLoadingOverlay",
|
|
678
748
|
setup(__props) {
|
|
679
749
|
const loadingStore = useLoadingStore();
|
|
@@ -681,7 +751,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
681
751
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
682
752
|
createVNode(Transition, { name: "fade" }, {
|
|
683
753
|
default: withCtx(() => [
|
|
684
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
754
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$q, [..._cache[0] || (_cache[0] = [
|
|
685
755
|
createElementVNode("div", {
|
|
686
756
|
class: "loading-spinner",
|
|
687
757
|
"aria-hidden": "true"
|
|
@@ -694,7 +764,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
694
764
|
};
|
|
695
765
|
}
|
|
696
766
|
});
|
|
697
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
767
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
698
768
|
const useConfirmStore = defineStore("confirm", () => {
|
|
699
769
|
const open = ref(false);
|
|
700
770
|
const title = ref("확인");
|
|
@@ -742,19 +812,19 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
742
812
|
resolve
|
|
743
813
|
};
|
|
744
814
|
});
|
|
745
|
-
const _hoisted_1$
|
|
815
|
+
const _hoisted_1$p = {
|
|
746
816
|
key: 0,
|
|
747
817
|
class: "app-confirm-backdrop"
|
|
748
818
|
};
|
|
749
|
-
const _hoisted_2$
|
|
819
|
+
const _hoisted_2$m = {
|
|
750
820
|
class: "app-confirm",
|
|
751
821
|
role: "dialog",
|
|
752
822
|
"aria-modal": "true"
|
|
753
823
|
};
|
|
754
|
-
const _hoisted_3$
|
|
755
|
-
const _hoisted_4$
|
|
756
|
-
const _hoisted_5$
|
|
757
|
-
const _hoisted_6$
|
|
824
|
+
const _hoisted_3$h = { class: "app-confirm__header" };
|
|
825
|
+
const _hoisted_4$f = { class: "app-confirm__title" };
|
|
826
|
+
const _hoisted_5$b = { class: "app-confirm__body" };
|
|
827
|
+
const _hoisted_6$8 = { class: "app-confirm__message" };
|
|
758
828
|
const _hoisted_7$6 = {
|
|
759
829
|
key: 0,
|
|
760
830
|
class: "app-confirm__require"
|
|
@@ -762,7 +832,7 @@ const _hoisted_7$6 = {
|
|
|
762
832
|
const _hoisted_8$1 = { class: "app-confirm__require-label" };
|
|
763
833
|
const _hoisted_9 = { class: "app-confirm__actions" };
|
|
764
834
|
const _hoisted_10 = ["disabled"];
|
|
765
|
-
const _sfc_main$
|
|
835
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
766
836
|
__name: "AppConfirmModal",
|
|
767
837
|
setup(__props) {
|
|
768
838
|
const store = useConfirmStore();
|
|
@@ -787,13 +857,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
787
857
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
788
858
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
789
859
|
default: withCtx(() => [
|
|
790
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
791
|
-
createElementVNode("div", _hoisted_2$
|
|
792
|
-
createElementVNode("div", _hoisted_3$
|
|
793
|
-
createElementVNode("h3", _hoisted_4$
|
|
860
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
861
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
862
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
863
|
+
createElementVNode("h3", _hoisted_4$f, toDisplayString(unref(store).title), 1)
|
|
794
864
|
]),
|
|
795
|
-
createElementVNode("div", _hoisted_5$
|
|
796
|
-
createElementVNode("p", _hoisted_6$
|
|
865
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
866
|
+
createElementVNode("p", _hoisted_6$8, toDisplayString(unref(store).message), 1),
|
|
797
867
|
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$6, [
|
|
798
868
|
createElementVNode("span", _hoisted_8$1, [
|
|
799
869
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
@@ -835,7 +905,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
835
905
|
};
|
|
836
906
|
}
|
|
837
907
|
});
|
|
838
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
908
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-29454195"]]);
|
|
839
909
|
const LF_ICONS = {
|
|
840
910
|
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",
|
|
841
911
|
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",
|
|
@@ -875,10 +945,10 @@ const LF_ICONS = {
|
|
|
875
945
|
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",
|
|
876
946
|
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"
|
|
877
947
|
};
|
|
878
|
-
const _hoisted_1$
|
|
879
|
-
const _hoisted_2$
|
|
880
|
-
const _hoisted_3$
|
|
881
|
-
const _sfc_main$
|
|
948
|
+
const _hoisted_1$o = ["role", "aria-label", "aria-hidden"];
|
|
949
|
+
const _hoisted_2$l = { key: 0 };
|
|
950
|
+
const _hoisted_3$g = ["d"];
|
|
951
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
882
952
|
__name: "LfIcon",
|
|
883
953
|
props: {
|
|
884
954
|
name: {},
|
|
@@ -901,19 +971,19 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
901
971
|
"aria-label": __props.label || void 0,
|
|
902
972
|
"aria-hidden": __props.label ? void 0 : "true"
|
|
903
973
|
}, [
|
|
904
|
-
__props.label ? (openBlock(), createElementBlock("title", _hoisted_2$
|
|
974
|
+
__props.label ? (openBlock(), createElementBlock("title", _hoisted_2$l, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
905
975
|
d2.value ? (openBlock(), createElementBlock("path", {
|
|
906
976
|
key: 1,
|
|
907
977
|
d: d2.value,
|
|
908
978
|
fill: "currentColor"
|
|
909
|
-
}, null, 8, _hoisted_3$
|
|
910
|
-
], 12, _hoisted_1$
|
|
979
|
+
}, null, 8, _hoisted_3$g)) : createCommentVNode("", true)
|
|
980
|
+
], 12, _hoisted_1$o);
|
|
911
981
|
};
|
|
912
982
|
}
|
|
913
983
|
});
|
|
914
|
-
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
915
|
-
const _hoisted_1$
|
|
916
|
-
const _sfc_main$
|
|
984
|
+
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-b70b3868"]]);
|
|
985
|
+
const _hoisted_1$n = ["role", "aria-label", "aria-hidden"];
|
|
986
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
917
987
|
__name: "LfSpinner",
|
|
918
988
|
props: {
|
|
919
989
|
size: { default: "1.25rem" },
|
|
@@ -945,16 +1015,16 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
945
1015
|
cy: "12",
|
|
946
1016
|
r: "9"
|
|
947
1017
|
}, null, -1)
|
|
948
|
-
])], 12, _hoisted_1$
|
|
1018
|
+
])], 12, _hoisted_1$n);
|
|
949
1019
|
};
|
|
950
1020
|
}
|
|
951
1021
|
});
|
|
952
|
-
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
953
|
-
const _hoisted_1$
|
|
1022
|
+
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-4aedf6b0"]]);
|
|
1023
|
+
const _hoisted_1$m = {
|
|
954
1024
|
key: 2,
|
|
955
1025
|
class: "lf-btn__label"
|
|
956
1026
|
};
|
|
957
|
-
const _sfc_main$
|
|
1027
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
958
1028
|
__name: "LfButton",
|
|
959
1029
|
props: {
|
|
960
1030
|
variant: { default: "ghost" },
|
|
@@ -991,7 +1061,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
991
1061
|
name: __props.icon,
|
|
992
1062
|
path: __props.iconPath
|
|
993
1063
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
994
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1064
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$m, [
|
|
995
1065
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
996
1066
|
])) : createCommentVNode("", true),
|
|
997
1067
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -1004,8 +1074,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1004
1074
|
};
|
|
1005
1075
|
}
|
|
1006
1076
|
});
|
|
1007
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1008
|
-
const _sfc_main$
|
|
1077
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-c4bac4e1"]]);
|
|
1078
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1009
1079
|
__name: "LfIconButton",
|
|
1010
1080
|
props: {
|
|
1011
1081
|
icon: {},
|
|
@@ -1042,23 +1112,23 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1042
1112
|
};
|
|
1043
1113
|
}
|
|
1044
1114
|
});
|
|
1045
|
-
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1046
|
-
const _hoisted_1$
|
|
1047
|
-
const _hoisted_2$
|
|
1115
|
+
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-843c9770"]]);
|
|
1116
|
+
const _hoisted_1$l = ["for"];
|
|
1117
|
+
const _hoisted_2$k = {
|
|
1048
1118
|
key: 0,
|
|
1049
1119
|
class: "lf-field__required",
|
|
1050
1120
|
"aria-hidden": "true"
|
|
1051
1121
|
};
|
|
1052
|
-
const _hoisted_3$
|
|
1122
|
+
const _hoisted_3$f = {
|
|
1053
1123
|
key: 1,
|
|
1054
1124
|
class: "lf-field__error",
|
|
1055
1125
|
role: "alert"
|
|
1056
1126
|
};
|
|
1057
|
-
const _hoisted_4$
|
|
1127
|
+
const _hoisted_4$e = {
|
|
1058
1128
|
key: 2,
|
|
1059
1129
|
class: "lf-field__hint"
|
|
1060
1130
|
};
|
|
1061
|
-
const _sfc_main$
|
|
1131
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1062
1132
|
__name: "LfField",
|
|
1063
1133
|
props: {
|
|
1064
1134
|
label: {},
|
|
@@ -1078,23 +1148,23 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1078
1148
|
for: __props.htmlFor
|
|
1079
1149
|
}, [
|
|
1080
1150
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1081
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1082
|
-
], 8, _hoisted_1$
|
|
1151
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$k, "*")) : createCommentVNode("", true)
|
|
1152
|
+
], 8, _hoisted_1$l)) : createCommentVNode("", true),
|
|
1083
1153
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1084
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
1154
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$f, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$e, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1085
1155
|
], 2);
|
|
1086
1156
|
};
|
|
1087
1157
|
}
|
|
1088
1158
|
});
|
|
1089
|
-
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1090
|
-
const _hoisted_1$
|
|
1091
|
-
const _hoisted_2$
|
|
1159
|
+
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-38509e4d"]]);
|
|
1160
|
+
const _hoisted_1$k = { class: "lf-control-wrap" };
|
|
1161
|
+
const _hoisted_2$j = {
|
|
1092
1162
|
key: 0,
|
|
1093
1163
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
1094
1164
|
};
|
|
1095
|
-
const _hoisted_3$
|
|
1096
|
-
const _hoisted_4$
|
|
1097
|
-
const _sfc_main$
|
|
1165
|
+
const _hoisted_3$e = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
1166
|
+
const _hoisted_4$d = ["aria-label"];
|
|
1167
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1098
1168
|
...{ inheritAttrs: false },
|
|
1099
1169
|
__name: "LfTextField",
|
|
1100
1170
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1136,8 +1206,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1136
1206
|
"html-for": unref(inputId)
|
|
1137
1207
|
}, {
|
|
1138
1208
|
default: withCtx(() => [
|
|
1139
|
-
createElementVNode("div", _hoisted_1$
|
|
1140
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1209
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
1210
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$j, [
|
|
1141
1211
|
createVNode(LfIcon, {
|
|
1142
1212
|
name: __props.icon,
|
|
1143
1213
|
path: __props.iconPath,
|
|
@@ -1157,7 +1227,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1157
1227
|
readonly: __props.readonly,
|
|
1158
1228
|
required: __props.required,
|
|
1159
1229
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1160
|
-
}), null, 16, _hoisted_3$
|
|
1230
|
+
}), null, 16, _hoisted_3$e), [
|
|
1161
1231
|
[vModelDynamic, model.value]
|
|
1162
1232
|
]),
|
|
1163
1233
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
@@ -1171,7 +1241,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1171
1241
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1172
1242
|
size: "1.125rem"
|
|
1173
1243
|
}, null, 8, ["name"])
|
|
1174
|
-
], 8, _hoisted_4$
|
|
1244
|
+
], 8, _hoisted_4$d)) : __props.clearable && !!model.value && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1175
1245
|
key: 2,
|
|
1176
1246
|
type: "button",
|
|
1177
1247
|
class: "lf-control-action",
|
|
@@ -1190,13 +1260,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1190
1260
|
};
|
|
1191
1261
|
}
|
|
1192
1262
|
});
|
|
1193
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1194
|
-
const _hoisted_1$
|
|
1195
|
-
const _hoisted_2$
|
|
1263
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-e1ad8511"]]);
|
|
1264
|
+
const _hoisted_1$j = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1265
|
+
const _hoisted_2$i = {
|
|
1196
1266
|
key: 0,
|
|
1197
1267
|
class: "lf-textarea__counter"
|
|
1198
1268
|
};
|
|
1199
|
-
const _sfc_main$
|
|
1269
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1200
1270
|
...{ inheritAttrs: false },
|
|
1201
1271
|
__name: "LfTextarea",
|
|
1202
1272
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1259,23 +1329,23 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1259
1329
|
maxlength: __props.maxlength,
|
|
1260
1330
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1261
1331
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1262
|
-
}), null, 16, _hoisted_1$
|
|
1332
|
+
}), null, 16, _hoisted_1$j), [
|
|
1263
1333
|
[vModelText, model.value]
|
|
1264
1334
|
]),
|
|
1265
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1335
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$i, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1266
1336
|
]),
|
|
1267
1337
|
_: 1
|
|
1268
1338
|
}, 8, ["label", "hint", "error", "required", "html-for"]);
|
|
1269
1339
|
};
|
|
1270
1340
|
}
|
|
1271
1341
|
});
|
|
1272
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1273
|
-
const _hoisted_1$
|
|
1274
|
-
const _hoisted_2$
|
|
1275
|
-
const _hoisted_3$
|
|
1276
|
-
const _hoisted_4$
|
|
1277
|
-
const _hoisted_5$
|
|
1278
|
-
const _sfc_main$
|
|
1342
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-96f0aac7"]]);
|
|
1343
|
+
const _hoisted_1$i = { class: "lf-control-wrap" };
|
|
1344
|
+
const _hoisted_2$h = ["id", "disabled", "required", "aria-invalid"];
|
|
1345
|
+
const _hoisted_3$d = ["disabled"];
|
|
1346
|
+
const _hoisted_4$c = ["value", "disabled"];
|
|
1347
|
+
const _hoisted_5$a = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
|
|
1348
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1279
1349
|
...{ inheritAttrs: false },
|
|
1280
1350
|
__name: "LfSelect",
|
|
1281
1351
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1309,7 +1379,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1309
1379
|
"html-for": unref(inputId)
|
|
1310
1380
|
}, {
|
|
1311
1381
|
default: withCtx(() => [
|
|
1312
|
-
createElementVNode("div", _hoisted_1$
|
|
1382
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
1313
1383
|
withDirectives(createElementVNode("select", mergeProps({ id: unref(inputId) }, _ctx.$attrs, {
|
|
1314
1384
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1315
1385
|
class: ["lf-control lf-select lf-control--has-right", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }],
|
|
@@ -1321,18 +1391,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1321
1391
|
key: 0,
|
|
1322
1392
|
value: "",
|
|
1323
1393
|
disabled: !__props.clearable
|
|
1324
|
-
}, toDisplayString(__props.placeholder), 9, _hoisted_3$
|
|
1394
|
+
}, toDisplayString(__props.placeholder), 9, _hoisted_3$d)) : createCommentVNode("", true),
|
|
1325
1395
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1326
1396
|
return openBlock(), createElementBlock("option", {
|
|
1327
1397
|
key: String(opt.value),
|
|
1328
1398
|
value: opt.value,
|
|
1329
1399
|
disabled: opt.disabled
|
|
1330
|
-
}, toDisplayString(opt.label), 9, _hoisted_4$
|
|
1400
|
+
}, toDisplayString(opt.label), 9, _hoisted_4$c);
|
|
1331
1401
|
}), 128))
|
|
1332
|
-
], 16, _hoisted_2$
|
|
1402
|
+
], 16, _hoisted_2$h), [
|
|
1333
1403
|
[vModelSelect, model.value]
|
|
1334
1404
|
]),
|
|
1335
|
-
createElementVNode("span", _hoisted_5$
|
|
1405
|
+
createElementVNode("span", _hoisted_5$a, [
|
|
1336
1406
|
createVNode(LfIcon, {
|
|
1337
1407
|
name: "expand_more",
|
|
1338
1408
|
size: "1.125rem"
|
|
@@ -1345,22 +1415,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1345
1415
|
};
|
|
1346
1416
|
}
|
|
1347
1417
|
});
|
|
1348
|
-
const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1349
|
-
const _hoisted_1$
|
|
1350
|
-
const _hoisted_2$
|
|
1418
|
+
const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-78276920"]]);
|
|
1419
|
+
const _hoisted_1$h = ["disabled", "value"];
|
|
1420
|
+
const _hoisted_2$g = {
|
|
1351
1421
|
class: "lf-check__box",
|
|
1352
1422
|
"aria-hidden": "true"
|
|
1353
1423
|
};
|
|
1354
|
-
const _hoisted_3$
|
|
1424
|
+
const _hoisted_3$c = {
|
|
1355
1425
|
key: 0,
|
|
1356
1426
|
class: "lf-check__text"
|
|
1357
1427
|
};
|
|
1358
|
-
const _hoisted_4$
|
|
1359
|
-
const _hoisted_5$
|
|
1428
|
+
const _hoisted_4$b = { class: "lf-check__label" };
|
|
1429
|
+
const _hoisted_5$9 = {
|
|
1360
1430
|
key: 0,
|
|
1361
1431
|
class: "lf-check__desc"
|
|
1362
1432
|
};
|
|
1363
|
-
const _sfc_main$
|
|
1433
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1364
1434
|
...{ inheritAttrs: false },
|
|
1365
1435
|
__name: "LfCheckbox",
|
|
1366
1436
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1385,39 +1455,39 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1385
1455
|
type: "checkbox",
|
|
1386
1456
|
disabled: __props.disabled,
|
|
1387
1457
|
value: __props.value
|
|
1388
|
-
}), null, 16, _hoisted_1$
|
|
1458
|
+
}), null, 16, _hoisted_1$h), [
|
|
1389
1459
|
[vModelCheckbox, model.value]
|
|
1390
1460
|
]),
|
|
1391
|
-
createElementVNode("span", _hoisted_2$
|
|
1461
|
+
createElementVNode("span", _hoisted_2$g, [
|
|
1392
1462
|
createVNode(LfIcon, {
|
|
1393
1463
|
name: "check",
|
|
1394
1464
|
size: "0.875rem"
|
|
1395
1465
|
})
|
|
1396
1466
|
]),
|
|
1397
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1398
|
-
createElementVNode("span", _hoisted_4$
|
|
1467
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$c, [
|
|
1468
|
+
createElementVNode("span", _hoisted_4$b, [
|
|
1399
1469
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1400
1470
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1401
1471
|
], true)
|
|
1402
1472
|
]),
|
|
1403
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1473
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$9, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1404
1474
|
])) : createCommentVNode("", true)
|
|
1405
1475
|
], 2);
|
|
1406
1476
|
};
|
|
1407
1477
|
}
|
|
1408
1478
|
});
|
|
1409
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1410
|
-
const _hoisted_1$
|
|
1479
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-a86332f0"]]);
|
|
1480
|
+
const _hoisted_1$g = {
|
|
1411
1481
|
key: 0,
|
|
1412
1482
|
class: "lf-switch__text"
|
|
1413
1483
|
};
|
|
1414
|
-
const _hoisted_2$
|
|
1415
|
-
const _hoisted_3$
|
|
1484
|
+
const _hoisted_2$f = { class: "lf-switch__label" };
|
|
1485
|
+
const _hoisted_3$b = {
|
|
1416
1486
|
key: 0,
|
|
1417
1487
|
class: "lf-switch__desc"
|
|
1418
1488
|
};
|
|
1419
|
-
const _hoisted_4$
|
|
1420
|
-
const _sfc_main$
|
|
1489
|
+
const _hoisted_4$a = ["disabled"];
|
|
1490
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1421
1491
|
...{ inheritAttrs: false },
|
|
1422
1492
|
__name: "LfSwitch",
|
|
1423
1493
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1436,13 +1506,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1436
1506
|
return openBlock(), createElementBlock("label", {
|
|
1437
1507
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1438
1508
|
}, [
|
|
1439
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1440
|
-
createElementVNode("span", _hoisted_2$
|
|
1509
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$g, [
|
|
1510
|
+
createElementVNode("span", _hoisted_2$f, [
|
|
1441
1511
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1442
1512
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1443
1513
|
], true)
|
|
1444
1514
|
]),
|
|
1445
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1515
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1446
1516
|
])) : createCommentVNode("", true),
|
|
1447
1517
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1448
1518
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1450,7 +1520,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1450
1520
|
type: "checkbox",
|
|
1451
1521
|
role: "switch",
|
|
1452
1522
|
disabled: __props.disabled
|
|
1453
|
-
}), null, 16, _hoisted_4$
|
|
1523
|
+
}), null, 16, _hoisted_4$a), [
|
|
1454
1524
|
[vModelCheckbox, model.value]
|
|
1455
1525
|
]),
|
|
1456
1526
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1463,20 +1533,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1463
1533
|
};
|
|
1464
1534
|
}
|
|
1465
1535
|
});
|
|
1466
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1467
|
-
const _hoisted_1$
|
|
1536
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-134991c6"]]);
|
|
1537
|
+
const _hoisted_1$f = {
|
|
1468
1538
|
key: 0,
|
|
1469
1539
|
class: "lf-radio-group__legend"
|
|
1470
1540
|
};
|
|
1471
|
-
const _hoisted_2$
|
|
1541
|
+
const _hoisted_2$e = {
|
|
1472
1542
|
key: 0,
|
|
1473
1543
|
class: "lf-radio-group__required",
|
|
1474
1544
|
"aria-hidden": "true"
|
|
1475
1545
|
};
|
|
1476
|
-
const _hoisted_3$
|
|
1477
|
-
const _hoisted_4$
|
|
1478
|
-
const _hoisted_5$
|
|
1479
|
-
const _hoisted_6$
|
|
1546
|
+
const _hoisted_3$a = ["name", "value", "disabled"];
|
|
1547
|
+
const _hoisted_4$9 = { class: "lf-radio__text" };
|
|
1548
|
+
const _hoisted_5$8 = { class: "lf-radio__label" };
|
|
1549
|
+
const _hoisted_6$7 = {
|
|
1480
1550
|
key: 0,
|
|
1481
1551
|
class: "lf-radio__desc"
|
|
1482
1552
|
};
|
|
@@ -1489,7 +1559,7 @@ const _hoisted_8 = {
|
|
|
1489
1559
|
key: 2,
|
|
1490
1560
|
class: "lf-radio-group__hint"
|
|
1491
1561
|
};
|
|
1492
|
-
const _sfc_main$
|
|
1562
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1493
1563
|
__name: "LfRadioGroup",
|
|
1494
1564
|
props: /* @__PURE__ */ mergeModels({
|
|
1495
1565
|
options: { default: () => [] },
|
|
@@ -1515,9 +1585,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1515
1585
|
return openBlock(), createElementBlock("fieldset", {
|
|
1516
1586
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1517
1587
|
}, [
|
|
1518
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1588
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$f, [
|
|
1519
1589
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1520
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1590
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$e, "*")) : createCommentVNode("", true)
|
|
1521
1591
|
])) : createCommentVNode("", true),
|
|
1522
1592
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1523
1593
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1531,16 +1601,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1531
1601
|
name: unref(groupName),
|
|
1532
1602
|
value: opt.value,
|
|
1533
1603
|
disabled: __props.disabled || opt.disabled
|
|
1534
|
-
}, null, 8, _hoisted_3$
|
|
1604
|
+
}, null, 8, _hoisted_3$a), [
|
|
1535
1605
|
[vModelRadio, model.value]
|
|
1536
1606
|
]),
|
|
1537
1607
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1538
1608
|
class: "lf-radio__dot",
|
|
1539
1609
|
"aria-hidden": "true"
|
|
1540
1610
|
}, null, -1)),
|
|
1541
|
-
createElementVNode("span", _hoisted_4$
|
|
1542
|
-
createElementVNode("span", _hoisted_5$
|
|
1543
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
1611
|
+
createElementVNode("span", _hoisted_4$9, [
|
|
1612
|
+
createElementVNode("span", _hoisted_5$8, toDisplayString(opt.label), 1),
|
|
1613
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1544
1614
|
])
|
|
1545
1615
|
], 2);
|
|
1546
1616
|
}), 128)),
|
|
@@ -1549,24 +1619,24 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1549
1619
|
};
|
|
1550
1620
|
}
|
|
1551
1621
|
});
|
|
1552
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1553
|
-
const _hoisted_1$
|
|
1554
|
-
const _hoisted_2$
|
|
1622
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-cffad147"]]);
|
|
1623
|
+
const _hoisted_1$e = ["aria-labelledby", "aria-label"];
|
|
1624
|
+
const _hoisted_2$d = {
|
|
1555
1625
|
key: 0,
|
|
1556
1626
|
class: "lf-modal__header"
|
|
1557
1627
|
};
|
|
1558
|
-
const _hoisted_3$
|
|
1559
|
-
const _hoisted_4$
|
|
1560
|
-
const _hoisted_5$
|
|
1628
|
+
const _hoisted_3$9 = { class: "lf-modal__heading" };
|
|
1629
|
+
const _hoisted_4$8 = ["id"];
|
|
1630
|
+
const _hoisted_5$7 = {
|
|
1561
1631
|
key: 0,
|
|
1562
1632
|
class: "lf-modal__subtitle"
|
|
1563
1633
|
};
|
|
1564
|
-
const _hoisted_6$
|
|
1634
|
+
const _hoisted_6$6 = { class: "lf-modal__body" };
|
|
1565
1635
|
const _hoisted_7$4 = {
|
|
1566
1636
|
key: 1,
|
|
1567
1637
|
class: "lf-modal__footer"
|
|
1568
1638
|
};
|
|
1569
|
-
const _sfc_main$
|
|
1639
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1570
1640
|
__name: "LfModal",
|
|
1571
1641
|
props: /* @__PURE__ */ mergeModels({
|
|
1572
1642
|
title: {},
|
|
@@ -1678,14 +1748,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1678
1748
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1679
1749
|
onKeydown
|
|
1680
1750
|
}, [
|
|
1681
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1751
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$d, [
|
|
1682
1752
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1683
|
-
createElementVNode("div", _hoisted_3$
|
|
1753
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
1684
1754
|
createElementVNode("h2", {
|
|
1685
1755
|
id: unref(titleId),
|
|
1686
1756
|
class: "lf-modal__title"
|
|
1687
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1688
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
1757
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$8),
|
|
1758
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$7, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1689
1759
|
])
|
|
1690
1760
|
], true),
|
|
1691
1761
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1696,13 +1766,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1696
1766
|
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
1697
1767
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1698
1768
|
])) : createCommentVNode("", true),
|
|
1699
|
-
createElementVNode("div", _hoisted_6$
|
|
1769
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
1700
1770
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1701
1771
|
]),
|
|
1702
1772
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$4, [
|
|
1703
1773
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1704
1774
|
])) : createCommentVNode("", true)
|
|
1705
|
-
], 42, _hoisted_1$
|
|
1775
|
+
], 42, _hoisted_1$e)
|
|
1706
1776
|
], 32)) : createCommentVNode("", true)
|
|
1707
1777
|
]),
|
|
1708
1778
|
_: 3
|
|
@@ -1711,30 +1781,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1711
1781
|
};
|
|
1712
1782
|
}
|
|
1713
1783
|
});
|
|
1714
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1715
|
-
const _hoisted_1$
|
|
1784
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cd0b7eb4"]]);
|
|
1785
|
+
const _hoisted_1$d = {
|
|
1716
1786
|
key: 0,
|
|
1717
1787
|
class: "lf-card__head"
|
|
1718
1788
|
};
|
|
1719
|
-
const _hoisted_2$
|
|
1789
|
+
const _hoisted_2$c = {
|
|
1720
1790
|
key: 0,
|
|
1721
1791
|
class: "lf-card__icon"
|
|
1722
1792
|
};
|
|
1723
|
-
const _hoisted_3$
|
|
1724
|
-
const _hoisted_4$
|
|
1793
|
+
const _hoisted_3$8 = { class: "lf-card__title" };
|
|
1794
|
+
const _hoisted_4$7 = {
|
|
1725
1795
|
key: 1,
|
|
1726
1796
|
class: "lf-card__count"
|
|
1727
1797
|
};
|
|
1728
|
-
const _hoisted_5$
|
|
1798
|
+
const _hoisted_5$6 = {
|
|
1729
1799
|
key: 0,
|
|
1730
1800
|
class: "lf-card__actions"
|
|
1731
1801
|
};
|
|
1732
|
-
const _hoisted_6$
|
|
1802
|
+
const _hoisted_6$5 = { class: "lf-card__body" };
|
|
1733
1803
|
const _hoisted_7$3 = {
|
|
1734
1804
|
key: 1,
|
|
1735
1805
|
class: "lf-card__foot"
|
|
1736
1806
|
};
|
|
1737
|
-
const _sfc_main$
|
|
1807
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1738
1808
|
__name: "LfCard",
|
|
1739
1809
|
props: {
|
|
1740
1810
|
title: {},
|
|
@@ -1750,9 +1820,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1750
1820
|
return openBlock(), createElementBlock("section", {
|
|
1751
1821
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1752
1822
|
}, [
|
|
1753
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1823
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$d, [
|
|
1754
1824
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1755
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1825
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$c, [
|
|
1756
1826
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1757
1827
|
createVNode(LfIcon, {
|
|
1758
1828
|
name: __props.icon,
|
|
@@ -1761,15 +1831,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1761
1831
|
}, null, 8, ["name", "path"])
|
|
1762
1832
|
], true)
|
|
1763
1833
|
])) : createCommentVNode("", true),
|
|
1764
|
-
createElementVNode("h3", _hoisted_3$
|
|
1765
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1834
|
+
createElementVNode("h3", _hoisted_3$8, toDisplayString(__props.title), 1),
|
|
1835
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1766
1836
|
], true),
|
|
1767
1837
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1768
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1838
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
1769
1839
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1770
1840
|
])) : createCommentVNode("", true)
|
|
1771
1841
|
])) : createCommentVNode("", true),
|
|
1772
|
-
createElementVNode("div", _hoisted_6$
|
|
1842
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
1773
1843
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1774
1844
|
]),
|
|
1775
1845
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$3, [
|
|
@@ -1779,19 +1849,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1779
1849
|
};
|
|
1780
1850
|
}
|
|
1781
1851
|
});
|
|
1782
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1783
|
-
const _hoisted_1$
|
|
1784
|
-
const _hoisted_2$
|
|
1785
|
-
const _hoisted_3$
|
|
1786
|
-
const _hoisted_4$
|
|
1852
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-4d6ca8ce"]]);
|
|
1853
|
+
const _hoisted_1$c = { class: "lf-page-header" };
|
|
1854
|
+
const _hoisted_2$b = { class: "lf-page-header__title-box" };
|
|
1855
|
+
const _hoisted_3$7 = { class: "lf-page-header__title" };
|
|
1856
|
+
const _hoisted_4$6 = {
|
|
1787
1857
|
key: 0,
|
|
1788
1858
|
class: "lf-page-header__icon"
|
|
1789
1859
|
};
|
|
1790
|
-
const _hoisted_5$
|
|
1860
|
+
const _hoisted_5$5 = {
|
|
1791
1861
|
key: 0,
|
|
1792
1862
|
class: "lf-page-header__count"
|
|
1793
1863
|
};
|
|
1794
|
-
const _hoisted_6$
|
|
1864
|
+
const _hoisted_6$4 = {
|
|
1795
1865
|
key: 0,
|
|
1796
1866
|
class: "lf-page-header__tools"
|
|
1797
1867
|
};
|
|
@@ -1799,7 +1869,7 @@ const _hoisted_7$2 = {
|
|
|
1799
1869
|
key: 1,
|
|
1800
1870
|
class: "lf-page-header__desc"
|
|
1801
1871
|
};
|
|
1802
|
-
const _sfc_main$
|
|
1872
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1803
1873
|
__name: "LfPageHeader",
|
|
1804
1874
|
props: {
|
|
1805
1875
|
title: {},
|
|
@@ -1812,10 +1882,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1812
1882
|
const slots = useSlots();
|
|
1813
1883
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1814
1884
|
return (_ctx, _cache) => {
|
|
1815
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1816
|
-
createElementVNode("div", _hoisted_2$
|
|
1817
|
-
createElementVNode("h1", _hoisted_3$
|
|
1818
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1885
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
1886
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
1887
|
+
createElementVNode("h1", _hoisted_3$7, [
|
|
1888
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$6, [
|
|
1819
1889
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1820
1890
|
createVNode(LfIcon, {
|
|
1821
1891
|
name: __props.icon,
|
|
@@ -1828,9 +1898,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1828
1898
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1829
1899
|
], true)
|
|
1830
1900
|
]),
|
|
1831
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1901
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1832
1902
|
]),
|
|
1833
|
-
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1903
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
|
|
1834
1904
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1835
1905
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1836
1906
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
@@ -1844,14 +1914,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1844
1914
|
};
|
|
1845
1915
|
}
|
|
1846
1916
|
});
|
|
1847
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1848
|
-
const _hoisted_1$
|
|
1917
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-04602db7"]]);
|
|
1918
|
+
const _hoisted_1$b = {
|
|
1849
1919
|
key: 0,
|
|
1850
1920
|
class: "lf-badge__dot",
|
|
1851
1921
|
"aria-hidden": "true"
|
|
1852
1922
|
};
|
|
1853
|
-
const _hoisted_2$
|
|
1854
|
-
const _sfc_main$
|
|
1923
|
+
const _hoisted_2$a = ["aria-label"];
|
|
1924
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1855
1925
|
__name: "LfBadge",
|
|
1856
1926
|
props: {
|
|
1857
1927
|
label: {},
|
|
@@ -1871,7 +1941,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1871
1941
|
return openBlock(), createElementBlock("span", {
|
|
1872
1942
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1873
1943
|
}, [
|
|
1874
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1944
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$b)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1875
1945
|
key: 1,
|
|
1876
1946
|
name: __props.icon,
|
|
1877
1947
|
path: __props.iconPath,
|
|
@@ -1891,27 +1961,27 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1891
1961
|
name: "close",
|
|
1892
1962
|
size: "0.75rem"
|
|
1893
1963
|
})
|
|
1894
|
-
], 8, _hoisted_2$
|
|
1964
|
+
], 8, _hoisted_2$a)) : createCommentVNode("", true)
|
|
1895
1965
|
], 2);
|
|
1896
1966
|
};
|
|
1897
1967
|
}
|
|
1898
1968
|
});
|
|
1899
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1900
|
-
const _hoisted_1$
|
|
1901
|
-
const _hoisted_2$
|
|
1969
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b55cda7f"]]);
|
|
1970
|
+
const _hoisted_1$a = ["role"];
|
|
1971
|
+
const _hoisted_2$9 = {
|
|
1902
1972
|
class: "lf-alert__badge",
|
|
1903
1973
|
"aria-hidden": "true"
|
|
1904
1974
|
};
|
|
1905
|
-
const _hoisted_3$
|
|
1906
|
-
const _hoisted_4$
|
|
1975
|
+
const _hoisted_3$6 = { class: "lf-alert__body" };
|
|
1976
|
+
const _hoisted_4$5 = {
|
|
1907
1977
|
key: 0,
|
|
1908
1978
|
class: "lf-alert__title"
|
|
1909
1979
|
};
|
|
1910
|
-
const _hoisted_5$
|
|
1980
|
+
const _hoisted_5$4 = {
|
|
1911
1981
|
key: 2,
|
|
1912
1982
|
class: "lf-alert__actions"
|
|
1913
1983
|
};
|
|
1914
|
-
const _sfc_main$
|
|
1984
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1915
1985
|
__name: "LfAlert",
|
|
1916
1986
|
props: {
|
|
1917
1987
|
tone: { default: "info" },
|
|
@@ -1937,7 +2007,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1937
2007
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
1938
2008
|
role: __props.tone === "error" ? "alert" : "status"
|
|
1939
2009
|
}, [
|
|
1940
|
-
createElementVNode("span", _hoisted_2$
|
|
2010
|
+
createElementVNode("span", _hoisted_2$9, [
|
|
1941
2011
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1942
2012
|
createVNode(LfIcon, {
|
|
1943
2013
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -1946,8 +2016,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1946
2016
|
}, null, 8, ["name", "path", "size"])
|
|
1947
2017
|
], true)
|
|
1948
2018
|
]),
|
|
1949
|
-
createElementVNode("div", _hoisted_3$
|
|
1950
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
2019
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
2020
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1951
2021
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1952
2022
|
key: 1,
|
|
1953
2023
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -1956,7 +2026,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1956
2026
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
1957
2027
|
], true)
|
|
1958
2028
|
], 2)) : createCommentVNode("", true),
|
|
1959
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2029
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
1960
2030
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1961
2031
|
])) : createCommentVNode("", true)
|
|
1962
2032
|
]),
|
|
@@ -1968,14 +2038,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1968
2038
|
label: __props.closeLabel,
|
|
1969
2039
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
1970
2040
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1971
|
-
], 10, _hoisted_1$
|
|
2041
|
+
], 10, _hoisted_1$a);
|
|
1972
2042
|
};
|
|
1973
2043
|
}
|
|
1974
2044
|
});
|
|
1975
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1976
|
-
const _hoisted_1$
|
|
1977
|
-
const _hoisted_2$
|
|
1978
|
-
const _sfc_main$
|
|
2045
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-62839786"]]);
|
|
2046
|
+
const _hoisted_1$9 = ["title"];
|
|
2047
|
+
const _hoisted_2$8 = ["src", "alt"];
|
|
2048
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1979
2049
|
__name: "LfAvatar",
|
|
1980
2050
|
props: {
|
|
1981
2051
|
name: {},
|
|
@@ -2010,21 +2080,21 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2010
2080
|
src: __props.src,
|
|
2011
2081
|
alt: __props.name ?? "",
|
|
2012
2082
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
2013
|
-
}, null, 40, _hoisted_2$
|
|
2083
|
+
}, null, 40, _hoisted_2$8)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2014
2084
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
2015
2085
|
], 64))
|
|
2016
|
-
], 14, _hoisted_1$
|
|
2086
|
+
], 14, _hoisted_1$9);
|
|
2017
2087
|
};
|
|
2018
2088
|
}
|
|
2019
2089
|
});
|
|
2020
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2021
|
-
const _hoisted_1$
|
|
2022
|
-
const _hoisted_2$
|
|
2023
|
-
const _hoisted_3$
|
|
2024
|
-
const _hoisted_4$
|
|
2025
|
-
const _hoisted_5$
|
|
2026
|
-
const _hoisted_6$
|
|
2027
|
-
const _sfc_main$
|
|
2090
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-61adf36e"]]);
|
|
2091
|
+
const _hoisted_1$8 = { class: "lf-table-wrap" };
|
|
2092
|
+
const _hoisted_2$7 = ["aria-sort"];
|
|
2093
|
+
const _hoisted_3$5 = ["onClick"];
|
|
2094
|
+
const _hoisted_4$4 = { key: 1 };
|
|
2095
|
+
const _hoisted_5$3 = ["colspan"];
|
|
2096
|
+
const _hoisted_6$3 = ["tabindex", "onClick", "onKeydown"];
|
|
2097
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2028
2098
|
__name: "LfTable",
|
|
2029
2099
|
props: {
|
|
2030
2100
|
columns: {},
|
|
@@ -2056,7 +2126,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2056
2126
|
return props.sort.order === "asc" ? "ascending" : "descending";
|
|
2057
2127
|
}
|
|
2058
2128
|
return (_ctx, _cache) => {
|
|
2059
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2129
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2060
2130
|
createElementVNode("table", {
|
|
2061
2131
|
class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
|
|
2062
2132
|
style: normalizeStyle({ minWidth: __props.minWidth })
|
|
@@ -2083,10 +2153,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2083
2153
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
2084
2154
|
size: "0.875rem"
|
|
2085
2155
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
2086
|
-
], 8, _hoisted_3$
|
|
2156
|
+
], 8, _hoisted_3$5)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2087
2157
|
createTextVNode(toDisplayString(col.label), 1)
|
|
2088
2158
|
], 64))
|
|
2089
|
-
], 14, _hoisted_2$
|
|
2159
|
+
], 14, _hoisted_2$7);
|
|
2090
2160
|
}), 128))
|
|
2091
2161
|
])
|
|
2092
2162
|
]),
|
|
@@ -2105,7 +2175,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2105
2175
|
])], 2);
|
|
2106
2176
|
}), 128))
|
|
2107
2177
|
]);
|
|
2108
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$
|
|
2178
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$4, [
|
|
2109
2179
|
createElementVNode("td", {
|
|
2110
2180
|
class: "lf-table__empty",
|
|
2111
2181
|
colspan: __props.columns.length
|
|
@@ -2113,7 +2183,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2113
2183
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2114
2184
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
2115
2185
|
], true)
|
|
2116
|
-
], 8, _hoisted_5$
|
|
2186
|
+
], 8, _hoisted_5$3)
|
|
2117
2187
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
2118
2188
|
return openBlock(), createElementBlock("tr", {
|
|
2119
2189
|
key: keyOf(row, i2),
|
|
@@ -2137,7 +2207,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2137
2207
|
], true)
|
|
2138
2208
|
], 6);
|
|
2139
2209
|
}), 128))
|
|
2140
|
-
], 42, _hoisted_6$
|
|
2210
|
+
], 42, _hoisted_6$3);
|
|
2141
2211
|
}), 128))
|
|
2142
2212
|
])
|
|
2143
2213
|
], 6)
|
|
@@ -2145,26 +2215,26 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2145
2215
|
};
|
|
2146
2216
|
}
|
|
2147
2217
|
});
|
|
2148
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2149
|
-
const _hoisted_1$
|
|
2150
|
-
const _hoisted_2$
|
|
2218
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-dc7b5ff5"]]);
|
|
2219
|
+
const _hoisted_1$7 = ["aria-label"];
|
|
2220
|
+
const _hoisted_2$6 = {
|
|
2151
2221
|
key: 0,
|
|
2152
2222
|
class: "lf-pagination__total"
|
|
2153
2223
|
};
|
|
2154
|
-
const _hoisted_3$
|
|
2224
|
+
const _hoisted_3$4 = {
|
|
2155
2225
|
key: 1,
|
|
2156
2226
|
class: "lf-pagination__btns"
|
|
2157
2227
|
};
|
|
2158
|
-
const _hoisted_4$
|
|
2159
|
-
const _hoisted_5$
|
|
2228
|
+
const _hoisted_4$3 = ["disabled"];
|
|
2229
|
+
const _hoisted_5$2 = {
|
|
2160
2230
|
key: 0,
|
|
2161
2231
|
class: "lf-pagination__gap",
|
|
2162
2232
|
"aria-hidden": "true"
|
|
2163
2233
|
};
|
|
2164
|
-
const _hoisted_6$
|
|
2234
|
+
const _hoisted_6$2 = ["aria-current", "onClick"];
|
|
2165
2235
|
const _hoisted_7$1 = ["disabled"];
|
|
2166
2236
|
const ELLIPSIS = -1;
|
|
2167
|
-
const _sfc_main$
|
|
2237
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2168
2238
|
__name: "LfPagination",
|
|
2169
2239
|
props: /* @__PURE__ */ mergeModels({
|
|
2170
2240
|
total: { default: 0 },
|
|
@@ -2205,12 +2275,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2205
2275
|
class: "lf-pagination",
|
|
2206
2276
|
"aria-label": __props.ariaLabel
|
|
2207
2277
|
}, [
|
|
2208
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2278
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$6, [
|
|
2209
2279
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2210
2280
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2211
2281
|
], true)
|
|
2212
2282
|
])) : createCommentVNode("", true),
|
|
2213
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2283
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
2214
2284
|
createElementVNode("button", {
|
|
2215
2285
|
type: "button",
|
|
2216
2286
|
class: "lf-pagination__btn",
|
|
@@ -2222,18 +2292,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2222
2292
|
name: "chevron_left",
|
|
2223
2293
|
size: "1rem"
|
|
2224
2294
|
})
|
|
2225
|
-
], 8, _hoisted_4$
|
|
2295
|
+
], 8, _hoisted_4$3),
|
|
2226
2296
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2227
2297
|
return openBlock(), createElementBlock(Fragment, {
|
|
2228
2298
|
key: `${p}-${i2}`
|
|
2229
2299
|
}, [
|
|
2230
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2300
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$2, "…")) : (openBlock(), createElementBlock("button", {
|
|
2231
2301
|
key: 1,
|
|
2232
2302
|
type: "button",
|
|
2233
2303
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2234
2304
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2235
2305
|
onClick: ($event) => go(p)
|
|
2236
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2306
|
+
}, toDisplayString(p), 11, _hoisted_6$2))
|
|
2237
2307
|
], 64);
|
|
2238
2308
|
}), 128)),
|
|
2239
2309
|
createElementVNode("button", {
|
|
@@ -2249,25 +2319,25 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2249
2319
|
})
|
|
2250
2320
|
], 8, _hoisted_7$1)
|
|
2251
2321
|
])) : createCommentVNode("", true)
|
|
2252
|
-
], 8, _hoisted_1$
|
|
2322
|
+
], 8, _hoisted_1$7)) : createCommentVNode("", true);
|
|
2253
2323
|
};
|
|
2254
2324
|
}
|
|
2255
2325
|
});
|
|
2256
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2257
|
-
const _hoisted_1$
|
|
2326
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-be847541"]]);
|
|
2327
|
+
const _hoisted_1$6 = {
|
|
2258
2328
|
key: 0,
|
|
2259
2329
|
class: "lf-empty__icon"
|
|
2260
2330
|
};
|
|
2261
|
-
const _hoisted_2$
|
|
2262
|
-
const _hoisted_3$
|
|
2331
|
+
const _hoisted_2$5 = { class: "lf-empty__title" };
|
|
2332
|
+
const _hoisted_3$3 = {
|
|
2263
2333
|
key: 1,
|
|
2264
2334
|
class: "lf-empty__desc"
|
|
2265
2335
|
};
|
|
2266
|
-
const _hoisted_4$
|
|
2336
|
+
const _hoisted_4$2 = {
|
|
2267
2337
|
key: 2,
|
|
2268
2338
|
class: "lf-empty__action"
|
|
2269
2339
|
};
|
|
2270
|
-
const _sfc_main$
|
|
2340
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2271
2341
|
__name: "LfEmptyState",
|
|
2272
2342
|
props: {
|
|
2273
2343
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2282,7 +2352,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2282
2352
|
return openBlock(), createElementBlock("div", {
|
|
2283
2353
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2284
2354
|
}, [
|
|
2285
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2355
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$6, [
|
|
2286
2356
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2287
2357
|
createVNode(LfIcon, {
|
|
2288
2358
|
name: __props.icon,
|
|
@@ -2291,31 +2361,31 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2291
2361
|
}, null, 8, ["name", "path"])
|
|
2292
2362
|
], true)
|
|
2293
2363
|
])) : createCommentVNode("", true),
|
|
2294
|
-
createElementVNode("p", _hoisted_2$
|
|
2364
|
+
createElementVNode("p", _hoisted_2$5, [
|
|
2295
2365
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2296
2366
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2297
2367
|
], true)
|
|
2298
2368
|
]),
|
|
2299
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2369
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$3, [
|
|
2300
2370
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2301
2371
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2302
2372
|
], true)
|
|
2303
2373
|
])) : createCommentVNode("", true),
|
|
2304
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2374
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
2305
2375
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2306
2376
|
])) : createCommentVNode("", true)
|
|
2307
2377
|
], 2);
|
|
2308
2378
|
};
|
|
2309
2379
|
}
|
|
2310
2380
|
});
|
|
2311
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2312
|
-
const _hoisted_1$
|
|
2381
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2382
|
+
const _hoisted_1$5 = {
|
|
2313
2383
|
key: 0,
|
|
2314
2384
|
class: "lf-skeleton-group",
|
|
2315
2385
|
"aria-busy": true,
|
|
2316
2386
|
"aria-live": "polite"
|
|
2317
2387
|
};
|
|
2318
|
-
const _sfc_main$
|
|
2388
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2319
2389
|
__name: "LfSkeleton",
|
|
2320
2390
|
props: {
|
|
2321
2391
|
variant: { default: "text" },
|
|
@@ -2330,7 +2400,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2330
2400
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2331
2401
|
}
|
|
2332
2402
|
return (_ctx, _cache) => {
|
|
2333
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2403
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
2334
2404
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2335
2405
|
return openBlock(), createElementBlock("span", {
|
|
2336
2406
|
key: n,
|
|
@@ -2347,16 +2417,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2347
2417
|
};
|
|
2348
2418
|
}
|
|
2349
2419
|
});
|
|
2350
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2351
|
-
const _hoisted_1$
|
|
2420
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a01556ce"]]);
|
|
2421
|
+
const _hoisted_1$4 = {
|
|
2352
2422
|
class: "lf-stat__badge",
|
|
2353
2423
|
"aria-hidden": "true"
|
|
2354
2424
|
};
|
|
2355
|
-
const _hoisted_2$
|
|
2356
|
-
const _hoisted_3$
|
|
2357
|
-
const _hoisted_4 = { class: "lf-stat__value-row" };
|
|
2358
|
-
const _hoisted_5 = { class: "lf-stat__value" };
|
|
2359
|
-
const _hoisted_6 = {
|
|
2425
|
+
const _hoisted_2$4 = { class: "lf-stat__body" };
|
|
2426
|
+
const _hoisted_3$2 = { class: "lf-stat__label" };
|
|
2427
|
+
const _hoisted_4$1 = { class: "lf-stat__value-row" };
|
|
2428
|
+
const _hoisted_5$1 = { class: "lf-stat__value" };
|
|
2429
|
+
const _hoisted_6$1 = {
|
|
2360
2430
|
key: 0,
|
|
2361
2431
|
class: "lf-stat__unit"
|
|
2362
2432
|
};
|
|
@@ -2364,7 +2434,7 @@ const _hoisted_7 = {
|
|
|
2364
2434
|
key: 0,
|
|
2365
2435
|
class: "lf-stat__hint"
|
|
2366
2436
|
};
|
|
2367
|
-
const _sfc_main$
|
|
2437
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2368
2438
|
__name: "LfStatCard",
|
|
2369
2439
|
props: {
|
|
2370
2440
|
label: {},
|
|
@@ -2393,7 +2463,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2393
2463
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2394
2464
|
}, {
|
|
2395
2465
|
default: withCtx(() => [
|
|
2396
|
-
createElementVNode("span", _hoisted_1$
|
|
2466
|
+
createElementVNode("span", _hoisted_1$4, [
|
|
2397
2467
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2398
2468
|
createVNode(LfIcon, {
|
|
2399
2469
|
name: __props.icon,
|
|
@@ -2402,14 +2472,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2402
2472
|
}, null, 8, ["name", "path"])
|
|
2403
2473
|
], true)
|
|
2404
2474
|
]),
|
|
2405
|
-
createElementVNode("div", _hoisted_2$
|
|
2406
|
-
createElementVNode("div", _hoisted_3$
|
|
2407
|
-
createElementVNode("div", _hoisted_4, [
|
|
2408
|
-
createElementVNode("span", _hoisted_5, [
|
|
2475
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
2476
|
+
createElementVNode("div", _hoisted_3$2, toDisplayString(__props.label), 1),
|
|
2477
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
2478
|
+
createElementVNode("span", _hoisted_5$1, [
|
|
2409
2479
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2410
2480
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2411
2481
|
], true),
|
|
2412
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2482
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2413
2483
|
]),
|
|
2414
2484
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2415
2485
|
key: 0,
|
|
@@ -2430,10 +2500,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2430
2500
|
};
|
|
2431
2501
|
}
|
|
2432
2502
|
});
|
|
2433
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2434
|
-
const _hoisted_1$
|
|
2435
|
-
const _hoisted_2$
|
|
2436
|
-
const _sfc_main$
|
|
2503
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-8499d382"]]);
|
|
2504
|
+
const _hoisted_1$3 = ["aria-describedby"];
|
|
2505
|
+
const _hoisted_2$3 = ["id"];
|
|
2506
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2437
2507
|
__name: "LfTooltip",
|
|
2438
2508
|
props: {
|
|
2439
2509
|
text: {},
|
|
@@ -2450,7 +2520,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2450
2520
|
"aria-describedby": unref(bubbleId)
|
|
2451
2521
|
}, [
|
|
2452
2522
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2453
|
-
], 8, _hoisted_1$
|
|
2523
|
+
], 8, _hoisted_1$3),
|
|
2454
2524
|
createElementVNode("span", {
|
|
2455
2525
|
id: unref(bubbleId),
|
|
2456
2526
|
class: "lf-tooltip__bubble",
|
|
@@ -2459,19 +2529,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2459
2529
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2460
2530
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2461
2531
|
], true)
|
|
2462
|
-
], 8, _hoisted_2$
|
|
2532
|
+
], 8, _hoisted_2$3)
|
|
2463
2533
|
], 2);
|
|
2464
2534
|
};
|
|
2465
2535
|
}
|
|
2466
2536
|
});
|
|
2467
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2468
|
-
const _hoisted_1$
|
|
2469
|
-
const _hoisted_2$
|
|
2470
|
-
const _hoisted_3 = {
|
|
2537
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-bfa77821"]]);
|
|
2538
|
+
const _hoisted_1$2 = ["disabled", "onClick"];
|
|
2539
|
+
const _hoisted_2$2 = { class: "lf-menu__item-text" };
|
|
2540
|
+
const _hoisted_3$1 = {
|
|
2471
2541
|
key: 0,
|
|
2472
2542
|
class: "lf-menu__item-desc"
|
|
2473
2543
|
};
|
|
2474
|
-
const _sfc_main$
|
|
2544
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2475
2545
|
__name: "LfMenu",
|
|
2476
2546
|
props: {
|
|
2477
2547
|
items: { default: () => [] },
|
|
@@ -2561,11 +2631,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2561
2631
|
size: "1.125rem",
|
|
2562
2632
|
class: "lf-menu__item-icon"
|
|
2563
2633
|
}), null, 16)) : createCommentVNode("", true),
|
|
2564
|
-
createElementVNode("span", _hoisted_2$
|
|
2634
|
+
createElementVNode("span", _hoisted_2$2, [
|
|
2565
2635
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2566
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2636
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2567
2637
|
])
|
|
2568
|
-
], 8, _hoisted_1$
|
|
2638
|
+
], 8, _hoisted_1$2);
|
|
2569
2639
|
}), 128))
|
|
2570
2640
|
], true)
|
|
2571
2641
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2576,7 +2646,71 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2576
2646
|
};
|
|
2577
2647
|
}
|
|
2578
2648
|
});
|
|
2579
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2649
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-500f54dd"]]);
|
|
2650
|
+
const _hoisted_1$1 = { class: "lf-rail__list" };
|
|
2651
|
+
const _hoisted_2$1 = { class: "lf-rail__icon" };
|
|
2652
|
+
const _hoisted_3 = {
|
|
2653
|
+
key: 2,
|
|
2654
|
+
class: "lf-rail__badge"
|
|
2655
|
+
};
|
|
2656
|
+
const _hoisted_4 = { class: "lf-rail__name" };
|
|
2657
|
+
const _hoisted_5 = { class: "lf-rail__short" };
|
|
2658
|
+
const _hoisted_6 = { class: "lf-rail__long" };
|
|
2659
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2660
|
+
__name: "LfNavRail",
|
|
2661
|
+
props: {
|
|
2662
|
+
items: {},
|
|
2663
|
+
current: {},
|
|
2664
|
+
link: { default: "a" }
|
|
2665
|
+
},
|
|
2666
|
+
emits: ["navigate"],
|
|
2667
|
+
setup(__props, { emit: __emit }) {
|
|
2668
|
+
const props = __props;
|
|
2669
|
+
const emit = __emit;
|
|
2670
|
+
function linkAttrs(item) {
|
|
2671
|
+
return props.link === "a" ? { href: item.to } : { to: item.to };
|
|
2672
|
+
}
|
|
2673
|
+
function isActive(item) {
|
|
2674
|
+
if (props.current === void 0) return false;
|
|
2675
|
+
return props.current === item.to || props.current.startsWith(`${item.to}/`);
|
|
2676
|
+
}
|
|
2677
|
+
return (_ctx, _cache) => {
|
|
2678
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2679
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
2680
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({
|
|
2681
|
+
key: item.to
|
|
2682
|
+
}, { ref_for: true }, linkAttrs(item), {
|
|
2683
|
+
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
2684
|
+
title: item.label,
|
|
2685
|
+
"aria-label": item.label,
|
|
2686
|
+
onClick: ($event) => emit("navigate", item)
|
|
2687
|
+
}), {
|
|
2688
|
+
default: withCtx(() => [
|
|
2689
|
+
createElementVNode("span", _hoisted_2$1, [
|
|
2690
|
+
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2691
|
+
key: 0,
|
|
2692
|
+
path: item.iconPath,
|
|
2693
|
+
size: "1.15rem"
|
|
2694
|
+
}, null, 8, ["path"])) : item.icon ? (openBlock(), createBlock(LfIcon, {
|
|
2695
|
+
key: 1,
|
|
2696
|
+
name: item.icon,
|
|
2697
|
+
size: "1.15rem"
|
|
2698
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2699
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2700
|
+
]),
|
|
2701
|
+
createElementVNode("span", _hoisted_4, [
|
|
2702
|
+
createElementVNode("span", _hoisted_5, toDisplayString(item.short ?? item.label), 1),
|
|
2703
|
+
createElementVNode("span", _hoisted_6, toDisplayString(item.label), 1)
|
|
2704
|
+
])
|
|
2705
|
+
]),
|
|
2706
|
+
_: 2
|
|
2707
|
+
}, 1040, ["class", "title", "aria-label", "onClick"]);
|
|
2708
|
+
}), 128))
|
|
2709
|
+
]);
|
|
2710
|
+
};
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-29095523"]]);
|
|
2580
2714
|
const _hoisted_1 = {
|
|
2581
2715
|
key: 0,
|
|
2582
2716
|
class: "lf-divider lf-divider--labeled",
|
|
@@ -2763,6 +2897,7 @@ export {
|
|
|
2763
2897
|
LfIconButton,
|
|
2764
2898
|
LfMenu,
|
|
2765
2899
|
LfModal,
|
|
2900
|
+
LfNavRail,
|
|
2766
2901
|
LfPageHeader,
|
|
2767
2902
|
LfPagination,
|
|
2768
2903
|
LfRadioGroup,
|