@loafacto/ui 0.17.0 → 0.18.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/{LfSegmented-CPA9J2e7.js → LfSegmented-C35GdK7N.js} +40 -2
- package/dist/LfSegmented-C35GdK7N.js.map +1 -0
- package/dist/components/AppShell.vue.d.ts +6 -1
- package/dist/components/LfDateRange.vue.d.ts +44 -0
- package/dist/components/LfDescriptions.vue.d.ts +29 -0
- package/dist/components/LfDrawer.vue.d.ts +52 -0
- package/dist/components/LfKbd.vue.d.ts +7 -0
- package/dist/components/LfProgress.vue.d.ts +21 -0
- package/dist/components/LfSplitPane.vue.d.ts +35 -0
- package/dist/components/LfSteps.vue.d.ts +16 -0
- package/dist/components/LfTable.vue.d.ts +27 -5
- package/dist/components/LfTabs.vue.d.ts +36 -0
- package/dist/components/LfTagInput.vue.d.ts +30 -0
- package/dist/components/LfToolbar.vue.d.ts +21 -0
- package/dist/components/LfTree.vue.d.ts +51 -0
- package/dist/icons.d.ts +37 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +1561 -364
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +867 -115
- package/dist/map3d/LfMap3d.vue.d.ts +22 -3
- package/dist/map3d.js +29 -18
- package/dist/map3d.js.map +1 -1
- package/dist/types.d.ts +48 -0
- package/package.json +1 -1
- package/dist/LfSegmented-CPA9J2e7.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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-
|
|
5
|
-
import { e as e2, f as f2 } from "./LfSegmented-
|
|
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-C35GdK7N.js";
|
|
5
|
+
import { e as e2, f as f2 } from "./LfSegmented-C35GdK7N.js";
|
|
6
6
|
import { defineStore } from "pinia";
|
|
7
7
|
const LOAFACTO_SERVICES = [
|
|
8
8
|
{
|
|
@@ -151,26 +151,26 @@ function useTheme() {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const _sfc_main$
|
|
155
|
-
const _hoisted_1$
|
|
154
|
+
const _sfc_main$F = {};
|
|
155
|
+
const _hoisted_1$D = {
|
|
156
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
157
157
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
158
158
|
"aria-hidden": "true"
|
|
159
159
|
};
|
|
160
160
|
function _sfc_render$1(_ctx, _cache) {
|
|
161
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
161
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$D, [..._cache[0] || (_cache[0] = [
|
|
162
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)
|
|
163
163
|
])]);
|
|
164
164
|
}
|
|
165
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
166
|
-
const _sfc_main$
|
|
167
|
-
const _hoisted_1$
|
|
165
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$1]]);
|
|
166
|
+
const _sfc_main$E = {};
|
|
167
|
+
const _hoisted_1$C = {
|
|
168
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
169
169
|
viewBox: "30 -4 142 168",
|
|
170
170
|
"aria-hidden": "true"
|
|
171
171
|
};
|
|
172
172
|
function _sfc_render(_ctx, _cache) {
|
|
173
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
173
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$C, [..._cache[0] || (_cache[0] = [
|
|
174
174
|
createElementVNode("circle", {
|
|
175
175
|
cx: "74",
|
|
176
176
|
cy: "27",
|
|
@@ -193,20 +193,20 @@ function _sfc_render(_ctx, _cache) {
|
|
|
193
193
|
}, null, -1)
|
|
194
194
|
])]);
|
|
195
195
|
}
|
|
196
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
197
|
-
const _hoisted_1$
|
|
198
|
-
const _hoisted_2$
|
|
199
|
-
const _hoisted_3$
|
|
200
|
-
const _hoisted_4$
|
|
201
|
-
const _hoisted_5$
|
|
202
|
-
const _hoisted_6$
|
|
203
|
-
const _hoisted_7$
|
|
204
|
-
const _hoisted_8$
|
|
196
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render]]);
|
|
197
|
+
const _hoisted_1$B = { class: "lf-topbar" };
|
|
198
|
+
const _hoisted_2$x = { class: "lf-topbar__inner" };
|
|
199
|
+
const _hoisted_3$r = ["aria-label", "title", "aria-expanded"];
|
|
200
|
+
const _hoisted_4$m = ["href", "aria-label"];
|
|
201
|
+
const _hoisted_5$j = ["src"];
|
|
202
|
+
const _hoisted_6$e = { class: "lf-brand__name" };
|
|
203
|
+
const _hoisted_7$d = ["aria-expanded"];
|
|
204
|
+
const _hoisted_8$5 = {
|
|
205
205
|
key: 0,
|
|
206
206
|
class: "lf-switcher__menu",
|
|
207
207
|
role: "menu"
|
|
208
208
|
};
|
|
209
|
-
const _hoisted_9$
|
|
209
|
+
const _hoisted_9$3 = ["href", "onClick"];
|
|
210
210
|
const _hoisted_10$2 = {
|
|
211
211
|
key: 0,
|
|
212
212
|
class: "lf-switcher__icon",
|
|
@@ -236,11 +236,7 @@ const _hoisted_19 = {
|
|
|
236
236
|
};
|
|
237
237
|
const _hoisted_20 = ["href"];
|
|
238
238
|
const _hoisted_21 = ["href"];
|
|
239
|
-
const _hoisted_22 =
|
|
240
|
-
key: 4,
|
|
241
|
-
class: "lf-shortcuts",
|
|
242
|
-
"aria-label": "바로가기"
|
|
243
|
-
};
|
|
239
|
+
const _hoisted_22 = ["aria-label"];
|
|
244
240
|
const _hoisted_23 = ["href", "title", "aria-label"];
|
|
245
241
|
const _hoisted_24 = {
|
|
246
242
|
viewBox: "0 0 24 24",
|
|
@@ -249,17 +245,18 @@ const _hoisted_24 = {
|
|
|
249
245
|
const _hoisted_25 = ["d"];
|
|
250
246
|
const _hoisted_26 = ["title", "aria-label"];
|
|
251
247
|
const _hoisted_27 = ["d"];
|
|
252
|
-
const _hoisted_28 =
|
|
253
|
-
const _hoisted_29 = {
|
|
248
|
+
const _hoisted_28 = ["aria-label"];
|
|
249
|
+
const _hoisted_29 = { class: "lf-content lf-content--rail" };
|
|
250
|
+
const _hoisted_30 = {
|
|
254
251
|
key: 2,
|
|
255
252
|
class: "lf-content"
|
|
256
253
|
};
|
|
257
|
-
const
|
|
258
|
-
const
|
|
254
|
+
const _hoisted_31 = { class: "site-footer" };
|
|
255
|
+
const _hoisted_32 = { class: "site-footer-inner" };
|
|
259
256
|
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";
|
|
260
257
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
261
258
|
const RAIL_KEY = "lf-rail-hidden";
|
|
262
|
-
const _sfc_main$
|
|
259
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
263
260
|
__name: "AppShell",
|
|
264
261
|
props: {
|
|
265
262
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -273,7 +270,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
273
270
|
logoUrl: {},
|
|
274
271
|
user: { default: null },
|
|
275
272
|
backgroundColor: {},
|
|
276
|
-
backgroundImage: {}
|
|
273
|
+
backgroundImage: {},
|
|
274
|
+
labels: {}
|
|
277
275
|
},
|
|
278
276
|
emits: ["navigate"],
|
|
279
277
|
setup(__props, { emit: __emit }) {
|
|
@@ -302,6 +300,22 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
302
300
|
}
|
|
303
301
|
const props = __props;
|
|
304
302
|
const emit = __emit;
|
|
303
|
+
const DEFAULT_LABELS = {
|
|
304
|
+
services: "서비스",
|
|
305
|
+
comingSoon: "준비 중",
|
|
306
|
+
menu: "메뉴",
|
|
307
|
+
menuOpen: "메뉴 열기",
|
|
308
|
+
menuClose: "메뉴 닫기",
|
|
309
|
+
myPage: "내 정보",
|
|
310
|
+
logout: "로그아웃",
|
|
311
|
+
shortcuts: "바로가기",
|
|
312
|
+
newTab: "새 탭에서 열림",
|
|
313
|
+
toLight: "밝은 테마로",
|
|
314
|
+
toDark: "어두운 테마로",
|
|
315
|
+
toLightLong: "밝은 테마로 전환",
|
|
316
|
+
toDarkLong: "어두운 테마로 전환"
|
|
317
|
+
};
|
|
318
|
+
const t = computed(() => ({ ...DEFAULT_LABELS, ...props.labels }));
|
|
305
319
|
const switcherOpen = ref(false);
|
|
306
320
|
const switcherEl = ref(null);
|
|
307
321
|
const userOpen = ref(false);
|
|
@@ -398,14 +412,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
398
412
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
399
413
|
})
|
|
400
414
|
}, null, 4)) : createCommentVNode("", true),
|
|
401
|
-
createElementVNode("header", _hoisted_1$
|
|
402
|
-
createElementVNode("div", _hoisted_2$
|
|
415
|
+
createElementVNode("header", _hoisted_1$B, [
|
|
416
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
403
417
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
404
418
|
key: 0,
|
|
405
419
|
type: "button",
|
|
406
420
|
class: "lf-rail-toggle",
|
|
407
|
-
"aria-label": railHidden.value ?
|
|
408
|
-
title: railHidden.value ?
|
|
421
|
+
"aria-label": railHidden.value ? t.value.menuOpen : t.value.menuClose,
|
|
422
|
+
title: railHidden.value ? t.value.menuOpen : t.value.menuClose,
|
|
409
423
|
"aria-expanded": !railHidden.value,
|
|
410
424
|
onClick: toggleRail
|
|
411
425
|
}, [..._cache[5] || (_cache[5] = [
|
|
@@ -418,7 +432,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
418
432
|
fill: "currentColor"
|
|
419
433
|
})
|
|
420
434
|
], -1)
|
|
421
|
-
])], 8, _hoisted_3$
|
|
435
|
+
])], 8, _hoisted_3$r)) : createCommentVNode("", true),
|
|
422
436
|
createElementVNode("a", {
|
|
423
437
|
class: "lf-brand",
|
|
424
438
|
href: __props.brandHref,
|
|
@@ -430,13 +444,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
430
444
|
src: __props.logoUrl,
|
|
431
445
|
alt: "",
|
|
432
446
|
class: "lf-brand__logo"
|
|
433
|
-
}, null, 8, _hoisted_5$
|
|
434
|
-
createElementVNode("span", _hoisted_6$
|
|
447
|
+
}, null, 8, _hoisted_5$j),
|
|
448
|
+
createElementVNode("span", _hoisted_6$e, toDisplayString(__props.brandName), 1)
|
|
435
449
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
436
450
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
437
451
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
438
452
|
], 64))
|
|
439
|
-
], 8, _hoisted_4$
|
|
453
|
+
], 8, _hoisted_4$m),
|
|
440
454
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
441
455
|
key: 1,
|
|
442
456
|
ref_key: "switcherEl",
|
|
@@ -450,7 +464,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
450
464
|
"aria-haspopup": "menu",
|
|
451
465
|
onClick: _cache[1] || (_cache[1] = ($event) => switcherOpen.value = !switcherOpen.value)
|
|
452
466
|
}, [
|
|
453
|
-
createElementVNode("span", null, toDisplayString(((_a = currentService.value) == null ? void 0 : _a.name) ??
|
|
467
|
+
createElementVNode("span", null, toDisplayString(((_a = currentService.value) == null ? void 0 : _a.name) ?? t.value.services), 1),
|
|
454
468
|
_cache[6] || (_cache[6] = createElementVNode("svg", {
|
|
455
469
|
class: "lf-switcher__caret",
|
|
456
470
|
viewBox: "0 0 24 24",
|
|
@@ -461,10 +475,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
461
475
|
fill: "currentColor"
|
|
462
476
|
})
|
|
463
477
|
], -1))
|
|
464
|
-
], 8, _hoisted_7$
|
|
478
|
+
], 8, _hoisted_7$d),
|
|
465
479
|
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
466
480
|
default: withCtx(() => [
|
|
467
|
-
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
481
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
468
482
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
469
483
|
return openBlock(), createElementBlock("a", {
|
|
470
484
|
key: svc.id,
|
|
@@ -483,8 +497,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
483
497
|
}, null, 8, _hoisted_11$1)
|
|
484
498
|
])) : createCommentVNode("", true),
|
|
485
499
|
createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
|
|
486
|
-
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1,
|
|
487
|
-
], 10, _hoisted_9$
|
|
500
|
+
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, toDisplayString(t.value.comingSoon), 1)) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
501
|
+
], 10, _hoisted_9$3);
|
|
488
502
|
}), 128))
|
|
489
503
|
])) : createCommentVNode("", true)
|
|
490
504
|
]),
|
|
@@ -535,19 +549,23 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
535
549
|
__props.myPageHref ? (openBlock(), createElementBlock("a", {
|
|
536
550
|
key: 1,
|
|
537
551
|
href: __props.myPageHref
|
|
538
|
-
},
|
|
552
|
+
}, toDisplayString(t.value.myPage), 9, _hoisted_20)) : createCommentVNode("", true),
|
|
539
553
|
renderSlot(_ctx.$slots, "user-menu", {}, void 0, true),
|
|
540
554
|
__props.logoutHref ? (openBlock(), createElementBlock("a", {
|
|
541
555
|
key: 2,
|
|
542
556
|
class: "lf-user__logout",
|
|
543
557
|
href: __props.logoutHref
|
|
544
|
-
},
|
|
558
|
+
}, toDisplayString(t.value.logout), 9, _hoisted_21)) : createCommentVNode("", true)
|
|
545
559
|
])) : createCommentVNode("", true)
|
|
546
560
|
]),
|
|
547
561
|
_: 3
|
|
548
562
|
})
|
|
549
563
|
], 512)) : renderSlot(_ctx.$slots, "auth-actions", {}, void 0, true, 3),
|
|
550
|
-
__props.shortcuts.length ? (openBlock(), createElementBlock("nav",
|
|
564
|
+
__props.shortcuts.length ? (openBlock(), createElementBlock("nav", {
|
|
565
|
+
key: 4,
|
|
566
|
+
class: "lf-shortcuts",
|
|
567
|
+
"aria-label": t.value.shortcuts
|
|
568
|
+
}, [
|
|
551
569
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (s) => {
|
|
552
570
|
return openBlock(), createElementBlock("a", {
|
|
553
571
|
key: s.id,
|
|
@@ -556,7 +574,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
556
574
|
target: "_blank",
|
|
557
575
|
rel: "noopener noreferrer",
|
|
558
576
|
title: s.label,
|
|
559
|
-
"aria-label": `${s.label} (
|
|
577
|
+
"aria-label": `${s.label} (${t.value.newTab})`
|
|
560
578
|
}, [
|
|
561
579
|
(openBlock(), createElementBlock("svg", _hoisted_24, [
|
|
562
580
|
createElementVNode("path", {
|
|
@@ -566,13 +584,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
566
584
|
]))
|
|
567
585
|
], 8, _hoisted_23);
|
|
568
586
|
}), 128))
|
|
569
|
-
])) : createCommentVNode("", true),
|
|
587
|
+
], 8, _hoisted_22)) : createCommentVNode("", true),
|
|
570
588
|
__props.themeToggle ? (openBlock(), createElementBlock("button", {
|
|
571
589
|
key: 5,
|
|
572
590
|
type: "button",
|
|
573
591
|
class: "lf-glass lf-icon-btn",
|
|
574
|
-
title: unref(mode2) === "dark" ?
|
|
575
|
-
"aria-label": unref(mode2) === "dark" ?
|
|
592
|
+
title: unref(mode2) === "dark" ? t.value.toLight : t.value.toDark,
|
|
593
|
+
"aria-label": unref(mode2) === "dark" ? t.value.toLightLong : t.value.toDarkLong,
|
|
576
594
|
onClick: onThemeClick
|
|
577
595
|
}, [
|
|
578
596
|
(openBlock(), createElementBlock("svg", {
|
|
@@ -596,19 +614,19 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
596
614
|
}, [
|
|
597
615
|
createElementVNode("nav", {
|
|
598
616
|
class: normalizeClass(["lf-rail", { "lf-rail--open": railOpen.value, "lf-rail--hidden": railHidden.value, "lf-rail--overlay": railOverlay.value }]),
|
|
599
|
-
"aria-label":
|
|
617
|
+
"aria-label": t.value.menu,
|
|
600
618
|
onClick: _cache[4] || (_cache[4] = ($event) => railOpen.value = false)
|
|
601
619
|
}, [
|
|
602
620
|
renderSlot(_ctx.$slots, "rail", {}, void 0, true)
|
|
603
|
-
],
|
|
604
|
-
createElementVNode("main",
|
|
621
|
+
], 10, _hoisted_28),
|
|
622
|
+
createElementVNode("main", _hoisted_29, [
|
|
605
623
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
606
624
|
])
|
|
607
|
-
], 2)) : (openBlock(), createElementBlock("main",
|
|
625
|
+
], 2)) : (openBlock(), createElementBlock("main", _hoisted_30, [
|
|
608
626
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
609
627
|
])),
|
|
610
|
-
createElementVNode("footer",
|
|
611
|
-
createElementVNode("div",
|
|
628
|
+
createElementVNode("footer", _hoisted_31, [
|
|
629
|
+
createElementVNode("div", _hoisted_32, [
|
|
612
630
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
613
631
|
_cache[9] || (_cache[9] = createElementVNode("p", { class: "site-footer-copy" }, "© Loafacto. All rights reserved.", -1))
|
|
614
632
|
], true)
|
|
@@ -618,7 +636,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
618
636
|
};
|
|
619
637
|
}
|
|
620
638
|
});
|
|
621
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
639
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-b8a57f75"]]);
|
|
622
640
|
function generateId() {
|
|
623
641
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
624
642
|
}
|
|
@@ -652,26 +670,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
652
670
|
}
|
|
653
671
|
return { items, add, remove, success, error, info, warning };
|
|
654
672
|
});
|
|
655
|
-
const _hoisted_1$
|
|
673
|
+
const _hoisted_1$A = {
|
|
656
674
|
class: "toast-container",
|
|
657
675
|
role: "region",
|
|
658
676
|
"aria-label": "알림"
|
|
659
677
|
};
|
|
660
|
-
const _hoisted_2$
|
|
661
|
-
const _hoisted_3$
|
|
678
|
+
const _hoisted_2$w = ["onClick"];
|
|
679
|
+
const _hoisted_3$q = {
|
|
662
680
|
class: "toast-icon",
|
|
663
681
|
viewBox: "0 0 24 24",
|
|
664
682
|
"aria-hidden": "true"
|
|
665
683
|
};
|
|
666
|
-
const _hoisted_4$
|
|
667
|
-
const _hoisted_5$
|
|
668
|
-
const _hoisted_6$
|
|
669
|
-
const _hoisted_7$
|
|
684
|
+
const _hoisted_4$l = ["d"];
|
|
685
|
+
const _hoisted_5$i = { class: "toast-message" };
|
|
686
|
+
const _hoisted_6$d = ["onClick"];
|
|
687
|
+
const _hoisted_7$c = {
|
|
670
688
|
viewBox: "0 0 24 24",
|
|
671
689
|
"aria-hidden": "true"
|
|
672
690
|
};
|
|
673
|
-
const _hoisted_8$
|
|
674
|
-
const _sfc_main$
|
|
691
|
+
const _hoisted_8$4 = ["d"];
|
|
692
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
675
693
|
__name: "AppToast",
|
|
676
694
|
setup(__props) {
|
|
677
695
|
const toastStore = useToastStore();
|
|
@@ -703,7 +721,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
703
721
|
});
|
|
704
722
|
return (_ctx, _cache) => {
|
|
705
723
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
706
|
-
createElementVNode("div", _hoisted_1$
|
|
724
|
+
createElementVNode("div", _hoisted_1$A, [
|
|
707
725
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
708
726
|
default: withCtx(() => [
|
|
709
727
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -713,27 +731,27 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
713
731
|
role: "alert",
|
|
714
732
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
715
733
|
}, [
|
|
716
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
734
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$q, [
|
|
717
735
|
createElementVNode("path", {
|
|
718
736
|
d: ICON_PATHS[item.type],
|
|
719
737
|
fill: "currentColor"
|
|
720
|
-
}, null, 8, _hoisted_4$
|
|
738
|
+
}, null, 8, _hoisted_4$l)
|
|
721
739
|
])),
|
|
722
|
-
createElementVNode("span", _hoisted_5$
|
|
740
|
+
createElementVNode("span", _hoisted_5$i, toDisplayString(item.message), 1),
|
|
723
741
|
createElementVNode("button", {
|
|
724
742
|
type: "button",
|
|
725
743
|
class: "toast-close",
|
|
726
744
|
"aria-label": "닫기",
|
|
727
745
|
onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
|
|
728
746
|
}, [
|
|
729
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
747
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$c, [
|
|
730
748
|
createElementVNode("path", {
|
|
731
749
|
d: ICON_PATHS.close,
|
|
732
750
|
fill: "currentColor"
|
|
733
|
-
}, null, 8, _hoisted_8$
|
|
751
|
+
}, null, 8, _hoisted_8$4)
|
|
734
752
|
]))
|
|
735
|
-
], 8, _hoisted_6$
|
|
736
|
-
], 10, _hoisted_2$
|
|
753
|
+
], 8, _hoisted_6$d)
|
|
754
|
+
], 10, _hoisted_2$w);
|
|
737
755
|
}), 128))
|
|
738
756
|
]),
|
|
739
757
|
_: 1
|
|
@@ -743,7 +761,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
743
761
|
};
|
|
744
762
|
}
|
|
745
763
|
});
|
|
746
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
764
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-58e54e0c"]]);
|
|
747
765
|
const useLoadingStore = defineStore("loading", () => {
|
|
748
766
|
const count = ref(0);
|
|
749
767
|
const loading = computed(() => count.value > 0);
|
|
@@ -763,14 +781,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
763
781
|
}
|
|
764
782
|
return { loading, count, start, stop, withLoading };
|
|
765
783
|
});
|
|
766
|
-
const _hoisted_1$
|
|
784
|
+
const _hoisted_1$z = {
|
|
767
785
|
key: 0,
|
|
768
786
|
class: "loading-overlay",
|
|
769
787
|
role: "status",
|
|
770
788
|
"aria-live": "polite",
|
|
771
789
|
"aria-label": "로딩 중"
|
|
772
790
|
};
|
|
773
|
-
const _sfc_main$
|
|
791
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
774
792
|
__name: "AppLoadingOverlay",
|
|
775
793
|
setup(__props) {
|
|
776
794
|
const loadingStore = useLoadingStore();
|
|
@@ -778,7 +796,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
778
796
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
779
797
|
createVNode(Transition, { name: "fade" }, {
|
|
780
798
|
default: withCtx(() => [
|
|
781
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
799
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$z, [..._cache[0] || (_cache[0] = [
|
|
782
800
|
createElementVNode("div", {
|
|
783
801
|
class: "loading-spinner",
|
|
784
802
|
"aria-hidden": "true"
|
|
@@ -791,7 +809,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
791
809
|
};
|
|
792
810
|
}
|
|
793
811
|
});
|
|
794
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
812
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
795
813
|
const useConfirmStore = defineStore("confirm", () => {
|
|
796
814
|
const open = ref(false);
|
|
797
815
|
const title = ref("확인");
|
|
@@ -839,27 +857,27 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
839
857
|
resolve
|
|
840
858
|
};
|
|
841
859
|
});
|
|
842
|
-
const _hoisted_1$
|
|
860
|
+
const _hoisted_1$y = {
|
|
843
861
|
key: 0,
|
|
844
862
|
class: "app-confirm-backdrop"
|
|
845
863
|
};
|
|
846
|
-
const _hoisted_2$
|
|
864
|
+
const _hoisted_2$v = {
|
|
847
865
|
class: "app-confirm",
|
|
848
866
|
role: "dialog",
|
|
849
867
|
"aria-modal": "true"
|
|
850
868
|
};
|
|
851
|
-
const _hoisted_3$
|
|
852
|
-
const _hoisted_4$
|
|
853
|
-
const _hoisted_5$
|
|
854
|
-
const _hoisted_6$
|
|
855
|
-
const _hoisted_7$
|
|
869
|
+
const _hoisted_3$p = { class: "app-confirm__header" };
|
|
870
|
+
const _hoisted_4$k = { class: "app-confirm__title" };
|
|
871
|
+
const _hoisted_5$h = { class: "app-confirm__body" };
|
|
872
|
+
const _hoisted_6$c = { class: "app-confirm__message" };
|
|
873
|
+
const _hoisted_7$b = {
|
|
856
874
|
key: 0,
|
|
857
875
|
class: "app-confirm__require"
|
|
858
876
|
};
|
|
859
|
-
const _hoisted_8$
|
|
860
|
-
const _hoisted_9$
|
|
877
|
+
const _hoisted_8$3 = { class: "app-confirm__require-label" };
|
|
878
|
+
const _hoisted_9$2 = { class: "app-confirm__actions" };
|
|
861
879
|
const _hoisted_10$1 = ["disabled"];
|
|
862
|
-
const _sfc_main$
|
|
880
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
863
881
|
__name: "AppConfirmModal",
|
|
864
882
|
setup(__props) {
|
|
865
883
|
const store = useConfirmStore();
|
|
@@ -884,15 +902,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
884
902
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
885
903
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
886
904
|
default: withCtx(() => [
|
|
887
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
888
|
-
createElementVNode("div", _hoisted_2$
|
|
889
|
-
createElementVNode("div", _hoisted_3$
|
|
890
|
-
createElementVNode("h3", _hoisted_4$
|
|
905
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
906
|
+
createElementVNode("div", _hoisted_2$v, [
|
|
907
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
908
|
+
createElementVNode("h3", _hoisted_4$k, toDisplayString(unref(store).title), 1)
|
|
891
909
|
]),
|
|
892
|
-
createElementVNode("div", _hoisted_5$
|
|
893
|
-
createElementVNode("p", _hoisted_6$
|
|
894
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
895
|
-
createElementVNode("span", _hoisted_8$
|
|
910
|
+
createElementVNode("div", _hoisted_5$h, [
|
|
911
|
+
createElementVNode("p", _hoisted_6$c, toDisplayString(unref(store).message), 1),
|
|
912
|
+
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$b, [
|
|
913
|
+
createElementVNode("span", _hoisted_8$3, [
|
|
896
914
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
897
915
|
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
898
916
|
]),
|
|
@@ -910,7 +928,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
910
928
|
])
|
|
911
929
|
])) : createCommentVNode("", true)
|
|
912
930
|
]),
|
|
913
|
-
createElementVNode("div", _hoisted_9$
|
|
931
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
914
932
|
createElementVNode("button", {
|
|
915
933
|
type: "button",
|
|
916
934
|
class: "app-confirm__btn app-confirm__btn--ghost",
|
|
@@ -932,12 +950,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
932
950
|
};
|
|
933
951
|
}
|
|
934
952
|
});
|
|
935
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
936
|
-
const _hoisted_1$
|
|
953
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-561536f9"]]);
|
|
954
|
+
const _hoisted_1$x = {
|
|
937
955
|
key: 2,
|
|
938
956
|
class: "lf-btn__label"
|
|
939
957
|
};
|
|
940
|
-
const _sfc_main$
|
|
958
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
941
959
|
__name: "LfButton",
|
|
942
960
|
props: {
|
|
943
961
|
variant: { default: "ghost" },
|
|
@@ -974,7 +992,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
974
992
|
name: __props.icon,
|
|
975
993
|
path: __props.iconPath
|
|
976
994
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
977
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
995
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$x, [
|
|
978
996
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
979
997
|
])) : createCommentVNode("", true),
|
|
980
998
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -987,19 +1005,19 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
987
1005
|
};
|
|
988
1006
|
}
|
|
989
1007
|
});
|
|
990
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
991
|
-
const _hoisted_1$
|
|
992
|
-
const _hoisted_2$
|
|
1008
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-0d2e2b97"]]);
|
|
1009
|
+
const _hoisted_1$w = { class: "lf-control-wrap" };
|
|
1010
|
+
const _hoisted_2$u = {
|
|
993
1011
|
key: 0,
|
|
994
1012
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
995
1013
|
};
|
|
996
|
-
const _hoisted_3$
|
|
997
|
-
const _hoisted_4$
|
|
1014
|
+
const _hoisted_3$o = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
1015
|
+
const _hoisted_4$j = {
|
|
998
1016
|
key: 1,
|
|
999
1017
|
class: "lf-control-wrap__suffix"
|
|
1000
1018
|
};
|
|
1001
|
-
const _hoisted_5$
|
|
1002
|
-
const _sfc_main$
|
|
1019
|
+
const _hoisted_5$g = ["aria-label"];
|
|
1020
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1003
1021
|
...{ inheritAttrs: false },
|
|
1004
1022
|
__name: "LfTextField",
|
|
1005
1023
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1051,8 +1069,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1051
1069
|
"html-for": unref(inputId)
|
|
1052
1070
|
}), {
|
|
1053
1071
|
default: withCtx(() => [
|
|
1054
|
-
createElementVNode("div", _hoisted_1$
|
|
1055
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1072
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
1073
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$u, [
|
|
1056
1074
|
createVNode(LfIcon, {
|
|
1057
1075
|
name: __props.icon,
|
|
1058
1076
|
path: __props.iconPath,
|
|
@@ -1073,10 +1091,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1073
1091
|
readonly: __props.readonly,
|
|
1074
1092
|
required: __props.required,
|
|
1075
1093
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1076
|
-
}), null, 16, _hoisted_3$
|
|
1094
|
+
}), null, 16, _hoisted_3$o), [
|
|
1077
1095
|
[vModelDynamic, unref(model)]
|
|
1078
1096
|
]),
|
|
1079
|
-
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1097
|
+
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1080
1098
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1081
1099
|
key: 2,
|
|
1082
1100
|
type: "button",
|
|
@@ -1088,7 +1106,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1088
1106
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1089
1107
|
size: "1.125rem"
|
|
1090
1108
|
}, null, 8, ["name"])
|
|
1091
|
-
], 8, _hoisted_5$
|
|
1109
|
+
], 8, _hoisted_5$g)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1092
1110
|
key: 3,
|
|
1093
1111
|
type: "button",
|
|
1094
1112
|
class: "lf-control-action",
|
|
@@ -1107,13 +1125,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1107
1125
|
};
|
|
1108
1126
|
}
|
|
1109
1127
|
});
|
|
1110
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1111
|
-
const _hoisted_1$
|
|
1112
|
-
const _hoisted_2$
|
|
1128
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e113043f"]]);
|
|
1129
|
+
const _hoisted_1$v = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1130
|
+
const _hoisted_2$t = {
|
|
1113
1131
|
key: 0,
|
|
1114
1132
|
class: "lf-textarea__counter"
|
|
1115
1133
|
};
|
|
1116
|
-
const _sfc_main$
|
|
1134
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1117
1135
|
...{ inheritAttrs: false },
|
|
1118
1136
|
__name: "LfTextarea",
|
|
1119
1137
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1177,32 +1195,32 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1177
1195
|
maxlength: __props.maxlength,
|
|
1178
1196
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1179
1197
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1180
|
-
}), null, 16, _hoisted_1$
|
|
1198
|
+
}), null, 16, _hoisted_1$v), [
|
|
1181
1199
|
[vModelText, model.value]
|
|
1182
1200
|
]),
|
|
1183
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1201
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$t, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1184
1202
|
]),
|
|
1185
1203
|
_: 1
|
|
1186
1204
|
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1187
1205
|
};
|
|
1188
1206
|
}
|
|
1189
1207
|
});
|
|
1190
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1191
|
-
const _hoisted_1$
|
|
1192
|
-
const _hoisted_2$
|
|
1208
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-81fbed25"]]);
|
|
1209
|
+
const _hoisted_1$u = ["disabled", "value"];
|
|
1210
|
+
const _hoisted_2$s = {
|
|
1193
1211
|
class: "lf-check__box",
|
|
1194
1212
|
"aria-hidden": "true"
|
|
1195
1213
|
};
|
|
1196
|
-
const _hoisted_3$
|
|
1214
|
+
const _hoisted_3$n = {
|
|
1197
1215
|
key: 0,
|
|
1198
1216
|
class: "lf-check__text"
|
|
1199
1217
|
};
|
|
1200
|
-
const _hoisted_4$
|
|
1201
|
-
const _hoisted_5$
|
|
1218
|
+
const _hoisted_4$i = { class: "lf-check__label" };
|
|
1219
|
+
const _hoisted_5$f = {
|
|
1202
1220
|
key: 0,
|
|
1203
1221
|
class: "lf-check__desc"
|
|
1204
1222
|
};
|
|
1205
|
-
const _sfc_main$
|
|
1223
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1206
1224
|
...{ inheritAttrs: false },
|
|
1207
1225
|
__name: "LfCheckbox",
|
|
1208
1226
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1227,39 +1245,39 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1227
1245
|
type: "checkbox",
|
|
1228
1246
|
disabled: __props.disabled,
|
|
1229
1247
|
value: __props.value
|
|
1230
|
-
}), null, 16, _hoisted_1$
|
|
1248
|
+
}), null, 16, _hoisted_1$u), [
|
|
1231
1249
|
[vModelCheckbox, model.value]
|
|
1232
1250
|
]),
|
|
1233
|
-
createElementVNode("span", _hoisted_2$
|
|
1251
|
+
createElementVNode("span", _hoisted_2$s, [
|
|
1234
1252
|
createVNode(LfIcon, {
|
|
1235
1253
|
name: "check",
|
|
1236
1254
|
size: "0.875rem"
|
|
1237
1255
|
})
|
|
1238
1256
|
]),
|
|
1239
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1240
|
-
createElementVNode("span", _hoisted_4$
|
|
1257
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$n, [
|
|
1258
|
+
createElementVNode("span", _hoisted_4$i, [
|
|
1241
1259
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1242
1260
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1243
1261
|
], true)
|
|
1244
1262
|
]),
|
|
1245
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1263
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$f, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1246
1264
|
])) : createCommentVNode("", true)
|
|
1247
1265
|
], 2);
|
|
1248
1266
|
};
|
|
1249
1267
|
}
|
|
1250
1268
|
});
|
|
1251
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1252
|
-
const _hoisted_1$
|
|
1269
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a86332f0"]]);
|
|
1270
|
+
const _hoisted_1$t = {
|
|
1253
1271
|
key: 0,
|
|
1254
1272
|
class: "lf-switch__text"
|
|
1255
1273
|
};
|
|
1256
|
-
const _hoisted_2$
|
|
1257
|
-
const _hoisted_3$
|
|
1274
|
+
const _hoisted_2$r = { class: "lf-switch__label" };
|
|
1275
|
+
const _hoisted_3$m = {
|
|
1258
1276
|
key: 0,
|
|
1259
1277
|
class: "lf-switch__desc"
|
|
1260
1278
|
};
|
|
1261
|
-
const _hoisted_4$
|
|
1262
|
-
const _sfc_main$
|
|
1279
|
+
const _hoisted_4$h = ["disabled"];
|
|
1280
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1263
1281
|
...{ inheritAttrs: false },
|
|
1264
1282
|
__name: "LfSwitch",
|
|
1265
1283
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1278,13 +1296,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1278
1296
|
return openBlock(), createElementBlock("label", {
|
|
1279
1297
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1280
1298
|
}, [
|
|
1281
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1282
|
-
createElementVNode("span", _hoisted_2$
|
|
1299
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$t, [
|
|
1300
|
+
createElementVNode("span", _hoisted_2$r, [
|
|
1283
1301
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1284
1302
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1285
1303
|
], true)
|
|
1286
1304
|
]),
|
|
1287
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1305
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1288
1306
|
])) : createCommentVNode("", true),
|
|
1289
1307
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1290
1308
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1292,7 +1310,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1292
1310
|
type: "checkbox",
|
|
1293
1311
|
role: "switch",
|
|
1294
1312
|
disabled: __props.disabled
|
|
1295
|
-
}), null, 16, _hoisted_4$
|
|
1313
|
+
}), null, 16, _hoisted_4$h), [
|
|
1296
1314
|
[vModelCheckbox, model.value]
|
|
1297
1315
|
]),
|
|
1298
1316
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1305,33 +1323,33 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1305
1323
|
};
|
|
1306
1324
|
}
|
|
1307
1325
|
});
|
|
1308
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1309
|
-
const _hoisted_1$
|
|
1326
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1327
|
+
const _hoisted_1$s = {
|
|
1310
1328
|
key: 0,
|
|
1311
1329
|
class: "lf-radio-group__legend"
|
|
1312
1330
|
};
|
|
1313
|
-
const _hoisted_2$
|
|
1331
|
+
const _hoisted_2$q = {
|
|
1314
1332
|
key: 0,
|
|
1315
1333
|
class: "lf-radio-group__required",
|
|
1316
1334
|
"aria-hidden": "true"
|
|
1317
1335
|
};
|
|
1318
|
-
const _hoisted_3$
|
|
1319
|
-
const _hoisted_4$
|
|
1320
|
-
const _hoisted_5$
|
|
1321
|
-
const _hoisted_6$
|
|
1336
|
+
const _hoisted_3$l = ["name", "value", "disabled"];
|
|
1337
|
+
const _hoisted_4$g = { class: "lf-radio__text" };
|
|
1338
|
+
const _hoisted_5$e = { class: "lf-radio__label" };
|
|
1339
|
+
const _hoisted_6$b = {
|
|
1322
1340
|
key: 0,
|
|
1323
1341
|
class: "lf-radio__desc"
|
|
1324
1342
|
};
|
|
1325
|
-
const _hoisted_7$
|
|
1343
|
+
const _hoisted_7$a = {
|
|
1326
1344
|
key: 1,
|
|
1327
1345
|
class: "lf-radio-group__error",
|
|
1328
1346
|
role: "alert"
|
|
1329
1347
|
};
|
|
1330
|
-
const _hoisted_8$
|
|
1348
|
+
const _hoisted_8$2 = {
|
|
1331
1349
|
key: 2,
|
|
1332
1350
|
class: "lf-radio-group__hint"
|
|
1333
1351
|
};
|
|
1334
|
-
const _sfc_main$
|
|
1352
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1335
1353
|
__name: "LfRadioGroup",
|
|
1336
1354
|
props: /* @__PURE__ */ mergeModels({
|
|
1337
1355
|
options: { default: () => [] },
|
|
@@ -1357,9 +1375,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1357
1375
|
return openBlock(), createElementBlock("fieldset", {
|
|
1358
1376
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1359
1377
|
}, [
|
|
1360
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1378
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$s, [
|
|
1361
1379
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1362
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1380
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$q, "*")) : createCommentVNode("", true)
|
|
1363
1381
|
])) : createCommentVNode("", true),
|
|
1364
1382
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1365
1383
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1373,42 +1391,42 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1373
1391
|
name: unref(groupName),
|
|
1374
1392
|
value: opt.value,
|
|
1375
1393
|
disabled: __props.disabled || opt.disabled
|
|
1376
|
-
}, null, 8, _hoisted_3$
|
|
1394
|
+
}, null, 8, _hoisted_3$l), [
|
|
1377
1395
|
[vModelRadio, model.value]
|
|
1378
1396
|
]),
|
|
1379
1397
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1380
1398
|
class: "lf-radio__dot",
|
|
1381
1399
|
"aria-hidden": "true"
|
|
1382
1400
|
}, null, -1)),
|
|
1383
|
-
createElementVNode("span", _hoisted_4$
|
|
1384
|
-
createElementVNode("span", _hoisted_5$
|
|
1385
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
1401
|
+
createElementVNode("span", _hoisted_4$g, [
|
|
1402
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString(opt.label), 1),
|
|
1403
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$b, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1386
1404
|
])
|
|
1387
1405
|
], 2);
|
|
1388
1406
|
}), 128)),
|
|
1389
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1407
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$a, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_8$2, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1390
1408
|
], 2);
|
|
1391
1409
|
};
|
|
1392
1410
|
}
|
|
1393
1411
|
});
|
|
1394
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1395
|
-
const _hoisted_1$
|
|
1396
|
-
const _hoisted_2$
|
|
1412
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-cffad147"]]);
|
|
1413
|
+
const _hoisted_1$r = ["aria-labelledby", "aria-label"];
|
|
1414
|
+
const _hoisted_2$p = {
|
|
1397
1415
|
key: 0,
|
|
1398
1416
|
class: "lf-modal__header"
|
|
1399
1417
|
};
|
|
1400
|
-
const _hoisted_3$
|
|
1401
|
-
const _hoisted_4$
|
|
1402
|
-
const _hoisted_5$
|
|
1418
|
+
const _hoisted_3$k = { class: "lf-modal__heading" };
|
|
1419
|
+
const _hoisted_4$f = ["id"];
|
|
1420
|
+
const _hoisted_5$d = {
|
|
1403
1421
|
key: 0,
|
|
1404
1422
|
class: "lf-modal__subtitle"
|
|
1405
1423
|
};
|
|
1406
|
-
const _hoisted_6$
|
|
1407
|
-
const _hoisted_7$
|
|
1424
|
+
const _hoisted_6$a = { class: "lf-modal__body" };
|
|
1425
|
+
const _hoisted_7$9 = {
|
|
1408
1426
|
key: 1,
|
|
1409
1427
|
class: "lf-modal__footer"
|
|
1410
1428
|
};
|
|
1411
|
-
const _sfc_main$
|
|
1429
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1412
1430
|
__name: "LfModal",
|
|
1413
1431
|
props: /* @__PURE__ */ mergeModels({
|
|
1414
1432
|
title: {},
|
|
@@ -1520,14 +1538,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1520
1538
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1521
1539
|
onKeydown
|
|
1522
1540
|
}, [
|
|
1523
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1541
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$p, [
|
|
1524
1542
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1525
|
-
createElementVNode("div", _hoisted_3$
|
|
1543
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
1526
1544
|
createElementVNode("h2", {
|
|
1527
1545
|
id: unref(titleId),
|
|
1528
1546
|
class: "lf-modal__title"
|
|
1529
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1530
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
1547
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$f),
|
|
1548
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$d, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1531
1549
|
])
|
|
1532
1550
|
], true),
|
|
1533
1551
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1538,13 +1556,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1538
1556
|
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
1539
1557
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1540
1558
|
])) : createCommentVNode("", true),
|
|
1541
|
-
createElementVNode("div", _hoisted_6$
|
|
1559
|
+
createElementVNode("div", _hoisted_6$a, [
|
|
1542
1560
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1543
1561
|
]),
|
|
1544
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1562
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$9, [
|
|
1545
1563
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1546
1564
|
])) : createCommentVNode("", true)
|
|
1547
|
-
], 42, _hoisted_1$
|
|
1565
|
+
], 42, _hoisted_1$r)
|
|
1548
1566
|
], 32)) : createCommentVNode("", true)
|
|
1549
1567
|
]),
|
|
1550
1568
|
_: 3
|
|
@@ -1553,30 +1571,30 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1553
1571
|
};
|
|
1554
1572
|
}
|
|
1555
1573
|
});
|
|
1556
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1557
|
-
const _hoisted_1$
|
|
1574
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-da4a649b"]]);
|
|
1575
|
+
const _hoisted_1$q = {
|
|
1558
1576
|
key: 0,
|
|
1559
1577
|
class: "lf-card__head"
|
|
1560
1578
|
};
|
|
1561
|
-
const _hoisted_2$
|
|
1579
|
+
const _hoisted_2$o = {
|
|
1562
1580
|
key: 0,
|
|
1563
1581
|
class: "lf-card__icon"
|
|
1564
1582
|
};
|
|
1565
|
-
const _hoisted_3$
|
|
1566
|
-
const _hoisted_4$
|
|
1583
|
+
const _hoisted_3$j = { class: "lf-card__title" };
|
|
1584
|
+
const _hoisted_4$e = {
|
|
1567
1585
|
key: 1,
|
|
1568
1586
|
class: "lf-card__count"
|
|
1569
1587
|
};
|
|
1570
|
-
const _hoisted_5$
|
|
1588
|
+
const _hoisted_5$c = {
|
|
1571
1589
|
key: 0,
|
|
1572
1590
|
class: "lf-card__actions"
|
|
1573
1591
|
};
|
|
1574
|
-
const _hoisted_6$
|
|
1575
|
-
const _hoisted_7$
|
|
1592
|
+
const _hoisted_6$9 = { class: "lf-card__body" };
|
|
1593
|
+
const _hoisted_7$8 = {
|
|
1576
1594
|
key: 1,
|
|
1577
1595
|
class: "lf-card__foot"
|
|
1578
1596
|
};
|
|
1579
|
-
const _sfc_main$
|
|
1597
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1580
1598
|
__name: "LfCard",
|
|
1581
1599
|
props: {
|
|
1582
1600
|
title: {},
|
|
@@ -1592,9 +1610,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1592
1610
|
return openBlock(), createElementBlock("section", {
|
|
1593
1611
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1594
1612
|
}, [
|
|
1595
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1613
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$q, [
|
|
1596
1614
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1597
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1615
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
1598
1616
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1599
1617
|
createVNode(LfIcon, {
|
|
1600
1618
|
name: __props.icon,
|
|
@@ -1603,45 +1621,45 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1603
1621
|
}, null, 8, ["name", "path"])
|
|
1604
1622
|
], true)
|
|
1605
1623
|
])) : createCommentVNode("", true),
|
|
1606
|
-
createElementVNode("h3", _hoisted_3$
|
|
1607
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1624
|
+
createElementVNode("h3", _hoisted_3$j, toDisplayString(__props.title), 1),
|
|
1625
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$e, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1608
1626
|
], true),
|
|
1609
1627
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1610
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1628
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
1611
1629
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1612
1630
|
])) : createCommentVNode("", true)
|
|
1613
1631
|
])) : createCommentVNode("", true),
|
|
1614
|
-
createElementVNode("div", _hoisted_6$
|
|
1632
|
+
createElementVNode("div", _hoisted_6$9, [
|
|
1615
1633
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1616
1634
|
]),
|
|
1617
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1635
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$8, [
|
|
1618
1636
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1619
1637
|
])) : createCommentVNode("", true)
|
|
1620
1638
|
], 2);
|
|
1621
1639
|
};
|
|
1622
1640
|
}
|
|
1623
1641
|
});
|
|
1624
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1625
|
-
const _hoisted_1$
|
|
1626
|
-
const _hoisted_2$
|
|
1627
|
-
const _hoisted_3$
|
|
1628
|
-
const _hoisted_4$
|
|
1642
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3ffcb11e"]]);
|
|
1643
|
+
const _hoisted_1$p = { class: "lf-page-header" };
|
|
1644
|
+
const _hoisted_2$n = { class: "lf-page-header__title-box" };
|
|
1645
|
+
const _hoisted_3$i = { class: "lf-page-header__title" };
|
|
1646
|
+
const _hoisted_4$d = {
|
|
1629
1647
|
key: 0,
|
|
1630
1648
|
class: "lf-page-header__icon"
|
|
1631
1649
|
};
|
|
1632
|
-
const _hoisted_5$
|
|
1650
|
+
const _hoisted_5$b = {
|
|
1633
1651
|
key: 0,
|
|
1634
1652
|
class: "lf-page-header__count"
|
|
1635
1653
|
};
|
|
1636
|
-
const _hoisted_6$
|
|
1654
|
+
const _hoisted_6$8 = {
|
|
1637
1655
|
key: 0,
|
|
1638
1656
|
class: "lf-page-header__tools"
|
|
1639
1657
|
};
|
|
1640
|
-
const _hoisted_7$
|
|
1658
|
+
const _hoisted_7$7 = {
|
|
1641
1659
|
key: 1,
|
|
1642
1660
|
class: "lf-page-header__desc"
|
|
1643
1661
|
};
|
|
1644
|
-
const _sfc_main$
|
|
1662
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1645
1663
|
__name: "LfPageHeader",
|
|
1646
1664
|
props: {
|
|
1647
1665
|
title: {},
|
|
@@ -1654,10 +1672,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1654
1672
|
const slots = useSlots();
|
|
1655
1673
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1656
1674
|
return (_ctx, _cache) => {
|
|
1657
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1658
|
-
createElementVNode("div", _hoisted_2$
|
|
1659
|
-
createElementVNode("h1", _hoisted_3$
|
|
1660
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1675
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
1676
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
1677
|
+
createElementVNode("h1", _hoisted_3$i, [
|
|
1678
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
1661
1679
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1662
1680
|
createVNode(LfIcon, {
|
|
1663
1681
|
name: __props.icon,
|
|
@@ -1670,14 +1688,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1670
1688
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1671
1689
|
], true)
|
|
1672
1690
|
]),
|
|
1673
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1691
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$b, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1674
1692
|
]),
|
|
1675
|
-
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1693
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
1676
1694
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1677
1695
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1678
1696
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1679
1697
|
])) : createCommentVNode("", true),
|
|
1680
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1698
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$7, [
|
|
1681
1699
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1682
1700
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1683
1701
|
], true)
|
|
@@ -1686,14 +1704,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1686
1704
|
};
|
|
1687
1705
|
}
|
|
1688
1706
|
});
|
|
1689
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1690
|
-
const _hoisted_1$
|
|
1707
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-a7ef2659"]]);
|
|
1708
|
+
const _hoisted_1$o = {
|
|
1691
1709
|
key: 0,
|
|
1692
1710
|
class: "lf-badge__dot",
|
|
1693
1711
|
"aria-hidden": "true"
|
|
1694
1712
|
};
|
|
1695
|
-
const _hoisted_2$
|
|
1696
|
-
const _sfc_main$
|
|
1713
|
+
const _hoisted_2$m = ["aria-label"];
|
|
1714
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1697
1715
|
__name: "LfBadge",
|
|
1698
1716
|
props: {
|
|
1699
1717
|
label: {},
|
|
@@ -1713,7 +1731,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1713
1731
|
return openBlock(), createElementBlock("span", {
|
|
1714
1732
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1715
1733
|
}, [
|
|
1716
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1734
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$o)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1717
1735
|
key: 1,
|
|
1718
1736
|
name: __props.icon,
|
|
1719
1737
|
path: __props.iconPath,
|
|
@@ -1733,27 +1751,27 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1733
1751
|
name: "close",
|
|
1734
1752
|
size: "0.75rem"
|
|
1735
1753
|
})
|
|
1736
|
-
], 8, _hoisted_2$
|
|
1754
|
+
], 8, _hoisted_2$m)) : createCommentVNode("", true)
|
|
1737
1755
|
], 2);
|
|
1738
1756
|
};
|
|
1739
1757
|
}
|
|
1740
1758
|
});
|
|
1741
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1742
|
-
const _hoisted_1$
|
|
1743
|
-
const _hoisted_2$
|
|
1759
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-b55cda7f"]]);
|
|
1760
|
+
const _hoisted_1$n = ["role"];
|
|
1761
|
+
const _hoisted_2$l = {
|
|
1744
1762
|
class: "lf-alert__badge",
|
|
1745
1763
|
"aria-hidden": "true"
|
|
1746
1764
|
};
|
|
1747
|
-
const _hoisted_3$
|
|
1748
|
-
const _hoisted_4$
|
|
1765
|
+
const _hoisted_3$h = { class: "lf-alert__body" };
|
|
1766
|
+
const _hoisted_4$c = {
|
|
1749
1767
|
key: 0,
|
|
1750
1768
|
class: "lf-alert__title"
|
|
1751
1769
|
};
|
|
1752
|
-
const _hoisted_5$
|
|
1770
|
+
const _hoisted_5$a = {
|
|
1753
1771
|
key: 2,
|
|
1754
1772
|
class: "lf-alert__actions"
|
|
1755
1773
|
};
|
|
1756
|
-
const _sfc_main$
|
|
1774
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1757
1775
|
__name: "LfAlert",
|
|
1758
1776
|
props: {
|
|
1759
1777
|
tone: { default: "info" },
|
|
@@ -1779,7 +1797,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1779
1797
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
1780
1798
|
role: __props.tone === "error" ? "alert" : "status"
|
|
1781
1799
|
}, [
|
|
1782
|
-
createElementVNode("span", _hoisted_2$
|
|
1800
|
+
createElementVNode("span", _hoisted_2$l, [
|
|
1783
1801
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1784
1802
|
createVNode(LfIcon, {
|
|
1785
1803
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -1788,8 +1806,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1788
1806
|
}, null, 8, ["name", "path", "size"])
|
|
1789
1807
|
], true)
|
|
1790
1808
|
]),
|
|
1791
|
-
createElementVNode("div", _hoisted_3$
|
|
1792
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1809
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
1810
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$c, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1793
1811
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1794
1812
|
key: 1,
|
|
1795
1813
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -1798,7 +1816,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1798
1816
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
1799
1817
|
], true)
|
|
1800
1818
|
], 2)) : createCommentVNode("", true),
|
|
1801
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1819
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
1802
1820
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1803
1821
|
])) : createCommentVNode("", true)
|
|
1804
1822
|
]),
|
|
@@ -1810,14 +1828,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1810
1828
|
label: __props.closeLabel,
|
|
1811
1829
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
1812
1830
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1813
|
-
], 10, _hoisted_1$
|
|
1831
|
+
], 10, _hoisted_1$n);
|
|
1814
1832
|
};
|
|
1815
1833
|
}
|
|
1816
1834
|
});
|
|
1817
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1818
|
-
const _hoisted_1$
|
|
1819
|
-
const _hoisted_2$
|
|
1820
|
-
const _sfc_main$
|
|
1835
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-62839786"]]);
|
|
1836
|
+
const _hoisted_1$m = ["title"];
|
|
1837
|
+
const _hoisted_2$k = ["src", "alt"];
|
|
1838
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1821
1839
|
__name: "LfAvatar",
|
|
1822
1840
|
props: {
|
|
1823
1841
|
name: {},
|
|
@@ -1852,23 +1870,32 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1852
1870
|
src: __props.src,
|
|
1853
1871
|
alt: __props.name ?? "",
|
|
1854
1872
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
1855
|
-
}, null, 40, _hoisted_2$
|
|
1873
|
+
}, null, 40, _hoisted_2$k)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1856
1874
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
1857
1875
|
], 64))
|
|
1858
|
-
], 14, _hoisted_1$
|
|
1876
|
+
], 14, _hoisted_1$m);
|
|
1859
1877
|
};
|
|
1860
1878
|
}
|
|
1861
1879
|
});
|
|
1862
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1863
|
-
const _hoisted_1$
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
const
|
|
1868
|
-
const
|
|
1869
|
-
const
|
|
1880
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-61adf36e"]]);
|
|
1881
|
+
const _hoisted_1$l = {
|
|
1882
|
+
key: 0,
|
|
1883
|
+
class: "lf-table__select"
|
|
1884
|
+
};
|
|
1885
|
+
const _hoisted_2$j = ["checked", ".indeterminate", "disabled", "aria-label"];
|
|
1886
|
+
const _hoisted_3$g = ["aria-sort"];
|
|
1887
|
+
const _hoisted_4$b = ["onClick"];
|
|
1888
|
+
const _hoisted_5$9 = {
|
|
1889
|
+
key: 0,
|
|
1890
|
+
class: "lf-table__select"
|
|
1891
|
+
};
|
|
1892
|
+
const _hoisted_6$7 = { key: 1 };
|
|
1893
|
+
const _hoisted_7$6 = ["colspan"];
|
|
1894
|
+
const _hoisted_8$1 = ["tabindex", "onClick", "onKeydown"];
|
|
1895
|
+
const _hoisted_9$1 = ["checked", "aria-label", "onChange"];
|
|
1896
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1870
1897
|
__name: "LfTable",
|
|
1871
|
-
props: {
|
|
1898
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1872
1899
|
columns: {},
|
|
1873
1900
|
rows: { default: () => [] },
|
|
1874
1901
|
rowKey: {},
|
|
@@ -1878,15 +1905,39 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1878
1905
|
clickable: { type: Boolean },
|
|
1879
1906
|
compact: { type: Boolean },
|
|
1880
1907
|
minWidth: {},
|
|
1881
|
-
sort: {}
|
|
1882
|
-
|
|
1883
|
-
|
|
1908
|
+
sort: {},
|
|
1909
|
+
selectable: { type: Boolean },
|
|
1910
|
+
activeKey: {},
|
|
1911
|
+
stickyHeader: { type: Boolean },
|
|
1912
|
+
maxHeight: {},
|
|
1913
|
+
selectAllLabel: { default: "이 페이지 전체 고르기" },
|
|
1914
|
+
selectRowLabel: { default: "줄 고르기" }
|
|
1915
|
+
}, {
|
|
1916
|
+
"selected": { default: () => [] },
|
|
1917
|
+
"selectedModifiers": {}
|
|
1918
|
+
}),
|
|
1919
|
+
emits: /* @__PURE__ */ mergeModels(["rowClick", "update:sort"], ["update:selected"]),
|
|
1884
1920
|
setup(__props, { emit: __emit }) {
|
|
1885
1921
|
const props = __props;
|
|
1922
|
+
const selected = useModel(__props, "selected");
|
|
1886
1923
|
const emit = __emit;
|
|
1887
1924
|
function keyOf(row, i2) {
|
|
1888
1925
|
return props.rowKey ? String(row[props.rowKey] ?? i2) : i2;
|
|
1889
1926
|
}
|
|
1927
|
+
function isSelected(row, i2) {
|
|
1928
|
+
return selected.value.includes(keyOf(row, i2));
|
|
1929
|
+
}
|
|
1930
|
+
function toggleRow(row, i2) {
|
|
1931
|
+
const k = keyOf(row, i2);
|
|
1932
|
+
selected.value = isSelected(row, i2) ? selected.value.filter((x) => x !== k) : [...selected.value, k];
|
|
1933
|
+
}
|
|
1934
|
+
const pageKeys = computed(() => props.rows.map((r, i2) => keyOf(r, i2)));
|
|
1935
|
+
const allOnPage = computed(() => pageKeys.value.length > 0 && pageKeys.value.every((k) => selected.value.includes(k)));
|
|
1936
|
+
const someOnPage = computed(() => pageKeys.value.some((k) => selected.value.includes(k)));
|
|
1937
|
+
function toggleAll() {
|
|
1938
|
+
const keys = new Set(pageKeys.value);
|
|
1939
|
+
selected.value = allOnPage.value ? selected.value.filter((k) => !keys.has(k)) : [...selected.value, ...pageKeys.value.filter((k) => !selected.value.includes(k))];
|
|
1940
|
+
}
|
|
1890
1941
|
function toggleSort(key) {
|
|
1891
1942
|
var _a;
|
|
1892
1943
|
const order = ((_a = props.sort) == null ? void 0 : _a.key) === key && props.sort.order === "asc" ? "desc" : "asc";
|
|
@@ -1898,13 +1949,27 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1898
1949
|
return props.sort.order === "asc" ? "ascending" : "descending";
|
|
1899
1950
|
}
|
|
1900
1951
|
return (_ctx, _cache) => {
|
|
1901
|
-
return openBlock(), createElementBlock("div",
|
|
1952
|
+
return openBlock(), createElementBlock("div", {
|
|
1953
|
+
class: normalizeClass(["lf-table-wrap", { "lf-table-wrap--sticky": __props.stickyHeader }]),
|
|
1954
|
+
style: normalizeStyle({ maxHeight: __props.maxHeight })
|
|
1955
|
+
}, [
|
|
1902
1956
|
createElementVNode("table", {
|
|
1903
1957
|
class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
|
|
1904
1958
|
style: normalizeStyle({ minWidth: __props.minWidth })
|
|
1905
1959
|
}, [
|
|
1906
1960
|
createElementVNode("thead", null, [
|
|
1907
1961
|
createElementVNode("tr", null, [
|
|
1962
|
+
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_1$l, [
|
|
1963
|
+
createElementVNode("input", {
|
|
1964
|
+
type: "checkbox",
|
|
1965
|
+
class: "lf-table__check",
|
|
1966
|
+
checked: allOnPage.value,
|
|
1967
|
+
".indeterminate": someOnPage.value && !allOnPage.value,
|
|
1968
|
+
disabled: __props.loading || __props.rows.length === 0,
|
|
1969
|
+
"aria-label": __props.selectAllLabel,
|
|
1970
|
+
onChange: toggleAll
|
|
1971
|
+
}, null, 40, _hoisted_2$j)
|
|
1972
|
+
])) : createCommentVNode("", true),
|
|
1908
1973
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1909
1974
|
var _a;
|
|
1910
1975
|
return openBlock(), createElementBlock("th", {
|
|
@@ -1925,10 +1990,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1925
1990
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
1926
1991
|
size: "0.875rem"
|
|
1927
1992
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
1928
|
-
], 8,
|
|
1993
|
+
], 8, _hoisted_4$b)) : renderSlot(_ctx.$slots, `head-${col.key}`, { column: col }, () => [
|
|
1929
1994
|
createTextVNode(toDisplayString(col.label), 1)
|
|
1930
|
-
],
|
|
1931
|
-
], 14,
|
|
1995
|
+
], true, 1)
|
|
1996
|
+
], 14, _hoisted_3$g);
|
|
1932
1997
|
}), 128))
|
|
1933
1998
|
])
|
|
1934
1999
|
]),
|
|
@@ -1938,32 +2003,51 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1938
2003
|
key: `sk-${n}`,
|
|
1939
2004
|
class: "lf-table__row"
|
|
1940
2005
|
}, [
|
|
2006
|
+
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$9)) : createCommentVNode("", true),
|
|
1941
2007
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1942
2008
|
return openBlock(), createElementBlock("td", {
|
|
1943
2009
|
key: col.key,
|
|
1944
2010
|
class: normalizeClass({ "lf-table__col--mobile-hidden": col.hideOnMobile })
|
|
1945
|
-
}, [..._cache[
|
|
2011
|
+
}, [..._cache[1] || (_cache[1] = [
|
|
1946
2012
|
createElementVNode("span", { class: "lf-table__skeleton" }, null, -1)
|
|
1947
2013
|
])], 2);
|
|
1948
2014
|
}), 128))
|
|
1949
2015
|
]);
|
|
1950
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr",
|
|
2016
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$7, [
|
|
1951
2017
|
createElementVNode("td", {
|
|
1952
2018
|
class: "lf-table__empty",
|
|
1953
|
-
colspan: __props.columns.length
|
|
2019
|
+
colspan: __props.columns.length + (__props.selectable ? 1 : 0)
|
|
1954
2020
|
}, [
|
|
1955
2021
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1956
2022
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
1957
2023
|
], true)
|
|
1958
|
-
], 8,
|
|
2024
|
+
], 8, _hoisted_7$6)
|
|
1959
2025
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
1960
2026
|
return openBlock(), createElementBlock("tr", {
|
|
1961
2027
|
key: keyOf(row, i2),
|
|
1962
|
-
class: normalizeClass(["lf-table__row", {
|
|
2028
|
+
class: normalizeClass(["lf-table__row", {
|
|
2029
|
+
"lf-table__row--clickable": __props.clickable,
|
|
2030
|
+
"lf-table__row--active": __props.activeKey !== void 0 && __props.activeKey !== null && keyOf(row, i2) === __props.activeKey,
|
|
2031
|
+
"lf-table__row--selected": __props.selectable && isSelected(row, i2)
|
|
2032
|
+
}]),
|
|
1963
2033
|
tabindex: __props.clickable ? 0 : void 0,
|
|
1964
2034
|
onClick: ($event) => __props.clickable && emit("rowClick", row),
|
|
1965
2035
|
onKeydown: withKeys(($event) => __props.clickable && emit("rowClick", row), ["enter"])
|
|
1966
2036
|
}, [
|
|
2037
|
+
__props.selectable ? (openBlock(), createElementBlock("td", {
|
|
2038
|
+
key: 0,
|
|
2039
|
+
class: "lf-table__select",
|
|
2040
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
2041
|
+
}, ["stop"]))
|
|
2042
|
+
}, [
|
|
2043
|
+
createElementVNode("input", {
|
|
2044
|
+
type: "checkbox",
|
|
2045
|
+
class: "lf-table__check",
|
|
2046
|
+
checked: isSelected(row, i2),
|
|
2047
|
+
"aria-label": __props.selectRowLabel,
|
|
2048
|
+
onChange: ($event) => toggleRow(row, i2)
|
|
2049
|
+
}, null, 40, _hoisted_9$1)
|
|
2050
|
+
])) : createCommentVNode("", true),
|
|
1967
2051
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1968
2052
|
return openBlock(), createElementBlock("td", {
|
|
1969
2053
|
key: col.key,
|
|
@@ -1979,34 +2063,34 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1979
2063
|
], true)
|
|
1980
2064
|
], 6);
|
|
1981
2065
|
}), 128))
|
|
1982
|
-
], 42,
|
|
2066
|
+
], 42, _hoisted_8$1);
|
|
1983
2067
|
}), 128))
|
|
1984
2068
|
])
|
|
1985
2069
|
], 6)
|
|
1986
|
-
]);
|
|
2070
|
+
], 6);
|
|
1987
2071
|
};
|
|
1988
2072
|
}
|
|
1989
2073
|
});
|
|
1990
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1991
|
-
const _hoisted_1$
|
|
1992
|
-
const _hoisted_2$
|
|
2074
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-2eb52796"]]);
|
|
2075
|
+
const _hoisted_1$k = ["aria-label"];
|
|
2076
|
+
const _hoisted_2$i = {
|
|
1993
2077
|
key: 0,
|
|
1994
2078
|
class: "lf-pagination__total"
|
|
1995
2079
|
};
|
|
1996
|
-
const _hoisted_3$
|
|
2080
|
+
const _hoisted_3$f = {
|
|
1997
2081
|
key: 1,
|
|
1998
2082
|
class: "lf-pagination__btns"
|
|
1999
2083
|
};
|
|
2000
|
-
const _hoisted_4$
|
|
2001
|
-
const _hoisted_5$
|
|
2084
|
+
const _hoisted_4$a = ["disabled"];
|
|
2085
|
+
const _hoisted_5$8 = {
|
|
2002
2086
|
key: 0,
|
|
2003
2087
|
class: "lf-pagination__gap",
|
|
2004
2088
|
"aria-hidden": "true"
|
|
2005
2089
|
};
|
|
2006
|
-
const _hoisted_6$
|
|
2007
|
-
const _hoisted_7$
|
|
2090
|
+
const _hoisted_6$6 = ["aria-current", "onClick"];
|
|
2091
|
+
const _hoisted_7$5 = ["disabled"];
|
|
2008
2092
|
const ELLIPSIS = -1;
|
|
2009
|
-
const _sfc_main$
|
|
2093
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2010
2094
|
__name: "LfPagination",
|
|
2011
2095
|
props: /* @__PURE__ */ mergeModels({
|
|
2012
2096
|
total: { default: 0 },
|
|
@@ -2047,12 +2131,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2047
2131
|
class: "lf-pagination",
|
|
2048
2132
|
"aria-label": __props.ariaLabel
|
|
2049
2133
|
}, [
|
|
2050
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2134
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$i, [
|
|
2051
2135
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2052
2136
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2053
2137
|
], true)
|
|
2054
2138
|
])) : createCommentVNode("", true),
|
|
2055
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2139
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
2056
2140
|
createElementVNode("button", {
|
|
2057
2141
|
type: "button",
|
|
2058
2142
|
class: "lf-pagination__btn",
|
|
@@ -2064,18 +2148,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2064
2148
|
name: "chevron_left",
|
|
2065
2149
|
size: "1rem"
|
|
2066
2150
|
})
|
|
2067
|
-
], 8, _hoisted_4$
|
|
2151
|
+
], 8, _hoisted_4$a),
|
|
2068
2152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2069
2153
|
return openBlock(), createElementBlock(Fragment, {
|
|
2070
2154
|
key: `${p}-${i2}`
|
|
2071
2155
|
}, [
|
|
2072
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2156
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$8, "…")) : (openBlock(), createElementBlock("button", {
|
|
2073
2157
|
key: 1,
|
|
2074
2158
|
type: "button",
|
|
2075
2159
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2076
2160
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2077
2161
|
onClick: ($event) => go(p)
|
|
2078
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2162
|
+
}, toDisplayString(p), 11, _hoisted_6$6))
|
|
2079
2163
|
], 64);
|
|
2080
2164
|
}), 128)),
|
|
2081
2165
|
createElementVNode("button", {
|
|
@@ -2089,27 +2173,27 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2089
2173
|
name: "chevron_right",
|
|
2090
2174
|
size: "1rem"
|
|
2091
2175
|
})
|
|
2092
|
-
], 8, _hoisted_7$
|
|
2176
|
+
], 8, _hoisted_7$5)
|
|
2093
2177
|
])) : createCommentVNode("", true)
|
|
2094
|
-
], 8, _hoisted_1$
|
|
2178
|
+
], 8, _hoisted_1$k)) : createCommentVNode("", true);
|
|
2095
2179
|
};
|
|
2096
2180
|
}
|
|
2097
2181
|
});
|
|
2098
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2099
|
-
const _hoisted_1$
|
|
2182
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-be847541"]]);
|
|
2183
|
+
const _hoisted_1$j = {
|
|
2100
2184
|
key: 0,
|
|
2101
2185
|
class: "lf-empty__icon"
|
|
2102
2186
|
};
|
|
2103
|
-
const _hoisted_2$
|
|
2104
|
-
const _hoisted_3$
|
|
2187
|
+
const _hoisted_2$h = { class: "lf-empty__title" };
|
|
2188
|
+
const _hoisted_3$e = {
|
|
2105
2189
|
key: 1,
|
|
2106
2190
|
class: "lf-empty__desc"
|
|
2107
2191
|
};
|
|
2108
|
-
const _hoisted_4$
|
|
2192
|
+
const _hoisted_4$9 = {
|
|
2109
2193
|
key: 2,
|
|
2110
2194
|
class: "lf-empty__action"
|
|
2111
2195
|
};
|
|
2112
|
-
const _sfc_main$
|
|
2196
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2113
2197
|
__name: "LfEmptyState",
|
|
2114
2198
|
props: {
|
|
2115
2199
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2124,7 +2208,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2124
2208
|
return openBlock(), createElementBlock("div", {
|
|
2125
2209
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2126
2210
|
}, [
|
|
2127
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2211
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$j, [
|
|
2128
2212
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2129
2213
|
createVNode(LfIcon, {
|
|
2130
2214
|
name: __props.icon,
|
|
@@ -2133,31 +2217,31 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2133
2217
|
}, null, 8, ["name", "path"])
|
|
2134
2218
|
], true)
|
|
2135
2219
|
])) : createCommentVNode("", true),
|
|
2136
|
-
createElementVNode("p", _hoisted_2$
|
|
2220
|
+
createElementVNode("p", _hoisted_2$h, [
|
|
2137
2221
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2138
2222
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2139
2223
|
], true)
|
|
2140
2224
|
]),
|
|
2141
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2225
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$e, [
|
|
2142
2226
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2143
2227
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2144
2228
|
], true)
|
|
2145
2229
|
])) : createCommentVNode("", true),
|
|
2146
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2230
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
2147
2231
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2148
2232
|
])) : createCommentVNode("", true)
|
|
2149
2233
|
], 2);
|
|
2150
2234
|
};
|
|
2151
2235
|
}
|
|
2152
2236
|
});
|
|
2153
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2154
|
-
const _hoisted_1$
|
|
2237
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2238
|
+
const _hoisted_1$i = {
|
|
2155
2239
|
key: 0,
|
|
2156
2240
|
class: "lf-skeleton-group",
|
|
2157
2241
|
"aria-busy": true,
|
|
2158
2242
|
"aria-live": "polite"
|
|
2159
2243
|
};
|
|
2160
|
-
const _sfc_main$
|
|
2244
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2161
2245
|
__name: "LfSkeleton",
|
|
2162
2246
|
props: {
|
|
2163
2247
|
variant: { default: "text" },
|
|
@@ -2172,7 +2256,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2172
2256
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2173
2257
|
}
|
|
2174
2258
|
return (_ctx, _cache) => {
|
|
2175
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2259
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2176
2260
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2177
2261
|
return openBlock(), createElementBlock("span", {
|
|
2178
2262
|
key: n,
|
|
@@ -2189,24 +2273,24 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2189
2273
|
};
|
|
2190
2274
|
}
|
|
2191
2275
|
});
|
|
2192
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2193
|
-
const _hoisted_1$
|
|
2276
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a01556ce"]]);
|
|
2277
|
+
const _hoisted_1$h = {
|
|
2194
2278
|
class: "lf-stat__badge",
|
|
2195
2279
|
"aria-hidden": "true"
|
|
2196
2280
|
};
|
|
2197
|
-
const _hoisted_2$
|
|
2198
|
-
const _hoisted_3$
|
|
2199
|
-
const _hoisted_4$
|
|
2200
|
-
const _hoisted_5$
|
|
2201
|
-
const _hoisted_6$
|
|
2281
|
+
const _hoisted_2$g = { class: "lf-stat__body" };
|
|
2282
|
+
const _hoisted_3$d = { class: "lf-stat__label" };
|
|
2283
|
+
const _hoisted_4$8 = { class: "lf-stat__value-row" };
|
|
2284
|
+
const _hoisted_5$7 = { class: "lf-stat__value" };
|
|
2285
|
+
const _hoisted_6$5 = {
|
|
2202
2286
|
key: 0,
|
|
2203
2287
|
class: "lf-stat__unit"
|
|
2204
2288
|
};
|
|
2205
|
-
const _hoisted_7$
|
|
2289
|
+
const _hoisted_7$4 = {
|
|
2206
2290
|
key: 0,
|
|
2207
2291
|
class: "lf-stat__hint"
|
|
2208
2292
|
};
|
|
2209
|
-
const _sfc_main$
|
|
2293
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2210
2294
|
__name: "LfStatCard",
|
|
2211
2295
|
props: {
|
|
2212
2296
|
label: {},
|
|
@@ -2235,7 +2319,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2235
2319
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2236
2320
|
}, {
|
|
2237
2321
|
default: withCtx(() => [
|
|
2238
|
-
createElementVNode("span", _hoisted_1$
|
|
2322
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
2239
2323
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2240
2324
|
createVNode(LfIcon, {
|
|
2241
2325
|
name: __props.icon,
|
|
@@ -2244,14 +2328,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2244
2328
|
}, null, 8, ["name", "path"])
|
|
2245
2329
|
], true)
|
|
2246
2330
|
]),
|
|
2247
|
-
createElementVNode("div", _hoisted_2$
|
|
2248
|
-
createElementVNode("div", _hoisted_3$
|
|
2249
|
-
createElementVNode("div", _hoisted_4$
|
|
2250
|
-
createElementVNode("span", _hoisted_5$
|
|
2331
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
2332
|
+
createElementVNode("div", _hoisted_3$d, toDisplayString(__props.label), 1),
|
|
2333
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
2334
|
+
createElementVNode("span", _hoisted_5$7, [
|
|
2251
2335
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2252
2336
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2253
2337
|
], true),
|
|
2254
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2338
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2255
2339
|
]),
|
|
2256
2340
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2257
2341
|
key: 0,
|
|
@@ -2264,7 +2348,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2264
2348
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2265
2349
|
], 2)) : createCommentVNode("", true)
|
|
2266
2350
|
]),
|
|
2267
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2351
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$4, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2268
2352
|
])
|
|
2269
2353
|
]),
|
|
2270
2354
|
_: 3
|
|
@@ -2272,10 +2356,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2272
2356
|
};
|
|
2273
2357
|
}
|
|
2274
2358
|
});
|
|
2275
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2276
|
-
const _hoisted_1$
|
|
2277
|
-
const _hoisted_2$
|
|
2278
|
-
const _sfc_main$
|
|
2359
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ddc6565d"]]);
|
|
2360
|
+
const _hoisted_1$g = ["aria-describedby"];
|
|
2361
|
+
const _hoisted_2$f = ["id"];
|
|
2362
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2279
2363
|
__name: "LfTooltip",
|
|
2280
2364
|
props: {
|
|
2281
2365
|
text: {},
|
|
@@ -2292,7 +2376,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2292
2376
|
"aria-describedby": unref(bubbleId)
|
|
2293
2377
|
}, [
|
|
2294
2378
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2295
|
-
], 8, _hoisted_1$
|
|
2379
|
+
], 8, _hoisted_1$g),
|
|
2296
2380
|
createElementVNode("span", {
|
|
2297
2381
|
id: unref(bubbleId),
|
|
2298
2382
|
class: "lf-tooltip__bubble",
|
|
@@ -2301,19 +2385,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2301
2385
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2302
2386
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2303
2387
|
], true)
|
|
2304
|
-
], 8, _hoisted_2$
|
|
2388
|
+
], 8, _hoisted_2$f)
|
|
2305
2389
|
], 2);
|
|
2306
2390
|
};
|
|
2307
2391
|
}
|
|
2308
2392
|
});
|
|
2309
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2310
|
-
const _hoisted_1$
|
|
2311
|
-
const _hoisted_2$
|
|
2312
|
-
const _hoisted_3$
|
|
2393
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ae3bf5db"]]);
|
|
2394
|
+
const _hoisted_1$f = ["disabled", "onClick"];
|
|
2395
|
+
const _hoisted_2$e = { class: "lf-menu__item-text" };
|
|
2396
|
+
const _hoisted_3$c = {
|
|
2313
2397
|
key: 0,
|
|
2314
2398
|
class: "lf-menu__item-desc"
|
|
2315
2399
|
};
|
|
2316
|
-
const _sfc_main$
|
|
2400
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2317
2401
|
__name: "LfMenu",
|
|
2318
2402
|
props: {
|
|
2319
2403
|
items: { default: () => [] },
|
|
@@ -2403,11 +2487,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2403
2487
|
size: "1.125rem",
|
|
2404
2488
|
class: "lf-menu__item-icon"
|
|
2405
2489
|
}), null, 16)) : createCommentVNode("", true),
|
|
2406
|
-
createElementVNode("span", _hoisted_2$
|
|
2490
|
+
createElementVNode("span", _hoisted_2$e, [
|
|
2407
2491
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2408
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2492
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2409
2493
|
])
|
|
2410
|
-
], 8, _hoisted_1$
|
|
2494
|
+
], 8, _hoisted_1$f);
|
|
2411
2495
|
}), 128))
|
|
2412
2496
|
], true)
|
|
2413
2497
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2418,22 +2502,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2418
2502
|
};
|
|
2419
2503
|
}
|
|
2420
2504
|
});
|
|
2421
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2422
|
-
const _hoisted_1$
|
|
2505
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0318782c"]]);
|
|
2506
|
+
const _hoisted_1$e = {
|
|
2423
2507
|
key: 0,
|
|
2424
2508
|
class: "lf-rail__group",
|
|
2425
2509
|
role: "presentation"
|
|
2426
2510
|
};
|
|
2427
|
-
const _hoisted_2$
|
|
2428
|
-
const _hoisted_3$
|
|
2429
|
-
const _hoisted_4$
|
|
2511
|
+
const _hoisted_2$d = { class: "lf-rail__group-name" };
|
|
2512
|
+
const _hoisted_3$b = { class: "lf-rail__icon" };
|
|
2513
|
+
const _hoisted_4$7 = {
|
|
2430
2514
|
key: 2,
|
|
2431
2515
|
class: "lf-rail__badge"
|
|
2432
2516
|
};
|
|
2433
|
-
const _hoisted_5$
|
|
2434
|
-
const _hoisted_6$
|
|
2435
|
-
const _hoisted_7$
|
|
2436
|
-
const _sfc_main$
|
|
2517
|
+
const _hoisted_5$6 = { class: "lf-rail__name" };
|
|
2518
|
+
const _hoisted_6$4 = { class: "lf-rail__short" };
|
|
2519
|
+
const _hoisted_7$3 = { class: "lf-rail__long" };
|
|
2520
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2437
2521
|
__name: "LfNavRail",
|
|
2438
2522
|
props: {
|
|
2439
2523
|
items: {},
|
|
@@ -2503,8 +2587,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2503
2587
|
return openBlock(), createElementBlock(Fragment, {
|
|
2504
2588
|
key: item.to
|
|
2505
2589
|
}, [
|
|
2506
|
-
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2507
|
-
createElementVNode("span", _hoisted_2$
|
|
2590
|
+
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2591
|
+
createElementVNode("span", _hoisted_2$d, toDisplayString(item.group), 1)
|
|
2508
2592
|
])) : createCommentVNode("", true),
|
|
2509
2593
|
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2510
2594
|
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
@@ -2513,7 +2597,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2513
2597
|
onClick: ($event) => emit("navigate", item)
|
|
2514
2598
|
}), {
|
|
2515
2599
|
default: withCtx(() => [
|
|
2516
|
-
createElementVNode("span", _hoisted_3$
|
|
2600
|
+
createElementVNode("span", _hoisted_3$b, [
|
|
2517
2601
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2518
2602
|
key: 0,
|
|
2519
2603
|
path: item.iconPath,
|
|
@@ -2523,11 +2607,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2523
2607
|
name: item.icon,
|
|
2524
2608
|
size: "1.15rem"
|
|
2525
2609
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2526
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2610
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2527
2611
|
]),
|
|
2528
|
-
createElementVNode("span", _hoisted_5$
|
|
2529
|
-
createElementVNode("span", _hoisted_6$
|
|
2530
|
-
createElementVNode("span", _hoisted_7$
|
|
2612
|
+
createElementVNode("span", _hoisted_5$6, [
|
|
2613
|
+
createElementVNode("span", _hoisted_6$4, toDisplayString(item.short ?? item.label), 1),
|
|
2614
|
+
createElementVNode("span", _hoisted_7$3, toDisplayString(item.label), 1)
|
|
2531
2615
|
])
|
|
2532
2616
|
]),
|
|
2533
2617
|
_: 2
|
|
@@ -2538,8 +2622,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2538
2622
|
};
|
|
2539
2623
|
}
|
|
2540
2624
|
});
|
|
2541
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2542
|
-
const _sfc_main$
|
|
2625
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a29be44a"]]);
|
|
2626
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2543
2627
|
__name: "LfTransitionList",
|
|
2544
2628
|
props: {
|
|
2545
2629
|
tag: { default: "div" },
|
|
@@ -2629,16 +2713,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2629
2713
|
};
|
|
2630
2714
|
}
|
|
2631
2715
|
});
|
|
2632
|
-
const _hoisted_1$
|
|
2633
|
-
const _hoisted_2$
|
|
2716
|
+
const _hoisted_1$d = { class: "lf-control-wrap" };
|
|
2717
|
+
const _hoisted_2$c = {
|
|
2634
2718
|
key: 0,
|
|
2635
2719
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
2636
2720
|
};
|
|
2637
|
-
const _hoisted_3$
|
|
2638
|
-
const _hoisted_4 = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
2639
|
-
const _hoisted_5 = { class: "lf-listsel__text" };
|
|
2640
|
-
const _hoisted_6 = ["aria-label"];
|
|
2641
|
-
const _hoisted_7 = {
|
|
2721
|
+
const _hoisted_3$a = ["id", "aria-expanded", "aria-controls", "placeholder", "disabled", "required"];
|
|
2722
|
+
const _hoisted_4$6 = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
2723
|
+
const _hoisted_5$5 = { class: "lf-listsel__text" };
|
|
2724
|
+
const _hoisted_6$3 = ["aria-label"];
|
|
2725
|
+
const _hoisted_7$2 = {
|
|
2642
2726
|
key: 4,
|
|
2643
2727
|
class: "lf-control-wrap__icon lf-control-wrap__icon--right"
|
|
2644
2728
|
};
|
|
@@ -2654,7 +2738,7 @@ const _hoisted_13 = {
|
|
|
2654
2738
|
key: 1,
|
|
2655
2739
|
class: "lf-listsel__empty"
|
|
2656
2740
|
};
|
|
2657
|
-
const _sfc_main$
|
|
2741
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2658
2742
|
...{ inheritAttrs: false },
|
|
2659
2743
|
__name: "LfListSelect",
|
|
2660
2744
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2854,8 +2938,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2854
2938
|
class: "lf-listsel",
|
|
2855
2939
|
onFocusout: onFocusOut
|
|
2856
2940
|
}, [
|
|
2857
|
-
createElementVNode("div", _hoisted_1$
|
|
2858
|
-
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2941
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
2942
|
+
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$c, [
|
|
2859
2943
|
createVNode(LfIcon, mergeProps(iconOf(selected.value), { size: "1.125rem" }), null, 16)
|
|
2860
2944
|
])) : createCommentVNode("", true),
|
|
2861
2945
|
__props.editable ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
@@ -2877,7 +2961,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2877
2961
|
onFocus: _cache[1] || (_cache[1] = ($event) => show()),
|
|
2878
2962
|
onInput: _cache[2] || (_cache[2] = ($event) => show()),
|
|
2879
2963
|
onKeydown
|
|
2880
|
-
}), null, 16, _hoisted_3$
|
|
2964
|
+
}), null, 16, _hoisted_3$a)), [
|
|
2881
2965
|
[vModelText, text.value]
|
|
2882
2966
|
]) : (openBlock(), createElementBlock("button", mergeProps({
|
|
2883
2967
|
key: 2,
|
|
@@ -2899,9 +2983,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2899
2983
|
onKeydown
|
|
2900
2984
|
}), [
|
|
2901
2985
|
renderSlot(_ctx.$slots, "selected", { option: selected.value }, () => [
|
|
2902
|
-
createElementVNode("span", _hoisted_5, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
2986
|
+
createElementVNode("span", _hoisted_5$5, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
2903
2987
|
], true)
|
|
2904
|
-
], 16, _hoisted_4)),
|
|
2988
|
+
], 16, _hoisted_4$6)),
|
|
2905
2989
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
2906
2990
|
key: 3,
|
|
2907
2991
|
type: "button",
|
|
@@ -2913,7 +2997,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2913
2997
|
name: "close",
|
|
2914
2998
|
size: "1rem"
|
|
2915
2999
|
})
|
|
2916
|
-
], 8, _hoisted_6)) : (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
3000
|
+
], 8, _hoisted_6$3)) : (openBlock(), createElementBlock("span", _hoisted_7$2, [
|
|
2917
3001
|
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
2918
3002
|
key: 0,
|
|
2919
3003
|
size: "1rem"
|
|
@@ -2992,8 +3076,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2992
3076
|
};
|
|
2993
3077
|
}
|
|
2994
3078
|
});
|
|
2995
|
-
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2996
|
-
const _sfc_main$
|
|
3079
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-532597e1"]]);
|
|
3080
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2997
3081
|
__name: "LfList",
|
|
2998
3082
|
props: {
|
|
2999
3083
|
divided: { type: Boolean },
|
|
@@ -3009,17 +3093,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3009
3093
|
};
|
|
3010
3094
|
}
|
|
3011
3095
|
});
|
|
3012
|
-
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3013
|
-
const _hoisted_1$
|
|
3096
|
+
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-67f4475e"]]);
|
|
3097
|
+
const _hoisted_1$c = {
|
|
3014
3098
|
key: 0,
|
|
3015
3099
|
class: "lf-list-item__prepend"
|
|
3016
3100
|
};
|
|
3017
|
-
const _hoisted_2$
|
|
3018
|
-
const _hoisted_3 = {
|
|
3101
|
+
const _hoisted_2$b = { class: "lf-list-item__text" };
|
|
3102
|
+
const _hoisted_3$9 = {
|
|
3019
3103
|
key: 1,
|
|
3020
3104
|
class: "lf-list-item__append"
|
|
3021
3105
|
};
|
|
3022
|
-
const _sfc_main$
|
|
3106
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3023
3107
|
__name: "LfListItem",
|
|
3024
3108
|
props: {
|
|
3025
3109
|
active: { type: Boolean },
|
|
@@ -3040,13 +3124,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3040
3124
|
"aria-current": __props.active ? "true" : void 0
|
|
3041
3125
|
}, {
|
|
3042
3126
|
default: withCtx(() => [
|
|
3043
|
-
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3127
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$c, [
|
|
3044
3128
|
renderSlot(_ctx.$slots, "prepend", {}, void 0, true)
|
|
3045
3129
|
])) : createCommentVNode("", true),
|
|
3046
|
-
createElementVNode("span", _hoisted_2$
|
|
3130
|
+
createElementVNode("span", _hoisted_2$b, [
|
|
3047
3131
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3048
3132
|
]),
|
|
3049
|
-
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
3133
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
|
|
3050
3134
|
renderSlot(_ctx.$slots, "append", {}, void 0, true)
|
|
3051
3135
|
])) : createCommentVNode("", true)
|
|
3052
3136
|
]),
|
|
@@ -3056,14 +3140,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3056
3140
|
};
|
|
3057
3141
|
}
|
|
3058
3142
|
});
|
|
3059
|
-
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3060
|
-
const _hoisted_1 = {
|
|
3143
|
+
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e05ac56f"]]);
|
|
3144
|
+
const _hoisted_1$b = {
|
|
3061
3145
|
key: 0,
|
|
3062
3146
|
class: "lf-divider lf-divider--labeled",
|
|
3063
3147
|
role: "separator"
|
|
3064
3148
|
};
|
|
3065
|
-
const _hoisted_2 = { class: "lf-divider__label" };
|
|
3066
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3149
|
+
const _hoisted_2$a = { class: "lf-divider__label" };
|
|
3150
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3067
3151
|
__name: "LfDivider",
|
|
3068
3152
|
props: {
|
|
3069
3153
|
label: {},
|
|
@@ -3071,8 +3155,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3071
3155
|
},
|
|
3072
3156
|
setup(__props) {
|
|
3073
3157
|
return (_ctx, _cache) => {
|
|
3074
|
-
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3075
|
-
createElementVNode("span", _hoisted_2, [
|
|
3158
|
+
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
3159
|
+
createElementVNode("span", _hoisted_2$a, [
|
|
3076
3160
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3077
3161
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
3078
3162
|
], true)
|
|
@@ -3084,7 +3168,1109 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3084
3168
|
};
|
|
3085
3169
|
}
|
|
3086
3170
|
});
|
|
3087
|
-
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c15d2259"]]);
|
|
3171
|
+
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c15d2259"]]);
|
|
3172
|
+
const _hoisted_1$a = ["aria-label"];
|
|
3173
|
+
const _hoisted_2$9 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
3174
|
+
const _hoisted_3$8 = {
|
|
3175
|
+
key: 1,
|
|
3176
|
+
class: "lf-tabs__badge"
|
|
3177
|
+
};
|
|
3178
|
+
const _hoisted_4$5 = {
|
|
3179
|
+
key: 1,
|
|
3180
|
+
class: "lf-tabs__actions"
|
|
3181
|
+
};
|
|
3182
|
+
const _hoisted_5$4 = ["id", "aria-labelledby"];
|
|
3183
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3184
|
+
__name: "LfTabs",
|
|
3185
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3186
|
+
tabs: { default: () => [] },
|
|
3187
|
+
dense: { type: Boolean },
|
|
3188
|
+
ariaLabel: {}
|
|
3189
|
+
}, {
|
|
3190
|
+
"modelValue": { required: true },
|
|
3191
|
+
"modelModifiers": {}
|
|
3192
|
+
}),
|
|
3193
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
3194
|
+
setup(__props, { emit: __emit }) {
|
|
3195
|
+
const props = __props;
|
|
3196
|
+
const model = useModel(__props, "modelValue");
|
|
3197
|
+
const emit = __emit;
|
|
3198
|
+
const slots = useSlots();
|
|
3199
|
+
const uid = useId();
|
|
3200
|
+
const normalized = computed(
|
|
3201
|
+
() => props.tabs.map((t) => typeof t === "string" ? { value: t, label: t } : t)
|
|
3202
|
+
);
|
|
3203
|
+
const hasPanel = computed(() => Object.keys(slots).some((k) => k === "default" || k.startsWith("panel-")));
|
|
3204
|
+
function iconOf(t) {
|
|
3205
|
+
if (!t.icon) return {};
|
|
3206
|
+
return t.icon in LF_ICONS ? { name: t.icon } : { path: t.icon };
|
|
3207
|
+
}
|
|
3208
|
+
function pick(t) {
|
|
3209
|
+
if (t.disabled || t.value === model.value) return;
|
|
3210
|
+
model.value = t.value;
|
|
3211
|
+
emit("change", t.value);
|
|
3212
|
+
}
|
|
3213
|
+
function onKeydown(e3) {
|
|
3214
|
+
const enabled = normalized.value.filter((t) => !t.disabled);
|
|
3215
|
+
if (!enabled.length) return;
|
|
3216
|
+
const i2 = enabled.findIndex((t) => t.value === model.value);
|
|
3217
|
+
let next = -1;
|
|
3218
|
+
if (e3.key === "ArrowRight") next = (i2 + 1) % enabled.length;
|
|
3219
|
+
else if (e3.key === "ArrowLeft") next = (i2 - 1 + enabled.length) % enabled.length;
|
|
3220
|
+
else if (e3.key === "Home") next = 0;
|
|
3221
|
+
else if (e3.key === "End") next = enabled.length - 1;
|
|
3222
|
+
if (next < 0) return;
|
|
3223
|
+
e3.preventDefault();
|
|
3224
|
+
pick(enabled[next]);
|
|
3225
|
+
void nextTick(() => {
|
|
3226
|
+
var _a, _b;
|
|
3227
|
+
return (_b = (_a = list.value) == null ? void 0 : _a.querySelector(".lf-tabs__tab--on")) == null ? void 0 : _b.focus();
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
const list = useTemplateRef("list");
|
|
3231
|
+
const bar = ref(null);
|
|
3232
|
+
const instant = ref(true);
|
|
3233
|
+
function measure() {
|
|
3234
|
+
var _a;
|
|
3235
|
+
const el = (_a = list.value) == null ? void 0 : _a.querySelector(".lf-tabs__tab--on");
|
|
3236
|
+
const next = el && el.offsetWidth ? { x: el.offsetLeft, w: el.offsetWidth } : null;
|
|
3237
|
+
instant.value = !bar.value;
|
|
3238
|
+
bar.value = next;
|
|
3239
|
+
}
|
|
3240
|
+
let ro = null;
|
|
3241
|
+
onMounted(() => {
|
|
3242
|
+
measure();
|
|
3243
|
+
if (typeof ResizeObserver !== "undefined" && list.value) {
|
|
3244
|
+
ro = new ResizeObserver(() => measure());
|
|
3245
|
+
ro.observe(list.value);
|
|
3246
|
+
}
|
|
3247
|
+
});
|
|
3248
|
+
onBeforeUnmount(() => ro == null ? void 0 : ro.disconnect());
|
|
3249
|
+
watch(() => [model.value, normalized.value.length, normalized.value.map((t) => t.badge).join()], () => void nextTick(measure));
|
|
3250
|
+
return (_ctx, _cache) => {
|
|
3251
|
+
return openBlock(), createElementBlock("div", {
|
|
3252
|
+
class: normalizeClass(["lf-tabs", { "lf-tabs--dense": __props.dense }])
|
|
3253
|
+
}, [
|
|
3254
|
+
createElementVNode("div", {
|
|
3255
|
+
ref_key: "list",
|
|
3256
|
+
ref: list,
|
|
3257
|
+
class: "lf-tabs__list",
|
|
3258
|
+
role: "tablist",
|
|
3259
|
+
"aria-label": __props.ariaLabel,
|
|
3260
|
+
onKeydown
|
|
3261
|
+
}, [
|
|
3262
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (tab) => {
|
|
3263
|
+
return openBlock(), createElementBlock("button", {
|
|
3264
|
+
id: `${unref(uid)}-tab-${tab.value}`,
|
|
3265
|
+
key: String(tab.value),
|
|
3266
|
+
type: "button",
|
|
3267
|
+
class: normalizeClass(["lf-tabs__tab", { "lf-tabs__tab--on": tab.value === model.value }]),
|
|
3268
|
+
role: "tab",
|
|
3269
|
+
"aria-selected": tab.value === model.value ? "true" : "false",
|
|
3270
|
+
"aria-controls": `${unref(uid)}-panel`,
|
|
3271
|
+
tabindex: tab.value === model.value ? 0 : -1,
|
|
3272
|
+
disabled: tab.disabled,
|
|
3273
|
+
onClick: ($event) => pick(tab)
|
|
3274
|
+
}, [
|
|
3275
|
+
tab.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3276
|
+
key: 0,
|
|
3277
|
+
ref_for: true
|
|
3278
|
+
}, iconOf(tab), {
|
|
3279
|
+
size: "1rem",
|
|
3280
|
+
class: "lf-tabs__icon"
|
|
3281
|
+
}), null, 16)) : createCommentVNode("", true),
|
|
3282
|
+
createElementVNode("span", null, toDisplayString(tab.label), 1),
|
|
3283
|
+
tab.badge !== void 0 && tab.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_3$8, toDisplayString(tab.badge), 1)) : createCommentVNode("", true)
|
|
3284
|
+
], 10, _hoisted_2$9);
|
|
3285
|
+
}), 128)),
|
|
3286
|
+
bar.value ? (openBlock(), createElementBlock("span", {
|
|
3287
|
+
key: 0,
|
|
3288
|
+
class: normalizeClass(["lf-tabs__bar", { "lf-tabs__bar--instant": instant.value }]),
|
|
3289
|
+
style: normalizeStyle({ transform: `translateX(${bar.value.x}px)`, width: `${bar.value.w}px` }),
|
|
3290
|
+
"aria-hidden": "true"
|
|
3291
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
3292
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-tabs__spacer" }, null, -1)),
|
|
3293
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
3294
|
+
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3295
|
+
])) : createCommentVNode("", true)
|
|
3296
|
+
], 40, _hoisted_1$a),
|
|
3297
|
+
hasPanel.value ? (openBlock(), createElementBlock("div", {
|
|
3298
|
+
key: 0,
|
|
3299
|
+
id: `${unref(uid)}-panel`,
|
|
3300
|
+
class: "lf-tabs__panel",
|
|
3301
|
+
role: "tabpanel",
|
|
3302
|
+
"aria-labelledby": `${unref(uid)}-tab-${model.value}`
|
|
3303
|
+
}, [
|
|
3304
|
+
_ctx.$slots[`panel-${model.value}`] ? renderSlot(_ctx.$slots, `panel-${model.value}`, {}, void 0, true, 0) : renderSlot(_ctx.$slots, "default", { value: model.value }, void 0, true, 1)
|
|
3305
|
+
], 8, _hoisted_5$4)) : createCommentVNode("", true)
|
|
3306
|
+
], 2);
|
|
3307
|
+
};
|
|
3308
|
+
}
|
|
3309
|
+
});
|
|
3310
|
+
const LfTabs = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ad8ded73"]]);
|
|
3311
|
+
const _hoisted_1$9 = ["aria-modal", "aria-labelledby", "aria-label"];
|
|
3312
|
+
const _hoisted_2$8 = {
|
|
3313
|
+
key: 0,
|
|
3314
|
+
class: "lf-drawer__header"
|
|
3315
|
+
};
|
|
3316
|
+
const _hoisted_3$7 = { class: "lf-drawer__heading" };
|
|
3317
|
+
const _hoisted_4$4 = ["id"];
|
|
3318
|
+
const _hoisted_5$3 = {
|
|
3319
|
+
key: 0,
|
|
3320
|
+
class: "lf-drawer__subtitle"
|
|
3321
|
+
};
|
|
3322
|
+
const _hoisted_6$2 = {
|
|
3323
|
+
key: 0,
|
|
3324
|
+
class: "lf-drawer__actions"
|
|
3325
|
+
};
|
|
3326
|
+
const _hoisted_7$1 = {
|
|
3327
|
+
key: 1,
|
|
3328
|
+
class: "lf-drawer__footer"
|
|
3329
|
+
};
|
|
3330
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
3331
|
+
__name: "LfDrawer",
|
|
3332
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3333
|
+
title: {},
|
|
3334
|
+
subtitle: {},
|
|
3335
|
+
width: { default: "32rem" },
|
|
3336
|
+
side: { default: "right" },
|
|
3337
|
+
modal: { type: Boolean },
|
|
3338
|
+
closeOnScrim: { type: Boolean, default: true },
|
|
3339
|
+
closeOnEsc: { type: Boolean, default: true },
|
|
3340
|
+
closable: { type: Boolean, default: true },
|
|
3341
|
+
closeLabel: { default: "닫기" },
|
|
3342
|
+
ariaLabel: {},
|
|
3343
|
+
flush: { type: Boolean }
|
|
3344
|
+
}, {
|
|
3345
|
+
"modelValue": { type: Boolean, ...{ default: false } },
|
|
3346
|
+
"modelModifiers": {}
|
|
3347
|
+
}),
|
|
3348
|
+
emits: /* @__PURE__ */ mergeModels(["close"], ["update:modelValue"]),
|
|
3349
|
+
setup(__props, { emit: __emit }) {
|
|
3350
|
+
const props = __props;
|
|
3351
|
+
const model = useModel(__props, "modelValue");
|
|
3352
|
+
const emit = __emit;
|
|
3353
|
+
const titleId = useId();
|
|
3354
|
+
const panel = useTemplateRef("panel");
|
|
3355
|
+
let lastFocused = null;
|
|
3356
|
+
function close(reason) {
|
|
3357
|
+
model.value = false;
|
|
3358
|
+
emit("close", reason);
|
|
3359
|
+
}
|
|
3360
|
+
let downOnScrim = false;
|
|
3361
|
+
function onScrimDown() {
|
|
3362
|
+
downOnScrim = true;
|
|
3363
|
+
}
|
|
3364
|
+
function onScrimClick() {
|
|
3365
|
+
if (!downOnScrim) return;
|
|
3366
|
+
downOnScrim = false;
|
|
3367
|
+
if (props.closeOnScrim) close("scrim");
|
|
3368
|
+
}
|
|
3369
|
+
function onKeydown(e3) {
|
|
3370
|
+
if (e3.key === "Escape" && props.closeOnEsc) {
|
|
3371
|
+
e3.stopPropagation();
|
|
3372
|
+
close("esc");
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
function onDocKeydown(e3) {
|
|
3376
|
+
var _a;
|
|
3377
|
+
if (e3.key !== "Escape" || !props.closeOnEsc || e3.defaultPrevented) return;
|
|
3378
|
+
const t = e3.target;
|
|
3379
|
+
if (t && ((_a = panel.value) == null ? void 0 : _a.contains(t))) return;
|
|
3380
|
+
if (t && /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)) return;
|
|
3381
|
+
close("esc");
|
|
3382
|
+
}
|
|
3383
|
+
function focusPanel() {
|
|
3384
|
+
var _a;
|
|
3385
|
+
(_a = panel.value) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
3386
|
+
}
|
|
3387
|
+
watch(
|
|
3388
|
+
model,
|
|
3389
|
+
(open) => {
|
|
3390
|
+
var _a;
|
|
3391
|
+
if (typeof document === "undefined") return;
|
|
3392
|
+
if (open) {
|
|
3393
|
+
lastFocused = document.activeElement;
|
|
3394
|
+
document.addEventListener("keydown", onDocKeydown);
|
|
3395
|
+
if (props.modal) document.body.style.overflow = "hidden";
|
|
3396
|
+
void nextTick(focusPanel);
|
|
3397
|
+
} else {
|
|
3398
|
+
document.removeEventListener("keydown", onDocKeydown);
|
|
3399
|
+
document.body.style.overflow = "";
|
|
3400
|
+
(_a = lastFocused == null ? void 0 : lastFocused.focus) == null ? void 0 : _a.call(lastFocused, { preventScroll: true });
|
|
3401
|
+
lastFocused = null;
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
{ immediate: true }
|
|
3405
|
+
);
|
|
3406
|
+
onBeforeUnmount(() => {
|
|
3407
|
+
if (typeof document === "undefined") return;
|
|
3408
|
+
document.removeEventListener("keydown", onDocKeydown);
|
|
3409
|
+
if (model.value && props.modal) document.body.style.overflow = "";
|
|
3410
|
+
});
|
|
3411
|
+
return (_ctx, _cache) => {
|
|
3412
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3413
|
+
createVNode(Transition, { name: "lf-drawer-fade" }, {
|
|
3414
|
+
default: withCtx(() => [
|
|
3415
|
+
model.value && __props.modal ? (openBlock(), createElementBlock("div", {
|
|
3416
|
+
key: 0,
|
|
3417
|
+
class: "lf-drawer-scrim",
|
|
3418
|
+
onPointerdown: withModifiers(onScrimDown, ["self"]),
|
|
3419
|
+
onClick: withModifiers(onScrimClick, ["self"])
|
|
3420
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
3421
|
+
]),
|
|
3422
|
+
_: 1
|
|
3423
|
+
}),
|
|
3424
|
+
createVNode(Transition, {
|
|
3425
|
+
name: `lf-drawer-slide-${__props.side}`,
|
|
3426
|
+
onAfterEnter: focusPanel
|
|
3427
|
+
}, {
|
|
3428
|
+
default: withCtx(() => [
|
|
3429
|
+
model.value ? (openBlock(), createElementBlock("aside", {
|
|
3430
|
+
key: 0,
|
|
3431
|
+
ref_key: "panel",
|
|
3432
|
+
ref: panel,
|
|
3433
|
+
class: normalizeClass(["lf-drawer", [`lf-drawer--${__props.side}`, { "lf-drawer--modal": __props.modal }]]),
|
|
3434
|
+
style: normalizeStyle({ width: __props.width }),
|
|
3435
|
+
role: "dialog",
|
|
3436
|
+
"aria-modal": __props.modal ? "true" : void 0,
|
|
3437
|
+
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
3438
|
+
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
3439
|
+
tabindex: "-1",
|
|
3440
|
+
onKeydown
|
|
3441
|
+
}, [
|
|
3442
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$8, [
|
|
3443
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
3444
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3445
|
+
createElementVNode("h2", {
|
|
3446
|
+
id: unref(titleId),
|
|
3447
|
+
class: "lf-drawer__title"
|
|
3448
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$4),
|
|
3449
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$3, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
3450
|
+
], true)
|
|
3451
|
+
]),
|
|
3452
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
3453
|
+
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3454
|
+
])) : createCommentVNode("", true),
|
|
3455
|
+
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
3456
|
+
key: 1,
|
|
3457
|
+
icon: "close",
|
|
3458
|
+
label: __props.closeLabel,
|
|
3459
|
+
size: "sm",
|
|
3460
|
+
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
3461
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
3462
|
+
])) : createCommentVNode("", true),
|
|
3463
|
+
createElementVNode("div", {
|
|
3464
|
+
class: normalizeClass(["lf-drawer__body", { "lf-drawer__body--flush": __props.flush }])
|
|
3465
|
+
}, [
|
|
3466
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3467
|
+
], 2),
|
|
3468
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$1, [
|
|
3469
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
3470
|
+
])) : createCommentVNode("", true)
|
|
3471
|
+
], 46, _hoisted_1$9)) : createCommentVNode("", true)
|
|
3472
|
+
]),
|
|
3473
|
+
_: 3
|
|
3474
|
+
}, 8, ["name"])
|
|
3475
|
+
]);
|
|
3476
|
+
};
|
|
3477
|
+
}
|
|
3478
|
+
});
|
|
3479
|
+
const LfDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-a26a26f8"]]);
|
|
3480
|
+
const _hoisted_1$8 = ["id", "type", "value", "max", "min", "disabled", "aria-label"];
|
|
3481
|
+
const _hoisted_2$7 = ["type", "value", "min", "max", "disabled", "aria-label"];
|
|
3482
|
+
const _hoisted_3$6 = ["aria-label"];
|
|
3483
|
+
const _hoisted_4$3 = ["disabled", "onClick"];
|
|
3484
|
+
const _hoisted_5$2 = ["aria-label", "title", "disabled"];
|
|
3485
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3486
|
+
__name: "LfDateRange",
|
|
3487
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3488
|
+
label: {},
|
|
3489
|
+
hint: {},
|
|
3490
|
+
error: {},
|
|
3491
|
+
required: { type: Boolean },
|
|
3492
|
+
disabled: { type: Boolean },
|
|
3493
|
+
datetime: { type: Boolean },
|
|
3494
|
+
min: {},
|
|
3495
|
+
max: {},
|
|
3496
|
+
size: { default: "md" },
|
|
3497
|
+
clearable: { type: Boolean },
|
|
3498
|
+
presets: { default: () => [
|
|
3499
|
+
{ label: "오늘", days: 0 },
|
|
3500
|
+
{ label: "7일", days: 7 },
|
|
3501
|
+
{ label: "30일", days: 30 }
|
|
3502
|
+
] },
|
|
3503
|
+
fromLabel: { default: "시작일" },
|
|
3504
|
+
toLabel: { default: "종료일" },
|
|
3505
|
+
presetsLabel: { default: "기간" },
|
|
3506
|
+
clearLabel: { default: "지우기" }
|
|
3507
|
+
}, {
|
|
3508
|
+
"modelValue": { default: null },
|
|
3509
|
+
"modelModifiers": {}
|
|
3510
|
+
}),
|
|
3511
|
+
emits: ["update:modelValue"],
|
|
3512
|
+
setup(__props) {
|
|
3513
|
+
const props = __props;
|
|
3514
|
+
const model = useModel(__props, "modelValue");
|
|
3515
|
+
const fromId = useId();
|
|
3516
|
+
const inputType = computed(() => props.datetime ? "datetime-local" : "date");
|
|
3517
|
+
function set(which, v) {
|
|
3518
|
+
var _a, _b;
|
|
3519
|
+
model.value = { from: ((_a = model.value) == null ? void 0 : _a.from) ?? "", to: ((_b = model.value) == null ? void 0 : _b.to) ?? "", [which]: v };
|
|
3520
|
+
}
|
|
3521
|
+
function fmt(d2, endOfDay) {
|
|
3522
|
+
const p = (n) => String(n).padStart(2, "0");
|
|
3523
|
+
const date = `${d2.getFullYear()}-${p(d2.getMonth() + 1)}-${p(d2.getDate())}`;
|
|
3524
|
+
if (!props.datetime) return date;
|
|
3525
|
+
return `${date}T${endOfDay ? "23:59" : "00:00"}`;
|
|
3526
|
+
}
|
|
3527
|
+
function rangeFor(days) {
|
|
3528
|
+
const to = /* @__PURE__ */ new Date();
|
|
3529
|
+
const from = /* @__PURE__ */ new Date();
|
|
3530
|
+
from.setDate(from.getDate() - Math.max(0, days - (days > 0 ? 1 : 0)));
|
|
3531
|
+
return { from: fmt(from, false), to: fmt(to, true) };
|
|
3532
|
+
}
|
|
3533
|
+
function applyPreset(days) {
|
|
3534
|
+
model.value = rangeFor(days);
|
|
3535
|
+
}
|
|
3536
|
+
function isPreset(days) {
|
|
3537
|
+
var _a, _b;
|
|
3538
|
+
const r = rangeFor(days);
|
|
3539
|
+
return ((_a = model.value) == null ? void 0 : _a.from) === r.from && ((_b = model.value) == null ? void 0 : _b.to) === r.to;
|
|
3540
|
+
}
|
|
3541
|
+
return (_ctx, _cache) => {
|
|
3542
|
+
return openBlock(), createBlock(LfField, {
|
|
3543
|
+
label: __props.label,
|
|
3544
|
+
hint: __props.hint,
|
|
3545
|
+
error: __props.error,
|
|
3546
|
+
required: __props.required,
|
|
3547
|
+
"html-for": unref(fromId),
|
|
3548
|
+
class: "lf-daterange"
|
|
3549
|
+
}, {
|
|
3550
|
+
default: withCtx(() => {
|
|
3551
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3552
|
+
return [
|
|
3553
|
+
createElementVNode("div", {
|
|
3554
|
+
class: normalizeClass(["lf-daterange__row", `lf-daterange--${__props.size}`])
|
|
3555
|
+
}, [
|
|
3556
|
+
createElementVNode("input", {
|
|
3557
|
+
id: unref(fromId),
|
|
3558
|
+
class: normalizeClass(["lf-control lf-daterange__input", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }]),
|
|
3559
|
+
type: inputType.value,
|
|
3560
|
+
value: ((_a = model.value) == null ? void 0 : _a.from) ?? "",
|
|
3561
|
+
max: ((_b = model.value) == null ? void 0 : _b.to) || __props.max || void 0,
|
|
3562
|
+
min: __props.min || void 0,
|
|
3563
|
+
disabled: __props.disabled,
|
|
3564
|
+
"aria-label": __props.fromLabel,
|
|
3565
|
+
onChange: _cache[0] || (_cache[0] = ($event) => set("from", $event.target.value))
|
|
3566
|
+
}, null, 42, _hoisted_1$8),
|
|
3567
|
+
_cache[3] || (_cache[3] = createElementVNode("span", {
|
|
3568
|
+
class: "lf-daterange__sep",
|
|
3569
|
+
"aria-hidden": "true"
|
|
3570
|
+
}, "~", -1)),
|
|
3571
|
+
createElementVNode("input", {
|
|
3572
|
+
class: normalizeClass(["lf-control lf-daterange__input", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }]),
|
|
3573
|
+
type: inputType.value,
|
|
3574
|
+
value: ((_c = model.value) == null ? void 0 : _c.to) ?? "",
|
|
3575
|
+
min: ((_d = model.value) == null ? void 0 : _d.from) || __props.min || void 0,
|
|
3576
|
+
max: __props.max || void 0,
|
|
3577
|
+
disabled: __props.disabled,
|
|
3578
|
+
"aria-label": __props.toLabel,
|
|
3579
|
+
onChange: _cache[1] || (_cache[1] = ($event) => set("to", $event.target.value))
|
|
3580
|
+
}, null, 42, _hoisted_2$7),
|
|
3581
|
+
__props.presets.length ? (openBlock(), createElementBlock("div", {
|
|
3582
|
+
key: 0,
|
|
3583
|
+
class: "lf-daterange__presets",
|
|
3584
|
+
role: "group",
|
|
3585
|
+
"aria-label": __props.presetsLabel
|
|
3586
|
+
}, [
|
|
3587
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.presets, (p) => {
|
|
3588
|
+
return openBlock(), createElementBlock("button", {
|
|
3589
|
+
key: p.days,
|
|
3590
|
+
type: "button",
|
|
3591
|
+
class: normalizeClass(["lf-daterange__preset", { "lf-daterange__preset--on": isPreset(p.days) }]),
|
|
3592
|
+
disabled: __props.disabled,
|
|
3593
|
+
onClick: ($event) => applyPreset(p.days)
|
|
3594
|
+
}, toDisplayString(p.label), 11, _hoisted_4$3);
|
|
3595
|
+
}), 128))
|
|
3596
|
+
], 8, _hoisted_3$6)) : createCommentVNode("", true),
|
|
3597
|
+
__props.clearable && (((_e = model.value) == null ? void 0 : _e.from) || ((_f = model.value) == null ? void 0 : _f.to)) ? (openBlock(), createElementBlock("button", {
|
|
3598
|
+
key: 1,
|
|
3599
|
+
type: "button",
|
|
3600
|
+
class: "lf-daterange__clear",
|
|
3601
|
+
"aria-label": __props.clearLabel,
|
|
3602
|
+
title: __props.clearLabel,
|
|
3603
|
+
disabled: __props.disabled,
|
|
3604
|
+
onClick: _cache[2] || (_cache[2] = ($event) => model.value = { from: "", to: "" })
|
|
3605
|
+
}, [
|
|
3606
|
+
createVNode(LfIcon, {
|
|
3607
|
+
name: "close",
|
|
3608
|
+
size: "0.875rem"
|
|
3609
|
+
})
|
|
3610
|
+
], 8, _hoisted_5$2)) : createCommentVNode("", true)
|
|
3611
|
+
], 2)
|
|
3612
|
+
];
|
|
3613
|
+
}),
|
|
3614
|
+
_: 1
|
|
3615
|
+
}, 8, ["label", "hint", "error", "required", "html-for"]);
|
|
3616
|
+
};
|
|
3617
|
+
}
|
|
3618
|
+
});
|
|
3619
|
+
const LfDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-cd58ea87"]]);
|
|
3620
|
+
const _hoisted_1$7 = ["aria-label"];
|
|
3621
|
+
const _hoisted_2$6 = ["aria-level", "aria-expanded", "aria-selected", "tabindex", "data-id", "onClick", "onFocus"];
|
|
3622
|
+
const _hoisted_3$5 = ["aria-label", "onClick"];
|
|
3623
|
+
const _hoisted_4$2 = {
|
|
3624
|
+
key: 1,
|
|
3625
|
+
class: "lf-tree__toggle lf-tree__toggle--leaf",
|
|
3626
|
+
"aria-hidden": "true"
|
|
3627
|
+
};
|
|
3628
|
+
const _hoisted_5$1 = { class: "lf-tree__label" };
|
|
3629
|
+
const _hoisted_6$1 = {
|
|
3630
|
+
key: 3,
|
|
3631
|
+
class: "lf-tree__badge"
|
|
3632
|
+
};
|
|
3633
|
+
const _hoisted_7 = {
|
|
3634
|
+
key: 0,
|
|
3635
|
+
class: "lf-tree__empty"
|
|
3636
|
+
};
|
|
3637
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3638
|
+
__name: "LfTree",
|
|
3639
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3640
|
+
nodes: { default: () => [] },
|
|
3641
|
+
defaultExpandDepth: { default: 1 },
|
|
3642
|
+
filter: {},
|
|
3643
|
+
dense: { type: Boolean },
|
|
3644
|
+
indent: { default: 1.125 },
|
|
3645
|
+
emptyText: { default: "항목이 없습니다." },
|
|
3646
|
+
ariaLabel: {},
|
|
3647
|
+
expandLabel: { default: "펼치기" },
|
|
3648
|
+
collapseLabel: { default: "접기" }
|
|
3649
|
+
}, {
|
|
3650
|
+
"selected": { default: null },
|
|
3651
|
+
"selectedModifiers": {},
|
|
3652
|
+
"expanded": { default: void 0 },
|
|
3653
|
+
"expandedModifiers": {}
|
|
3654
|
+
}),
|
|
3655
|
+
emits: /* @__PURE__ */ mergeModels(["select"], ["update:selected", "update:expanded"]),
|
|
3656
|
+
setup(__props, { emit: __emit }) {
|
|
3657
|
+
const props = __props;
|
|
3658
|
+
const selected = useModel(__props, "selected");
|
|
3659
|
+
const expanded = useModel(__props, "expanded");
|
|
3660
|
+
const emit = __emit;
|
|
3661
|
+
const local = ref(/* @__PURE__ */ new Set());
|
|
3662
|
+
function initLocal() {
|
|
3663
|
+
const s = /* @__PURE__ */ new Set();
|
|
3664
|
+
const walk = (ns, d2) => {
|
|
3665
|
+
var _a;
|
|
3666
|
+
for (const n of ns) {
|
|
3667
|
+
if (((_a = n.children) == null ? void 0 : _a.length) && d2 < props.defaultExpandDepth) s.add(n.id);
|
|
3668
|
+
if (n.children) walk(n.children, d2 + 1);
|
|
3669
|
+
}
|
|
3670
|
+
};
|
|
3671
|
+
walk(props.nodes, 0);
|
|
3672
|
+
local.value = s;
|
|
3673
|
+
}
|
|
3674
|
+
initLocal();
|
|
3675
|
+
watch(() => props.nodes, initLocal);
|
|
3676
|
+
const openSet = computed(() => expanded.value ? new Set(expanded.value) : local.value);
|
|
3677
|
+
function isOpen(id) {
|
|
3678
|
+
return filtering.value ? true : openSet.value.has(id);
|
|
3679
|
+
}
|
|
3680
|
+
function toggle(id) {
|
|
3681
|
+
const next = new Set(openSet.value);
|
|
3682
|
+
if (next.has(id)) next.delete(id);
|
|
3683
|
+
else next.add(id);
|
|
3684
|
+
if (expanded.value) expanded.value = [...next];
|
|
3685
|
+
else local.value = next;
|
|
3686
|
+
}
|
|
3687
|
+
const filtering = computed(() => {
|
|
3688
|
+
var _a;
|
|
3689
|
+
return !!((_a = props.filter) == null ? void 0 : _a.trim());
|
|
3690
|
+
});
|
|
3691
|
+
function matches(n, q) {
|
|
3692
|
+
var _a;
|
|
3693
|
+
if (n.label.toLowerCase().includes(q)) return true;
|
|
3694
|
+
return !!((_a = n.children) == null ? void 0 : _a.some((c2) => matches(c2, q)));
|
|
3695
|
+
}
|
|
3696
|
+
const rows = computed(() => {
|
|
3697
|
+
var _a;
|
|
3698
|
+
const out = [];
|
|
3699
|
+
const q = ((_a = props.filter) == null ? void 0 : _a.trim().toLowerCase()) ?? "";
|
|
3700
|
+
const walk = (ns, depth) => {
|
|
3701
|
+
var _a2;
|
|
3702
|
+
for (const n of ns) {
|
|
3703
|
+
if (q && !matches(n, q)) continue;
|
|
3704
|
+
const hasChildren = !!((_a2 = n.children) == null ? void 0 : _a2.length);
|
|
3705
|
+
out.push({ node: n, depth, hasChildren });
|
|
3706
|
+
if (hasChildren && isOpen(n.id)) walk(n.children, depth + 1);
|
|
3707
|
+
}
|
|
3708
|
+
};
|
|
3709
|
+
walk(props.nodes, 0);
|
|
3710
|
+
return out;
|
|
3711
|
+
});
|
|
3712
|
+
const focusId = ref(null);
|
|
3713
|
+
watch(rows, (r) => {
|
|
3714
|
+
var _a;
|
|
3715
|
+
if (!focusId.value || !r.some((x) => x.node.id === focusId.value)) focusId.value = selected.value ?? ((_a = r[0]) == null ? void 0 : _a.node.id) ?? null;
|
|
3716
|
+
}, { immediate: true });
|
|
3717
|
+
function iconOf(icon) {
|
|
3718
|
+
return icon in LF_ICONS ? { name: icon } : { path: icon };
|
|
3719
|
+
}
|
|
3720
|
+
function onRowClick(n) {
|
|
3721
|
+
focusId.value = n.id;
|
|
3722
|
+
if (n.disabled) return;
|
|
3723
|
+
selected.value = n.id;
|
|
3724
|
+
emit("select", n);
|
|
3725
|
+
}
|
|
3726
|
+
function focusRow(id) {
|
|
3727
|
+
if (!id) return;
|
|
3728
|
+
focusId.value = id;
|
|
3729
|
+
void nextTick(() => {
|
|
3730
|
+
const el = document.querySelector(`.lf-tree__row[data-id="${CSS.escape(id)}"]`);
|
|
3731
|
+
el == null ? void 0 : el.focus();
|
|
3732
|
+
});
|
|
3733
|
+
}
|
|
3734
|
+
function onKeydown(e3) {
|
|
3735
|
+
var _a, _b, _c, _d, _e;
|
|
3736
|
+
const list = rows.value;
|
|
3737
|
+
const i2 = list.findIndex((r) => r.node.id === focusId.value);
|
|
3738
|
+
if (i2 < 0) return;
|
|
3739
|
+
const row = list[i2];
|
|
3740
|
+
switch (e3.key) {
|
|
3741
|
+
case "ArrowDown":
|
|
3742
|
+
focusRow((_a = list[i2 + 1]) == null ? void 0 : _a.node.id);
|
|
3743
|
+
break;
|
|
3744
|
+
case "ArrowUp":
|
|
3745
|
+
focusRow((_b = list[i2 - 1]) == null ? void 0 : _b.node.id);
|
|
3746
|
+
break;
|
|
3747
|
+
case "Home":
|
|
3748
|
+
focusRow((_c = list[0]) == null ? void 0 : _c.node.id);
|
|
3749
|
+
break;
|
|
3750
|
+
case "End":
|
|
3751
|
+
focusRow((_d = list[list.length - 1]) == null ? void 0 : _d.node.id);
|
|
3752
|
+
break;
|
|
3753
|
+
case "ArrowRight":
|
|
3754
|
+
if (row.hasChildren && !isOpen(row.node.id)) toggle(row.node.id);
|
|
3755
|
+
else if (row.hasChildren) focusRow((_e = list[i2 + 1]) == null ? void 0 : _e.node.id);
|
|
3756
|
+
break;
|
|
3757
|
+
case "ArrowLeft":
|
|
3758
|
+
if (row.hasChildren && isOpen(row.node.id) && !filtering.value) toggle(row.node.id);
|
|
3759
|
+
else {
|
|
3760
|
+
for (let j = i2 - 1; j >= 0; j--) if (list[j].depth < row.depth) {
|
|
3761
|
+
focusRow(list[j].node.id);
|
|
3762
|
+
break;
|
|
3763
|
+
}
|
|
3764
|
+
}
|
|
3765
|
+
break;
|
|
3766
|
+
case "Enter":
|
|
3767
|
+
case " ":
|
|
3768
|
+
onRowClick(row.node);
|
|
3769
|
+
break;
|
|
3770
|
+
default:
|
|
3771
|
+
return;
|
|
3772
|
+
}
|
|
3773
|
+
e3.preventDefault();
|
|
3774
|
+
}
|
|
3775
|
+
return (_ctx, _cache) => {
|
|
3776
|
+
return openBlock(), createElementBlock("ul", {
|
|
3777
|
+
class: normalizeClass(["lf-tree", { "lf-tree--dense": __props.dense }]),
|
|
3778
|
+
role: "tree",
|
|
3779
|
+
"aria-label": __props.ariaLabel,
|
|
3780
|
+
onKeydown
|
|
3781
|
+
}, [
|
|
3782
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(rows.value, (row) => {
|
|
3783
|
+
return openBlock(), createElementBlock("li", {
|
|
3784
|
+
key: row.node.id,
|
|
3785
|
+
class: normalizeClass(["lf-tree__row", { "lf-tree__row--on": row.node.id === selected.value, "lf-tree__row--disabled": row.node.disabled }]),
|
|
3786
|
+
role: "treeitem",
|
|
3787
|
+
"aria-level": row.depth + 1,
|
|
3788
|
+
"aria-expanded": row.hasChildren ? isOpen(row.node.id) ? "true" : "false" : void 0,
|
|
3789
|
+
"aria-selected": row.node.id === selected.value ? "true" : "false",
|
|
3790
|
+
tabindex: row.node.id === focusId.value ? 0 : -1,
|
|
3791
|
+
"data-id": row.node.id,
|
|
3792
|
+
style: normalizeStyle({ paddingLeft: `${0.25 + row.depth * __props.indent}rem` }),
|
|
3793
|
+
onClick: ($event) => onRowClick(row.node),
|
|
3794
|
+
onFocus: ($event) => focusId.value = row.node.id
|
|
3795
|
+
}, [
|
|
3796
|
+
row.hasChildren ? (openBlock(), createElementBlock("button", {
|
|
3797
|
+
key: 0,
|
|
3798
|
+
type: "button",
|
|
3799
|
+
class: "lf-tree__toggle",
|
|
3800
|
+
tabindex: "-1",
|
|
3801
|
+
"aria-label": isOpen(row.node.id) ? __props.collapseLabel : __props.expandLabel,
|
|
3802
|
+
onClick: withModifiers(($event) => toggle(row.node.id), ["stop"])
|
|
3803
|
+
}, [
|
|
3804
|
+
createVNode(LfIcon, {
|
|
3805
|
+
name: isOpen(row.node.id) ? "expand_more" : "chevron_right",
|
|
3806
|
+
size: "1rem"
|
|
3807
|
+
}, null, 8, ["name"])
|
|
3808
|
+
], 8, _hoisted_3$5)) : (openBlock(), createElementBlock("span", _hoisted_4$2)),
|
|
3809
|
+
row.node.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3810
|
+
key: 2,
|
|
3811
|
+
ref_for: true
|
|
3812
|
+
}, iconOf(row.node.icon), {
|
|
3813
|
+
size: "1rem",
|
|
3814
|
+
class: "lf-tree__icon"
|
|
3815
|
+
}), null, 16)) : createCommentVNode("", true),
|
|
3816
|
+
createElementVNode("span", _hoisted_5$1, [
|
|
3817
|
+
renderSlot(_ctx.$slots, "label", {
|
|
3818
|
+
node: row.node,
|
|
3819
|
+
depth: row.depth
|
|
3820
|
+
}, () => [
|
|
3821
|
+
createTextVNode(toDisplayString(row.node.label), 1)
|
|
3822
|
+
], true)
|
|
3823
|
+
]),
|
|
3824
|
+
row.node.badge !== void 0 && row.node.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString(row.node.badge), 1)) : createCommentVNode("", true)
|
|
3825
|
+
], 46, _hoisted_2$6);
|
|
3826
|
+
}), 128)),
|
|
3827
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_7, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3828
|
+
], 42, _hoisted_1$7);
|
|
3829
|
+
};
|
|
3830
|
+
}
|
|
3831
|
+
});
|
|
3832
|
+
const LfTree = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d194fe5c"]]);
|
|
3833
|
+
const _hoisted_1$6 = ["aria-label"];
|
|
3834
|
+
const _hoisted_2$5 = ["aria-current"];
|
|
3835
|
+
const _hoisted_3$4 = {
|
|
3836
|
+
class: "lf-steps__dot",
|
|
3837
|
+
"aria-hidden": "true"
|
|
3838
|
+
};
|
|
3839
|
+
const _hoisted_4$1 = { class: "lf-steps__text" };
|
|
3840
|
+
const _hoisted_5 = { class: "lf-steps__label" };
|
|
3841
|
+
const _hoisted_6 = {
|
|
3842
|
+
key: 0,
|
|
3843
|
+
class: "lf-steps__desc"
|
|
3844
|
+
};
|
|
3845
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3846
|
+
__name: "LfSteps",
|
|
3847
|
+
props: {
|
|
3848
|
+
steps: { default: () => [] },
|
|
3849
|
+
current: { default: 0 },
|
|
3850
|
+
direction: { default: "horizontal" },
|
|
3851
|
+
dense: { type: Boolean },
|
|
3852
|
+
ariaLabel: {}
|
|
3853
|
+
},
|
|
3854
|
+
setup(__props) {
|
|
3855
|
+
const props = __props;
|
|
3856
|
+
function statusOf(step, i2) {
|
|
3857
|
+
if (step.status) return step.status;
|
|
3858
|
+
if (i2 < props.current) return "done";
|
|
3859
|
+
if (i2 === props.current) return "current";
|
|
3860
|
+
return "todo";
|
|
3861
|
+
}
|
|
3862
|
+
return (_ctx, _cache) => {
|
|
3863
|
+
return openBlock(), createElementBlock("ol", {
|
|
3864
|
+
class: normalizeClass(["lf-steps", [`lf-steps--${__props.direction}`, { "lf-steps--dense": __props.dense }]]),
|
|
3865
|
+
"aria-label": __props.ariaLabel
|
|
3866
|
+
}, [
|
|
3867
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (step, i2) => {
|
|
3868
|
+
return openBlock(), createElementBlock("li", {
|
|
3869
|
+
key: i2,
|
|
3870
|
+
class: normalizeClass(["lf-steps__item", `lf-steps__item--${statusOf(step, i2)}`]),
|
|
3871
|
+
"aria-current": statusOf(step, i2) === "current" ? "step" : void 0
|
|
3872
|
+
}, [
|
|
3873
|
+
createElementVNode("span", _hoisted_3$4, [
|
|
3874
|
+
statusOf(step, i2) === "done" ? (openBlock(), createBlock(LfIcon, {
|
|
3875
|
+
key: 0,
|
|
3876
|
+
name: "check",
|
|
3877
|
+
size: "0.875rem"
|
|
3878
|
+
})) : statusOf(step, i2) === "error" ? (openBlock(), createBlock(LfIcon, {
|
|
3879
|
+
key: 1,
|
|
3880
|
+
name: "close",
|
|
3881
|
+
size: "0.875rem"
|
|
3882
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
3883
|
+
createTextVNode(toDisplayString(i2 + 1), 1)
|
|
3884
|
+
], 64))
|
|
3885
|
+
]),
|
|
3886
|
+
createElementVNode("span", _hoisted_4$1, [
|
|
3887
|
+
createElementVNode("span", _hoisted_5, toDisplayString(step.label), 1),
|
|
3888
|
+
step.description ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(step.description), 1)) : createCommentVNode("", true)
|
|
3889
|
+
])
|
|
3890
|
+
], 10, _hoisted_2$5);
|
|
3891
|
+
}), 128))
|
|
3892
|
+
], 10, _hoisted_1$6);
|
|
3893
|
+
};
|
|
3894
|
+
}
|
|
3895
|
+
});
|
|
3896
|
+
const LfSteps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-366fd734"]]);
|
|
3897
|
+
const _hoisted_1$5 = {
|
|
3898
|
+
key: 0,
|
|
3899
|
+
class: "lf-progress__head"
|
|
3900
|
+
};
|
|
3901
|
+
const _hoisted_2$4 = {
|
|
3902
|
+
key: 0,
|
|
3903
|
+
class: "lf-progress__label"
|
|
3904
|
+
};
|
|
3905
|
+
const _hoisted_3$3 = {
|
|
3906
|
+
key: 1,
|
|
3907
|
+
class: "lf-progress__value"
|
|
3908
|
+
};
|
|
3909
|
+
const _hoisted_4 = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
3910
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3911
|
+
__name: "LfProgress",
|
|
3912
|
+
props: {
|
|
3913
|
+
value: { default: 0 },
|
|
3914
|
+
max: { default: 100 },
|
|
3915
|
+
label: {},
|
|
3916
|
+
showValue: { type: Boolean },
|
|
3917
|
+
format: {},
|
|
3918
|
+
tone: { default: "accent" },
|
|
3919
|
+
size: { default: "sm" },
|
|
3920
|
+
indeterminate: { type: Boolean },
|
|
3921
|
+
ariaLabel: {}
|
|
3922
|
+
},
|
|
3923
|
+
setup(__props) {
|
|
3924
|
+
const props = __props;
|
|
3925
|
+
const clamped = computed(() => Math.min(Math.max(props.value, 0), props.max));
|
|
3926
|
+
const pct = computed(() => props.max > 0 ? clamped.value / props.max * 100 : 0);
|
|
3927
|
+
const display = computed(() => props.format ? props.format(clamped.value, props.max) : `${Math.round(pct.value)}%`);
|
|
3928
|
+
return (_ctx, _cache) => {
|
|
3929
|
+
return openBlock(), createElementBlock("div", {
|
|
3930
|
+
class: normalizeClass(["lf-progress", [`lf-progress--${__props.size}`, `lf-progress--${__props.tone}`]])
|
|
3931
|
+
}, [
|
|
3932
|
+
__props.label || __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
3933
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
3934
|
+
__props.showValue && !__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(display.value), 1)) : createCommentVNode("", true)
|
|
3935
|
+
])) : createCommentVNode("", true),
|
|
3936
|
+
createElementVNode("div", {
|
|
3937
|
+
class: "lf-progress__track",
|
|
3938
|
+
role: "progressbar",
|
|
3939
|
+
"aria-label": __props.label || __props.ariaLabel,
|
|
3940
|
+
"aria-valuemin": __props.indeterminate ? void 0 : 0,
|
|
3941
|
+
"aria-valuemax": __props.indeterminate ? void 0 : __props.max,
|
|
3942
|
+
"aria-valuenow": __props.indeterminate ? void 0 : clamped.value
|
|
3943
|
+
}, [
|
|
3944
|
+
createElementVNode("div", {
|
|
3945
|
+
class: normalizeClass(["lf-progress__fill", { "lf-progress__fill--indeterminate": __props.indeterminate }]),
|
|
3946
|
+
style: normalizeStyle(__props.indeterminate ? void 0 : { width: `${pct.value}%` })
|
|
3947
|
+
}, null, 6)
|
|
3948
|
+
], 8, _hoisted_4)
|
|
3949
|
+
], 2);
|
|
3950
|
+
};
|
|
3951
|
+
}
|
|
3952
|
+
});
|
|
3953
|
+
const LfProgress = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ec77fd75"]]);
|
|
3954
|
+
const _hoisted_1$4 = { class: "lf-desc__label" };
|
|
3955
|
+
const _hoisted_2$3 = { class: "lf-desc__value" };
|
|
3956
|
+
const _hoisted_3$2 = {
|
|
3957
|
+
key: 0,
|
|
3958
|
+
class: "lf-desc__empty"
|
|
3959
|
+
};
|
|
3960
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3961
|
+
__name: "LfDescriptions",
|
|
3962
|
+
props: {
|
|
3963
|
+
items: { default: () => [] },
|
|
3964
|
+
columns: { default: 2 },
|
|
3965
|
+
dense: { type: Boolean },
|
|
3966
|
+
bordered: { type: Boolean },
|
|
3967
|
+
emptyText: { default: "—" }
|
|
3968
|
+
},
|
|
3969
|
+
setup(__props) {
|
|
3970
|
+
return (_ctx, _cache) => {
|
|
3971
|
+
return openBlock(), createElementBlock("dl", {
|
|
3972
|
+
class: normalizeClass(["lf-desc", { "lf-desc--dense": __props.dense, "lf-desc--bordered": __props.bordered }]),
|
|
3973
|
+
style: normalizeStyle({ "--lf-desc-cols": __props.columns })
|
|
3974
|
+
}, [
|
|
3975
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
3976
|
+
return openBlock(), createElementBlock("div", {
|
|
3977
|
+
key: item.key,
|
|
3978
|
+
class: "lf-desc__item",
|
|
3979
|
+
style: normalizeStyle(item.span ? { gridColumn: `span ${Math.min(item.span, __props.columns)}` } : void 0)
|
|
3980
|
+
}, [
|
|
3981
|
+
createElementVNode("dt", _hoisted_1$4, toDisplayString(item.label), 1),
|
|
3982
|
+
createElementVNode("dd", _hoisted_2$3, [
|
|
3983
|
+
renderSlot(_ctx.$slots, `value-${item.key}`, { item }, () => [
|
|
3984
|
+
item.value === null || item.value === void 0 || item.value === "" ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3985
|
+
createTextVNode(toDisplayString(item.value), 1)
|
|
3986
|
+
], 64))
|
|
3987
|
+
], true)
|
|
3988
|
+
])
|
|
3989
|
+
], 4);
|
|
3990
|
+
}), 128))
|
|
3991
|
+
], 6);
|
|
3992
|
+
};
|
|
3993
|
+
}
|
|
3994
|
+
});
|
|
3995
|
+
const LfDescriptions = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-89d24a22"]]);
|
|
3996
|
+
const _hoisted_1$3 = ["id", "placeholder", "disabled"];
|
|
3997
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3998
|
+
__name: "LfTagInput",
|
|
3999
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4000
|
+
label: {},
|
|
4001
|
+
hint: {},
|
|
4002
|
+
error: {},
|
|
4003
|
+
required: { type: Boolean },
|
|
4004
|
+
placeholder: {},
|
|
4005
|
+
disabled: { type: Boolean },
|
|
4006
|
+
size: { default: "md" },
|
|
4007
|
+
unique: { type: Boolean, default: true },
|
|
4008
|
+
max: {},
|
|
4009
|
+
normalize: {},
|
|
4010
|
+
removeLabel: { default: "제거" }
|
|
4011
|
+
}, {
|
|
4012
|
+
"modelValue": { default: () => [] },
|
|
4013
|
+
"modelModifiers": {}
|
|
4014
|
+
}),
|
|
4015
|
+
emits: ["update:modelValue"],
|
|
4016
|
+
setup(__props) {
|
|
4017
|
+
const props = __props;
|
|
4018
|
+
const model = useModel(__props, "modelValue");
|
|
4019
|
+
const inputId = useId();
|
|
4020
|
+
const input = useTemplateRef("input");
|
|
4021
|
+
const draft = ref("");
|
|
4022
|
+
function add(values) {
|
|
4023
|
+
const next = [...model.value];
|
|
4024
|
+
for (const raw of values) {
|
|
4025
|
+
const v = props.normalize ? props.normalize(raw.trim()) : raw.trim();
|
|
4026
|
+
if (!v) continue;
|
|
4027
|
+
if (props.unique && next.includes(v)) continue;
|
|
4028
|
+
if (props.max !== void 0 && next.length >= props.max) break;
|
|
4029
|
+
next.push(v);
|
|
4030
|
+
}
|
|
4031
|
+
if (next.length !== model.value.length) model.value = next;
|
|
4032
|
+
}
|
|
4033
|
+
function commit() {
|
|
4034
|
+
if (!draft.value.trim()) return;
|
|
4035
|
+
add([draft.value]);
|
|
4036
|
+
draft.value = "";
|
|
4037
|
+
}
|
|
4038
|
+
function removeAt(i2) {
|
|
4039
|
+
model.value = model.value.filter((_, j) => j !== i2);
|
|
4040
|
+
}
|
|
4041
|
+
function onKeydown(e3) {
|
|
4042
|
+
if (e3.key === "Enter" || e3.key === ",") {
|
|
4043
|
+
if (e3.isComposing) return;
|
|
4044
|
+
e3.preventDefault();
|
|
4045
|
+
commit();
|
|
4046
|
+
} else if (e3.key === "Backspace" && !draft.value && model.value.length) {
|
|
4047
|
+
removeAt(model.value.length - 1);
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
function onPaste(e3) {
|
|
4051
|
+
var _a;
|
|
4052
|
+
const text = ((_a = e3.clipboardData) == null ? void 0 : _a.getData("text")) ?? "";
|
|
4053
|
+
if (!/[\n,\t]/.test(text)) return;
|
|
4054
|
+
e3.preventDefault();
|
|
4055
|
+
add(text.split(/[\n,\t]+/));
|
|
4056
|
+
}
|
|
4057
|
+
return (_ctx, _cache) => {
|
|
4058
|
+
return openBlock(), createBlock(LfField, {
|
|
4059
|
+
label: __props.label,
|
|
4060
|
+
hint: __props.hint,
|
|
4061
|
+
error: __props.error,
|
|
4062
|
+
required: __props.required,
|
|
4063
|
+
"html-for": unref(inputId)
|
|
4064
|
+
}, {
|
|
4065
|
+
default: withCtx(() => [
|
|
4066
|
+
createElementVNode("div", {
|
|
4067
|
+
class: normalizeClass(["lf-control lf-tags", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error, "lf-tags--disabled": __props.disabled }]),
|
|
4068
|
+
onClick: _cache[2] || (_cache[2] = ($event) => {
|
|
4069
|
+
var _a;
|
|
4070
|
+
return (_a = input.value) == null ? void 0 : _a.focus();
|
|
4071
|
+
})
|
|
4072
|
+
}, [
|
|
4073
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(model.value, (tag, i2) => {
|
|
4074
|
+
return openBlock(), createBlock(LfBadge, {
|
|
4075
|
+
key: `${tag}-${i2}`,
|
|
4076
|
+
label: tag,
|
|
4077
|
+
size: "sm",
|
|
4078
|
+
removable: !__props.disabled,
|
|
4079
|
+
"remove-label": `${tag} ${__props.removeLabel}`,
|
|
4080
|
+
onRemove: ($event) => removeAt(i2)
|
|
4081
|
+
}, null, 8, ["label", "removable", "remove-label", "onRemove"]);
|
|
4082
|
+
}), 128)),
|
|
4083
|
+
withDirectives(createElementVNode("input", {
|
|
4084
|
+
id: unref(inputId),
|
|
4085
|
+
ref_key: "input",
|
|
4086
|
+
ref: input,
|
|
4087
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => draft.value = $event),
|
|
4088
|
+
class: "lf-tags__input",
|
|
4089
|
+
placeholder: model.value.length ? "" : __props.placeholder,
|
|
4090
|
+
disabled: __props.disabled || __props.max !== void 0 && model.value.length >= __props.max,
|
|
4091
|
+
onKeydown,
|
|
4092
|
+
onPaste,
|
|
4093
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => commit())
|
|
4094
|
+
}, null, 40, _hoisted_1$3), [
|
|
4095
|
+
[vModelText, draft.value]
|
|
4096
|
+
])
|
|
4097
|
+
], 2)
|
|
4098
|
+
]),
|
|
4099
|
+
_: 1
|
|
4100
|
+
}, 8, ["label", "hint", "error", "required", "html-for"]);
|
|
4101
|
+
};
|
|
4102
|
+
}
|
|
4103
|
+
});
|
|
4104
|
+
const LfTagInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-89f5a363"]]);
|
|
4105
|
+
const _hoisted_1$2 = ["aria-label"];
|
|
4106
|
+
const _hoisted_2$2 = { class: "lf-toolbar__start" };
|
|
4107
|
+
const _hoisted_3$1 = {
|
|
4108
|
+
key: 0,
|
|
4109
|
+
class: "lf-toolbar__end"
|
|
4110
|
+
};
|
|
4111
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4112
|
+
__name: "LfToolbar",
|
|
4113
|
+
props: {
|
|
4114
|
+
dense: { type: Boolean },
|
|
4115
|
+
bordered: { type: Boolean },
|
|
4116
|
+
ariaLabel: {}
|
|
4117
|
+
},
|
|
4118
|
+
setup(__props) {
|
|
4119
|
+
return (_ctx, _cache) => {
|
|
4120
|
+
return openBlock(), createElementBlock("div", {
|
|
4121
|
+
class: normalizeClass(["lf-toolbar", { "lf-toolbar--dense": __props.dense, "lf-toolbar--bordered": __props.bordered }]),
|
|
4122
|
+
role: "toolbar",
|
|
4123
|
+
"aria-label": __props.ariaLabel
|
|
4124
|
+
}, [
|
|
4125
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
4126
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4127
|
+
]),
|
|
4128
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
4129
|
+
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4130
|
+
])) : createCommentVNode("", true)
|
|
4131
|
+
], 10, _hoisted_1$2);
|
|
4132
|
+
};
|
|
4133
|
+
}
|
|
4134
|
+
});
|
|
4135
|
+
const LfToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c81170ed"]]);
|
|
4136
|
+
const _hoisted_1$1 = { class: "lf-kbd-group" };
|
|
4137
|
+
const _hoisted_2$1 = { class: "lf-kbd" };
|
|
4138
|
+
const _hoisted_3 = {
|
|
4139
|
+
key: 0,
|
|
4140
|
+
class: "lf-kbd-plus",
|
|
4141
|
+
"aria-hidden": "true"
|
|
4142
|
+
};
|
|
4143
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4144
|
+
__name: "LfKbd",
|
|
4145
|
+
props: {
|
|
4146
|
+
keys: {}
|
|
4147
|
+
},
|
|
4148
|
+
setup(__props) {
|
|
4149
|
+
const props = __props;
|
|
4150
|
+
const keyList = computed(() => Array.isArray(props.keys) ? props.keys : props.keys.split("+").map((k) => k.trim()));
|
|
4151
|
+
return (_ctx, _cache) => {
|
|
4152
|
+
return openBlock(), createElementBlock("span", _hoisted_1$1, [
|
|
4153
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(keyList.value, (k, i2) => {
|
|
4154
|
+
return openBlock(), createElementBlock(Fragment, { key: i2 }, [
|
|
4155
|
+
createElementVNode("kbd", _hoisted_2$1, toDisplayString(k), 1),
|
|
4156
|
+
i2 < keyList.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3, "+")) : createCommentVNode("", true)
|
|
4157
|
+
], 64);
|
|
4158
|
+
}), 128))
|
|
4159
|
+
]);
|
|
4160
|
+
};
|
|
4161
|
+
}
|
|
4162
|
+
});
|
|
4163
|
+
const LfKbd = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-89bdfee2"]]);
|
|
4164
|
+
const _hoisted_1 = ["aria-orientation", "aria-valuenow", "aria-label"];
|
|
4165
|
+
const _hoisted_2 = { class: "lf-split__pane lf-split__pane--second" };
|
|
4166
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4167
|
+
__name: "LfSplitPane",
|
|
4168
|
+
props: {
|
|
4169
|
+
direction: { default: "horizontal" },
|
|
4170
|
+
initial: { default: 50 },
|
|
4171
|
+
min: { default: 15 },
|
|
4172
|
+
max: { default: 85 },
|
|
4173
|
+
stackBelow: { default: 860 },
|
|
4174
|
+
storageKey: {},
|
|
4175
|
+
gutterLabel: { default: "크기 조절" }
|
|
4176
|
+
},
|
|
4177
|
+
setup(__props) {
|
|
4178
|
+
const props = __props;
|
|
4179
|
+
const size = ref(props.initial);
|
|
4180
|
+
const dragging = ref(false);
|
|
4181
|
+
const stacked = ref(false);
|
|
4182
|
+
const root = useTemplateRef("root");
|
|
4183
|
+
function clamp(v) {
|
|
4184
|
+
return Math.min(props.max, Math.max(props.min, v));
|
|
4185
|
+
}
|
|
4186
|
+
try {
|
|
4187
|
+
const saved = props.storageKey ? Number(localStorage.getItem(props.storageKey)) : NaN;
|
|
4188
|
+
if (Number.isFinite(saved) && saved > 0) size.value = clamp(saved);
|
|
4189
|
+
} catch {
|
|
4190
|
+
}
|
|
4191
|
+
watch(size, (v) => {
|
|
4192
|
+
if (!props.storageKey) return;
|
|
4193
|
+
try {
|
|
4194
|
+
localStorage.setItem(props.storageKey, String(Math.round(v * 10) / 10));
|
|
4195
|
+
} catch {
|
|
4196
|
+
}
|
|
4197
|
+
});
|
|
4198
|
+
function onMove(e3) {
|
|
4199
|
+
var _a;
|
|
4200
|
+
const r = (_a = root.value) == null ? void 0 : _a.getBoundingClientRect();
|
|
4201
|
+
if (!r) return;
|
|
4202
|
+
const pct = props.direction === "horizontal" ? (e3.clientX - r.left) / r.width * 100 : (e3.clientY - r.top) / r.height * 100;
|
|
4203
|
+
size.value = clamp(pct);
|
|
4204
|
+
}
|
|
4205
|
+
function onUp() {
|
|
4206
|
+
dragging.value = false;
|
|
4207
|
+
window.removeEventListener("pointermove", onMove);
|
|
4208
|
+
window.removeEventListener("pointerup", onUp);
|
|
4209
|
+
}
|
|
4210
|
+
function onDown(e3) {
|
|
4211
|
+
e3.preventDefault();
|
|
4212
|
+
dragging.value = true;
|
|
4213
|
+
window.addEventListener("pointermove", onMove);
|
|
4214
|
+
window.addEventListener("pointerup", onUp);
|
|
4215
|
+
}
|
|
4216
|
+
function onKey(e3) {
|
|
4217
|
+
const back = props.direction === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
4218
|
+
const fwd = props.direction === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
4219
|
+
if (e3.key === back) size.value = clamp(size.value - 2);
|
|
4220
|
+
else if (e3.key === fwd) size.value = clamp(size.value + 2);
|
|
4221
|
+
else return;
|
|
4222
|
+
e3.preventDefault();
|
|
4223
|
+
}
|
|
4224
|
+
let ro = null;
|
|
4225
|
+
onMounted(() => {
|
|
4226
|
+
const check = () => {
|
|
4227
|
+
var _a;
|
|
4228
|
+
stacked.value = props.stackBelow > 0 && (((_a = root.value) == null ? void 0 : _a.clientWidth) ?? 9999) < props.stackBelow;
|
|
4229
|
+
};
|
|
4230
|
+
check();
|
|
4231
|
+
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
4232
|
+
ro = new ResizeObserver(check);
|
|
4233
|
+
ro.observe(root.value);
|
|
4234
|
+
}
|
|
4235
|
+
});
|
|
4236
|
+
onBeforeUnmount(() => {
|
|
4237
|
+
ro == null ? void 0 : ro.disconnect();
|
|
4238
|
+
onUp();
|
|
4239
|
+
});
|
|
4240
|
+
return (_ctx, _cache) => {
|
|
4241
|
+
return openBlock(), createElementBlock("div", {
|
|
4242
|
+
ref_key: "root",
|
|
4243
|
+
ref: root,
|
|
4244
|
+
class: normalizeClass(["lf-split", [`lf-split--${__props.direction}`, { "lf-split--stacked": stacked.value, "lf-split--dragging": dragging.value }]])
|
|
4245
|
+
}, [
|
|
4246
|
+
createElementVNode("div", {
|
|
4247
|
+
class: "lf-split__pane lf-split__pane--first",
|
|
4248
|
+
style: normalizeStyle(stacked.value ? void 0 : { flexBasis: `${size.value}%` })
|
|
4249
|
+
}, [
|
|
4250
|
+
renderSlot(_ctx.$slots, "first", {}, void 0, true)
|
|
4251
|
+
], 4),
|
|
4252
|
+
!stacked.value ? (openBlock(), createElementBlock("div", {
|
|
4253
|
+
key: 0,
|
|
4254
|
+
class: "lf-split__gutter",
|
|
4255
|
+
role: "separator",
|
|
4256
|
+
"aria-orientation": __props.direction === "horizontal" ? "vertical" : "horizontal",
|
|
4257
|
+
"aria-valuenow": Math.round(size.value),
|
|
4258
|
+
"aria-valuemin": "0",
|
|
4259
|
+
"aria-valuemax": "100",
|
|
4260
|
+
"aria-label": __props.gutterLabel,
|
|
4261
|
+
tabindex: "0",
|
|
4262
|
+
onPointerdown: onDown,
|
|
4263
|
+
onKeydown: onKey,
|
|
4264
|
+
onDblclick: _cache[0] || (_cache[0] = ($event) => size.value = __props.initial)
|
|
4265
|
+
}, null, 40, _hoisted_1)) : createCommentVNode("", true),
|
|
4266
|
+
createElementVNode("div", _hoisted_2, [
|
|
4267
|
+
renderSlot(_ctx.$slots, "second", {}, void 0, true)
|
|
4268
|
+
])
|
|
4269
|
+
], 2);
|
|
4270
|
+
};
|
|
4271
|
+
}
|
|
4272
|
+
});
|
|
4273
|
+
const LfSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f87ea5e"]]);
|
|
3088
4274
|
class ApiError extends Error {
|
|
3089
4275
|
constructor(status, message, detail) {
|
|
3090
4276
|
super(message);
|
|
@@ -3236,11 +4422,15 @@ export {
|
|
|
3236
4422
|
LfButton,
|
|
3237
4423
|
LfCard,
|
|
3238
4424
|
LfCheckbox,
|
|
4425
|
+
LfDateRange,
|
|
4426
|
+
LfDescriptions,
|
|
3239
4427
|
LfDivider,
|
|
4428
|
+
LfDrawer,
|
|
3240
4429
|
LfEmptyState,
|
|
3241
4430
|
LfField,
|
|
3242
4431
|
LfIcon,
|
|
3243
4432
|
LfIconButton,
|
|
4433
|
+
LfKbd,
|
|
3244
4434
|
LfList,
|
|
3245
4435
|
LfListItem,
|
|
3246
4436
|
LfListSelect,
|
|
@@ -3249,18 +4439,25 @@ export {
|
|
|
3249
4439
|
LfNavRail,
|
|
3250
4440
|
LfPageHeader,
|
|
3251
4441
|
LfPagination,
|
|
4442
|
+
LfProgress,
|
|
3252
4443
|
LfRadioGroup,
|
|
3253
4444
|
e2 as LfSegmented,
|
|
3254
4445
|
f2 as LfSelect,
|
|
3255
4446
|
LfSkeleton,
|
|
3256
4447
|
LfSpinner,
|
|
4448
|
+
LfSplitPane,
|
|
3257
4449
|
LfStatCard,
|
|
4450
|
+
LfSteps,
|
|
3258
4451
|
LfSwitch,
|
|
3259
4452
|
LfTable,
|
|
4453
|
+
LfTabs,
|
|
4454
|
+
LfTagInput,
|
|
3260
4455
|
LfTextField,
|
|
3261
4456
|
LfTextarea,
|
|
4457
|
+
LfToolbar,
|
|
3262
4458
|
LfTooltip,
|
|
3263
|
-
_sfc_main$
|
|
4459
|
+
_sfc_main$f as LfTransitionList,
|
|
4460
|
+
LfTree,
|
|
3264
4461
|
c as applySemanticPalette,
|
|
3265
4462
|
applyTheme,
|
|
3266
4463
|
d as colorToRgb,
|