@loafacto/ui 0.18.1 → 0.19.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 → LfSegmented-Dvpie4c_.js} +8 -2
- package/dist/LfSegmented-Dvpie4c_.js.map +1 -0
- package/dist/components/LfBadge.vue.d.ts +2 -2
- package/dist/components/LfCellGrid.vue.d.ts +27 -0
- package/dist/components/LfChoiceCard.vue.d.ts +37 -0
- package/dist/components/LfCodeBlock.vue.d.ts +18 -0
- package/dist/components/LfColorDot.vue.d.ts +30 -0
- package/dist/components/LfGridEditor.vue.d.ts +52 -0
- package/dist/components/LfRankBars.vue.d.ts +35 -0
- package/dist/components/LfScanInput.vue.d.ts +34 -0
- package/dist/components/LfScoreRing.vue.d.ts +21 -0
- package/dist/components/LfStatusTile.vue.d.ts +32 -0
- package/dist/components/LfStepper.vue.d.ts +27 -0
- package/dist/icons.d.ts +5 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1528 -475
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +861 -15
- package/dist/map3d.js +1 -1
- package/dist/types.d.ts +55 -0
- package/package.json +1 -1
- package/dist/LfSegmented-C35GdK7N.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +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, useModel, useId, mergeProps, isRef, vModelDynamic, mergeModels, vModelCheckbox, vModelRadio, useSlots } from "vue";
|
|
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, vShow } from "vue";
|
|
2
2
|
import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-8AxcQbPB.js";
|
|
3
3
|
import { b, c, d, e, f, h, i, l } from "./applyTheme-8AxcQbPB.js";
|
|
4
|
-
import { _ as _export_sfc, L as LfSpinner, a as LfIcon, u as useSplitAttrs, b as LfField, c as LfIconButton, d as LF_ICONS } from "./LfSegmented-
|
|
5
|
-
import { e as e2, f as f2 } from "./LfSegmented-
|
|
4
|
+
import { _ as _export_sfc, L as LfSpinner, a as LfIcon, u as useSplitAttrs, b as LfField, c as LfIconButton, d as LF_ICONS } from "./LfSegmented-Dvpie4c_.js";
|
|
5
|
+
import { e as e2, f as f2 } from "./LfSegmented-Dvpie4c_.js";
|
|
6
6
|
import { defineStore } from "pinia";
|
|
7
7
|
const LOAFACTO_SERVICES = [
|
|
8
8
|
{
|
|
@@ -151,26 +151,26 @@ function useTheme() {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const _sfc_main$
|
|
155
|
-
const _hoisted_1$
|
|
154
|
+
const _sfc_main$P = {};
|
|
155
|
+
const _hoisted_1$N = {
|
|
156
156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
157
157
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
158
158
|
"aria-hidden": "true"
|
|
159
159
|
};
|
|
160
160
|
function _sfc_render$1(_ctx, _cache) {
|
|
161
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
161
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$N, [..._cache[0] || (_cache[0] = [
|
|
162
162
|
createStaticVNode('<g transform="translate(-27.12,-91.37) scale(0.7136)"><circle cx="74" cy="27" r="15" fill="#8F6747"></circle><circle cx="104" cy="12" r="10" fill="#8F6747"></circle><path d="M43,48 L95,48 A5,5 0 0 1 100,53 L100,59 A5,5 0 0 1 95,64 L92,64 L92,124 L164,124 L164,148 A8,8 0 0 1 156,156 L54,156 A8,8 0 0 1 46,148 L46,64 L43,64 A5,5 0 0 1 38,59 L38,53 A5,5 0 0 1 43,48 Z" fill="currentColor"></path><path d="M92,94 A18,18 0 0 1 128,94 A18,18 0 0 1 164,94 L164,124 L92,124 Z" fill="#8F6747"></path></g><path transform="translate(122.11,0)" d="M6.80 0.00V-70.00H22.90V-14.80H52.70V0.00ZM82.95 1.20Q75.05 1.20 69.05 -2.15Q63.05 -5.50 59.60 -11.40Q56.15 -17.30 56.15 -25.00Q56.15 -32.70 59.50 -38.60Q62.85 -44.50 68.90 -47.85Q74.95 -51.20 82.65 -51.20Q90.55 -51.20 96.60 -47.85Q102.65 -44.50 106.00 -38.60Q109.35 -32.70 109.35 -25.00Q109.35 -17.30 106.00 -11.40Q102.65 -5.50 96.65 -2.15Q90.65 1.20 82.95 1.20ZM82.95 -13.20Q85.95 -13.20 88.30 -14.70Q90.65 -16.20 92.00 -18.85Q93.35 -21.50 93.35 -25.00Q93.35 -28.50 92.00 -31.15Q90.65 -33.80 88.25 -35.30Q85.85 -36.80 82.75 -36.80Q79.65 -36.80 77.25 -35.30Q74.85 -33.80 73.50 -31.15Q72.15 -28.50 72.15 -25.00Q72.15 -21.50 73.50 -18.85Q74.85 -16.20 77.30 -14.70Q79.75 -13.20 82.95 -13.20ZM133.40 1.20Q124.50 1.20 119.60 -2.80Q114.70 -6.80 114.70 -14.10Q114.70 -22.00 119.80 -25.90Q124.90 -29.80 134.10 -29.80H146.30Q145.80 -33.80 143.95 -36.05Q142.10 -38.30 138.00 -38.30Q135.20 -38.30 133.10 -37.00Q131.00 -35.70 129.50 -33.40L115.90 -37.90Q117.60 -41.60 120.55 -44.60Q123.50 -47.60 127.80 -49.40Q132.10 -51.20 137.80 -51.20Q145.60 -51.20 151.00 -48.30Q156.40 -45.40 159.10 -40.20Q161.80 -35.00 161.80 -27.90L161.60 0.00H147.00L146.80 -5.10Q144.80 -2.00 141.40 -0.40Q138.00 1.20 133.40 1.20ZM136.80 -10.60Q139.70 -10.60 141.90 -11.80Q144.10 -13.00 145.35 -15.05Q146.60 -17.10 146.60 -19.50V-19.80H140.00Q135.00 -19.80 132.80 -18.40Q130.60 -17.00 130.60 -14.50Q130.60 -12.70 132.25 -11.65Q133.90 -10.60 136.80 -10.60ZM176.65 0.00V-37.70H168.75V-50.00H176.65V-54.60Q176.65 -62.80 180.95 -67.50Q185.25 -72.20 194.15 -72.20Q197.45 -72.20 201.05 -71.05Q204.65 -69.90 207.25 -68.40L201.45 -57.40Q200.25 -58.20 199.05 -58.55Q197.85 -58.90 196.85 -58.90Q194.45 -58.90 193.35 -57.25Q192.25 -55.60 192.25 -51.80V-50.00H203.55V-37.70H192.25V0.00ZM227.90 1.20Q219.00 1.20 214.10 -2.80Q209.20 -6.80 209.20 -14.10Q209.20 -22.00 214.30 -25.90Q219.40 -29.80 228.60 -29.80H240.80Q240.30 -33.80 238.45 -36.05Q236.60 -38.30 232.50 -38.30Q229.70 -38.30 227.60 -37.00Q225.50 -35.70 224.00 -33.40L210.40 -37.90Q212.10 -41.60 215.05 -44.60Q218.00 -47.60 222.30 -49.40Q226.60 -51.20 232.30 -51.20Q240.10 -51.20 245.50 -48.30Q250.90 -45.40 253.60 -40.20Q256.30 -35.00 256.30 -27.90L256.10 0.00H241.50L241.30 -5.10Q239.30 -2.00 235.90 -0.40Q232.50 1.20 227.90 1.20ZM231.30 -10.60Q234.20 -10.60 236.40 -11.80Q238.60 -13.00 239.85 -15.05Q241.10 -17.10 241.10 -19.50V-19.80H234.50Q229.50 -19.80 227.30 -18.40Q225.10 -17.00 225.10 -14.50Q225.10 -12.70 226.75 -11.65Q228.40 -10.60 231.30 -10.60ZM291.05 1.20Q283.05 1.20 276.80 -2.15Q270.55 -5.50 267.05 -11.45Q263.55 -17.40 263.55 -25.00Q263.55 -32.70 267.05 -38.60Q270.55 -44.50 276.70 -47.85Q282.85 -51.20 290.85 -51.20Q298.55 -51.20 304.95 -47.30Q311.35 -43.40 314.15 -36.00L299.35 -31.00Q298.25 -33.40 295.70 -34.95Q293.15 -36.50 290.05 -36.50Q286.95 -36.50 284.60 -35.05Q282.25 -33.60 280.90 -31.00Q279.55 -28.40 279.55 -25.00Q279.55 -21.60 280.90 -19.05Q282.25 -16.50 284.70 -15.00Q287.15 -13.50 290.25 -13.50Q293.35 -13.50 295.85 -15.10Q298.35 -16.70 299.55 -19.30L314.35 -14.30Q311.45 -6.80 305.10 -2.80Q298.75 1.20 291.05 1.20ZM342.80 1.20Q333.90 1.20 329.55 -3.05Q325.20 -7.30 325.20 -15.20V-36.90H317.40V-50.00H325.20V-65.60H340.80V-50.00H352.20V-36.90H340.80V-19.10Q340.80 -16.10 341.90 -14.70Q343.00 -13.30 345.30 -13.30Q346.20 -13.30 347.40 -13.75Q348.60 -14.20 349.60 -14.90L355.00 -3.50Q352.60 -1.50 349.25 -0.15Q345.90 1.20 342.80 1.20ZM386.85 1.20Q378.95 1.20 372.95 -2.15Q366.95 -5.50 363.50 -11.40Q360.05 -17.30 360.05 -25.00Q360.05 -32.70 363.40 -38.60Q366.75 -44.50 372.80 -47.85Q378.85 -51.20 386.55 -51.20Q394.45 -51.20 400.50 -47.85Q406.55 -44.50 409.90 -38.60Q413.25 -32.70 413.25 -25.00Q413.25 -17.30 409.90 -11.40Q406.55 -5.50 400.55 -2.15Q394.55 1.20 386.85 1.20ZM386.85 -13.20Q389.85 -13.20 392.20 -14.70Q394.55 -16.20 395.90 -18.85Q397.25 -21.50 397.25 -25.00Q397.25 -28.50 395.90 -31.15Q394.55 -33.80 392.15 -35.30Q389.75 -36.80 386.65 -36.80Q383.55 -36.80 381.15 -35.30Q378.75 -33.80 377.40 -31.15Q376.05 -28.50 376.05 -25.00Q376.05 -21.50 377.40 -18.85Q378.75 -16.20 381.20 -14.70Q383.65 -13.20 386.85 -13.20Z" fill="currentColor"></path>', 2)
|
|
163
163
|
])]);
|
|
164
164
|
}
|
|
165
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
166
|
-
const _sfc_main$
|
|
167
|
-
const _hoisted_1$
|
|
165
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$1]]);
|
|
166
|
+
const _sfc_main$O = {};
|
|
167
|
+
const _hoisted_1$M = {
|
|
168
168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
169
169
|
viewBox: "30 -4 142 168",
|
|
170
170
|
"aria-hidden": "true"
|
|
171
171
|
};
|
|
172
172
|
function _sfc_render(_ctx, _cache) {
|
|
173
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
173
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$M, [..._cache[0] || (_cache[0] = [
|
|
174
174
|
createElementVNode("circle", {
|
|
175
175
|
cx: "74",
|
|
176
176
|
cy: "27",
|
|
@@ -193,38 +193,38 @@ function _sfc_render(_ctx, _cache) {
|
|
|
193
193
|
}, null, -1)
|
|
194
194
|
])]);
|
|
195
195
|
}
|
|
196
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
197
|
-
const _hoisted_1$
|
|
198
|
-
const _hoisted_2$
|
|
199
|
-
const _hoisted_3$
|
|
200
|
-
const _hoisted_4$
|
|
201
|
-
const _hoisted_5$
|
|
202
|
-
const _hoisted_6$
|
|
203
|
-
const _hoisted_7$
|
|
204
|
-
const _hoisted_8$
|
|
196
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render]]);
|
|
197
|
+
const _hoisted_1$L = { class: "lf-topbar" };
|
|
198
|
+
const _hoisted_2$H = { class: "lf-topbar__inner" };
|
|
199
|
+
const _hoisted_3$A = ["aria-label", "title", "aria-expanded"];
|
|
200
|
+
const _hoisted_4$v = ["href", "aria-label"];
|
|
201
|
+
const _hoisted_5$s = ["src"];
|
|
202
|
+
const _hoisted_6$k = { class: "lf-brand__name" };
|
|
203
|
+
const _hoisted_7$h = ["aria-expanded"];
|
|
204
|
+
const _hoisted_8$7 = {
|
|
205
205
|
key: 0,
|
|
206
206
|
class: "lf-switcher__menu",
|
|
207
207
|
role: "menu"
|
|
208
208
|
};
|
|
209
|
-
const _hoisted_9$
|
|
210
|
-
const _hoisted_10$
|
|
209
|
+
const _hoisted_9$4 = ["href", "onClick"];
|
|
210
|
+
const _hoisted_10$3 = {
|
|
211
211
|
key: 0,
|
|
212
212
|
class: "lf-switcher__icon",
|
|
213
213
|
viewBox: "0 0 24 24",
|
|
214
214
|
"aria-hidden": "true"
|
|
215
215
|
};
|
|
216
|
-
const _hoisted_11$
|
|
217
|
-
const _hoisted_12$
|
|
218
|
-
const _hoisted_13$
|
|
216
|
+
const _hoisted_11$2 = ["d"];
|
|
217
|
+
const _hoisted_12$2 = { class: "lf-switcher__label" };
|
|
218
|
+
const _hoisted_13$2 = {
|
|
219
219
|
key: 1,
|
|
220
220
|
class: "admin-badge admin-badge--gray"
|
|
221
221
|
};
|
|
222
|
-
const _hoisted_14 = {
|
|
222
|
+
const _hoisted_14$1 = {
|
|
223
223
|
key: 2,
|
|
224
224
|
class: "admin-badge admin-badge--yellow"
|
|
225
225
|
};
|
|
226
|
-
const _hoisted_15 = ["aria-expanded"];
|
|
227
|
-
const _hoisted_16 = ["src"];
|
|
226
|
+
const _hoisted_15$1 = ["aria-expanded"];
|
|
227
|
+
const _hoisted_16$1 = ["src"];
|
|
228
228
|
const _hoisted_17 = {
|
|
229
229
|
key: 1,
|
|
230
230
|
class: "lf-user__avatar lf-user__avatar--fallback"
|
|
@@ -256,7 +256,7 @@ const _hoisted_32 = { class: "site-footer-inner" };
|
|
|
256
256
|
const ICON_SUN = "M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3h0V2zm0 17v3h0v-3zM2 11h3v2H2v-2zm17 0h3v2h-3v-2zM4.2 4.2l2.1 2.1L4.9 7.7 2.8 5.6l1.4-1.4zm13.5 13.5 2.1 2.1-1.4 1.4-2.1-2.1 1.4-1.4zM19.8 4.2l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1zM6.3 17.7l1.4 1.4-2.1 2.1-1.4-1.4 2.1-2.1z";
|
|
257
257
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
258
258
|
const RAIL_KEY = "lf-rail-hidden";
|
|
259
|
-
const _sfc_main$
|
|
259
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
260
260
|
__name: "AppShell",
|
|
261
261
|
props: {
|
|
262
262
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -412,8 +412,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
412
412
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
413
413
|
})
|
|
414
414
|
}, null, 4)) : createCommentVNode("", true),
|
|
415
|
-
createElementVNode("header", _hoisted_1$
|
|
416
|
-
createElementVNode("div", _hoisted_2$
|
|
415
|
+
createElementVNode("header", _hoisted_1$L, [
|
|
416
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
417
417
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
418
418
|
key: 0,
|
|
419
419
|
type: "button",
|
|
@@ -432,7 +432,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
432
432
|
fill: "currentColor"
|
|
433
433
|
})
|
|
434
434
|
], -1)
|
|
435
|
-
])], 8, _hoisted_3$
|
|
435
|
+
])], 8, _hoisted_3$A)) : createCommentVNode("", true),
|
|
436
436
|
createElementVNode("a", {
|
|
437
437
|
class: "lf-brand",
|
|
438
438
|
href: __props.brandHref,
|
|
@@ -444,13 +444,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
444
444
|
src: __props.logoUrl,
|
|
445
445
|
alt: "",
|
|
446
446
|
class: "lf-brand__logo"
|
|
447
|
-
}, null, 8, _hoisted_5$
|
|
448
|
-
createElementVNode("span", _hoisted_6$
|
|
447
|
+
}, null, 8, _hoisted_5$s),
|
|
448
|
+
createElementVNode("span", _hoisted_6$k, toDisplayString(__props.brandName), 1)
|
|
449
449
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
450
450
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
451
451
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
452
452
|
], 64))
|
|
453
|
-
], 8, _hoisted_4$
|
|
453
|
+
], 8, _hoisted_4$v),
|
|
454
454
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
455
455
|
key: 1,
|
|
456
456
|
ref_key: "switcherEl",
|
|
@@ -475,10 +475,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
475
475
|
fill: "currentColor"
|
|
476
476
|
})
|
|
477
477
|
], -1))
|
|
478
|
-
], 8, _hoisted_7$
|
|
478
|
+
], 8, _hoisted_7$h),
|
|
479
479
|
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
480
480
|
default: withCtx(() => [
|
|
481
|
-
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
481
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$7, [
|
|
482
482
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
483
483
|
return openBlock(), createElementBlock("a", {
|
|
484
484
|
key: svc.id,
|
|
@@ -490,15 +490,15 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
490
490
|
role: "menuitem",
|
|
491
491
|
onClick: ($event) => onServiceClick($event, svc)
|
|
492
492
|
}, [
|
|
493
|
-
svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$
|
|
493
|
+
svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$3, [
|
|
494
494
|
createElementVNode("path", {
|
|
495
495
|
d: svc.iconPath,
|
|
496
496
|
fill: "currentColor"
|
|
497
|
-
}, null, 8, _hoisted_11$
|
|
497
|
+
}, null, 8, _hoisted_11$2)
|
|
498
498
|
])) : createCommentVNode("", true),
|
|
499
|
-
createElementVNode("span", _hoisted_12$
|
|
500
|
-
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$
|
|
501
|
-
], 10, _hoisted_9$
|
|
499
|
+
createElementVNode("span", _hoisted_12$2, toDisplayString(svc.name), 1),
|
|
500
|
+
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$2, toDisplayString(t.value.comingSoon), 1)) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14$1, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
501
|
+
], 10, _hoisted_9$4);
|
|
502
502
|
}), 128))
|
|
503
503
|
])) : createCommentVNode("", true)
|
|
504
504
|
]),
|
|
@@ -524,7 +524,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
524
524
|
src: __props.user.avatarUrl,
|
|
525
525
|
alt: "",
|
|
526
526
|
class: "lf-user__avatar"
|
|
527
|
-
}, null, 8, _hoisted_16)) : (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(userInitial.value), 1)),
|
|
527
|
+
}, null, 8, _hoisted_16$1)) : (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(userInitial.value), 1)),
|
|
528
528
|
createElementVNode("span", _hoisted_18, toDisplayString(__props.user.displayName), 1),
|
|
529
529
|
_cache[7] || (_cache[7] = createElementVNode("svg", {
|
|
530
530
|
class: "lf-user__caret",
|
|
@@ -536,7 +536,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
536
536
|
fill: "currentColor"
|
|
537
537
|
})
|
|
538
538
|
], -1))
|
|
539
|
-
], 8, _hoisted_15),
|
|
539
|
+
], 8, _hoisted_15$1),
|
|
540
540
|
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
541
541
|
default: withCtx(() => [
|
|
542
542
|
userOpen.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -636,7 +636,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
639
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-b8a57f75"]]);
|
|
640
640
|
function generateId() {
|
|
641
641
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
642
642
|
}
|
|
@@ -670,26 +670,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
670
670
|
}
|
|
671
671
|
return { items, add, remove, success, error, info, warning };
|
|
672
672
|
});
|
|
673
|
-
const _hoisted_1$
|
|
673
|
+
const _hoisted_1$K = {
|
|
674
674
|
class: "toast-container",
|
|
675
675
|
role: "region",
|
|
676
676
|
"aria-label": "알림"
|
|
677
677
|
};
|
|
678
|
-
const _hoisted_2$
|
|
679
|
-
const _hoisted_3$
|
|
678
|
+
const _hoisted_2$G = ["onClick"];
|
|
679
|
+
const _hoisted_3$z = {
|
|
680
680
|
class: "toast-icon",
|
|
681
681
|
viewBox: "0 0 24 24",
|
|
682
682
|
"aria-hidden": "true"
|
|
683
683
|
};
|
|
684
|
-
const _hoisted_4$
|
|
685
|
-
const _hoisted_5$
|
|
686
|
-
const _hoisted_6$
|
|
687
|
-
const _hoisted_7$
|
|
684
|
+
const _hoisted_4$u = ["d"];
|
|
685
|
+
const _hoisted_5$r = { class: "toast-message" };
|
|
686
|
+
const _hoisted_6$j = ["onClick"];
|
|
687
|
+
const _hoisted_7$g = {
|
|
688
688
|
viewBox: "0 0 24 24",
|
|
689
689
|
"aria-hidden": "true"
|
|
690
690
|
};
|
|
691
|
-
const _hoisted_8$
|
|
692
|
-
const _sfc_main$
|
|
691
|
+
const _hoisted_8$6 = ["d"];
|
|
692
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
693
693
|
__name: "AppToast",
|
|
694
694
|
setup(__props) {
|
|
695
695
|
const toastStore = useToastStore();
|
|
@@ -721,7 +721,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
721
721
|
});
|
|
722
722
|
return (_ctx, _cache) => {
|
|
723
723
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
724
|
-
createElementVNode("div", _hoisted_1$
|
|
724
|
+
createElementVNode("div", _hoisted_1$K, [
|
|
725
725
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
726
726
|
default: withCtx(() => [
|
|
727
727
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -731,27 +731,27 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
731
731
|
role: "alert",
|
|
732
732
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
733
733
|
}, [
|
|
734
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
734
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$z, [
|
|
735
735
|
createElementVNode("path", {
|
|
736
736
|
d: ICON_PATHS[item.type],
|
|
737
737
|
fill: "currentColor"
|
|
738
|
-
}, null, 8, _hoisted_4$
|
|
738
|
+
}, null, 8, _hoisted_4$u)
|
|
739
739
|
])),
|
|
740
|
-
createElementVNode("span", _hoisted_5$
|
|
740
|
+
createElementVNode("span", _hoisted_5$r, toDisplayString(item.message), 1),
|
|
741
741
|
createElementVNode("button", {
|
|
742
742
|
type: "button",
|
|
743
743
|
class: "toast-close",
|
|
744
744
|
"aria-label": "닫기",
|
|
745
745
|
onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
|
|
746
746
|
}, [
|
|
747
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
747
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$g, [
|
|
748
748
|
createElementVNode("path", {
|
|
749
749
|
d: ICON_PATHS.close,
|
|
750
750
|
fill: "currentColor"
|
|
751
|
-
}, null, 8, _hoisted_8$
|
|
751
|
+
}, null, 8, _hoisted_8$6)
|
|
752
752
|
]))
|
|
753
|
-
], 8, _hoisted_6$
|
|
754
|
-
], 10, _hoisted_2$
|
|
753
|
+
], 8, _hoisted_6$j)
|
|
754
|
+
], 10, _hoisted_2$G);
|
|
755
755
|
}), 128))
|
|
756
756
|
]),
|
|
757
757
|
_: 1
|
|
@@ -761,7 +761,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
764
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-58e54e0c"]]);
|
|
765
765
|
const useLoadingStore = defineStore("loading", () => {
|
|
766
766
|
const count = ref(0);
|
|
767
767
|
const loading = computed(() => count.value > 0);
|
|
@@ -781,14 +781,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
781
781
|
}
|
|
782
782
|
return { loading, count, start, stop, withLoading };
|
|
783
783
|
});
|
|
784
|
-
const _hoisted_1$
|
|
784
|
+
const _hoisted_1$J = {
|
|
785
785
|
key: 0,
|
|
786
786
|
class: "loading-overlay",
|
|
787
787
|
role: "status",
|
|
788
788
|
"aria-live": "polite",
|
|
789
789
|
"aria-label": "로딩 중"
|
|
790
790
|
};
|
|
791
|
-
const _sfc_main$
|
|
791
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
792
792
|
__name: "AppLoadingOverlay",
|
|
793
793
|
setup(__props) {
|
|
794
794
|
const loadingStore = useLoadingStore();
|
|
@@ -796,7 +796,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
796
796
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
797
797
|
createVNode(Transition, { name: "fade" }, {
|
|
798
798
|
default: withCtx(() => [
|
|
799
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
799
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$J, [..._cache[0] || (_cache[0] = [
|
|
800
800
|
createElementVNode("div", {
|
|
801
801
|
class: "loading-spinner",
|
|
802
802
|
"aria-hidden": "true"
|
|
@@ -809,7 +809,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
812
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
813
813
|
const useConfirmStore = defineStore("confirm", () => {
|
|
814
814
|
const open = ref(false);
|
|
815
815
|
const title = ref("확인");
|
|
@@ -857,27 +857,27 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
857
857
|
resolve
|
|
858
858
|
};
|
|
859
859
|
});
|
|
860
|
-
const _hoisted_1$
|
|
860
|
+
const _hoisted_1$I = {
|
|
861
861
|
key: 0,
|
|
862
862
|
class: "app-confirm-backdrop"
|
|
863
863
|
};
|
|
864
|
-
const _hoisted_2$
|
|
864
|
+
const _hoisted_2$F = {
|
|
865
865
|
class: "app-confirm",
|
|
866
866
|
role: "dialog",
|
|
867
867
|
"aria-modal": "true"
|
|
868
868
|
};
|
|
869
|
-
const _hoisted_3$
|
|
870
|
-
const _hoisted_4$
|
|
871
|
-
const _hoisted_5$
|
|
872
|
-
const _hoisted_6$
|
|
873
|
-
const _hoisted_7$
|
|
869
|
+
const _hoisted_3$y = { class: "app-confirm__header" };
|
|
870
|
+
const _hoisted_4$t = { class: "app-confirm__title" };
|
|
871
|
+
const _hoisted_5$q = { class: "app-confirm__body" };
|
|
872
|
+
const _hoisted_6$i = { class: "app-confirm__message" };
|
|
873
|
+
const _hoisted_7$f = {
|
|
874
874
|
key: 0,
|
|
875
875
|
class: "app-confirm__require"
|
|
876
876
|
};
|
|
877
|
-
const _hoisted_8$
|
|
878
|
-
const _hoisted_9$
|
|
879
|
-
const _hoisted_10$
|
|
880
|
-
const _sfc_main$
|
|
877
|
+
const _hoisted_8$5 = { class: "app-confirm__require-label" };
|
|
878
|
+
const _hoisted_9$3 = { class: "app-confirm__actions" };
|
|
879
|
+
const _hoisted_10$2 = ["disabled"];
|
|
880
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
881
881
|
__name: "AppConfirmModal",
|
|
882
882
|
setup(__props) {
|
|
883
883
|
const store = useConfirmStore();
|
|
@@ -902,15 +902,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
902
902
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
903
903
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
904
904
|
default: withCtx(() => [
|
|
905
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
906
|
-
createElementVNode("div", _hoisted_2$
|
|
907
|
-
createElementVNode("div", _hoisted_3$
|
|
908
|
-
createElementVNode("h3", _hoisted_4$
|
|
905
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
906
|
+
createElementVNode("div", _hoisted_2$F, [
|
|
907
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
908
|
+
createElementVNode("h3", _hoisted_4$t, toDisplayString(unref(store).title), 1)
|
|
909
909
|
]),
|
|
910
|
-
createElementVNode("div", _hoisted_5$
|
|
911
|
-
createElementVNode("p", _hoisted_6$
|
|
912
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
913
|
-
createElementVNode("span", _hoisted_8$
|
|
910
|
+
createElementVNode("div", _hoisted_5$q, [
|
|
911
|
+
createElementVNode("p", _hoisted_6$i, toDisplayString(unref(store).message), 1),
|
|
912
|
+
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$f, [
|
|
913
|
+
createElementVNode("span", _hoisted_8$5, [
|
|
914
914
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
915
915
|
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
916
916
|
]),
|
|
@@ -928,7 +928,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
928
928
|
])
|
|
929
929
|
])) : createCommentVNode("", true)
|
|
930
930
|
]),
|
|
931
|
-
createElementVNode("div", _hoisted_9$
|
|
931
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
932
932
|
createElementVNode("button", {
|
|
933
933
|
type: "button",
|
|
934
934
|
class: "app-confirm__btn app-confirm__btn--ghost",
|
|
@@ -939,7 +939,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
939
939
|
class: normalizeClass(["app-confirm__btn", unref(store).danger ? "app-confirm__btn--danger" : "app-confirm__btn--primary"]),
|
|
940
940
|
disabled: !unref(store).canConfirm,
|
|
941
941
|
onClick: _cache[3] || (_cache[3] = ($event) => unref(store).resolve(true))
|
|
942
|
-
}, toDisplayString(unref(store).confirmText), 11, _hoisted_10$
|
|
942
|
+
}, toDisplayString(unref(store).confirmText), 11, _hoisted_10$2)
|
|
943
943
|
])
|
|
944
944
|
])
|
|
945
945
|
])) : createCommentVNode("", true)
|
|
@@ -950,12 +950,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
952
|
});
|
|
953
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
954
|
-
const _hoisted_1$
|
|
953
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-561536f9"]]);
|
|
954
|
+
const _hoisted_1$H = {
|
|
955
955
|
key: 2,
|
|
956
956
|
class: "lf-btn__label"
|
|
957
957
|
};
|
|
958
|
-
const _sfc_main$
|
|
958
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
959
959
|
__name: "LfButton",
|
|
960
960
|
props: {
|
|
961
961
|
variant: { default: "ghost" },
|
|
@@ -992,7 +992,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
992
992
|
name: __props.icon,
|
|
993
993
|
path: __props.iconPath
|
|
994
994
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
995
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
995
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$H, [
|
|
996
996
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
997
997
|
])) : createCommentVNode("", true),
|
|
998
998
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -1005,19 +1005,19 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
1008
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1009
|
-
const _hoisted_1$
|
|
1010
|
-
const _hoisted_2$
|
|
1008
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-0d2e2b97"]]);
|
|
1009
|
+
const _hoisted_1$G = { class: "lf-control-wrap" };
|
|
1010
|
+
const _hoisted_2$E = {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
1013
1013
|
};
|
|
1014
|
-
const _hoisted_3$
|
|
1015
|
-
const _hoisted_4$
|
|
1014
|
+
const _hoisted_3$x = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
1015
|
+
const _hoisted_4$s = {
|
|
1016
1016
|
key: 1,
|
|
1017
1017
|
class: "lf-control-wrap__suffix"
|
|
1018
1018
|
};
|
|
1019
|
-
const _hoisted_5$
|
|
1020
|
-
const _sfc_main$
|
|
1019
|
+
const _hoisted_5$p = ["aria-label"];
|
|
1020
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1021
1021
|
...{ inheritAttrs: false },
|
|
1022
1022
|
__name: "LfTextField",
|
|
1023
1023
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1069,8 +1069,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1069
1069
|
"html-for": unref(inputId)
|
|
1070
1070
|
}), {
|
|
1071
1071
|
default: withCtx(() => [
|
|
1072
|
-
createElementVNode("div", _hoisted_1$
|
|
1073
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1072
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
1073
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$E, [
|
|
1074
1074
|
createVNode(LfIcon, {
|
|
1075
1075
|
name: __props.icon,
|
|
1076
1076
|
path: __props.iconPath,
|
|
@@ -1091,10 +1091,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1091
1091
|
readonly: __props.readonly,
|
|
1092
1092
|
required: __props.required,
|
|
1093
1093
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1094
|
-
}), null, 16, _hoisted_3$
|
|
1094
|
+
}), null, 16, _hoisted_3$x), [
|
|
1095
1095
|
[vModelDynamic, unref(model)]
|
|
1096
1096
|
]),
|
|
1097
|
-
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1097
|
+
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$s, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1098
1098
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1099
1099
|
key: 2,
|
|
1100
1100
|
type: "button",
|
|
@@ -1106,7 +1106,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1106
1106
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1107
1107
|
size: "1.125rem"
|
|
1108
1108
|
}, null, 8, ["name"])
|
|
1109
|
-
], 8, _hoisted_5$
|
|
1109
|
+
], 8, _hoisted_5$p)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1110
1110
|
key: 3,
|
|
1111
1111
|
type: "button",
|
|
1112
1112
|
class: "lf-control-action",
|
|
@@ -1125,13 +1125,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
1127
|
});
|
|
1128
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1129
|
-
const _hoisted_1$
|
|
1130
|
-
const _hoisted_2$
|
|
1128
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-e113043f"]]);
|
|
1129
|
+
const _hoisted_1$F = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1130
|
+
const _hoisted_2$D = {
|
|
1131
1131
|
key: 0,
|
|
1132
1132
|
class: "lf-textarea__counter"
|
|
1133
1133
|
};
|
|
1134
|
-
const _sfc_main$
|
|
1134
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1135
1135
|
...{ inheritAttrs: false },
|
|
1136
1136
|
__name: "LfTextarea",
|
|
1137
1137
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1195,32 +1195,32 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1195
1195
|
maxlength: __props.maxlength,
|
|
1196
1196
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1197
1197
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1198
|
-
}), null, 16, _hoisted_1$
|
|
1198
|
+
}), null, 16, _hoisted_1$F), [
|
|
1199
1199
|
[vModelText, model.value]
|
|
1200
1200
|
]),
|
|
1201
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1201
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$D, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1202
1202
|
]),
|
|
1203
1203
|
_: 1
|
|
1204
1204
|
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
1208
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1209
|
-
const _hoisted_1$
|
|
1210
|
-
const _hoisted_2$
|
|
1208
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-81fbed25"]]);
|
|
1209
|
+
const _hoisted_1$E = ["disabled", "value"];
|
|
1210
|
+
const _hoisted_2$C = {
|
|
1211
1211
|
class: "lf-check__box",
|
|
1212
1212
|
"aria-hidden": "true"
|
|
1213
1213
|
};
|
|
1214
|
-
const _hoisted_3$
|
|
1214
|
+
const _hoisted_3$w = {
|
|
1215
1215
|
key: 0,
|
|
1216
1216
|
class: "lf-check__text"
|
|
1217
1217
|
};
|
|
1218
|
-
const _hoisted_4$
|
|
1219
|
-
const _hoisted_5$
|
|
1218
|
+
const _hoisted_4$r = { class: "lf-check__label" };
|
|
1219
|
+
const _hoisted_5$o = {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
class: "lf-check__desc"
|
|
1222
1222
|
};
|
|
1223
|
-
const _sfc_main$
|
|
1223
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1224
1224
|
...{ inheritAttrs: false },
|
|
1225
1225
|
__name: "LfCheckbox",
|
|
1226
1226
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1245,39 +1245,39 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1245
1245
|
type: "checkbox",
|
|
1246
1246
|
disabled: __props.disabled,
|
|
1247
1247
|
value: __props.value
|
|
1248
|
-
}), null, 16, _hoisted_1$
|
|
1248
|
+
}), null, 16, _hoisted_1$E), [
|
|
1249
1249
|
[vModelCheckbox, model.value]
|
|
1250
1250
|
]),
|
|
1251
|
-
createElementVNode("span", _hoisted_2$
|
|
1251
|
+
createElementVNode("span", _hoisted_2$C, [
|
|
1252
1252
|
createVNode(LfIcon, {
|
|
1253
1253
|
name: "check",
|
|
1254
1254
|
size: "0.875rem"
|
|
1255
1255
|
})
|
|
1256
1256
|
]),
|
|
1257
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1258
|
-
createElementVNode("span", _hoisted_4$
|
|
1257
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$w, [
|
|
1258
|
+
createElementVNode("span", _hoisted_4$r, [
|
|
1259
1259
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1260
1260
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1261
1261
|
], true)
|
|
1262
1262
|
]),
|
|
1263
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1263
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$o, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1264
1264
|
])) : createCommentVNode("", true)
|
|
1265
1265
|
], 2);
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
1268
|
});
|
|
1269
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1270
|
-
const _hoisted_1$
|
|
1269
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-a86332f0"]]);
|
|
1270
|
+
const _hoisted_1$D = {
|
|
1271
1271
|
key: 0,
|
|
1272
1272
|
class: "lf-switch__text"
|
|
1273
1273
|
};
|
|
1274
|
-
const _hoisted_2$
|
|
1275
|
-
const _hoisted_3$
|
|
1274
|
+
const _hoisted_2$B = { class: "lf-switch__label" };
|
|
1275
|
+
const _hoisted_3$v = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "lf-switch__desc"
|
|
1278
1278
|
};
|
|
1279
|
-
const _hoisted_4$
|
|
1280
|
-
const _sfc_main$
|
|
1279
|
+
const _hoisted_4$q = ["disabled"];
|
|
1280
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
1281
1281
|
...{ inheritAttrs: false },
|
|
1282
1282
|
__name: "LfSwitch",
|
|
1283
1283
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1296,13 +1296,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1296
1296
|
return openBlock(), createElementBlock("label", {
|
|
1297
1297
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1298
1298
|
}, [
|
|
1299
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1300
|
-
createElementVNode("span", _hoisted_2$
|
|
1299
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$D, [
|
|
1300
|
+
createElementVNode("span", _hoisted_2$B, [
|
|
1301
1301
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1302
1302
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1303
1303
|
], true)
|
|
1304
1304
|
]),
|
|
1305
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1305
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$v, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1306
1306
|
])) : createCommentVNode("", true),
|
|
1307
1307
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1308
1308
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1310,7 +1310,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1310
1310
|
type: "checkbox",
|
|
1311
1311
|
role: "switch",
|
|
1312
1312
|
disabled: __props.disabled
|
|
1313
|
-
}), null, 16, _hoisted_4$
|
|
1313
|
+
}), null, 16, _hoisted_4$q), [
|
|
1314
1314
|
[vModelCheckbox, model.value]
|
|
1315
1315
|
]),
|
|
1316
1316
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1323,33 +1323,33 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1327
|
-
const _hoisted_1$
|
|
1326
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1327
|
+
const _hoisted_1$C = {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
class: "lf-radio-group__legend"
|
|
1330
1330
|
};
|
|
1331
|
-
const _hoisted_2$
|
|
1331
|
+
const _hoisted_2$A = {
|
|
1332
1332
|
key: 0,
|
|
1333
1333
|
class: "lf-radio-group__required",
|
|
1334
1334
|
"aria-hidden": "true"
|
|
1335
1335
|
};
|
|
1336
|
-
const _hoisted_3$
|
|
1337
|
-
const _hoisted_4$
|
|
1338
|
-
const _hoisted_5$
|
|
1339
|
-
const _hoisted_6$
|
|
1336
|
+
const _hoisted_3$u = ["name", "value", "disabled"];
|
|
1337
|
+
const _hoisted_4$p = { class: "lf-radio__text" };
|
|
1338
|
+
const _hoisted_5$n = { class: "lf-radio__label" };
|
|
1339
|
+
const _hoisted_6$h = {
|
|
1340
1340
|
key: 0,
|
|
1341
1341
|
class: "lf-radio__desc"
|
|
1342
1342
|
};
|
|
1343
|
-
const _hoisted_7$
|
|
1343
|
+
const _hoisted_7$e = {
|
|
1344
1344
|
key: 1,
|
|
1345
1345
|
class: "lf-radio-group__error",
|
|
1346
1346
|
role: "alert"
|
|
1347
1347
|
};
|
|
1348
|
-
const _hoisted_8$
|
|
1348
|
+
const _hoisted_8$4 = {
|
|
1349
1349
|
key: 2,
|
|
1350
1350
|
class: "lf-radio-group__hint"
|
|
1351
1351
|
};
|
|
1352
|
-
const _sfc_main$
|
|
1352
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1353
1353
|
__name: "LfRadioGroup",
|
|
1354
1354
|
props: /* @__PURE__ */ mergeModels({
|
|
1355
1355
|
options: { default: () => [] },
|
|
@@ -1375,9 +1375,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1375
1375
|
return openBlock(), createElementBlock("fieldset", {
|
|
1376
1376
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1377
1377
|
}, [
|
|
1378
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1378
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$C, [
|
|
1379
1379
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1380
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1380
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$A, "*")) : createCommentVNode("", true)
|
|
1381
1381
|
])) : createCommentVNode("", true),
|
|
1382
1382
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1383
1383
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1391,42 +1391,42 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1391
1391
|
name: unref(groupName),
|
|
1392
1392
|
value: opt.value,
|
|
1393
1393
|
disabled: __props.disabled || opt.disabled
|
|
1394
|
-
}, null, 8, _hoisted_3$
|
|
1394
|
+
}, null, 8, _hoisted_3$u), [
|
|
1395
1395
|
[vModelRadio, model.value]
|
|
1396
1396
|
]),
|
|
1397
1397
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1398
1398
|
class: "lf-radio__dot",
|
|
1399
1399
|
"aria-hidden": "true"
|
|
1400
1400
|
}, null, -1)),
|
|
1401
|
-
createElementVNode("span", _hoisted_4$
|
|
1402
|
-
createElementVNode("span", _hoisted_5$
|
|
1403
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
1401
|
+
createElementVNode("span", _hoisted_4$p, [
|
|
1402
|
+
createElementVNode("span", _hoisted_5$n, toDisplayString(opt.label), 1),
|
|
1403
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$h, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1404
1404
|
])
|
|
1405
1405
|
], 2);
|
|
1406
1406
|
}), 128)),
|
|
1407
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1407
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$e, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_8$4, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1408
1408
|
], 2);
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
});
|
|
1412
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1413
|
-
const _hoisted_1$
|
|
1414
|
-
const _hoisted_2$
|
|
1412
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-cffad147"]]);
|
|
1413
|
+
const _hoisted_1$B = ["aria-labelledby", "aria-label"];
|
|
1414
|
+
const _hoisted_2$z = {
|
|
1415
1415
|
key: 0,
|
|
1416
1416
|
class: "lf-modal__header"
|
|
1417
1417
|
};
|
|
1418
|
-
const _hoisted_3$
|
|
1419
|
-
const _hoisted_4$
|
|
1420
|
-
const _hoisted_5$
|
|
1418
|
+
const _hoisted_3$t = { class: "lf-modal__heading" };
|
|
1419
|
+
const _hoisted_4$o = ["id"];
|
|
1420
|
+
const _hoisted_5$m = {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
class: "lf-modal__subtitle"
|
|
1423
1423
|
};
|
|
1424
|
-
const _hoisted_6$
|
|
1425
|
-
const _hoisted_7$
|
|
1424
|
+
const _hoisted_6$g = { class: "lf-modal__body" };
|
|
1425
|
+
const _hoisted_7$d = {
|
|
1426
1426
|
key: 1,
|
|
1427
1427
|
class: "lf-modal__footer"
|
|
1428
1428
|
};
|
|
1429
|
-
const _sfc_main$
|
|
1429
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1430
1430
|
__name: "LfModal",
|
|
1431
1431
|
props: /* @__PURE__ */ mergeModels({
|
|
1432
1432
|
title: {},
|
|
@@ -1538,14 +1538,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1538
1538
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1539
1539
|
onKeydown
|
|
1540
1540
|
}, [
|
|
1541
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1541
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$z, [
|
|
1542
1542
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1543
|
-
createElementVNode("div", _hoisted_3$
|
|
1543
|
+
createElementVNode("div", _hoisted_3$t, [
|
|
1544
1544
|
createElementVNode("h2", {
|
|
1545
1545
|
id: unref(titleId),
|
|
1546
1546
|
class: "lf-modal__title"
|
|
1547
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1548
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
1547
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$o),
|
|
1548
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$m, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1549
1549
|
])
|
|
1550
1550
|
], true),
|
|
1551
1551
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1556,13 +1556,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1556
1556
|
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
1557
1557
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1558
1558
|
])) : createCommentVNode("", true),
|
|
1559
|
-
createElementVNode("div", _hoisted_6$
|
|
1559
|
+
createElementVNode("div", _hoisted_6$g, [
|
|
1560
1560
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1561
1561
|
]),
|
|
1562
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1562
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$d, [
|
|
1563
1563
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1564
1564
|
])) : createCommentVNode("", true)
|
|
1565
|
-
], 42, _hoisted_1$
|
|
1565
|
+
], 42, _hoisted_1$B)
|
|
1566
1566
|
], 32)) : createCommentVNode("", true)
|
|
1567
1567
|
]),
|
|
1568
1568
|
_: 3
|
|
@@ -1571,30 +1571,30 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1571
1571
|
};
|
|
1572
1572
|
}
|
|
1573
1573
|
});
|
|
1574
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1575
|
-
const _hoisted_1$
|
|
1574
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-da4a649b"]]);
|
|
1575
|
+
const _hoisted_1$A = {
|
|
1576
1576
|
key: 0,
|
|
1577
1577
|
class: "lf-card__head"
|
|
1578
1578
|
};
|
|
1579
|
-
const _hoisted_2$
|
|
1579
|
+
const _hoisted_2$y = {
|
|
1580
1580
|
key: 0,
|
|
1581
1581
|
class: "lf-card__icon"
|
|
1582
1582
|
};
|
|
1583
|
-
const _hoisted_3$
|
|
1584
|
-
const _hoisted_4$
|
|
1583
|
+
const _hoisted_3$s = { class: "lf-card__title" };
|
|
1584
|
+
const _hoisted_4$n = {
|
|
1585
1585
|
key: 1,
|
|
1586
1586
|
class: "lf-card__count"
|
|
1587
1587
|
};
|
|
1588
|
-
const _hoisted_5$
|
|
1588
|
+
const _hoisted_5$l = {
|
|
1589
1589
|
key: 0,
|
|
1590
1590
|
class: "lf-card__actions"
|
|
1591
1591
|
};
|
|
1592
|
-
const _hoisted_6$
|
|
1593
|
-
const _hoisted_7$
|
|
1592
|
+
const _hoisted_6$f = { class: "lf-card__body" };
|
|
1593
|
+
const _hoisted_7$c = {
|
|
1594
1594
|
key: 1,
|
|
1595
1595
|
class: "lf-card__foot"
|
|
1596
1596
|
};
|
|
1597
|
-
const _sfc_main$
|
|
1597
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1598
1598
|
__name: "LfCard",
|
|
1599
1599
|
props: {
|
|
1600
1600
|
title: {},
|
|
@@ -1610,9 +1610,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1610
1610
|
return openBlock(), createElementBlock("section", {
|
|
1611
1611
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1612
1612
|
}, [
|
|
1613
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1613
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$A, [
|
|
1614
1614
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1615
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1615
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$y, [
|
|
1616
1616
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1617
1617
|
createVNode(LfIcon, {
|
|
1618
1618
|
name: __props.icon,
|
|
@@ -1621,45 +1621,45 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1621
1621
|
}, null, 8, ["name", "path"])
|
|
1622
1622
|
], true)
|
|
1623
1623
|
])) : createCommentVNode("", true),
|
|
1624
|
-
createElementVNode("h3", _hoisted_3$
|
|
1625
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1624
|
+
createElementVNode("h3", _hoisted_3$s, toDisplayString(__props.title), 1),
|
|
1625
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1626
1626
|
], true),
|
|
1627
1627
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1628
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1628
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
|
|
1629
1629
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1630
1630
|
])) : createCommentVNode("", true)
|
|
1631
1631
|
])) : createCommentVNode("", true),
|
|
1632
|
-
createElementVNode("div", _hoisted_6$
|
|
1632
|
+
createElementVNode("div", _hoisted_6$f, [
|
|
1633
1633
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1634
1634
|
]),
|
|
1635
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1635
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$c, [
|
|
1636
1636
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1637
1637
|
])) : createCommentVNode("", true)
|
|
1638
1638
|
], 2);
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1643
|
-
const _hoisted_1$
|
|
1644
|
-
const _hoisted_2$
|
|
1645
|
-
const _hoisted_3$
|
|
1646
|
-
const _hoisted_4$
|
|
1642
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3ffcb11e"]]);
|
|
1643
|
+
const _hoisted_1$z = { class: "lf-page-header" };
|
|
1644
|
+
const _hoisted_2$x = { class: "lf-page-header__title-box" };
|
|
1645
|
+
const _hoisted_3$r = { class: "lf-page-header__title" };
|
|
1646
|
+
const _hoisted_4$m = {
|
|
1647
1647
|
key: 0,
|
|
1648
1648
|
class: "lf-page-header__icon"
|
|
1649
1649
|
};
|
|
1650
|
-
const _hoisted_5$
|
|
1650
|
+
const _hoisted_5$k = {
|
|
1651
1651
|
key: 0,
|
|
1652
1652
|
class: "lf-page-header__count"
|
|
1653
1653
|
};
|
|
1654
|
-
const _hoisted_6$
|
|
1654
|
+
const _hoisted_6$e = {
|
|
1655
1655
|
key: 0,
|
|
1656
1656
|
class: "lf-page-header__tools"
|
|
1657
1657
|
};
|
|
1658
|
-
const _hoisted_7$
|
|
1658
|
+
const _hoisted_7$b = {
|
|
1659
1659
|
key: 1,
|
|
1660
1660
|
class: "lf-page-header__desc"
|
|
1661
1661
|
};
|
|
1662
|
-
const _sfc_main$
|
|
1662
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
1663
1663
|
__name: "LfPageHeader",
|
|
1664
1664
|
props: {
|
|
1665
1665
|
title: {},
|
|
@@ -1672,10 +1672,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1672
1672
|
const slots = useSlots();
|
|
1673
1673
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1674
1674
|
return (_ctx, _cache) => {
|
|
1675
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1676
|
-
createElementVNode("div", _hoisted_2$
|
|
1677
|
-
createElementVNode("h1", _hoisted_3$
|
|
1678
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1675
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
1676
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
1677
|
+
createElementVNode("h1", _hoisted_3$r, [
|
|
1678
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$m, [
|
|
1679
1679
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1680
1680
|
createVNode(LfIcon, {
|
|
1681
1681
|
name: __props.icon,
|
|
@@ -1688,14 +1688,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1688
1688
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1689
1689
|
], true)
|
|
1690
1690
|
]),
|
|
1691
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1691
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$k, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1692
1692
|
]),
|
|
1693
|
-
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1693
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
|
|
1694
1694
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1695
1695
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1696
1696
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1697
1697
|
])) : createCommentVNode("", true),
|
|
1698
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1698
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$b, [
|
|
1699
1699
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1700
1700
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1701
1701
|
], true)
|
|
@@ -1704,14 +1704,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1704
1704
|
};
|
|
1705
1705
|
}
|
|
1706
1706
|
});
|
|
1707
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1708
|
-
const _hoisted_1$
|
|
1707
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-a7ef2659"]]);
|
|
1708
|
+
const _hoisted_1$y = {
|
|
1709
1709
|
key: 0,
|
|
1710
1710
|
class: "lf-badge__dot",
|
|
1711
1711
|
"aria-hidden": "true"
|
|
1712
1712
|
};
|
|
1713
|
-
const _hoisted_2$
|
|
1714
|
-
const _sfc_main$
|
|
1713
|
+
const _hoisted_2$w = ["aria-label"];
|
|
1714
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1715
1715
|
__name: "LfBadge",
|
|
1716
1716
|
props: {
|
|
1717
1717
|
label: {},
|
|
@@ -1731,7 +1731,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1731
1731
|
return openBlock(), createElementBlock("span", {
|
|
1732
1732
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1733
1733
|
}, [
|
|
1734
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1734
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$y)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1735
1735
|
key: 1,
|
|
1736
1736
|
name: __props.icon,
|
|
1737
1737
|
path: __props.iconPath,
|
|
@@ -1751,27 +1751,27 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1751
1751
|
name: "close",
|
|
1752
1752
|
size: "0.75rem"
|
|
1753
1753
|
})
|
|
1754
|
-
], 8, _hoisted_2$
|
|
1754
|
+
], 8, _hoisted_2$w)) : createCommentVNode("", true)
|
|
1755
1755
|
], 2);
|
|
1756
1756
|
};
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1760
|
-
const _hoisted_1$
|
|
1761
|
-
const _hoisted_2$
|
|
1759
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-31b186b5"]]);
|
|
1760
|
+
const _hoisted_1$x = ["role"];
|
|
1761
|
+
const _hoisted_2$v = {
|
|
1762
1762
|
class: "lf-alert__badge",
|
|
1763
1763
|
"aria-hidden": "true"
|
|
1764
1764
|
};
|
|
1765
|
-
const _hoisted_3$
|
|
1766
|
-
const _hoisted_4$
|
|
1765
|
+
const _hoisted_3$q = { class: "lf-alert__body" };
|
|
1766
|
+
const _hoisted_4$l = {
|
|
1767
1767
|
key: 0,
|
|
1768
1768
|
class: "lf-alert__title"
|
|
1769
1769
|
};
|
|
1770
|
-
const _hoisted_5$
|
|
1770
|
+
const _hoisted_5$j = {
|
|
1771
1771
|
key: 2,
|
|
1772
1772
|
class: "lf-alert__actions"
|
|
1773
1773
|
};
|
|
1774
|
-
const _sfc_main$
|
|
1774
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1775
1775
|
__name: "LfAlert",
|
|
1776
1776
|
props: {
|
|
1777
1777
|
tone: { default: "info" },
|
|
@@ -1797,7 +1797,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1797
1797
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
1798
1798
|
role: __props.tone === "error" ? "alert" : "status"
|
|
1799
1799
|
}, [
|
|
1800
|
-
createElementVNode("span", _hoisted_2$
|
|
1800
|
+
createElementVNode("span", _hoisted_2$v, [
|
|
1801
1801
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1802
1802
|
createVNode(LfIcon, {
|
|
1803
1803
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -1806,8 +1806,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1806
1806
|
}, null, 8, ["name", "path", "size"])
|
|
1807
1807
|
], true)
|
|
1808
1808
|
]),
|
|
1809
|
-
createElementVNode("div", _hoisted_3$
|
|
1810
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1809
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
1810
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1811
1811
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1812
1812
|
key: 1,
|
|
1813
1813
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -1816,7 +1816,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1816
1816
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
1817
1817
|
], true)
|
|
1818
1818
|
], 2)) : createCommentVNode("", true),
|
|
1819
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1819
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
|
|
1820
1820
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1821
1821
|
])) : createCommentVNode("", true)
|
|
1822
1822
|
]),
|
|
@@ -1828,14 +1828,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1828
1828
|
label: __props.closeLabel,
|
|
1829
1829
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
1830
1830
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1831
|
-
], 10, _hoisted_1$
|
|
1831
|
+
], 10, _hoisted_1$x);
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
1834
|
});
|
|
1835
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1836
|
-
const _hoisted_1$
|
|
1837
|
-
const _hoisted_2$
|
|
1838
|
-
const _sfc_main$
|
|
1835
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-62839786"]]);
|
|
1836
|
+
const _hoisted_1$w = ["title"];
|
|
1837
|
+
const _hoisted_2$u = ["src", "alt"];
|
|
1838
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1839
1839
|
__name: "LfAvatar",
|
|
1840
1840
|
props: {
|
|
1841
1841
|
name: {},
|
|
@@ -1870,30 +1870,30 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1870
1870
|
src: __props.src,
|
|
1871
1871
|
alt: __props.name ?? "",
|
|
1872
1872
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
1873
|
-
}, null, 40, _hoisted_2$
|
|
1873
|
+
}, null, 40, _hoisted_2$u)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1874
1874
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
1875
1875
|
], 64))
|
|
1876
|
-
], 14, _hoisted_1$
|
|
1876
|
+
], 14, _hoisted_1$w);
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
1879
|
});
|
|
1880
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1881
|
-
const _hoisted_1$
|
|
1880
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-61adf36e"]]);
|
|
1881
|
+
const _hoisted_1$v = {
|
|
1882
1882
|
key: 0,
|
|
1883
1883
|
class: "lf-table__select"
|
|
1884
1884
|
};
|
|
1885
|
-
const _hoisted_2$
|
|
1886
|
-
const _hoisted_3$
|
|
1887
|
-
const _hoisted_4$
|
|
1888
|
-
const _hoisted_5$
|
|
1885
|
+
const _hoisted_2$t = ["checked", ".indeterminate", "disabled", "aria-label"];
|
|
1886
|
+
const _hoisted_3$p = ["aria-sort"];
|
|
1887
|
+
const _hoisted_4$k = ["onClick"];
|
|
1888
|
+
const _hoisted_5$i = {
|
|
1889
1889
|
key: 0,
|
|
1890
1890
|
class: "lf-table__select"
|
|
1891
1891
|
};
|
|
1892
|
-
const _hoisted_6$
|
|
1893
|
-
const _hoisted_7$
|
|
1894
|
-
const _hoisted_8$
|
|
1895
|
-
const _hoisted_9$
|
|
1896
|
-
const _sfc_main$
|
|
1892
|
+
const _hoisted_6$d = { key: 1 };
|
|
1893
|
+
const _hoisted_7$a = ["colspan"];
|
|
1894
|
+
const _hoisted_8$3 = ["tabindex", "onClick", "onKeydown"];
|
|
1895
|
+
const _hoisted_9$2 = ["checked", "aria-label", "onChange"];
|
|
1896
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1897
1897
|
__name: "LfTable",
|
|
1898
1898
|
props: /* @__PURE__ */ mergeModels({
|
|
1899
1899
|
columns: {},
|
|
@@ -1959,7 +1959,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1959
1959
|
}, [
|
|
1960
1960
|
createElementVNode("thead", null, [
|
|
1961
1961
|
createElementVNode("tr", null, [
|
|
1962
|
-
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_1$
|
|
1962
|
+
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_1$v, [
|
|
1963
1963
|
createElementVNode("input", {
|
|
1964
1964
|
type: "checkbox",
|
|
1965
1965
|
class: "lf-table__check",
|
|
@@ -1968,7 +1968,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1968
1968
|
disabled: __props.loading || __props.rows.length === 0,
|
|
1969
1969
|
"aria-label": __props.selectAllLabel,
|
|
1970
1970
|
onChange: toggleAll
|
|
1971
|
-
}, null, 40, _hoisted_2$
|
|
1971
|
+
}, null, 40, _hoisted_2$t)
|
|
1972
1972
|
])) : createCommentVNode("", true),
|
|
1973
1973
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1974
1974
|
var _a;
|
|
@@ -1990,10 +1990,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1990
1990
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
1991
1991
|
size: "0.875rem"
|
|
1992
1992
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
1993
|
-
], 8, _hoisted_4$
|
|
1993
|
+
], 8, _hoisted_4$k)) : renderSlot(_ctx.$slots, `head-${col.key}`, { column: col }, () => [
|
|
1994
1994
|
createTextVNode(toDisplayString(col.label), 1)
|
|
1995
1995
|
], true, 1)
|
|
1996
|
-
], 14, _hoisted_3$
|
|
1996
|
+
], 14, _hoisted_3$p);
|
|
1997
1997
|
}), 128))
|
|
1998
1998
|
])
|
|
1999
1999
|
]),
|
|
@@ -2003,7 +2003,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2003
2003
|
key: `sk-${n}`,
|
|
2004
2004
|
class: "lf-table__row"
|
|
2005
2005
|
}, [
|
|
2006
|
-
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$
|
|
2006
|
+
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$i)) : createCommentVNode("", true),
|
|
2007
2007
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2008
2008
|
return openBlock(), createElementBlock("td", {
|
|
2009
2009
|
key: col.key,
|
|
@@ -2013,7 +2013,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2013
2013
|
])], 2);
|
|
2014
2014
|
}), 128))
|
|
2015
2015
|
]);
|
|
2016
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$
|
|
2016
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$d, [
|
|
2017
2017
|
createElementVNode("td", {
|
|
2018
2018
|
class: "lf-table__empty",
|
|
2019
2019
|
colspan: __props.columns.length + (__props.selectable ? 1 : 0)
|
|
@@ -2021,7 +2021,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2021
2021
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2022
2022
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
2023
2023
|
], true)
|
|
2024
|
-
], 8, _hoisted_7$
|
|
2024
|
+
], 8, _hoisted_7$a)
|
|
2025
2025
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
2026
2026
|
return openBlock(), createElementBlock("tr", {
|
|
2027
2027
|
key: keyOf(row, i2),
|
|
@@ -2046,7 +2046,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2046
2046
|
checked: isSelected(row, i2),
|
|
2047
2047
|
"aria-label": __props.selectRowLabel,
|
|
2048
2048
|
onChange: ($event) => toggleRow(row, i2)
|
|
2049
|
-
}, null, 40, _hoisted_9$
|
|
2049
|
+
}, null, 40, _hoisted_9$2)
|
|
2050
2050
|
])) : createCommentVNode("", true),
|
|
2051
2051
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2052
2052
|
return openBlock(), createElementBlock("td", {
|
|
@@ -2063,7 +2063,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2063
2063
|
], true)
|
|
2064
2064
|
], 6);
|
|
2065
2065
|
}), 128))
|
|
2066
|
-
], 42, _hoisted_8$
|
|
2066
|
+
], 42, _hoisted_8$3);
|
|
2067
2067
|
}), 128))
|
|
2068
2068
|
])
|
|
2069
2069
|
], 6)
|
|
@@ -2071,26 +2071,26 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2071
2071
|
};
|
|
2072
2072
|
}
|
|
2073
2073
|
});
|
|
2074
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2075
|
-
const _hoisted_1$
|
|
2076
|
-
const _hoisted_2$
|
|
2074
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2eb52796"]]);
|
|
2075
|
+
const _hoisted_1$u = ["aria-label"];
|
|
2076
|
+
const _hoisted_2$s = {
|
|
2077
2077
|
key: 0,
|
|
2078
2078
|
class: "lf-pagination__total"
|
|
2079
2079
|
};
|
|
2080
|
-
const _hoisted_3$
|
|
2080
|
+
const _hoisted_3$o = {
|
|
2081
2081
|
key: 1,
|
|
2082
2082
|
class: "lf-pagination__btns"
|
|
2083
2083
|
};
|
|
2084
|
-
const _hoisted_4$
|
|
2085
|
-
const _hoisted_5$
|
|
2084
|
+
const _hoisted_4$j = ["disabled"];
|
|
2085
|
+
const _hoisted_5$h = {
|
|
2086
2086
|
key: 0,
|
|
2087
2087
|
class: "lf-pagination__gap",
|
|
2088
2088
|
"aria-hidden": "true"
|
|
2089
2089
|
};
|
|
2090
|
-
const _hoisted_6$
|
|
2091
|
-
const _hoisted_7$
|
|
2090
|
+
const _hoisted_6$c = ["aria-current", "onClick"];
|
|
2091
|
+
const _hoisted_7$9 = ["disabled"];
|
|
2092
2092
|
const ELLIPSIS = -1;
|
|
2093
|
-
const _sfc_main$
|
|
2093
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2094
2094
|
__name: "LfPagination",
|
|
2095
2095
|
props: /* @__PURE__ */ mergeModels({
|
|
2096
2096
|
total: { default: 0 },
|
|
@@ -2131,12 +2131,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2131
2131
|
class: "lf-pagination",
|
|
2132
2132
|
"aria-label": __props.ariaLabel
|
|
2133
2133
|
}, [
|
|
2134
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2134
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$s, [
|
|
2135
2135
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2136
2136
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2137
2137
|
], true)
|
|
2138
2138
|
])) : createCommentVNode("", true),
|
|
2139
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2139
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
2140
2140
|
createElementVNode("button", {
|
|
2141
2141
|
type: "button",
|
|
2142
2142
|
class: "lf-pagination__btn",
|
|
@@ -2148,18 +2148,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2148
2148
|
name: "chevron_left",
|
|
2149
2149
|
size: "1rem"
|
|
2150
2150
|
})
|
|
2151
|
-
], 8, _hoisted_4$
|
|
2151
|
+
], 8, _hoisted_4$j),
|
|
2152
2152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2153
2153
|
return openBlock(), createElementBlock(Fragment, {
|
|
2154
2154
|
key: `${p}-${i2}`
|
|
2155
2155
|
}, [
|
|
2156
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2156
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$h, "…")) : (openBlock(), createElementBlock("button", {
|
|
2157
2157
|
key: 1,
|
|
2158
2158
|
type: "button",
|
|
2159
2159
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2160
2160
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2161
2161
|
onClick: ($event) => go(p)
|
|
2162
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2162
|
+
}, toDisplayString(p), 11, _hoisted_6$c))
|
|
2163
2163
|
], 64);
|
|
2164
2164
|
}), 128)),
|
|
2165
2165
|
createElementVNode("button", {
|
|
@@ -2173,27 +2173,27 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2173
2173
|
name: "chevron_right",
|
|
2174
2174
|
size: "1rem"
|
|
2175
2175
|
})
|
|
2176
|
-
], 8, _hoisted_7$
|
|
2176
|
+
], 8, _hoisted_7$9)
|
|
2177
2177
|
])) : createCommentVNode("", true)
|
|
2178
|
-
], 8, _hoisted_1$
|
|
2178
|
+
], 8, _hoisted_1$u)) : createCommentVNode("", true);
|
|
2179
2179
|
};
|
|
2180
2180
|
}
|
|
2181
2181
|
});
|
|
2182
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2183
|
-
const _hoisted_1$
|
|
2182
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-be847541"]]);
|
|
2183
|
+
const _hoisted_1$t = {
|
|
2184
2184
|
key: 0,
|
|
2185
2185
|
class: "lf-empty__icon"
|
|
2186
2186
|
};
|
|
2187
|
-
const _hoisted_2$
|
|
2188
|
-
const _hoisted_3$
|
|
2187
|
+
const _hoisted_2$r = { class: "lf-empty__title" };
|
|
2188
|
+
const _hoisted_3$n = {
|
|
2189
2189
|
key: 1,
|
|
2190
2190
|
class: "lf-empty__desc"
|
|
2191
2191
|
};
|
|
2192
|
-
const _hoisted_4$
|
|
2192
|
+
const _hoisted_4$i = {
|
|
2193
2193
|
key: 2,
|
|
2194
2194
|
class: "lf-empty__action"
|
|
2195
2195
|
};
|
|
2196
|
-
const _sfc_main$
|
|
2196
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2197
2197
|
__name: "LfEmptyState",
|
|
2198
2198
|
props: {
|
|
2199
2199
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2208,7 +2208,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2208
2208
|
return openBlock(), createElementBlock("div", {
|
|
2209
2209
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2210
2210
|
}, [
|
|
2211
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2211
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$t, [
|
|
2212
2212
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2213
2213
|
createVNode(LfIcon, {
|
|
2214
2214
|
name: __props.icon,
|
|
@@ -2217,31 +2217,31 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2217
2217
|
}, null, 8, ["name", "path"])
|
|
2218
2218
|
], true)
|
|
2219
2219
|
])) : createCommentVNode("", true),
|
|
2220
|
-
createElementVNode("p", _hoisted_2$
|
|
2220
|
+
createElementVNode("p", _hoisted_2$r, [
|
|
2221
2221
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2222
2222
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2223
2223
|
], true)
|
|
2224
2224
|
]),
|
|
2225
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2225
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$n, [
|
|
2226
2226
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2227
2227
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2228
2228
|
], true)
|
|
2229
2229
|
])) : createCommentVNode("", true),
|
|
2230
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2230
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
2231
2231
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2232
2232
|
])) : createCommentVNode("", true)
|
|
2233
2233
|
], 2);
|
|
2234
2234
|
};
|
|
2235
2235
|
}
|
|
2236
2236
|
});
|
|
2237
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2238
|
-
const _hoisted_1$
|
|
2237
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2238
|
+
const _hoisted_1$s = {
|
|
2239
2239
|
key: 0,
|
|
2240
2240
|
class: "lf-skeleton-group",
|
|
2241
2241
|
"aria-busy": true,
|
|
2242
2242
|
"aria-live": "polite"
|
|
2243
2243
|
};
|
|
2244
|
-
const _sfc_main$
|
|
2244
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2245
2245
|
__name: "LfSkeleton",
|
|
2246
2246
|
props: {
|
|
2247
2247
|
variant: { default: "text" },
|
|
@@ -2256,7 +2256,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2256
2256
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2257
2257
|
}
|
|
2258
2258
|
return (_ctx, _cache) => {
|
|
2259
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2259
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2260
2260
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2261
2261
|
return openBlock(), createElementBlock("span", {
|
|
2262
2262
|
key: n,
|
|
@@ -2273,24 +2273,24 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2273
2273
|
};
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
2276
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2277
|
-
const _hoisted_1$
|
|
2276
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-a01556ce"]]);
|
|
2277
|
+
const _hoisted_1$r = {
|
|
2278
2278
|
class: "lf-stat__badge",
|
|
2279
2279
|
"aria-hidden": "true"
|
|
2280
2280
|
};
|
|
2281
|
-
const _hoisted_2$
|
|
2282
|
-
const _hoisted_3$
|
|
2283
|
-
const _hoisted_4$
|
|
2284
|
-
const _hoisted_5$
|
|
2285
|
-
const _hoisted_6$
|
|
2281
|
+
const _hoisted_2$q = { class: "lf-stat__body" };
|
|
2282
|
+
const _hoisted_3$m = { class: "lf-stat__label" };
|
|
2283
|
+
const _hoisted_4$h = { class: "lf-stat__value-row" };
|
|
2284
|
+
const _hoisted_5$g = { class: "lf-stat__value" };
|
|
2285
|
+
const _hoisted_6$b = {
|
|
2286
2286
|
key: 0,
|
|
2287
2287
|
class: "lf-stat__unit"
|
|
2288
2288
|
};
|
|
2289
|
-
const _hoisted_7$
|
|
2289
|
+
const _hoisted_7$8 = {
|
|
2290
2290
|
key: 0,
|
|
2291
2291
|
class: "lf-stat__hint"
|
|
2292
2292
|
};
|
|
2293
|
-
const _sfc_main$
|
|
2293
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
2294
2294
|
__name: "LfStatCard",
|
|
2295
2295
|
props: {
|
|
2296
2296
|
label: {},
|
|
@@ -2319,7 +2319,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2319
2319
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2320
2320
|
}, {
|
|
2321
2321
|
default: withCtx(() => [
|
|
2322
|
-
createElementVNode("span", _hoisted_1$
|
|
2322
|
+
createElementVNode("span", _hoisted_1$r, [
|
|
2323
2323
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2324
2324
|
createVNode(LfIcon, {
|
|
2325
2325
|
name: __props.icon,
|
|
@@ -2328,14 +2328,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2328
2328
|
}, null, 8, ["name", "path"])
|
|
2329
2329
|
], true)
|
|
2330
2330
|
]),
|
|
2331
|
-
createElementVNode("div", _hoisted_2$
|
|
2332
|
-
createElementVNode("div", _hoisted_3$
|
|
2333
|
-
createElementVNode("div", _hoisted_4$
|
|
2334
|
-
createElementVNode("span", _hoisted_5$
|
|
2331
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
2332
|
+
createElementVNode("div", _hoisted_3$m, toDisplayString(__props.label), 1),
|
|
2333
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
2334
|
+
createElementVNode("span", _hoisted_5$g, [
|
|
2335
2335
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2336
2336
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2337
2337
|
], true),
|
|
2338
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2338
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$b, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2339
2339
|
]),
|
|
2340
2340
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2341
2341
|
key: 0,
|
|
@@ -2348,7 +2348,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2348
2348
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2349
2349
|
], 2)) : createCommentVNode("", true)
|
|
2350
2350
|
]),
|
|
2351
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2351
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$8, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2352
2352
|
])
|
|
2353
2353
|
]),
|
|
2354
2354
|
_: 3
|
|
@@ -2356,10 +2356,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2356
2356
|
};
|
|
2357
2357
|
}
|
|
2358
2358
|
});
|
|
2359
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2360
|
-
const _hoisted_1$
|
|
2361
|
-
const _hoisted_2$
|
|
2362
|
-
const _sfc_main$
|
|
2359
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ddc6565d"]]);
|
|
2360
|
+
const _hoisted_1$q = ["aria-describedby"];
|
|
2361
|
+
const _hoisted_2$p = ["id"];
|
|
2362
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
2363
2363
|
__name: "LfTooltip",
|
|
2364
2364
|
props: {
|
|
2365
2365
|
text: {},
|
|
@@ -2376,7 +2376,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2376
2376
|
"aria-describedby": unref(bubbleId)
|
|
2377
2377
|
}, [
|
|
2378
2378
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2379
|
-
], 8, _hoisted_1$
|
|
2379
|
+
], 8, _hoisted_1$q),
|
|
2380
2380
|
createElementVNode("span", {
|
|
2381
2381
|
id: unref(bubbleId),
|
|
2382
2382
|
class: "lf-tooltip__bubble",
|
|
@@ -2385,19 +2385,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2385
2385
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2386
2386
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2387
2387
|
], true)
|
|
2388
|
-
], 8, _hoisted_2$
|
|
2388
|
+
], 8, _hoisted_2$p)
|
|
2389
2389
|
], 2);
|
|
2390
2390
|
};
|
|
2391
2391
|
}
|
|
2392
2392
|
});
|
|
2393
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2394
|
-
const _hoisted_1$
|
|
2395
|
-
const _hoisted_2$
|
|
2396
|
-
const _hoisted_3$
|
|
2393
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ae3bf5db"]]);
|
|
2394
|
+
const _hoisted_1$p = ["disabled", "onClick"];
|
|
2395
|
+
const _hoisted_2$o = { class: "lf-menu__item-text" };
|
|
2396
|
+
const _hoisted_3$l = {
|
|
2397
2397
|
key: 0,
|
|
2398
2398
|
class: "lf-menu__item-desc"
|
|
2399
2399
|
};
|
|
2400
|
-
const _sfc_main$
|
|
2400
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
2401
2401
|
__name: "LfMenu",
|
|
2402
2402
|
props: {
|
|
2403
2403
|
items: { default: () => [] },
|
|
@@ -2487,11 +2487,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2487
2487
|
size: "1.125rem",
|
|
2488
2488
|
class: "lf-menu__item-icon"
|
|
2489
2489
|
}), null, 16)) : createCommentVNode("", true),
|
|
2490
|
-
createElementVNode("span", _hoisted_2$
|
|
2490
|
+
createElementVNode("span", _hoisted_2$o, [
|
|
2491
2491
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2492
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2492
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2493
2493
|
])
|
|
2494
|
-
], 8, _hoisted_1$
|
|
2494
|
+
], 8, _hoisted_1$p);
|
|
2495
2495
|
}), 128))
|
|
2496
2496
|
], true)
|
|
2497
2497
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2502,22 +2502,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
2504
|
});
|
|
2505
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2506
|
-
const _hoisted_1$
|
|
2505
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-0318782c"]]);
|
|
2506
|
+
const _hoisted_1$o = {
|
|
2507
2507
|
key: 0,
|
|
2508
2508
|
class: "lf-rail__group",
|
|
2509
2509
|
role: "presentation"
|
|
2510
2510
|
};
|
|
2511
|
-
const _hoisted_2$
|
|
2512
|
-
const _hoisted_3$
|
|
2513
|
-
const _hoisted_4$
|
|
2511
|
+
const _hoisted_2$n = { class: "lf-rail__group-name" };
|
|
2512
|
+
const _hoisted_3$k = { class: "lf-rail__icon" };
|
|
2513
|
+
const _hoisted_4$g = {
|
|
2514
2514
|
key: 2,
|
|
2515
2515
|
class: "lf-rail__badge"
|
|
2516
2516
|
};
|
|
2517
|
-
const _hoisted_5$
|
|
2518
|
-
const _hoisted_6$
|
|
2519
|
-
const _hoisted_7$
|
|
2520
|
-
const _sfc_main$
|
|
2517
|
+
const _hoisted_5$f = { class: "lf-rail__name" };
|
|
2518
|
+
const _hoisted_6$a = { class: "lf-rail__short" };
|
|
2519
|
+
const _hoisted_7$7 = { class: "lf-rail__long" };
|
|
2520
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2521
2521
|
__name: "LfNavRail",
|
|
2522
2522
|
props: {
|
|
2523
2523
|
items: {},
|
|
@@ -2587,8 +2587,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2587
2587
|
return openBlock(), createElementBlock(Fragment, {
|
|
2588
2588
|
key: item.to
|
|
2589
2589
|
}, [
|
|
2590
|
-
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2591
|
-
createElementVNode("span", _hoisted_2$
|
|
2590
|
+
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
2591
|
+
createElementVNode("span", _hoisted_2$n, toDisplayString(item.group), 1)
|
|
2592
2592
|
])) : createCommentVNode("", true),
|
|
2593
2593
|
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2594
2594
|
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
@@ -2597,7 +2597,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2597
2597
|
onClick: ($event) => emit("navigate", item)
|
|
2598
2598
|
}), {
|
|
2599
2599
|
default: withCtx(() => [
|
|
2600
|
-
createElementVNode("span", _hoisted_3$
|
|
2600
|
+
createElementVNode("span", _hoisted_3$k, [
|
|
2601
2601
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2602
2602
|
key: 0,
|
|
2603
2603
|
path: item.iconPath,
|
|
@@ -2607,11 +2607,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2607
2607
|
name: item.icon,
|
|
2608
2608
|
size: "1.15rem"
|
|
2609
2609
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2610
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2610
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2611
2611
|
]),
|
|
2612
|
-
createElementVNode("span", _hoisted_5$
|
|
2613
|
-
createElementVNode("span", _hoisted_6$
|
|
2614
|
-
createElementVNode("span", _hoisted_7$
|
|
2612
|
+
createElementVNode("span", _hoisted_5$f, [
|
|
2613
|
+
createElementVNode("span", _hoisted_6$a, toDisplayString(item.short ?? item.label), 1),
|
|
2614
|
+
createElementVNode("span", _hoisted_7$7, toDisplayString(item.label), 1)
|
|
2615
2615
|
])
|
|
2616
2616
|
]),
|
|
2617
2617
|
_: 2
|
|
@@ -2622,8 +2622,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2622
2622
|
};
|
|
2623
2623
|
}
|
|
2624
2624
|
});
|
|
2625
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2626
|
-
const _sfc_main$
|
|
2625
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a29be44a"]]);
|
|
2626
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2627
2627
|
__name: "LfTransitionList",
|
|
2628
2628
|
props: {
|
|
2629
2629
|
tag: { default: "div" },
|
|
@@ -2713,32 +2713,32 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2713
2713
|
};
|
|
2714
2714
|
}
|
|
2715
2715
|
});
|
|
2716
|
-
const _hoisted_1$
|
|
2717
|
-
const _hoisted_2$
|
|
2716
|
+
const _hoisted_1$n = { class: "lf-control-wrap" };
|
|
2717
|
+
const _hoisted_2$m = {
|
|
2718
2718
|
key: 0,
|
|
2719
2719
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
2720
2720
|
};
|
|
2721
|
-
const _hoisted_3$
|
|
2722
|
-
const _hoisted_4$
|
|
2723
|
-
const _hoisted_5$
|
|
2724
|
-
const _hoisted_6$
|
|
2725
|
-
const _hoisted_7$
|
|
2721
|
+
const _hoisted_3$j = ["id", "aria-expanded", "aria-controls", "placeholder", "disabled", "required"];
|
|
2722
|
+
const _hoisted_4$f = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
2723
|
+
const _hoisted_5$e = { class: "lf-listsel__text" };
|
|
2724
|
+
const _hoisted_6$9 = ["aria-label"];
|
|
2725
|
+
const _hoisted_7$6 = {
|
|
2726
2726
|
key: 4,
|
|
2727
2727
|
class: "lf-control-wrap__icon lf-control-wrap__icon--right"
|
|
2728
2728
|
};
|
|
2729
|
-
const _hoisted_8 = ["id"];
|
|
2730
|
-
const _hoisted_9 = ["placeholder"];
|
|
2731
|
-
const _hoisted_10 = ["aria-selected", "disabled", "onMousemove", "onClick"];
|
|
2732
|
-
const _hoisted_11 = { class: "lf-listsel__item-text" };
|
|
2733
|
-
const _hoisted_12 = {
|
|
2729
|
+
const _hoisted_8$2 = ["id"];
|
|
2730
|
+
const _hoisted_9$1 = ["placeholder"];
|
|
2731
|
+
const _hoisted_10$1 = ["aria-selected", "disabled", "onMousemove", "onClick"];
|
|
2732
|
+
const _hoisted_11$1 = { class: "lf-listsel__item-text" };
|
|
2733
|
+
const _hoisted_12$1 = {
|
|
2734
2734
|
key: 0,
|
|
2735
2735
|
class: "lf-listsel__item-desc"
|
|
2736
2736
|
};
|
|
2737
|
-
const _hoisted_13 = {
|
|
2737
|
+
const _hoisted_13$1 = {
|
|
2738
2738
|
key: 1,
|
|
2739
2739
|
class: "lf-listsel__empty"
|
|
2740
2740
|
};
|
|
2741
|
-
const _sfc_main$
|
|
2741
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
2742
2742
|
...{ inheritAttrs: false },
|
|
2743
2743
|
__name: "LfListSelect",
|
|
2744
2744
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2938,8 +2938,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2938
2938
|
class: "lf-listsel",
|
|
2939
2939
|
onFocusout: onFocusOut
|
|
2940
2940
|
}, [
|
|
2941
|
-
createElementVNode("div", _hoisted_1$
|
|
2942
|
-
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2941
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
2942
|
+
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$m, [
|
|
2943
2943
|
createVNode(LfIcon, mergeProps(iconOf(selected.value), { size: "1.125rem" }), null, 16)
|
|
2944
2944
|
])) : createCommentVNode("", true),
|
|
2945
2945
|
__props.editable ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
@@ -2961,7 +2961,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2961
2961
|
onFocus: _cache[1] || (_cache[1] = ($event) => show()),
|
|
2962
2962
|
onInput: _cache[2] || (_cache[2] = ($event) => show()),
|
|
2963
2963
|
onKeydown
|
|
2964
|
-
}), null, 16, _hoisted_3$
|
|
2964
|
+
}), null, 16, _hoisted_3$j)), [
|
|
2965
2965
|
[vModelText, text.value]
|
|
2966
2966
|
]) : (openBlock(), createElementBlock("button", mergeProps({
|
|
2967
2967
|
key: 2,
|
|
@@ -2983,9 +2983,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2983
2983
|
onKeydown
|
|
2984
2984
|
}), [
|
|
2985
2985
|
renderSlot(_ctx.$slots, "selected", { option: selected.value }, () => [
|
|
2986
|
-
createElementVNode("span", _hoisted_5$
|
|
2986
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
2987
2987
|
], true)
|
|
2988
|
-
], 16, _hoisted_4$
|
|
2988
|
+
], 16, _hoisted_4$f)),
|
|
2989
2989
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
2990
2990
|
key: 3,
|
|
2991
2991
|
type: "button",
|
|
@@ -2997,7 +2997,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2997
2997
|
name: "close",
|
|
2998
2998
|
size: "1rem"
|
|
2999
2999
|
})
|
|
3000
|
-
], 8, _hoisted_6$
|
|
3000
|
+
], 8, _hoisted_6$9)) : (openBlock(), createElementBlock("span", _hoisted_7$6, [
|
|
3001
3001
|
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
3002
3002
|
key: 0,
|
|
3003
3003
|
size: "1rem"
|
|
@@ -3031,7 +3031,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3031
3031
|
placeholder: __props.searchPlaceholder,
|
|
3032
3032
|
autocomplete: "off",
|
|
3033
3033
|
onKeydown
|
|
3034
|
-
}, null, 40, _hoisted_9)), [
|
|
3034
|
+
}, null, 40, _hoisted_9$1)), [
|
|
3035
3035
|
[vModelText, query.value]
|
|
3036
3036
|
]) : createCommentVNode("", true),
|
|
3037
3037
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filtered.value, (opt, index) => {
|
|
@@ -3055,15 +3055,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3055
3055
|
size: "1.125rem",
|
|
3056
3056
|
class: "lf-listsel__item-icon"
|
|
3057
3057
|
}), null, 16)) : createCommentVNode("", true),
|
|
3058
|
-
createElementVNode("span", _hoisted_11, [
|
|
3058
|
+
createElementVNode("span", _hoisted_11$1, [
|
|
3059
3059
|
createElementVNode("span", null, toDisplayString(opt.label), 1),
|
|
3060
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
3060
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
3061
3061
|
])
|
|
3062
3062
|
], true)
|
|
3063
|
-
], 42, _hoisted_10);
|
|
3063
|
+
], 42, _hoisted_10$1);
|
|
3064
3064
|
}), 128)),
|
|
3065
|
-
!filtered.value.length ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3066
|
-
], 46, _hoisted_8)) : createCommentVNode("", true)
|
|
3065
|
+
!filtered.value.length ? (openBlock(), createElementBlock("div", _hoisted_13$1, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3066
|
+
], 46, _hoisted_8$2)) : createCommentVNode("", true)
|
|
3067
3067
|
]),
|
|
3068
3068
|
_: 3
|
|
3069
3069
|
})
|
|
@@ -3076,8 +3076,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
3078
|
});
|
|
3079
|
-
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3080
|
-
const _sfc_main$
|
|
3079
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-532597e1"]]);
|
|
3080
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
3081
3081
|
__name: "LfList",
|
|
3082
3082
|
props: {
|
|
3083
3083
|
divided: { type: Boolean },
|
|
@@ -3093,17 +3093,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3093
3093
|
};
|
|
3094
3094
|
}
|
|
3095
3095
|
});
|
|
3096
|
-
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3097
|
-
const _hoisted_1$
|
|
3096
|
+
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-67f4475e"]]);
|
|
3097
|
+
const _hoisted_1$m = {
|
|
3098
3098
|
key: 0,
|
|
3099
3099
|
class: "lf-list-item__prepend"
|
|
3100
3100
|
};
|
|
3101
|
-
const _hoisted_2$
|
|
3102
|
-
const _hoisted_3$
|
|
3101
|
+
const _hoisted_2$l = { class: "lf-list-item__text" };
|
|
3102
|
+
const _hoisted_3$i = {
|
|
3103
3103
|
key: 1,
|
|
3104
3104
|
class: "lf-list-item__append"
|
|
3105
3105
|
};
|
|
3106
|
-
const _sfc_main$
|
|
3106
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
3107
3107
|
__name: "LfListItem",
|
|
3108
3108
|
props: {
|
|
3109
3109
|
active: { type: Boolean },
|
|
@@ -3124,13 +3124,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3124
3124
|
"aria-current": __props.active ? "true" : void 0
|
|
3125
3125
|
}, {
|
|
3126
3126
|
default: withCtx(() => [
|
|
3127
|
-
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3127
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$m, [
|
|
3128
3128
|
renderSlot(_ctx.$slots, "prepend", {}, void 0, true)
|
|
3129
3129
|
])) : createCommentVNode("", true),
|
|
3130
|
-
createElementVNode("span", _hoisted_2$
|
|
3130
|
+
createElementVNode("span", _hoisted_2$l, [
|
|
3131
3131
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3132
3132
|
]),
|
|
3133
|
-
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3133
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$i, [
|
|
3134
3134
|
renderSlot(_ctx.$slots, "append", {}, void 0, true)
|
|
3135
3135
|
])) : createCommentVNode("", true)
|
|
3136
3136
|
]),
|
|
@@ -3140,14 +3140,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
3142
|
});
|
|
3143
|
-
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3144
|
-
const _hoisted_1$
|
|
3143
|
+
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-e05ac56f"]]);
|
|
3144
|
+
const _hoisted_1$l = {
|
|
3145
3145
|
key: 0,
|
|
3146
3146
|
class: "lf-divider lf-divider--labeled",
|
|
3147
3147
|
role: "separator"
|
|
3148
3148
|
};
|
|
3149
|
-
const _hoisted_2$
|
|
3150
|
-
const _sfc_main$
|
|
3149
|
+
const _hoisted_2$k = { class: "lf-divider__label" };
|
|
3150
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
3151
3151
|
__name: "LfDivider",
|
|
3152
3152
|
props: {
|
|
3153
3153
|
label: {},
|
|
@@ -3155,8 +3155,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3155
3155
|
},
|
|
3156
3156
|
setup(__props) {
|
|
3157
3157
|
return (_ctx, _cache) => {
|
|
3158
|
-
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3159
|
-
createElementVNode("span", _hoisted_2$
|
|
3158
|
+
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
3159
|
+
createElementVNode("span", _hoisted_2$k, [
|
|
3160
3160
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3161
3161
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
3162
3162
|
], true)
|
|
@@ -3168,19 +3168,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3168
3168
|
};
|
|
3169
3169
|
}
|
|
3170
3170
|
});
|
|
3171
|
-
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3172
|
-
const _hoisted_1$
|
|
3173
|
-
const _hoisted_2$
|
|
3174
|
-
const _hoisted_3$
|
|
3171
|
+
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c15d2259"]]);
|
|
3172
|
+
const _hoisted_1$k = ["aria-label"];
|
|
3173
|
+
const _hoisted_2$j = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
3174
|
+
const _hoisted_3$h = {
|
|
3175
3175
|
key: 1,
|
|
3176
3176
|
class: "lf-tabs__badge"
|
|
3177
3177
|
};
|
|
3178
|
-
const _hoisted_4$
|
|
3178
|
+
const _hoisted_4$e = {
|
|
3179
3179
|
key: 1,
|
|
3180
3180
|
class: "lf-tabs__actions"
|
|
3181
3181
|
};
|
|
3182
|
-
const _hoisted_5$
|
|
3183
|
-
const _sfc_main$
|
|
3182
|
+
const _hoisted_5$d = ["id", "aria-labelledby"];
|
|
3183
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
3184
3184
|
__name: "LfTabs",
|
|
3185
3185
|
props: /* @__PURE__ */ mergeModels({
|
|
3186
3186
|
tabs: { default: () => [] },
|
|
@@ -3280,8 +3280,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3280
3280
|
class: "lf-tabs__icon"
|
|
3281
3281
|
}), null, 16)) : createCommentVNode("", true),
|
|
3282
3282
|
createElementVNode("span", null, toDisplayString(tab.label), 1),
|
|
3283
|
-
tab.badge !== void 0 && tab.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3284
|
-
], 10, _hoisted_2$
|
|
3283
|
+
tab.badge !== void 0 && tab.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(tab.badge), 1)) : createCommentVNode("", true)
|
|
3284
|
+
], 10, _hoisted_2$j);
|
|
3285
3285
|
}), 128)),
|
|
3286
3286
|
bar.value ? (openBlock(), createElementBlock("span", {
|
|
3287
3287
|
key: 0,
|
|
@@ -3290,10 +3290,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3290
3290
|
"aria-hidden": "true"
|
|
3291
3291
|
}, null, 6)) : createCommentVNode("", true),
|
|
3292
3292
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-tabs__spacer" }, null, -1)),
|
|
3293
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3293
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
|
|
3294
3294
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3295
3295
|
])) : createCommentVNode("", true)
|
|
3296
|
-
], 40, _hoisted_1$
|
|
3296
|
+
], 40, _hoisted_1$k),
|
|
3297
3297
|
hasPanel.value ? (openBlock(), createElementBlock("div", {
|
|
3298
3298
|
key: 0,
|
|
3299
3299
|
id: `${unref(uid)}-panel`,
|
|
@@ -3302,32 +3302,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3302
3302
|
"aria-labelledby": `${unref(uid)}-tab-${model.value}`
|
|
3303
3303
|
}, [
|
|
3304
3304
|
_ctx.$slots[`panel-${model.value}`] ? renderSlot(_ctx.$slots, `panel-${model.value}`, {}, void 0, true, 0) : renderSlot(_ctx.$slots, "default", { value: model.value }, void 0, true, 1)
|
|
3305
|
-
], 8, _hoisted_5$
|
|
3305
|
+
], 8, _hoisted_5$d)) : createCommentVNode("", true)
|
|
3306
3306
|
], 2);
|
|
3307
3307
|
};
|
|
3308
3308
|
}
|
|
3309
3309
|
});
|
|
3310
|
-
const LfTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3311
|
-
const _hoisted_1$
|
|
3312
|
-
const _hoisted_2$
|
|
3310
|
+
const LfTabs = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-ad8ded73"]]);
|
|
3311
|
+
const _hoisted_1$j = ["aria-modal", "aria-labelledby", "aria-label"];
|
|
3312
|
+
const _hoisted_2$i = {
|
|
3313
3313
|
key: 0,
|
|
3314
3314
|
class: "lf-drawer__header"
|
|
3315
3315
|
};
|
|
3316
|
-
const _hoisted_3$
|
|
3317
|
-
const _hoisted_4$
|
|
3318
|
-
const _hoisted_5$
|
|
3316
|
+
const _hoisted_3$g = { class: "lf-drawer__heading" };
|
|
3317
|
+
const _hoisted_4$d = ["id"];
|
|
3318
|
+
const _hoisted_5$c = {
|
|
3319
3319
|
key: 0,
|
|
3320
3320
|
class: "lf-drawer__subtitle"
|
|
3321
3321
|
};
|
|
3322
|
-
const _hoisted_6$
|
|
3322
|
+
const _hoisted_6$8 = {
|
|
3323
3323
|
key: 0,
|
|
3324
3324
|
class: "lf-drawer__actions"
|
|
3325
3325
|
};
|
|
3326
|
-
const _hoisted_7$
|
|
3326
|
+
const _hoisted_7$5 = {
|
|
3327
3327
|
key: 1,
|
|
3328
3328
|
class: "lf-drawer__footer"
|
|
3329
3329
|
};
|
|
3330
|
-
const _sfc_main$
|
|
3330
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
3331
3331
|
__name: "LfDrawer",
|
|
3332
3332
|
props: /* @__PURE__ */ mergeModels({
|
|
3333
3333
|
title: {},
|
|
@@ -3439,17 +3439,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3439
3439
|
tabindex: "-1",
|
|
3440
3440
|
onKeydown
|
|
3441
3441
|
}, [
|
|
3442
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
3443
|
-
createElementVNode("div", _hoisted_3$
|
|
3442
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$i, [
|
|
3443
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
3444
3444
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3445
3445
|
createElementVNode("h2", {
|
|
3446
3446
|
id: unref(titleId),
|
|
3447
3447
|
class: "lf-drawer__title"
|
|
3448
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
3449
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
3448
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$d),
|
|
3449
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$c, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
3450
3450
|
], true)
|
|
3451
3451
|
]),
|
|
3452
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
3452
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
3453
3453
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3454
3454
|
])) : createCommentVNode("", true),
|
|
3455
3455
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -3465,10 +3465,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3465
3465
|
}, [
|
|
3466
3466
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3467
3467
|
], 2),
|
|
3468
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
3468
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$5, [
|
|
3469
3469
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
3470
3470
|
])) : createCommentVNode("", true)
|
|
3471
|
-
], 46, _hoisted_1$
|
|
3471
|
+
], 46, _hoisted_1$j)) : createCommentVNode("", true)
|
|
3472
3472
|
]),
|
|
3473
3473
|
_: 3
|
|
3474
3474
|
}, 8, ["name"])
|
|
@@ -3476,13 +3476,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
});
|
|
3479
|
-
const LfDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3480
|
-
const _hoisted_1$
|
|
3481
|
-
const _hoisted_2$
|
|
3482
|
-
const _hoisted_3$
|
|
3483
|
-
const _hoisted_4$
|
|
3484
|
-
const _hoisted_5$
|
|
3485
|
-
const _sfc_main$
|
|
3479
|
+
const LfDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-a26a26f8"]]);
|
|
3480
|
+
const _hoisted_1$i = ["id", "type", "value", "max", "min", "disabled", "aria-label"];
|
|
3481
|
+
const _hoisted_2$h = ["type", "value", "min", "max", "disabled", "aria-label"];
|
|
3482
|
+
const _hoisted_3$f = ["aria-label"];
|
|
3483
|
+
const _hoisted_4$c = ["disabled", "onClick"];
|
|
3484
|
+
const _hoisted_5$b = ["aria-label", "title", "disabled"];
|
|
3485
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
3486
3486
|
__name: "LfDateRange",
|
|
3487
3487
|
props: /* @__PURE__ */ mergeModels({
|
|
3488
3488
|
label: {},
|
|
@@ -3563,7 +3563,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3563
3563
|
disabled: __props.disabled,
|
|
3564
3564
|
"aria-label": __props.fromLabel,
|
|
3565
3565
|
onChange: _cache[0] || (_cache[0] = ($event) => set("from", $event.target.value))
|
|
3566
|
-
}, null, 42, _hoisted_1$
|
|
3566
|
+
}, null, 42, _hoisted_1$i),
|
|
3567
3567
|
_cache[3] || (_cache[3] = createElementVNode("span", {
|
|
3568
3568
|
class: "lf-daterange__sep",
|
|
3569
3569
|
"aria-hidden": "true"
|
|
@@ -3577,7 +3577,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3577
3577
|
disabled: __props.disabled,
|
|
3578
3578
|
"aria-label": __props.toLabel,
|
|
3579
3579
|
onChange: _cache[1] || (_cache[1] = ($event) => set("to", $event.target.value))
|
|
3580
|
-
}, null, 42, _hoisted_2$
|
|
3580
|
+
}, null, 42, _hoisted_2$h),
|
|
3581
3581
|
__props.presets.length ? (openBlock(), createElementBlock("div", {
|
|
3582
3582
|
key: 0,
|
|
3583
3583
|
class: "lf-daterange__presets",
|
|
@@ -3591,9 +3591,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3591
3591
|
class: normalizeClass(["lf-daterange__preset", { "lf-daterange__preset--on": isPreset(p.days) }]),
|
|
3592
3592
|
disabled: __props.disabled,
|
|
3593
3593
|
onClick: ($event) => applyPreset(p.days)
|
|
3594
|
-
}, toDisplayString(p.label), 11, _hoisted_4$
|
|
3594
|
+
}, toDisplayString(p.label), 11, _hoisted_4$c);
|
|
3595
3595
|
}), 128))
|
|
3596
|
-
], 8, _hoisted_3$
|
|
3596
|
+
], 8, _hoisted_3$f)) : createCommentVNode("", true),
|
|
3597
3597
|
__props.clearable && (((_e = model.value) == null ? void 0 : _e.from) || ((_f = model.value) == null ? void 0 : _f.to)) ? (openBlock(), createElementBlock("button", {
|
|
3598
3598
|
key: 1,
|
|
3599
3599
|
type: "button",
|
|
@@ -3607,7 +3607,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3607
3607
|
name: "close",
|
|
3608
3608
|
size: "0.875rem"
|
|
3609
3609
|
})
|
|
3610
|
-
], 8, _hoisted_5$
|
|
3610
|
+
], 8, _hoisted_5$b)) : createCommentVNode("", true)
|
|
3611
3611
|
], 2)
|
|
3612
3612
|
];
|
|
3613
3613
|
}),
|
|
@@ -3616,25 +3616,25 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3616
3616
|
};
|
|
3617
3617
|
}
|
|
3618
3618
|
});
|
|
3619
|
-
const LfDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3620
|
-
const _hoisted_1$
|
|
3621
|
-
const _hoisted_2$
|
|
3622
|
-
const _hoisted_3$
|
|
3623
|
-
const _hoisted_4$
|
|
3619
|
+
const LfDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-cd58ea87"]]);
|
|
3620
|
+
const _hoisted_1$h = ["aria-label"];
|
|
3621
|
+
const _hoisted_2$g = ["aria-level", "aria-expanded", "aria-selected", "tabindex", "data-id", "onClick", "onFocus"];
|
|
3622
|
+
const _hoisted_3$e = ["aria-label", "onClick"];
|
|
3623
|
+
const _hoisted_4$b = {
|
|
3624
3624
|
key: 1,
|
|
3625
3625
|
class: "lf-tree__toggle lf-tree__toggle--leaf",
|
|
3626
3626
|
"aria-hidden": "true"
|
|
3627
3627
|
};
|
|
3628
|
-
const _hoisted_5$
|
|
3629
|
-
const _hoisted_6$
|
|
3628
|
+
const _hoisted_5$a = { class: "lf-tree__label" };
|
|
3629
|
+
const _hoisted_6$7 = {
|
|
3630
3630
|
key: 3,
|
|
3631
3631
|
class: "lf-tree__badge"
|
|
3632
3632
|
};
|
|
3633
|
-
const _hoisted_7 = {
|
|
3633
|
+
const _hoisted_7$4 = {
|
|
3634
3634
|
key: 0,
|
|
3635
3635
|
class: "lf-tree__empty"
|
|
3636
3636
|
};
|
|
3637
|
-
const _sfc_main$
|
|
3637
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
3638
3638
|
__name: "LfTree",
|
|
3639
3639
|
props: /* @__PURE__ */ mergeModels({
|
|
3640
3640
|
nodes: { default: () => [] },
|
|
@@ -3805,7 +3805,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3805
3805
|
name: isOpen(row.node.id) ? "expand_more" : "chevron_right",
|
|
3806
3806
|
size: "1rem"
|
|
3807
3807
|
}, null, 8, ["name"])
|
|
3808
|
-
], 8, _hoisted_3$
|
|
3808
|
+
], 8, _hoisted_3$e)) : (openBlock(), createElementBlock("span", _hoisted_4$b)),
|
|
3809
3809
|
row.node.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3810
3810
|
key: 2,
|
|
3811
3811
|
ref_for: true
|
|
@@ -3813,7 +3813,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3813
3813
|
size: "1rem",
|
|
3814
3814
|
class: "lf-tree__icon"
|
|
3815
3815
|
}), null, 16)) : createCommentVNode("", true),
|
|
3816
|
-
createElementVNode("span", _hoisted_5$
|
|
3816
|
+
createElementVNode("span", _hoisted_5$a, [
|
|
3817
3817
|
renderSlot(_ctx.$slots, "label", {
|
|
3818
3818
|
node: row.node,
|
|
3819
3819
|
depth: row.depth
|
|
@@ -3821,28 +3821,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3821
3821
|
createTextVNode(toDisplayString(row.node.label), 1)
|
|
3822
3822
|
], true)
|
|
3823
3823
|
]),
|
|
3824
|
-
row.node.badge !== void 0 && row.node.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
3825
|
-
], 46, _hoisted_2$
|
|
3824
|
+
row.node.badge !== void 0 && row.node.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(row.node.badge), 1)) : createCommentVNode("", true)
|
|
3825
|
+
], 46, _hoisted_2$g);
|
|
3826
3826
|
}), 128)),
|
|
3827
|
-
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_7, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3828
|
-
], 42, _hoisted_1$
|
|
3827
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_7$4, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3828
|
+
], 42, _hoisted_1$h);
|
|
3829
3829
|
};
|
|
3830
3830
|
}
|
|
3831
3831
|
});
|
|
3832
|
-
const LfTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3833
|
-
const _hoisted_1$
|
|
3834
|
-
const _hoisted_2$
|
|
3835
|
-
const _hoisted_3$
|
|
3832
|
+
const LfTree = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d194fe5c"]]);
|
|
3833
|
+
const _hoisted_1$g = ["aria-label"];
|
|
3834
|
+
const _hoisted_2$f = ["aria-current"];
|
|
3835
|
+
const _hoisted_3$d = {
|
|
3836
3836
|
class: "lf-steps__dot",
|
|
3837
3837
|
"aria-hidden": "true"
|
|
3838
3838
|
};
|
|
3839
|
-
const _hoisted_4$
|
|
3840
|
-
const _hoisted_5 = { class: "lf-steps__label" };
|
|
3841
|
-
const _hoisted_6 = {
|
|
3839
|
+
const _hoisted_4$a = { class: "lf-steps__text" };
|
|
3840
|
+
const _hoisted_5$9 = { class: "lf-steps__label" };
|
|
3841
|
+
const _hoisted_6$6 = {
|
|
3842
3842
|
key: 0,
|
|
3843
3843
|
class: "lf-steps__desc"
|
|
3844
3844
|
};
|
|
3845
|
-
const _sfc_main$
|
|
3845
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
3846
3846
|
__name: "LfSteps",
|
|
3847
3847
|
props: {
|
|
3848
3848
|
steps: { default: () => [] },
|
|
@@ -3870,7 +3870,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3870
3870
|
class: normalizeClass(["lf-steps__item", `lf-steps__item--${statusOf(step, i2)}`]),
|
|
3871
3871
|
"aria-current": statusOf(step, i2) === "current" ? "step" : void 0
|
|
3872
3872
|
}, [
|
|
3873
|
-
createElementVNode("span", _hoisted_3$
|
|
3873
|
+
createElementVNode("span", _hoisted_3$d, [
|
|
3874
3874
|
statusOf(step, i2) === "done" ? (openBlock(), createBlock(LfIcon, {
|
|
3875
3875
|
key: 0,
|
|
3876
3876
|
name: "check",
|
|
@@ -3883,31 +3883,31 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3883
3883
|
createTextVNode(toDisplayString(i2 + 1), 1)
|
|
3884
3884
|
], 64))
|
|
3885
3885
|
]),
|
|
3886
|
-
createElementVNode("span", _hoisted_4$
|
|
3887
|
-
createElementVNode("span", _hoisted_5, toDisplayString(step.label), 1),
|
|
3888
|
-
step.description ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(step.description), 1)) : createCommentVNode("", true)
|
|
3886
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
3887
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString(step.label), 1),
|
|
3888
|
+
step.description ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(step.description), 1)) : createCommentVNode("", true)
|
|
3889
3889
|
])
|
|
3890
|
-
], 10, _hoisted_2$
|
|
3890
|
+
], 10, _hoisted_2$f);
|
|
3891
3891
|
}), 128))
|
|
3892
|
-
], 10, _hoisted_1$
|
|
3892
|
+
], 10, _hoisted_1$g);
|
|
3893
3893
|
};
|
|
3894
3894
|
}
|
|
3895
3895
|
});
|
|
3896
|
-
const LfSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3897
|
-
const _hoisted_1$
|
|
3896
|
+
const LfSteps = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-366fd734"]]);
|
|
3897
|
+
const _hoisted_1$f = {
|
|
3898
3898
|
key: 0,
|
|
3899
3899
|
class: "lf-progress__head"
|
|
3900
3900
|
};
|
|
3901
|
-
const _hoisted_2$
|
|
3901
|
+
const _hoisted_2$e = {
|
|
3902
3902
|
key: 0,
|
|
3903
3903
|
class: "lf-progress__label"
|
|
3904
3904
|
};
|
|
3905
|
-
const _hoisted_3$
|
|
3905
|
+
const _hoisted_3$c = {
|
|
3906
3906
|
key: 1,
|
|
3907
3907
|
class: "lf-progress__value"
|
|
3908
3908
|
};
|
|
3909
|
-
const _hoisted_4 = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
3910
|
-
const _sfc_main$
|
|
3909
|
+
const _hoisted_4$9 = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
3910
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
3911
3911
|
__name: "LfProgress",
|
|
3912
3912
|
props: {
|
|
3913
3913
|
value: { default: 0 },
|
|
@@ -3929,9 +3929,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3929
3929
|
return openBlock(), createElementBlock("div", {
|
|
3930
3930
|
class: normalizeClass(["lf-progress", [`lf-progress--${__props.size}`, `lf-progress--${__props.tone}`]])
|
|
3931
3931
|
}, [
|
|
3932
|
-
__props.label || __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3933
|
-
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3934
|
-
__props.showValue && !__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3932
|
+
__props.label || __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
3933
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
3934
|
+
__props.showValue && !__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(display.value), 1)) : createCommentVNode("", true)
|
|
3935
3935
|
])) : createCommentVNode("", true),
|
|
3936
3936
|
createElementVNode("div", {
|
|
3937
3937
|
class: "lf-progress__track",
|
|
@@ -3945,19 +3945,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3945
3945
|
class: normalizeClass(["lf-progress__fill", { "lf-progress__fill--indeterminate": __props.indeterminate }]),
|
|
3946
3946
|
style: normalizeStyle(__props.indeterminate ? void 0 : { width: `${pct.value}%` })
|
|
3947
3947
|
}, null, 6)
|
|
3948
|
-
], 8, _hoisted_4)
|
|
3948
|
+
], 8, _hoisted_4$9)
|
|
3949
3949
|
], 2);
|
|
3950
3950
|
};
|
|
3951
3951
|
}
|
|
3952
3952
|
});
|
|
3953
|
-
const LfProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3954
|
-
const _hoisted_1$
|
|
3955
|
-
const _hoisted_2$
|
|
3956
|
-
const _hoisted_3$
|
|
3953
|
+
const LfProgress = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-ec77fd75"]]);
|
|
3954
|
+
const _hoisted_1$e = { class: "lf-desc__label" };
|
|
3955
|
+
const _hoisted_2$d = { class: "lf-desc__value" };
|
|
3956
|
+
const _hoisted_3$b = {
|
|
3957
3957
|
key: 0,
|
|
3958
3958
|
class: "lf-desc__empty"
|
|
3959
3959
|
};
|
|
3960
|
-
const _sfc_main$
|
|
3960
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3961
3961
|
__name: "LfDescriptions",
|
|
3962
3962
|
props: {
|
|
3963
3963
|
items: { default: () => [] },
|
|
@@ -3978,10 +3978,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3978
3978
|
class: "lf-desc__item",
|
|
3979
3979
|
style: normalizeStyle(item.span ? { gridColumn: `span ${Math.min(item.span, __props.columns)}` } : void 0)
|
|
3980
3980
|
}, [
|
|
3981
|
-
createElementVNode("dt", _hoisted_1$
|
|
3982
|
-
createElementVNode("dd", _hoisted_2$
|
|
3981
|
+
createElementVNode("dt", _hoisted_1$e, toDisplayString(item.label), 1),
|
|
3982
|
+
createElementVNode("dd", _hoisted_2$d, [
|
|
3983
3983
|
renderSlot(_ctx.$slots, `value-${item.key}`, { item }, () => [
|
|
3984
|
-
item.value === null || item.value === void 0 || item.value === "" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3984
|
+
item.value === null || item.value === void 0 || item.value === "" ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3985
3985
|
createTextVNode(toDisplayString(item.value), 1)
|
|
3986
3986
|
], 64))
|
|
3987
3987
|
], true)
|
|
@@ -3992,9 +3992,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3992
3992
|
};
|
|
3993
3993
|
}
|
|
3994
3994
|
});
|
|
3995
|
-
const LfDescriptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3996
|
-
const _hoisted_1$
|
|
3997
|
-
const _sfc_main$
|
|
3995
|
+
const LfDescriptions = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-89d24a22"]]);
|
|
3996
|
+
const _hoisted_1$d = ["id", "placeholder", "disabled"];
|
|
3997
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3998
3998
|
__name: "LfTagInput",
|
|
3999
3999
|
props: /* @__PURE__ */ mergeModels({
|
|
4000
4000
|
label: {},
|
|
@@ -4091,7 +4091,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4091
4091
|
onKeydown,
|
|
4092
4092
|
onPaste,
|
|
4093
4093
|
onBlur: _cache[1] || (_cache[1] = ($event) => commit())
|
|
4094
|
-
}, null, 40, _hoisted_1$
|
|
4094
|
+
}, null, 40, _hoisted_1$d), [
|
|
4095
4095
|
[vModelText, draft.value]
|
|
4096
4096
|
])
|
|
4097
4097
|
], 2)
|
|
@@ -4101,14 +4101,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4101
4101
|
};
|
|
4102
4102
|
}
|
|
4103
4103
|
});
|
|
4104
|
-
const LfTagInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4105
|
-
const _hoisted_1$
|
|
4106
|
-
const _hoisted_2$
|
|
4107
|
-
const _hoisted_3$
|
|
4104
|
+
const LfTagInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-89f5a363"]]);
|
|
4105
|
+
const _hoisted_1$c = ["aria-label"];
|
|
4106
|
+
const _hoisted_2$c = { class: "lf-toolbar__start" };
|
|
4107
|
+
const _hoisted_3$a = {
|
|
4108
4108
|
key: 0,
|
|
4109
4109
|
class: "lf-toolbar__end"
|
|
4110
4110
|
};
|
|
4111
|
-
const _sfc_main$
|
|
4111
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
4112
4112
|
__name: "LfToolbar",
|
|
4113
4113
|
props: {
|
|
4114
4114
|
dense: { type: Boolean },
|
|
@@ -4122,25 +4122,25 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4122
4122
|
role: "toolbar",
|
|
4123
4123
|
"aria-label": __props.ariaLabel
|
|
4124
4124
|
}, [
|
|
4125
|
-
createElementVNode("div", _hoisted_2$
|
|
4125
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
4126
4126
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4127
4127
|
]),
|
|
4128
|
-
_ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4128
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
4129
4129
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4130
4130
|
])) : createCommentVNode("", true)
|
|
4131
|
-
], 10, _hoisted_1$
|
|
4131
|
+
], 10, _hoisted_1$c);
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
4134
|
});
|
|
4135
|
-
const LfToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4136
|
-
const _hoisted_1$
|
|
4137
|
-
const _hoisted_2$
|
|
4138
|
-
const _hoisted_3 = {
|
|
4135
|
+
const LfToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-c81170ed"]]);
|
|
4136
|
+
const _hoisted_1$b = { class: "lf-kbd-group" };
|
|
4137
|
+
const _hoisted_2$b = { class: "lf-kbd" };
|
|
4138
|
+
const _hoisted_3$9 = {
|
|
4139
4139
|
key: 0,
|
|
4140
4140
|
class: "lf-kbd-plus",
|
|
4141
4141
|
"aria-hidden": "true"
|
|
4142
4142
|
};
|
|
4143
|
-
const _sfc_main$
|
|
4143
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
4144
4144
|
__name: "LfKbd",
|
|
4145
4145
|
props: {
|
|
4146
4146
|
keys: {}
|
|
@@ -4149,21 +4149,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4149
4149
|
const props = __props;
|
|
4150
4150
|
const keyList = computed(() => Array.isArray(props.keys) ? props.keys : props.keys.split("+").map((k) => k.trim()));
|
|
4151
4151
|
return (_ctx, _cache) => {
|
|
4152
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
4152
|
+
return openBlock(), createElementBlock("span", _hoisted_1$b, [
|
|
4153
4153
|
(openBlock(true), createElementBlock(Fragment, null, renderList(keyList.value, (k, i2) => {
|
|
4154
4154
|
return openBlock(), createElementBlock(Fragment, { key: i2 }, [
|
|
4155
|
-
createElementVNode("kbd", _hoisted_2$
|
|
4156
|
-
i2 < keyList.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3, "+")) : createCommentVNode("", true)
|
|
4155
|
+
createElementVNode("kbd", _hoisted_2$b, toDisplayString(k), 1),
|
|
4156
|
+
i2 < keyList.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$9, "+")) : createCommentVNode("", true)
|
|
4157
4157
|
], 64);
|
|
4158
4158
|
}), 128))
|
|
4159
4159
|
]);
|
|
4160
4160
|
};
|
|
4161
4161
|
}
|
|
4162
4162
|
});
|
|
4163
|
-
const LfKbd = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4164
|
-
const _hoisted_1 = ["aria-orientation", "aria-valuenow", "aria-label"];
|
|
4165
|
-
const _hoisted_2 = { class: "lf-split__pane lf-split__pane--second" };
|
|
4166
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4163
|
+
const LfKbd = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-89bdfee2"]]);
|
|
4164
|
+
const _hoisted_1$a = ["aria-orientation", "aria-valuenow", "aria-label"];
|
|
4165
|
+
const _hoisted_2$a = { class: "lf-split__pane lf-split__pane--second" };
|
|
4166
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
4167
4167
|
__name: "LfSplitPane",
|
|
4168
4168
|
props: {
|
|
4169
4169
|
direction: { default: "horizontal" },
|
|
@@ -4262,15 +4262,1058 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4262
4262
|
onPointerdown: onDown,
|
|
4263
4263
|
onKeydown: onKey,
|
|
4264
4264
|
onDblclick: _cache[0] || (_cache[0] = ($event) => size.value = __props.initial)
|
|
4265
|
-
}, null, 40, _hoisted_1)) : createCommentVNode("", true),
|
|
4266
|
-
createElementVNode("div", _hoisted_2, [
|
|
4265
|
+
}, null, 40, _hoisted_1$a)) : createCommentVNode("", true),
|
|
4266
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
4267
4267
|
renderSlot(_ctx.$slots, "second", {}, void 0, true)
|
|
4268
4268
|
])
|
|
4269
4269
|
], 2);
|
|
4270
4270
|
};
|
|
4271
4271
|
}
|
|
4272
4272
|
});
|
|
4273
|
-
const LfSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f87ea5e"]]);
|
|
4273
|
+
const LfSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-9f87ea5e"]]);
|
|
4274
|
+
const _hoisted_1$9 = ["role", "aria-label", "aria-hidden"];
|
|
4275
|
+
const _hoisted_2$9 = {
|
|
4276
|
+
key: 0,
|
|
4277
|
+
class: "lf-dot__label"
|
|
4278
|
+
};
|
|
4279
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4280
|
+
__name: "LfColorDot",
|
|
4281
|
+
props: {
|
|
4282
|
+
tone: { default: "neutral" },
|
|
4283
|
+
color: {},
|
|
4284
|
+
label: {},
|
|
4285
|
+
size: { default: "md" },
|
|
4286
|
+
pulse: { type: Boolean },
|
|
4287
|
+
ring: { type: Boolean },
|
|
4288
|
+
ariaLabel: {}
|
|
4289
|
+
},
|
|
4290
|
+
setup(__props) {
|
|
4291
|
+
return (_ctx, _cache) => {
|
|
4292
|
+
return openBlock(), createElementBlock("span", {
|
|
4293
|
+
class: normalizeClass(["lf-dot", [`lf-dot--${__props.size}`, __props.color ? null : `lf-dot--${__props.tone}`]])
|
|
4294
|
+
}, [
|
|
4295
|
+
createElementVNode("span", {
|
|
4296
|
+
class: normalizeClass(["lf-dot__mark", { "lf-dot__mark--pulse": __props.pulse, "lf-dot__mark--ring": __props.ring }]),
|
|
4297
|
+
style: normalizeStyle(__props.color ? { "--lf-dot-color": __props.color } : void 0),
|
|
4298
|
+
role: __props.label || _ctx.$slots.default ? void 0 : "img",
|
|
4299
|
+
"aria-label": __props.label || _ctx.$slots.default ? void 0 : __props.ariaLabel,
|
|
4300
|
+
"aria-hidden": __props.label || _ctx.$slots.default ? "true" : void 0
|
|
4301
|
+
}, null, 14, _hoisted_1$9),
|
|
4302
|
+
__props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$9, [
|
|
4303
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4304
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
4305
|
+
], true)
|
|
4306
|
+
])) : createCommentVNode("", true)
|
|
4307
|
+
], 2);
|
|
4308
|
+
};
|
|
4309
|
+
}
|
|
4310
|
+
});
|
|
4311
|
+
const LfColorDot = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3aea66f7"]]);
|
|
4312
|
+
const _hoisted_1$8 = ["for"];
|
|
4313
|
+
const _hoisted_2$8 = { class: "lf-scan__row" };
|
|
4314
|
+
const _hoisted_3$8 = ["id", "placeholder", "inputmode", "disabled", "aria-invalid", "aria-describedby"];
|
|
4315
|
+
const _hoisted_4$8 = ["id"];
|
|
4316
|
+
const _hoisted_5$8 = ["id"];
|
|
4317
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
4318
|
+
__name: "LfScanInput",
|
|
4319
|
+
props: {
|
|
4320
|
+
label: {},
|
|
4321
|
+
placeholder: {},
|
|
4322
|
+
hint: {},
|
|
4323
|
+
error: {},
|
|
4324
|
+
okText: { default: "OK" },
|
|
4325
|
+
icon: { default: "qr_code_scanner" },
|
|
4326
|
+
numeric: { type: Boolean },
|
|
4327
|
+
normalize: {},
|
|
4328
|
+
resetKey: {},
|
|
4329
|
+
autofocus: { type: Boolean, default: true },
|
|
4330
|
+
disabled: { type: Boolean },
|
|
4331
|
+
size: { default: "lg" }
|
|
4332
|
+
},
|
|
4333
|
+
emits: ["scan"],
|
|
4334
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4335
|
+
const props = __props;
|
|
4336
|
+
const emit = __emit;
|
|
4337
|
+
const id = useId();
|
|
4338
|
+
const value = ref("");
|
|
4339
|
+
const input = ref(null);
|
|
4340
|
+
function submit() {
|
|
4341
|
+
const raw = value.value;
|
|
4342
|
+
const v = props.numeric ? raw.trim() : props.normalize ? props.normalize(raw) : raw.trim().toUpperCase();
|
|
4343
|
+
if (!v) return;
|
|
4344
|
+
emit("scan", v);
|
|
4345
|
+
value.value = "";
|
|
4346
|
+
focus();
|
|
4347
|
+
}
|
|
4348
|
+
function focus() {
|
|
4349
|
+
nextTick(() => {
|
|
4350
|
+
var _a;
|
|
4351
|
+
return (_a = input.value) == null ? void 0 : _a.focus();
|
|
4352
|
+
});
|
|
4353
|
+
}
|
|
4354
|
+
onMounted(() => {
|
|
4355
|
+
if (props.autofocus) focus();
|
|
4356
|
+
});
|
|
4357
|
+
watch(
|
|
4358
|
+
() => props.resetKey,
|
|
4359
|
+
() => {
|
|
4360
|
+
value.value = "";
|
|
4361
|
+
focus();
|
|
4362
|
+
}
|
|
4363
|
+
);
|
|
4364
|
+
__expose({ focus });
|
|
4365
|
+
return (_ctx, _cache) => {
|
|
4366
|
+
return openBlock(), createElementBlock("form", {
|
|
4367
|
+
class: normalizeClass(["lf-scan", `lf-scan--${__props.size}`]),
|
|
4368
|
+
onSubmit: withModifiers(submit, ["prevent"])
|
|
4369
|
+
}, [
|
|
4370
|
+
__props.label ? (openBlock(), createElementBlock("label", {
|
|
4371
|
+
key: 0,
|
|
4372
|
+
class: "lf-scan__label",
|
|
4373
|
+
for: unref(id)
|
|
4374
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$8)) : createCommentVNode("", true),
|
|
4375
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
4376
|
+
withDirectives(createElementVNode("input", {
|
|
4377
|
+
id: unref(id),
|
|
4378
|
+
ref_key: "input",
|
|
4379
|
+
ref: input,
|
|
4380
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
4381
|
+
class: normalizeClass(["lf-scan__input", { "lf-scan__input--error": !!__props.error }]),
|
|
4382
|
+
placeholder: __props.placeholder,
|
|
4383
|
+
inputmode: __props.numeric ? "decimal" : "text",
|
|
4384
|
+
disabled: __props.disabled,
|
|
4385
|
+
autocomplete: "off",
|
|
4386
|
+
autocapitalize: "characters",
|
|
4387
|
+
spellcheck: "false",
|
|
4388
|
+
"aria-invalid": !!__props.error,
|
|
4389
|
+
"aria-describedby": __props.error || __props.hint ? `${unref(id)}-msg` : void 0
|
|
4390
|
+
}, null, 10, _hoisted_3$8), [
|
|
4391
|
+
[vModelText, value.value]
|
|
4392
|
+
]),
|
|
4393
|
+
createVNode(LfButton, {
|
|
4394
|
+
type: "submit",
|
|
4395
|
+
variant: "primary",
|
|
4396
|
+
size: __props.size === "md" ? "md" : "lg",
|
|
4397
|
+
icon: __props.icon,
|
|
4398
|
+
disabled: __props.disabled || !value.value.trim()
|
|
4399
|
+
}, {
|
|
4400
|
+
default: withCtx(() => [
|
|
4401
|
+
createTextVNode(toDisplayString(__props.okText), 1)
|
|
4402
|
+
]),
|
|
4403
|
+
_: 1
|
|
4404
|
+
}, 8, ["size", "icon", "disabled"])
|
|
4405
|
+
]),
|
|
4406
|
+
__props.error ? (openBlock(), createElementBlock("p", {
|
|
4407
|
+
key: 1,
|
|
4408
|
+
id: `${unref(id)}-msg`,
|
|
4409
|
+
class: "lf-scan__error",
|
|
4410
|
+
role: "alert"
|
|
4411
|
+
}, toDisplayString(__props.error), 9, _hoisted_4$8)) : __props.hint ? (openBlock(), createElementBlock("p", {
|
|
4412
|
+
key: 2,
|
|
4413
|
+
id: `${unref(id)}-msg`,
|
|
4414
|
+
class: "lf-scan__hint"
|
|
4415
|
+
}, toDisplayString(__props.hint), 9, _hoisted_5$8)) : createCommentVNode("", true)
|
|
4416
|
+
], 34);
|
|
4417
|
+
};
|
|
4418
|
+
}
|
|
4419
|
+
});
|
|
4420
|
+
const LfScanInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a0a71f90"]]);
|
|
4421
|
+
const _hoisted_1$7 = ["aria-label"];
|
|
4422
|
+
const _hoisted_2$7 = {
|
|
4423
|
+
key: 0,
|
|
4424
|
+
class: "lf-stepper__label"
|
|
4425
|
+
};
|
|
4426
|
+
const _hoisted_3$7 = { class: "lf-stepper__row" };
|
|
4427
|
+
const _hoisted_4$7 = ["aria-label", "disabled"];
|
|
4428
|
+
const _hoisted_5$7 = ["value", "disabled", "aria-label"];
|
|
4429
|
+
const _hoisted_6$5 = ["aria-label", "disabled"];
|
|
4430
|
+
const _hoisted_7$3 = {
|
|
4431
|
+
key: 1,
|
|
4432
|
+
class: "lf-stepper__unit"
|
|
4433
|
+
};
|
|
4434
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4435
|
+
__name: "LfStepper",
|
|
4436
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4437
|
+
label: {},
|
|
4438
|
+
min: {},
|
|
4439
|
+
max: {},
|
|
4440
|
+
step: { default: 1 },
|
|
4441
|
+
unit: {},
|
|
4442
|
+
size: { default: "lg" },
|
|
4443
|
+
disabled: { type: Boolean },
|
|
4444
|
+
decLabel: { default: "줄이기" },
|
|
4445
|
+
incLabel: { default: "늘리기" }
|
|
4446
|
+
}, {
|
|
4447
|
+
"modelValue": { default: 0 },
|
|
4448
|
+
"modelModifiers": {}
|
|
4449
|
+
}),
|
|
4450
|
+
emits: ["update:modelValue"],
|
|
4451
|
+
setup(__props) {
|
|
4452
|
+
const props = __props;
|
|
4453
|
+
const model = useModel(__props, "modelValue");
|
|
4454
|
+
const text = ref(String(model.value));
|
|
4455
|
+
watch(model, (v) => text.value = String(v));
|
|
4456
|
+
function clamp(v) {
|
|
4457
|
+
let n = Number.isFinite(v) ? v : 0;
|
|
4458
|
+
if (props.min !== void 0) n = Math.max(props.min, n);
|
|
4459
|
+
if (props.max !== void 0) n = Math.min(props.max, n);
|
|
4460
|
+
const decimals = (String(props.step).split(".")[1] ?? "").length;
|
|
4461
|
+
return Number(n.toFixed(decimals));
|
|
4462
|
+
}
|
|
4463
|
+
function bump(dir) {
|
|
4464
|
+
if (props.disabled) return;
|
|
4465
|
+
model.value = clamp(model.value + dir * props.step);
|
|
4466
|
+
}
|
|
4467
|
+
let timer = null;
|
|
4468
|
+
function hold(dir) {
|
|
4469
|
+
bump(dir);
|
|
4470
|
+
release();
|
|
4471
|
+
let delay = 400;
|
|
4472
|
+
const tick = () => {
|
|
4473
|
+
bump(dir);
|
|
4474
|
+
delay = Math.max(60, delay * 0.8);
|
|
4475
|
+
timer = setTimeout(tick, delay);
|
|
4476
|
+
};
|
|
4477
|
+
timer = setTimeout(tick, delay);
|
|
4478
|
+
}
|
|
4479
|
+
function release() {
|
|
4480
|
+
if (timer) clearTimeout(timer);
|
|
4481
|
+
timer = null;
|
|
4482
|
+
}
|
|
4483
|
+
onBeforeUnmount(release);
|
|
4484
|
+
function onInput(e3) {
|
|
4485
|
+
text.value = e3.target.value;
|
|
4486
|
+
const n = Number(text.value.replace(/,/g, ""));
|
|
4487
|
+
if (text.value.trim() !== "" && Number.isFinite(n)) model.value = n;
|
|
4488
|
+
}
|
|
4489
|
+
function commit() {
|
|
4490
|
+
model.value = clamp(Number(text.value.replace(/,/g, "")));
|
|
4491
|
+
text.value = String(model.value);
|
|
4492
|
+
}
|
|
4493
|
+
return (_ctx, _cache) => {
|
|
4494
|
+
return openBlock(), createElementBlock("div", {
|
|
4495
|
+
class: normalizeClass(["lf-stepper", [`lf-stepper--${__props.size}`, { "lf-stepper--disabled": __props.disabled }]]),
|
|
4496
|
+
role: "group",
|
|
4497
|
+
"aria-label": __props.label
|
|
4498
|
+
}, [
|
|
4499
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$7, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
4500
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
4501
|
+
createElementVNode("button", {
|
|
4502
|
+
type: "button",
|
|
4503
|
+
class: "lf-stepper__btn",
|
|
4504
|
+
"aria-label": __props.decLabel,
|
|
4505
|
+
disabled: __props.disabled || __props.min !== void 0 && model.value <= __props.min,
|
|
4506
|
+
onPointerdown: _cache[0] || (_cache[0] = ($event) => hold(-1)),
|
|
4507
|
+
onPointerup: release,
|
|
4508
|
+
onPointerleave: release,
|
|
4509
|
+
onKeydown: [
|
|
4510
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => bump(-1), ["prevent"]), ["enter"])),
|
|
4511
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => bump(-1), ["prevent"]), ["space"]))
|
|
4512
|
+
]
|
|
4513
|
+
}, " − ", 40, _hoisted_4$7),
|
|
4514
|
+
createElementVNode("input", {
|
|
4515
|
+
class: "lf-stepper__value",
|
|
4516
|
+
type: "text",
|
|
4517
|
+
inputmode: "decimal",
|
|
4518
|
+
value: text.value,
|
|
4519
|
+
disabled: __props.disabled,
|
|
4520
|
+
"aria-label": __props.label,
|
|
4521
|
+
onInput,
|
|
4522
|
+
onBlur: commit,
|
|
4523
|
+
onKeydown: [
|
|
4524
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => bump(1), ["prevent"]), ["up"])),
|
|
4525
|
+
_cache[4] || (_cache[4] = withKeys(withModifiers(($event) => bump(-1), ["prevent"]), ["down"]))
|
|
4526
|
+
]
|
|
4527
|
+
}, null, 40, _hoisted_5$7),
|
|
4528
|
+
createElementVNode("button", {
|
|
4529
|
+
type: "button",
|
|
4530
|
+
class: "lf-stepper__btn",
|
|
4531
|
+
"aria-label": __props.incLabel,
|
|
4532
|
+
disabled: __props.disabled || __props.max !== void 0 && model.value >= __props.max,
|
|
4533
|
+
onPointerdown: _cache[5] || (_cache[5] = ($event) => hold(1)),
|
|
4534
|
+
onPointerup: release,
|
|
4535
|
+
onPointerleave: release,
|
|
4536
|
+
onKeydown: [
|
|
4537
|
+
_cache[6] || (_cache[6] = withKeys(withModifiers(($event) => bump(1), ["prevent"]), ["enter"])),
|
|
4538
|
+
_cache[7] || (_cache[7] = withKeys(withModifiers(($event) => bump(1), ["prevent"]), ["space"]))
|
|
4539
|
+
]
|
|
4540
|
+
}, " + ", 40, _hoisted_6$5)
|
|
4541
|
+
]),
|
|
4542
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_7$3, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
4543
|
+
], 10, _hoisted_1$7);
|
|
4544
|
+
};
|
|
4545
|
+
}
|
|
4546
|
+
});
|
|
4547
|
+
const LfStepper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-00c8d9bc"]]);
|
|
4548
|
+
const _hoisted_1$6 = ["aria-label"];
|
|
4549
|
+
const _hoisted_2$6 = {
|
|
4550
|
+
key: 0,
|
|
4551
|
+
class: "lf-cells__scroll"
|
|
4552
|
+
};
|
|
4553
|
+
const _hoisted_3$6 = {
|
|
4554
|
+
key: 0,
|
|
4555
|
+
class: "lf-cells__corner",
|
|
4556
|
+
"aria-hidden": "true"
|
|
4557
|
+
};
|
|
4558
|
+
const _hoisted_4$6 = {
|
|
4559
|
+
key: 0,
|
|
4560
|
+
class: "lf-cells__axis lf-cells__axis--row",
|
|
4561
|
+
"aria-hidden": "true"
|
|
4562
|
+
};
|
|
4563
|
+
const _hoisted_5$6 = ["disabled", "title", "aria-label", "aria-selected", "data-row", "data-col", "onClick", "onKeydown"];
|
|
4564
|
+
const _hoisted_6$4 = {
|
|
4565
|
+
key: 1,
|
|
4566
|
+
class: "lf-cells__text"
|
|
4567
|
+
};
|
|
4568
|
+
const _hoisted_7$2 = {
|
|
4569
|
+
key: 1,
|
|
4570
|
+
class: "lf-cells__hole",
|
|
4571
|
+
"aria-hidden": "true"
|
|
4572
|
+
};
|
|
4573
|
+
const _hoisted_8$1 = {
|
|
4574
|
+
key: 1,
|
|
4575
|
+
class: "lf-cells__empty"
|
|
4576
|
+
};
|
|
4577
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4578
|
+
__name: "LfCellGrid",
|
|
4579
|
+
props: {
|
|
4580
|
+
cells: {},
|
|
4581
|
+
selected: {},
|
|
4582
|
+
cellSize: { default: 18 },
|
|
4583
|
+
gap: { default: 3 },
|
|
4584
|
+
rowLabels: { type: [Boolean, Function], default: true },
|
|
4585
|
+
colLabels: { type: [Boolean, Function], default: false },
|
|
4586
|
+
ariaLabel: { default: "cells" },
|
|
4587
|
+
emptyText: { default: "—" }
|
|
4588
|
+
},
|
|
4589
|
+
emits: ["pick"],
|
|
4590
|
+
setup(__props, { emit: __emit }) {
|
|
4591
|
+
const props = __props;
|
|
4592
|
+
const emit = __emit;
|
|
4593
|
+
const index = computed(() => {
|
|
4594
|
+
const m = /* @__PURE__ */ new Map();
|
|
4595
|
+
for (const c2 of props.cells) m.set(`${c2.row}:${c2.col}`, c2);
|
|
4596
|
+
return m;
|
|
4597
|
+
});
|
|
4598
|
+
const rowCount = computed(() => Math.max(0, ...props.cells.map((c2) => c2.row)));
|
|
4599
|
+
const colCount = computed(() => Math.max(0, ...props.cells.map((c2) => c2.col)));
|
|
4600
|
+
const gridStyle = computed(() => ({
|
|
4601
|
+
gridTemplateColumns: `${props.rowLabels ? "auto " : ""}repeat(${colCount.value}, ${props.cellSize}px)`,
|
|
4602
|
+
gap: `${props.gap}px`,
|
|
4603
|
+
"--lf-cell-size": `${props.cellSize}px`
|
|
4604
|
+
}));
|
|
4605
|
+
function at(r, c2) {
|
|
4606
|
+
return index.value.get(`${r}:${c2}`);
|
|
4607
|
+
}
|
|
4608
|
+
function rowLabel(r) {
|
|
4609
|
+
return typeof props.rowLabels === "function" ? props.rowLabels(r) : String(r);
|
|
4610
|
+
}
|
|
4611
|
+
function colLabel(c2) {
|
|
4612
|
+
return typeof props.colLabels === "function" ? props.colLabels(c2) : String(c2);
|
|
4613
|
+
}
|
|
4614
|
+
function onKey(e3, r, c2) {
|
|
4615
|
+
var _a;
|
|
4616
|
+
const d2 = { ArrowUp: [-1, 0], ArrowDown: [1, 0], ArrowLeft: [0, -1], ArrowRight: [0, 1] };
|
|
4617
|
+
const step = d2[e3.key];
|
|
4618
|
+
if (!step) return;
|
|
4619
|
+
e3.preventDefault();
|
|
4620
|
+
let nr = r + step[0];
|
|
4621
|
+
let nc = c2 + step[1];
|
|
4622
|
+
while (nr >= 1 && nc >= 1 && nr <= rowCount.value && nc <= colCount.value) {
|
|
4623
|
+
if (at(nr, nc)) {
|
|
4624
|
+
const root = e3.currentTarget.closest(".lf-cells__grid");
|
|
4625
|
+
(_a = root == null ? void 0 : root.querySelector(`[data-row="${nr}"][data-col="${nc}"]`)) == null ? void 0 : _a.focus();
|
|
4626
|
+
return;
|
|
4627
|
+
}
|
|
4628
|
+
nr += step[0];
|
|
4629
|
+
nc += step[1];
|
|
4630
|
+
}
|
|
4631
|
+
}
|
|
4632
|
+
return (_ctx, _cache) => {
|
|
4633
|
+
return openBlock(), createElementBlock("div", {
|
|
4634
|
+
class: "lf-cells",
|
|
4635
|
+
"aria-label": __props.ariaLabel,
|
|
4636
|
+
role: "grid"
|
|
4637
|
+
}, [
|
|
4638
|
+
__props.cells.length ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
4639
|
+
createElementVNode("div", {
|
|
4640
|
+
class: "lf-cells__grid",
|
|
4641
|
+
style: normalizeStyle(gridStyle.value)
|
|
4642
|
+
}, [
|
|
4643
|
+
__props.colLabels ? (openBlock(), createElementBlock("span", _hoisted_3$6)) : createCommentVNode("", true),
|
|
4644
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(colCount.value, (c2) => {
|
|
4645
|
+
return withDirectives((openBlock(), createElementBlock("span", {
|
|
4646
|
+
key: `c${c2}`,
|
|
4647
|
+
class: "lf-cells__axis lf-cells__axis--col",
|
|
4648
|
+
"aria-hidden": "true"
|
|
4649
|
+
}, toDisplayString(colLabel(c2)), 1)), [
|
|
4650
|
+
[vShow, __props.colLabels]
|
|
4651
|
+
]);
|
|
4652
|
+
}), 128)),
|
|
4653
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(rowCount.value, (r) => {
|
|
4654
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
4655
|
+
key: `r${r}`
|
|
4656
|
+
}, [
|
|
4657
|
+
__props.rowLabels ? (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(rowLabel(r)), 1)) : createCommentVNode("", true),
|
|
4658
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(colCount.value, (c2) => {
|
|
4659
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
4660
|
+
key: `${r}-${c2}`
|
|
4661
|
+
}, [
|
|
4662
|
+
at(r, c2) ? (openBlock(), createElementBlock("button", {
|
|
4663
|
+
key: 0,
|
|
4664
|
+
type: "button",
|
|
4665
|
+
role: "gridcell",
|
|
4666
|
+
class: normalizeClass(["lf-cells__cell", [
|
|
4667
|
+
`lf-cells__cell--${at(r, c2).tone ?? "neutral"}`,
|
|
4668
|
+
{
|
|
4669
|
+
"lf-cells__cell--on": at(r, c2).id === __props.selected,
|
|
4670
|
+
"lf-cells__cell--blocked": at(r, c2).blocked
|
|
4671
|
+
}
|
|
4672
|
+
]]),
|
|
4673
|
+
disabled: at(r, c2).disabled,
|
|
4674
|
+
title: at(r, c2).title ?? at(r, c2).id,
|
|
4675
|
+
"aria-label": at(r, c2).title ?? at(r, c2).id,
|
|
4676
|
+
"aria-selected": at(r, c2).id === __props.selected,
|
|
4677
|
+
"data-row": r,
|
|
4678
|
+
"data-col": c2,
|
|
4679
|
+
onClick: ($event) => emit("pick", at(r, c2)),
|
|
4680
|
+
onKeydown: ($event) => onKey($event, r, c2)
|
|
4681
|
+
}, [
|
|
4682
|
+
at(r, c2).fill !== void 0 ? (openBlock(), createElementBlock("span", {
|
|
4683
|
+
key: 0,
|
|
4684
|
+
class: "lf-cells__fill",
|
|
4685
|
+
style: normalizeStyle({ height: `${Math.round(Math.min(1, Math.max(0, at(r, c2).fill)) * 100)}%` })
|
|
4686
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
4687
|
+
at(r, c2).text ? (openBlock(), createElementBlock("span", _hoisted_6$4, toDisplayString(at(r, c2).text), 1)) : createCommentVNode("", true)
|
|
4688
|
+
], 42, _hoisted_5$6)) : (openBlock(), createElementBlock("span", _hoisted_7$2))
|
|
4689
|
+
], 64);
|
|
4690
|
+
}), 128))
|
|
4691
|
+
], 64);
|
|
4692
|
+
}), 128))
|
|
4693
|
+
], 4)
|
|
4694
|
+
])) : (openBlock(), createElementBlock("p", _hoisted_8$1, toDisplayString(__props.emptyText), 1))
|
|
4695
|
+
], 8, _hoisted_1$6);
|
|
4696
|
+
};
|
|
4697
|
+
}
|
|
4698
|
+
});
|
|
4699
|
+
const LfCellGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-a3780db7"]]);
|
|
4700
|
+
const _hoisted_1$5 = ["title"];
|
|
4701
|
+
const _hoisted_2$5 = ["aria-label", "aria-valuenow"];
|
|
4702
|
+
const _hoisted_3$5 = {
|
|
4703
|
+
key: 0,
|
|
4704
|
+
class: "lf-rank__share"
|
|
4705
|
+
};
|
|
4706
|
+
const _hoisted_4$5 = {
|
|
4707
|
+
key: 1,
|
|
4708
|
+
class: "lf-rank__value"
|
|
4709
|
+
};
|
|
4710
|
+
const _hoisted_5$5 = {
|
|
4711
|
+
key: 1,
|
|
4712
|
+
class: "lf-rank__empty"
|
|
4713
|
+
};
|
|
4714
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
4715
|
+
__name: "LfRankBars",
|
|
4716
|
+
props: {
|
|
4717
|
+
items: {},
|
|
4718
|
+
tone: { default: "accent" },
|
|
4719
|
+
showShare: { type: Boolean, default: true },
|
|
4720
|
+
showValue: { type: Boolean, default: true },
|
|
4721
|
+
limit: {},
|
|
4722
|
+
format: {},
|
|
4723
|
+
compact: { type: Boolean },
|
|
4724
|
+
emptyText: { default: "—" }
|
|
4725
|
+
},
|
|
4726
|
+
setup(__props) {
|
|
4727
|
+
const props = __props;
|
|
4728
|
+
const sorted = computed(() => {
|
|
4729
|
+
const s = [...props.items].sort((a, b2) => b2.value - a.value);
|
|
4730
|
+
return props.limit ? s.slice(0, props.limit) : s;
|
|
4731
|
+
});
|
|
4732
|
+
const total = computed(() => props.items.reduce((a, b2) => a + Math.max(0, b2.value), 0) || 1);
|
|
4733
|
+
const max = computed(() => Math.max(1e-9, ...sorted.value.map((i2) => i2.value)));
|
|
4734
|
+
function share(i2) {
|
|
4735
|
+
return Math.max(0, i2.value) / total.value;
|
|
4736
|
+
}
|
|
4737
|
+
function isOver(i2) {
|
|
4738
|
+
return i2.limit !== void 0 && i2.limit !== null && i2.value > i2.limit;
|
|
4739
|
+
}
|
|
4740
|
+
function pct(v) {
|
|
4741
|
+
return `${Math.round(v * 100)}%`;
|
|
4742
|
+
}
|
|
4743
|
+
function fmt(v) {
|
|
4744
|
+
if (props.format) return props.format(v);
|
|
4745
|
+
return Math.abs(v) >= 100 ? Math.round(v).toLocaleString() : v.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
4746
|
+
}
|
|
4747
|
+
return (_ctx, _cache) => {
|
|
4748
|
+
return sorted.value.length ? (openBlock(), createElementBlock("ul", {
|
|
4749
|
+
key: 0,
|
|
4750
|
+
class: normalizeClass(["lf-rank", { "lf-rank--compact": __props.compact }])
|
|
4751
|
+
}, [
|
|
4752
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sorted.value, (item) => {
|
|
4753
|
+
return openBlock(), createElementBlock("li", {
|
|
4754
|
+
key: item.key,
|
|
4755
|
+
class: normalizeClass(["lf-rank__row", { "lf-rank__row--over": isOver(item) }])
|
|
4756
|
+
}, [
|
|
4757
|
+
createElementVNode("span", {
|
|
4758
|
+
class: "lf-rank__name",
|
|
4759
|
+
title: item.label
|
|
4760
|
+
}, [
|
|
4761
|
+
renderSlot(_ctx.$slots, "label", { item }, () => [
|
|
4762
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
4763
|
+
], true)
|
|
4764
|
+
], 8, _hoisted_1$5),
|
|
4765
|
+
createElementVNode("span", {
|
|
4766
|
+
class: "lf-rank__bar",
|
|
4767
|
+
role: "meter",
|
|
4768
|
+
"aria-label": item.label,
|
|
4769
|
+
"aria-valuenow": Math.round(share(item) * 100),
|
|
4770
|
+
"aria-valuemin": "0",
|
|
4771
|
+
"aria-valuemax": "100"
|
|
4772
|
+
}, [
|
|
4773
|
+
createElementVNode("span", {
|
|
4774
|
+
class: normalizeClass(["lf-rank__fill", `lf-rank__fill--${item.tone ?? (isOver(item) ? "error" : __props.tone)}`]),
|
|
4775
|
+
style: normalizeStyle({ width: `${Math.max(2, item.value / max.value * 100)}%` })
|
|
4776
|
+
}, null, 6)
|
|
4777
|
+
], 8, _hoisted_2$5),
|
|
4778
|
+
__props.showShare ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(pct(share(item))), 1)) : createCommentVNode("", true),
|
|
4779
|
+
__props.showValue ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
|
|
4780
|
+
createTextVNode(toDisplayString(fmt(item.value)), 1),
|
|
4781
|
+
item.limit !== void 0 && item.limit !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4782
|
+
createTextVNode(" / " + toDisplayString(fmt(item.limit)), 1)
|
|
4783
|
+
], 64)) : createCommentVNode("", true)
|
|
4784
|
+
])) : createCommentVNode("", true)
|
|
4785
|
+
], 2);
|
|
4786
|
+
}), 128))
|
|
4787
|
+
], 2)) : (openBlock(), createElementBlock("p", _hoisted_5$5, toDisplayString(__props.emptyText), 1));
|
|
4788
|
+
};
|
|
4789
|
+
}
|
|
4790
|
+
});
|
|
4791
|
+
const LfRankBars = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-622d0701"]]);
|
|
4792
|
+
const _hoisted_1$4 = ["aria-label", "aria-valuenow", "aria-valuemax"];
|
|
4793
|
+
const _hoisted_2$4 = {
|
|
4794
|
+
viewBox: "0 0 36 36",
|
|
4795
|
+
class: "lf-score__svg",
|
|
4796
|
+
"aria-hidden": "true"
|
|
4797
|
+
};
|
|
4798
|
+
const _hoisted_3$4 = ["stroke-dasharray"];
|
|
4799
|
+
const _hoisted_4$4 = { class: "lf-score__center" };
|
|
4800
|
+
const _hoisted_5$4 = { class: "lf-score__value" };
|
|
4801
|
+
const _hoisted_6$3 = {
|
|
4802
|
+
key: 0,
|
|
4803
|
+
class: "lf-score__caption"
|
|
4804
|
+
};
|
|
4805
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4806
|
+
__name: "LfScoreRing",
|
|
4807
|
+
props: {
|
|
4808
|
+
value: {},
|
|
4809
|
+
max: { default: 100 },
|
|
4810
|
+
label: { default: "score" },
|
|
4811
|
+
caption: {},
|
|
4812
|
+
thresholds: { default: () => [40, 70] },
|
|
4813
|
+
higherIsBetter: { type: Boolean },
|
|
4814
|
+
size: { default: "md" },
|
|
4815
|
+
format: {}
|
|
4816
|
+
},
|
|
4817
|
+
setup(__props) {
|
|
4818
|
+
const props = __props;
|
|
4819
|
+
const clamped = computed(() => Math.min(Math.max(props.value, 0), props.max));
|
|
4820
|
+
const dash = computed(() => clamped.value / props.max * 97.4);
|
|
4821
|
+
const display = computed(() => props.format ? props.format(clamped.value) : String(Math.round(clamped.value)));
|
|
4822
|
+
const tone = computed(() => {
|
|
4823
|
+
const [warn, bad] = props.thresholds;
|
|
4824
|
+
const v = clamped.value / props.max * 100;
|
|
4825
|
+
if (props.higherIsBetter) return v >= bad ? "success" : v >= warn ? "warning" : "error";
|
|
4826
|
+
return v >= bad ? "error" : v >= warn ? "warning" : "success";
|
|
4827
|
+
});
|
|
4828
|
+
return (_ctx, _cache) => {
|
|
4829
|
+
return openBlock(), createElementBlock("div", {
|
|
4830
|
+
class: normalizeClass(["lf-score", [`lf-score--${__props.size}`, `lf-score--${tone.value}`]]),
|
|
4831
|
+
role: "meter",
|
|
4832
|
+
"aria-label": __props.label,
|
|
4833
|
+
"aria-valuenow": clamped.value,
|
|
4834
|
+
"aria-valuemin": "0",
|
|
4835
|
+
"aria-valuemax": __props.max
|
|
4836
|
+
}, [
|
|
4837
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$4, [
|
|
4838
|
+
_cache[0] || (_cache[0] = createElementVNode("circle", {
|
|
4839
|
+
class: "lf-score__track",
|
|
4840
|
+
cx: "18",
|
|
4841
|
+
cy: "18",
|
|
4842
|
+
r: "15.5"
|
|
4843
|
+
}, null, -1)),
|
|
4844
|
+
createElementVNode("circle", {
|
|
4845
|
+
class: "lf-score__arc",
|
|
4846
|
+
cx: "18",
|
|
4847
|
+
cy: "18",
|
|
4848
|
+
r: "15.5",
|
|
4849
|
+
"stroke-dasharray": `${dash.value} 100`,
|
|
4850
|
+
transform: "rotate(-90 18 18)"
|
|
4851
|
+
}, null, 8, _hoisted_3$4)
|
|
4852
|
+
])),
|
|
4853
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
4854
|
+
createElementVNode("span", _hoisted_5$4, toDisplayString(display.value), 1),
|
|
4855
|
+
__props.caption ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(__props.caption), 1)) : createCommentVNode("", true)
|
|
4856
|
+
])
|
|
4857
|
+
], 10, _hoisted_1$4);
|
|
4858
|
+
};
|
|
4859
|
+
}
|
|
4860
|
+
});
|
|
4861
|
+
const LfScoreRing = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-9b2efada"]]);
|
|
4862
|
+
const _hoisted_1$3 = ["aria-checked", "disabled"];
|
|
4863
|
+
const _hoisted_2$3 = { class: "lf-choice__head" };
|
|
4864
|
+
const _hoisted_3$3 = { class: "lf-choice__title" };
|
|
4865
|
+
const _hoisted_4$3 = {
|
|
4866
|
+
key: 1,
|
|
4867
|
+
class: "lf-choice__rec"
|
|
4868
|
+
};
|
|
4869
|
+
const _hoisted_5$3 = {
|
|
4870
|
+
key: 2,
|
|
4871
|
+
class: "lf-choice__badge"
|
|
4872
|
+
};
|
|
4873
|
+
const _hoisted_6$2 = {
|
|
4874
|
+
key: 0,
|
|
4875
|
+
class: "lf-choice__desc"
|
|
4876
|
+
};
|
|
4877
|
+
const _hoisted_7$1 = {
|
|
4878
|
+
key: 1,
|
|
4879
|
+
class: "lf-choice__metrics"
|
|
4880
|
+
};
|
|
4881
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4882
|
+
__name: "LfChoiceCard",
|
|
4883
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4884
|
+
value: {},
|
|
4885
|
+
title: {},
|
|
4886
|
+
description: {},
|
|
4887
|
+
icon: {},
|
|
4888
|
+
metrics: {},
|
|
4889
|
+
recommended: { type: Boolean },
|
|
4890
|
+
recommendedText: { default: "추천" },
|
|
4891
|
+
disabled: { type: Boolean }
|
|
4892
|
+
}, {
|
|
4893
|
+
"modelValue": {},
|
|
4894
|
+
"modelModifiers": {}
|
|
4895
|
+
}),
|
|
4896
|
+
emits: ["update:modelValue"],
|
|
4897
|
+
setup(__props) {
|
|
4898
|
+
const props = __props;
|
|
4899
|
+
const model = useModel(__props, "modelValue");
|
|
4900
|
+
const selected = computed(() => model.value === props.value);
|
|
4901
|
+
return (_ctx, _cache) => {
|
|
4902
|
+
var _a;
|
|
4903
|
+
return openBlock(), createElementBlock("button", {
|
|
4904
|
+
type: "button",
|
|
4905
|
+
role: "radio",
|
|
4906
|
+
class: normalizeClass(["lf-choice", { "lf-choice--on": selected.value, "lf-choice--disabled": __props.disabled }]),
|
|
4907
|
+
"aria-checked": selected.value,
|
|
4908
|
+
disabled: __props.disabled,
|
|
4909
|
+
onClick: _cache[0] || (_cache[0] = ($event) => model.value = __props.value)
|
|
4910
|
+
}, [
|
|
4911
|
+
createElementVNode("span", _hoisted_2$3, [
|
|
4912
|
+
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
4913
|
+
class: "lf-choice__radio",
|
|
4914
|
+
"aria-hidden": "true"
|
|
4915
|
+
}, null, -1)),
|
|
4916
|
+
__props.icon ? (openBlock(), createBlock(LfIcon, {
|
|
4917
|
+
key: 0,
|
|
4918
|
+
name: __props.icon,
|
|
4919
|
+
size: "1.125rem",
|
|
4920
|
+
class: "lf-choice__icon"
|
|
4921
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
4922
|
+
createElementVNode("span", _hoisted_3$3, toDisplayString(__props.title), 1),
|
|
4923
|
+
__props.recommended ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(__props.recommendedText), 1)) : createCommentVNode("", true),
|
|
4924
|
+
_ctx.$slots.badge ? (openBlock(), createElementBlock("span", _hoisted_5$3, [
|
|
4925
|
+
renderSlot(_ctx.$slots, "badge", {}, void 0, true)
|
|
4926
|
+
])) : createCommentVNode("", true)
|
|
4927
|
+
]),
|
|
4928
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
|
|
4929
|
+
((_a = __props.metrics) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("dl", _hoisted_7$1, [
|
|
4930
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.metrics, (m) => {
|
|
4931
|
+
return openBlock(), createElementBlock("div", {
|
|
4932
|
+
key: m.label,
|
|
4933
|
+
class: normalizeClass(["lf-choice__metric", m.tone ? `lf-choice__metric--${m.tone}` : null])
|
|
4934
|
+
}, [
|
|
4935
|
+
createElementVNode("dt", null, toDisplayString(m.label), 1),
|
|
4936
|
+
createElementVNode("dd", null, toDisplayString(m.value), 1)
|
|
4937
|
+
], 2);
|
|
4938
|
+
}), 128))
|
|
4939
|
+
])) : createCommentVNode("", true),
|
|
4940
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4941
|
+
], 10, _hoisted_1$3);
|
|
4942
|
+
};
|
|
4943
|
+
}
|
|
4944
|
+
});
|
|
4945
|
+
const LfChoiceCard = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-7a74d929"]]);
|
|
4946
|
+
const _hoisted_1$2 = { class: "lf-tile__head" };
|
|
4947
|
+
const _hoisted_2$2 = ["title"];
|
|
4948
|
+
const _hoisted_3$2 = {
|
|
4949
|
+
key: 0,
|
|
4950
|
+
class: "lf-tile__sub"
|
|
4951
|
+
};
|
|
4952
|
+
const _hoisted_4$2 = {
|
|
4953
|
+
key: 1,
|
|
4954
|
+
class: "lf-tile__lines"
|
|
4955
|
+
};
|
|
4956
|
+
const _hoisted_5$2 = {
|
|
4957
|
+
key: 0,
|
|
4958
|
+
class: "lf-tile__k"
|
|
4959
|
+
};
|
|
4960
|
+
const _hoisted_6$1 = { class: "lf-tile__v" };
|
|
4961
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4962
|
+
__name: "LfStatusTile",
|
|
4963
|
+
props: {
|
|
4964
|
+
title: {},
|
|
4965
|
+
subtitle: {},
|
|
4966
|
+
status: {},
|
|
4967
|
+
tone: { default: "neutral" },
|
|
4968
|
+
lines: {},
|
|
4969
|
+
clickable: { type: Boolean },
|
|
4970
|
+
active: { type: Boolean },
|
|
4971
|
+
dense: { type: Boolean }
|
|
4972
|
+
},
|
|
4973
|
+
emits: ["select"],
|
|
4974
|
+
setup(__props, { emit: __emit }) {
|
|
4975
|
+
const props = __props;
|
|
4976
|
+
const emit = __emit;
|
|
4977
|
+
const badgeTone = computed(() => props.tone);
|
|
4978
|
+
return (_ctx, _cache) => {
|
|
4979
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.clickable ? "button" : "div"), {
|
|
4980
|
+
type: __props.clickable ? "button" : void 0,
|
|
4981
|
+
class: normalizeClass(["lf-tile", [`lf-tile--${__props.tone}`, { "lf-tile--clickable": __props.clickable, "lf-tile--on": __props.active, "lf-tile--dense": __props.dense }]]),
|
|
4982
|
+
"aria-pressed": __props.clickable ? __props.active : void 0,
|
|
4983
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.clickable && emit("select"))
|
|
4984
|
+
}, {
|
|
4985
|
+
default: withCtx(() => {
|
|
4986
|
+
var _a;
|
|
4987
|
+
return [
|
|
4988
|
+
createElementVNode("span", _hoisted_1$2, [
|
|
4989
|
+
createElementVNode("span", {
|
|
4990
|
+
class: "lf-tile__title",
|
|
4991
|
+
title: __props.title
|
|
4992
|
+
}, toDisplayString(__props.title), 9, _hoisted_2$2),
|
|
4993
|
+
__props.status ? (openBlock(), createBlock(LfBadge, {
|
|
4994
|
+
key: 0,
|
|
4995
|
+
tone: badgeTone.value,
|
|
4996
|
+
size: "sm",
|
|
4997
|
+
label: __props.status
|
|
4998
|
+
}, null, 8, ["tone", "label"])) : createCommentVNode("", true)
|
|
4999
|
+
]),
|
|
5000
|
+
__props.subtitle ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true),
|
|
5001
|
+
((_a = __props.lines) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("span", _hoisted_4$2, [
|
|
5002
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (l2, i2) => {
|
|
5003
|
+
return openBlock(), createElementBlock("span", {
|
|
5004
|
+
key: i2,
|
|
5005
|
+
class: "lf-tile__line"
|
|
5006
|
+
}, [
|
|
5007
|
+
l2.label ? (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString(l2.label), 1)) : createCommentVNode("", true),
|
|
5008
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(l2.value), 1)
|
|
5009
|
+
]);
|
|
5010
|
+
}), 128))
|
|
5011
|
+
])) : createCommentVNode("", true),
|
|
5012
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5013
|
+
];
|
|
5014
|
+
}),
|
|
5015
|
+
_: 3
|
|
5016
|
+
}, 8, ["type", "class", "aria-pressed"]);
|
|
5017
|
+
};
|
|
5018
|
+
}
|
|
5019
|
+
});
|
|
5020
|
+
const LfStatusTile = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a991780a"]]);
|
|
5021
|
+
const _hoisted_1$1 = {
|
|
5022
|
+
key: 0,
|
|
5023
|
+
class: "lf-code__bar"
|
|
5024
|
+
};
|
|
5025
|
+
const _hoisted_2$1 = { class: "lf-code__title" };
|
|
5026
|
+
const _hoisted_3$1 = { key: 0 };
|
|
5027
|
+
const _hoisted_4$1 = { key: 1 };
|
|
5028
|
+
const _hoisted_5$1 = {
|
|
5029
|
+
class: "lf-code__no",
|
|
5030
|
+
"aria-hidden": "true"
|
|
5031
|
+
};
|
|
5032
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
5033
|
+
__name: "LfCodeBlock",
|
|
5034
|
+
props: {
|
|
5035
|
+
code: {},
|
|
5036
|
+
title: {},
|
|
5037
|
+
maxHeight: { default: "24rem" },
|
|
5038
|
+
wrap: { type: Boolean },
|
|
5039
|
+
lineNumbers: { type: Boolean },
|
|
5040
|
+
copyable: { type: Boolean, default: true },
|
|
5041
|
+
copyText: { default: "복사" },
|
|
5042
|
+
copiedText: { default: "복사됨" }
|
|
5043
|
+
},
|
|
5044
|
+
setup(__props) {
|
|
5045
|
+
const props = __props;
|
|
5046
|
+
const lines = computed(() => props.code.split("\n"));
|
|
5047
|
+
const canCopy = typeof navigator !== "undefined" && !!navigator.clipboard;
|
|
5048
|
+
const copied = ref(false);
|
|
5049
|
+
async function copy() {
|
|
5050
|
+
try {
|
|
5051
|
+
await navigator.clipboard.writeText(props.code);
|
|
5052
|
+
copied.value = true;
|
|
5053
|
+
setTimeout(() => copied.value = false, 1500);
|
|
5054
|
+
} catch {
|
|
5055
|
+
copied.value = false;
|
|
5056
|
+
}
|
|
5057
|
+
}
|
|
5058
|
+
return (_ctx, _cache) => {
|
|
5059
|
+
return openBlock(), createElementBlock("figure", {
|
|
5060
|
+
class: normalizeClass(["lf-code", { "lf-code--wrap": __props.wrap }])
|
|
5061
|
+
}, [
|
|
5062
|
+
__props.title || __props.copyable ? (openBlock(), createElementBlock("figcaption", _hoisted_1$1, [
|
|
5063
|
+
createElementVNode("span", _hoisted_2$1, toDisplayString(__props.title), 1),
|
|
5064
|
+
__props.copyable && unref(canCopy) ? (openBlock(), createElementBlock("button", {
|
|
5065
|
+
key: 0,
|
|
5066
|
+
type: "button",
|
|
5067
|
+
class: "lf-code__copy",
|
|
5068
|
+
onClick: copy
|
|
5069
|
+
}, [
|
|
5070
|
+
createVNode(LfIcon, {
|
|
5071
|
+
name: copied.value ? "check" : "content_copy",
|
|
5072
|
+
size: "0.875rem"
|
|
5073
|
+
}, null, 8, ["name"]),
|
|
5074
|
+
createElementVNode("span", null, toDisplayString(copied.value ? __props.copiedText : __props.copyText), 1)
|
|
5075
|
+
])) : createCommentVNode("", true)
|
|
5076
|
+
])) : createCommentVNode("", true),
|
|
5077
|
+
createElementVNode("pre", {
|
|
5078
|
+
class: "lf-code__pre",
|
|
5079
|
+
style: normalizeStyle({ maxHeight: __props.maxHeight }),
|
|
5080
|
+
tabindex: "0"
|
|
5081
|
+
}, [
|
|
5082
|
+
!__props.lineNumbers ? (openBlock(), createElementBlock("code", _hoisted_3$1, toDisplayString(__props.code), 1)) : (openBlock(), createElementBlock("code", _hoisted_4$1, [
|
|
5083
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, i2) => {
|
|
5084
|
+
return openBlock(), createElementBlock("span", {
|
|
5085
|
+
key: i2,
|
|
5086
|
+
class: "lf-code__line"
|
|
5087
|
+
}, [
|
|
5088
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(i2 + 1), 1),
|
|
5089
|
+
createTextVNode(toDisplayString(line) + "\n", 1)
|
|
5090
|
+
]);
|
|
5091
|
+
}), 128))
|
|
5092
|
+
]))
|
|
5093
|
+
], 4)
|
|
5094
|
+
], 2);
|
|
5095
|
+
};
|
|
5096
|
+
}
|
|
5097
|
+
});
|
|
5098
|
+
const LfCodeBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c26782cf"]]);
|
|
5099
|
+
const _hoisted_1 = { class: "lf-gridedit__table" };
|
|
5100
|
+
const _hoisted_2 = {
|
|
5101
|
+
class: "lf-gridedit__corner",
|
|
5102
|
+
scope: "col"
|
|
5103
|
+
};
|
|
5104
|
+
const _hoisted_3 = { key: 0 };
|
|
5105
|
+
const _hoisted_4 = {
|
|
5106
|
+
key: 0,
|
|
5107
|
+
scope: "col",
|
|
5108
|
+
class: "lf-gridedit__col lf-gridedit__col--total"
|
|
5109
|
+
};
|
|
5110
|
+
const _hoisted_5 = {
|
|
5111
|
+
scope: "row",
|
|
5112
|
+
class: "lf-gridedit__row"
|
|
5113
|
+
};
|
|
5114
|
+
const _hoisted_6 = { key: 0 };
|
|
5115
|
+
const _hoisted_7 = ["value", "aria-label", "data-ri", "data-ci", "onChange", "onKeydown"];
|
|
5116
|
+
const _hoisted_8 = {
|
|
5117
|
+
key: 1,
|
|
5118
|
+
class: "lf-gridedit__value"
|
|
5119
|
+
};
|
|
5120
|
+
const _hoisted_9 = {
|
|
5121
|
+
key: 2,
|
|
5122
|
+
class: "lf-gridedit__hint"
|
|
5123
|
+
};
|
|
5124
|
+
const _hoisted_10 = {
|
|
5125
|
+
key: 0,
|
|
5126
|
+
class: "lf-gridedit__cell lf-gridedit__cell--total"
|
|
5127
|
+
};
|
|
5128
|
+
const _hoisted_11 = { class: "lf-gridedit__value" };
|
|
5129
|
+
const _hoisted_12 = { key: 0 };
|
|
5130
|
+
const _hoisted_13 = {
|
|
5131
|
+
scope: "row",
|
|
5132
|
+
class: "lf-gridedit__row"
|
|
5133
|
+
};
|
|
5134
|
+
const _hoisted_14 = { class: "lf-gridedit__value" };
|
|
5135
|
+
const _hoisted_15 = {
|
|
5136
|
+
key: 0,
|
|
5137
|
+
class: "lf-gridedit__cell lf-gridedit__cell--total"
|
|
5138
|
+
};
|
|
5139
|
+
const _hoisted_16 = { class: "lf-gridedit__value" };
|
|
5140
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5141
|
+
__name: "LfGridEditor",
|
|
5142
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5143
|
+
rows: {},
|
|
5144
|
+
columns: {},
|
|
5145
|
+
baseline: {},
|
|
5146
|
+
hints: {},
|
|
5147
|
+
readonly: { type: Boolean },
|
|
5148
|
+
allowNegative: { type: Boolean },
|
|
5149
|
+
decimals: { default: 0 },
|
|
5150
|
+
totals: { type: Boolean },
|
|
5151
|
+
rowTotals: { type: Boolean },
|
|
5152
|
+
cornerLabel: { default: "" },
|
|
5153
|
+
totalLabel: { default: "합계" },
|
|
5154
|
+
maxHeight: { default: "32rem" }
|
|
5155
|
+
}, {
|
|
5156
|
+
"modelValue": { default: () => ({}) },
|
|
5157
|
+
"modelModifiers": {}
|
|
5158
|
+
}),
|
|
5159
|
+
emits: /* @__PURE__ */ mergeModels(["cellChange"], ["update:modelValue"]),
|
|
5160
|
+
setup(__props, { emit: __emit }) {
|
|
5161
|
+
const props = __props;
|
|
5162
|
+
const model = useModel(__props, "modelValue");
|
|
5163
|
+
const emit = __emit;
|
|
5164
|
+
function get(r, c2) {
|
|
5165
|
+
var _a;
|
|
5166
|
+
return ((_a = model.value[r]) == null ? void 0 : _a[c2]) ?? null;
|
|
5167
|
+
}
|
|
5168
|
+
function hint(r, c2) {
|
|
5169
|
+
var _a, _b;
|
|
5170
|
+
const v = (_b = (_a = props.hints) == null ? void 0 : _a[r]) == null ? void 0 : _b[c2];
|
|
5171
|
+
return v === null || v === void 0 ? void 0 : typeof v === "number" ? fmt(v) : v;
|
|
5172
|
+
}
|
|
5173
|
+
function ro(r, c2) {
|
|
5174
|
+
return props.readonly || r.readonly || c2.readonly;
|
|
5175
|
+
}
|
|
5176
|
+
function isChanged(r, c2) {
|
|
5177
|
+
var _a;
|
|
5178
|
+
if (!props.baseline) return false;
|
|
5179
|
+
return (((_a = props.baseline[r]) == null ? void 0 : _a[c2]) ?? null) !== (get(r, c2) ?? null);
|
|
5180
|
+
}
|
|
5181
|
+
function fmt(v) {
|
|
5182
|
+
if (v === null || v === void 0) return "";
|
|
5183
|
+
return v.toLocaleString(void 0, { minimumFractionDigits: props.decimals, maximumFractionDigits: props.decimals });
|
|
5184
|
+
}
|
|
5185
|
+
function fmtInput(v) {
|
|
5186
|
+
return v === null || v === void 0 ? "" : String(v);
|
|
5187
|
+
}
|
|
5188
|
+
function set(r, c2, raw, e3) {
|
|
5189
|
+
const input = e3.target;
|
|
5190
|
+
const t = raw.replace(/,/g, "").trim();
|
|
5191
|
+
let n = t === "" ? 0 : Number(t);
|
|
5192
|
+
if (!Number.isFinite(n) || !props.allowNegative && n < 0) {
|
|
5193
|
+
input.value = fmtInput(get(r, c2));
|
|
5194
|
+
return;
|
|
5195
|
+
}
|
|
5196
|
+
const f3 = 10 ** props.decimals;
|
|
5197
|
+
n = Math.round(n * f3) / f3;
|
|
5198
|
+
model.value = { ...model.value, [r]: { ...model.value[r] ?? {}, [c2]: n } };
|
|
5199
|
+
emit("cellChange", r, c2, n);
|
|
5200
|
+
}
|
|
5201
|
+
function focusCell(root, ri, ci) {
|
|
5202
|
+
var _a;
|
|
5203
|
+
(_a = root == null ? void 0 : root.querySelector(`input[data-ri="${ri}"][data-ci="${ci}"]`)) == null ? void 0 : _a.focus();
|
|
5204
|
+
}
|
|
5205
|
+
function onKey(e3, ri, ci) {
|
|
5206
|
+
const root = e3.currentTarget.closest("table");
|
|
5207
|
+
const input = e3.currentTarget;
|
|
5208
|
+
const atEnd = input.selectionStart === input.value.length;
|
|
5209
|
+
const atStart = input.selectionEnd === 0;
|
|
5210
|
+
let to = null;
|
|
5211
|
+
if (e3.key === "Enter" || e3.key === "ArrowDown") to = [ri + 1, ci];
|
|
5212
|
+
else if (e3.key === "ArrowUp") to = [ri - 1, ci];
|
|
5213
|
+
else if (e3.key === "ArrowRight" && atEnd) to = [ri, ci + 1];
|
|
5214
|
+
else if (e3.key === "ArrowLeft" && atStart) to = [ri, ci - 1];
|
|
5215
|
+
if (!to) return;
|
|
5216
|
+
e3.preventDefault();
|
|
5217
|
+
input.dispatchEvent(new Event("change"));
|
|
5218
|
+
focusCell(root, to[0], to[1]);
|
|
5219
|
+
}
|
|
5220
|
+
function rowSum(r) {
|
|
5221
|
+
return props.columns.reduce((a, c2) => a + (get(r, c2.key) ?? 0), 0);
|
|
5222
|
+
}
|
|
5223
|
+
function colSum(c2) {
|
|
5224
|
+
return props.rows.reduce((a, r) => a + (get(r.key, c2) ?? 0), 0);
|
|
5225
|
+
}
|
|
5226
|
+
const grand = computed(() => props.rows.reduce((a, r) => a + rowSum(r.key), 0));
|
|
5227
|
+
return (_ctx, _cache) => {
|
|
5228
|
+
return openBlock(), createElementBlock("div", {
|
|
5229
|
+
class: "lf-gridedit",
|
|
5230
|
+
style: normalizeStyle({ maxHeight: __props.maxHeight })
|
|
5231
|
+
}, [
|
|
5232
|
+
createElementVNode("table", _hoisted_1, [
|
|
5233
|
+
createElementVNode("thead", null, [
|
|
5234
|
+
createElementVNode("tr", null, [
|
|
5235
|
+
createElementVNode("th", _hoisted_2, toDisplayString(__props.cornerLabel), 1),
|
|
5236
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (c2) => {
|
|
5237
|
+
return openBlock(), createElementBlock("th", {
|
|
5238
|
+
key: c2.key,
|
|
5239
|
+
scope: "col",
|
|
5240
|
+
class: normalizeClass(["lf-gridedit__col", { "lf-gridedit__col--ro": c2.readonly }])
|
|
5241
|
+
}, [
|
|
5242
|
+
createElementVNode("span", null, toDisplayString(c2.label), 1),
|
|
5243
|
+
c2.sub ? (openBlock(), createElementBlock("small", _hoisted_3, toDisplayString(c2.sub), 1)) : createCommentVNode("", true)
|
|
5244
|
+
], 2);
|
|
5245
|
+
}), 128)),
|
|
5246
|
+
__props.rowTotals ? (openBlock(), createElementBlock("th", _hoisted_4, toDisplayString(__props.totalLabel), 1)) : createCommentVNode("", true)
|
|
5247
|
+
])
|
|
5248
|
+
]),
|
|
5249
|
+
createElementVNode("tbody", null, [
|
|
5250
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (r, ri) => {
|
|
5251
|
+
return openBlock(), createElementBlock("tr", {
|
|
5252
|
+
key: r.key
|
|
5253
|
+
}, [
|
|
5254
|
+
createElementVNode("th", _hoisted_5, [
|
|
5255
|
+
createElementVNode("span", null, toDisplayString(r.label), 1),
|
|
5256
|
+
r.sub ? (openBlock(), createElementBlock("small", _hoisted_6, toDisplayString(r.sub), 1)) : createCommentVNode("", true)
|
|
5257
|
+
]),
|
|
5258
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (c2, ci) => {
|
|
5259
|
+
return openBlock(), createElementBlock("td", {
|
|
5260
|
+
key: c2.key,
|
|
5261
|
+
class: normalizeClass(["lf-gridedit__cell", {
|
|
5262
|
+
"lf-gridedit__cell--changed": isChanged(r.key, c2.key),
|
|
5263
|
+
"lf-gridedit__cell--neg": (get(r.key, c2.key) ?? 0) < 0,
|
|
5264
|
+
"lf-gridedit__cell--ro": ro(r, c2)
|
|
5265
|
+
}])
|
|
5266
|
+
}, [
|
|
5267
|
+
!ro(r, c2) ? (openBlock(), createElementBlock("input", {
|
|
5268
|
+
key: 0,
|
|
5269
|
+
class: "lf-gridedit__input",
|
|
5270
|
+
inputmode: "decimal",
|
|
5271
|
+
value: fmtInput(get(r.key, c2.key)),
|
|
5272
|
+
"aria-label": `${r.label} ${c2.label}`,
|
|
5273
|
+
"data-ri": ri,
|
|
5274
|
+
"data-ci": ci,
|
|
5275
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => $event.target.select()),
|
|
5276
|
+
onChange: ($event) => set(r.key, c2.key, $event.target.value, $event),
|
|
5277
|
+
onKeydown: ($event) => onKey($event, ri, ci)
|
|
5278
|
+
}, null, 40, _hoisted_7)) : (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(fmt(get(r.key, c2.key))), 1)),
|
|
5279
|
+
hint(r.key, c2.key) !== void 0 || _ctx.$slots.hint ? (openBlock(), createElementBlock("small", _hoisted_9, [
|
|
5280
|
+
renderSlot(_ctx.$slots, "hint", {
|
|
5281
|
+
row: r,
|
|
5282
|
+
column: c2
|
|
5283
|
+
}, () => [
|
|
5284
|
+
createTextVNode(toDisplayString(hint(r.key, c2.key)), 1)
|
|
5285
|
+
], true)
|
|
5286
|
+
])) : createCommentVNode("", true)
|
|
5287
|
+
], 2);
|
|
5288
|
+
}), 128)),
|
|
5289
|
+
__props.rowTotals ? (openBlock(), createElementBlock("td", _hoisted_10, [
|
|
5290
|
+
createElementVNode("span", _hoisted_11, toDisplayString(fmt(rowSum(r.key))), 1)
|
|
5291
|
+
])) : createCommentVNode("", true)
|
|
5292
|
+
]);
|
|
5293
|
+
}), 128))
|
|
5294
|
+
]),
|
|
5295
|
+
__props.totals ? (openBlock(), createElementBlock("tfoot", _hoisted_12, [
|
|
5296
|
+
createElementVNode("tr", null, [
|
|
5297
|
+
createElementVNode("th", _hoisted_13, toDisplayString(__props.totalLabel), 1),
|
|
5298
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (c2) => {
|
|
5299
|
+
return openBlock(), createElementBlock("td", {
|
|
5300
|
+
key: c2.key,
|
|
5301
|
+
class: "lf-gridedit__cell lf-gridedit__cell--total"
|
|
5302
|
+
}, [
|
|
5303
|
+
createElementVNode("span", _hoisted_14, toDisplayString(fmt(colSum(c2.key))), 1)
|
|
5304
|
+
]);
|
|
5305
|
+
}), 128)),
|
|
5306
|
+
__props.rowTotals ? (openBlock(), createElementBlock("td", _hoisted_15, [
|
|
5307
|
+
createElementVNode("span", _hoisted_16, toDisplayString(fmt(grand.value)), 1)
|
|
5308
|
+
])) : createCommentVNode("", true)
|
|
5309
|
+
])
|
|
5310
|
+
])) : createCommentVNode("", true)
|
|
5311
|
+
])
|
|
5312
|
+
], 4);
|
|
5313
|
+
};
|
|
5314
|
+
}
|
|
5315
|
+
});
|
|
5316
|
+
const LfGridEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ab94cb9"]]);
|
|
4274
5317
|
class ApiError extends Error {
|
|
4275
5318
|
constructor(status, message, detail) {
|
|
4276
5319
|
super(message);
|
|
@@ -4421,13 +5464,18 @@ export {
|
|
|
4421
5464
|
LfBadge,
|
|
4422
5465
|
LfButton,
|
|
4423
5466
|
LfCard,
|
|
5467
|
+
LfCellGrid,
|
|
4424
5468
|
LfCheckbox,
|
|
5469
|
+
LfChoiceCard,
|
|
5470
|
+
LfCodeBlock,
|
|
5471
|
+
LfColorDot,
|
|
4425
5472
|
LfDateRange,
|
|
4426
5473
|
LfDescriptions,
|
|
4427
5474
|
LfDivider,
|
|
4428
5475
|
LfDrawer,
|
|
4429
5476
|
LfEmptyState,
|
|
4430
5477
|
LfField,
|
|
5478
|
+
LfGridEditor,
|
|
4431
5479
|
LfIcon,
|
|
4432
5480
|
LfIconButton,
|
|
4433
5481
|
LfKbd,
|
|
@@ -4441,12 +5489,17 @@ export {
|
|
|
4441
5489
|
LfPagination,
|
|
4442
5490
|
LfProgress,
|
|
4443
5491
|
LfRadioGroup,
|
|
5492
|
+
LfRankBars,
|
|
5493
|
+
LfScanInput,
|
|
5494
|
+
LfScoreRing,
|
|
4444
5495
|
e2 as LfSegmented,
|
|
4445
5496
|
f2 as LfSelect,
|
|
4446
5497
|
LfSkeleton,
|
|
4447
5498
|
LfSpinner,
|
|
4448
5499
|
LfSplitPane,
|
|
4449
5500
|
LfStatCard,
|
|
5501
|
+
LfStatusTile,
|
|
5502
|
+
LfStepper,
|
|
4450
5503
|
LfSteps,
|
|
4451
5504
|
LfSwitch,
|
|
4452
5505
|
LfTable,
|
|
@@ -4456,7 +5509,7 @@ export {
|
|
|
4456
5509
|
LfTextarea,
|
|
4457
5510
|
LfToolbar,
|
|
4458
5511
|
LfTooltip,
|
|
4459
|
-
_sfc_main$
|
|
5512
|
+
_sfc_main$p as LfTransitionList,
|
|
4460
5513
|
LfTree,
|
|
4461
5514
|
c as applySemanticPalette,
|
|
4462
5515
|
applyTheme,
|