@loafacto/ui 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{LfSegmented-CPA9J2e7.js → LfSegmented-C35GdK7N.js} +40 -2
- package/dist/LfSegmented-C35GdK7N.js.map +1 -0
- 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 +1516 -337
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +785 -33
- package/dist/map3d/LfMap3d.vue.d.ts +21 -2
- package/dist/map3d.js +29 -18
- package/dist/map3d.js.map +1 -1
- package/dist/types.d.ts +32 -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",
|
|
@@ -259,7 +259,7 @@ const _hoisted_31 = { class: "site-footer-inner" };
|
|
|
259
259
|
const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
|
|
260
260
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
261
261
|
const RAIL_KEY = "lf-rail-hidden";
|
|
262
|
-
const _sfc_main$
|
|
262
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
263
263
|
__name: "AppShell",
|
|
264
264
|
props: {
|
|
265
265
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -398,8 +398,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
398
398
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
399
399
|
})
|
|
400
400
|
}, null, 4)) : createCommentVNode("", true),
|
|
401
|
-
createElementVNode("header", _hoisted_1$
|
|
402
|
-
createElementVNode("div", _hoisted_2$
|
|
401
|
+
createElementVNode("header", _hoisted_1$B, [
|
|
402
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
403
403
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
404
404
|
key: 0,
|
|
405
405
|
type: "button",
|
|
@@ -418,7 +418,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
418
418
|
fill: "currentColor"
|
|
419
419
|
})
|
|
420
420
|
], -1)
|
|
421
|
-
])], 8, _hoisted_3$
|
|
421
|
+
])], 8, _hoisted_3$r)) : createCommentVNode("", true),
|
|
422
422
|
createElementVNode("a", {
|
|
423
423
|
class: "lf-brand",
|
|
424
424
|
href: __props.brandHref,
|
|
@@ -430,13 +430,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
430
430
|
src: __props.logoUrl,
|
|
431
431
|
alt: "",
|
|
432
432
|
class: "lf-brand__logo"
|
|
433
|
-
}, null, 8, _hoisted_5$
|
|
434
|
-
createElementVNode("span", _hoisted_6$
|
|
433
|
+
}, null, 8, _hoisted_5$j),
|
|
434
|
+
createElementVNode("span", _hoisted_6$e, toDisplayString(__props.brandName), 1)
|
|
435
435
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
436
436
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
437
437
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
438
438
|
], 64))
|
|
439
|
-
], 8, _hoisted_4$
|
|
439
|
+
], 8, _hoisted_4$m),
|
|
440
440
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
441
441
|
key: 1,
|
|
442
442
|
ref_key: "switcherEl",
|
|
@@ -461,10 +461,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
461
461
|
fill: "currentColor"
|
|
462
462
|
})
|
|
463
463
|
], -1))
|
|
464
|
-
], 8, _hoisted_7$
|
|
464
|
+
], 8, _hoisted_7$d),
|
|
465
465
|
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
466
466
|
default: withCtx(() => [
|
|
467
|
-
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
467
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
468
468
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
469
469
|
return openBlock(), createElementBlock("a", {
|
|
470
470
|
key: svc.id,
|
|
@@ -484,7 +484,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
484
484
|
])) : createCommentVNode("", true),
|
|
485
485
|
createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
|
|
486
486
|
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
487
|
-
], 10, _hoisted_9$
|
|
487
|
+
], 10, _hoisted_9$3);
|
|
488
488
|
}), 128))
|
|
489
489
|
])) : createCommentVNode("", true)
|
|
490
490
|
]),
|
|
@@ -618,7 +618,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
621
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-ff76069c"]]);
|
|
622
622
|
function generateId() {
|
|
623
623
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
624
624
|
}
|
|
@@ -652,26 +652,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
652
652
|
}
|
|
653
653
|
return { items, add, remove, success, error, info, warning };
|
|
654
654
|
});
|
|
655
|
-
const _hoisted_1$
|
|
655
|
+
const _hoisted_1$A = {
|
|
656
656
|
class: "toast-container",
|
|
657
657
|
role: "region",
|
|
658
658
|
"aria-label": "알림"
|
|
659
659
|
};
|
|
660
|
-
const _hoisted_2$
|
|
661
|
-
const _hoisted_3$
|
|
660
|
+
const _hoisted_2$w = ["onClick"];
|
|
661
|
+
const _hoisted_3$q = {
|
|
662
662
|
class: "toast-icon",
|
|
663
663
|
viewBox: "0 0 24 24",
|
|
664
664
|
"aria-hidden": "true"
|
|
665
665
|
};
|
|
666
|
-
const _hoisted_4$
|
|
667
|
-
const _hoisted_5$
|
|
668
|
-
const _hoisted_6$
|
|
669
|
-
const _hoisted_7$
|
|
666
|
+
const _hoisted_4$l = ["d"];
|
|
667
|
+
const _hoisted_5$i = { class: "toast-message" };
|
|
668
|
+
const _hoisted_6$d = ["onClick"];
|
|
669
|
+
const _hoisted_7$c = {
|
|
670
670
|
viewBox: "0 0 24 24",
|
|
671
671
|
"aria-hidden": "true"
|
|
672
672
|
};
|
|
673
|
-
const _hoisted_8$
|
|
674
|
-
const _sfc_main$
|
|
673
|
+
const _hoisted_8$4 = ["d"];
|
|
674
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
675
675
|
__name: "AppToast",
|
|
676
676
|
setup(__props) {
|
|
677
677
|
const toastStore = useToastStore();
|
|
@@ -703,7 +703,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
703
703
|
});
|
|
704
704
|
return (_ctx, _cache) => {
|
|
705
705
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
706
|
-
createElementVNode("div", _hoisted_1$
|
|
706
|
+
createElementVNode("div", _hoisted_1$A, [
|
|
707
707
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
708
708
|
default: withCtx(() => [
|
|
709
709
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -713,27 +713,27 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
713
713
|
role: "alert",
|
|
714
714
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
715
715
|
}, [
|
|
716
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
716
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$q, [
|
|
717
717
|
createElementVNode("path", {
|
|
718
718
|
d: ICON_PATHS[item.type],
|
|
719
719
|
fill: "currentColor"
|
|
720
|
-
}, null, 8, _hoisted_4$
|
|
720
|
+
}, null, 8, _hoisted_4$l)
|
|
721
721
|
])),
|
|
722
|
-
createElementVNode("span", _hoisted_5$
|
|
722
|
+
createElementVNode("span", _hoisted_5$i, toDisplayString(item.message), 1),
|
|
723
723
|
createElementVNode("button", {
|
|
724
724
|
type: "button",
|
|
725
725
|
class: "toast-close",
|
|
726
726
|
"aria-label": "닫기",
|
|
727
727
|
onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
|
|
728
728
|
}, [
|
|
729
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
729
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$c, [
|
|
730
730
|
createElementVNode("path", {
|
|
731
731
|
d: ICON_PATHS.close,
|
|
732
732
|
fill: "currentColor"
|
|
733
|
-
}, null, 8, _hoisted_8$
|
|
733
|
+
}, null, 8, _hoisted_8$4)
|
|
734
734
|
]))
|
|
735
|
-
], 8, _hoisted_6$
|
|
736
|
-
], 10, _hoisted_2$
|
|
735
|
+
], 8, _hoisted_6$d)
|
|
736
|
+
], 10, _hoisted_2$w);
|
|
737
737
|
}), 128))
|
|
738
738
|
]),
|
|
739
739
|
_: 1
|
|
@@ -743,7 +743,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
746
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-58e54e0c"]]);
|
|
747
747
|
const useLoadingStore = defineStore("loading", () => {
|
|
748
748
|
const count = ref(0);
|
|
749
749
|
const loading = computed(() => count.value > 0);
|
|
@@ -763,14 +763,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
763
763
|
}
|
|
764
764
|
return { loading, count, start, stop, withLoading };
|
|
765
765
|
});
|
|
766
|
-
const _hoisted_1$
|
|
766
|
+
const _hoisted_1$z = {
|
|
767
767
|
key: 0,
|
|
768
768
|
class: "loading-overlay",
|
|
769
769
|
role: "status",
|
|
770
770
|
"aria-live": "polite",
|
|
771
771
|
"aria-label": "로딩 중"
|
|
772
772
|
};
|
|
773
|
-
const _sfc_main$
|
|
773
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
774
774
|
__name: "AppLoadingOverlay",
|
|
775
775
|
setup(__props) {
|
|
776
776
|
const loadingStore = useLoadingStore();
|
|
@@ -778,7 +778,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
778
778
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
779
779
|
createVNode(Transition, { name: "fade" }, {
|
|
780
780
|
default: withCtx(() => [
|
|
781
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
781
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$z, [..._cache[0] || (_cache[0] = [
|
|
782
782
|
createElementVNode("div", {
|
|
783
783
|
class: "loading-spinner",
|
|
784
784
|
"aria-hidden": "true"
|
|
@@ -791,7 +791,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
794
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
795
795
|
const useConfirmStore = defineStore("confirm", () => {
|
|
796
796
|
const open = ref(false);
|
|
797
797
|
const title = ref("확인");
|
|
@@ -839,27 +839,27 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
839
839
|
resolve
|
|
840
840
|
};
|
|
841
841
|
});
|
|
842
|
-
const _hoisted_1$
|
|
842
|
+
const _hoisted_1$y = {
|
|
843
843
|
key: 0,
|
|
844
844
|
class: "app-confirm-backdrop"
|
|
845
845
|
};
|
|
846
|
-
const _hoisted_2$
|
|
846
|
+
const _hoisted_2$v = {
|
|
847
847
|
class: "app-confirm",
|
|
848
848
|
role: "dialog",
|
|
849
849
|
"aria-modal": "true"
|
|
850
850
|
};
|
|
851
|
-
const _hoisted_3$
|
|
852
|
-
const _hoisted_4$
|
|
853
|
-
const _hoisted_5$
|
|
854
|
-
const _hoisted_6$
|
|
855
|
-
const _hoisted_7$
|
|
851
|
+
const _hoisted_3$p = { class: "app-confirm__header" };
|
|
852
|
+
const _hoisted_4$k = { class: "app-confirm__title" };
|
|
853
|
+
const _hoisted_5$h = { class: "app-confirm__body" };
|
|
854
|
+
const _hoisted_6$c = { class: "app-confirm__message" };
|
|
855
|
+
const _hoisted_7$b = {
|
|
856
856
|
key: 0,
|
|
857
857
|
class: "app-confirm__require"
|
|
858
858
|
};
|
|
859
|
-
const _hoisted_8$
|
|
860
|
-
const _hoisted_9$
|
|
859
|
+
const _hoisted_8$3 = { class: "app-confirm__require-label" };
|
|
860
|
+
const _hoisted_9$2 = { class: "app-confirm__actions" };
|
|
861
861
|
const _hoisted_10$1 = ["disabled"];
|
|
862
|
-
const _sfc_main$
|
|
862
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
863
863
|
__name: "AppConfirmModal",
|
|
864
864
|
setup(__props) {
|
|
865
865
|
const store = useConfirmStore();
|
|
@@ -884,15 +884,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
884
884
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
885
885
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
886
886
|
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$
|
|
887
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
888
|
+
createElementVNode("div", _hoisted_2$v, [
|
|
889
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
890
|
+
createElementVNode("h3", _hoisted_4$k, toDisplayString(unref(store).title), 1)
|
|
891
891
|
]),
|
|
892
|
-
createElementVNode("div", _hoisted_5$
|
|
893
|
-
createElementVNode("p", _hoisted_6$
|
|
894
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
895
|
-
createElementVNode("span", _hoisted_8$
|
|
892
|
+
createElementVNode("div", _hoisted_5$h, [
|
|
893
|
+
createElementVNode("p", _hoisted_6$c, toDisplayString(unref(store).message), 1),
|
|
894
|
+
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$b, [
|
|
895
|
+
createElementVNode("span", _hoisted_8$3, [
|
|
896
896
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
897
897
|
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
898
898
|
]),
|
|
@@ -910,7 +910,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
910
910
|
])
|
|
911
911
|
])) : createCommentVNode("", true)
|
|
912
912
|
]),
|
|
913
|
-
createElementVNode("div", _hoisted_9$
|
|
913
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
914
914
|
createElementVNode("button", {
|
|
915
915
|
type: "button",
|
|
916
916
|
class: "app-confirm__btn app-confirm__btn--ghost",
|
|
@@ -932,12 +932,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
932
932
|
};
|
|
933
933
|
}
|
|
934
934
|
});
|
|
935
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
936
|
-
const _hoisted_1$
|
|
935
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-561536f9"]]);
|
|
936
|
+
const _hoisted_1$x = {
|
|
937
937
|
key: 2,
|
|
938
938
|
class: "lf-btn__label"
|
|
939
939
|
};
|
|
940
|
-
const _sfc_main$
|
|
940
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
941
941
|
__name: "LfButton",
|
|
942
942
|
props: {
|
|
943
943
|
variant: { default: "ghost" },
|
|
@@ -974,7 +974,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
974
974
|
name: __props.icon,
|
|
975
975
|
path: __props.iconPath
|
|
976
976
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
977
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
977
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$x, [
|
|
978
978
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
979
979
|
])) : createCommentVNode("", true),
|
|
980
980
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -987,19 +987,19 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
987
987
|
};
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
991
|
-
const _hoisted_1$
|
|
992
|
-
const _hoisted_2$
|
|
990
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-0d2e2b97"]]);
|
|
991
|
+
const _hoisted_1$w = { class: "lf-control-wrap" };
|
|
992
|
+
const _hoisted_2$u = {
|
|
993
993
|
key: 0,
|
|
994
994
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
995
995
|
};
|
|
996
|
-
const _hoisted_3$
|
|
997
|
-
const _hoisted_4$
|
|
996
|
+
const _hoisted_3$o = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
997
|
+
const _hoisted_4$j = {
|
|
998
998
|
key: 1,
|
|
999
999
|
class: "lf-control-wrap__suffix"
|
|
1000
1000
|
};
|
|
1001
|
-
const _hoisted_5$
|
|
1002
|
-
const _sfc_main$
|
|
1001
|
+
const _hoisted_5$g = ["aria-label"];
|
|
1002
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1003
1003
|
...{ inheritAttrs: false },
|
|
1004
1004
|
__name: "LfTextField",
|
|
1005
1005
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1051,8 +1051,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1051
1051
|
"html-for": unref(inputId)
|
|
1052
1052
|
}), {
|
|
1053
1053
|
default: withCtx(() => [
|
|
1054
|
-
createElementVNode("div", _hoisted_1$
|
|
1055
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1054
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
1055
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$u, [
|
|
1056
1056
|
createVNode(LfIcon, {
|
|
1057
1057
|
name: __props.icon,
|
|
1058
1058
|
path: __props.iconPath,
|
|
@@ -1073,10 +1073,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1073
1073
|
readonly: __props.readonly,
|
|
1074
1074
|
required: __props.required,
|
|
1075
1075
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1076
|
-
}), null, 16, _hoisted_3$
|
|
1076
|
+
}), null, 16, _hoisted_3$o), [
|
|
1077
1077
|
[vModelDynamic, unref(model)]
|
|
1078
1078
|
]),
|
|
1079
|
-
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1079
|
+
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1080
1080
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1081
1081
|
key: 2,
|
|
1082
1082
|
type: "button",
|
|
@@ -1088,7 +1088,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1088
1088
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1089
1089
|
size: "1.125rem"
|
|
1090
1090
|
}, null, 8, ["name"])
|
|
1091
|
-
], 8, _hoisted_5$
|
|
1091
|
+
], 8, _hoisted_5$g)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1092
1092
|
key: 3,
|
|
1093
1093
|
type: "button",
|
|
1094
1094
|
class: "lf-control-action",
|
|
@@ -1107,13 +1107,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1107
1107
|
};
|
|
1108
1108
|
}
|
|
1109
1109
|
});
|
|
1110
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1111
|
-
const _hoisted_1$
|
|
1112
|
-
const _hoisted_2$
|
|
1110
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e113043f"]]);
|
|
1111
|
+
const _hoisted_1$v = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1112
|
+
const _hoisted_2$t = {
|
|
1113
1113
|
key: 0,
|
|
1114
1114
|
class: "lf-textarea__counter"
|
|
1115
1115
|
};
|
|
1116
|
-
const _sfc_main$
|
|
1116
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1117
1117
|
...{ inheritAttrs: false },
|
|
1118
1118
|
__name: "LfTextarea",
|
|
1119
1119
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1177,32 +1177,32 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1177
1177
|
maxlength: __props.maxlength,
|
|
1178
1178
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1179
1179
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1180
|
-
}), null, 16, _hoisted_1$
|
|
1180
|
+
}), null, 16, _hoisted_1$v), [
|
|
1181
1181
|
[vModelText, model.value]
|
|
1182
1182
|
]),
|
|
1183
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1183
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$t, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1184
1184
|
]),
|
|
1185
1185
|
_: 1
|
|
1186
1186
|
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
});
|
|
1190
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1191
|
-
const _hoisted_1$
|
|
1192
|
-
const _hoisted_2$
|
|
1190
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-81fbed25"]]);
|
|
1191
|
+
const _hoisted_1$u = ["disabled", "value"];
|
|
1192
|
+
const _hoisted_2$s = {
|
|
1193
1193
|
class: "lf-check__box",
|
|
1194
1194
|
"aria-hidden": "true"
|
|
1195
1195
|
};
|
|
1196
|
-
const _hoisted_3$
|
|
1196
|
+
const _hoisted_3$n = {
|
|
1197
1197
|
key: 0,
|
|
1198
1198
|
class: "lf-check__text"
|
|
1199
1199
|
};
|
|
1200
|
-
const _hoisted_4$
|
|
1201
|
-
const _hoisted_5$
|
|
1200
|
+
const _hoisted_4$i = { class: "lf-check__label" };
|
|
1201
|
+
const _hoisted_5$f = {
|
|
1202
1202
|
key: 0,
|
|
1203
1203
|
class: "lf-check__desc"
|
|
1204
1204
|
};
|
|
1205
|
-
const _sfc_main$
|
|
1205
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1206
1206
|
...{ inheritAttrs: false },
|
|
1207
1207
|
__name: "LfCheckbox",
|
|
1208
1208
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1227,39 +1227,39 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1227
1227
|
type: "checkbox",
|
|
1228
1228
|
disabled: __props.disabled,
|
|
1229
1229
|
value: __props.value
|
|
1230
|
-
}), null, 16, _hoisted_1$
|
|
1230
|
+
}), null, 16, _hoisted_1$u), [
|
|
1231
1231
|
[vModelCheckbox, model.value]
|
|
1232
1232
|
]),
|
|
1233
|
-
createElementVNode("span", _hoisted_2$
|
|
1233
|
+
createElementVNode("span", _hoisted_2$s, [
|
|
1234
1234
|
createVNode(LfIcon, {
|
|
1235
1235
|
name: "check",
|
|
1236
1236
|
size: "0.875rem"
|
|
1237
1237
|
})
|
|
1238
1238
|
]),
|
|
1239
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1240
|
-
createElementVNode("span", _hoisted_4$
|
|
1239
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$n, [
|
|
1240
|
+
createElementVNode("span", _hoisted_4$i, [
|
|
1241
1241
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1242
1242
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1243
1243
|
], true)
|
|
1244
1244
|
]),
|
|
1245
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1245
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$f, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1246
1246
|
])) : createCommentVNode("", true)
|
|
1247
1247
|
], 2);
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
1250
|
});
|
|
1251
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1252
|
-
const _hoisted_1$
|
|
1251
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a86332f0"]]);
|
|
1252
|
+
const _hoisted_1$t = {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
class: "lf-switch__text"
|
|
1255
1255
|
};
|
|
1256
|
-
const _hoisted_2$
|
|
1257
|
-
const _hoisted_3$
|
|
1256
|
+
const _hoisted_2$r = { class: "lf-switch__label" };
|
|
1257
|
+
const _hoisted_3$m = {
|
|
1258
1258
|
key: 0,
|
|
1259
1259
|
class: "lf-switch__desc"
|
|
1260
1260
|
};
|
|
1261
|
-
const _hoisted_4$
|
|
1262
|
-
const _sfc_main$
|
|
1261
|
+
const _hoisted_4$h = ["disabled"];
|
|
1262
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1263
1263
|
...{ inheritAttrs: false },
|
|
1264
1264
|
__name: "LfSwitch",
|
|
1265
1265
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1278,13 +1278,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1278
1278
|
return openBlock(), createElementBlock("label", {
|
|
1279
1279
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1280
1280
|
}, [
|
|
1281
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1282
|
-
createElementVNode("span", _hoisted_2$
|
|
1281
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$t, [
|
|
1282
|
+
createElementVNode("span", _hoisted_2$r, [
|
|
1283
1283
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1284
1284
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1285
1285
|
], true)
|
|
1286
1286
|
]),
|
|
1287
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1287
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1288
1288
|
])) : createCommentVNode("", true),
|
|
1289
1289
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1290
1290
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1292,7 +1292,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1292
1292
|
type: "checkbox",
|
|
1293
1293
|
role: "switch",
|
|
1294
1294
|
disabled: __props.disabled
|
|
1295
|
-
}), null, 16, _hoisted_4$
|
|
1295
|
+
}), null, 16, _hoisted_4$h), [
|
|
1296
1296
|
[vModelCheckbox, model.value]
|
|
1297
1297
|
]),
|
|
1298
1298
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1305,33 +1305,33 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
1307
|
});
|
|
1308
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1309
|
-
const _hoisted_1$
|
|
1308
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1309
|
+
const _hoisted_1$s = {
|
|
1310
1310
|
key: 0,
|
|
1311
1311
|
class: "lf-radio-group__legend"
|
|
1312
1312
|
};
|
|
1313
|
-
const _hoisted_2$
|
|
1313
|
+
const _hoisted_2$q = {
|
|
1314
1314
|
key: 0,
|
|
1315
1315
|
class: "lf-radio-group__required",
|
|
1316
1316
|
"aria-hidden": "true"
|
|
1317
1317
|
};
|
|
1318
|
-
const _hoisted_3$
|
|
1319
|
-
const _hoisted_4$
|
|
1320
|
-
const _hoisted_5$
|
|
1321
|
-
const _hoisted_6$
|
|
1318
|
+
const _hoisted_3$l = ["name", "value", "disabled"];
|
|
1319
|
+
const _hoisted_4$g = { class: "lf-radio__text" };
|
|
1320
|
+
const _hoisted_5$e = { class: "lf-radio__label" };
|
|
1321
|
+
const _hoisted_6$b = {
|
|
1322
1322
|
key: 0,
|
|
1323
1323
|
class: "lf-radio__desc"
|
|
1324
1324
|
};
|
|
1325
|
-
const _hoisted_7$
|
|
1325
|
+
const _hoisted_7$a = {
|
|
1326
1326
|
key: 1,
|
|
1327
1327
|
class: "lf-radio-group__error",
|
|
1328
1328
|
role: "alert"
|
|
1329
1329
|
};
|
|
1330
|
-
const _hoisted_8$
|
|
1330
|
+
const _hoisted_8$2 = {
|
|
1331
1331
|
key: 2,
|
|
1332
1332
|
class: "lf-radio-group__hint"
|
|
1333
1333
|
};
|
|
1334
|
-
const _sfc_main$
|
|
1334
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1335
1335
|
__name: "LfRadioGroup",
|
|
1336
1336
|
props: /* @__PURE__ */ mergeModels({
|
|
1337
1337
|
options: { default: () => [] },
|
|
@@ -1357,9 +1357,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1357
1357
|
return openBlock(), createElementBlock("fieldset", {
|
|
1358
1358
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1359
1359
|
}, [
|
|
1360
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1360
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$s, [
|
|
1361
1361
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1362
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1362
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$q, "*")) : createCommentVNode("", true)
|
|
1363
1363
|
])) : createCommentVNode("", true),
|
|
1364
1364
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1365
1365
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1373,42 +1373,42 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1373
1373
|
name: unref(groupName),
|
|
1374
1374
|
value: opt.value,
|
|
1375
1375
|
disabled: __props.disabled || opt.disabled
|
|
1376
|
-
}, null, 8, _hoisted_3$
|
|
1376
|
+
}, null, 8, _hoisted_3$l), [
|
|
1377
1377
|
[vModelRadio, model.value]
|
|
1378
1378
|
]),
|
|
1379
1379
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1380
1380
|
class: "lf-radio__dot",
|
|
1381
1381
|
"aria-hidden": "true"
|
|
1382
1382
|
}, null, -1)),
|
|
1383
|
-
createElementVNode("span", _hoisted_4$
|
|
1384
|
-
createElementVNode("span", _hoisted_5$
|
|
1385
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
1383
|
+
createElementVNode("span", _hoisted_4$g, [
|
|
1384
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString(opt.label), 1),
|
|
1385
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$b, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1386
1386
|
])
|
|
1387
1387
|
], 2);
|
|
1388
1388
|
}), 128)),
|
|
1389
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1389
|
+
__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
1390
|
], 2);
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
1393
|
});
|
|
1394
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1395
|
-
const _hoisted_1$
|
|
1396
|
-
const _hoisted_2$
|
|
1394
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-cffad147"]]);
|
|
1395
|
+
const _hoisted_1$r = ["aria-labelledby", "aria-label"];
|
|
1396
|
+
const _hoisted_2$p = {
|
|
1397
1397
|
key: 0,
|
|
1398
1398
|
class: "lf-modal__header"
|
|
1399
1399
|
};
|
|
1400
|
-
const _hoisted_3$
|
|
1401
|
-
const _hoisted_4$
|
|
1402
|
-
const _hoisted_5$
|
|
1400
|
+
const _hoisted_3$k = { class: "lf-modal__heading" };
|
|
1401
|
+
const _hoisted_4$f = ["id"];
|
|
1402
|
+
const _hoisted_5$d = {
|
|
1403
1403
|
key: 0,
|
|
1404
1404
|
class: "lf-modal__subtitle"
|
|
1405
1405
|
};
|
|
1406
|
-
const _hoisted_6$
|
|
1407
|
-
const _hoisted_7$
|
|
1406
|
+
const _hoisted_6$a = { class: "lf-modal__body" };
|
|
1407
|
+
const _hoisted_7$9 = {
|
|
1408
1408
|
key: 1,
|
|
1409
1409
|
class: "lf-modal__footer"
|
|
1410
1410
|
};
|
|
1411
|
-
const _sfc_main$
|
|
1411
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1412
1412
|
__name: "LfModal",
|
|
1413
1413
|
props: /* @__PURE__ */ mergeModels({
|
|
1414
1414
|
title: {},
|
|
@@ -1520,14 +1520,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1520
1520
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1521
1521
|
onKeydown
|
|
1522
1522
|
}, [
|
|
1523
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1523
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$p, [
|
|
1524
1524
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1525
|
-
createElementVNode("div", _hoisted_3$
|
|
1525
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
1526
1526
|
createElementVNode("h2", {
|
|
1527
1527
|
id: unref(titleId),
|
|
1528
1528
|
class: "lf-modal__title"
|
|
1529
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1530
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
1529
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$f),
|
|
1530
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$d, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1531
1531
|
])
|
|
1532
1532
|
], true),
|
|
1533
1533
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1538,13 +1538,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1538
1538
|
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
1539
1539
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1540
1540
|
])) : createCommentVNode("", true),
|
|
1541
|
-
createElementVNode("div", _hoisted_6$
|
|
1541
|
+
createElementVNode("div", _hoisted_6$a, [
|
|
1542
1542
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1543
1543
|
]),
|
|
1544
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1544
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$9, [
|
|
1545
1545
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1546
1546
|
])) : createCommentVNode("", true)
|
|
1547
|
-
], 42, _hoisted_1$
|
|
1547
|
+
], 42, _hoisted_1$r)
|
|
1548
1548
|
], 32)) : createCommentVNode("", true)
|
|
1549
1549
|
]),
|
|
1550
1550
|
_: 3
|
|
@@ -1553,30 +1553,30 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
1555
|
});
|
|
1556
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1557
|
-
const _hoisted_1$
|
|
1556
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-da4a649b"]]);
|
|
1557
|
+
const _hoisted_1$q = {
|
|
1558
1558
|
key: 0,
|
|
1559
1559
|
class: "lf-card__head"
|
|
1560
1560
|
};
|
|
1561
|
-
const _hoisted_2$
|
|
1561
|
+
const _hoisted_2$o = {
|
|
1562
1562
|
key: 0,
|
|
1563
1563
|
class: "lf-card__icon"
|
|
1564
1564
|
};
|
|
1565
|
-
const _hoisted_3$
|
|
1566
|
-
const _hoisted_4$
|
|
1565
|
+
const _hoisted_3$j = { class: "lf-card__title" };
|
|
1566
|
+
const _hoisted_4$e = {
|
|
1567
1567
|
key: 1,
|
|
1568
1568
|
class: "lf-card__count"
|
|
1569
1569
|
};
|
|
1570
|
-
const _hoisted_5$
|
|
1570
|
+
const _hoisted_5$c = {
|
|
1571
1571
|
key: 0,
|
|
1572
1572
|
class: "lf-card__actions"
|
|
1573
1573
|
};
|
|
1574
|
-
const _hoisted_6$
|
|
1575
|
-
const _hoisted_7$
|
|
1574
|
+
const _hoisted_6$9 = { class: "lf-card__body" };
|
|
1575
|
+
const _hoisted_7$8 = {
|
|
1576
1576
|
key: 1,
|
|
1577
1577
|
class: "lf-card__foot"
|
|
1578
1578
|
};
|
|
1579
|
-
const _sfc_main$
|
|
1579
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1580
1580
|
__name: "LfCard",
|
|
1581
1581
|
props: {
|
|
1582
1582
|
title: {},
|
|
@@ -1592,9 +1592,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1592
1592
|
return openBlock(), createElementBlock("section", {
|
|
1593
1593
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1594
1594
|
}, [
|
|
1595
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1595
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$q, [
|
|
1596
1596
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1597
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1597
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
1598
1598
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1599
1599
|
createVNode(LfIcon, {
|
|
1600
1600
|
name: __props.icon,
|
|
@@ -1603,45 +1603,45 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1603
1603
|
}, null, 8, ["name", "path"])
|
|
1604
1604
|
], true)
|
|
1605
1605
|
])) : createCommentVNode("", true),
|
|
1606
|
-
createElementVNode("h3", _hoisted_3$
|
|
1607
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1606
|
+
createElementVNode("h3", _hoisted_3$j, toDisplayString(__props.title), 1),
|
|
1607
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$e, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1608
1608
|
], true),
|
|
1609
1609
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1610
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1610
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
1611
1611
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1612
1612
|
])) : createCommentVNode("", true)
|
|
1613
1613
|
])) : createCommentVNode("", true),
|
|
1614
|
-
createElementVNode("div", _hoisted_6$
|
|
1614
|
+
createElementVNode("div", _hoisted_6$9, [
|
|
1615
1615
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1616
1616
|
]),
|
|
1617
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1617
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$8, [
|
|
1618
1618
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1619
1619
|
])) : createCommentVNode("", true)
|
|
1620
1620
|
], 2);
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
});
|
|
1624
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1625
|
-
const _hoisted_1$
|
|
1626
|
-
const _hoisted_2$
|
|
1627
|
-
const _hoisted_3$
|
|
1628
|
-
const _hoisted_4$
|
|
1624
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3ffcb11e"]]);
|
|
1625
|
+
const _hoisted_1$p = { class: "lf-page-header" };
|
|
1626
|
+
const _hoisted_2$n = { class: "lf-page-header__title-box" };
|
|
1627
|
+
const _hoisted_3$i = { class: "lf-page-header__title" };
|
|
1628
|
+
const _hoisted_4$d = {
|
|
1629
1629
|
key: 0,
|
|
1630
1630
|
class: "lf-page-header__icon"
|
|
1631
1631
|
};
|
|
1632
|
-
const _hoisted_5$
|
|
1632
|
+
const _hoisted_5$b = {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
class: "lf-page-header__count"
|
|
1635
1635
|
};
|
|
1636
|
-
const _hoisted_6$
|
|
1636
|
+
const _hoisted_6$8 = {
|
|
1637
1637
|
key: 0,
|
|
1638
1638
|
class: "lf-page-header__tools"
|
|
1639
1639
|
};
|
|
1640
|
-
const _hoisted_7$
|
|
1640
|
+
const _hoisted_7$7 = {
|
|
1641
1641
|
key: 1,
|
|
1642
1642
|
class: "lf-page-header__desc"
|
|
1643
1643
|
};
|
|
1644
|
-
const _sfc_main$
|
|
1644
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1645
1645
|
__name: "LfPageHeader",
|
|
1646
1646
|
props: {
|
|
1647
1647
|
title: {},
|
|
@@ -1654,10 +1654,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1654
1654
|
const slots = useSlots();
|
|
1655
1655
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1656
1656
|
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$
|
|
1657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
1658
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
1659
|
+
createElementVNode("h1", _hoisted_3$i, [
|
|
1660
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$d, [
|
|
1661
1661
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1662
1662
|
createVNode(LfIcon, {
|
|
1663
1663
|
name: __props.icon,
|
|
@@ -1670,14 +1670,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1670
1670
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1671
1671
|
], true)
|
|
1672
1672
|
]),
|
|
1673
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1673
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$b, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1674
1674
|
]),
|
|
1675
|
-
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1675
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
1676
1676
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1677
1677
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1678
1678
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1679
1679
|
])) : createCommentVNode("", true),
|
|
1680
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1680
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$7, [
|
|
1681
1681
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1682
1682
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1683
1683
|
], true)
|
|
@@ -1686,14 +1686,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1686
1686
|
};
|
|
1687
1687
|
}
|
|
1688
1688
|
});
|
|
1689
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1690
|
-
const _hoisted_1$
|
|
1689
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-a7ef2659"]]);
|
|
1690
|
+
const _hoisted_1$o = {
|
|
1691
1691
|
key: 0,
|
|
1692
1692
|
class: "lf-badge__dot",
|
|
1693
1693
|
"aria-hidden": "true"
|
|
1694
1694
|
};
|
|
1695
|
-
const _hoisted_2$
|
|
1696
|
-
const _sfc_main$
|
|
1695
|
+
const _hoisted_2$m = ["aria-label"];
|
|
1696
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1697
1697
|
__name: "LfBadge",
|
|
1698
1698
|
props: {
|
|
1699
1699
|
label: {},
|
|
@@ -1713,7 +1713,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1713
1713
|
return openBlock(), createElementBlock("span", {
|
|
1714
1714
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1715
1715
|
}, [
|
|
1716
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1716
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$o)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1717
1717
|
key: 1,
|
|
1718
1718
|
name: __props.icon,
|
|
1719
1719
|
path: __props.iconPath,
|
|
@@ -1733,27 +1733,27 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1733
1733
|
name: "close",
|
|
1734
1734
|
size: "0.75rem"
|
|
1735
1735
|
})
|
|
1736
|
-
], 8, _hoisted_2$
|
|
1736
|
+
], 8, _hoisted_2$m)) : createCommentVNode("", true)
|
|
1737
1737
|
], 2);
|
|
1738
1738
|
};
|
|
1739
1739
|
}
|
|
1740
1740
|
});
|
|
1741
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1742
|
-
const _hoisted_1$
|
|
1743
|
-
const _hoisted_2$
|
|
1741
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-b55cda7f"]]);
|
|
1742
|
+
const _hoisted_1$n = ["role"];
|
|
1743
|
+
const _hoisted_2$l = {
|
|
1744
1744
|
class: "lf-alert__badge",
|
|
1745
1745
|
"aria-hidden": "true"
|
|
1746
1746
|
};
|
|
1747
|
-
const _hoisted_3$
|
|
1748
|
-
const _hoisted_4$
|
|
1747
|
+
const _hoisted_3$h = { class: "lf-alert__body" };
|
|
1748
|
+
const _hoisted_4$c = {
|
|
1749
1749
|
key: 0,
|
|
1750
1750
|
class: "lf-alert__title"
|
|
1751
1751
|
};
|
|
1752
|
-
const _hoisted_5$
|
|
1752
|
+
const _hoisted_5$a = {
|
|
1753
1753
|
key: 2,
|
|
1754
1754
|
class: "lf-alert__actions"
|
|
1755
1755
|
};
|
|
1756
|
-
const _sfc_main$
|
|
1756
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1757
1757
|
__name: "LfAlert",
|
|
1758
1758
|
props: {
|
|
1759
1759
|
tone: { default: "info" },
|
|
@@ -1779,7 +1779,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1779
1779
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
1780
1780
|
role: __props.tone === "error" ? "alert" : "status"
|
|
1781
1781
|
}, [
|
|
1782
|
-
createElementVNode("span", _hoisted_2$
|
|
1782
|
+
createElementVNode("span", _hoisted_2$l, [
|
|
1783
1783
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1784
1784
|
createVNode(LfIcon, {
|
|
1785
1785
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -1788,8 +1788,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1788
1788
|
}, null, 8, ["name", "path", "size"])
|
|
1789
1789
|
], true)
|
|
1790
1790
|
]),
|
|
1791
|
-
createElementVNode("div", _hoisted_3$
|
|
1792
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1791
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
1792
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$c, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1793
1793
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1794
1794
|
key: 1,
|
|
1795
1795
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -1798,7 +1798,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1798
1798
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
1799
1799
|
], true)
|
|
1800
1800
|
], 2)) : createCommentVNode("", true),
|
|
1801
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1801
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
1802
1802
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1803
1803
|
])) : createCommentVNode("", true)
|
|
1804
1804
|
]),
|
|
@@ -1810,14 +1810,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1810
1810
|
label: __props.closeLabel,
|
|
1811
1811
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
1812
1812
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1813
|
-
], 10, _hoisted_1$
|
|
1813
|
+
], 10, _hoisted_1$n);
|
|
1814
1814
|
};
|
|
1815
1815
|
}
|
|
1816
1816
|
});
|
|
1817
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1818
|
-
const _hoisted_1$
|
|
1819
|
-
const _hoisted_2$
|
|
1820
|
-
const _sfc_main$
|
|
1817
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-62839786"]]);
|
|
1818
|
+
const _hoisted_1$m = ["title"];
|
|
1819
|
+
const _hoisted_2$k = ["src", "alt"];
|
|
1820
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1821
1821
|
__name: "LfAvatar",
|
|
1822
1822
|
props: {
|
|
1823
1823
|
name: {},
|
|
@@ -1852,23 +1852,32 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1852
1852
|
src: __props.src,
|
|
1853
1853
|
alt: __props.name ?? "",
|
|
1854
1854
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
1855
|
-
}, null, 40, _hoisted_2$
|
|
1855
|
+
}, null, 40, _hoisted_2$k)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1856
1856
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
1857
1857
|
], 64))
|
|
1858
|
-
], 14, _hoisted_1$
|
|
1858
|
+
], 14, _hoisted_1$m);
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
1861
|
});
|
|
1862
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1863
|
-
const _hoisted_1$
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
const
|
|
1868
|
-
const
|
|
1869
|
-
const
|
|
1862
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-61adf36e"]]);
|
|
1863
|
+
const _hoisted_1$l = {
|
|
1864
|
+
key: 0,
|
|
1865
|
+
class: "lf-table__select"
|
|
1866
|
+
};
|
|
1867
|
+
const _hoisted_2$j = ["checked", ".indeterminate", "disabled", "aria-label"];
|
|
1868
|
+
const _hoisted_3$g = ["aria-sort"];
|
|
1869
|
+
const _hoisted_4$b = ["onClick"];
|
|
1870
|
+
const _hoisted_5$9 = {
|
|
1871
|
+
key: 0,
|
|
1872
|
+
class: "lf-table__select"
|
|
1873
|
+
};
|
|
1874
|
+
const _hoisted_6$7 = { key: 1 };
|
|
1875
|
+
const _hoisted_7$6 = ["colspan"];
|
|
1876
|
+
const _hoisted_8$1 = ["tabindex", "onClick", "onKeydown"];
|
|
1877
|
+
const _hoisted_9$1 = ["checked", "aria-label", "onChange"];
|
|
1878
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1870
1879
|
__name: "LfTable",
|
|
1871
|
-
props: {
|
|
1880
|
+
props: /* @__PURE__ */ mergeModels({
|
|
1872
1881
|
columns: {},
|
|
1873
1882
|
rows: { default: () => [] },
|
|
1874
1883
|
rowKey: {},
|
|
@@ -1878,15 +1887,39 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1878
1887
|
clickable: { type: Boolean },
|
|
1879
1888
|
compact: { type: Boolean },
|
|
1880
1889
|
minWidth: {},
|
|
1881
|
-
sort: {}
|
|
1882
|
-
|
|
1883
|
-
|
|
1890
|
+
sort: {},
|
|
1891
|
+
selectable: { type: Boolean },
|
|
1892
|
+
activeKey: {},
|
|
1893
|
+
stickyHeader: { type: Boolean },
|
|
1894
|
+
maxHeight: {},
|
|
1895
|
+
selectAllLabel: { default: "이 페이지 전체 고르기" },
|
|
1896
|
+
selectRowLabel: { default: "줄 고르기" }
|
|
1897
|
+
}, {
|
|
1898
|
+
"selected": { default: () => [] },
|
|
1899
|
+
"selectedModifiers": {}
|
|
1900
|
+
}),
|
|
1901
|
+
emits: /* @__PURE__ */ mergeModels(["rowClick", "update:sort"], ["update:selected"]),
|
|
1884
1902
|
setup(__props, { emit: __emit }) {
|
|
1885
1903
|
const props = __props;
|
|
1904
|
+
const selected = useModel(__props, "selected");
|
|
1886
1905
|
const emit = __emit;
|
|
1887
1906
|
function keyOf(row, i2) {
|
|
1888
1907
|
return props.rowKey ? String(row[props.rowKey] ?? i2) : i2;
|
|
1889
1908
|
}
|
|
1909
|
+
function isSelected(row, i2) {
|
|
1910
|
+
return selected.value.includes(keyOf(row, i2));
|
|
1911
|
+
}
|
|
1912
|
+
function toggleRow(row, i2) {
|
|
1913
|
+
const k = keyOf(row, i2);
|
|
1914
|
+
selected.value = isSelected(row, i2) ? selected.value.filter((x) => x !== k) : [...selected.value, k];
|
|
1915
|
+
}
|
|
1916
|
+
const pageKeys = computed(() => props.rows.map((r, i2) => keyOf(r, i2)));
|
|
1917
|
+
const allOnPage = computed(() => pageKeys.value.length > 0 && pageKeys.value.every((k) => selected.value.includes(k)));
|
|
1918
|
+
const someOnPage = computed(() => pageKeys.value.some((k) => selected.value.includes(k)));
|
|
1919
|
+
function toggleAll() {
|
|
1920
|
+
const keys = new Set(pageKeys.value);
|
|
1921
|
+
selected.value = allOnPage.value ? selected.value.filter((k) => !keys.has(k)) : [...selected.value, ...pageKeys.value.filter((k) => !selected.value.includes(k))];
|
|
1922
|
+
}
|
|
1890
1923
|
function toggleSort(key) {
|
|
1891
1924
|
var _a;
|
|
1892
1925
|
const order = ((_a = props.sort) == null ? void 0 : _a.key) === key && props.sort.order === "asc" ? "desc" : "asc";
|
|
@@ -1898,13 +1931,27 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1898
1931
|
return props.sort.order === "asc" ? "ascending" : "descending";
|
|
1899
1932
|
}
|
|
1900
1933
|
return (_ctx, _cache) => {
|
|
1901
|
-
return openBlock(), createElementBlock("div",
|
|
1934
|
+
return openBlock(), createElementBlock("div", {
|
|
1935
|
+
class: normalizeClass(["lf-table-wrap", { "lf-table-wrap--sticky": __props.stickyHeader }]),
|
|
1936
|
+
style: normalizeStyle({ maxHeight: __props.maxHeight })
|
|
1937
|
+
}, [
|
|
1902
1938
|
createElementVNode("table", {
|
|
1903
1939
|
class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
|
|
1904
1940
|
style: normalizeStyle({ minWidth: __props.minWidth })
|
|
1905
1941
|
}, [
|
|
1906
1942
|
createElementVNode("thead", null, [
|
|
1907
1943
|
createElementVNode("tr", null, [
|
|
1944
|
+
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_1$l, [
|
|
1945
|
+
createElementVNode("input", {
|
|
1946
|
+
type: "checkbox",
|
|
1947
|
+
class: "lf-table__check",
|
|
1948
|
+
checked: allOnPage.value,
|
|
1949
|
+
".indeterminate": someOnPage.value && !allOnPage.value,
|
|
1950
|
+
disabled: __props.loading || __props.rows.length === 0,
|
|
1951
|
+
"aria-label": __props.selectAllLabel,
|
|
1952
|
+
onChange: toggleAll
|
|
1953
|
+
}, null, 40, _hoisted_2$j)
|
|
1954
|
+
])) : createCommentVNode("", true),
|
|
1908
1955
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1909
1956
|
var _a;
|
|
1910
1957
|
return openBlock(), createElementBlock("th", {
|
|
@@ -1925,10 +1972,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1925
1972
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
1926
1973
|
size: "0.875rem"
|
|
1927
1974
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
1928
|
-
], 8,
|
|
1975
|
+
], 8, _hoisted_4$b)) : renderSlot(_ctx.$slots, `head-${col.key}`, { column: col }, () => [
|
|
1929
1976
|
createTextVNode(toDisplayString(col.label), 1)
|
|
1930
|
-
],
|
|
1931
|
-
], 14,
|
|
1977
|
+
], true, 1)
|
|
1978
|
+
], 14, _hoisted_3$g);
|
|
1932
1979
|
}), 128))
|
|
1933
1980
|
])
|
|
1934
1981
|
]),
|
|
@@ -1938,32 +1985,51 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1938
1985
|
key: `sk-${n}`,
|
|
1939
1986
|
class: "lf-table__row"
|
|
1940
1987
|
}, [
|
|
1988
|
+
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$9)) : createCommentVNode("", true),
|
|
1941
1989
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1942
1990
|
return openBlock(), createElementBlock("td", {
|
|
1943
1991
|
key: col.key,
|
|
1944
1992
|
class: normalizeClass({ "lf-table__col--mobile-hidden": col.hideOnMobile })
|
|
1945
|
-
}, [..._cache[
|
|
1993
|
+
}, [..._cache[1] || (_cache[1] = [
|
|
1946
1994
|
createElementVNode("span", { class: "lf-table__skeleton" }, null, -1)
|
|
1947
1995
|
])], 2);
|
|
1948
1996
|
}), 128))
|
|
1949
1997
|
]);
|
|
1950
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr",
|
|
1998
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$7, [
|
|
1951
1999
|
createElementVNode("td", {
|
|
1952
2000
|
class: "lf-table__empty",
|
|
1953
|
-
colspan: __props.columns.length
|
|
2001
|
+
colspan: __props.columns.length + (__props.selectable ? 1 : 0)
|
|
1954
2002
|
}, [
|
|
1955
2003
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1956
2004
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
1957
2005
|
], true)
|
|
1958
|
-
], 8,
|
|
2006
|
+
], 8, _hoisted_7$6)
|
|
1959
2007
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
1960
2008
|
return openBlock(), createElementBlock("tr", {
|
|
1961
2009
|
key: keyOf(row, i2),
|
|
1962
|
-
class: normalizeClass(["lf-table__row", {
|
|
2010
|
+
class: normalizeClass(["lf-table__row", {
|
|
2011
|
+
"lf-table__row--clickable": __props.clickable,
|
|
2012
|
+
"lf-table__row--active": __props.activeKey !== void 0 && __props.activeKey !== null && keyOf(row, i2) === __props.activeKey,
|
|
2013
|
+
"lf-table__row--selected": __props.selectable && isSelected(row, i2)
|
|
2014
|
+
}]),
|
|
1963
2015
|
tabindex: __props.clickable ? 0 : void 0,
|
|
1964
2016
|
onClick: ($event) => __props.clickable && emit("rowClick", row),
|
|
1965
2017
|
onKeydown: withKeys(($event) => __props.clickable && emit("rowClick", row), ["enter"])
|
|
1966
2018
|
}, [
|
|
2019
|
+
__props.selectable ? (openBlock(), createElementBlock("td", {
|
|
2020
|
+
key: 0,
|
|
2021
|
+
class: "lf-table__select",
|
|
2022
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
2023
|
+
}, ["stop"]))
|
|
2024
|
+
}, [
|
|
2025
|
+
createElementVNode("input", {
|
|
2026
|
+
type: "checkbox",
|
|
2027
|
+
class: "lf-table__check",
|
|
2028
|
+
checked: isSelected(row, i2),
|
|
2029
|
+
"aria-label": __props.selectRowLabel,
|
|
2030
|
+
onChange: ($event) => toggleRow(row, i2)
|
|
2031
|
+
}, null, 40, _hoisted_9$1)
|
|
2032
|
+
])) : createCommentVNode("", true),
|
|
1967
2033
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1968
2034
|
return openBlock(), createElementBlock("td", {
|
|
1969
2035
|
key: col.key,
|
|
@@ -1979,34 +2045,34 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1979
2045
|
], true)
|
|
1980
2046
|
], 6);
|
|
1981
2047
|
}), 128))
|
|
1982
|
-
], 42,
|
|
2048
|
+
], 42, _hoisted_8$1);
|
|
1983
2049
|
}), 128))
|
|
1984
2050
|
])
|
|
1985
2051
|
], 6)
|
|
1986
|
-
]);
|
|
2052
|
+
], 6);
|
|
1987
2053
|
};
|
|
1988
2054
|
}
|
|
1989
2055
|
});
|
|
1990
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1991
|
-
const _hoisted_1$
|
|
1992
|
-
const _hoisted_2$
|
|
2056
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-2eb52796"]]);
|
|
2057
|
+
const _hoisted_1$k = ["aria-label"];
|
|
2058
|
+
const _hoisted_2$i = {
|
|
1993
2059
|
key: 0,
|
|
1994
2060
|
class: "lf-pagination__total"
|
|
1995
2061
|
};
|
|
1996
|
-
const _hoisted_3$
|
|
2062
|
+
const _hoisted_3$f = {
|
|
1997
2063
|
key: 1,
|
|
1998
2064
|
class: "lf-pagination__btns"
|
|
1999
2065
|
};
|
|
2000
|
-
const _hoisted_4$
|
|
2001
|
-
const _hoisted_5$
|
|
2066
|
+
const _hoisted_4$a = ["disabled"];
|
|
2067
|
+
const _hoisted_5$8 = {
|
|
2002
2068
|
key: 0,
|
|
2003
2069
|
class: "lf-pagination__gap",
|
|
2004
2070
|
"aria-hidden": "true"
|
|
2005
2071
|
};
|
|
2006
|
-
const _hoisted_6$
|
|
2007
|
-
const _hoisted_7$
|
|
2072
|
+
const _hoisted_6$6 = ["aria-current", "onClick"];
|
|
2073
|
+
const _hoisted_7$5 = ["disabled"];
|
|
2008
2074
|
const ELLIPSIS = -1;
|
|
2009
|
-
const _sfc_main$
|
|
2075
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2010
2076
|
__name: "LfPagination",
|
|
2011
2077
|
props: /* @__PURE__ */ mergeModels({
|
|
2012
2078
|
total: { default: 0 },
|
|
@@ -2047,12 +2113,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2047
2113
|
class: "lf-pagination",
|
|
2048
2114
|
"aria-label": __props.ariaLabel
|
|
2049
2115
|
}, [
|
|
2050
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2116
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$i, [
|
|
2051
2117
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2052
2118
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2053
2119
|
], true)
|
|
2054
2120
|
])) : createCommentVNode("", true),
|
|
2055
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2121
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
2056
2122
|
createElementVNode("button", {
|
|
2057
2123
|
type: "button",
|
|
2058
2124
|
class: "lf-pagination__btn",
|
|
@@ -2064,18 +2130,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2064
2130
|
name: "chevron_left",
|
|
2065
2131
|
size: "1rem"
|
|
2066
2132
|
})
|
|
2067
|
-
], 8, _hoisted_4$
|
|
2133
|
+
], 8, _hoisted_4$a),
|
|
2068
2134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2069
2135
|
return openBlock(), createElementBlock(Fragment, {
|
|
2070
2136
|
key: `${p}-${i2}`
|
|
2071
2137
|
}, [
|
|
2072
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2138
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$8, "…")) : (openBlock(), createElementBlock("button", {
|
|
2073
2139
|
key: 1,
|
|
2074
2140
|
type: "button",
|
|
2075
2141
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2076
2142
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2077
2143
|
onClick: ($event) => go(p)
|
|
2078
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2144
|
+
}, toDisplayString(p), 11, _hoisted_6$6))
|
|
2079
2145
|
], 64);
|
|
2080
2146
|
}), 128)),
|
|
2081
2147
|
createElementVNode("button", {
|
|
@@ -2089,27 +2155,27 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2089
2155
|
name: "chevron_right",
|
|
2090
2156
|
size: "1rem"
|
|
2091
2157
|
})
|
|
2092
|
-
], 8, _hoisted_7$
|
|
2158
|
+
], 8, _hoisted_7$5)
|
|
2093
2159
|
])) : createCommentVNode("", true)
|
|
2094
|
-
], 8, _hoisted_1$
|
|
2160
|
+
], 8, _hoisted_1$k)) : createCommentVNode("", true);
|
|
2095
2161
|
};
|
|
2096
2162
|
}
|
|
2097
2163
|
});
|
|
2098
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2099
|
-
const _hoisted_1$
|
|
2164
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-be847541"]]);
|
|
2165
|
+
const _hoisted_1$j = {
|
|
2100
2166
|
key: 0,
|
|
2101
2167
|
class: "lf-empty__icon"
|
|
2102
2168
|
};
|
|
2103
|
-
const _hoisted_2$
|
|
2104
|
-
const _hoisted_3$
|
|
2169
|
+
const _hoisted_2$h = { class: "lf-empty__title" };
|
|
2170
|
+
const _hoisted_3$e = {
|
|
2105
2171
|
key: 1,
|
|
2106
2172
|
class: "lf-empty__desc"
|
|
2107
2173
|
};
|
|
2108
|
-
const _hoisted_4$
|
|
2174
|
+
const _hoisted_4$9 = {
|
|
2109
2175
|
key: 2,
|
|
2110
2176
|
class: "lf-empty__action"
|
|
2111
2177
|
};
|
|
2112
|
-
const _sfc_main$
|
|
2178
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2113
2179
|
__name: "LfEmptyState",
|
|
2114
2180
|
props: {
|
|
2115
2181
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2124,7 +2190,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2124
2190
|
return openBlock(), createElementBlock("div", {
|
|
2125
2191
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2126
2192
|
}, [
|
|
2127
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2193
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$j, [
|
|
2128
2194
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2129
2195
|
createVNode(LfIcon, {
|
|
2130
2196
|
name: __props.icon,
|
|
@@ -2133,31 +2199,31 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2133
2199
|
}, null, 8, ["name", "path"])
|
|
2134
2200
|
], true)
|
|
2135
2201
|
])) : createCommentVNode("", true),
|
|
2136
|
-
createElementVNode("p", _hoisted_2$
|
|
2202
|
+
createElementVNode("p", _hoisted_2$h, [
|
|
2137
2203
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2138
2204
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2139
2205
|
], true)
|
|
2140
2206
|
]),
|
|
2141
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2207
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$e, [
|
|
2142
2208
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2143
2209
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2144
2210
|
], true)
|
|
2145
2211
|
])) : createCommentVNode("", true),
|
|
2146
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2212
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
2147
2213
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2148
2214
|
])) : createCommentVNode("", true)
|
|
2149
2215
|
], 2);
|
|
2150
2216
|
};
|
|
2151
2217
|
}
|
|
2152
2218
|
});
|
|
2153
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2154
|
-
const _hoisted_1$
|
|
2219
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2220
|
+
const _hoisted_1$i = {
|
|
2155
2221
|
key: 0,
|
|
2156
2222
|
class: "lf-skeleton-group",
|
|
2157
2223
|
"aria-busy": true,
|
|
2158
2224
|
"aria-live": "polite"
|
|
2159
2225
|
};
|
|
2160
|
-
const _sfc_main$
|
|
2226
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2161
2227
|
__name: "LfSkeleton",
|
|
2162
2228
|
props: {
|
|
2163
2229
|
variant: { default: "text" },
|
|
@@ -2172,7 +2238,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2172
2238
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2173
2239
|
}
|
|
2174
2240
|
return (_ctx, _cache) => {
|
|
2175
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2241
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2176
2242
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2177
2243
|
return openBlock(), createElementBlock("span", {
|
|
2178
2244
|
key: n,
|
|
@@ -2189,24 +2255,24 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2189
2255
|
};
|
|
2190
2256
|
}
|
|
2191
2257
|
});
|
|
2192
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2193
|
-
const _hoisted_1$
|
|
2258
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a01556ce"]]);
|
|
2259
|
+
const _hoisted_1$h = {
|
|
2194
2260
|
class: "lf-stat__badge",
|
|
2195
2261
|
"aria-hidden": "true"
|
|
2196
2262
|
};
|
|
2197
|
-
const _hoisted_2$
|
|
2198
|
-
const _hoisted_3$
|
|
2199
|
-
const _hoisted_4$
|
|
2200
|
-
const _hoisted_5$
|
|
2201
|
-
const _hoisted_6$
|
|
2263
|
+
const _hoisted_2$g = { class: "lf-stat__body" };
|
|
2264
|
+
const _hoisted_3$d = { class: "lf-stat__label" };
|
|
2265
|
+
const _hoisted_4$8 = { class: "lf-stat__value-row" };
|
|
2266
|
+
const _hoisted_5$7 = { class: "lf-stat__value" };
|
|
2267
|
+
const _hoisted_6$5 = {
|
|
2202
2268
|
key: 0,
|
|
2203
2269
|
class: "lf-stat__unit"
|
|
2204
2270
|
};
|
|
2205
|
-
const _hoisted_7$
|
|
2271
|
+
const _hoisted_7$4 = {
|
|
2206
2272
|
key: 0,
|
|
2207
2273
|
class: "lf-stat__hint"
|
|
2208
2274
|
};
|
|
2209
|
-
const _sfc_main$
|
|
2275
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2210
2276
|
__name: "LfStatCard",
|
|
2211
2277
|
props: {
|
|
2212
2278
|
label: {},
|
|
@@ -2235,7 +2301,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2235
2301
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2236
2302
|
}, {
|
|
2237
2303
|
default: withCtx(() => [
|
|
2238
|
-
createElementVNode("span", _hoisted_1$
|
|
2304
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
2239
2305
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2240
2306
|
createVNode(LfIcon, {
|
|
2241
2307
|
name: __props.icon,
|
|
@@ -2244,14 +2310,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2244
2310
|
}, null, 8, ["name", "path"])
|
|
2245
2311
|
], true)
|
|
2246
2312
|
]),
|
|
2247
|
-
createElementVNode("div", _hoisted_2$
|
|
2248
|
-
createElementVNode("div", _hoisted_3$
|
|
2249
|
-
createElementVNode("div", _hoisted_4$
|
|
2250
|
-
createElementVNode("span", _hoisted_5$
|
|
2313
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
2314
|
+
createElementVNode("div", _hoisted_3$d, toDisplayString(__props.label), 1),
|
|
2315
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
2316
|
+
createElementVNode("span", _hoisted_5$7, [
|
|
2251
2317
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2252
2318
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2253
2319
|
], true),
|
|
2254
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2320
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2255
2321
|
]),
|
|
2256
2322
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2257
2323
|
key: 0,
|
|
@@ -2264,7 +2330,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2264
2330
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2265
2331
|
], 2)) : createCommentVNode("", true)
|
|
2266
2332
|
]),
|
|
2267
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2333
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$4, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2268
2334
|
])
|
|
2269
2335
|
]),
|
|
2270
2336
|
_: 3
|
|
@@ -2272,10 +2338,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2272
2338
|
};
|
|
2273
2339
|
}
|
|
2274
2340
|
});
|
|
2275
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2276
|
-
const _hoisted_1$
|
|
2277
|
-
const _hoisted_2$
|
|
2278
|
-
const _sfc_main$
|
|
2341
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ddc6565d"]]);
|
|
2342
|
+
const _hoisted_1$g = ["aria-describedby"];
|
|
2343
|
+
const _hoisted_2$f = ["id"];
|
|
2344
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
2279
2345
|
__name: "LfTooltip",
|
|
2280
2346
|
props: {
|
|
2281
2347
|
text: {},
|
|
@@ -2292,7 +2358,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2292
2358
|
"aria-describedby": unref(bubbleId)
|
|
2293
2359
|
}, [
|
|
2294
2360
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2295
|
-
], 8, _hoisted_1$
|
|
2361
|
+
], 8, _hoisted_1$g),
|
|
2296
2362
|
createElementVNode("span", {
|
|
2297
2363
|
id: unref(bubbleId),
|
|
2298
2364
|
class: "lf-tooltip__bubble",
|
|
@@ -2301,19 +2367,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2301
2367
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2302
2368
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2303
2369
|
], true)
|
|
2304
|
-
], 8, _hoisted_2$
|
|
2370
|
+
], 8, _hoisted_2$f)
|
|
2305
2371
|
], 2);
|
|
2306
2372
|
};
|
|
2307
2373
|
}
|
|
2308
2374
|
});
|
|
2309
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2310
|
-
const _hoisted_1$
|
|
2311
|
-
const _hoisted_2$
|
|
2312
|
-
const _hoisted_3$
|
|
2375
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ae3bf5db"]]);
|
|
2376
|
+
const _hoisted_1$f = ["disabled", "onClick"];
|
|
2377
|
+
const _hoisted_2$e = { class: "lf-menu__item-text" };
|
|
2378
|
+
const _hoisted_3$c = {
|
|
2313
2379
|
key: 0,
|
|
2314
2380
|
class: "lf-menu__item-desc"
|
|
2315
2381
|
};
|
|
2316
|
-
const _sfc_main$
|
|
2382
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2317
2383
|
__name: "LfMenu",
|
|
2318
2384
|
props: {
|
|
2319
2385
|
items: { default: () => [] },
|
|
@@ -2403,11 +2469,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2403
2469
|
size: "1.125rem",
|
|
2404
2470
|
class: "lf-menu__item-icon"
|
|
2405
2471
|
}), null, 16)) : createCommentVNode("", true),
|
|
2406
|
-
createElementVNode("span", _hoisted_2$
|
|
2472
|
+
createElementVNode("span", _hoisted_2$e, [
|
|
2407
2473
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2408
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2474
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2409
2475
|
])
|
|
2410
|
-
], 8, _hoisted_1$
|
|
2476
|
+
], 8, _hoisted_1$f);
|
|
2411
2477
|
}), 128))
|
|
2412
2478
|
], true)
|
|
2413
2479
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2418,22 +2484,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2418
2484
|
};
|
|
2419
2485
|
}
|
|
2420
2486
|
});
|
|
2421
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2422
|
-
const _hoisted_1$
|
|
2487
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0318782c"]]);
|
|
2488
|
+
const _hoisted_1$e = {
|
|
2423
2489
|
key: 0,
|
|
2424
2490
|
class: "lf-rail__group",
|
|
2425
2491
|
role: "presentation"
|
|
2426
2492
|
};
|
|
2427
|
-
const _hoisted_2$
|
|
2428
|
-
const _hoisted_3$
|
|
2429
|
-
const _hoisted_4$
|
|
2493
|
+
const _hoisted_2$d = { class: "lf-rail__group-name" };
|
|
2494
|
+
const _hoisted_3$b = { class: "lf-rail__icon" };
|
|
2495
|
+
const _hoisted_4$7 = {
|
|
2430
2496
|
key: 2,
|
|
2431
2497
|
class: "lf-rail__badge"
|
|
2432
2498
|
};
|
|
2433
|
-
const _hoisted_5$
|
|
2434
|
-
const _hoisted_6$
|
|
2435
|
-
const _hoisted_7$
|
|
2436
|
-
const _sfc_main$
|
|
2499
|
+
const _hoisted_5$6 = { class: "lf-rail__name" };
|
|
2500
|
+
const _hoisted_6$4 = { class: "lf-rail__short" };
|
|
2501
|
+
const _hoisted_7$3 = { class: "lf-rail__long" };
|
|
2502
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
2437
2503
|
__name: "LfNavRail",
|
|
2438
2504
|
props: {
|
|
2439
2505
|
items: {},
|
|
@@ -2503,8 +2569,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2503
2569
|
return openBlock(), createElementBlock(Fragment, {
|
|
2504
2570
|
key: item.to
|
|
2505
2571
|
}, [
|
|
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$
|
|
2572
|
+
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2573
|
+
createElementVNode("span", _hoisted_2$d, toDisplayString(item.group), 1)
|
|
2508
2574
|
])) : createCommentVNode("", true),
|
|
2509
2575
|
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2510
2576
|
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
@@ -2513,7 +2579,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2513
2579
|
onClick: ($event) => emit("navigate", item)
|
|
2514
2580
|
}), {
|
|
2515
2581
|
default: withCtx(() => [
|
|
2516
|
-
createElementVNode("span", _hoisted_3$
|
|
2582
|
+
createElementVNode("span", _hoisted_3$b, [
|
|
2517
2583
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2518
2584
|
key: 0,
|
|
2519
2585
|
path: item.iconPath,
|
|
@@ -2523,11 +2589,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2523
2589
|
name: item.icon,
|
|
2524
2590
|
size: "1.15rem"
|
|
2525
2591
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2526
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2592
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2527
2593
|
]),
|
|
2528
|
-
createElementVNode("span", _hoisted_5$
|
|
2529
|
-
createElementVNode("span", _hoisted_6$
|
|
2530
|
-
createElementVNode("span", _hoisted_7$
|
|
2594
|
+
createElementVNode("span", _hoisted_5$6, [
|
|
2595
|
+
createElementVNode("span", _hoisted_6$4, toDisplayString(item.short ?? item.label), 1),
|
|
2596
|
+
createElementVNode("span", _hoisted_7$3, toDisplayString(item.label), 1)
|
|
2531
2597
|
])
|
|
2532
2598
|
]),
|
|
2533
2599
|
_: 2
|
|
@@ -2538,8 +2604,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2538
2604
|
};
|
|
2539
2605
|
}
|
|
2540
2606
|
});
|
|
2541
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2542
|
-
const _sfc_main$
|
|
2607
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a29be44a"]]);
|
|
2608
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2543
2609
|
__name: "LfTransitionList",
|
|
2544
2610
|
props: {
|
|
2545
2611
|
tag: { default: "div" },
|
|
@@ -2629,16 +2695,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2629
2695
|
};
|
|
2630
2696
|
}
|
|
2631
2697
|
});
|
|
2632
|
-
const _hoisted_1$
|
|
2633
|
-
const _hoisted_2$
|
|
2698
|
+
const _hoisted_1$d = { class: "lf-control-wrap" };
|
|
2699
|
+
const _hoisted_2$c = {
|
|
2634
2700
|
key: 0,
|
|
2635
2701
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
2636
2702
|
};
|
|
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 = {
|
|
2703
|
+
const _hoisted_3$a = ["id", "aria-expanded", "aria-controls", "placeholder", "disabled", "required"];
|
|
2704
|
+
const _hoisted_4$6 = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
2705
|
+
const _hoisted_5$5 = { class: "lf-listsel__text" };
|
|
2706
|
+
const _hoisted_6$3 = ["aria-label"];
|
|
2707
|
+
const _hoisted_7$2 = {
|
|
2642
2708
|
key: 4,
|
|
2643
2709
|
class: "lf-control-wrap__icon lf-control-wrap__icon--right"
|
|
2644
2710
|
};
|
|
@@ -2654,7 +2720,7 @@ const _hoisted_13 = {
|
|
|
2654
2720
|
key: 1,
|
|
2655
2721
|
class: "lf-listsel__empty"
|
|
2656
2722
|
};
|
|
2657
|
-
const _sfc_main$
|
|
2723
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
2658
2724
|
...{ inheritAttrs: false },
|
|
2659
2725
|
__name: "LfListSelect",
|
|
2660
2726
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2854,8 +2920,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2854
2920
|
class: "lf-listsel",
|
|
2855
2921
|
onFocusout: onFocusOut
|
|
2856
2922
|
}, [
|
|
2857
|
-
createElementVNode("div", _hoisted_1$
|
|
2858
|
-
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2923
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
2924
|
+
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$c, [
|
|
2859
2925
|
createVNode(LfIcon, mergeProps(iconOf(selected.value), { size: "1.125rem" }), null, 16)
|
|
2860
2926
|
])) : createCommentVNode("", true),
|
|
2861
2927
|
__props.editable ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
@@ -2877,7 +2943,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2877
2943
|
onFocus: _cache[1] || (_cache[1] = ($event) => show()),
|
|
2878
2944
|
onInput: _cache[2] || (_cache[2] = ($event) => show()),
|
|
2879
2945
|
onKeydown
|
|
2880
|
-
}), null, 16, _hoisted_3$
|
|
2946
|
+
}), null, 16, _hoisted_3$a)), [
|
|
2881
2947
|
[vModelText, text.value]
|
|
2882
2948
|
]) : (openBlock(), createElementBlock("button", mergeProps({
|
|
2883
2949
|
key: 2,
|
|
@@ -2899,9 +2965,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2899
2965
|
onKeydown
|
|
2900
2966
|
}), [
|
|
2901
2967
|
renderSlot(_ctx.$slots, "selected", { option: selected.value }, () => [
|
|
2902
|
-
createElementVNode("span", _hoisted_5, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
2968
|
+
createElementVNode("span", _hoisted_5$5, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
2903
2969
|
], true)
|
|
2904
|
-
], 16, _hoisted_4)),
|
|
2970
|
+
], 16, _hoisted_4$6)),
|
|
2905
2971
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
2906
2972
|
key: 3,
|
|
2907
2973
|
type: "button",
|
|
@@ -2913,7 +2979,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2913
2979
|
name: "close",
|
|
2914
2980
|
size: "1rem"
|
|
2915
2981
|
})
|
|
2916
|
-
], 8, _hoisted_6)) : (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
2982
|
+
], 8, _hoisted_6$3)) : (openBlock(), createElementBlock("span", _hoisted_7$2, [
|
|
2917
2983
|
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
2918
2984
|
key: 0,
|
|
2919
2985
|
size: "1rem"
|
|
@@ -2992,8 +3058,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2992
3058
|
};
|
|
2993
3059
|
}
|
|
2994
3060
|
});
|
|
2995
|
-
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2996
|
-
const _sfc_main$
|
|
3061
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-532597e1"]]);
|
|
3062
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
2997
3063
|
__name: "LfList",
|
|
2998
3064
|
props: {
|
|
2999
3065
|
divided: { type: Boolean },
|
|
@@ -3009,17 +3075,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3009
3075
|
};
|
|
3010
3076
|
}
|
|
3011
3077
|
});
|
|
3012
|
-
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3013
|
-
const _hoisted_1$
|
|
3078
|
+
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-67f4475e"]]);
|
|
3079
|
+
const _hoisted_1$c = {
|
|
3014
3080
|
key: 0,
|
|
3015
3081
|
class: "lf-list-item__prepend"
|
|
3016
3082
|
};
|
|
3017
|
-
const _hoisted_2$
|
|
3018
|
-
const _hoisted_3 = {
|
|
3083
|
+
const _hoisted_2$b = { class: "lf-list-item__text" };
|
|
3084
|
+
const _hoisted_3$9 = {
|
|
3019
3085
|
key: 1,
|
|
3020
3086
|
class: "lf-list-item__append"
|
|
3021
3087
|
};
|
|
3022
|
-
const _sfc_main$
|
|
3088
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3023
3089
|
__name: "LfListItem",
|
|
3024
3090
|
props: {
|
|
3025
3091
|
active: { type: Boolean },
|
|
@@ -3040,13 +3106,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3040
3106
|
"aria-current": __props.active ? "true" : void 0
|
|
3041
3107
|
}, {
|
|
3042
3108
|
default: withCtx(() => [
|
|
3043
|
-
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3109
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$c, [
|
|
3044
3110
|
renderSlot(_ctx.$slots, "prepend", {}, void 0, true)
|
|
3045
3111
|
])) : createCommentVNode("", true),
|
|
3046
|
-
createElementVNode("span", _hoisted_2$
|
|
3112
|
+
createElementVNode("span", _hoisted_2$b, [
|
|
3047
3113
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3048
3114
|
]),
|
|
3049
|
-
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
3115
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
|
|
3050
3116
|
renderSlot(_ctx.$slots, "append", {}, void 0, true)
|
|
3051
3117
|
])) : createCommentVNode("", true)
|
|
3052
3118
|
]),
|
|
@@ -3056,14 +3122,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3056
3122
|
};
|
|
3057
3123
|
}
|
|
3058
3124
|
});
|
|
3059
|
-
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3060
|
-
const _hoisted_1 = {
|
|
3125
|
+
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e05ac56f"]]);
|
|
3126
|
+
const _hoisted_1$b = {
|
|
3061
3127
|
key: 0,
|
|
3062
3128
|
class: "lf-divider lf-divider--labeled",
|
|
3063
3129
|
role: "separator"
|
|
3064
3130
|
};
|
|
3065
|
-
const _hoisted_2 = { class: "lf-divider__label" };
|
|
3066
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3131
|
+
const _hoisted_2$a = { class: "lf-divider__label" };
|
|
3132
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3067
3133
|
__name: "LfDivider",
|
|
3068
3134
|
props: {
|
|
3069
3135
|
label: {},
|
|
@@ -3071,8 +3137,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3071
3137
|
},
|
|
3072
3138
|
setup(__props) {
|
|
3073
3139
|
return (_ctx, _cache) => {
|
|
3074
|
-
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3075
|
-
createElementVNode("span", _hoisted_2, [
|
|
3140
|
+
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
3141
|
+
createElementVNode("span", _hoisted_2$a, [
|
|
3076
3142
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3077
3143
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
3078
3144
|
], true)
|
|
@@ -3084,7 +3150,1109 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3084
3150
|
};
|
|
3085
3151
|
}
|
|
3086
3152
|
});
|
|
3087
|
-
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c15d2259"]]);
|
|
3153
|
+
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c15d2259"]]);
|
|
3154
|
+
const _hoisted_1$a = ["aria-label"];
|
|
3155
|
+
const _hoisted_2$9 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
3156
|
+
const _hoisted_3$8 = {
|
|
3157
|
+
key: 1,
|
|
3158
|
+
class: "lf-tabs__badge"
|
|
3159
|
+
};
|
|
3160
|
+
const _hoisted_4$5 = {
|
|
3161
|
+
key: 1,
|
|
3162
|
+
class: "lf-tabs__actions"
|
|
3163
|
+
};
|
|
3164
|
+
const _hoisted_5$4 = ["id", "aria-labelledby"];
|
|
3165
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3166
|
+
__name: "LfTabs",
|
|
3167
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3168
|
+
tabs: { default: () => [] },
|
|
3169
|
+
dense: { type: Boolean },
|
|
3170
|
+
ariaLabel: {}
|
|
3171
|
+
}, {
|
|
3172
|
+
"modelValue": { required: true },
|
|
3173
|
+
"modelModifiers": {}
|
|
3174
|
+
}),
|
|
3175
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
3176
|
+
setup(__props, { emit: __emit }) {
|
|
3177
|
+
const props = __props;
|
|
3178
|
+
const model = useModel(__props, "modelValue");
|
|
3179
|
+
const emit = __emit;
|
|
3180
|
+
const slots = useSlots();
|
|
3181
|
+
const uid = useId();
|
|
3182
|
+
const normalized = computed(
|
|
3183
|
+
() => props.tabs.map((t) => typeof t === "string" ? { value: t, label: t } : t)
|
|
3184
|
+
);
|
|
3185
|
+
const hasPanel = computed(() => Object.keys(slots).some((k) => k === "default" || k.startsWith("panel-")));
|
|
3186
|
+
function iconOf(t) {
|
|
3187
|
+
if (!t.icon) return {};
|
|
3188
|
+
return t.icon in LF_ICONS ? { name: t.icon } : { path: t.icon };
|
|
3189
|
+
}
|
|
3190
|
+
function pick(t) {
|
|
3191
|
+
if (t.disabled || t.value === model.value) return;
|
|
3192
|
+
model.value = t.value;
|
|
3193
|
+
emit("change", t.value);
|
|
3194
|
+
}
|
|
3195
|
+
function onKeydown(e3) {
|
|
3196
|
+
const enabled = normalized.value.filter((t) => !t.disabled);
|
|
3197
|
+
if (!enabled.length) return;
|
|
3198
|
+
const i2 = enabled.findIndex((t) => t.value === model.value);
|
|
3199
|
+
let next = -1;
|
|
3200
|
+
if (e3.key === "ArrowRight") next = (i2 + 1) % enabled.length;
|
|
3201
|
+
else if (e3.key === "ArrowLeft") next = (i2 - 1 + enabled.length) % enabled.length;
|
|
3202
|
+
else if (e3.key === "Home") next = 0;
|
|
3203
|
+
else if (e3.key === "End") next = enabled.length - 1;
|
|
3204
|
+
if (next < 0) return;
|
|
3205
|
+
e3.preventDefault();
|
|
3206
|
+
pick(enabled[next]);
|
|
3207
|
+
void nextTick(() => {
|
|
3208
|
+
var _a, _b;
|
|
3209
|
+
return (_b = (_a = list.value) == null ? void 0 : _a.querySelector(".lf-tabs__tab--on")) == null ? void 0 : _b.focus();
|
|
3210
|
+
});
|
|
3211
|
+
}
|
|
3212
|
+
const list = useTemplateRef("list");
|
|
3213
|
+
const bar = ref(null);
|
|
3214
|
+
const instant = ref(true);
|
|
3215
|
+
function measure() {
|
|
3216
|
+
var _a;
|
|
3217
|
+
const el = (_a = list.value) == null ? void 0 : _a.querySelector(".lf-tabs__tab--on");
|
|
3218
|
+
const next = el && el.offsetWidth ? { x: el.offsetLeft, w: el.offsetWidth } : null;
|
|
3219
|
+
instant.value = !bar.value;
|
|
3220
|
+
bar.value = next;
|
|
3221
|
+
}
|
|
3222
|
+
let ro = null;
|
|
3223
|
+
onMounted(() => {
|
|
3224
|
+
measure();
|
|
3225
|
+
if (typeof ResizeObserver !== "undefined" && list.value) {
|
|
3226
|
+
ro = new ResizeObserver(() => measure());
|
|
3227
|
+
ro.observe(list.value);
|
|
3228
|
+
}
|
|
3229
|
+
});
|
|
3230
|
+
onBeforeUnmount(() => ro == null ? void 0 : ro.disconnect());
|
|
3231
|
+
watch(() => [model.value, normalized.value.length, normalized.value.map((t) => t.badge).join()], () => void nextTick(measure));
|
|
3232
|
+
return (_ctx, _cache) => {
|
|
3233
|
+
return openBlock(), createElementBlock("div", {
|
|
3234
|
+
class: normalizeClass(["lf-tabs", { "lf-tabs--dense": __props.dense }])
|
|
3235
|
+
}, [
|
|
3236
|
+
createElementVNode("div", {
|
|
3237
|
+
ref_key: "list",
|
|
3238
|
+
ref: list,
|
|
3239
|
+
class: "lf-tabs__list",
|
|
3240
|
+
role: "tablist",
|
|
3241
|
+
"aria-label": __props.ariaLabel,
|
|
3242
|
+
onKeydown
|
|
3243
|
+
}, [
|
|
3244
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (tab) => {
|
|
3245
|
+
return openBlock(), createElementBlock("button", {
|
|
3246
|
+
id: `${unref(uid)}-tab-${tab.value}`,
|
|
3247
|
+
key: String(tab.value),
|
|
3248
|
+
type: "button",
|
|
3249
|
+
class: normalizeClass(["lf-tabs__tab", { "lf-tabs__tab--on": tab.value === model.value }]),
|
|
3250
|
+
role: "tab",
|
|
3251
|
+
"aria-selected": tab.value === model.value ? "true" : "false",
|
|
3252
|
+
"aria-controls": `${unref(uid)}-panel`,
|
|
3253
|
+
tabindex: tab.value === model.value ? 0 : -1,
|
|
3254
|
+
disabled: tab.disabled,
|
|
3255
|
+
onClick: ($event) => pick(tab)
|
|
3256
|
+
}, [
|
|
3257
|
+
tab.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3258
|
+
key: 0,
|
|
3259
|
+
ref_for: true
|
|
3260
|
+
}, iconOf(tab), {
|
|
3261
|
+
size: "1rem",
|
|
3262
|
+
class: "lf-tabs__icon"
|
|
3263
|
+
}), null, 16)) : createCommentVNode("", true),
|
|
3264
|
+
createElementVNode("span", null, toDisplayString(tab.label), 1),
|
|
3265
|
+
tab.badge !== void 0 && tab.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_3$8, toDisplayString(tab.badge), 1)) : createCommentVNode("", true)
|
|
3266
|
+
], 10, _hoisted_2$9);
|
|
3267
|
+
}), 128)),
|
|
3268
|
+
bar.value ? (openBlock(), createElementBlock("span", {
|
|
3269
|
+
key: 0,
|
|
3270
|
+
class: normalizeClass(["lf-tabs__bar", { "lf-tabs__bar--instant": instant.value }]),
|
|
3271
|
+
style: normalizeStyle({ transform: `translateX(${bar.value.x}px)`, width: `${bar.value.w}px` }),
|
|
3272
|
+
"aria-hidden": "true"
|
|
3273
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
3274
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-tabs__spacer" }, null, -1)),
|
|
3275
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
3276
|
+
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3277
|
+
])) : createCommentVNode("", true)
|
|
3278
|
+
], 40, _hoisted_1$a),
|
|
3279
|
+
hasPanel.value ? (openBlock(), createElementBlock("div", {
|
|
3280
|
+
key: 0,
|
|
3281
|
+
id: `${unref(uid)}-panel`,
|
|
3282
|
+
class: "lf-tabs__panel",
|
|
3283
|
+
role: "tabpanel",
|
|
3284
|
+
"aria-labelledby": `${unref(uid)}-tab-${model.value}`
|
|
3285
|
+
}, [
|
|
3286
|
+
_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)
|
|
3287
|
+
], 8, _hoisted_5$4)) : createCommentVNode("", true)
|
|
3288
|
+
], 2);
|
|
3289
|
+
};
|
|
3290
|
+
}
|
|
3291
|
+
});
|
|
3292
|
+
const LfTabs = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ad8ded73"]]);
|
|
3293
|
+
const _hoisted_1$9 = ["aria-modal", "aria-labelledby", "aria-label"];
|
|
3294
|
+
const _hoisted_2$8 = {
|
|
3295
|
+
key: 0,
|
|
3296
|
+
class: "lf-drawer__header"
|
|
3297
|
+
};
|
|
3298
|
+
const _hoisted_3$7 = { class: "lf-drawer__heading" };
|
|
3299
|
+
const _hoisted_4$4 = ["id"];
|
|
3300
|
+
const _hoisted_5$3 = {
|
|
3301
|
+
key: 0,
|
|
3302
|
+
class: "lf-drawer__subtitle"
|
|
3303
|
+
};
|
|
3304
|
+
const _hoisted_6$2 = {
|
|
3305
|
+
key: 0,
|
|
3306
|
+
class: "lf-drawer__actions"
|
|
3307
|
+
};
|
|
3308
|
+
const _hoisted_7$1 = {
|
|
3309
|
+
key: 1,
|
|
3310
|
+
class: "lf-drawer__footer"
|
|
3311
|
+
};
|
|
3312
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
3313
|
+
__name: "LfDrawer",
|
|
3314
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3315
|
+
title: {},
|
|
3316
|
+
subtitle: {},
|
|
3317
|
+
width: { default: "32rem" },
|
|
3318
|
+
side: { default: "right" },
|
|
3319
|
+
modal: { type: Boolean },
|
|
3320
|
+
closeOnScrim: { type: Boolean, default: true },
|
|
3321
|
+
closeOnEsc: { type: Boolean, default: true },
|
|
3322
|
+
closable: { type: Boolean, default: true },
|
|
3323
|
+
closeLabel: { default: "닫기" },
|
|
3324
|
+
ariaLabel: {},
|
|
3325
|
+
flush: { type: Boolean }
|
|
3326
|
+
}, {
|
|
3327
|
+
"modelValue": { type: Boolean, ...{ default: false } },
|
|
3328
|
+
"modelModifiers": {}
|
|
3329
|
+
}),
|
|
3330
|
+
emits: /* @__PURE__ */ mergeModels(["close"], ["update:modelValue"]),
|
|
3331
|
+
setup(__props, { emit: __emit }) {
|
|
3332
|
+
const props = __props;
|
|
3333
|
+
const model = useModel(__props, "modelValue");
|
|
3334
|
+
const emit = __emit;
|
|
3335
|
+
const titleId = useId();
|
|
3336
|
+
const panel = useTemplateRef("panel");
|
|
3337
|
+
let lastFocused = null;
|
|
3338
|
+
function close(reason) {
|
|
3339
|
+
model.value = false;
|
|
3340
|
+
emit("close", reason);
|
|
3341
|
+
}
|
|
3342
|
+
let downOnScrim = false;
|
|
3343
|
+
function onScrimDown() {
|
|
3344
|
+
downOnScrim = true;
|
|
3345
|
+
}
|
|
3346
|
+
function onScrimClick() {
|
|
3347
|
+
if (!downOnScrim) return;
|
|
3348
|
+
downOnScrim = false;
|
|
3349
|
+
if (props.closeOnScrim) close("scrim");
|
|
3350
|
+
}
|
|
3351
|
+
function onKeydown(e3) {
|
|
3352
|
+
if (e3.key === "Escape" && props.closeOnEsc) {
|
|
3353
|
+
e3.stopPropagation();
|
|
3354
|
+
close("esc");
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
function onDocKeydown(e3) {
|
|
3358
|
+
var _a;
|
|
3359
|
+
if (e3.key !== "Escape" || !props.closeOnEsc || e3.defaultPrevented) return;
|
|
3360
|
+
const t = e3.target;
|
|
3361
|
+
if (t && ((_a = panel.value) == null ? void 0 : _a.contains(t))) return;
|
|
3362
|
+
if (t && /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)) return;
|
|
3363
|
+
close("esc");
|
|
3364
|
+
}
|
|
3365
|
+
function focusPanel() {
|
|
3366
|
+
var _a;
|
|
3367
|
+
(_a = panel.value) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
3368
|
+
}
|
|
3369
|
+
watch(
|
|
3370
|
+
model,
|
|
3371
|
+
(open) => {
|
|
3372
|
+
var _a;
|
|
3373
|
+
if (typeof document === "undefined") return;
|
|
3374
|
+
if (open) {
|
|
3375
|
+
lastFocused = document.activeElement;
|
|
3376
|
+
document.addEventListener("keydown", onDocKeydown);
|
|
3377
|
+
if (props.modal) document.body.style.overflow = "hidden";
|
|
3378
|
+
void nextTick(focusPanel);
|
|
3379
|
+
} else {
|
|
3380
|
+
document.removeEventListener("keydown", onDocKeydown);
|
|
3381
|
+
document.body.style.overflow = "";
|
|
3382
|
+
(_a = lastFocused == null ? void 0 : lastFocused.focus) == null ? void 0 : _a.call(lastFocused, { preventScroll: true });
|
|
3383
|
+
lastFocused = null;
|
|
3384
|
+
}
|
|
3385
|
+
},
|
|
3386
|
+
{ immediate: true }
|
|
3387
|
+
);
|
|
3388
|
+
onBeforeUnmount(() => {
|
|
3389
|
+
if (typeof document === "undefined") return;
|
|
3390
|
+
document.removeEventListener("keydown", onDocKeydown);
|
|
3391
|
+
if (model.value && props.modal) document.body.style.overflow = "";
|
|
3392
|
+
});
|
|
3393
|
+
return (_ctx, _cache) => {
|
|
3394
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3395
|
+
createVNode(Transition, { name: "lf-drawer-fade" }, {
|
|
3396
|
+
default: withCtx(() => [
|
|
3397
|
+
model.value && __props.modal ? (openBlock(), createElementBlock("div", {
|
|
3398
|
+
key: 0,
|
|
3399
|
+
class: "lf-drawer-scrim",
|
|
3400
|
+
onPointerdown: withModifiers(onScrimDown, ["self"]),
|
|
3401
|
+
onClick: withModifiers(onScrimClick, ["self"])
|
|
3402
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
3403
|
+
]),
|
|
3404
|
+
_: 1
|
|
3405
|
+
}),
|
|
3406
|
+
createVNode(Transition, {
|
|
3407
|
+
name: `lf-drawer-slide-${__props.side}`,
|
|
3408
|
+
onAfterEnter: focusPanel
|
|
3409
|
+
}, {
|
|
3410
|
+
default: withCtx(() => [
|
|
3411
|
+
model.value ? (openBlock(), createElementBlock("aside", {
|
|
3412
|
+
key: 0,
|
|
3413
|
+
ref_key: "panel",
|
|
3414
|
+
ref: panel,
|
|
3415
|
+
class: normalizeClass(["lf-drawer", [`lf-drawer--${__props.side}`, { "lf-drawer--modal": __props.modal }]]),
|
|
3416
|
+
style: normalizeStyle({ width: __props.width }),
|
|
3417
|
+
role: "dialog",
|
|
3418
|
+
"aria-modal": __props.modal ? "true" : void 0,
|
|
3419
|
+
"aria-labelledby": __props.title ? unref(titleId) : void 0,
|
|
3420
|
+
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
3421
|
+
tabindex: "-1",
|
|
3422
|
+
onKeydown
|
|
3423
|
+
}, [
|
|
3424
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$8, [
|
|
3425
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
3426
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3427
|
+
createElementVNode("h2", {
|
|
3428
|
+
id: unref(titleId),
|
|
3429
|
+
class: "lf-drawer__title"
|
|
3430
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$4),
|
|
3431
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$3, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
3432
|
+
], true)
|
|
3433
|
+
]),
|
|
3434
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
3435
|
+
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3436
|
+
])) : createCommentVNode("", true),
|
|
3437
|
+
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
3438
|
+
key: 1,
|
|
3439
|
+
icon: "close",
|
|
3440
|
+
label: __props.closeLabel,
|
|
3441
|
+
size: "sm",
|
|
3442
|
+
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
3443
|
+
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
3444
|
+
])) : createCommentVNode("", true),
|
|
3445
|
+
createElementVNode("div", {
|
|
3446
|
+
class: normalizeClass(["lf-drawer__body", { "lf-drawer__body--flush": __props.flush }])
|
|
3447
|
+
}, [
|
|
3448
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3449
|
+
], 2),
|
|
3450
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$1, [
|
|
3451
|
+
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
3452
|
+
])) : createCommentVNode("", true)
|
|
3453
|
+
], 46, _hoisted_1$9)) : createCommentVNode("", true)
|
|
3454
|
+
]),
|
|
3455
|
+
_: 3
|
|
3456
|
+
}, 8, ["name"])
|
|
3457
|
+
]);
|
|
3458
|
+
};
|
|
3459
|
+
}
|
|
3460
|
+
});
|
|
3461
|
+
const LfDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-a26a26f8"]]);
|
|
3462
|
+
const _hoisted_1$8 = ["id", "type", "value", "max", "min", "disabled", "aria-label"];
|
|
3463
|
+
const _hoisted_2$7 = ["type", "value", "min", "max", "disabled", "aria-label"];
|
|
3464
|
+
const _hoisted_3$6 = ["aria-label"];
|
|
3465
|
+
const _hoisted_4$3 = ["disabled", "onClick"];
|
|
3466
|
+
const _hoisted_5$2 = ["aria-label", "title", "disabled"];
|
|
3467
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3468
|
+
__name: "LfDateRange",
|
|
3469
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3470
|
+
label: {},
|
|
3471
|
+
hint: {},
|
|
3472
|
+
error: {},
|
|
3473
|
+
required: { type: Boolean },
|
|
3474
|
+
disabled: { type: Boolean },
|
|
3475
|
+
datetime: { type: Boolean },
|
|
3476
|
+
min: {},
|
|
3477
|
+
max: {},
|
|
3478
|
+
size: { default: "md" },
|
|
3479
|
+
clearable: { type: Boolean },
|
|
3480
|
+
presets: { default: () => [
|
|
3481
|
+
{ label: "오늘", days: 0 },
|
|
3482
|
+
{ label: "7일", days: 7 },
|
|
3483
|
+
{ label: "30일", days: 30 }
|
|
3484
|
+
] },
|
|
3485
|
+
fromLabel: { default: "시작일" },
|
|
3486
|
+
toLabel: { default: "종료일" },
|
|
3487
|
+
presetsLabel: { default: "기간" },
|
|
3488
|
+
clearLabel: { default: "지우기" }
|
|
3489
|
+
}, {
|
|
3490
|
+
"modelValue": { default: null },
|
|
3491
|
+
"modelModifiers": {}
|
|
3492
|
+
}),
|
|
3493
|
+
emits: ["update:modelValue"],
|
|
3494
|
+
setup(__props) {
|
|
3495
|
+
const props = __props;
|
|
3496
|
+
const model = useModel(__props, "modelValue");
|
|
3497
|
+
const fromId = useId();
|
|
3498
|
+
const inputType = computed(() => props.datetime ? "datetime-local" : "date");
|
|
3499
|
+
function set(which, v) {
|
|
3500
|
+
var _a, _b;
|
|
3501
|
+
model.value = { from: ((_a = model.value) == null ? void 0 : _a.from) ?? "", to: ((_b = model.value) == null ? void 0 : _b.to) ?? "", [which]: v };
|
|
3502
|
+
}
|
|
3503
|
+
function fmt(d2, endOfDay) {
|
|
3504
|
+
const p = (n) => String(n).padStart(2, "0");
|
|
3505
|
+
const date = `${d2.getFullYear()}-${p(d2.getMonth() + 1)}-${p(d2.getDate())}`;
|
|
3506
|
+
if (!props.datetime) return date;
|
|
3507
|
+
return `${date}T${endOfDay ? "23:59" : "00:00"}`;
|
|
3508
|
+
}
|
|
3509
|
+
function rangeFor(days) {
|
|
3510
|
+
const to = /* @__PURE__ */ new Date();
|
|
3511
|
+
const from = /* @__PURE__ */ new Date();
|
|
3512
|
+
from.setDate(from.getDate() - Math.max(0, days - (days > 0 ? 1 : 0)));
|
|
3513
|
+
return { from: fmt(from, false), to: fmt(to, true) };
|
|
3514
|
+
}
|
|
3515
|
+
function applyPreset(days) {
|
|
3516
|
+
model.value = rangeFor(days);
|
|
3517
|
+
}
|
|
3518
|
+
function isPreset(days) {
|
|
3519
|
+
var _a, _b;
|
|
3520
|
+
const r = rangeFor(days);
|
|
3521
|
+
return ((_a = model.value) == null ? void 0 : _a.from) === r.from && ((_b = model.value) == null ? void 0 : _b.to) === r.to;
|
|
3522
|
+
}
|
|
3523
|
+
return (_ctx, _cache) => {
|
|
3524
|
+
return openBlock(), createBlock(LfField, {
|
|
3525
|
+
label: __props.label,
|
|
3526
|
+
hint: __props.hint,
|
|
3527
|
+
error: __props.error,
|
|
3528
|
+
required: __props.required,
|
|
3529
|
+
"html-for": unref(fromId),
|
|
3530
|
+
class: "lf-daterange"
|
|
3531
|
+
}, {
|
|
3532
|
+
default: withCtx(() => {
|
|
3533
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3534
|
+
return [
|
|
3535
|
+
createElementVNode("div", {
|
|
3536
|
+
class: normalizeClass(["lf-daterange__row", `lf-daterange--${__props.size}`])
|
|
3537
|
+
}, [
|
|
3538
|
+
createElementVNode("input", {
|
|
3539
|
+
id: unref(fromId),
|
|
3540
|
+
class: normalizeClass(["lf-control lf-daterange__input", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }]),
|
|
3541
|
+
type: inputType.value,
|
|
3542
|
+
value: ((_a = model.value) == null ? void 0 : _a.from) ?? "",
|
|
3543
|
+
max: ((_b = model.value) == null ? void 0 : _b.to) || __props.max || void 0,
|
|
3544
|
+
min: __props.min || void 0,
|
|
3545
|
+
disabled: __props.disabled,
|
|
3546
|
+
"aria-label": __props.fromLabel,
|
|
3547
|
+
onChange: _cache[0] || (_cache[0] = ($event) => set("from", $event.target.value))
|
|
3548
|
+
}, null, 42, _hoisted_1$8),
|
|
3549
|
+
_cache[3] || (_cache[3] = createElementVNode("span", {
|
|
3550
|
+
class: "lf-daterange__sep",
|
|
3551
|
+
"aria-hidden": "true"
|
|
3552
|
+
}, "~", -1)),
|
|
3553
|
+
createElementVNode("input", {
|
|
3554
|
+
class: normalizeClass(["lf-control lf-daterange__input", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }]),
|
|
3555
|
+
type: inputType.value,
|
|
3556
|
+
value: ((_c = model.value) == null ? void 0 : _c.to) ?? "",
|
|
3557
|
+
min: ((_d = model.value) == null ? void 0 : _d.from) || __props.min || void 0,
|
|
3558
|
+
max: __props.max || void 0,
|
|
3559
|
+
disabled: __props.disabled,
|
|
3560
|
+
"aria-label": __props.toLabel,
|
|
3561
|
+
onChange: _cache[1] || (_cache[1] = ($event) => set("to", $event.target.value))
|
|
3562
|
+
}, null, 42, _hoisted_2$7),
|
|
3563
|
+
__props.presets.length ? (openBlock(), createElementBlock("div", {
|
|
3564
|
+
key: 0,
|
|
3565
|
+
class: "lf-daterange__presets",
|
|
3566
|
+
role: "group",
|
|
3567
|
+
"aria-label": __props.presetsLabel
|
|
3568
|
+
}, [
|
|
3569
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.presets, (p) => {
|
|
3570
|
+
return openBlock(), createElementBlock("button", {
|
|
3571
|
+
key: p.days,
|
|
3572
|
+
type: "button",
|
|
3573
|
+
class: normalizeClass(["lf-daterange__preset", { "lf-daterange__preset--on": isPreset(p.days) }]),
|
|
3574
|
+
disabled: __props.disabled,
|
|
3575
|
+
onClick: ($event) => applyPreset(p.days)
|
|
3576
|
+
}, toDisplayString(p.label), 11, _hoisted_4$3);
|
|
3577
|
+
}), 128))
|
|
3578
|
+
], 8, _hoisted_3$6)) : createCommentVNode("", true),
|
|
3579
|
+
__props.clearable && (((_e = model.value) == null ? void 0 : _e.from) || ((_f = model.value) == null ? void 0 : _f.to)) ? (openBlock(), createElementBlock("button", {
|
|
3580
|
+
key: 1,
|
|
3581
|
+
type: "button",
|
|
3582
|
+
class: "lf-daterange__clear",
|
|
3583
|
+
"aria-label": __props.clearLabel,
|
|
3584
|
+
title: __props.clearLabel,
|
|
3585
|
+
disabled: __props.disabled,
|
|
3586
|
+
onClick: _cache[2] || (_cache[2] = ($event) => model.value = { from: "", to: "" })
|
|
3587
|
+
}, [
|
|
3588
|
+
createVNode(LfIcon, {
|
|
3589
|
+
name: "close",
|
|
3590
|
+
size: "0.875rem"
|
|
3591
|
+
})
|
|
3592
|
+
], 8, _hoisted_5$2)) : createCommentVNode("", true)
|
|
3593
|
+
], 2)
|
|
3594
|
+
];
|
|
3595
|
+
}),
|
|
3596
|
+
_: 1
|
|
3597
|
+
}, 8, ["label", "hint", "error", "required", "html-for"]);
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
});
|
|
3601
|
+
const LfDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-cd58ea87"]]);
|
|
3602
|
+
const _hoisted_1$7 = ["aria-label"];
|
|
3603
|
+
const _hoisted_2$6 = ["aria-level", "aria-expanded", "aria-selected", "tabindex", "data-id", "onClick", "onFocus"];
|
|
3604
|
+
const _hoisted_3$5 = ["aria-label", "onClick"];
|
|
3605
|
+
const _hoisted_4$2 = {
|
|
3606
|
+
key: 1,
|
|
3607
|
+
class: "lf-tree__toggle lf-tree__toggle--leaf",
|
|
3608
|
+
"aria-hidden": "true"
|
|
3609
|
+
};
|
|
3610
|
+
const _hoisted_5$1 = { class: "lf-tree__label" };
|
|
3611
|
+
const _hoisted_6$1 = {
|
|
3612
|
+
key: 3,
|
|
3613
|
+
class: "lf-tree__badge"
|
|
3614
|
+
};
|
|
3615
|
+
const _hoisted_7 = {
|
|
3616
|
+
key: 0,
|
|
3617
|
+
class: "lf-tree__empty"
|
|
3618
|
+
};
|
|
3619
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3620
|
+
__name: "LfTree",
|
|
3621
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3622
|
+
nodes: { default: () => [] },
|
|
3623
|
+
defaultExpandDepth: { default: 1 },
|
|
3624
|
+
filter: {},
|
|
3625
|
+
dense: { type: Boolean },
|
|
3626
|
+
indent: { default: 1.125 },
|
|
3627
|
+
emptyText: { default: "항목이 없습니다." },
|
|
3628
|
+
ariaLabel: {},
|
|
3629
|
+
expandLabel: { default: "펼치기" },
|
|
3630
|
+
collapseLabel: { default: "접기" }
|
|
3631
|
+
}, {
|
|
3632
|
+
"selected": { default: null },
|
|
3633
|
+
"selectedModifiers": {},
|
|
3634
|
+
"expanded": { default: void 0 },
|
|
3635
|
+
"expandedModifiers": {}
|
|
3636
|
+
}),
|
|
3637
|
+
emits: /* @__PURE__ */ mergeModels(["select"], ["update:selected", "update:expanded"]),
|
|
3638
|
+
setup(__props, { emit: __emit }) {
|
|
3639
|
+
const props = __props;
|
|
3640
|
+
const selected = useModel(__props, "selected");
|
|
3641
|
+
const expanded = useModel(__props, "expanded");
|
|
3642
|
+
const emit = __emit;
|
|
3643
|
+
const local = ref(/* @__PURE__ */ new Set());
|
|
3644
|
+
function initLocal() {
|
|
3645
|
+
const s = /* @__PURE__ */ new Set();
|
|
3646
|
+
const walk = (ns, d2) => {
|
|
3647
|
+
var _a;
|
|
3648
|
+
for (const n of ns) {
|
|
3649
|
+
if (((_a = n.children) == null ? void 0 : _a.length) && d2 < props.defaultExpandDepth) s.add(n.id);
|
|
3650
|
+
if (n.children) walk(n.children, d2 + 1);
|
|
3651
|
+
}
|
|
3652
|
+
};
|
|
3653
|
+
walk(props.nodes, 0);
|
|
3654
|
+
local.value = s;
|
|
3655
|
+
}
|
|
3656
|
+
initLocal();
|
|
3657
|
+
watch(() => props.nodes, initLocal);
|
|
3658
|
+
const openSet = computed(() => expanded.value ? new Set(expanded.value) : local.value);
|
|
3659
|
+
function isOpen(id) {
|
|
3660
|
+
return filtering.value ? true : openSet.value.has(id);
|
|
3661
|
+
}
|
|
3662
|
+
function toggle(id) {
|
|
3663
|
+
const next = new Set(openSet.value);
|
|
3664
|
+
if (next.has(id)) next.delete(id);
|
|
3665
|
+
else next.add(id);
|
|
3666
|
+
if (expanded.value) expanded.value = [...next];
|
|
3667
|
+
else local.value = next;
|
|
3668
|
+
}
|
|
3669
|
+
const filtering = computed(() => {
|
|
3670
|
+
var _a;
|
|
3671
|
+
return !!((_a = props.filter) == null ? void 0 : _a.trim());
|
|
3672
|
+
});
|
|
3673
|
+
function matches(n, q) {
|
|
3674
|
+
var _a;
|
|
3675
|
+
if (n.label.toLowerCase().includes(q)) return true;
|
|
3676
|
+
return !!((_a = n.children) == null ? void 0 : _a.some((c2) => matches(c2, q)));
|
|
3677
|
+
}
|
|
3678
|
+
const rows = computed(() => {
|
|
3679
|
+
var _a;
|
|
3680
|
+
const out = [];
|
|
3681
|
+
const q = ((_a = props.filter) == null ? void 0 : _a.trim().toLowerCase()) ?? "";
|
|
3682
|
+
const walk = (ns, depth) => {
|
|
3683
|
+
var _a2;
|
|
3684
|
+
for (const n of ns) {
|
|
3685
|
+
if (q && !matches(n, q)) continue;
|
|
3686
|
+
const hasChildren = !!((_a2 = n.children) == null ? void 0 : _a2.length);
|
|
3687
|
+
out.push({ node: n, depth, hasChildren });
|
|
3688
|
+
if (hasChildren && isOpen(n.id)) walk(n.children, depth + 1);
|
|
3689
|
+
}
|
|
3690
|
+
};
|
|
3691
|
+
walk(props.nodes, 0);
|
|
3692
|
+
return out;
|
|
3693
|
+
});
|
|
3694
|
+
const focusId = ref(null);
|
|
3695
|
+
watch(rows, (r) => {
|
|
3696
|
+
var _a;
|
|
3697
|
+
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;
|
|
3698
|
+
}, { immediate: true });
|
|
3699
|
+
function iconOf(icon) {
|
|
3700
|
+
return icon in LF_ICONS ? { name: icon } : { path: icon };
|
|
3701
|
+
}
|
|
3702
|
+
function onRowClick(n) {
|
|
3703
|
+
focusId.value = n.id;
|
|
3704
|
+
if (n.disabled) return;
|
|
3705
|
+
selected.value = n.id;
|
|
3706
|
+
emit("select", n);
|
|
3707
|
+
}
|
|
3708
|
+
function focusRow(id) {
|
|
3709
|
+
if (!id) return;
|
|
3710
|
+
focusId.value = id;
|
|
3711
|
+
void nextTick(() => {
|
|
3712
|
+
const el = document.querySelector(`.lf-tree__row[data-id="${CSS.escape(id)}"]`);
|
|
3713
|
+
el == null ? void 0 : el.focus();
|
|
3714
|
+
});
|
|
3715
|
+
}
|
|
3716
|
+
function onKeydown(e3) {
|
|
3717
|
+
var _a, _b, _c, _d, _e;
|
|
3718
|
+
const list = rows.value;
|
|
3719
|
+
const i2 = list.findIndex((r) => r.node.id === focusId.value);
|
|
3720
|
+
if (i2 < 0) return;
|
|
3721
|
+
const row = list[i2];
|
|
3722
|
+
switch (e3.key) {
|
|
3723
|
+
case "ArrowDown":
|
|
3724
|
+
focusRow((_a = list[i2 + 1]) == null ? void 0 : _a.node.id);
|
|
3725
|
+
break;
|
|
3726
|
+
case "ArrowUp":
|
|
3727
|
+
focusRow((_b = list[i2 - 1]) == null ? void 0 : _b.node.id);
|
|
3728
|
+
break;
|
|
3729
|
+
case "Home":
|
|
3730
|
+
focusRow((_c = list[0]) == null ? void 0 : _c.node.id);
|
|
3731
|
+
break;
|
|
3732
|
+
case "End":
|
|
3733
|
+
focusRow((_d = list[list.length - 1]) == null ? void 0 : _d.node.id);
|
|
3734
|
+
break;
|
|
3735
|
+
case "ArrowRight":
|
|
3736
|
+
if (row.hasChildren && !isOpen(row.node.id)) toggle(row.node.id);
|
|
3737
|
+
else if (row.hasChildren) focusRow((_e = list[i2 + 1]) == null ? void 0 : _e.node.id);
|
|
3738
|
+
break;
|
|
3739
|
+
case "ArrowLeft":
|
|
3740
|
+
if (row.hasChildren && isOpen(row.node.id) && !filtering.value) toggle(row.node.id);
|
|
3741
|
+
else {
|
|
3742
|
+
for (let j = i2 - 1; j >= 0; j--) if (list[j].depth < row.depth) {
|
|
3743
|
+
focusRow(list[j].node.id);
|
|
3744
|
+
break;
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
break;
|
|
3748
|
+
case "Enter":
|
|
3749
|
+
case " ":
|
|
3750
|
+
onRowClick(row.node);
|
|
3751
|
+
break;
|
|
3752
|
+
default:
|
|
3753
|
+
return;
|
|
3754
|
+
}
|
|
3755
|
+
e3.preventDefault();
|
|
3756
|
+
}
|
|
3757
|
+
return (_ctx, _cache) => {
|
|
3758
|
+
return openBlock(), createElementBlock("ul", {
|
|
3759
|
+
class: normalizeClass(["lf-tree", { "lf-tree--dense": __props.dense }]),
|
|
3760
|
+
role: "tree",
|
|
3761
|
+
"aria-label": __props.ariaLabel,
|
|
3762
|
+
onKeydown
|
|
3763
|
+
}, [
|
|
3764
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(rows.value, (row) => {
|
|
3765
|
+
return openBlock(), createElementBlock("li", {
|
|
3766
|
+
key: row.node.id,
|
|
3767
|
+
class: normalizeClass(["lf-tree__row", { "lf-tree__row--on": row.node.id === selected.value, "lf-tree__row--disabled": row.node.disabled }]),
|
|
3768
|
+
role: "treeitem",
|
|
3769
|
+
"aria-level": row.depth + 1,
|
|
3770
|
+
"aria-expanded": row.hasChildren ? isOpen(row.node.id) ? "true" : "false" : void 0,
|
|
3771
|
+
"aria-selected": row.node.id === selected.value ? "true" : "false",
|
|
3772
|
+
tabindex: row.node.id === focusId.value ? 0 : -1,
|
|
3773
|
+
"data-id": row.node.id,
|
|
3774
|
+
style: normalizeStyle({ paddingLeft: `${0.25 + row.depth * __props.indent}rem` }),
|
|
3775
|
+
onClick: ($event) => onRowClick(row.node),
|
|
3776
|
+
onFocus: ($event) => focusId.value = row.node.id
|
|
3777
|
+
}, [
|
|
3778
|
+
row.hasChildren ? (openBlock(), createElementBlock("button", {
|
|
3779
|
+
key: 0,
|
|
3780
|
+
type: "button",
|
|
3781
|
+
class: "lf-tree__toggle",
|
|
3782
|
+
tabindex: "-1",
|
|
3783
|
+
"aria-label": isOpen(row.node.id) ? __props.collapseLabel : __props.expandLabel,
|
|
3784
|
+
onClick: withModifiers(($event) => toggle(row.node.id), ["stop"])
|
|
3785
|
+
}, [
|
|
3786
|
+
createVNode(LfIcon, {
|
|
3787
|
+
name: isOpen(row.node.id) ? "expand_more" : "chevron_right",
|
|
3788
|
+
size: "1rem"
|
|
3789
|
+
}, null, 8, ["name"])
|
|
3790
|
+
], 8, _hoisted_3$5)) : (openBlock(), createElementBlock("span", _hoisted_4$2)),
|
|
3791
|
+
row.node.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3792
|
+
key: 2,
|
|
3793
|
+
ref_for: true
|
|
3794
|
+
}, iconOf(row.node.icon), {
|
|
3795
|
+
size: "1rem",
|
|
3796
|
+
class: "lf-tree__icon"
|
|
3797
|
+
}), null, 16)) : createCommentVNode("", true),
|
|
3798
|
+
createElementVNode("span", _hoisted_5$1, [
|
|
3799
|
+
renderSlot(_ctx.$slots, "label", {
|
|
3800
|
+
node: row.node,
|
|
3801
|
+
depth: row.depth
|
|
3802
|
+
}, () => [
|
|
3803
|
+
createTextVNode(toDisplayString(row.node.label), 1)
|
|
3804
|
+
], true)
|
|
3805
|
+
]),
|
|
3806
|
+
row.node.badge !== void 0 && row.node.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString(row.node.badge), 1)) : createCommentVNode("", true)
|
|
3807
|
+
], 46, _hoisted_2$6);
|
|
3808
|
+
}), 128)),
|
|
3809
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_7, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3810
|
+
], 42, _hoisted_1$7);
|
|
3811
|
+
};
|
|
3812
|
+
}
|
|
3813
|
+
});
|
|
3814
|
+
const LfTree = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d194fe5c"]]);
|
|
3815
|
+
const _hoisted_1$6 = ["aria-label"];
|
|
3816
|
+
const _hoisted_2$5 = ["aria-current"];
|
|
3817
|
+
const _hoisted_3$4 = {
|
|
3818
|
+
class: "lf-steps__dot",
|
|
3819
|
+
"aria-hidden": "true"
|
|
3820
|
+
};
|
|
3821
|
+
const _hoisted_4$1 = { class: "lf-steps__text" };
|
|
3822
|
+
const _hoisted_5 = { class: "lf-steps__label" };
|
|
3823
|
+
const _hoisted_6 = {
|
|
3824
|
+
key: 0,
|
|
3825
|
+
class: "lf-steps__desc"
|
|
3826
|
+
};
|
|
3827
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3828
|
+
__name: "LfSteps",
|
|
3829
|
+
props: {
|
|
3830
|
+
steps: { default: () => [] },
|
|
3831
|
+
current: { default: 0 },
|
|
3832
|
+
direction: { default: "horizontal" },
|
|
3833
|
+
dense: { type: Boolean },
|
|
3834
|
+
ariaLabel: {}
|
|
3835
|
+
},
|
|
3836
|
+
setup(__props) {
|
|
3837
|
+
const props = __props;
|
|
3838
|
+
function statusOf(step, i2) {
|
|
3839
|
+
if (step.status) return step.status;
|
|
3840
|
+
if (i2 < props.current) return "done";
|
|
3841
|
+
if (i2 === props.current) return "current";
|
|
3842
|
+
return "todo";
|
|
3843
|
+
}
|
|
3844
|
+
return (_ctx, _cache) => {
|
|
3845
|
+
return openBlock(), createElementBlock("ol", {
|
|
3846
|
+
class: normalizeClass(["lf-steps", [`lf-steps--${__props.direction}`, { "lf-steps--dense": __props.dense }]]),
|
|
3847
|
+
"aria-label": __props.ariaLabel
|
|
3848
|
+
}, [
|
|
3849
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (step, i2) => {
|
|
3850
|
+
return openBlock(), createElementBlock("li", {
|
|
3851
|
+
key: i2,
|
|
3852
|
+
class: normalizeClass(["lf-steps__item", `lf-steps__item--${statusOf(step, i2)}`]),
|
|
3853
|
+
"aria-current": statusOf(step, i2) === "current" ? "step" : void 0
|
|
3854
|
+
}, [
|
|
3855
|
+
createElementVNode("span", _hoisted_3$4, [
|
|
3856
|
+
statusOf(step, i2) === "done" ? (openBlock(), createBlock(LfIcon, {
|
|
3857
|
+
key: 0,
|
|
3858
|
+
name: "check",
|
|
3859
|
+
size: "0.875rem"
|
|
3860
|
+
})) : statusOf(step, i2) === "error" ? (openBlock(), createBlock(LfIcon, {
|
|
3861
|
+
key: 1,
|
|
3862
|
+
name: "close",
|
|
3863
|
+
size: "0.875rem"
|
|
3864
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
3865
|
+
createTextVNode(toDisplayString(i2 + 1), 1)
|
|
3866
|
+
], 64))
|
|
3867
|
+
]),
|
|
3868
|
+
createElementVNode("span", _hoisted_4$1, [
|
|
3869
|
+
createElementVNode("span", _hoisted_5, toDisplayString(step.label), 1),
|
|
3870
|
+
step.description ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(step.description), 1)) : createCommentVNode("", true)
|
|
3871
|
+
])
|
|
3872
|
+
], 10, _hoisted_2$5);
|
|
3873
|
+
}), 128))
|
|
3874
|
+
], 10, _hoisted_1$6);
|
|
3875
|
+
};
|
|
3876
|
+
}
|
|
3877
|
+
});
|
|
3878
|
+
const LfSteps = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-366fd734"]]);
|
|
3879
|
+
const _hoisted_1$5 = {
|
|
3880
|
+
key: 0,
|
|
3881
|
+
class: "lf-progress__head"
|
|
3882
|
+
};
|
|
3883
|
+
const _hoisted_2$4 = {
|
|
3884
|
+
key: 0,
|
|
3885
|
+
class: "lf-progress__label"
|
|
3886
|
+
};
|
|
3887
|
+
const _hoisted_3$3 = {
|
|
3888
|
+
key: 1,
|
|
3889
|
+
class: "lf-progress__value"
|
|
3890
|
+
};
|
|
3891
|
+
const _hoisted_4 = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
3892
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3893
|
+
__name: "LfProgress",
|
|
3894
|
+
props: {
|
|
3895
|
+
value: { default: 0 },
|
|
3896
|
+
max: { default: 100 },
|
|
3897
|
+
label: {},
|
|
3898
|
+
showValue: { type: Boolean },
|
|
3899
|
+
format: {},
|
|
3900
|
+
tone: { default: "accent" },
|
|
3901
|
+
size: { default: "sm" },
|
|
3902
|
+
indeterminate: { type: Boolean },
|
|
3903
|
+
ariaLabel: {}
|
|
3904
|
+
},
|
|
3905
|
+
setup(__props) {
|
|
3906
|
+
const props = __props;
|
|
3907
|
+
const clamped = computed(() => Math.min(Math.max(props.value, 0), props.max));
|
|
3908
|
+
const pct = computed(() => props.max > 0 ? clamped.value / props.max * 100 : 0);
|
|
3909
|
+
const display = computed(() => props.format ? props.format(clamped.value, props.max) : `${Math.round(pct.value)}%`);
|
|
3910
|
+
return (_ctx, _cache) => {
|
|
3911
|
+
return openBlock(), createElementBlock("div", {
|
|
3912
|
+
class: normalizeClass(["lf-progress", [`lf-progress--${__props.size}`, `lf-progress--${__props.tone}`]])
|
|
3913
|
+
}, [
|
|
3914
|
+
__props.label || __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
3915
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
3916
|
+
__props.showValue && !__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(display.value), 1)) : createCommentVNode("", true)
|
|
3917
|
+
])) : createCommentVNode("", true),
|
|
3918
|
+
createElementVNode("div", {
|
|
3919
|
+
class: "lf-progress__track",
|
|
3920
|
+
role: "progressbar",
|
|
3921
|
+
"aria-label": __props.label || __props.ariaLabel,
|
|
3922
|
+
"aria-valuemin": __props.indeterminate ? void 0 : 0,
|
|
3923
|
+
"aria-valuemax": __props.indeterminate ? void 0 : __props.max,
|
|
3924
|
+
"aria-valuenow": __props.indeterminate ? void 0 : clamped.value
|
|
3925
|
+
}, [
|
|
3926
|
+
createElementVNode("div", {
|
|
3927
|
+
class: normalizeClass(["lf-progress__fill", { "lf-progress__fill--indeterminate": __props.indeterminate }]),
|
|
3928
|
+
style: normalizeStyle(__props.indeterminate ? void 0 : { width: `${pct.value}%` })
|
|
3929
|
+
}, null, 6)
|
|
3930
|
+
], 8, _hoisted_4)
|
|
3931
|
+
], 2);
|
|
3932
|
+
};
|
|
3933
|
+
}
|
|
3934
|
+
});
|
|
3935
|
+
const LfProgress = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ec77fd75"]]);
|
|
3936
|
+
const _hoisted_1$4 = { class: "lf-desc__label" };
|
|
3937
|
+
const _hoisted_2$3 = { class: "lf-desc__value" };
|
|
3938
|
+
const _hoisted_3$2 = {
|
|
3939
|
+
key: 0,
|
|
3940
|
+
class: "lf-desc__empty"
|
|
3941
|
+
};
|
|
3942
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3943
|
+
__name: "LfDescriptions",
|
|
3944
|
+
props: {
|
|
3945
|
+
items: { default: () => [] },
|
|
3946
|
+
columns: { default: 2 },
|
|
3947
|
+
dense: { type: Boolean },
|
|
3948
|
+
bordered: { type: Boolean },
|
|
3949
|
+
emptyText: { default: "—" }
|
|
3950
|
+
},
|
|
3951
|
+
setup(__props) {
|
|
3952
|
+
return (_ctx, _cache) => {
|
|
3953
|
+
return openBlock(), createElementBlock("dl", {
|
|
3954
|
+
class: normalizeClass(["lf-desc", { "lf-desc--dense": __props.dense, "lf-desc--bordered": __props.bordered }]),
|
|
3955
|
+
style: normalizeStyle({ "--lf-desc-cols": __props.columns })
|
|
3956
|
+
}, [
|
|
3957
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
3958
|
+
return openBlock(), createElementBlock("div", {
|
|
3959
|
+
key: item.key,
|
|
3960
|
+
class: "lf-desc__item",
|
|
3961
|
+
style: normalizeStyle(item.span ? { gridColumn: `span ${Math.min(item.span, __props.columns)}` } : void 0)
|
|
3962
|
+
}, [
|
|
3963
|
+
createElementVNode("dt", _hoisted_1$4, toDisplayString(item.label), 1),
|
|
3964
|
+
createElementVNode("dd", _hoisted_2$3, [
|
|
3965
|
+
renderSlot(_ctx.$slots, `value-${item.key}`, { item }, () => [
|
|
3966
|
+
item.value === null || item.value === void 0 || item.value === "" ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3967
|
+
createTextVNode(toDisplayString(item.value), 1)
|
|
3968
|
+
], 64))
|
|
3969
|
+
], true)
|
|
3970
|
+
])
|
|
3971
|
+
], 4);
|
|
3972
|
+
}), 128))
|
|
3973
|
+
], 6);
|
|
3974
|
+
};
|
|
3975
|
+
}
|
|
3976
|
+
});
|
|
3977
|
+
const LfDescriptions = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-89d24a22"]]);
|
|
3978
|
+
const _hoisted_1$3 = ["id", "placeholder", "disabled"];
|
|
3979
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3980
|
+
__name: "LfTagInput",
|
|
3981
|
+
props: /* @__PURE__ */ mergeModels({
|
|
3982
|
+
label: {},
|
|
3983
|
+
hint: {},
|
|
3984
|
+
error: {},
|
|
3985
|
+
required: { type: Boolean },
|
|
3986
|
+
placeholder: {},
|
|
3987
|
+
disabled: { type: Boolean },
|
|
3988
|
+
size: { default: "md" },
|
|
3989
|
+
unique: { type: Boolean, default: true },
|
|
3990
|
+
max: {},
|
|
3991
|
+
normalize: {},
|
|
3992
|
+
removeLabel: { default: "제거" }
|
|
3993
|
+
}, {
|
|
3994
|
+
"modelValue": { default: () => [] },
|
|
3995
|
+
"modelModifiers": {}
|
|
3996
|
+
}),
|
|
3997
|
+
emits: ["update:modelValue"],
|
|
3998
|
+
setup(__props) {
|
|
3999
|
+
const props = __props;
|
|
4000
|
+
const model = useModel(__props, "modelValue");
|
|
4001
|
+
const inputId = useId();
|
|
4002
|
+
const input = useTemplateRef("input");
|
|
4003
|
+
const draft = ref("");
|
|
4004
|
+
function add(values) {
|
|
4005
|
+
const next = [...model.value];
|
|
4006
|
+
for (const raw of values) {
|
|
4007
|
+
const v = props.normalize ? props.normalize(raw.trim()) : raw.trim();
|
|
4008
|
+
if (!v) continue;
|
|
4009
|
+
if (props.unique && next.includes(v)) continue;
|
|
4010
|
+
if (props.max !== void 0 && next.length >= props.max) break;
|
|
4011
|
+
next.push(v);
|
|
4012
|
+
}
|
|
4013
|
+
if (next.length !== model.value.length) model.value = next;
|
|
4014
|
+
}
|
|
4015
|
+
function commit() {
|
|
4016
|
+
if (!draft.value.trim()) return;
|
|
4017
|
+
add([draft.value]);
|
|
4018
|
+
draft.value = "";
|
|
4019
|
+
}
|
|
4020
|
+
function removeAt(i2) {
|
|
4021
|
+
model.value = model.value.filter((_, j) => j !== i2);
|
|
4022
|
+
}
|
|
4023
|
+
function onKeydown(e3) {
|
|
4024
|
+
if (e3.key === "Enter" || e3.key === ",") {
|
|
4025
|
+
if (e3.isComposing) return;
|
|
4026
|
+
e3.preventDefault();
|
|
4027
|
+
commit();
|
|
4028
|
+
} else if (e3.key === "Backspace" && !draft.value && model.value.length) {
|
|
4029
|
+
removeAt(model.value.length - 1);
|
|
4030
|
+
}
|
|
4031
|
+
}
|
|
4032
|
+
function onPaste(e3) {
|
|
4033
|
+
var _a;
|
|
4034
|
+
const text = ((_a = e3.clipboardData) == null ? void 0 : _a.getData("text")) ?? "";
|
|
4035
|
+
if (!/[\n,\t]/.test(text)) return;
|
|
4036
|
+
e3.preventDefault();
|
|
4037
|
+
add(text.split(/[\n,\t]+/));
|
|
4038
|
+
}
|
|
4039
|
+
return (_ctx, _cache) => {
|
|
4040
|
+
return openBlock(), createBlock(LfField, {
|
|
4041
|
+
label: __props.label,
|
|
4042
|
+
hint: __props.hint,
|
|
4043
|
+
error: __props.error,
|
|
4044
|
+
required: __props.required,
|
|
4045
|
+
"html-for": unref(inputId)
|
|
4046
|
+
}, {
|
|
4047
|
+
default: withCtx(() => [
|
|
4048
|
+
createElementVNode("div", {
|
|
4049
|
+
class: normalizeClass(["lf-control lf-tags", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error, "lf-tags--disabled": __props.disabled }]),
|
|
4050
|
+
onClick: _cache[2] || (_cache[2] = ($event) => {
|
|
4051
|
+
var _a;
|
|
4052
|
+
return (_a = input.value) == null ? void 0 : _a.focus();
|
|
4053
|
+
})
|
|
4054
|
+
}, [
|
|
4055
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(model.value, (tag, i2) => {
|
|
4056
|
+
return openBlock(), createBlock(LfBadge, {
|
|
4057
|
+
key: `${tag}-${i2}`,
|
|
4058
|
+
label: tag,
|
|
4059
|
+
size: "sm",
|
|
4060
|
+
removable: !__props.disabled,
|
|
4061
|
+
"remove-label": `${tag} ${__props.removeLabel}`,
|
|
4062
|
+
onRemove: ($event) => removeAt(i2)
|
|
4063
|
+
}, null, 8, ["label", "removable", "remove-label", "onRemove"]);
|
|
4064
|
+
}), 128)),
|
|
4065
|
+
withDirectives(createElementVNode("input", {
|
|
4066
|
+
id: unref(inputId),
|
|
4067
|
+
ref_key: "input",
|
|
4068
|
+
ref: input,
|
|
4069
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => draft.value = $event),
|
|
4070
|
+
class: "lf-tags__input",
|
|
4071
|
+
placeholder: model.value.length ? "" : __props.placeholder,
|
|
4072
|
+
disabled: __props.disabled || __props.max !== void 0 && model.value.length >= __props.max,
|
|
4073
|
+
onKeydown,
|
|
4074
|
+
onPaste,
|
|
4075
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => commit())
|
|
4076
|
+
}, null, 40, _hoisted_1$3), [
|
|
4077
|
+
[vModelText, draft.value]
|
|
4078
|
+
])
|
|
4079
|
+
], 2)
|
|
4080
|
+
]),
|
|
4081
|
+
_: 1
|
|
4082
|
+
}, 8, ["label", "hint", "error", "required", "html-for"]);
|
|
4083
|
+
};
|
|
4084
|
+
}
|
|
4085
|
+
});
|
|
4086
|
+
const LfTagInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-89f5a363"]]);
|
|
4087
|
+
const _hoisted_1$2 = ["aria-label"];
|
|
4088
|
+
const _hoisted_2$2 = { class: "lf-toolbar__start" };
|
|
4089
|
+
const _hoisted_3$1 = {
|
|
4090
|
+
key: 0,
|
|
4091
|
+
class: "lf-toolbar__end"
|
|
4092
|
+
};
|
|
4093
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4094
|
+
__name: "LfToolbar",
|
|
4095
|
+
props: {
|
|
4096
|
+
dense: { type: Boolean },
|
|
4097
|
+
bordered: { type: Boolean },
|
|
4098
|
+
ariaLabel: {}
|
|
4099
|
+
},
|
|
4100
|
+
setup(__props) {
|
|
4101
|
+
return (_ctx, _cache) => {
|
|
4102
|
+
return openBlock(), createElementBlock("div", {
|
|
4103
|
+
class: normalizeClass(["lf-toolbar", { "lf-toolbar--dense": __props.dense, "lf-toolbar--bordered": __props.bordered }]),
|
|
4104
|
+
role: "toolbar",
|
|
4105
|
+
"aria-label": __props.ariaLabel
|
|
4106
|
+
}, [
|
|
4107
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
4108
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4109
|
+
]),
|
|
4110
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
4111
|
+
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4112
|
+
])) : createCommentVNode("", true)
|
|
4113
|
+
], 10, _hoisted_1$2);
|
|
4114
|
+
};
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
const LfToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c81170ed"]]);
|
|
4118
|
+
const _hoisted_1$1 = { class: "lf-kbd-group" };
|
|
4119
|
+
const _hoisted_2$1 = { class: "lf-kbd" };
|
|
4120
|
+
const _hoisted_3 = {
|
|
4121
|
+
key: 0,
|
|
4122
|
+
class: "lf-kbd-plus",
|
|
4123
|
+
"aria-hidden": "true"
|
|
4124
|
+
};
|
|
4125
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4126
|
+
__name: "LfKbd",
|
|
4127
|
+
props: {
|
|
4128
|
+
keys: {}
|
|
4129
|
+
},
|
|
4130
|
+
setup(__props) {
|
|
4131
|
+
const props = __props;
|
|
4132
|
+
const keyList = computed(() => Array.isArray(props.keys) ? props.keys : props.keys.split("+").map((k) => k.trim()));
|
|
4133
|
+
return (_ctx, _cache) => {
|
|
4134
|
+
return openBlock(), createElementBlock("span", _hoisted_1$1, [
|
|
4135
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(keyList.value, (k, i2) => {
|
|
4136
|
+
return openBlock(), createElementBlock(Fragment, { key: i2 }, [
|
|
4137
|
+
createElementVNode("kbd", _hoisted_2$1, toDisplayString(k), 1),
|
|
4138
|
+
i2 < keyList.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3, "+")) : createCommentVNode("", true)
|
|
4139
|
+
], 64);
|
|
4140
|
+
}), 128))
|
|
4141
|
+
]);
|
|
4142
|
+
};
|
|
4143
|
+
}
|
|
4144
|
+
});
|
|
4145
|
+
const LfKbd = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-89bdfee2"]]);
|
|
4146
|
+
const _hoisted_1 = ["aria-orientation", "aria-valuenow", "aria-label"];
|
|
4147
|
+
const _hoisted_2 = { class: "lf-split__pane lf-split__pane--second" };
|
|
4148
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4149
|
+
__name: "LfSplitPane",
|
|
4150
|
+
props: {
|
|
4151
|
+
direction: { default: "horizontal" },
|
|
4152
|
+
initial: { default: 50 },
|
|
4153
|
+
min: { default: 15 },
|
|
4154
|
+
max: { default: 85 },
|
|
4155
|
+
stackBelow: { default: 860 },
|
|
4156
|
+
storageKey: {},
|
|
4157
|
+
gutterLabel: { default: "크기 조절" }
|
|
4158
|
+
},
|
|
4159
|
+
setup(__props) {
|
|
4160
|
+
const props = __props;
|
|
4161
|
+
const size = ref(props.initial);
|
|
4162
|
+
const dragging = ref(false);
|
|
4163
|
+
const stacked = ref(false);
|
|
4164
|
+
const root = useTemplateRef("root");
|
|
4165
|
+
function clamp(v) {
|
|
4166
|
+
return Math.min(props.max, Math.max(props.min, v));
|
|
4167
|
+
}
|
|
4168
|
+
try {
|
|
4169
|
+
const saved = props.storageKey ? Number(localStorage.getItem(props.storageKey)) : NaN;
|
|
4170
|
+
if (Number.isFinite(saved) && saved > 0) size.value = clamp(saved);
|
|
4171
|
+
} catch {
|
|
4172
|
+
}
|
|
4173
|
+
watch(size, (v) => {
|
|
4174
|
+
if (!props.storageKey) return;
|
|
4175
|
+
try {
|
|
4176
|
+
localStorage.setItem(props.storageKey, String(Math.round(v * 10) / 10));
|
|
4177
|
+
} catch {
|
|
4178
|
+
}
|
|
4179
|
+
});
|
|
4180
|
+
function onMove(e3) {
|
|
4181
|
+
var _a;
|
|
4182
|
+
const r = (_a = root.value) == null ? void 0 : _a.getBoundingClientRect();
|
|
4183
|
+
if (!r) return;
|
|
4184
|
+
const pct = props.direction === "horizontal" ? (e3.clientX - r.left) / r.width * 100 : (e3.clientY - r.top) / r.height * 100;
|
|
4185
|
+
size.value = clamp(pct);
|
|
4186
|
+
}
|
|
4187
|
+
function onUp() {
|
|
4188
|
+
dragging.value = false;
|
|
4189
|
+
window.removeEventListener("pointermove", onMove);
|
|
4190
|
+
window.removeEventListener("pointerup", onUp);
|
|
4191
|
+
}
|
|
4192
|
+
function onDown(e3) {
|
|
4193
|
+
e3.preventDefault();
|
|
4194
|
+
dragging.value = true;
|
|
4195
|
+
window.addEventListener("pointermove", onMove);
|
|
4196
|
+
window.addEventListener("pointerup", onUp);
|
|
4197
|
+
}
|
|
4198
|
+
function onKey(e3) {
|
|
4199
|
+
const back = props.direction === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
4200
|
+
const fwd = props.direction === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
4201
|
+
if (e3.key === back) size.value = clamp(size.value - 2);
|
|
4202
|
+
else if (e3.key === fwd) size.value = clamp(size.value + 2);
|
|
4203
|
+
else return;
|
|
4204
|
+
e3.preventDefault();
|
|
4205
|
+
}
|
|
4206
|
+
let ro = null;
|
|
4207
|
+
onMounted(() => {
|
|
4208
|
+
const check = () => {
|
|
4209
|
+
var _a;
|
|
4210
|
+
stacked.value = props.stackBelow > 0 && (((_a = root.value) == null ? void 0 : _a.clientWidth) ?? 9999) < props.stackBelow;
|
|
4211
|
+
};
|
|
4212
|
+
check();
|
|
4213
|
+
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
4214
|
+
ro = new ResizeObserver(check);
|
|
4215
|
+
ro.observe(root.value);
|
|
4216
|
+
}
|
|
4217
|
+
});
|
|
4218
|
+
onBeforeUnmount(() => {
|
|
4219
|
+
ro == null ? void 0 : ro.disconnect();
|
|
4220
|
+
onUp();
|
|
4221
|
+
});
|
|
4222
|
+
return (_ctx, _cache) => {
|
|
4223
|
+
return openBlock(), createElementBlock("div", {
|
|
4224
|
+
ref_key: "root",
|
|
4225
|
+
ref: root,
|
|
4226
|
+
class: normalizeClass(["lf-split", [`lf-split--${__props.direction}`, { "lf-split--stacked": stacked.value, "lf-split--dragging": dragging.value }]])
|
|
4227
|
+
}, [
|
|
4228
|
+
createElementVNode("div", {
|
|
4229
|
+
class: "lf-split__pane lf-split__pane--first",
|
|
4230
|
+
style: normalizeStyle(stacked.value ? void 0 : { flexBasis: `${size.value}%` })
|
|
4231
|
+
}, [
|
|
4232
|
+
renderSlot(_ctx.$slots, "first", {}, void 0, true)
|
|
4233
|
+
], 4),
|
|
4234
|
+
!stacked.value ? (openBlock(), createElementBlock("div", {
|
|
4235
|
+
key: 0,
|
|
4236
|
+
class: "lf-split__gutter",
|
|
4237
|
+
role: "separator",
|
|
4238
|
+
"aria-orientation": __props.direction === "horizontal" ? "vertical" : "horizontal",
|
|
4239
|
+
"aria-valuenow": Math.round(size.value),
|
|
4240
|
+
"aria-valuemin": "0",
|
|
4241
|
+
"aria-valuemax": "100",
|
|
4242
|
+
"aria-label": __props.gutterLabel,
|
|
4243
|
+
tabindex: "0",
|
|
4244
|
+
onPointerdown: onDown,
|
|
4245
|
+
onKeydown: onKey,
|
|
4246
|
+
onDblclick: _cache[0] || (_cache[0] = ($event) => size.value = __props.initial)
|
|
4247
|
+
}, null, 40, _hoisted_1)) : createCommentVNode("", true),
|
|
4248
|
+
createElementVNode("div", _hoisted_2, [
|
|
4249
|
+
renderSlot(_ctx.$slots, "second", {}, void 0, true)
|
|
4250
|
+
])
|
|
4251
|
+
], 2);
|
|
4252
|
+
};
|
|
4253
|
+
}
|
|
4254
|
+
});
|
|
4255
|
+
const LfSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f87ea5e"]]);
|
|
3088
4256
|
class ApiError extends Error {
|
|
3089
4257
|
constructor(status, message, detail) {
|
|
3090
4258
|
super(message);
|
|
@@ -3236,11 +4404,15 @@ export {
|
|
|
3236
4404
|
LfButton,
|
|
3237
4405
|
LfCard,
|
|
3238
4406
|
LfCheckbox,
|
|
4407
|
+
LfDateRange,
|
|
4408
|
+
LfDescriptions,
|
|
3239
4409
|
LfDivider,
|
|
4410
|
+
LfDrawer,
|
|
3240
4411
|
LfEmptyState,
|
|
3241
4412
|
LfField,
|
|
3242
4413
|
LfIcon,
|
|
3243
4414
|
LfIconButton,
|
|
4415
|
+
LfKbd,
|
|
3244
4416
|
LfList,
|
|
3245
4417
|
LfListItem,
|
|
3246
4418
|
LfListSelect,
|
|
@@ -3249,18 +4421,25 @@ export {
|
|
|
3249
4421
|
LfNavRail,
|
|
3250
4422
|
LfPageHeader,
|
|
3251
4423
|
LfPagination,
|
|
4424
|
+
LfProgress,
|
|
3252
4425
|
LfRadioGroup,
|
|
3253
4426
|
e2 as LfSegmented,
|
|
3254
4427
|
f2 as LfSelect,
|
|
3255
4428
|
LfSkeleton,
|
|
3256
4429
|
LfSpinner,
|
|
4430
|
+
LfSplitPane,
|
|
3257
4431
|
LfStatCard,
|
|
4432
|
+
LfSteps,
|
|
3258
4433
|
LfSwitch,
|
|
3259
4434
|
LfTable,
|
|
4435
|
+
LfTabs,
|
|
4436
|
+
LfTagInput,
|
|
3260
4437
|
LfTextField,
|
|
3261
4438
|
LfTextarea,
|
|
4439
|
+
LfToolbar,
|
|
3262
4440
|
LfTooltip,
|
|
3263
|
-
_sfc_main$
|
|
4441
|
+
_sfc_main$f as LfTransitionList,
|
|
4442
|
+
LfTree,
|
|
3264
4443
|
c as applySemanticPalette,
|
|
3265
4444
|
applyTheme,
|
|
3266
4445
|
d as colorToRgb,
|