@loafacto/ui 0.16.4 → 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-C35GdK7N.js +455 -0
- 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 +1560 -783
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +1093 -258
- package/dist/map3d/LfMap3d.vue.d.ts +81 -0
- package/dist/map3d/MapScene.d.ts +146 -0
- package/dist/map3d/theme.d.ts +38 -0
- package/dist/map3d/types.d.ts +119 -0
- package/dist/map3d.d.ts +17 -0
- package/dist/map3d.js +1173 -0
- package/dist/map3d.js.map +1 -0
- package/dist/types.d.ts +32 -0
- package/package.json +14 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, Transition, withCtx, renderList, renderSlot, unref, nextTick, onUnmounted, createBlock, Teleport, TransitionGroup, withModifiers, useTemplateRef, onMounted, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent,
|
|
1
|
+
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, Transition, withCtx, renderList, renderSlot, unref, nextTick, onUnmounted, createBlock, Teleport, TransitionGroup, withModifiers, useTemplateRef, onMounted, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useModel, useId, mergeProps, isRef, vModelDynamic, mergeModels, vModelCheckbox, vModelRadio, useSlots } from "vue";
|
|
2
2
|
import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-8AxcQbPB.js";
|
|
3
3
|
import { b, c, d, e, f, h, i, l } from "./applyTheme-8AxcQbPB.js";
|
|
4
|
+
import { _ as _export_sfc, L as LfSpinner, a as LfIcon, u as useSplitAttrs, b as LfField, c as LfIconButton, d as LF_ICONS } from "./LfSegmented-C35GdK7N.js";
|
|
5
|
+
import { e as e2, f as f2 } from "./LfSegmented-C35GdK7N.js";
|
|
4
6
|
import { defineStore } from "pinia";
|
|
5
7
|
const LOAFACTO_SERVICES = [
|
|
6
8
|
{
|
|
@@ -113,8 +115,8 @@ function initTheme(options) {
|
|
|
113
115
|
});
|
|
114
116
|
} catch {
|
|
115
117
|
}
|
|
116
|
-
window.addEventListener("storage", (
|
|
117
|
-
if (
|
|
118
|
+
window.addEventListener("storage", (e3) => {
|
|
119
|
+
if (e3.key !== STORAGE_KEY) return;
|
|
118
120
|
const v = readStored();
|
|
119
121
|
explicit.value = v !== null;
|
|
120
122
|
mode.value = v ?? osPrefers();
|
|
@@ -149,33 +151,26 @@ function useTheme() {
|
|
|
149
151
|
}
|
|
150
152
|
};
|
|
151
153
|
}
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
for (const [key, val] of props) {
|
|
155
|
-
target[key] = val;
|
|
156
|
-
}
|
|
157
|
-
return target;
|
|
158
|
-
};
|
|
159
|
-
const _sfc_main$A = {};
|
|
160
|
-
const _hoisted_1$x = {
|
|
154
|
+
const _sfc_main$F = {};
|
|
155
|
+
const _hoisted_1$D = {
|
|
161
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
157
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
163
158
|
"aria-hidden": "true"
|
|
164
159
|
};
|
|
165
160
|
function _sfc_render$1(_ctx, _cache) {
|
|
166
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
161
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$D, [..._cache[0] || (_cache[0] = [
|
|
167
162
|
createStaticVNode('<g transform="translate(-27.12,-91.37) scale(0.7136)"><circle cx="74" cy="27" r="15" fill="#8F6747"></circle><circle cx="104" cy="12" r="10" fill="#8F6747"></circle><path d="M43,48 L95,48 A5,5 0 0 1 100,53 L100,59 A5,5 0 0 1 95,64 L92,64 L92,124 L164,124 L164,148 A8,8 0 0 1 156,156 L54,156 A8,8 0 0 1 46,148 L46,64 L43,64 A5,5 0 0 1 38,59 L38,53 A5,5 0 0 1 43,48 Z" fill="currentColor"></path><path d="M92,94 A18,18 0 0 1 128,94 A18,18 0 0 1 164,94 L164,124 L92,124 Z" fill="#8F6747"></path></g><path transform="translate(122.11,0)" d="M6.80 0.00V-70.00H22.90V-14.80H52.70V0.00ZM82.95 1.20Q75.05 1.20 69.05 -2.15Q63.05 -5.50 59.60 -11.40Q56.15 -17.30 56.15 -25.00Q56.15 -32.70 59.50 -38.60Q62.85 -44.50 68.90 -47.85Q74.95 -51.20 82.65 -51.20Q90.55 -51.20 96.60 -47.85Q102.65 -44.50 106.00 -38.60Q109.35 -32.70 109.35 -25.00Q109.35 -17.30 106.00 -11.40Q102.65 -5.50 96.65 -2.15Q90.65 1.20 82.95 1.20ZM82.95 -13.20Q85.95 -13.20 88.30 -14.70Q90.65 -16.20 92.00 -18.85Q93.35 -21.50 93.35 -25.00Q93.35 -28.50 92.00 -31.15Q90.65 -33.80 88.25 -35.30Q85.85 -36.80 82.75 -36.80Q79.65 -36.80 77.25 -35.30Q74.85 -33.80 73.50 -31.15Q72.15 -28.50 72.15 -25.00Q72.15 -21.50 73.50 -18.85Q74.85 -16.20 77.30 -14.70Q79.75 -13.20 82.95 -13.20ZM133.40 1.20Q124.50 1.20 119.60 -2.80Q114.70 -6.80 114.70 -14.10Q114.70 -22.00 119.80 -25.90Q124.90 -29.80 134.10 -29.80H146.30Q145.80 -33.80 143.95 -36.05Q142.10 -38.30 138.00 -38.30Q135.20 -38.30 133.10 -37.00Q131.00 -35.70 129.50 -33.40L115.90 -37.90Q117.60 -41.60 120.55 -44.60Q123.50 -47.60 127.80 -49.40Q132.10 -51.20 137.80 -51.20Q145.60 -51.20 151.00 -48.30Q156.40 -45.40 159.10 -40.20Q161.80 -35.00 161.80 -27.90L161.60 0.00H147.00L146.80 -5.10Q144.80 -2.00 141.40 -0.40Q138.00 1.20 133.40 1.20ZM136.80 -10.60Q139.70 -10.60 141.90 -11.80Q144.10 -13.00 145.35 -15.05Q146.60 -17.10 146.60 -19.50V-19.80H140.00Q135.00 -19.80 132.80 -18.40Q130.60 -17.00 130.60 -14.50Q130.60 -12.70 132.25 -11.65Q133.90 -10.60 136.80 -10.60ZM176.65 0.00V-37.70H168.75V-50.00H176.65V-54.60Q176.65 -62.80 180.95 -67.50Q185.25 -72.20 194.15 -72.20Q197.45 -72.20 201.05 -71.05Q204.65 -69.90 207.25 -68.40L201.45 -57.40Q200.25 -58.20 199.05 -58.55Q197.85 -58.90 196.85 -58.90Q194.45 -58.90 193.35 -57.25Q192.25 -55.60 192.25 -51.80V-50.00H203.55V-37.70H192.25V0.00ZM227.90 1.20Q219.00 1.20 214.10 -2.80Q209.20 -6.80 209.20 -14.10Q209.20 -22.00 214.30 -25.90Q219.40 -29.80 228.60 -29.80H240.80Q240.30 -33.80 238.45 -36.05Q236.60 -38.30 232.50 -38.30Q229.70 -38.30 227.60 -37.00Q225.50 -35.70 224.00 -33.40L210.40 -37.90Q212.10 -41.60 215.05 -44.60Q218.00 -47.60 222.30 -49.40Q226.60 -51.20 232.30 -51.20Q240.10 -51.20 245.50 -48.30Q250.90 -45.40 253.60 -40.20Q256.30 -35.00 256.30 -27.90L256.10 0.00H241.50L241.30 -5.10Q239.30 -2.00 235.90 -0.40Q232.50 1.20 227.90 1.20ZM231.30 -10.60Q234.20 -10.60 236.40 -11.80Q238.60 -13.00 239.85 -15.05Q241.10 -17.10 241.10 -19.50V-19.80H234.50Q229.50 -19.80 227.30 -18.40Q225.10 -17.00 225.10 -14.50Q225.10 -12.70 226.75 -11.65Q228.40 -10.60 231.30 -10.60ZM291.05 1.20Q283.05 1.20 276.80 -2.15Q270.55 -5.50 267.05 -11.45Q263.55 -17.40 263.55 -25.00Q263.55 -32.70 267.05 -38.60Q270.55 -44.50 276.70 -47.85Q282.85 -51.20 290.85 -51.20Q298.55 -51.20 304.95 -47.30Q311.35 -43.40 314.15 -36.00L299.35 -31.00Q298.25 -33.40 295.70 -34.95Q293.15 -36.50 290.05 -36.50Q286.95 -36.50 284.60 -35.05Q282.25 -33.60 280.90 -31.00Q279.55 -28.40 279.55 -25.00Q279.55 -21.60 280.90 -19.05Q282.25 -16.50 284.70 -15.00Q287.15 -13.50 290.25 -13.50Q293.35 -13.50 295.85 -15.10Q298.35 -16.70 299.55 -19.30L314.35 -14.30Q311.45 -6.80 305.10 -2.80Q298.75 1.20 291.05 1.20ZM342.80 1.20Q333.90 1.20 329.55 -3.05Q325.20 -7.30 325.20 -15.20V-36.90H317.40V-50.00H325.20V-65.60H340.80V-50.00H352.20V-36.90H340.80V-19.10Q340.80 -16.10 341.90 -14.70Q343.00 -13.30 345.30 -13.30Q346.20 -13.30 347.40 -13.75Q348.60 -14.20 349.60 -14.90L355.00 -3.50Q352.60 -1.50 349.25 -0.15Q345.90 1.20 342.80 1.20ZM386.85 1.20Q378.95 1.20 372.95 -2.15Q366.95 -5.50 363.50 -11.40Q360.05 -17.30 360.05 -25.00Q360.05 -32.70 363.40 -38.60Q366.75 -44.50 372.80 -47.85Q378.85 -51.20 386.55 -51.20Q394.45 -51.20 400.50 -47.85Q406.55 -44.50 409.90 -38.60Q413.25 -32.70 413.25 -25.00Q413.25 -17.30 409.90 -11.40Q406.55 -5.50 400.55 -2.15Q394.55 1.20 386.85 1.20ZM386.85 -13.20Q389.85 -13.20 392.20 -14.70Q394.55 -16.20 395.90 -18.85Q397.25 -21.50 397.25 -25.00Q397.25 -28.50 395.90 -31.15Q394.55 -33.80 392.15 -35.30Q389.75 -36.80 386.65 -36.80Q383.55 -36.80 381.15 -35.30Q378.75 -33.80 377.40 -31.15Q376.05 -28.50 376.05 -25.00Q376.05 -21.50 377.40 -18.85Q378.75 -16.20 381.20 -14.70Q383.65 -13.20 386.85 -13.20Z" fill="currentColor"></path>', 2)
|
|
168
163
|
])]);
|
|
169
164
|
}
|
|
170
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
171
|
-
const _sfc_main$
|
|
172
|
-
const _hoisted_1$
|
|
165
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$1]]);
|
|
166
|
+
const _sfc_main$E = {};
|
|
167
|
+
const _hoisted_1$C = {
|
|
173
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
169
|
viewBox: "30 -4 142 168",
|
|
175
170
|
"aria-hidden": "true"
|
|
176
171
|
};
|
|
177
172
|
function _sfc_render(_ctx, _cache) {
|
|
178
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
173
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$C, [..._cache[0] || (_cache[0] = [
|
|
179
174
|
createElementVNode("circle", {
|
|
180
175
|
cx: "74",
|
|
181
176
|
cy: "27",
|
|
@@ -198,20 +193,20 @@ function _sfc_render(_ctx, _cache) {
|
|
|
198
193
|
}, null, -1)
|
|
199
194
|
])]);
|
|
200
195
|
}
|
|
201
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
202
|
-
const _hoisted_1$
|
|
203
|
-
const _hoisted_2$
|
|
204
|
-
const _hoisted_3$
|
|
205
|
-
const _hoisted_4$
|
|
206
|
-
const _hoisted_5$
|
|
207
|
-
const _hoisted_6$
|
|
208
|
-
const _hoisted_7$
|
|
209
|
-
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 = {
|
|
210
205
|
key: 0,
|
|
211
206
|
class: "lf-switcher__menu",
|
|
212
207
|
role: "menu"
|
|
213
208
|
};
|
|
214
|
-
const _hoisted_9$
|
|
209
|
+
const _hoisted_9$3 = ["href", "onClick"];
|
|
215
210
|
const _hoisted_10$2 = {
|
|
216
211
|
key: 0,
|
|
217
212
|
class: "lf-switcher__icon",
|
|
@@ -264,7 +259,7 @@ const _hoisted_31 = { class: "site-footer-inner" };
|
|
|
264
259
|
const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
|
|
265
260
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
266
261
|
const RAIL_KEY = "lf-rail-hidden";
|
|
267
|
-
const _sfc_main$
|
|
262
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
268
263
|
__name: "AppShell",
|
|
269
264
|
props: {
|
|
270
265
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -330,14 +325,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
330
325
|
switcherOpen.value = false;
|
|
331
326
|
onNavigate(event, svc.path, svc);
|
|
332
327
|
}
|
|
333
|
-
function onDocumentPointerDown(
|
|
328
|
+
function onDocumentPointerDown(e3) {
|
|
334
329
|
var _a, _b;
|
|
335
|
-
const target =
|
|
330
|
+
const target = e3.target;
|
|
336
331
|
if (!((_a = switcherEl.value) == null ? void 0 : _a.contains(target))) switcherOpen.value = false;
|
|
337
332
|
if (!((_b = userEl.value) == null ? void 0 : _b.contains(target))) userOpen.value = false;
|
|
338
333
|
}
|
|
339
|
-
function onDocumentKeydown(
|
|
340
|
-
if (
|
|
334
|
+
function onDocumentKeydown(e3) {
|
|
335
|
+
if (e3.key !== "Escape") return;
|
|
341
336
|
switcherOpen.value = false;
|
|
342
337
|
userOpen.value = false;
|
|
343
338
|
}
|
|
@@ -373,9 +368,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
373
368
|
const railOpen = ref(false);
|
|
374
369
|
const railMedia = typeof window !== "undefined" ? window.matchMedia("(max-width: 860px)") : null;
|
|
375
370
|
const railOverlay = ref((railMedia == null ? void 0 : railMedia.matches) ?? false);
|
|
376
|
-
function onRailMedia(
|
|
377
|
-
railOverlay.value =
|
|
378
|
-
if (!
|
|
371
|
+
function onRailMedia(e3) {
|
|
372
|
+
railOverlay.value = e3.matches;
|
|
373
|
+
if (!e3.matches) railOpen.value = false;
|
|
379
374
|
}
|
|
380
375
|
railMedia == null ? void 0 : railMedia.addEventListener("change", onRailMedia);
|
|
381
376
|
function toggleRail() {
|
|
@@ -403,8 +398,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
403
398
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
404
399
|
})
|
|
405
400
|
}, null, 4)) : createCommentVNode("", true),
|
|
406
|
-
createElementVNode("header", _hoisted_1$
|
|
407
|
-
createElementVNode("div", _hoisted_2$
|
|
401
|
+
createElementVNode("header", _hoisted_1$B, [
|
|
402
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
408
403
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
409
404
|
key: 0,
|
|
410
405
|
type: "button",
|
|
@@ -423,7 +418,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
423
418
|
fill: "currentColor"
|
|
424
419
|
})
|
|
425
420
|
], -1)
|
|
426
|
-
])], 8, _hoisted_3$
|
|
421
|
+
])], 8, _hoisted_3$r)) : createCommentVNode("", true),
|
|
427
422
|
createElementVNode("a", {
|
|
428
423
|
class: "lf-brand",
|
|
429
424
|
href: __props.brandHref,
|
|
@@ -435,13 +430,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
435
430
|
src: __props.logoUrl,
|
|
436
431
|
alt: "",
|
|
437
432
|
class: "lf-brand__logo"
|
|
438
|
-
}, null, 8, _hoisted_5$
|
|
439
|
-
createElementVNode("span", _hoisted_6$
|
|
433
|
+
}, null, 8, _hoisted_5$j),
|
|
434
|
+
createElementVNode("span", _hoisted_6$e, toDisplayString(__props.brandName), 1)
|
|
440
435
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
441
436
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
442
437
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
443
438
|
], 64))
|
|
444
|
-
], 8, _hoisted_4$
|
|
439
|
+
], 8, _hoisted_4$m),
|
|
445
440
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
446
441
|
key: 1,
|
|
447
442
|
ref_key: "switcherEl",
|
|
@@ -466,10 +461,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
466
461
|
fill: "currentColor"
|
|
467
462
|
})
|
|
468
463
|
], -1))
|
|
469
|
-
], 8, _hoisted_7$
|
|
464
|
+
], 8, _hoisted_7$d),
|
|
470
465
|
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
471
466
|
default: withCtx(() => [
|
|
472
|
-
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
467
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
473
468
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
474
469
|
return openBlock(), createElementBlock("a", {
|
|
475
470
|
key: svc.id,
|
|
@@ -489,7 +484,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
489
484
|
])) : createCommentVNode("", true),
|
|
490
485
|
createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
|
|
491
486
|
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
492
|
-
], 10, _hoisted_9$
|
|
487
|
+
], 10, _hoisted_9$3);
|
|
493
488
|
}), 128))
|
|
494
489
|
])) : createCommentVNode("", true)
|
|
495
490
|
]),
|
|
@@ -623,7 +618,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
623
618
|
};
|
|
624
619
|
}
|
|
625
620
|
});
|
|
626
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
621
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-ff76069c"]]);
|
|
627
622
|
function generateId() {
|
|
628
623
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
629
624
|
}
|
|
@@ -657,26 +652,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
657
652
|
}
|
|
658
653
|
return { items, add, remove, success, error, info, warning };
|
|
659
654
|
});
|
|
660
|
-
const _hoisted_1$
|
|
655
|
+
const _hoisted_1$A = {
|
|
661
656
|
class: "toast-container",
|
|
662
657
|
role: "region",
|
|
663
658
|
"aria-label": "알림"
|
|
664
659
|
};
|
|
665
|
-
const _hoisted_2$
|
|
666
|
-
const _hoisted_3$
|
|
660
|
+
const _hoisted_2$w = ["onClick"];
|
|
661
|
+
const _hoisted_3$q = {
|
|
667
662
|
class: "toast-icon",
|
|
668
663
|
viewBox: "0 0 24 24",
|
|
669
664
|
"aria-hidden": "true"
|
|
670
665
|
};
|
|
671
|
-
const _hoisted_4$
|
|
672
|
-
const _hoisted_5$
|
|
673
|
-
const _hoisted_6$
|
|
674
|
-
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 = {
|
|
675
670
|
viewBox: "0 0 24 24",
|
|
676
671
|
"aria-hidden": "true"
|
|
677
672
|
};
|
|
678
|
-
const _hoisted_8$
|
|
679
|
-
const _sfc_main$
|
|
673
|
+
const _hoisted_8$4 = ["d"];
|
|
674
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
680
675
|
__name: "AppToast",
|
|
681
676
|
setup(__props) {
|
|
682
677
|
const toastStore = useToastStore();
|
|
@@ -708,7 +703,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
708
703
|
});
|
|
709
704
|
return (_ctx, _cache) => {
|
|
710
705
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
711
|
-
createElementVNode("div", _hoisted_1$
|
|
706
|
+
createElementVNode("div", _hoisted_1$A, [
|
|
712
707
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
713
708
|
default: withCtx(() => [
|
|
714
709
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -718,27 +713,27 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
718
713
|
role: "alert",
|
|
719
714
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
720
715
|
}, [
|
|
721
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
716
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$q, [
|
|
722
717
|
createElementVNode("path", {
|
|
723
718
|
d: ICON_PATHS[item.type],
|
|
724
719
|
fill: "currentColor"
|
|
725
|
-
}, null, 8, _hoisted_4$
|
|
720
|
+
}, null, 8, _hoisted_4$l)
|
|
726
721
|
])),
|
|
727
|
-
createElementVNode("span", _hoisted_5$
|
|
722
|
+
createElementVNode("span", _hoisted_5$i, toDisplayString(item.message), 1),
|
|
728
723
|
createElementVNode("button", {
|
|
729
724
|
type: "button",
|
|
730
725
|
class: "toast-close",
|
|
731
726
|
"aria-label": "닫기",
|
|
732
727
|
onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
|
|
733
728
|
}, [
|
|
734
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
729
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$c, [
|
|
735
730
|
createElementVNode("path", {
|
|
736
731
|
d: ICON_PATHS.close,
|
|
737
732
|
fill: "currentColor"
|
|
738
|
-
}, null, 8, _hoisted_8$
|
|
733
|
+
}, null, 8, _hoisted_8$4)
|
|
739
734
|
]))
|
|
740
|
-
], 8, _hoisted_6$
|
|
741
|
-
], 10, _hoisted_2$
|
|
735
|
+
], 8, _hoisted_6$d)
|
|
736
|
+
], 10, _hoisted_2$w);
|
|
742
737
|
}), 128))
|
|
743
738
|
]),
|
|
744
739
|
_: 1
|
|
@@ -748,7 +743,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
748
743
|
};
|
|
749
744
|
}
|
|
750
745
|
});
|
|
751
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
746
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-58e54e0c"]]);
|
|
752
747
|
const useLoadingStore = defineStore("loading", () => {
|
|
753
748
|
const count = ref(0);
|
|
754
749
|
const loading = computed(() => count.value > 0);
|
|
@@ -768,14 +763,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
768
763
|
}
|
|
769
764
|
return { loading, count, start, stop, withLoading };
|
|
770
765
|
});
|
|
771
|
-
const _hoisted_1$
|
|
766
|
+
const _hoisted_1$z = {
|
|
772
767
|
key: 0,
|
|
773
768
|
class: "loading-overlay",
|
|
774
769
|
role: "status",
|
|
775
770
|
"aria-live": "polite",
|
|
776
771
|
"aria-label": "로딩 중"
|
|
777
772
|
};
|
|
778
|
-
const _sfc_main$
|
|
773
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
779
774
|
__name: "AppLoadingOverlay",
|
|
780
775
|
setup(__props) {
|
|
781
776
|
const loadingStore = useLoadingStore();
|
|
@@ -783,7 +778,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
783
778
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
784
779
|
createVNode(Transition, { name: "fade" }, {
|
|
785
780
|
default: withCtx(() => [
|
|
786
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
781
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$z, [..._cache[0] || (_cache[0] = [
|
|
787
782
|
createElementVNode("div", {
|
|
788
783
|
class: "loading-spinner",
|
|
789
784
|
"aria-hidden": "true"
|
|
@@ -796,7 +791,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
796
791
|
};
|
|
797
792
|
}
|
|
798
793
|
});
|
|
799
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
794
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
800
795
|
const useConfirmStore = defineStore("confirm", () => {
|
|
801
796
|
const open = ref(false);
|
|
802
797
|
const title = ref("확인");
|
|
@@ -844,34 +839,34 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
844
839
|
resolve
|
|
845
840
|
};
|
|
846
841
|
});
|
|
847
|
-
const _hoisted_1$
|
|
842
|
+
const _hoisted_1$y = {
|
|
848
843
|
key: 0,
|
|
849
844
|
class: "app-confirm-backdrop"
|
|
850
845
|
};
|
|
851
|
-
const _hoisted_2$
|
|
846
|
+
const _hoisted_2$v = {
|
|
852
847
|
class: "app-confirm",
|
|
853
848
|
role: "dialog",
|
|
854
849
|
"aria-modal": "true"
|
|
855
850
|
};
|
|
856
|
-
const _hoisted_3$
|
|
857
|
-
const _hoisted_4$
|
|
858
|
-
const _hoisted_5$
|
|
859
|
-
const _hoisted_6$
|
|
860
|
-
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 = {
|
|
861
856
|
key: 0,
|
|
862
857
|
class: "app-confirm__require"
|
|
863
858
|
};
|
|
864
|
-
const _hoisted_8$
|
|
865
|
-
const _hoisted_9$
|
|
859
|
+
const _hoisted_8$3 = { class: "app-confirm__require-label" };
|
|
860
|
+
const _hoisted_9$2 = { class: "app-confirm__actions" };
|
|
866
861
|
const _hoisted_10$1 = ["disabled"];
|
|
867
|
-
const _sfc_main$
|
|
862
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
868
863
|
__name: "AppConfirmModal",
|
|
869
864
|
setup(__props) {
|
|
870
865
|
const store = useConfirmStore();
|
|
871
866
|
const requireInput = useTemplateRef("requireInput");
|
|
872
|
-
function onKeydown(
|
|
873
|
-
if (
|
|
874
|
-
|
|
867
|
+
function onKeydown(e3) {
|
|
868
|
+
if (e3.key !== "Escape" || !store.open) return;
|
|
869
|
+
e3.stopPropagation();
|
|
875
870
|
store.resolve(false);
|
|
876
871
|
}
|
|
877
872
|
onMounted(() => document.addEventListener("keydown", onKeydown));
|
|
@@ -889,15 +884,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
889
884
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
890
885
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
891
886
|
default: withCtx(() => [
|
|
892
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
893
|
-
createElementVNode("div", _hoisted_2$
|
|
894
|
-
createElementVNode("div", _hoisted_3$
|
|
895
|
-
createElementVNode("h3", _hoisted_4$
|
|
887
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
888
|
+
createElementVNode("div", _hoisted_2$v, [
|
|
889
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
890
|
+
createElementVNode("h3", _hoisted_4$k, toDisplayString(unref(store).title), 1)
|
|
896
891
|
]),
|
|
897
|
-
createElementVNode("div", _hoisted_5$
|
|
898
|
-
createElementVNode("p", _hoisted_6$
|
|
899
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
900
|
-
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, [
|
|
901
896
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
902
897
|
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
903
898
|
]),
|
|
@@ -915,7 +910,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
915
910
|
])
|
|
916
911
|
])) : createCommentVNode("", true)
|
|
917
912
|
]),
|
|
918
|
-
createElementVNode("div", _hoisted_9$
|
|
913
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
919
914
|
createElementVNode("button", {
|
|
920
915
|
type: "button",
|
|
921
916
|
class: "app-confirm__btn app-confirm__btn--ghost",
|
|
@@ -937,126 +932,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
937
932
|
};
|
|
938
933
|
}
|
|
939
934
|
});
|
|
940
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
941
|
-
const
|
|
942
|
-
close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
|
|
943
|
-
search: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19 15.5 14zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z",
|
|
944
|
-
check: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",
|
|
945
|
-
check_circle: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z",
|
|
946
|
-
info: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",
|
|
947
|
-
warning: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",
|
|
948
|
-
error: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",
|
|
949
|
-
expand_more: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",
|
|
950
|
-
expand_less: "M12 8.83 16.59 13.41 18 12l-6-6-6 6 1.41 1.41z",
|
|
951
|
-
chevron_left: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z",
|
|
952
|
-
chevron_right: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",
|
|
953
|
-
arrow_back: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z",
|
|
954
|
-
arrow_upward: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z",
|
|
955
|
-
arrow_downward: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z",
|
|
956
|
-
add: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z",
|
|
957
|
-
remove: "M19 13H5v-2h14z",
|
|
958
|
-
edit: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",
|
|
959
|
-
delete: "M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",
|
|
960
|
-
refresh: "M17.65 6.35A8 8 0 1 0 19.73 14h-2.08A6 6 0 1 1 12 6a5.94 5.94 0 0 1 4.22 1.78L13 11h7V4l-2.35 2.35z",
|
|
961
|
-
more_vert: "M12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z",
|
|
962
|
-
download: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
|
|
963
|
-
upload: "M9 16h6v-6h4l-7-7-7 7h4v6zM5 18h14v2H5v-2z",
|
|
964
|
-
filter_list: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",
|
|
965
|
-
settings: "M19.14 12.94a7.07 7.07 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.3 7.3 0 0 0-1.62-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.67 8.86a.5.5 0 0 0 .12.62l2.03 1.58a7.07 7.07 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.62l1.92 3.32c.12.22.38.3.6.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.04.24.25.42.5.42h3.84c.25 0 .46-.18.5-.42l.36-2.54c.59-.24 1.12-.56 1.62-.94l2.39.96c.22.08.48 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.03-1.58zM12 15.6A3.6 3.6 0 1 1 15.6 12 3.6 3.6 0 0 1 12 15.6z",
|
|
966
|
-
person: "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",
|
|
967
|
-
people: "M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z",
|
|
968
|
-
logout: "M17 7l-1.41 1.41L17.17 10H9v2h8.17l-1.58 1.59L17 15l4-4-4-4zM5 5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7v-2H5V5z",
|
|
969
|
-
menu: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",
|
|
970
|
-
visibility: "M12 4.5A11.83 11.83 0 0 0 1 12a11.83 11.83 0 0 0 22 0 11.83 11.83 0 0 0-11-7.5zm0 12.5a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z",
|
|
971
|
-
visibility_off: "M12 6.5a5 5 0 0 1 5 5c0 .51-.08 1-.23 1.45l2.92 2.92A11.8 11.8 0 0 0 23 11.5 11.83 11.83 0 0 0 8.36 4.9l2.16 2.16c.46-.35.99-.56 1.48-.56zM2.71 3.16 1.29 4.58l2.44 2.44A11.75 11.75 0 0 0 1 11.5a11.83 11.83 0 0 0 15.23 6.7l3.19 3.19 1.41-1.41L2.71 3.16zM12 16.5a5 5 0 0 1-5-5c0-.69.15-1.34.4-1.93l1.57 1.57c-.03.12-.05.24-.05.36a3 3 0 0 0 3 3c.12 0 .24-.02.36-.05l1.57 1.57c-.59.25-1.24.4-1.93.4z",
|
|
972
|
-
content_copy: "M16 1H4a2 2 0 0 0-2 2v14h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z",
|
|
973
|
-
open_in_new: "M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z",
|
|
974
|
-
help: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 17h-2v-2h2v2zm2.07-7.75-.9.92A3.4 3.4 0 0 0 13 14h-2v-.5a4 4 0 0 1 1.17-2.83l1.24-1.26A1.96 1.96 0 0 0 12 6a2 2 0 0 0-2 2H8a4 4 0 1 1 8 0 3.2 3.2 0 0 1-.93 2.25z",
|
|
975
|
-
lock: "M18 8h-1V6a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zM9 6a3 3 0 0 1 6 0v2H9V6zm3 12a2 2 0 1 1 2-2 2 2 0 0 1-2 2z",
|
|
976
|
-
mail: "M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z",
|
|
977
|
-
calendar_today: "M19 3h-1V1h-2v2H8V1H6v2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 18H5V9h14v12z",
|
|
978
|
-
save: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4zm-5 16a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm3-10H5V5h10v4z"
|
|
979
|
-
};
|
|
980
|
-
const _hoisted_1$r = ["role", "aria-label", "aria-hidden"];
|
|
981
|
-
const _hoisted_2$o = { key: 0 };
|
|
982
|
-
const _hoisted_3$j = ["d"];
|
|
983
|
-
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
984
|
-
__name: "LfIcon",
|
|
985
|
-
props: {
|
|
986
|
-
name: {},
|
|
987
|
-
path: {},
|
|
988
|
-
size: { default: "1em" },
|
|
989
|
-
label: {}
|
|
990
|
-
},
|
|
991
|
-
setup(__props) {
|
|
992
|
-
const props = __props;
|
|
993
|
-
const d2 = computed(() => props.path ?? (props.name ? LF_ICONS[props.name] : void 0));
|
|
994
|
-
const resolvedSize = computed(
|
|
995
|
-
() => typeof props.size === "number" ? `${props.size}px` : props.size
|
|
996
|
-
);
|
|
997
|
-
return (_ctx, _cache) => {
|
|
998
|
-
return openBlock(), createElementBlock("svg", {
|
|
999
|
-
class: "lf-icon",
|
|
1000
|
-
viewBox: "0 0 24 24",
|
|
1001
|
-
style: normalizeStyle({ width: resolvedSize.value, height: resolvedSize.value }),
|
|
1002
|
-
role: __props.label ? "img" : void 0,
|
|
1003
|
-
"aria-label": __props.label || void 0,
|
|
1004
|
-
"aria-hidden": __props.label ? void 0 : "true"
|
|
1005
|
-
}, [
|
|
1006
|
-
__props.label ? (openBlock(), createElementBlock("title", _hoisted_2$o, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
1007
|
-
d2.value ? (openBlock(), createElementBlock("path", {
|
|
1008
|
-
key: 1,
|
|
1009
|
-
d: d2.value,
|
|
1010
|
-
fill: "currentColor"
|
|
1011
|
-
}, null, 8, _hoisted_3$j)) : createCommentVNode("", true)
|
|
1012
|
-
], 12, _hoisted_1$r);
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-b70b3868"]]);
|
|
1017
|
-
const _hoisted_1$q = ["role", "aria-label", "aria-hidden"];
|
|
1018
|
-
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1019
|
-
__name: "LfSpinner",
|
|
1020
|
-
props: {
|
|
1021
|
-
size: { default: "1.25rem" },
|
|
1022
|
-
label: {}
|
|
1023
|
-
},
|
|
1024
|
-
setup(__props) {
|
|
1025
|
-
const props = __props;
|
|
1026
|
-
const resolvedSize = computed(
|
|
1027
|
-
() => typeof props.size === "number" ? `${props.size}px` : props.size
|
|
1028
|
-
);
|
|
1029
|
-
return (_ctx, _cache) => {
|
|
1030
|
-
return openBlock(), createElementBlock("svg", {
|
|
1031
|
-
class: "lf-spinner",
|
|
1032
|
-
viewBox: "0 0 24 24",
|
|
1033
|
-
style: normalizeStyle({ width: resolvedSize.value, height: resolvedSize.value }),
|
|
1034
|
-
role: __props.label ? "status" : void 0,
|
|
1035
|
-
"aria-label": __props.label || void 0,
|
|
1036
|
-
"aria-hidden": __props.label ? void 0 : "true"
|
|
1037
|
-
}, [..._cache[0] || (_cache[0] = [
|
|
1038
|
-
createElementVNode("circle", {
|
|
1039
|
-
class: "lf-spinner__track",
|
|
1040
|
-
cx: "12",
|
|
1041
|
-
cy: "12",
|
|
1042
|
-
r: "9"
|
|
1043
|
-
}, null, -1),
|
|
1044
|
-
createElementVNode("circle", {
|
|
1045
|
-
class: "lf-spinner__head",
|
|
1046
|
-
cx: "12",
|
|
1047
|
-
cy: "12",
|
|
1048
|
-
r: "9"
|
|
1049
|
-
}, null, -1)
|
|
1050
|
-
])], 12, _hoisted_1$q);
|
|
1051
|
-
};
|
|
1052
|
-
}
|
|
1053
|
-
});
|
|
1054
|
-
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-4aedf6b0"]]);
|
|
1055
|
-
const _hoisted_1$p = {
|
|
935
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-561536f9"]]);
|
|
936
|
+
const _hoisted_1$x = {
|
|
1056
937
|
key: 2,
|
|
1057
938
|
class: "lf-btn__label"
|
|
1058
939
|
};
|
|
1059
|
-
const _sfc_main$
|
|
940
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1060
941
|
__name: "LfButton",
|
|
1061
942
|
props: {
|
|
1062
943
|
variant: { default: "ghost" },
|
|
@@ -1093,7 +974,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1093
974
|
name: __props.icon,
|
|
1094
975
|
path: __props.iconPath
|
|
1095
976
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
1096
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
977
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$x, [
|
|
1097
978
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1098
979
|
])) : createCommentVNode("", true),
|
|
1099
980
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -1106,118 +987,19 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1106
987
|
};
|
|
1107
988
|
}
|
|
1108
989
|
});
|
|
1109
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1112
|
-
props: {
|
|
1113
|
-
icon: {},
|
|
1114
|
-
iconPath: {},
|
|
1115
|
-
label: {},
|
|
1116
|
-
size: { default: "md" },
|
|
1117
|
-
accent: { type: Boolean },
|
|
1118
|
-
danger: { type: Boolean },
|
|
1119
|
-
disabled: { type: Boolean },
|
|
1120
|
-
loading: { type: Boolean },
|
|
1121
|
-
href: {},
|
|
1122
|
-
external: { type: Boolean }
|
|
1123
|
-
},
|
|
1124
|
-
setup(__props) {
|
|
1125
|
-
const props = __props;
|
|
1126
|
-
const iconSize = computed(() => props.size === "sm" ? "1.125rem" : "1.375rem");
|
|
1127
|
-
return (_ctx, _cache) => {
|
|
1128
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.href ? "a" : "button"), {
|
|
1129
|
-
class: normalizeClass(["lf-icon-btn", [`lf-icon-btn--${__props.size}`, { "lf-icon-btn--accent": __props.accent, "lf-icon-btn--danger": __props.danger }]]),
|
|
1130
|
-
type: __props.href ? void 0 : "button",
|
|
1131
|
-
href: __props.href,
|
|
1132
|
-
target: __props.href && __props.external ? "_blank" : void 0,
|
|
1133
|
-
rel: __props.href && __props.external ? "noopener noreferrer" : void 0,
|
|
1134
|
-
disabled: __props.href ? void 0 : __props.disabled || __props.loading,
|
|
1135
|
-
"aria-busy": __props.loading ? "true" : void 0,
|
|
1136
|
-
"aria-label": __props.label,
|
|
1137
|
-
title: __props.label
|
|
1138
|
-
}, {
|
|
1139
|
-
default: withCtx(() => [
|
|
1140
|
-
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
1141
|
-
key: 0,
|
|
1142
|
-
size: iconSize.value
|
|
1143
|
-
}, null, 8, ["size"])) : (openBlock(), createBlock(LfIcon, {
|
|
1144
|
-
key: 1,
|
|
1145
|
-
name: __props.icon,
|
|
1146
|
-
path: __props.iconPath,
|
|
1147
|
-
size: iconSize.value
|
|
1148
|
-
}, null, 8, ["name", "path", "size"]))
|
|
1149
|
-
]),
|
|
1150
|
-
_: 1
|
|
1151
|
-
}, 8, ["class", "type", "href", "target", "rel", "disabled", "aria-busy", "aria-label", "title"]);
|
|
1152
|
-
};
|
|
1153
|
-
}
|
|
1154
|
-
});
|
|
1155
|
-
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-6af12755"]]);
|
|
1156
|
-
const _hoisted_1$o = ["for"];
|
|
1157
|
-
const _hoisted_2$n = {
|
|
1158
|
-
key: 0,
|
|
1159
|
-
class: "lf-field__required",
|
|
1160
|
-
"aria-hidden": "true"
|
|
1161
|
-
};
|
|
1162
|
-
const _hoisted_3$i = {
|
|
1163
|
-
key: 1,
|
|
1164
|
-
class: "lf-field__error",
|
|
1165
|
-
role: "alert"
|
|
1166
|
-
};
|
|
1167
|
-
const _hoisted_4$g = {
|
|
1168
|
-
key: 2,
|
|
1169
|
-
class: "lf-field__hint"
|
|
1170
|
-
};
|
|
1171
|
-
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1172
|
-
__name: "LfField",
|
|
1173
|
-
props: {
|
|
1174
|
-
label: {},
|
|
1175
|
-
hint: {},
|
|
1176
|
-
error: {},
|
|
1177
|
-
required: { type: Boolean },
|
|
1178
|
-
htmlFor: {}
|
|
1179
|
-
},
|
|
1180
|
-
setup(__props) {
|
|
1181
|
-
return (_ctx, _cache) => {
|
|
1182
|
-
return openBlock(), createElementBlock("div", {
|
|
1183
|
-
class: normalizeClass(["lf-field", { "lf-field--error": !!__props.error }])
|
|
1184
|
-
}, [
|
|
1185
|
-
__props.label ? (openBlock(), createElementBlock("label", {
|
|
1186
|
-
key: 0,
|
|
1187
|
-
class: "lf-field__label",
|
|
1188
|
-
for: __props.htmlFor
|
|
1189
|
-
}, [
|
|
1190
|
-
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1191
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$n, "*")) : createCommentVNode("", true)
|
|
1192
|
-
], 8, _hoisted_1$o)) : createCommentVNode("", true),
|
|
1193
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1194
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$i, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$g, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1195
|
-
], 2);
|
|
1196
|
-
};
|
|
1197
|
-
}
|
|
1198
|
-
});
|
|
1199
|
-
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-38509e4d"]]);
|
|
1200
|
-
function useSplitAttrs() {
|
|
1201
|
-
const attrs = useAttrs();
|
|
1202
|
-
const rootAttrs = computed(() => ({ class: attrs.class, style: attrs.style }));
|
|
1203
|
-
const controlAttrs = computed(() => {
|
|
1204
|
-
const { class: _class, style: _style, ...rest } = attrs;
|
|
1205
|
-
return rest;
|
|
1206
|
-
});
|
|
1207
|
-
return { rootAttrs, controlAttrs };
|
|
1208
|
-
}
|
|
1209
|
-
const _hoisted_1$n = { class: "lf-control-wrap" };
|
|
1210
|
-
const _hoisted_2$m = {
|
|
990
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-0d2e2b97"]]);
|
|
991
|
+
const _hoisted_1$w = { class: "lf-control-wrap" };
|
|
992
|
+
const _hoisted_2$u = {
|
|
1211
993
|
key: 0,
|
|
1212
994
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
1213
995
|
};
|
|
1214
|
-
const _hoisted_3$
|
|
1215
|
-
const _hoisted_4$
|
|
996
|
+
const _hoisted_3$o = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
997
|
+
const _hoisted_4$j = {
|
|
1216
998
|
key: 1,
|
|
1217
999
|
class: "lf-control-wrap__suffix"
|
|
1218
1000
|
};
|
|
1219
|
-
const _hoisted_5$
|
|
1220
|
-
const _sfc_main$
|
|
1001
|
+
const _hoisted_5$g = ["aria-label"];
|
|
1002
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1221
1003
|
...{ inheritAttrs: false },
|
|
1222
1004
|
__name: "LfTextField",
|
|
1223
1005
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1269,8 +1051,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1269
1051
|
"html-for": unref(inputId)
|
|
1270
1052
|
}), {
|
|
1271
1053
|
default: withCtx(() => [
|
|
1272
|
-
createElementVNode("div", _hoisted_1$
|
|
1273
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1054
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
1055
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$u, [
|
|
1274
1056
|
createVNode(LfIcon, {
|
|
1275
1057
|
name: __props.icon,
|
|
1276
1058
|
path: __props.iconPath,
|
|
@@ -1291,10 +1073,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1291
1073
|
readonly: __props.readonly,
|
|
1292
1074
|
required: __props.required,
|
|
1293
1075
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1294
|
-
}), null, 16, _hoisted_3$
|
|
1076
|
+
}), null, 16, _hoisted_3$o), [
|
|
1295
1077
|
[vModelDynamic, unref(model)]
|
|
1296
1078
|
]),
|
|
1297
|
-
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1079
|
+
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1298
1080
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1299
1081
|
key: 2,
|
|
1300
1082
|
type: "button",
|
|
@@ -1306,7 +1088,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1306
1088
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1307
1089
|
size: "1.125rem"
|
|
1308
1090
|
}, null, 8, ["name"])
|
|
1309
|
-
], 8, _hoisted_5$
|
|
1091
|
+
], 8, _hoisted_5$g)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1310
1092
|
key: 3,
|
|
1311
1093
|
type: "button",
|
|
1312
1094
|
class: "lf-control-action",
|
|
@@ -1325,13 +1107,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1325
1107
|
};
|
|
1326
1108
|
}
|
|
1327
1109
|
});
|
|
1328
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1329
|
-
const _hoisted_1$
|
|
1330
|
-
const _hoisted_2$
|
|
1110
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e113043f"]]);
|
|
1111
|
+
const _hoisted_1$v = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1112
|
+
const _hoisted_2$t = {
|
|
1331
1113
|
key: 0,
|
|
1332
1114
|
class: "lf-textarea__counter"
|
|
1333
1115
|
};
|
|
1334
|
-
const _sfc_main$
|
|
1116
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1335
1117
|
...{ inheritAttrs: false },
|
|
1336
1118
|
__name: "LfTextarea",
|
|
1337
1119
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1395,117 +1177,32 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1395
1177
|
maxlength: __props.maxlength,
|
|
1396
1178
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1397
1179
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1398
|
-
}), null, 16, _hoisted_1$
|
|
1180
|
+
}), null, 16, _hoisted_1$v), [
|
|
1399
1181
|
[vModelText, model.value]
|
|
1400
1182
|
]),
|
|
1401
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1402
|
-
]),
|
|
1403
|
-
_: 1
|
|
1404
|
-
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1405
|
-
};
|
|
1406
|
-
}
|
|
1407
|
-
});
|
|
1408
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-81fbed25"]]);
|
|
1409
|
-
const _hoisted_1$l = { class: "lf-control-wrap" };
|
|
1410
|
-
const _hoisted_2$k = ["id", "disabled", "required", "aria-invalid"];
|
|
1411
|
-
const _hoisted_3$g = ["disabled"];
|
|
1412
|
-
const _hoisted_4$e = ["value", "disabled"];
|
|
1413
|
-
const _hoisted_5$b = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
|
|
1414
|
-
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1415
|
-
...{ inheritAttrs: false },
|
|
1416
|
-
__name: "LfSelect",
|
|
1417
|
-
props: /* @__PURE__ */ mergeModels({
|
|
1418
|
-
options: { default: () => [] },
|
|
1419
|
-
label: {},
|
|
1420
|
-
hint: {},
|
|
1421
|
-
error: {},
|
|
1422
|
-
required: { type: Boolean },
|
|
1423
|
-
placeholder: {},
|
|
1424
|
-
clearable: { type: Boolean },
|
|
1425
|
-
disabled: { type: Boolean },
|
|
1426
|
-
size: { default: "md" }
|
|
1427
|
-
}, {
|
|
1428
|
-
"modelValue": {
|
|
1429
|
-
required: true
|
|
1430
|
-
},
|
|
1431
|
-
"modelModifiers": {}
|
|
1432
|
-
}),
|
|
1433
|
-
emits: ["update:modelValue"],
|
|
1434
|
-
setup(__props) {
|
|
1435
|
-
const props = __props;
|
|
1436
|
-
const [model, modifiers] = useModel(__props, "modelValue", {
|
|
1437
|
-
set(value) {
|
|
1438
|
-
if (!modifiers.number || value === "" || typeof value === "number") return value;
|
|
1439
|
-
const n = parseFloat(String(value));
|
|
1440
|
-
return Number.isNaN(n) ? value : n;
|
|
1441
|
-
}
|
|
1442
|
-
});
|
|
1443
|
-
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
1444
|
-
const inputId = useId();
|
|
1445
|
-
const normalized = computed(
|
|
1446
|
-
() => props.options.map((o) => typeof o === "string" || typeof o === "number" ? { value: o, label: String(o) } : o)
|
|
1447
|
-
);
|
|
1448
|
-
return (_ctx, _cache) => {
|
|
1449
|
-
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
1450
|
-
label: __props.label,
|
|
1451
|
-
hint: __props.hint,
|
|
1452
|
-
error: __props.error,
|
|
1453
|
-
required: __props.required,
|
|
1454
|
-
"html-for": unref(inputId)
|
|
1455
|
-
}), {
|
|
1456
|
-
default: withCtx(() => [
|
|
1457
|
-
createElementVNode("div", _hoisted_1$l, [
|
|
1458
|
-
withDirectives(createElementVNode("select", mergeProps({ id: unref(inputId) }, unref(controlAttrs), {
|
|
1459
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
1460
|
-
class: ["lf-control lf-select lf-control--has-right", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }],
|
|
1461
|
-
disabled: __props.disabled,
|
|
1462
|
-
required: __props.required,
|
|
1463
|
-
"aria-invalid": __props.error ? "true" : void 0
|
|
1464
|
-
}), [
|
|
1465
|
-
__props.placeholder ? (openBlock(), createElementBlock("option", {
|
|
1466
|
-
key: 0,
|
|
1467
|
-
value: "",
|
|
1468
|
-
disabled: !__props.clearable
|
|
1469
|
-
}, toDisplayString(__props.placeholder), 9, _hoisted_3$g)) : createCommentVNode("", true),
|
|
1470
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1471
|
-
return openBlock(), createElementBlock("option", {
|
|
1472
|
-
key: String(opt.value),
|
|
1473
|
-
value: opt.value,
|
|
1474
|
-
disabled: opt.disabled
|
|
1475
|
-
}, toDisplayString(opt.label), 9, _hoisted_4$e);
|
|
1476
|
-
}), 128))
|
|
1477
|
-
], 16, _hoisted_2$k), [
|
|
1478
|
-
[vModelSelect, unref(model)]
|
|
1479
|
-
]),
|
|
1480
|
-
createElementVNode("span", _hoisted_5$b, [
|
|
1481
|
-
createVNode(LfIcon, {
|
|
1482
|
-
name: "expand_more",
|
|
1483
|
-
size: "1.125rem"
|
|
1484
|
-
})
|
|
1485
|
-
])
|
|
1486
|
-
])
|
|
1183
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$t, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1487
1184
|
]),
|
|
1488
1185
|
_: 1
|
|
1489
1186
|
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1490
1187
|
};
|
|
1491
1188
|
}
|
|
1492
1189
|
});
|
|
1493
|
-
const
|
|
1494
|
-
const _hoisted_1$
|
|
1495
|
-
const _hoisted_2$
|
|
1190
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-81fbed25"]]);
|
|
1191
|
+
const _hoisted_1$u = ["disabled", "value"];
|
|
1192
|
+
const _hoisted_2$s = {
|
|
1496
1193
|
class: "lf-check__box",
|
|
1497
1194
|
"aria-hidden": "true"
|
|
1498
1195
|
};
|
|
1499
|
-
const _hoisted_3$
|
|
1196
|
+
const _hoisted_3$n = {
|
|
1500
1197
|
key: 0,
|
|
1501
1198
|
class: "lf-check__text"
|
|
1502
1199
|
};
|
|
1503
|
-
const _hoisted_4$
|
|
1504
|
-
const _hoisted_5$
|
|
1200
|
+
const _hoisted_4$i = { class: "lf-check__label" };
|
|
1201
|
+
const _hoisted_5$f = {
|
|
1505
1202
|
key: 0,
|
|
1506
1203
|
class: "lf-check__desc"
|
|
1507
1204
|
};
|
|
1508
|
-
const _sfc_main$
|
|
1205
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1509
1206
|
...{ inheritAttrs: false },
|
|
1510
1207
|
__name: "LfCheckbox",
|
|
1511
1208
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1530,39 +1227,39 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1530
1227
|
type: "checkbox",
|
|
1531
1228
|
disabled: __props.disabled,
|
|
1532
1229
|
value: __props.value
|
|
1533
|
-
}), null, 16, _hoisted_1$
|
|
1230
|
+
}), null, 16, _hoisted_1$u), [
|
|
1534
1231
|
[vModelCheckbox, model.value]
|
|
1535
1232
|
]),
|
|
1536
|
-
createElementVNode("span", _hoisted_2$
|
|
1233
|
+
createElementVNode("span", _hoisted_2$s, [
|
|
1537
1234
|
createVNode(LfIcon, {
|
|
1538
1235
|
name: "check",
|
|
1539
1236
|
size: "0.875rem"
|
|
1540
1237
|
})
|
|
1541
1238
|
]),
|
|
1542
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1543
|
-
createElementVNode("span", _hoisted_4$
|
|
1239
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$n, [
|
|
1240
|
+
createElementVNode("span", _hoisted_4$i, [
|
|
1544
1241
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1545
1242
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1546
1243
|
], true)
|
|
1547
1244
|
]),
|
|
1548
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1245
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$f, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1549
1246
|
])) : createCommentVNode("", true)
|
|
1550
1247
|
], 2);
|
|
1551
1248
|
};
|
|
1552
1249
|
}
|
|
1553
1250
|
});
|
|
1554
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1555
|
-
const _hoisted_1$
|
|
1251
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a86332f0"]]);
|
|
1252
|
+
const _hoisted_1$t = {
|
|
1556
1253
|
key: 0,
|
|
1557
1254
|
class: "lf-switch__text"
|
|
1558
1255
|
};
|
|
1559
|
-
const _hoisted_2$
|
|
1560
|
-
const _hoisted_3$
|
|
1256
|
+
const _hoisted_2$r = { class: "lf-switch__label" };
|
|
1257
|
+
const _hoisted_3$m = {
|
|
1561
1258
|
key: 0,
|
|
1562
1259
|
class: "lf-switch__desc"
|
|
1563
1260
|
};
|
|
1564
|
-
const _hoisted_4$
|
|
1565
|
-
const _sfc_main$
|
|
1261
|
+
const _hoisted_4$h = ["disabled"];
|
|
1262
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1566
1263
|
...{ inheritAttrs: false },
|
|
1567
1264
|
__name: "LfSwitch",
|
|
1568
1265
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1581,13 +1278,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1581
1278
|
return openBlock(), createElementBlock("label", {
|
|
1582
1279
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1583
1280
|
}, [
|
|
1584
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1585
|
-
createElementVNode("span", _hoisted_2$
|
|
1281
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$t, [
|
|
1282
|
+
createElementVNode("span", _hoisted_2$r, [
|
|
1586
1283
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1587
1284
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1588
1285
|
], true)
|
|
1589
1286
|
]),
|
|
1590
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1287
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1591
1288
|
])) : createCommentVNode("", true),
|
|
1592
1289
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1593
1290
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1595,7 +1292,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1595
1292
|
type: "checkbox",
|
|
1596
1293
|
role: "switch",
|
|
1597
1294
|
disabled: __props.disabled
|
|
1598
|
-
}), null, 16, _hoisted_4$
|
|
1295
|
+
}), null, 16, _hoisted_4$h), [
|
|
1599
1296
|
[vModelCheckbox, model.value]
|
|
1600
1297
|
]),
|
|
1601
1298
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1608,33 +1305,33 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1608
1305
|
};
|
|
1609
1306
|
}
|
|
1610
1307
|
});
|
|
1611
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1612
|
-
const _hoisted_1$
|
|
1308
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1309
|
+
const _hoisted_1$s = {
|
|
1613
1310
|
key: 0,
|
|
1614
1311
|
class: "lf-radio-group__legend"
|
|
1615
1312
|
};
|
|
1616
|
-
const _hoisted_2$
|
|
1313
|
+
const _hoisted_2$q = {
|
|
1617
1314
|
key: 0,
|
|
1618
1315
|
class: "lf-radio-group__required",
|
|
1619
1316
|
"aria-hidden": "true"
|
|
1620
1317
|
};
|
|
1621
|
-
const _hoisted_3$
|
|
1622
|
-
const _hoisted_4$
|
|
1623
|
-
const _hoisted_5$
|
|
1624
|
-
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 = {
|
|
1625
1322
|
key: 0,
|
|
1626
1323
|
class: "lf-radio__desc"
|
|
1627
1324
|
};
|
|
1628
|
-
const _hoisted_7$
|
|
1325
|
+
const _hoisted_7$a = {
|
|
1629
1326
|
key: 1,
|
|
1630
1327
|
class: "lf-radio-group__error",
|
|
1631
1328
|
role: "alert"
|
|
1632
1329
|
};
|
|
1633
|
-
const _hoisted_8$
|
|
1330
|
+
const _hoisted_8$2 = {
|
|
1634
1331
|
key: 2,
|
|
1635
1332
|
class: "lf-radio-group__hint"
|
|
1636
1333
|
};
|
|
1637
|
-
const _sfc_main$
|
|
1334
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1638
1335
|
__name: "LfRadioGroup",
|
|
1639
1336
|
props: /* @__PURE__ */ mergeModels({
|
|
1640
1337
|
options: { default: () => [] },
|
|
@@ -1660,9 +1357,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1660
1357
|
return openBlock(), createElementBlock("fieldset", {
|
|
1661
1358
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1662
1359
|
}, [
|
|
1663
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1360
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$s, [
|
|
1664
1361
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1665
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1362
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$q, "*")) : createCommentVNode("", true)
|
|
1666
1363
|
])) : createCommentVNode("", true),
|
|
1667
1364
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1668
1365
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1676,42 +1373,42 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1676
1373
|
name: unref(groupName),
|
|
1677
1374
|
value: opt.value,
|
|
1678
1375
|
disabled: __props.disabled || opt.disabled
|
|
1679
|
-
}, null, 8, _hoisted_3$
|
|
1376
|
+
}, null, 8, _hoisted_3$l), [
|
|
1680
1377
|
[vModelRadio, model.value]
|
|
1681
1378
|
]),
|
|
1682
1379
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1683
1380
|
class: "lf-radio__dot",
|
|
1684
1381
|
"aria-hidden": "true"
|
|
1685
1382
|
}, null, -1)),
|
|
1686
|
-
createElementVNode("span", _hoisted_4$
|
|
1687
|
-
createElementVNode("span", _hoisted_5$
|
|
1688
|
-
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)
|
|
1689
1386
|
])
|
|
1690
1387
|
], 2);
|
|
1691
1388
|
}), 128)),
|
|
1692
|
-
__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)
|
|
1693
1390
|
], 2);
|
|
1694
1391
|
};
|
|
1695
1392
|
}
|
|
1696
1393
|
});
|
|
1697
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1698
|
-
const _hoisted_1$
|
|
1699
|
-
const _hoisted_2$
|
|
1394
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-cffad147"]]);
|
|
1395
|
+
const _hoisted_1$r = ["aria-labelledby", "aria-label"];
|
|
1396
|
+
const _hoisted_2$p = {
|
|
1700
1397
|
key: 0,
|
|
1701
1398
|
class: "lf-modal__header"
|
|
1702
1399
|
};
|
|
1703
|
-
const _hoisted_3$
|
|
1704
|
-
const _hoisted_4$
|
|
1705
|
-
const _hoisted_5$
|
|
1400
|
+
const _hoisted_3$k = { class: "lf-modal__heading" };
|
|
1401
|
+
const _hoisted_4$f = ["id"];
|
|
1402
|
+
const _hoisted_5$d = {
|
|
1706
1403
|
key: 0,
|
|
1707
1404
|
class: "lf-modal__subtitle"
|
|
1708
1405
|
};
|
|
1709
|
-
const _hoisted_6$
|
|
1710
|
-
const _hoisted_7$
|
|
1406
|
+
const _hoisted_6$a = { class: "lf-modal__body" };
|
|
1407
|
+
const _hoisted_7$9 = {
|
|
1711
1408
|
key: 1,
|
|
1712
1409
|
class: "lf-modal__footer"
|
|
1713
1410
|
};
|
|
1714
|
-
const _sfc_main$
|
|
1411
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1715
1412
|
__name: "LfModal",
|
|
1716
1413
|
props: /* @__PURE__ */ mergeModels({
|
|
1717
1414
|
title: {},
|
|
@@ -1748,13 +1445,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1748
1445
|
downOnScrim = false;
|
|
1749
1446
|
if (props.closeOnScrim) close("scrim");
|
|
1750
1447
|
}
|
|
1751
|
-
function onKeydown(
|
|
1752
|
-
if (
|
|
1753
|
-
|
|
1448
|
+
function onKeydown(e3) {
|
|
1449
|
+
if (e3.key === "Escape" && props.closeOnEsc) {
|
|
1450
|
+
e3.stopPropagation();
|
|
1754
1451
|
close("esc");
|
|
1755
1452
|
return;
|
|
1756
1453
|
}
|
|
1757
|
-
if (
|
|
1454
|
+
if (e3.key !== "Tab" || !panel.value) return;
|
|
1758
1455
|
const focusables = panel.value.querySelectorAll(
|
|
1759
1456
|
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
1760
1457
|
);
|
|
@@ -1762,11 +1459,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1762
1459
|
const first = focusables[0];
|
|
1763
1460
|
const last = focusables[focusables.length - 1];
|
|
1764
1461
|
const active = document.activeElement;
|
|
1765
|
-
if (
|
|
1766
|
-
|
|
1462
|
+
if (e3.shiftKey && (active === first || active === panel.value)) {
|
|
1463
|
+
e3.preventDefault();
|
|
1767
1464
|
last.focus();
|
|
1768
|
-
} else if (!
|
|
1769
|
-
|
|
1465
|
+
} else if (!e3.shiftKey && active === last) {
|
|
1466
|
+
e3.preventDefault();
|
|
1770
1467
|
first.focus();
|
|
1771
1468
|
}
|
|
1772
1469
|
}
|
|
@@ -1823,14 +1520,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1823
1520
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1824
1521
|
onKeydown
|
|
1825
1522
|
}, [
|
|
1826
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1523
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$p, [
|
|
1827
1524
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1828
|
-
createElementVNode("div", _hoisted_3$
|
|
1525
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
1829
1526
|
createElementVNode("h2", {
|
|
1830
1527
|
id: unref(titleId),
|
|
1831
1528
|
class: "lf-modal__title"
|
|
1832
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1833
|
-
__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)
|
|
1834
1531
|
])
|
|
1835
1532
|
], true),
|
|
1836
1533
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1841,13 +1538,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1841
1538
|
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
1842
1539
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1843
1540
|
])) : createCommentVNode("", true),
|
|
1844
|
-
createElementVNode("div", _hoisted_6$
|
|
1541
|
+
createElementVNode("div", _hoisted_6$a, [
|
|
1845
1542
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1846
1543
|
]),
|
|
1847
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1544
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$9, [
|
|
1848
1545
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1849
1546
|
])) : createCommentVNode("", true)
|
|
1850
|
-
], 42, _hoisted_1$
|
|
1547
|
+
], 42, _hoisted_1$r)
|
|
1851
1548
|
], 32)) : createCommentVNode("", true)
|
|
1852
1549
|
]),
|
|
1853
1550
|
_: 3
|
|
@@ -1856,30 +1553,30 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1856
1553
|
};
|
|
1857
1554
|
}
|
|
1858
1555
|
});
|
|
1859
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1860
|
-
const _hoisted_1$
|
|
1556
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-da4a649b"]]);
|
|
1557
|
+
const _hoisted_1$q = {
|
|
1861
1558
|
key: 0,
|
|
1862
1559
|
class: "lf-card__head"
|
|
1863
1560
|
};
|
|
1864
|
-
const _hoisted_2$
|
|
1561
|
+
const _hoisted_2$o = {
|
|
1865
1562
|
key: 0,
|
|
1866
1563
|
class: "lf-card__icon"
|
|
1867
1564
|
};
|
|
1868
|
-
const _hoisted_3$
|
|
1869
|
-
const _hoisted_4$
|
|
1565
|
+
const _hoisted_3$j = { class: "lf-card__title" };
|
|
1566
|
+
const _hoisted_4$e = {
|
|
1870
1567
|
key: 1,
|
|
1871
1568
|
class: "lf-card__count"
|
|
1872
1569
|
};
|
|
1873
|
-
const _hoisted_5$
|
|
1570
|
+
const _hoisted_5$c = {
|
|
1874
1571
|
key: 0,
|
|
1875
1572
|
class: "lf-card__actions"
|
|
1876
1573
|
};
|
|
1877
|
-
const _hoisted_6$
|
|
1878
|
-
const _hoisted_7$
|
|
1574
|
+
const _hoisted_6$9 = { class: "lf-card__body" };
|
|
1575
|
+
const _hoisted_7$8 = {
|
|
1879
1576
|
key: 1,
|
|
1880
1577
|
class: "lf-card__foot"
|
|
1881
1578
|
};
|
|
1882
|
-
const _sfc_main$
|
|
1579
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1883
1580
|
__name: "LfCard",
|
|
1884
1581
|
props: {
|
|
1885
1582
|
title: {},
|
|
@@ -1895,9 +1592,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1895
1592
|
return openBlock(), createElementBlock("section", {
|
|
1896
1593
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1897
1594
|
}, [
|
|
1898
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1595
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$q, [
|
|
1899
1596
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1900
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1597
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
1901
1598
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1902
1599
|
createVNode(LfIcon, {
|
|
1903
1600
|
name: __props.icon,
|
|
@@ -1906,45 +1603,45 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1906
1603
|
}, null, 8, ["name", "path"])
|
|
1907
1604
|
], true)
|
|
1908
1605
|
])) : createCommentVNode("", true),
|
|
1909
|
-
createElementVNode("h3", _hoisted_3$
|
|
1910
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1606
|
+
createElementVNode("h3", _hoisted_3$j, toDisplayString(__props.title), 1),
|
|
1607
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$e, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1911
1608
|
], true),
|
|
1912
1609
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1913
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1610
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
1914
1611
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1915
1612
|
])) : createCommentVNode("", true)
|
|
1916
1613
|
])) : createCommentVNode("", true),
|
|
1917
|
-
createElementVNode("div", _hoisted_6$
|
|
1614
|
+
createElementVNode("div", _hoisted_6$9, [
|
|
1918
1615
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1919
1616
|
]),
|
|
1920
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1617
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$8, [
|
|
1921
1618
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1922
1619
|
])) : createCommentVNode("", true)
|
|
1923
1620
|
], 2);
|
|
1924
1621
|
};
|
|
1925
1622
|
}
|
|
1926
1623
|
});
|
|
1927
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1928
|
-
const _hoisted_1$
|
|
1929
|
-
const _hoisted_2$
|
|
1930
|
-
const _hoisted_3$
|
|
1931
|
-
const _hoisted_4$
|
|
1624
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$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 = {
|
|
1932
1629
|
key: 0,
|
|
1933
1630
|
class: "lf-page-header__icon"
|
|
1934
1631
|
};
|
|
1935
|
-
const _hoisted_5$
|
|
1632
|
+
const _hoisted_5$b = {
|
|
1936
1633
|
key: 0,
|
|
1937
1634
|
class: "lf-page-header__count"
|
|
1938
1635
|
};
|
|
1939
|
-
const _hoisted_6$
|
|
1636
|
+
const _hoisted_6$8 = {
|
|
1940
1637
|
key: 0,
|
|
1941
1638
|
class: "lf-page-header__tools"
|
|
1942
1639
|
};
|
|
1943
|
-
const _hoisted_7$
|
|
1640
|
+
const _hoisted_7$7 = {
|
|
1944
1641
|
key: 1,
|
|
1945
1642
|
class: "lf-page-header__desc"
|
|
1946
1643
|
};
|
|
1947
|
-
const _sfc_main$
|
|
1644
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1948
1645
|
__name: "LfPageHeader",
|
|
1949
1646
|
props: {
|
|
1950
1647
|
title: {},
|
|
@@ -1957,10 +1654,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1957
1654
|
const slots = useSlots();
|
|
1958
1655
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1959
1656
|
return (_ctx, _cache) => {
|
|
1960
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1961
|
-
createElementVNode("div", _hoisted_2$
|
|
1962
|
-
createElementVNode("h1", _hoisted_3$
|
|
1963
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$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, [
|
|
1964
1661
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1965
1662
|
createVNode(LfIcon, {
|
|
1966
1663
|
name: __props.icon,
|
|
@@ -1973,14 +1670,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1973
1670
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1974
1671
|
], true)
|
|
1975
1672
|
]),
|
|
1976
|
-
__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)
|
|
1977
1674
|
]),
|
|
1978
|
-
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1675
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
1979
1676
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1980
1677
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1981
1678
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1982
1679
|
])) : createCommentVNode("", true),
|
|
1983
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1680
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$7, [
|
|
1984
1681
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1985
1682
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1986
1683
|
], true)
|
|
@@ -1989,14 +1686,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1989
1686
|
};
|
|
1990
1687
|
}
|
|
1991
1688
|
});
|
|
1992
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1993
|
-
const _hoisted_1$
|
|
1689
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-a7ef2659"]]);
|
|
1690
|
+
const _hoisted_1$o = {
|
|
1994
1691
|
key: 0,
|
|
1995
1692
|
class: "lf-badge__dot",
|
|
1996
1693
|
"aria-hidden": "true"
|
|
1997
1694
|
};
|
|
1998
|
-
const _hoisted_2$
|
|
1999
|
-
const _sfc_main$
|
|
1695
|
+
const _hoisted_2$m = ["aria-label"];
|
|
1696
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2000
1697
|
__name: "LfBadge",
|
|
2001
1698
|
props: {
|
|
2002
1699
|
label: {},
|
|
@@ -2016,7 +1713,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2016
1713
|
return openBlock(), createElementBlock("span", {
|
|
2017
1714
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
2018
1715
|
}, [
|
|
2019
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1716
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$o)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2020
1717
|
key: 1,
|
|
2021
1718
|
name: __props.icon,
|
|
2022
1719
|
path: __props.iconPath,
|
|
@@ -2036,27 +1733,27 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2036
1733
|
name: "close",
|
|
2037
1734
|
size: "0.75rem"
|
|
2038
1735
|
})
|
|
2039
|
-
], 8, _hoisted_2$
|
|
1736
|
+
], 8, _hoisted_2$m)) : createCommentVNode("", true)
|
|
2040
1737
|
], 2);
|
|
2041
1738
|
};
|
|
2042
1739
|
}
|
|
2043
1740
|
});
|
|
2044
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2045
|
-
const _hoisted_1$
|
|
2046
|
-
const _hoisted_2$
|
|
1741
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-b55cda7f"]]);
|
|
1742
|
+
const _hoisted_1$n = ["role"];
|
|
1743
|
+
const _hoisted_2$l = {
|
|
2047
1744
|
class: "lf-alert__badge",
|
|
2048
1745
|
"aria-hidden": "true"
|
|
2049
1746
|
};
|
|
2050
|
-
const _hoisted_3$
|
|
2051
|
-
const _hoisted_4$
|
|
1747
|
+
const _hoisted_3$h = { class: "lf-alert__body" };
|
|
1748
|
+
const _hoisted_4$c = {
|
|
2052
1749
|
key: 0,
|
|
2053
1750
|
class: "lf-alert__title"
|
|
2054
1751
|
};
|
|
2055
|
-
const _hoisted_5$
|
|
1752
|
+
const _hoisted_5$a = {
|
|
2056
1753
|
key: 2,
|
|
2057
1754
|
class: "lf-alert__actions"
|
|
2058
1755
|
};
|
|
2059
|
-
const _sfc_main$
|
|
1756
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2060
1757
|
__name: "LfAlert",
|
|
2061
1758
|
props: {
|
|
2062
1759
|
tone: { default: "info" },
|
|
@@ -2082,7 +1779,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2082
1779
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
2083
1780
|
role: __props.tone === "error" ? "alert" : "status"
|
|
2084
1781
|
}, [
|
|
2085
|
-
createElementVNode("span", _hoisted_2$
|
|
1782
|
+
createElementVNode("span", _hoisted_2$l, [
|
|
2086
1783
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2087
1784
|
createVNode(LfIcon, {
|
|
2088
1785
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -2091,8 +1788,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2091
1788
|
}, null, 8, ["name", "path", "size"])
|
|
2092
1789
|
], true)
|
|
2093
1790
|
]),
|
|
2094
|
-
createElementVNode("div", _hoisted_3$
|
|
2095
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1791
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
1792
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$c, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
2096
1793
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
2097
1794
|
key: 1,
|
|
2098
1795
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -2101,7 +1798,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2101
1798
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
2102
1799
|
], true)
|
|
2103
1800
|
], 2)) : createCommentVNode("", true),
|
|
2104
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1801
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
2105
1802
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
2106
1803
|
])) : createCommentVNode("", true)
|
|
2107
1804
|
]),
|
|
@@ -2113,14 +1810,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2113
1810
|
label: __props.closeLabel,
|
|
2114
1811
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
2115
1812
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
2116
|
-
], 10, _hoisted_1$
|
|
1813
|
+
], 10, _hoisted_1$n);
|
|
2117
1814
|
};
|
|
2118
1815
|
}
|
|
2119
1816
|
});
|
|
2120
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2121
|
-
const _hoisted_1$
|
|
2122
|
-
const _hoisted_2$
|
|
2123
|
-
const _sfc_main$
|
|
1817
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$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({
|
|
2124
1821
|
__name: "LfAvatar",
|
|
2125
1822
|
props: {
|
|
2126
1823
|
name: {},
|
|
@@ -2155,23 +1852,32 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2155
1852
|
src: __props.src,
|
|
2156
1853
|
alt: __props.name ?? "",
|
|
2157
1854
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
2158
|
-
}, null, 40, _hoisted_2$
|
|
1855
|
+
}, null, 40, _hoisted_2$k)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2159
1856
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
2160
1857
|
], 64))
|
|
2161
|
-
], 14, _hoisted_1$
|
|
1858
|
+
], 14, _hoisted_1$m);
|
|
2162
1859
|
};
|
|
2163
1860
|
}
|
|
2164
1861
|
});
|
|
2165
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2166
|
-
const _hoisted_1$
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
const
|
|
2171
|
-
const
|
|
2172
|
-
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({
|
|
2173
1879
|
__name: "LfTable",
|
|
2174
|
-
props: {
|
|
1880
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2175
1881
|
columns: {},
|
|
2176
1882
|
rows: { default: () => [] },
|
|
2177
1883
|
rowKey: {},
|
|
@@ -2181,15 +1887,39 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2181
1887
|
clickable: { type: Boolean },
|
|
2182
1888
|
compact: { type: Boolean },
|
|
2183
1889
|
minWidth: {},
|
|
2184
|
-
sort: {}
|
|
2185
|
-
|
|
2186
|
-
|
|
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"]),
|
|
2187
1902
|
setup(__props, { emit: __emit }) {
|
|
2188
1903
|
const props = __props;
|
|
1904
|
+
const selected = useModel(__props, "selected");
|
|
2189
1905
|
const emit = __emit;
|
|
2190
1906
|
function keyOf(row, i2) {
|
|
2191
1907
|
return props.rowKey ? String(row[props.rowKey] ?? i2) : i2;
|
|
2192
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
|
+
}
|
|
2193
1923
|
function toggleSort(key) {
|
|
2194
1924
|
var _a;
|
|
2195
1925
|
const order = ((_a = props.sort) == null ? void 0 : _a.key) === key && props.sort.order === "asc" ? "desc" : "asc";
|
|
@@ -2201,13 +1931,27 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2201
1931
|
return props.sort.order === "asc" ? "ascending" : "descending";
|
|
2202
1932
|
}
|
|
2203
1933
|
return (_ctx, _cache) => {
|
|
2204
|
-
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
|
+
}, [
|
|
2205
1938
|
createElementVNode("table", {
|
|
2206
1939
|
class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
|
|
2207
1940
|
style: normalizeStyle({ minWidth: __props.minWidth })
|
|
2208
1941
|
}, [
|
|
2209
1942
|
createElementVNode("thead", null, [
|
|
2210
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),
|
|
2211
1955
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2212
1956
|
var _a;
|
|
2213
1957
|
return openBlock(), createElementBlock("th", {
|
|
@@ -2228,10 +1972,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2228
1972
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
2229
1973
|
size: "0.875rem"
|
|
2230
1974
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
2231
|
-
], 8,
|
|
1975
|
+
], 8, _hoisted_4$b)) : renderSlot(_ctx.$slots, `head-${col.key}`, { column: col }, () => [
|
|
2232
1976
|
createTextVNode(toDisplayString(col.label), 1)
|
|
2233
|
-
],
|
|
2234
|
-
], 14,
|
|
1977
|
+
], true, 1)
|
|
1978
|
+
], 14, _hoisted_3$g);
|
|
2235
1979
|
}), 128))
|
|
2236
1980
|
])
|
|
2237
1981
|
]),
|
|
@@ -2241,32 +1985,51 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2241
1985
|
key: `sk-${n}`,
|
|
2242
1986
|
class: "lf-table__row"
|
|
2243
1987
|
}, [
|
|
1988
|
+
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$9)) : createCommentVNode("", true),
|
|
2244
1989
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2245
1990
|
return openBlock(), createElementBlock("td", {
|
|
2246
1991
|
key: col.key,
|
|
2247
1992
|
class: normalizeClass({ "lf-table__col--mobile-hidden": col.hideOnMobile })
|
|
2248
|
-
}, [..._cache[
|
|
1993
|
+
}, [..._cache[1] || (_cache[1] = [
|
|
2249
1994
|
createElementVNode("span", { class: "lf-table__skeleton" }, null, -1)
|
|
2250
1995
|
])], 2);
|
|
2251
1996
|
}), 128))
|
|
2252
1997
|
]);
|
|
2253
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr",
|
|
1998
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$7, [
|
|
2254
1999
|
createElementVNode("td", {
|
|
2255
2000
|
class: "lf-table__empty",
|
|
2256
|
-
colspan: __props.columns.length
|
|
2001
|
+
colspan: __props.columns.length + (__props.selectable ? 1 : 0)
|
|
2257
2002
|
}, [
|
|
2258
2003
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2259
2004
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
2260
2005
|
], true)
|
|
2261
|
-
], 8,
|
|
2006
|
+
], 8, _hoisted_7$6)
|
|
2262
2007
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
2263
2008
|
return openBlock(), createElementBlock("tr", {
|
|
2264
2009
|
key: keyOf(row, i2),
|
|
2265
|
-
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
|
+
}]),
|
|
2266
2015
|
tabindex: __props.clickable ? 0 : void 0,
|
|
2267
2016
|
onClick: ($event) => __props.clickable && emit("rowClick", row),
|
|
2268
2017
|
onKeydown: withKeys(($event) => __props.clickable && emit("rowClick", row), ["enter"])
|
|
2269
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),
|
|
2270
2033
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2271
2034
|
return openBlock(), createElementBlock("td", {
|
|
2272
2035
|
key: col.key,
|
|
@@ -2282,34 +2045,34 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2282
2045
|
], true)
|
|
2283
2046
|
], 6);
|
|
2284
2047
|
}), 128))
|
|
2285
|
-
], 42,
|
|
2048
|
+
], 42, _hoisted_8$1);
|
|
2286
2049
|
}), 128))
|
|
2287
2050
|
])
|
|
2288
2051
|
], 6)
|
|
2289
|
-
]);
|
|
2052
|
+
], 6);
|
|
2290
2053
|
};
|
|
2291
2054
|
}
|
|
2292
2055
|
});
|
|
2293
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2294
|
-
const _hoisted_1$
|
|
2295
|
-
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 = {
|
|
2296
2059
|
key: 0,
|
|
2297
2060
|
class: "lf-pagination__total"
|
|
2298
2061
|
};
|
|
2299
|
-
const _hoisted_3$
|
|
2062
|
+
const _hoisted_3$f = {
|
|
2300
2063
|
key: 1,
|
|
2301
2064
|
class: "lf-pagination__btns"
|
|
2302
2065
|
};
|
|
2303
|
-
const _hoisted_4$
|
|
2304
|
-
const _hoisted_5$
|
|
2066
|
+
const _hoisted_4$a = ["disabled"];
|
|
2067
|
+
const _hoisted_5$8 = {
|
|
2305
2068
|
key: 0,
|
|
2306
2069
|
class: "lf-pagination__gap",
|
|
2307
2070
|
"aria-hidden": "true"
|
|
2308
2071
|
};
|
|
2309
|
-
const _hoisted_6$
|
|
2310
|
-
const _hoisted_7$
|
|
2072
|
+
const _hoisted_6$6 = ["aria-current", "onClick"];
|
|
2073
|
+
const _hoisted_7$5 = ["disabled"];
|
|
2311
2074
|
const ELLIPSIS = -1;
|
|
2312
|
-
const _sfc_main$
|
|
2075
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2313
2076
|
__name: "LfPagination",
|
|
2314
2077
|
props: /* @__PURE__ */ mergeModels({
|
|
2315
2078
|
total: { default: 0 },
|
|
@@ -2350,12 +2113,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2350
2113
|
class: "lf-pagination",
|
|
2351
2114
|
"aria-label": __props.ariaLabel
|
|
2352
2115
|
}, [
|
|
2353
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2116
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$i, [
|
|
2354
2117
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2355
2118
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2356
2119
|
], true)
|
|
2357
2120
|
])) : createCommentVNode("", true),
|
|
2358
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2121
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
2359
2122
|
createElementVNode("button", {
|
|
2360
2123
|
type: "button",
|
|
2361
2124
|
class: "lf-pagination__btn",
|
|
@@ -2367,18 +2130,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2367
2130
|
name: "chevron_left",
|
|
2368
2131
|
size: "1rem"
|
|
2369
2132
|
})
|
|
2370
|
-
], 8, _hoisted_4$
|
|
2133
|
+
], 8, _hoisted_4$a),
|
|
2371
2134
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2372
2135
|
return openBlock(), createElementBlock(Fragment, {
|
|
2373
2136
|
key: `${p}-${i2}`
|
|
2374
2137
|
}, [
|
|
2375
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2138
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$8, "…")) : (openBlock(), createElementBlock("button", {
|
|
2376
2139
|
key: 1,
|
|
2377
2140
|
type: "button",
|
|
2378
2141
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2379
2142
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2380
2143
|
onClick: ($event) => go(p)
|
|
2381
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2144
|
+
}, toDisplayString(p), 11, _hoisted_6$6))
|
|
2382
2145
|
], 64);
|
|
2383
2146
|
}), 128)),
|
|
2384
2147
|
createElementVNode("button", {
|
|
@@ -2392,27 +2155,27 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2392
2155
|
name: "chevron_right",
|
|
2393
2156
|
size: "1rem"
|
|
2394
2157
|
})
|
|
2395
|
-
], 8, _hoisted_7$
|
|
2158
|
+
], 8, _hoisted_7$5)
|
|
2396
2159
|
])) : createCommentVNode("", true)
|
|
2397
|
-
], 8, _hoisted_1$
|
|
2160
|
+
], 8, _hoisted_1$k)) : createCommentVNode("", true);
|
|
2398
2161
|
};
|
|
2399
2162
|
}
|
|
2400
2163
|
});
|
|
2401
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2402
|
-
const _hoisted_1$
|
|
2164
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-be847541"]]);
|
|
2165
|
+
const _hoisted_1$j = {
|
|
2403
2166
|
key: 0,
|
|
2404
2167
|
class: "lf-empty__icon"
|
|
2405
2168
|
};
|
|
2406
|
-
const _hoisted_2$
|
|
2407
|
-
const _hoisted_3$
|
|
2169
|
+
const _hoisted_2$h = { class: "lf-empty__title" };
|
|
2170
|
+
const _hoisted_3$e = {
|
|
2408
2171
|
key: 1,
|
|
2409
2172
|
class: "lf-empty__desc"
|
|
2410
2173
|
};
|
|
2411
|
-
const _hoisted_4$
|
|
2174
|
+
const _hoisted_4$9 = {
|
|
2412
2175
|
key: 2,
|
|
2413
2176
|
class: "lf-empty__action"
|
|
2414
2177
|
};
|
|
2415
|
-
const _sfc_main$
|
|
2178
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2416
2179
|
__name: "LfEmptyState",
|
|
2417
2180
|
props: {
|
|
2418
2181
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2427,7 +2190,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2427
2190
|
return openBlock(), createElementBlock("div", {
|
|
2428
2191
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2429
2192
|
}, [
|
|
2430
|
-
__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, [
|
|
2431
2194
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2432
2195
|
createVNode(LfIcon, {
|
|
2433
2196
|
name: __props.icon,
|
|
@@ -2436,31 +2199,31 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2436
2199
|
}, null, 8, ["name", "path"])
|
|
2437
2200
|
], true)
|
|
2438
2201
|
])) : createCommentVNode("", true),
|
|
2439
|
-
createElementVNode("p", _hoisted_2$
|
|
2202
|
+
createElementVNode("p", _hoisted_2$h, [
|
|
2440
2203
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2441
2204
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2442
2205
|
], true)
|
|
2443
2206
|
]),
|
|
2444
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2207
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$e, [
|
|
2445
2208
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2446
2209
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2447
2210
|
], true)
|
|
2448
2211
|
])) : createCommentVNode("", true),
|
|
2449
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2212
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
2450
2213
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2451
2214
|
])) : createCommentVNode("", true)
|
|
2452
2215
|
], 2);
|
|
2453
2216
|
};
|
|
2454
2217
|
}
|
|
2455
2218
|
});
|
|
2456
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2457
|
-
const _hoisted_1$
|
|
2219
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2220
|
+
const _hoisted_1$i = {
|
|
2458
2221
|
key: 0,
|
|
2459
2222
|
class: "lf-skeleton-group",
|
|
2460
2223
|
"aria-busy": true,
|
|
2461
2224
|
"aria-live": "polite"
|
|
2462
2225
|
};
|
|
2463
|
-
const _sfc_main$
|
|
2226
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
2464
2227
|
__name: "LfSkeleton",
|
|
2465
2228
|
props: {
|
|
2466
2229
|
variant: { default: "text" },
|
|
@@ -2475,7 +2238,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2475
2238
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2476
2239
|
}
|
|
2477
2240
|
return (_ctx, _cache) => {
|
|
2478
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2241
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2479
2242
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2480
2243
|
return openBlock(), createElementBlock("span", {
|
|
2481
2244
|
key: n,
|
|
@@ -2492,24 +2255,24 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2492
2255
|
};
|
|
2493
2256
|
}
|
|
2494
2257
|
});
|
|
2495
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2496
|
-
const _hoisted_1$
|
|
2258
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a01556ce"]]);
|
|
2259
|
+
const _hoisted_1$h = {
|
|
2497
2260
|
class: "lf-stat__badge",
|
|
2498
2261
|
"aria-hidden": "true"
|
|
2499
2262
|
};
|
|
2500
|
-
const _hoisted_2$
|
|
2501
|
-
const _hoisted_3$
|
|
2502
|
-
const _hoisted_4$
|
|
2503
|
-
const _hoisted_5$
|
|
2504
|
-
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 = {
|
|
2505
2268
|
key: 0,
|
|
2506
2269
|
class: "lf-stat__unit"
|
|
2507
2270
|
};
|
|
2508
|
-
const _hoisted_7$
|
|
2271
|
+
const _hoisted_7$4 = {
|
|
2509
2272
|
key: 0,
|
|
2510
2273
|
class: "lf-stat__hint"
|
|
2511
2274
|
};
|
|
2512
|
-
const _sfc_main$
|
|
2275
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
2513
2276
|
__name: "LfStatCard",
|
|
2514
2277
|
props: {
|
|
2515
2278
|
label: {},
|
|
@@ -2538,7 +2301,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2538
2301
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2539
2302
|
}, {
|
|
2540
2303
|
default: withCtx(() => [
|
|
2541
|
-
createElementVNode("span", _hoisted_1$
|
|
2304
|
+
createElementVNode("span", _hoisted_1$h, [
|
|
2542
2305
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2543
2306
|
createVNode(LfIcon, {
|
|
2544
2307
|
name: __props.icon,
|
|
@@ -2547,14 +2310,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2547
2310
|
}, null, 8, ["name", "path"])
|
|
2548
2311
|
], true)
|
|
2549
2312
|
]),
|
|
2550
|
-
createElementVNode("div", _hoisted_2$
|
|
2551
|
-
createElementVNode("div", _hoisted_3$
|
|
2552
|
-
createElementVNode("div", _hoisted_4$
|
|
2553
|
-
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, [
|
|
2554
2317
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2555
2318
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2556
2319
|
], true),
|
|
2557
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2320
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2558
2321
|
]),
|
|
2559
2322
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2560
2323
|
key: 0,
|
|
@@ -2567,7 +2330,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2567
2330
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2568
2331
|
], 2)) : createCommentVNode("", true)
|
|
2569
2332
|
]),
|
|
2570
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2333
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$4, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2571
2334
|
])
|
|
2572
2335
|
]),
|
|
2573
2336
|
_: 3
|
|
@@ -2575,10 +2338,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2575
2338
|
};
|
|
2576
2339
|
}
|
|
2577
2340
|
});
|
|
2578
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2579
|
-
const _hoisted_1$
|
|
2580
|
-
const _hoisted_2$
|
|
2581
|
-
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({
|
|
2582
2345
|
__name: "LfTooltip",
|
|
2583
2346
|
props: {
|
|
2584
2347
|
text: {},
|
|
@@ -2595,7 +2358,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2595
2358
|
"aria-describedby": unref(bubbleId)
|
|
2596
2359
|
}, [
|
|
2597
2360
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2598
|
-
], 8, _hoisted_1$
|
|
2361
|
+
], 8, _hoisted_1$g),
|
|
2599
2362
|
createElementVNode("span", {
|
|
2600
2363
|
id: unref(bubbleId),
|
|
2601
2364
|
class: "lf-tooltip__bubble",
|
|
@@ -2604,19 +2367,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2604
2367
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2605
2368
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2606
2369
|
], true)
|
|
2607
|
-
], 8, _hoisted_2$
|
|
2370
|
+
], 8, _hoisted_2$f)
|
|
2608
2371
|
], 2);
|
|
2609
2372
|
};
|
|
2610
2373
|
}
|
|
2611
2374
|
});
|
|
2612
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2613
|
-
const _hoisted_1$
|
|
2614
|
-
const _hoisted_2$
|
|
2615
|
-
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 = {
|
|
2616
2379
|
key: 0,
|
|
2617
2380
|
class: "lf-menu__item-desc"
|
|
2618
2381
|
};
|
|
2619
|
-
const _sfc_main$
|
|
2382
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
2620
2383
|
__name: "LfMenu",
|
|
2621
2384
|
props: {
|
|
2622
2385
|
items: { default: () => [] },
|
|
@@ -2644,12 +2407,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2644
2407
|
open.value = false;
|
|
2645
2408
|
emit("select", item);
|
|
2646
2409
|
}
|
|
2647
|
-
function onPointerDown(
|
|
2410
|
+
function onPointerDown(e3) {
|
|
2648
2411
|
var _a;
|
|
2649
|
-
if (!((_a = root.value) == null ? void 0 : _a.contains(
|
|
2412
|
+
if (!((_a = root.value) == null ? void 0 : _a.contains(e3.target))) open.value = false;
|
|
2650
2413
|
}
|
|
2651
|
-
function onKeydown(
|
|
2652
|
-
if (
|
|
2414
|
+
function onKeydown(e3) {
|
|
2415
|
+
if (e3.key === "Escape") open.value = false;
|
|
2653
2416
|
}
|
|
2654
2417
|
watch(open, (isOpen) => {
|
|
2655
2418
|
if (isOpen) {
|
|
@@ -2706,11 +2469,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2706
2469
|
size: "1.125rem",
|
|
2707
2470
|
class: "lf-menu__item-icon"
|
|
2708
2471
|
}), null, 16)) : createCommentVNode("", true),
|
|
2709
|
-
createElementVNode("span", _hoisted_2$
|
|
2472
|
+
createElementVNode("span", _hoisted_2$e, [
|
|
2710
2473
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2711
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2474
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2712
2475
|
])
|
|
2713
|
-
], 8, _hoisted_1$
|
|
2476
|
+
], 8, _hoisted_1$f);
|
|
2714
2477
|
}), 128))
|
|
2715
2478
|
], true)
|
|
2716
2479
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2721,22 +2484,22 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2721
2484
|
};
|
|
2722
2485
|
}
|
|
2723
2486
|
});
|
|
2724
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2725
|
-
const _hoisted_1$
|
|
2487
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0318782c"]]);
|
|
2488
|
+
const _hoisted_1$e = {
|
|
2726
2489
|
key: 0,
|
|
2727
2490
|
class: "lf-rail__group",
|
|
2728
2491
|
role: "presentation"
|
|
2729
2492
|
};
|
|
2730
|
-
const _hoisted_2$
|
|
2731
|
-
const _hoisted_3$
|
|
2732
|
-
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 = {
|
|
2733
2496
|
key: 2,
|
|
2734
2497
|
class: "lf-rail__badge"
|
|
2735
2498
|
};
|
|
2736
|
-
const _hoisted_5$
|
|
2737
|
-
const _hoisted_6$
|
|
2738
|
-
const _hoisted_7$
|
|
2739
|
-
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({
|
|
2740
2503
|
__name: "LfNavRail",
|
|
2741
2504
|
props: {
|
|
2742
2505
|
items: {},
|
|
@@ -2806,8 +2569,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2806
2569
|
return openBlock(), createElementBlock(Fragment, {
|
|
2807
2570
|
key: item.to
|
|
2808
2571
|
}, [
|
|
2809
|
-
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2810
|
-
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)
|
|
2811
2574
|
])) : createCommentVNode("", true),
|
|
2812
2575
|
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2813
2576
|
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
@@ -2816,7 +2579,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2816
2579
|
onClick: ($event) => emit("navigate", item)
|
|
2817
2580
|
}), {
|
|
2818
2581
|
default: withCtx(() => [
|
|
2819
|
-
createElementVNode("span", _hoisted_3$
|
|
2582
|
+
createElementVNode("span", _hoisted_3$b, [
|
|
2820
2583
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2821
2584
|
key: 0,
|
|
2822
2585
|
path: item.iconPath,
|
|
@@ -2826,11 +2589,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2826
2589
|
name: item.icon,
|
|
2827
2590
|
size: "1.15rem"
|
|
2828
2591
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2829
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2592
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2830
2593
|
]),
|
|
2831
|
-
createElementVNode("span", _hoisted_5$
|
|
2832
|
-
createElementVNode("span", _hoisted_6$
|
|
2833
|
-
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)
|
|
2834
2597
|
])
|
|
2835
2598
|
]),
|
|
2836
2599
|
_: 2
|
|
@@ -2841,107 +2604,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2841
2604
|
};
|
|
2842
2605
|
}
|
|
2843
2606
|
});
|
|
2844
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2845
|
-
const
|
|
2846
|
-
const _hoisted_2$3 = ["aria-checked", "aria-label", "title", "disabled", "onClick"];
|
|
2847
|
-
const _hoisted_3$2 = {
|
|
2848
|
-
key: 1,
|
|
2849
|
-
class: "lf-seg__label"
|
|
2850
|
-
};
|
|
2851
|
-
const _hoisted_4$1 = {
|
|
2852
|
-
key: 2,
|
|
2853
|
-
class: "lf-seg__badge"
|
|
2854
|
-
};
|
|
2855
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2856
|
-
__name: "LfSegmented",
|
|
2857
|
-
props: /* @__PURE__ */ mergeModels({
|
|
2858
|
-
options: { default: () => [] },
|
|
2859
|
-
size: { default: "md" },
|
|
2860
|
-
labelHidden: { type: Boolean },
|
|
2861
|
-
block: { type: Boolean },
|
|
2862
|
-
disabled: { type: Boolean },
|
|
2863
|
-
ariaLabel: {}
|
|
2864
|
-
}, {
|
|
2865
|
-
"modelValue": { required: true },
|
|
2866
|
-
"modelModifiers": {}
|
|
2867
|
-
}),
|
|
2868
|
-
emits: ["update:modelValue"],
|
|
2869
|
-
setup(__props) {
|
|
2870
|
-
const props = __props;
|
|
2871
|
-
const model = useModel(__props, "modelValue");
|
|
2872
|
-
const normalized = computed(
|
|
2873
|
-
() => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
|
|
2874
|
-
);
|
|
2875
|
-
const root = useTemplateRef("root");
|
|
2876
|
-
const thumb = ref(null);
|
|
2877
|
-
const instant = ref(true);
|
|
2878
|
-
let lastEl = null;
|
|
2879
|
-
function measure() {
|
|
2880
|
-
var _a;
|
|
2881
|
-
const el = ((_a = root.value) == null ? void 0 : _a.querySelector(".lf-seg__btn--on")) ?? null;
|
|
2882
|
-
const next = el && el.offsetWidth ? { x: el.offsetLeft, w: el.offsetWidth } : null;
|
|
2883
|
-
const cur = thumb.value;
|
|
2884
|
-
if (cur && next && cur.x === next.x && cur.w === next.w) return;
|
|
2885
|
-
instant.value = !lastEl || el === lastEl || !cur;
|
|
2886
|
-
if (next) lastEl = el;
|
|
2887
|
-
thumb.value = next;
|
|
2888
|
-
}
|
|
2889
|
-
watch(() => [model.value, normalized.value.length], () => {
|
|
2890
|
-
void nextTick(measure);
|
|
2891
|
-
});
|
|
2892
|
-
let ro = null;
|
|
2893
|
-
onMounted(() => {
|
|
2894
|
-
measure();
|
|
2895
|
-
if (typeof ResizeObserver !== "undefined" && root.value) {
|
|
2896
|
-
ro = new ResizeObserver(() => measure());
|
|
2897
|
-
ro.observe(root.value);
|
|
2898
|
-
}
|
|
2899
|
-
});
|
|
2900
|
-
onBeforeUnmount(() => ro == null ? void 0 : ro.disconnect());
|
|
2901
|
-
function iconOf(opt) {
|
|
2902
|
-
if (!opt.icon) return {};
|
|
2903
|
-
return opt.icon in LF_ICONS ? { name: opt.icon } : { path: opt.icon };
|
|
2904
|
-
}
|
|
2905
|
-
return (_ctx, _cache) => {
|
|
2906
|
-
return openBlock(), createElementBlock("div", {
|
|
2907
|
-
ref_key: "root",
|
|
2908
|
-
ref: root,
|
|
2909
|
-
class: normalizeClass(["lf-seg", [`lf-seg--${__props.size}`, { "lf-seg--block": __props.block, "lf-seg--thumb": thumb.value }]]),
|
|
2910
|
-
role: "radiogroup",
|
|
2911
|
-
"aria-label": __props.ariaLabel
|
|
2912
|
-
}, [
|
|
2913
|
-
thumb.value ? (openBlock(), createElementBlock("span", {
|
|
2914
|
-
key: 0,
|
|
2915
|
-
class: normalizeClass(["lf-seg__thumb", { "lf-seg__thumb--instant": instant.value }]),
|
|
2916
|
-
style: normalizeStyle({ transform: `translateX(${thumb.value.x}px)`, width: `${thumb.value.w}px` }),
|
|
2917
|
-
"aria-hidden": "true"
|
|
2918
|
-
}, null, 6)) : createCommentVNode("", true),
|
|
2919
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
2920
|
-
return openBlock(), createElementBlock("button", {
|
|
2921
|
-
key: String(opt.value),
|
|
2922
|
-
type: "button",
|
|
2923
|
-
class: normalizeClass(["lf-seg__btn", { "lf-seg__btn--on": opt.value === model.value }]),
|
|
2924
|
-
role: "radio",
|
|
2925
|
-
"aria-checked": opt.value === model.value ? "true" : "false",
|
|
2926
|
-
"aria-label": __props.labelHidden ? opt.label : void 0,
|
|
2927
|
-
title: __props.labelHidden ? opt.label : void 0,
|
|
2928
|
-
disabled: __props.disabled || opt.disabled,
|
|
2929
|
-
onClick: ($event) => model.value = opt.value
|
|
2930
|
-
}, [
|
|
2931
|
-
opt.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
2932
|
-
key: 0,
|
|
2933
|
-
ref_for: true
|
|
2934
|
-
}, iconOf(opt), { class: "lf-seg__icon" }), null, 16)) : createCommentVNode("", true),
|
|
2935
|
-
!__props.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(opt.label), 1)) : createCommentVNode("", true),
|
|
2936
|
-
opt.badge !== void 0 && opt.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(opt.badge), 1)) : createCommentVNode("", true)
|
|
2937
|
-
], 10, _hoisted_2$3);
|
|
2938
|
-
}), 128))
|
|
2939
|
-
], 10, _hoisted_1$3);
|
|
2940
|
-
};
|
|
2941
|
-
}
|
|
2942
|
-
});
|
|
2943
|
-
const LfSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-10fad8e3"]]);
|
|
2944
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2607
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a29be44a"]]);
|
|
2608
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
2945
2609
|
__name: "LfTransitionList",
|
|
2946
2610
|
props: {
|
|
2947
2611
|
tag: { default: "div" },
|
|
@@ -3031,16 +2695,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3031
2695
|
};
|
|
3032
2696
|
}
|
|
3033
2697
|
});
|
|
3034
|
-
const _hoisted_1$
|
|
3035
|
-
const _hoisted_2$
|
|
2698
|
+
const _hoisted_1$d = { class: "lf-control-wrap" };
|
|
2699
|
+
const _hoisted_2$c = {
|
|
3036
2700
|
key: 0,
|
|
3037
2701
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
3038
2702
|
};
|
|
3039
|
-
const _hoisted_3$
|
|
3040
|
-
const _hoisted_4 = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
3041
|
-
const _hoisted_5 = { class: "lf-listsel__text" };
|
|
3042
|
-
const _hoisted_6 = ["aria-label"];
|
|
3043
|
-
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 = {
|
|
3044
2708
|
key: 4,
|
|
3045
2709
|
class: "lf-control-wrap__icon lf-control-wrap__icon--right"
|
|
3046
2710
|
};
|
|
@@ -3056,7 +2720,7 @@ const _hoisted_13 = {
|
|
|
3056
2720
|
key: 1,
|
|
3057
2721
|
class: "lf-listsel__empty"
|
|
3058
2722
|
};
|
|
3059
|
-
const _sfc_main$
|
|
2723
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3060
2724
|
...{ inheritAttrs: false },
|
|
3061
2725
|
__name: "LfListSelect",
|
|
3062
2726
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3164,54 +2828,54 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3164
2828
|
text.value = "";
|
|
3165
2829
|
(_a = control.value) == null ? void 0 : _a.focus();
|
|
3166
2830
|
}
|
|
3167
|
-
function onKeydown(
|
|
2831
|
+
function onKeydown(e3) {
|
|
3168
2832
|
var _a, _b;
|
|
3169
|
-
if (
|
|
3170
|
-
|
|
2833
|
+
if (e3.key === "ArrowDown" || e3.key === "ArrowUp") {
|
|
2834
|
+
e3.preventDefault();
|
|
3171
2835
|
if (!open.value) {
|
|
3172
2836
|
show();
|
|
3173
2837
|
return;
|
|
3174
2838
|
}
|
|
3175
2839
|
const n = filtered.value.length;
|
|
3176
2840
|
if (!n) return;
|
|
3177
|
-
active.value = (active.value + (
|
|
2841
|
+
active.value = (active.value + (e3.key === "ArrowDown" ? 1 : -1) + n) % n;
|
|
3178
2842
|
(_b = (_a = list.value) == null ? void 0 : _a.querySelectorAll("[role=option]")[active.value]) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
|
|
3179
2843
|
return;
|
|
3180
2844
|
}
|
|
3181
|
-
if (
|
|
2845
|
+
if (e3.key === "Enter") {
|
|
3182
2846
|
if (!open.value) return;
|
|
3183
2847
|
const opt = filtered.value[active.value];
|
|
3184
2848
|
if (opt) {
|
|
3185
|
-
|
|
2849
|
+
e3.preventDefault();
|
|
3186
2850
|
pick(opt);
|
|
3187
2851
|
} else if (props.editable) hide();
|
|
3188
2852
|
return;
|
|
3189
2853
|
}
|
|
3190
|
-
if ((
|
|
3191
|
-
|
|
2854
|
+
if ((e3.key === " " || e3.key === "Spacebar") && !props.editable && !props.searchable) {
|
|
2855
|
+
e3.preventDefault();
|
|
3192
2856
|
toggle();
|
|
3193
2857
|
}
|
|
3194
2858
|
}
|
|
3195
|
-
function onFocusOut(
|
|
2859
|
+
function onFocusOut(e3) {
|
|
3196
2860
|
var _a, _b;
|
|
3197
|
-
const next =
|
|
2861
|
+
const next = e3.relatedTarget;
|
|
3198
2862
|
if (next && (((_a = root.value) == null ? void 0 : _a.contains(next)) || ((_b = list.value) == null ? void 0 : _b.contains(next)))) return;
|
|
3199
2863
|
hide();
|
|
3200
2864
|
}
|
|
3201
|
-
function onPointerDown(
|
|
2865
|
+
function onPointerDown(e3) {
|
|
3202
2866
|
var _a, _b;
|
|
3203
|
-
const t =
|
|
2867
|
+
const t = e3.target;
|
|
3204
2868
|
if (!((_a = root.value) == null ? void 0 : _a.contains(t)) && !((_b = list.value) == null ? void 0 : _b.contains(t))) hide();
|
|
3205
2869
|
}
|
|
3206
|
-
function onDocKeydown(
|
|
2870
|
+
function onDocKeydown(e3) {
|
|
3207
2871
|
var _a;
|
|
3208
|
-
if (
|
|
3209
|
-
|
|
2872
|
+
if (e3.key !== "Escape") return;
|
|
2873
|
+
e3.stopPropagation();
|
|
3210
2874
|
hide();
|
|
3211
2875
|
(_a = control.value) == null ? void 0 : _a.focus();
|
|
3212
2876
|
}
|
|
3213
|
-
function onScroll(
|
|
3214
|
-
if (list.value && list.value.contains(
|
|
2877
|
+
function onScroll(e3) {
|
|
2878
|
+
if (list.value && list.value.contains(e3.target)) return;
|
|
3215
2879
|
hide();
|
|
3216
2880
|
}
|
|
3217
2881
|
watch(open, (isOpen) => {
|
|
@@ -3256,8 +2920,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3256
2920
|
class: "lf-listsel",
|
|
3257
2921
|
onFocusout: onFocusOut
|
|
3258
2922
|
}, [
|
|
3259
|
-
createElementVNode("div", _hoisted_1$
|
|
3260
|
-
!__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, [
|
|
3261
2925
|
createVNode(LfIcon, mergeProps(iconOf(selected.value), { size: "1.125rem" }), null, 16)
|
|
3262
2926
|
])) : createCommentVNode("", true),
|
|
3263
2927
|
__props.editable ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
@@ -3279,7 +2943,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3279
2943
|
onFocus: _cache[1] || (_cache[1] = ($event) => show()),
|
|
3280
2944
|
onInput: _cache[2] || (_cache[2] = ($event) => show()),
|
|
3281
2945
|
onKeydown
|
|
3282
|
-
}), null, 16, _hoisted_3$
|
|
2946
|
+
}), null, 16, _hoisted_3$a)), [
|
|
3283
2947
|
[vModelText, text.value]
|
|
3284
2948
|
]) : (openBlock(), createElementBlock("button", mergeProps({
|
|
3285
2949
|
key: 2,
|
|
@@ -3301,9 +2965,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3301
2965
|
onKeydown
|
|
3302
2966
|
}), [
|
|
3303
2967
|
renderSlot(_ctx.$slots, "selected", { option: selected.value }, () => [
|
|
3304
|
-
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)
|
|
3305
2969
|
], true)
|
|
3306
|
-
], 16, _hoisted_4)),
|
|
2970
|
+
], 16, _hoisted_4$6)),
|
|
3307
2971
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
3308
2972
|
key: 3,
|
|
3309
2973
|
type: "button",
|
|
@@ -3315,7 +2979,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3315
2979
|
name: "close",
|
|
3316
2980
|
size: "1rem"
|
|
3317
2981
|
})
|
|
3318
|
-
], 8, _hoisted_6)) : (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
2982
|
+
], 8, _hoisted_6$3)) : (openBlock(), createElementBlock("span", _hoisted_7$2, [
|
|
3319
2983
|
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
3320
2984
|
key: 0,
|
|
3321
2985
|
size: "1rem"
|
|
@@ -3394,8 +3058,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3394
3058
|
};
|
|
3395
3059
|
}
|
|
3396
3060
|
});
|
|
3397
|
-
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3398
|
-
const _sfc_main$
|
|
3061
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-532597e1"]]);
|
|
3062
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3399
3063
|
__name: "LfList",
|
|
3400
3064
|
props: {
|
|
3401
3065
|
divided: { type: Boolean },
|
|
@@ -3411,17 +3075,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3411
3075
|
};
|
|
3412
3076
|
}
|
|
3413
3077
|
});
|
|
3414
|
-
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3415
|
-
const _hoisted_1$
|
|
3078
|
+
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-67f4475e"]]);
|
|
3079
|
+
const _hoisted_1$c = {
|
|
3416
3080
|
key: 0,
|
|
3417
3081
|
class: "lf-list-item__prepend"
|
|
3418
3082
|
};
|
|
3419
|
-
const _hoisted_2$
|
|
3420
|
-
const _hoisted_3 = {
|
|
3083
|
+
const _hoisted_2$b = { class: "lf-list-item__text" };
|
|
3084
|
+
const _hoisted_3$9 = {
|
|
3421
3085
|
key: 1,
|
|
3422
3086
|
class: "lf-list-item__append"
|
|
3423
3087
|
};
|
|
3424
|
-
const _sfc_main$
|
|
3088
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
3425
3089
|
__name: "LfListItem",
|
|
3426
3090
|
props: {
|
|
3427
3091
|
active: { type: Boolean },
|
|
@@ -3442,13 +3106,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3442
3106
|
"aria-current": __props.active ? "true" : void 0
|
|
3443
3107
|
}, {
|
|
3444
3108
|
default: withCtx(() => [
|
|
3445
|
-
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3109
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$c, [
|
|
3446
3110
|
renderSlot(_ctx.$slots, "prepend", {}, void 0, true)
|
|
3447
3111
|
])) : createCommentVNode("", true),
|
|
3448
|
-
createElementVNode("span", _hoisted_2$
|
|
3112
|
+
createElementVNode("span", _hoisted_2$b, [
|
|
3449
3113
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3450
3114
|
]),
|
|
3451
|
-
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
3115
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
|
|
3452
3116
|
renderSlot(_ctx.$slots, "append", {}, void 0, true)
|
|
3453
3117
|
])) : createCommentVNode("", true)
|
|
3454
3118
|
]),
|
|
@@ -3458,14 +3122,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3458
3122
|
};
|
|
3459
3123
|
}
|
|
3460
3124
|
});
|
|
3461
|
-
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3462
|
-
const _hoisted_1 = {
|
|
3125
|
+
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e05ac56f"]]);
|
|
3126
|
+
const _hoisted_1$b = {
|
|
3463
3127
|
key: 0,
|
|
3464
3128
|
class: "lf-divider lf-divider--labeled",
|
|
3465
3129
|
role: "separator"
|
|
3466
3130
|
};
|
|
3467
|
-
const _hoisted_2 = { class: "lf-divider__label" };
|
|
3468
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3131
|
+
const _hoisted_2$a = { class: "lf-divider__label" };
|
|
3132
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3469
3133
|
__name: "LfDivider",
|
|
3470
3134
|
props: {
|
|
3471
3135
|
label: {},
|
|
@@ -3473,8 +3137,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3473
3137
|
},
|
|
3474
3138
|
setup(__props) {
|
|
3475
3139
|
return (_ctx, _cache) => {
|
|
3476
|
-
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3477
|
-
createElementVNode("span", _hoisted_2, [
|
|
3140
|
+
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
3141
|
+
createElementVNode("span", _hoisted_2$a, [
|
|
3478
3142
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3479
3143
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
3480
3144
|
], true)
|
|
@@ -3486,7 +3150,1109 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3486
3150
|
};
|
|
3487
3151
|
}
|
|
3488
3152
|
});
|
|
3489
|
-
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"]]);
|
|
3490
4256
|
class ApiError extends Error {
|
|
3491
4257
|
constructor(status, message, detail) {
|
|
3492
4258
|
super(message);
|
|
@@ -3638,11 +4404,15 @@ export {
|
|
|
3638
4404
|
LfButton,
|
|
3639
4405
|
LfCard,
|
|
3640
4406
|
LfCheckbox,
|
|
4407
|
+
LfDateRange,
|
|
4408
|
+
LfDescriptions,
|
|
3641
4409
|
LfDivider,
|
|
4410
|
+
LfDrawer,
|
|
3642
4411
|
LfEmptyState,
|
|
3643
4412
|
LfField,
|
|
3644
4413
|
LfIcon,
|
|
3645
4414
|
LfIconButton,
|
|
4415
|
+
LfKbd,
|
|
3646
4416
|
LfList,
|
|
3647
4417
|
LfListItem,
|
|
3648
4418
|
LfListSelect,
|
|
@@ -3651,18 +4421,25 @@ export {
|
|
|
3651
4421
|
LfNavRail,
|
|
3652
4422
|
LfPageHeader,
|
|
3653
4423
|
LfPagination,
|
|
4424
|
+
LfProgress,
|
|
3654
4425
|
LfRadioGroup,
|
|
3655
|
-
LfSegmented,
|
|
3656
|
-
LfSelect,
|
|
4426
|
+
e2 as LfSegmented,
|
|
4427
|
+
f2 as LfSelect,
|
|
3657
4428
|
LfSkeleton,
|
|
3658
4429
|
LfSpinner,
|
|
4430
|
+
LfSplitPane,
|
|
3659
4431
|
LfStatCard,
|
|
4432
|
+
LfSteps,
|
|
3660
4433
|
LfSwitch,
|
|
3661
4434
|
LfTable,
|
|
4435
|
+
LfTabs,
|
|
4436
|
+
LfTagInput,
|
|
3662
4437
|
LfTextField,
|
|
3663
4438
|
LfTextarea,
|
|
4439
|
+
LfToolbar,
|
|
3664
4440
|
LfTooltip,
|
|
3665
|
-
_sfc_main$
|
|
4441
|
+
_sfc_main$f as LfTransitionList,
|
|
4442
|
+
LfTree,
|
|
3666
4443
|
c as applySemanticPalette,
|
|
3667
4444
|
applyTheme,
|
|
3668
4445
|
d as colorToRgb,
|