@loafacto/ui 0.18.1 → 0.20.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-BjlkJm2I.js +581 -0
- package/dist/LfSegmented-BjlkJm2I.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 +124 -0
- package/dist/index.d.ts +16 -1
- package/dist/index.js +1820 -567
- package/dist/index.js.map +1 -1
- package/dist/lib/conventions.d.ts +8 -0
- package/dist/lib/feedback.d.ts +11 -0
- package/dist/lib/thumb.d.ts +22 -0
- package/dist/lib/tooltip.d.ts +1 -0
- package/dist/loafacto-ui.css +1408 -276
- package/dist/map3d.js +1 -1
- package/dist/stores/confirm.d.ts +1 -1
- package/dist/types.d.ts +55 -0
- package/package.json +1 -1
- package/dist/LfSegmented-C35GdK7N.js +0 -455
- 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-BjlkJm2I.js";
|
|
5
|
+
import { e as e2, f as f2 } from "./LfSegmented-BjlkJm2I.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-fd060854"]]);
|
|
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-fbe98cd7"]]);
|
|
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-61964a83"]]);
|
|
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: {},
|
|
@@ -1669,13 +1669,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1669
1669
|
count: {}
|
|
1670
1670
|
},
|
|
1671
1671
|
setup(__props) {
|
|
1672
|
-
const slots = useSlots();
|
|
1673
|
-
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1674
1672
|
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$
|
|
1673
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
1674
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
1675
|
+
createElementVNode("h1", _hoisted_3$r, [
|
|
1676
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$m, [
|
|
1679
1677
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1680
1678
|
createVNode(LfIcon, {
|
|
1681
1679
|
name: __props.icon,
|
|
@@ -1688,14 +1686,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1688
1686
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1689
1687
|
], true)
|
|
1690
1688
|
]),
|
|
1691
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1689
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$k, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1692
1690
|
]),
|
|
1693
|
-
|
|
1691
|
+
_ctx.$slots.filters || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
|
|
1694
1692
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1695
1693
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1696
1694
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1697
1695
|
])) : createCommentVNode("", true),
|
|
1698
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1696
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$b, [
|
|
1699
1697
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1700
1698
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1701
1699
|
], true)
|
|
@@ -1704,14 +1702,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1704
1702
|
};
|
|
1705
1703
|
}
|
|
1706
1704
|
});
|
|
1707
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1708
|
-
const _hoisted_1$
|
|
1705
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-503c1630"]]);
|
|
1706
|
+
const _hoisted_1$y = {
|
|
1709
1707
|
key: 0,
|
|
1710
1708
|
class: "lf-badge__dot",
|
|
1711
1709
|
"aria-hidden": "true"
|
|
1712
1710
|
};
|
|
1713
|
-
const _hoisted_2$
|
|
1714
|
-
const _sfc_main$
|
|
1711
|
+
const _hoisted_2$w = ["aria-label"];
|
|
1712
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1715
1713
|
__name: "LfBadge",
|
|
1716
1714
|
props: {
|
|
1717
1715
|
label: {},
|
|
@@ -1731,7 +1729,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1731
1729
|
return openBlock(), createElementBlock("span", {
|
|
1732
1730
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1733
1731
|
}, [
|
|
1734
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1732
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$y)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1735
1733
|
key: 1,
|
|
1736
1734
|
name: __props.icon,
|
|
1737
1735
|
path: __props.iconPath,
|
|
@@ -1751,27 +1749,27 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1751
1749
|
name: "close",
|
|
1752
1750
|
size: "0.75rem"
|
|
1753
1751
|
})
|
|
1754
|
-
], 8, _hoisted_2$
|
|
1752
|
+
], 8, _hoisted_2$w)) : createCommentVNode("", true)
|
|
1755
1753
|
], 2);
|
|
1756
1754
|
};
|
|
1757
1755
|
}
|
|
1758
1756
|
});
|
|
1759
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1760
|
-
const _hoisted_1$
|
|
1761
|
-
const _hoisted_2$
|
|
1757
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-31b186b5"]]);
|
|
1758
|
+
const _hoisted_1$x = ["role"];
|
|
1759
|
+
const _hoisted_2$v = {
|
|
1762
1760
|
class: "lf-alert__badge",
|
|
1763
1761
|
"aria-hidden": "true"
|
|
1764
1762
|
};
|
|
1765
|
-
const _hoisted_3$
|
|
1766
|
-
const _hoisted_4$
|
|
1763
|
+
const _hoisted_3$q = { class: "lf-alert__body" };
|
|
1764
|
+
const _hoisted_4$l = {
|
|
1767
1765
|
key: 0,
|
|
1768
1766
|
class: "lf-alert__title"
|
|
1769
1767
|
};
|
|
1770
|
-
const _hoisted_5$
|
|
1768
|
+
const _hoisted_5$j = {
|
|
1771
1769
|
key: 2,
|
|
1772
1770
|
class: "lf-alert__actions"
|
|
1773
1771
|
};
|
|
1774
|
-
const _sfc_main$
|
|
1772
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1775
1773
|
__name: "LfAlert",
|
|
1776
1774
|
props: {
|
|
1777
1775
|
tone: { default: "info" },
|
|
@@ -1797,7 +1795,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1797
1795
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
1798
1796
|
role: __props.tone === "error" ? "alert" : "status"
|
|
1799
1797
|
}, [
|
|
1800
|
-
createElementVNode("span", _hoisted_2$
|
|
1798
|
+
createElementVNode("span", _hoisted_2$v, [
|
|
1801
1799
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1802
1800
|
createVNode(LfIcon, {
|
|
1803
1801
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -1806,8 +1804,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1806
1804
|
}, null, 8, ["name", "path", "size"])
|
|
1807
1805
|
], true)
|
|
1808
1806
|
]),
|
|
1809
|
-
createElementVNode("div", _hoisted_3$
|
|
1810
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1807
|
+
createElementVNode("div", _hoisted_3$q, [
|
|
1808
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1811
1809
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1812
1810
|
key: 1,
|
|
1813
1811
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -1816,7 +1814,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1816
1814
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
1817
1815
|
], true)
|
|
1818
1816
|
], 2)) : createCommentVNode("", true),
|
|
1819
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1817
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
|
|
1820
1818
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1821
1819
|
])) : createCommentVNode("", true)
|
|
1822
1820
|
]),
|
|
@@ -1828,14 +1826,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1828
1826
|
label: __props.closeLabel,
|
|
1829
1827
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
1830
1828
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1831
|
-
], 10, _hoisted_1$
|
|
1829
|
+
], 10, _hoisted_1$x);
|
|
1832
1830
|
};
|
|
1833
1831
|
}
|
|
1834
1832
|
});
|
|
1835
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1836
|
-
const _hoisted_1$
|
|
1837
|
-
const _hoisted_2$
|
|
1838
|
-
const _sfc_main$
|
|
1833
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-62839786"]]);
|
|
1834
|
+
const _hoisted_1$w = ["title"];
|
|
1835
|
+
const _hoisted_2$u = ["src", "alt"];
|
|
1836
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1839
1837
|
__name: "LfAvatar",
|
|
1840
1838
|
props: {
|
|
1841
1839
|
name: {},
|
|
@@ -1870,30 +1868,30 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1870
1868
|
src: __props.src,
|
|
1871
1869
|
alt: __props.name ?? "",
|
|
1872
1870
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
1873
|
-
}, null, 40, _hoisted_2$
|
|
1871
|
+
}, null, 40, _hoisted_2$u)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1874
1872
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
1875
1873
|
], 64))
|
|
1876
|
-
], 14, _hoisted_1$
|
|
1874
|
+
], 14, _hoisted_1$w);
|
|
1877
1875
|
};
|
|
1878
1876
|
}
|
|
1879
1877
|
});
|
|
1880
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1881
|
-
const _hoisted_1$
|
|
1878
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-61adf36e"]]);
|
|
1879
|
+
const _hoisted_1$v = {
|
|
1882
1880
|
key: 0,
|
|
1883
1881
|
class: "lf-table__select"
|
|
1884
1882
|
};
|
|
1885
|
-
const _hoisted_2$
|
|
1886
|
-
const _hoisted_3$
|
|
1887
|
-
const _hoisted_4$
|
|
1888
|
-
const _hoisted_5$
|
|
1883
|
+
const _hoisted_2$t = ["checked", ".indeterminate", "disabled", "aria-label"];
|
|
1884
|
+
const _hoisted_3$p = ["aria-sort"];
|
|
1885
|
+
const _hoisted_4$k = ["onClick"];
|
|
1886
|
+
const _hoisted_5$i = {
|
|
1889
1887
|
key: 0,
|
|
1890
1888
|
class: "lf-table__select"
|
|
1891
1889
|
};
|
|
1892
|
-
const _hoisted_6$
|
|
1893
|
-
const _hoisted_7$
|
|
1894
|
-
const _hoisted_8$
|
|
1895
|
-
const _hoisted_9$
|
|
1896
|
-
const _sfc_main$
|
|
1890
|
+
const _hoisted_6$d = { key: 1 };
|
|
1891
|
+
const _hoisted_7$a = ["colspan"];
|
|
1892
|
+
const _hoisted_8$3 = ["tabindex", "onClick", "onKeydown"];
|
|
1893
|
+
const _hoisted_9$2 = ["checked", "aria-label", "onChange"];
|
|
1894
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1897
1895
|
__name: "LfTable",
|
|
1898
1896
|
props: /* @__PURE__ */ mergeModels({
|
|
1899
1897
|
columns: {},
|
|
@@ -1959,7 +1957,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1959
1957
|
}, [
|
|
1960
1958
|
createElementVNode("thead", null, [
|
|
1961
1959
|
createElementVNode("tr", null, [
|
|
1962
|
-
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_1$
|
|
1960
|
+
__props.selectable ? (openBlock(), createElementBlock("th", _hoisted_1$v, [
|
|
1963
1961
|
createElementVNode("input", {
|
|
1964
1962
|
type: "checkbox",
|
|
1965
1963
|
class: "lf-table__check",
|
|
@@ -1968,7 +1966,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1968
1966
|
disabled: __props.loading || __props.rows.length === 0,
|
|
1969
1967
|
"aria-label": __props.selectAllLabel,
|
|
1970
1968
|
onChange: toggleAll
|
|
1971
|
-
}, null, 40, _hoisted_2$
|
|
1969
|
+
}, null, 40, _hoisted_2$t)
|
|
1972
1970
|
])) : createCommentVNode("", true),
|
|
1973
1971
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
1974
1972
|
var _a;
|
|
@@ -1990,10 +1988,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1990
1988
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
1991
1989
|
size: "0.875rem"
|
|
1992
1990
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
1993
|
-
], 8, _hoisted_4$
|
|
1991
|
+
], 8, _hoisted_4$k)) : renderSlot(_ctx.$slots, `head-${col.key}`, { column: col }, () => [
|
|
1994
1992
|
createTextVNode(toDisplayString(col.label), 1)
|
|
1995
1993
|
], true, 1)
|
|
1996
|
-
], 14, _hoisted_3$
|
|
1994
|
+
], 14, _hoisted_3$p);
|
|
1997
1995
|
}), 128))
|
|
1998
1996
|
])
|
|
1999
1997
|
]),
|
|
@@ -2003,7 +2001,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2003
2001
|
key: `sk-${n}`,
|
|
2004
2002
|
class: "lf-table__row"
|
|
2005
2003
|
}, [
|
|
2006
|
-
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$
|
|
2004
|
+
__props.selectable ? (openBlock(), createElementBlock("td", _hoisted_5$i)) : createCommentVNode("", true),
|
|
2007
2005
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2008
2006
|
return openBlock(), createElementBlock("td", {
|
|
2009
2007
|
key: col.key,
|
|
@@ -2013,7 +2011,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2013
2011
|
])], 2);
|
|
2014
2012
|
}), 128))
|
|
2015
2013
|
]);
|
|
2016
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$
|
|
2014
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_6$d, [
|
|
2017
2015
|
createElementVNode("td", {
|
|
2018
2016
|
class: "lf-table__empty",
|
|
2019
2017
|
colspan: __props.columns.length + (__props.selectable ? 1 : 0)
|
|
@@ -2021,7 +2019,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2021
2019
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2022
2020
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
2023
2021
|
], true)
|
|
2024
|
-
], 8, _hoisted_7$
|
|
2022
|
+
], 8, _hoisted_7$a)
|
|
2025
2023
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
2026
2024
|
return openBlock(), createElementBlock("tr", {
|
|
2027
2025
|
key: keyOf(row, i2),
|
|
@@ -2046,7 +2044,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2046
2044
|
checked: isSelected(row, i2),
|
|
2047
2045
|
"aria-label": __props.selectRowLabel,
|
|
2048
2046
|
onChange: ($event) => toggleRow(row, i2)
|
|
2049
|
-
}, null, 40, _hoisted_9$
|
|
2047
|
+
}, null, 40, _hoisted_9$2)
|
|
2050
2048
|
])) : createCommentVNode("", true),
|
|
2051
2049
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col) => {
|
|
2052
2050
|
return openBlock(), createElementBlock("td", {
|
|
@@ -2063,7 +2061,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2063
2061
|
], true)
|
|
2064
2062
|
], 6);
|
|
2065
2063
|
}), 128))
|
|
2066
|
-
], 42, _hoisted_8$
|
|
2064
|
+
], 42, _hoisted_8$3);
|
|
2067
2065
|
}), 128))
|
|
2068
2066
|
])
|
|
2069
2067
|
], 6)
|
|
@@ -2071,26 +2069,26 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2071
2069
|
};
|
|
2072
2070
|
}
|
|
2073
2071
|
});
|
|
2074
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2075
|
-
const _hoisted_1$
|
|
2076
|
-
const _hoisted_2$
|
|
2072
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-240462cb"]]);
|
|
2073
|
+
const _hoisted_1$u = ["aria-label"];
|
|
2074
|
+
const _hoisted_2$s = {
|
|
2077
2075
|
key: 0,
|
|
2078
2076
|
class: "lf-pagination__total"
|
|
2079
2077
|
};
|
|
2080
|
-
const _hoisted_3$
|
|
2078
|
+
const _hoisted_3$o = {
|
|
2081
2079
|
key: 1,
|
|
2082
2080
|
class: "lf-pagination__btns"
|
|
2083
2081
|
};
|
|
2084
|
-
const _hoisted_4$
|
|
2085
|
-
const _hoisted_5$
|
|
2082
|
+
const _hoisted_4$j = ["disabled"];
|
|
2083
|
+
const _hoisted_5$h = {
|
|
2086
2084
|
key: 0,
|
|
2087
2085
|
class: "lf-pagination__gap",
|
|
2088
2086
|
"aria-hidden": "true"
|
|
2089
2087
|
};
|
|
2090
|
-
const _hoisted_6$
|
|
2091
|
-
const _hoisted_7$
|
|
2088
|
+
const _hoisted_6$c = ["aria-current", "onClick"];
|
|
2089
|
+
const _hoisted_7$9 = ["disabled"];
|
|
2092
2090
|
const ELLIPSIS = -1;
|
|
2093
|
-
const _sfc_main$
|
|
2091
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2094
2092
|
__name: "LfPagination",
|
|
2095
2093
|
props: /* @__PURE__ */ mergeModels({
|
|
2096
2094
|
total: { default: 0 },
|
|
@@ -2131,12 +2129,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2131
2129
|
class: "lf-pagination",
|
|
2132
2130
|
"aria-label": __props.ariaLabel
|
|
2133
2131
|
}, [
|
|
2134
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2132
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$s, [
|
|
2135
2133
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2136
2134
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2137
2135
|
], true)
|
|
2138
2136
|
])) : createCommentVNode("", true),
|
|
2139
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2137
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
2140
2138
|
createElementVNode("button", {
|
|
2141
2139
|
type: "button",
|
|
2142
2140
|
class: "lf-pagination__btn",
|
|
@@ -2148,18 +2146,18 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2148
2146
|
name: "chevron_left",
|
|
2149
2147
|
size: "1rem"
|
|
2150
2148
|
})
|
|
2151
|
-
], 8, _hoisted_4$
|
|
2149
|
+
], 8, _hoisted_4$j),
|
|
2152
2150
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2153
2151
|
return openBlock(), createElementBlock(Fragment, {
|
|
2154
2152
|
key: `${p}-${i2}`
|
|
2155
2153
|
}, [
|
|
2156
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2154
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$h, "…")) : (openBlock(), createElementBlock("button", {
|
|
2157
2155
|
key: 1,
|
|
2158
2156
|
type: "button",
|
|
2159
2157
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2160
2158
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2161
2159
|
onClick: ($event) => go(p)
|
|
2162
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2160
|
+
}, toDisplayString(p), 11, _hoisted_6$c))
|
|
2163
2161
|
], 64);
|
|
2164
2162
|
}), 128)),
|
|
2165
2163
|
createElementVNode("button", {
|
|
@@ -2173,27 +2171,27 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2173
2171
|
name: "chevron_right",
|
|
2174
2172
|
size: "1rem"
|
|
2175
2173
|
})
|
|
2176
|
-
], 8, _hoisted_7$
|
|
2174
|
+
], 8, _hoisted_7$9)
|
|
2177
2175
|
])) : createCommentVNode("", true)
|
|
2178
|
-
], 8, _hoisted_1$
|
|
2176
|
+
], 8, _hoisted_1$u)) : createCommentVNode("", true);
|
|
2179
2177
|
};
|
|
2180
2178
|
}
|
|
2181
2179
|
});
|
|
2182
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2183
|
-
const _hoisted_1$
|
|
2180
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-be847541"]]);
|
|
2181
|
+
const _hoisted_1$t = {
|
|
2184
2182
|
key: 0,
|
|
2185
2183
|
class: "lf-empty__icon"
|
|
2186
2184
|
};
|
|
2187
|
-
const _hoisted_2$
|
|
2188
|
-
const _hoisted_3$
|
|
2185
|
+
const _hoisted_2$r = { class: "lf-empty__title" };
|
|
2186
|
+
const _hoisted_3$n = {
|
|
2189
2187
|
key: 1,
|
|
2190
2188
|
class: "lf-empty__desc"
|
|
2191
2189
|
};
|
|
2192
|
-
const _hoisted_4$
|
|
2190
|
+
const _hoisted_4$i = {
|
|
2193
2191
|
key: 2,
|
|
2194
2192
|
class: "lf-empty__action"
|
|
2195
2193
|
};
|
|
2196
|
-
const _sfc_main$
|
|
2194
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
2197
2195
|
__name: "LfEmptyState",
|
|
2198
2196
|
props: {
|
|
2199
2197
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2208,7 +2206,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2208
2206
|
return openBlock(), createElementBlock("div", {
|
|
2209
2207
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2210
2208
|
}, [
|
|
2211
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2209
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$t, [
|
|
2212
2210
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2213
2211
|
createVNode(LfIcon, {
|
|
2214
2212
|
name: __props.icon,
|
|
@@ -2217,31 +2215,31 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
2217
2215
|
}, null, 8, ["name", "path"])
|
|
2218
2216
|
], true)
|
|
2219
2217
|
])) : createCommentVNode("", true),
|
|
2220
|
-
createElementVNode("p", _hoisted_2$
|
|
2218
|
+
createElementVNode("p", _hoisted_2$r, [
|
|
2221
2219
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2222
2220
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2223
2221
|
], true)
|
|
2224
2222
|
]),
|
|
2225
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2223
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$n, [
|
|
2226
2224
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2227
2225
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2228
2226
|
], true)
|
|
2229
2227
|
])) : createCommentVNode("", true),
|
|
2230
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2228
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
2231
2229
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2232
2230
|
])) : createCommentVNode("", true)
|
|
2233
2231
|
], 2);
|
|
2234
2232
|
};
|
|
2235
2233
|
}
|
|
2236
2234
|
});
|
|
2237
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2238
|
-
const _hoisted_1$
|
|
2235
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2236
|
+
const _hoisted_1$s = {
|
|
2239
2237
|
key: 0,
|
|
2240
2238
|
class: "lf-skeleton-group",
|
|
2241
2239
|
"aria-busy": true,
|
|
2242
2240
|
"aria-live": "polite"
|
|
2243
2241
|
};
|
|
2244
|
-
const _sfc_main$
|
|
2242
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2245
2243
|
__name: "LfSkeleton",
|
|
2246
2244
|
props: {
|
|
2247
2245
|
variant: { default: "text" },
|
|
@@ -2256,7 +2254,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2256
2254
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2257
2255
|
}
|
|
2258
2256
|
return (_ctx, _cache) => {
|
|
2259
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2257
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
2260
2258
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2261
2259
|
return openBlock(), createElementBlock("span", {
|
|
2262
2260
|
key: n,
|
|
@@ -2273,24 +2271,24 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2273
2271
|
};
|
|
2274
2272
|
}
|
|
2275
2273
|
});
|
|
2276
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2277
|
-
const _hoisted_1$
|
|
2274
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-a01556ce"]]);
|
|
2275
|
+
const _hoisted_1$r = {
|
|
2278
2276
|
class: "lf-stat__badge",
|
|
2279
2277
|
"aria-hidden": "true"
|
|
2280
2278
|
};
|
|
2281
|
-
const _hoisted_2$
|
|
2282
|
-
const _hoisted_3$
|
|
2283
|
-
const _hoisted_4$
|
|
2284
|
-
const _hoisted_5$
|
|
2285
|
-
const _hoisted_6$
|
|
2279
|
+
const _hoisted_2$q = { class: "lf-stat__body" };
|
|
2280
|
+
const _hoisted_3$m = { class: "lf-stat__label" };
|
|
2281
|
+
const _hoisted_4$h = { class: "lf-stat__value-row" };
|
|
2282
|
+
const _hoisted_5$g = { class: "lf-stat__value" };
|
|
2283
|
+
const _hoisted_6$b = {
|
|
2286
2284
|
key: 0,
|
|
2287
2285
|
class: "lf-stat__unit"
|
|
2288
2286
|
};
|
|
2289
|
-
const _hoisted_7$
|
|
2287
|
+
const _hoisted_7$8 = {
|
|
2290
2288
|
key: 0,
|
|
2291
2289
|
class: "lf-stat__hint"
|
|
2292
2290
|
};
|
|
2293
|
-
const _sfc_main$
|
|
2291
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
2294
2292
|
__name: "LfStatCard",
|
|
2295
2293
|
props: {
|
|
2296
2294
|
label: {},
|
|
@@ -2319,7 +2317,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2319
2317
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2320
2318
|
}, {
|
|
2321
2319
|
default: withCtx(() => [
|
|
2322
|
-
createElementVNode("span", _hoisted_1$
|
|
2320
|
+
createElementVNode("span", _hoisted_1$r, [
|
|
2323
2321
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2324
2322
|
createVNode(LfIcon, {
|
|
2325
2323
|
name: __props.icon,
|
|
@@ -2328,14 +2326,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2328
2326
|
}, null, 8, ["name", "path"])
|
|
2329
2327
|
], true)
|
|
2330
2328
|
]),
|
|
2331
|
-
createElementVNode("div", _hoisted_2$
|
|
2332
|
-
createElementVNode("div", _hoisted_3$
|
|
2333
|
-
createElementVNode("div", _hoisted_4$
|
|
2334
|
-
createElementVNode("span", _hoisted_5$
|
|
2329
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
2330
|
+
createElementVNode("div", _hoisted_3$m, toDisplayString(__props.label), 1),
|
|
2331
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
2332
|
+
createElementVNode("span", _hoisted_5$g, [
|
|
2335
2333
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2336
2334
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2337
2335
|
], true),
|
|
2338
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2336
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$b, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2339
2337
|
]),
|
|
2340
2338
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2341
2339
|
key: 0,
|
|
@@ -2348,7 +2346,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2348
2346
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2349
2347
|
], 2)) : createCommentVNode("", true)
|
|
2350
2348
|
]),
|
|
2351
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2349
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$8, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2352
2350
|
])
|
|
2353
2351
|
]),
|
|
2354
2352
|
_: 3
|
|
@@ -2356,10 +2354,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2356
2354
|
};
|
|
2357
2355
|
}
|
|
2358
2356
|
});
|
|
2359
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2360
|
-
const _hoisted_1$
|
|
2361
|
-
const _hoisted_2$
|
|
2362
|
-
const _sfc_main$
|
|
2357
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c84e9955"]]);
|
|
2358
|
+
const _hoisted_1$q = ["aria-describedby"];
|
|
2359
|
+
const _hoisted_2$p = ["id"];
|
|
2360
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
2363
2361
|
__name: "LfTooltip",
|
|
2364
2362
|
props: {
|
|
2365
2363
|
text: {},
|
|
@@ -2376,7 +2374,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2376
2374
|
"aria-describedby": unref(bubbleId)
|
|
2377
2375
|
}, [
|
|
2378
2376
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2379
|
-
], 8, _hoisted_1$
|
|
2377
|
+
], 8, _hoisted_1$q),
|
|
2380
2378
|
createElementVNode("span", {
|
|
2381
2379
|
id: unref(bubbleId),
|
|
2382
2380
|
class: "lf-tooltip__bubble",
|
|
@@ -2385,19 +2383,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
2385
2383
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2386
2384
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2387
2385
|
], true)
|
|
2388
|
-
], 8, _hoisted_2$
|
|
2386
|
+
], 8, _hoisted_2$p)
|
|
2389
2387
|
], 2);
|
|
2390
2388
|
};
|
|
2391
2389
|
}
|
|
2392
2390
|
});
|
|
2393
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2394
|
-
const _hoisted_1$
|
|
2395
|
-
const _hoisted_2$
|
|
2396
|
-
const _hoisted_3$
|
|
2391
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ae3bf5db"]]);
|
|
2392
|
+
const _hoisted_1$p = ["disabled", "onClick"];
|
|
2393
|
+
const _hoisted_2$o = { class: "lf-menu__item-text" };
|
|
2394
|
+
const _hoisted_3$l = {
|
|
2397
2395
|
key: 0,
|
|
2398
2396
|
class: "lf-menu__item-desc"
|
|
2399
2397
|
};
|
|
2400
|
-
const _sfc_main$
|
|
2398
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
2401
2399
|
__name: "LfMenu",
|
|
2402
2400
|
props: {
|
|
2403
2401
|
items: { default: () => [] },
|
|
@@ -2487,11 +2485,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2487
2485
|
size: "1.125rem",
|
|
2488
2486
|
class: "lf-menu__item-icon"
|
|
2489
2487
|
}), null, 16)) : createCommentVNode("", true),
|
|
2490
|
-
createElementVNode("span", _hoisted_2$
|
|
2488
|
+
createElementVNode("span", _hoisted_2$o, [
|
|
2491
2489
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2492
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2490
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2493
2491
|
])
|
|
2494
|
-
], 8, _hoisted_1$
|
|
2492
|
+
], 8, _hoisted_1$p);
|
|
2495
2493
|
}), 128))
|
|
2496
2494
|
], true)
|
|
2497
2495
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2502,22 +2500,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2502
2500
|
};
|
|
2503
2501
|
}
|
|
2504
2502
|
});
|
|
2505
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2506
|
-
const _hoisted_1$
|
|
2503
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-0318782c"]]);
|
|
2504
|
+
const _hoisted_1$o = {
|
|
2507
2505
|
key: 0,
|
|
2508
2506
|
class: "lf-rail__group",
|
|
2509
2507
|
role: "presentation"
|
|
2510
2508
|
};
|
|
2511
|
-
const _hoisted_2$
|
|
2512
|
-
const _hoisted_3$
|
|
2513
|
-
const _hoisted_4$
|
|
2509
|
+
const _hoisted_2$n = { class: "lf-rail__group-name" };
|
|
2510
|
+
const _hoisted_3$k = { class: "lf-rail__icon" };
|
|
2511
|
+
const _hoisted_4$g = {
|
|
2514
2512
|
key: 2,
|
|
2515
2513
|
class: "lf-rail__badge"
|
|
2516
2514
|
};
|
|
2517
|
-
const _hoisted_5$
|
|
2518
|
-
const _hoisted_6$
|
|
2519
|
-
const _hoisted_7$
|
|
2520
|
-
const _sfc_main$
|
|
2515
|
+
const _hoisted_5$f = { class: "lf-rail__name" };
|
|
2516
|
+
const _hoisted_6$a = { class: "lf-rail__short" };
|
|
2517
|
+
const _hoisted_7$7 = { class: "lf-rail__long" };
|
|
2518
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2521
2519
|
__name: "LfNavRail",
|
|
2522
2520
|
props: {
|
|
2523
2521
|
items: {},
|
|
@@ -2529,7 +2527,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2529
2527
|
const props = __props;
|
|
2530
2528
|
const emit = __emit;
|
|
2531
2529
|
function linkAttrs(item) {
|
|
2532
|
-
|
|
2530
|
+
if (props.link === "a") return { href: item.to };
|
|
2531
|
+
return props.current === void 0 ? { to: item.to } : { to: item.to, activeClass: "", exactActiveClass: "" };
|
|
2533
2532
|
}
|
|
2534
2533
|
const list = useTemplateRef("list");
|
|
2535
2534
|
const thumb = ref(null);
|
|
@@ -2587,8 +2586,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2587
2586
|
return openBlock(), createElementBlock(Fragment, {
|
|
2588
2587
|
key: item.to
|
|
2589
2588
|
}, [
|
|
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$
|
|
2589
|
+
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
2590
|
+
createElementVNode("span", _hoisted_2$n, toDisplayString(item.group), 1)
|
|
2592
2591
|
])) : createCommentVNode("", true),
|
|
2593
2592
|
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2594
2593
|
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
@@ -2597,7 +2596,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2597
2596
|
onClick: ($event) => emit("navigate", item)
|
|
2598
2597
|
}), {
|
|
2599
2598
|
default: withCtx(() => [
|
|
2600
|
-
createElementVNode("span", _hoisted_3$
|
|
2599
|
+
createElementVNode("span", _hoisted_3$k, [
|
|
2601
2600
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2602
2601
|
key: 0,
|
|
2603
2602
|
path: item.iconPath,
|
|
@@ -2607,11 +2606,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2607
2606
|
name: item.icon,
|
|
2608
2607
|
size: "1.15rem"
|
|
2609
2608
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2610
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2609
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2611
2610
|
]),
|
|
2612
|
-
createElementVNode("span", _hoisted_5$
|
|
2613
|
-
createElementVNode("span", _hoisted_6$
|
|
2614
|
-
createElementVNode("span", _hoisted_7$
|
|
2611
|
+
createElementVNode("span", _hoisted_5$f, [
|
|
2612
|
+
createElementVNode("span", _hoisted_6$a, toDisplayString(item.short ?? item.label), 1),
|
|
2613
|
+
createElementVNode("span", _hoisted_7$7, toDisplayString(item.label), 1)
|
|
2615
2614
|
])
|
|
2616
2615
|
]),
|
|
2617
2616
|
_: 2
|
|
@@ -2622,8 +2621,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2622
2621
|
};
|
|
2623
2622
|
}
|
|
2624
2623
|
});
|
|
2625
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2626
|
-
const _sfc_main$
|
|
2624
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-dfb20796"]]);
|
|
2625
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2627
2626
|
__name: "LfTransitionList",
|
|
2628
2627
|
props: {
|
|
2629
2628
|
tag: { default: "div" },
|
|
@@ -2713,32 +2712,32 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2713
2712
|
};
|
|
2714
2713
|
}
|
|
2715
2714
|
});
|
|
2716
|
-
const _hoisted_1$
|
|
2717
|
-
const _hoisted_2$
|
|
2715
|
+
const _hoisted_1$n = { class: "lf-control-wrap" };
|
|
2716
|
+
const _hoisted_2$m = {
|
|
2718
2717
|
key: 0,
|
|
2719
2718
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
2720
2719
|
};
|
|
2721
|
-
const _hoisted_3$
|
|
2722
|
-
const _hoisted_4$
|
|
2723
|
-
const _hoisted_5$
|
|
2724
|
-
const _hoisted_6$
|
|
2725
|
-
const _hoisted_7$
|
|
2720
|
+
const _hoisted_3$j = ["id", "aria-expanded", "aria-controls", "placeholder", "disabled", "required"];
|
|
2721
|
+
const _hoisted_4$f = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
2722
|
+
const _hoisted_5$e = { class: "lf-listsel__text" };
|
|
2723
|
+
const _hoisted_6$9 = ["aria-label"];
|
|
2724
|
+
const _hoisted_7$6 = {
|
|
2726
2725
|
key: 4,
|
|
2727
2726
|
class: "lf-control-wrap__icon lf-control-wrap__icon--right"
|
|
2728
2727
|
};
|
|
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 = {
|
|
2728
|
+
const _hoisted_8$2 = ["id"];
|
|
2729
|
+
const _hoisted_9$1 = ["placeholder"];
|
|
2730
|
+
const _hoisted_10$1 = ["aria-selected", "disabled", "onMousemove", "onClick"];
|
|
2731
|
+
const _hoisted_11$1 = { class: "lf-listsel__item-text" };
|
|
2732
|
+
const _hoisted_12$1 = {
|
|
2734
2733
|
key: 0,
|
|
2735
2734
|
class: "lf-listsel__item-desc"
|
|
2736
2735
|
};
|
|
2737
|
-
const _hoisted_13 = {
|
|
2736
|
+
const _hoisted_13$1 = {
|
|
2738
2737
|
key: 1,
|
|
2739
2738
|
class: "lf-listsel__empty"
|
|
2740
2739
|
};
|
|
2741
|
-
const _sfc_main$
|
|
2740
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
2742
2741
|
...{ inheritAttrs: false },
|
|
2743
2742
|
__name: "LfListSelect",
|
|
2744
2743
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2938,8 +2937,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2938
2937
|
class: "lf-listsel",
|
|
2939
2938
|
onFocusout: onFocusOut
|
|
2940
2939
|
}, [
|
|
2941
|
-
createElementVNode("div", _hoisted_1$
|
|
2942
|
-
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2940
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
2941
|
+
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$m, [
|
|
2943
2942
|
createVNode(LfIcon, mergeProps(iconOf(selected.value), { size: "1.125rem" }), null, 16)
|
|
2944
2943
|
])) : createCommentVNode("", true),
|
|
2945
2944
|
__props.editable ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
@@ -2961,7 +2960,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2961
2960
|
onFocus: _cache[1] || (_cache[1] = ($event) => show()),
|
|
2962
2961
|
onInput: _cache[2] || (_cache[2] = ($event) => show()),
|
|
2963
2962
|
onKeydown
|
|
2964
|
-
}), null, 16, _hoisted_3$
|
|
2963
|
+
}), null, 16, _hoisted_3$j)), [
|
|
2965
2964
|
[vModelText, text.value]
|
|
2966
2965
|
]) : (openBlock(), createElementBlock("button", mergeProps({
|
|
2967
2966
|
key: 2,
|
|
@@ -2983,9 +2982,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2983
2982
|
onKeydown
|
|
2984
2983
|
}), [
|
|
2985
2984
|
renderSlot(_ctx.$slots, "selected", { option: selected.value }, () => [
|
|
2986
|
-
createElementVNode("span", _hoisted_5$
|
|
2985
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
2987
2986
|
], true)
|
|
2988
|
-
], 16, _hoisted_4$
|
|
2987
|
+
], 16, _hoisted_4$f)),
|
|
2989
2988
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
2990
2989
|
key: 3,
|
|
2991
2990
|
type: "button",
|
|
@@ -2997,7 +2996,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2997
2996
|
name: "close",
|
|
2998
2997
|
size: "1rem"
|
|
2999
2998
|
})
|
|
3000
|
-
], 8, _hoisted_6$
|
|
2999
|
+
], 8, _hoisted_6$9)) : (openBlock(), createElementBlock("span", _hoisted_7$6, [
|
|
3001
3000
|
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
3002
3001
|
key: 0,
|
|
3003
3002
|
size: "1rem"
|
|
@@ -3031,7 +3030,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3031
3030
|
placeholder: __props.searchPlaceholder,
|
|
3032
3031
|
autocomplete: "off",
|
|
3033
3032
|
onKeydown
|
|
3034
|
-
}, null, 40, _hoisted_9)), [
|
|
3033
|
+
}, null, 40, _hoisted_9$1)), [
|
|
3035
3034
|
[vModelText, query.value]
|
|
3036
3035
|
]) : createCommentVNode("", true),
|
|
3037
3036
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filtered.value, (opt, index) => {
|
|
@@ -3055,15 +3054,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3055
3054
|
size: "1.125rem",
|
|
3056
3055
|
class: "lf-listsel__item-icon"
|
|
3057
3056
|
}), null, 16)) : createCommentVNode("", true),
|
|
3058
|
-
createElementVNode("span", _hoisted_11, [
|
|
3057
|
+
createElementVNode("span", _hoisted_11$1, [
|
|
3059
3058
|
createElementVNode("span", null, toDisplayString(opt.label), 1),
|
|
3060
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
3059
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_12$1, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
3061
3060
|
])
|
|
3062
3061
|
], true)
|
|
3063
|
-
], 42, _hoisted_10);
|
|
3062
|
+
], 42, _hoisted_10$1);
|
|
3064
3063
|
}), 128)),
|
|
3065
|
-
!filtered.value.length ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3066
|
-
], 46, _hoisted_8)) : createCommentVNode("", true)
|
|
3064
|
+
!filtered.value.length ? (openBlock(), createElementBlock("div", _hoisted_13$1, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3065
|
+
], 46, _hoisted_8$2)) : createCommentVNode("", true)
|
|
3067
3066
|
]),
|
|
3068
3067
|
_: 3
|
|
3069
3068
|
})
|
|
@@ -3076,8 +3075,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3076
3075
|
};
|
|
3077
3076
|
}
|
|
3078
3077
|
});
|
|
3079
|
-
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3080
|
-
const _sfc_main$
|
|
3078
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-532597e1"]]);
|
|
3079
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
3081
3080
|
__name: "LfList",
|
|
3082
3081
|
props: {
|
|
3083
3082
|
divided: { type: Boolean },
|
|
@@ -3093,17 +3092,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3093
3092
|
};
|
|
3094
3093
|
}
|
|
3095
3094
|
});
|
|
3096
|
-
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3097
|
-
const _hoisted_1$
|
|
3095
|
+
const LfList = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-67f4475e"]]);
|
|
3096
|
+
const _hoisted_1$m = {
|
|
3098
3097
|
key: 0,
|
|
3099
3098
|
class: "lf-list-item__prepend"
|
|
3100
3099
|
};
|
|
3101
|
-
const _hoisted_2$
|
|
3102
|
-
const _hoisted_3$
|
|
3100
|
+
const _hoisted_2$l = { class: "lf-list-item__text" };
|
|
3101
|
+
const _hoisted_3$i = {
|
|
3103
3102
|
key: 1,
|
|
3104
3103
|
class: "lf-list-item__append"
|
|
3105
3104
|
};
|
|
3106
|
-
const _sfc_main$
|
|
3105
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
3107
3106
|
__name: "LfListItem",
|
|
3108
3107
|
props: {
|
|
3109
3108
|
active: { type: Boolean },
|
|
@@ -3124,13 +3123,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3124
3123
|
"aria-current": __props.active ? "true" : void 0
|
|
3125
3124
|
}, {
|
|
3126
3125
|
default: withCtx(() => [
|
|
3127
|
-
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3126
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("span", _hoisted_1$m, [
|
|
3128
3127
|
renderSlot(_ctx.$slots, "prepend", {}, void 0, true)
|
|
3129
3128
|
])) : createCommentVNode("", true),
|
|
3130
|
-
createElementVNode("span", _hoisted_2$
|
|
3129
|
+
createElementVNode("span", _hoisted_2$l, [
|
|
3131
3130
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3132
3131
|
]),
|
|
3133
|
-
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3132
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("span", _hoisted_3$i, [
|
|
3134
3133
|
renderSlot(_ctx.$slots, "append", {}, void 0, true)
|
|
3135
3134
|
])) : createCommentVNode("", true)
|
|
3136
3135
|
]),
|
|
@@ -3140,14 +3139,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3140
3139
|
};
|
|
3141
3140
|
}
|
|
3142
3141
|
});
|
|
3143
|
-
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3144
|
-
const _hoisted_1$
|
|
3142
|
+
const LfListItem = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-57a82ab1"]]);
|
|
3143
|
+
const _hoisted_1$l = {
|
|
3145
3144
|
key: 0,
|
|
3146
3145
|
class: "lf-divider lf-divider--labeled",
|
|
3147
3146
|
role: "separator"
|
|
3148
3147
|
};
|
|
3149
|
-
const _hoisted_2$
|
|
3150
|
-
const _sfc_main$
|
|
3148
|
+
const _hoisted_2$k = { class: "lf-divider__label" };
|
|
3149
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
3151
3150
|
__name: "LfDivider",
|
|
3152
3151
|
props: {
|
|
3153
3152
|
label: {},
|
|
@@ -3155,8 +3154,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3155
3154
|
},
|
|
3156
3155
|
setup(__props) {
|
|
3157
3156
|
return (_ctx, _cache) => {
|
|
3158
|
-
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3159
|
-
createElementVNode("span", _hoisted_2$
|
|
3157
|
+
return __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
3158
|
+
createElementVNode("span", _hoisted_2$k, [
|
|
3160
3159
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3161
3160
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
3162
3161
|
], true)
|
|
@@ -3168,19 +3167,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3168
3167
|
};
|
|
3169
3168
|
}
|
|
3170
3169
|
});
|
|
3171
|
-
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3172
|
-
const _hoisted_1$
|
|
3173
|
-
const _hoisted_2$
|
|
3174
|
-
const _hoisted_3$
|
|
3170
|
+
const LfDivider = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c15d2259"]]);
|
|
3171
|
+
const _hoisted_1$k = ["aria-label"];
|
|
3172
|
+
const _hoisted_2$j = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"];
|
|
3173
|
+
const _hoisted_3$h = {
|
|
3175
3174
|
key: 1,
|
|
3176
3175
|
class: "lf-tabs__badge"
|
|
3177
3176
|
};
|
|
3178
|
-
const _hoisted_4$
|
|
3177
|
+
const _hoisted_4$e = {
|
|
3179
3178
|
key: 1,
|
|
3180
3179
|
class: "lf-tabs__actions"
|
|
3181
3180
|
};
|
|
3182
|
-
const _hoisted_5$
|
|
3183
|
-
const _sfc_main$
|
|
3181
|
+
const _hoisted_5$d = ["id", "aria-labelledby"];
|
|
3182
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
3184
3183
|
__name: "LfTabs",
|
|
3185
3184
|
props: /* @__PURE__ */ mergeModels({
|
|
3186
3185
|
tabs: { default: () => [] },
|
|
@@ -3280,8 +3279,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3280
3279
|
class: "lf-tabs__icon"
|
|
3281
3280
|
}), null, 16)) : createCommentVNode("", true),
|
|
3282
3281
|
createElementVNode("span", null, toDisplayString(tab.label), 1),
|
|
3283
|
-
tab.badge !== void 0 && tab.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3284
|
-
], 10, _hoisted_2$
|
|
3282
|
+
tab.badge !== void 0 && tab.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(tab.badge), 1)) : createCommentVNode("", true)
|
|
3283
|
+
], 10, _hoisted_2$j);
|
|
3285
3284
|
}), 128)),
|
|
3286
3285
|
bar.value ? (openBlock(), createElementBlock("span", {
|
|
3287
3286
|
key: 0,
|
|
@@ -3290,10 +3289,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3290
3289
|
"aria-hidden": "true"
|
|
3291
3290
|
}, null, 6)) : createCommentVNode("", true),
|
|
3292
3291
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-tabs__spacer" }, null, -1)),
|
|
3293
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3292
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
|
|
3294
3293
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3295
3294
|
])) : createCommentVNode("", true)
|
|
3296
|
-
], 40, _hoisted_1$
|
|
3295
|
+
], 40, _hoisted_1$k),
|
|
3297
3296
|
hasPanel.value ? (openBlock(), createElementBlock("div", {
|
|
3298
3297
|
key: 0,
|
|
3299
3298
|
id: `${unref(uid)}-panel`,
|
|
@@ -3302,32 +3301,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3302
3301
|
"aria-labelledby": `${unref(uid)}-tab-${model.value}`
|
|
3303
3302
|
}, [
|
|
3304
3303
|
_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$
|
|
3304
|
+
], 8, _hoisted_5$d)) : createCommentVNode("", true)
|
|
3306
3305
|
], 2);
|
|
3307
3306
|
};
|
|
3308
3307
|
}
|
|
3309
3308
|
});
|
|
3310
|
-
const LfTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3311
|
-
const _hoisted_1$
|
|
3312
|
-
const _hoisted_2$
|
|
3309
|
+
const LfTabs = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4439195d"]]);
|
|
3310
|
+
const _hoisted_1$j = ["aria-modal", "aria-labelledby", "aria-label"];
|
|
3311
|
+
const _hoisted_2$i = {
|
|
3313
3312
|
key: 0,
|
|
3314
3313
|
class: "lf-drawer__header"
|
|
3315
3314
|
};
|
|
3316
|
-
const _hoisted_3$
|
|
3317
|
-
const _hoisted_4$
|
|
3318
|
-
const _hoisted_5$
|
|
3315
|
+
const _hoisted_3$g = { class: "lf-drawer__heading" };
|
|
3316
|
+
const _hoisted_4$d = ["id"];
|
|
3317
|
+
const _hoisted_5$c = {
|
|
3319
3318
|
key: 0,
|
|
3320
3319
|
class: "lf-drawer__subtitle"
|
|
3321
3320
|
};
|
|
3322
|
-
const _hoisted_6$
|
|
3321
|
+
const _hoisted_6$8 = {
|
|
3323
3322
|
key: 0,
|
|
3324
3323
|
class: "lf-drawer__actions"
|
|
3325
3324
|
};
|
|
3326
|
-
const _hoisted_7$
|
|
3325
|
+
const _hoisted_7$5 = {
|
|
3327
3326
|
key: 1,
|
|
3328
3327
|
class: "lf-drawer__footer"
|
|
3329
3328
|
};
|
|
3330
|
-
const _sfc_main$
|
|
3329
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
3331
3330
|
__name: "LfDrawer",
|
|
3332
3331
|
props: /* @__PURE__ */ mergeModels({
|
|
3333
3332
|
title: {},
|
|
@@ -3439,17 +3438,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3439
3438
|
tabindex: "-1",
|
|
3440
3439
|
onKeydown
|
|
3441
3440
|
}, [
|
|
3442
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
3443
|
-
createElementVNode("div", _hoisted_3$
|
|
3441
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$i, [
|
|
3442
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
3444
3443
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3445
3444
|
createElementVNode("h2", {
|
|
3446
3445
|
id: unref(titleId),
|
|
3447
3446
|
class: "lf-drawer__title"
|
|
3448
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
3449
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
3447
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$d),
|
|
3448
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$c, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
3450
3449
|
], true)
|
|
3451
3450
|
]),
|
|
3452
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
3451
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
3453
3452
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
3454
3453
|
])) : createCommentVNode("", true),
|
|
3455
3454
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -3465,10 +3464,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3465
3464
|
}, [
|
|
3466
3465
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3467
3466
|
], 2),
|
|
3468
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
3467
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$5, [
|
|
3469
3468
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
3470
3469
|
])) : createCommentVNode("", true)
|
|
3471
|
-
], 46, _hoisted_1$
|
|
3470
|
+
], 46, _hoisted_1$j)) : createCommentVNode("", true)
|
|
3472
3471
|
]),
|
|
3473
3472
|
_: 3
|
|
3474
3473
|
}, 8, ["name"])
|
|
@@ -3476,13 +3475,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
3476
3475
|
};
|
|
3477
3476
|
}
|
|
3478
3477
|
});
|
|
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$
|
|
3478
|
+
const LfDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-a26a26f8"]]);
|
|
3479
|
+
const _hoisted_1$i = ["id", "type", "value", "max", "min", "disabled", "aria-label"];
|
|
3480
|
+
const _hoisted_2$h = ["type", "value", "min", "max", "disabled", "aria-label"];
|
|
3481
|
+
const _hoisted_3$f = ["aria-label"];
|
|
3482
|
+
const _hoisted_4$c = ["disabled", "onClick"];
|
|
3483
|
+
const _hoisted_5$b = ["aria-label", "title", "disabled"];
|
|
3484
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
3486
3485
|
__name: "LfDateRange",
|
|
3487
3486
|
props: /* @__PURE__ */ mergeModels({
|
|
3488
3487
|
label: {},
|
|
@@ -3563,7 +3562,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3563
3562
|
disabled: __props.disabled,
|
|
3564
3563
|
"aria-label": __props.fromLabel,
|
|
3565
3564
|
onChange: _cache[0] || (_cache[0] = ($event) => set("from", $event.target.value))
|
|
3566
|
-
}, null, 42, _hoisted_1$
|
|
3565
|
+
}, null, 42, _hoisted_1$i),
|
|
3567
3566
|
_cache[3] || (_cache[3] = createElementVNode("span", {
|
|
3568
3567
|
class: "lf-daterange__sep",
|
|
3569
3568
|
"aria-hidden": "true"
|
|
@@ -3577,7 +3576,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3577
3576
|
disabled: __props.disabled,
|
|
3578
3577
|
"aria-label": __props.toLabel,
|
|
3579
3578
|
onChange: _cache[1] || (_cache[1] = ($event) => set("to", $event.target.value))
|
|
3580
|
-
}, null, 42, _hoisted_2$
|
|
3579
|
+
}, null, 42, _hoisted_2$h),
|
|
3581
3580
|
__props.presets.length ? (openBlock(), createElementBlock("div", {
|
|
3582
3581
|
key: 0,
|
|
3583
3582
|
class: "lf-daterange__presets",
|
|
@@ -3591,9 +3590,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3591
3590
|
class: normalizeClass(["lf-daterange__preset", { "lf-daterange__preset--on": isPreset(p.days) }]),
|
|
3592
3591
|
disabled: __props.disabled,
|
|
3593
3592
|
onClick: ($event) => applyPreset(p.days)
|
|
3594
|
-
}, toDisplayString(p.label), 11, _hoisted_4$
|
|
3593
|
+
}, toDisplayString(p.label), 11, _hoisted_4$c);
|
|
3595
3594
|
}), 128))
|
|
3596
|
-
], 8, _hoisted_3$
|
|
3595
|
+
], 8, _hoisted_3$f)) : createCommentVNode("", true),
|
|
3597
3596
|
__props.clearable && (((_e = model.value) == null ? void 0 : _e.from) || ((_f = model.value) == null ? void 0 : _f.to)) ? (openBlock(), createElementBlock("button", {
|
|
3598
3597
|
key: 1,
|
|
3599
3598
|
type: "button",
|
|
@@ -3607,7 +3606,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3607
3606
|
name: "close",
|
|
3608
3607
|
size: "0.875rem"
|
|
3609
3608
|
})
|
|
3610
|
-
], 8, _hoisted_5$
|
|
3609
|
+
], 8, _hoisted_5$b)) : createCommentVNode("", true)
|
|
3611
3610
|
], 2)
|
|
3612
3611
|
];
|
|
3613
3612
|
}),
|
|
@@ -3616,25 +3615,25 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
3616
3615
|
};
|
|
3617
3616
|
}
|
|
3618
3617
|
});
|
|
3619
|
-
const LfDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3620
|
-
const _hoisted_1$
|
|
3621
|
-
const _hoisted_2$
|
|
3622
|
-
const _hoisted_3$
|
|
3623
|
-
const _hoisted_4$
|
|
3618
|
+
const LfDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-cd58ea87"]]);
|
|
3619
|
+
const _hoisted_1$h = ["aria-label"];
|
|
3620
|
+
const _hoisted_2$g = ["aria-level", "aria-expanded", "aria-selected", "tabindex", "data-id", "onClick", "onFocus"];
|
|
3621
|
+
const _hoisted_3$e = ["aria-label", "onClick"];
|
|
3622
|
+
const _hoisted_4$b = {
|
|
3624
3623
|
key: 1,
|
|
3625
3624
|
class: "lf-tree__toggle lf-tree__toggle--leaf",
|
|
3626
3625
|
"aria-hidden": "true"
|
|
3627
3626
|
};
|
|
3628
|
-
const _hoisted_5$
|
|
3629
|
-
const _hoisted_6$
|
|
3627
|
+
const _hoisted_5$a = { class: "lf-tree__label" };
|
|
3628
|
+
const _hoisted_6$7 = {
|
|
3630
3629
|
key: 3,
|
|
3631
3630
|
class: "lf-tree__badge"
|
|
3632
3631
|
};
|
|
3633
|
-
const _hoisted_7 = {
|
|
3632
|
+
const _hoisted_7$4 = {
|
|
3634
3633
|
key: 0,
|
|
3635
3634
|
class: "lf-tree__empty"
|
|
3636
3635
|
};
|
|
3637
|
-
const _sfc_main$
|
|
3636
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
3638
3637
|
__name: "LfTree",
|
|
3639
3638
|
props: /* @__PURE__ */ mergeModels({
|
|
3640
3639
|
nodes: { default: () => [] },
|
|
@@ -3805,7 +3804,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3805
3804
|
name: isOpen(row.node.id) ? "expand_more" : "chevron_right",
|
|
3806
3805
|
size: "1rem"
|
|
3807
3806
|
}, null, 8, ["name"])
|
|
3808
|
-
], 8, _hoisted_3$
|
|
3807
|
+
], 8, _hoisted_3$e)) : (openBlock(), createElementBlock("span", _hoisted_4$b)),
|
|
3809
3808
|
row.node.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3810
3809
|
key: 2,
|
|
3811
3810
|
ref_for: true
|
|
@@ -3813,7 +3812,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3813
3812
|
size: "1rem",
|
|
3814
3813
|
class: "lf-tree__icon"
|
|
3815
3814
|
}), null, 16)) : createCommentVNode("", true),
|
|
3816
|
-
createElementVNode("span", _hoisted_5$
|
|
3815
|
+
createElementVNode("span", _hoisted_5$a, [
|
|
3817
3816
|
renderSlot(_ctx.$slots, "label", {
|
|
3818
3817
|
node: row.node,
|
|
3819
3818
|
depth: row.depth
|
|
@@ -3821,28 +3820,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3821
3820
|
createTextVNode(toDisplayString(row.node.label), 1)
|
|
3822
3821
|
], true)
|
|
3823
3822
|
]),
|
|
3824
|
-
row.node.badge !== void 0 && row.node.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
3825
|
-
], 46, _hoisted_2$
|
|
3823
|
+
row.node.badge !== void 0 && row.node.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_6$7, toDisplayString(row.node.badge), 1)) : createCommentVNode("", true)
|
|
3824
|
+
], 46, _hoisted_2$g);
|
|
3826
3825
|
}), 128)),
|
|
3827
|
-
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_7, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3828
|
-
], 42, _hoisted_1$
|
|
3826
|
+
!rows.value.length ? (openBlock(), createElementBlock("li", _hoisted_7$4, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3827
|
+
], 42, _hoisted_1$h);
|
|
3829
3828
|
};
|
|
3830
3829
|
}
|
|
3831
3830
|
});
|
|
3832
|
-
const LfTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3833
|
-
const _hoisted_1$
|
|
3834
|
-
const _hoisted_2$
|
|
3835
|
-
const _hoisted_3$
|
|
3831
|
+
const LfTree = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d194fe5c"]]);
|
|
3832
|
+
const _hoisted_1$g = ["aria-label"];
|
|
3833
|
+
const _hoisted_2$f = ["aria-current"];
|
|
3834
|
+
const _hoisted_3$d = {
|
|
3836
3835
|
class: "lf-steps__dot",
|
|
3837
3836
|
"aria-hidden": "true"
|
|
3838
3837
|
};
|
|
3839
|
-
const _hoisted_4$
|
|
3840
|
-
const _hoisted_5 = { class: "lf-steps__label" };
|
|
3841
|
-
const _hoisted_6 = {
|
|
3838
|
+
const _hoisted_4$a = { class: "lf-steps__text" };
|
|
3839
|
+
const _hoisted_5$9 = { class: "lf-steps__label" };
|
|
3840
|
+
const _hoisted_6$6 = {
|
|
3842
3841
|
key: 0,
|
|
3843
3842
|
class: "lf-steps__desc"
|
|
3844
3843
|
};
|
|
3845
|
-
const _sfc_main$
|
|
3844
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
3846
3845
|
__name: "LfSteps",
|
|
3847
3846
|
props: {
|
|
3848
3847
|
steps: { default: () => [] },
|
|
@@ -3870,7 +3869,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3870
3869
|
class: normalizeClass(["lf-steps__item", `lf-steps__item--${statusOf(step, i2)}`]),
|
|
3871
3870
|
"aria-current": statusOf(step, i2) === "current" ? "step" : void 0
|
|
3872
3871
|
}, [
|
|
3873
|
-
createElementVNode("span", _hoisted_3$
|
|
3872
|
+
createElementVNode("span", _hoisted_3$d, [
|
|
3874
3873
|
statusOf(step, i2) === "done" ? (openBlock(), createBlock(LfIcon, {
|
|
3875
3874
|
key: 0,
|
|
3876
3875
|
name: "check",
|
|
@@ -3883,31 +3882,31 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3883
3882
|
createTextVNode(toDisplayString(i2 + 1), 1)
|
|
3884
3883
|
], 64))
|
|
3885
3884
|
]),
|
|
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)
|
|
3885
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
3886
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString(step.label), 1),
|
|
3887
|
+
step.description ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(step.description), 1)) : createCommentVNode("", true)
|
|
3889
3888
|
])
|
|
3890
|
-
], 10, _hoisted_2$
|
|
3889
|
+
], 10, _hoisted_2$f);
|
|
3891
3890
|
}), 128))
|
|
3892
|
-
], 10, _hoisted_1$
|
|
3891
|
+
], 10, _hoisted_1$g);
|
|
3893
3892
|
};
|
|
3894
3893
|
}
|
|
3895
3894
|
});
|
|
3896
|
-
const LfSteps = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3897
|
-
const _hoisted_1$
|
|
3895
|
+
const LfSteps = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-366fd734"]]);
|
|
3896
|
+
const _hoisted_1$f = {
|
|
3898
3897
|
key: 0,
|
|
3899
3898
|
class: "lf-progress__head"
|
|
3900
3899
|
};
|
|
3901
|
-
const _hoisted_2$
|
|
3900
|
+
const _hoisted_2$e = {
|
|
3902
3901
|
key: 0,
|
|
3903
3902
|
class: "lf-progress__label"
|
|
3904
3903
|
};
|
|
3905
|
-
const _hoisted_3$
|
|
3904
|
+
const _hoisted_3$c = {
|
|
3906
3905
|
key: 1,
|
|
3907
3906
|
class: "lf-progress__value"
|
|
3908
3907
|
};
|
|
3909
|
-
const _hoisted_4 = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
3910
|
-
const _sfc_main$
|
|
3908
|
+
const _hoisted_4$9 = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow"];
|
|
3909
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
3911
3910
|
__name: "LfProgress",
|
|
3912
3911
|
props: {
|
|
3913
3912
|
value: { default: 0 },
|
|
@@ -3929,9 +3928,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3929
3928
|
return openBlock(), createElementBlock("div", {
|
|
3930
3929
|
class: normalizeClass(["lf-progress", [`lf-progress--${__props.size}`, `lf-progress--${__props.tone}`]])
|
|
3931
3930
|
}, [
|
|
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$
|
|
3931
|
+
__props.label || __props.showValue ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
3932
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
3933
|
+
__props.showValue && !__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_3$c, toDisplayString(display.value), 1)) : createCommentVNode("", true)
|
|
3935
3934
|
])) : createCommentVNode("", true),
|
|
3936
3935
|
createElementVNode("div", {
|
|
3937
3936
|
class: "lf-progress__track",
|
|
@@ -3945,19 +3944,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3945
3944
|
class: normalizeClass(["lf-progress__fill", { "lf-progress__fill--indeterminate": __props.indeterminate }]),
|
|
3946
3945
|
style: normalizeStyle(__props.indeterminate ? void 0 : { width: `${pct.value}%` })
|
|
3947
3946
|
}, null, 6)
|
|
3948
|
-
], 8, _hoisted_4)
|
|
3947
|
+
], 8, _hoisted_4$9)
|
|
3949
3948
|
], 2);
|
|
3950
3949
|
};
|
|
3951
3950
|
}
|
|
3952
3951
|
});
|
|
3953
|
-
const LfProgress = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3954
|
-
const _hoisted_1$
|
|
3955
|
-
const _hoisted_2$
|
|
3956
|
-
const _hoisted_3$
|
|
3952
|
+
const LfProgress = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-ec77fd75"]]);
|
|
3953
|
+
const _hoisted_1$e = { class: "lf-desc__label" };
|
|
3954
|
+
const _hoisted_2$d = { class: "lf-desc__value" };
|
|
3955
|
+
const _hoisted_3$b = {
|
|
3957
3956
|
key: 0,
|
|
3958
3957
|
class: "lf-desc__empty"
|
|
3959
3958
|
};
|
|
3960
|
-
const _sfc_main$
|
|
3959
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3961
3960
|
__name: "LfDescriptions",
|
|
3962
3961
|
props: {
|
|
3963
3962
|
items: { default: () => [] },
|
|
@@ -3978,10 +3977,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3978
3977
|
class: "lf-desc__item",
|
|
3979
3978
|
style: normalizeStyle(item.span ? { gridColumn: `span ${Math.min(item.span, __props.columns)}` } : void 0)
|
|
3980
3979
|
}, [
|
|
3981
|
-
createElementVNode("dt", _hoisted_1$
|
|
3982
|
-
createElementVNode("dd", _hoisted_2$
|
|
3980
|
+
createElementVNode("dt", _hoisted_1$e, toDisplayString(item.label), 1),
|
|
3981
|
+
createElementVNode("dd", _hoisted_2$d, [
|
|
3983
3982
|
renderSlot(_ctx.$slots, `value-${item.key}`, { item }, () => [
|
|
3984
|
-
item.value === null || item.value === void 0 || item.value === "" ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
3983
|
+
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
3984
|
createTextVNode(toDisplayString(item.value), 1)
|
|
3986
3985
|
], 64))
|
|
3987
3986
|
], true)
|
|
@@ -3992,9 +3991,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3992
3991
|
};
|
|
3993
3992
|
}
|
|
3994
3993
|
});
|
|
3995
|
-
const LfDescriptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3996
|
-
const _hoisted_1$
|
|
3997
|
-
const _sfc_main$
|
|
3994
|
+
const LfDescriptions = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-89d24a22"]]);
|
|
3995
|
+
const _hoisted_1$d = ["id", "placeholder", "disabled"];
|
|
3996
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3998
3997
|
__name: "LfTagInput",
|
|
3999
3998
|
props: /* @__PURE__ */ mergeModels({
|
|
4000
3999
|
label: {},
|
|
@@ -4091,7 +4090,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4091
4090
|
onKeydown,
|
|
4092
4091
|
onPaste,
|
|
4093
4092
|
onBlur: _cache[1] || (_cache[1] = ($event) => commit())
|
|
4094
|
-
}, null, 40, _hoisted_1$
|
|
4093
|
+
}, null, 40, _hoisted_1$d), [
|
|
4095
4094
|
[vModelText, draft.value]
|
|
4096
4095
|
])
|
|
4097
4096
|
], 2)
|
|
@@ -4101,14 +4100,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4101
4100
|
};
|
|
4102
4101
|
}
|
|
4103
4102
|
});
|
|
4104
|
-
const LfTagInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4105
|
-
const _hoisted_1$
|
|
4106
|
-
const _hoisted_2$
|
|
4107
|
-
const _hoisted_3$
|
|
4103
|
+
const LfTagInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-89f5a363"]]);
|
|
4104
|
+
const _hoisted_1$c = ["aria-label"];
|
|
4105
|
+
const _hoisted_2$c = { class: "lf-toolbar__start" };
|
|
4106
|
+
const _hoisted_3$a = {
|
|
4108
4107
|
key: 0,
|
|
4109
4108
|
class: "lf-toolbar__end"
|
|
4110
4109
|
};
|
|
4111
|
-
const _sfc_main$
|
|
4110
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
4112
4111
|
__name: "LfToolbar",
|
|
4113
4112
|
props: {
|
|
4114
4113
|
dense: { type: Boolean },
|
|
@@ -4122,25 +4121,25 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4122
4121
|
role: "toolbar",
|
|
4123
4122
|
"aria-label": __props.ariaLabel
|
|
4124
4123
|
}, [
|
|
4125
|
-
createElementVNode("div", _hoisted_2$
|
|
4124
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
4126
4125
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4127
4126
|
]),
|
|
4128
|
-
_ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4127
|
+
_ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
4129
4128
|
renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
4130
4129
|
])) : createCommentVNode("", true)
|
|
4131
|
-
], 10, _hoisted_1$
|
|
4130
|
+
], 10, _hoisted_1$c);
|
|
4132
4131
|
};
|
|
4133
4132
|
}
|
|
4134
4133
|
});
|
|
4135
|
-
const LfToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4136
|
-
const _hoisted_1$
|
|
4137
|
-
const _hoisted_2$
|
|
4138
|
-
const _hoisted_3 = {
|
|
4134
|
+
const LfToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-c81170ed"]]);
|
|
4135
|
+
const _hoisted_1$b = { class: "lf-kbd-group" };
|
|
4136
|
+
const _hoisted_2$b = { class: "lf-kbd" };
|
|
4137
|
+
const _hoisted_3$9 = {
|
|
4139
4138
|
key: 0,
|
|
4140
4139
|
class: "lf-kbd-plus",
|
|
4141
4140
|
"aria-hidden": "true"
|
|
4142
4141
|
};
|
|
4143
|
-
const _sfc_main$
|
|
4142
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
4144
4143
|
__name: "LfKbd",
|
|
4145
4144
|
props: {
|
|
4146
4145
|
keys: {}
|
|
@@ -4149,21 +4148,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4149
4148
|
const props = __props;
|
|
4150
4149
|
const keyList = computed(() => Array.isArray(props.keys) ? props.keys : props.keys.split("+").map((k) => k.trim()));
|
|
4151
4150
|
return (_ctx, _cache) => {
|
|
4152
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
4151
|
+
return openBlock(), createElementBlock("span", _hoisted_1$b, [
|
|
4153
4152
|
(openBlock(true), createElementBlock(Fragment, null, renderList(keyList.value, (k, i2) => {
|
|
4154
4153
|
return openBlock(), createElementBlock(Fragment, { key: i2 }, [
|
|
4155
|
-
createElementVNode("kbd", _hoisted_2$
|
|
4156
|
-
i2 < keyList.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3, "+")) : createCommentVNode("", true)
|
|
4154
|
+
createElementVNode("kbd", _hoisted_2$b, toDisplayString(k), 1),
|
|
4155
|
+
i2 < keyList.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_3$9, "+")) : createCommentVNode("", true)
|
|
4157
4156
|
], 64);
|
|
4158
4157
|
}), 128))
|
|
4159
4158
|
]);
|
|
4160
4159
|
};
|
|
4161
4160
|
}
|
|
4162
4161
|
});
|
|
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({
|
|
4162
|
+
const LfKbd = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-89bdfee2"]]);
|
|
4163
|
+
const _hoisted_1$a = ["aria-orientation", "aria-valuenow", "aria-label"];
|
|
4164
|
+
const _hoisted_2$a = { class: "lf-split__pane lf-split__pane--second" };
|
|
4165
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
4167
4166
|
__name: "LfSplitPane",
|
|
4168
4167
|
props: {
|
|
4169
4168
|
direction: { default: "horizontal" },
|
|
@@ -4262,107 +4261,1150 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4262
4261
|
onPointerdown: onDown,
|
|
4263
4262
|
onKeydown: onKey,
|
|
4264
4263
|
onDblclick: _cache[0] || (_cache[0] = ($event) => size.value = __props.initial)
|
|
4265
|
-
}, null, 40, _hoisted_1)) : createCommentVNode("", true),
|
|
4266
|
-
createElementVNode("div", _hoisted_2, [
|
|
4264
|
+
}, null, 40, _hoisted_1$a)) : createCommentVNode("", true),
|
|
4265
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
4267
4266
|
renderSlot(_ctx.$slots, "second", {}, void 0, true)
|
|
4268
4267
|
])
|
|
4269
4268
|
], 2);
|
|
4270
4269
|
};
|
|
4271
4270
|
}
|
|
4272
4271
|
});
|
|
4273
|
-
const LfSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f87ea5e"]]);
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4272
|
+
const LfSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-9f87ea5e"]]);
|
|
4273
|
+
const _hoisted_1$9 = ["role", "aria-label", "aria-hidden"];
|
|
4274
|
+
const _hoisted_2$9 = {
|
|
4275
|
+
key: 0,
|
|
4276
|
+
class: "lf-dot__label"
|
|
4277
|
+
};
|
|
4278
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4279
|
+
__name: "LfColorDot",
|
|
4280
|
+
props: {
|
|
4281
|
+
tone: { default: "neutral" },
|
|
4282
|
+
color: {},
|
|
4283
|
+
label: {},
|
|
4284
|
+
size: { default: "md" },
|
|
4285
|
+
pulse: { type: Boolean },
|
|
4286
|
+
ring: { type: Boolean },
|
|
4287
|
+
ariaLabel: {}
|
|
4288
|
+
},
|
|
4289
|
+
setup(__props) {
|
|
4290
|
+
return (_ctx, _cache) => {
|
|
4291
|
+
return openBlock(), createElementBlock("span", {
|
|
4292
|
+
class: normalizeClass(["lf-dot", [`lf-dot--${__props.size}`, __props.color ? null : `lf-dot--${__props.tone}`]])
|
|
4293
|
+
}, [
|
|
4294
|
+
createElementVNode("span", {
|
|
4295
|
+
class: normalizeClass(["lf-dot__mark", { "lf-dot__mark--pulse": __props.pulse, "lf-dot__mark--ring": __props.ring }]),
|
|
4296
|
+
style: normalizeStyle(__props.color ? { "--lf-dot-color": __props.color } : void 0),
|
|
4297
|
+
role: __props.label || _ctx.$slots.default ? void 0 : "img",
|
|
4298
|
+
"aria-label": __props.label || _ctx.$slots.default ? void 0 : __props.ariaLabel,
|
|
4299
|
+
"aria-hidden": __props.label || _ctx.$slots.default ? "true" : void 0
|
|
4300
|
+
}, null, 14, _hoisted_1$9),
|
|
4301
|
+
__props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$9, [
|
|
4302
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4303
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
4304
|
+
], true)
|
|
4305
|
+
])) : createCommentVNode("", true)
|
|
4306
|
+
], 2);
|
|
4307
|
+
};
|
|
4303
4308
|
}
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4309
|
+
});
|
|
4310
|
+
const LfColorDot = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3aea66f7"]]);
|
|
4311
|
+
const _hoisted_1$8 = ["for"];
|
|
4312
|
+
const _hoisted_2$8 = { class: "lf-scan__row" };
|
|
4313
|
+
const _hoisted_3$8 = ["id", "placeholder", "inputmode", "disabled", "aria-invalid", "aria-describedby"];
|
|
4314
|
+
const _hoisted_4$8 = ["id"];
|
|
4315
|
+
const _hoisted_5$8 = ["id"];
|
|
4316
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
4317
|
+
__name: "LfScanInput",
|
|
4318
|
+
props: {
|
|
4319
|
+
label: {},
|
|
4320
|
+
placeholder: {},
|
|
4321
|
+
hint: {},
|
|
4322
|
+
error: {},
|
|
4323
|
+
okText: { default: "OK" },
|
|
4324
|
+
icon: { default: "qr_code_scanner" },
|
|
4325
|
+
numeric: { type: Boolean },
|
|
4326
|
+
normalize: {},
|
|
4327
|
+
resetKey: {},
|
|
4328
|
+
autofocus: { type: Boolean, default: true },
|
|
4329
|
+
disabled: { type: Boolean },
|
|
4330
|
+
size: { default: "lg" }
|
|
4331
|
+
},
|
|
4332
|
+
emits: ["scan"],
|
|
4333
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4334
|
+
const props = __props;
|
|
4335
|
+
const emit = __emit;
|
|
4336
|
+
const id = useId();
|
|
4337
|
+
const value = ref("");
|
|
4338
|
+
const input = ref(null);
|
|
4339
|
+
function submit() {
|
|
4340
|
+
const raw = value.value;
|
|
4341
|
+
const v = props.numeric ? raw.trim() : props.normalize ? props.normalize(raw) : raw.trim().toUpperCase();
|
|
4342
|
+
if (!v) return;
|
|
4343
|
+
emit("scan", v);
|
|
4344
|
+
value.value = "";
|
|
4345
|
+
focus();
|
|
4311
4346
|
}
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
let res = await baseFetch(input, withCookies(init));
|
|
4318
|
-
if (res.status !== 401 || !allowRetry) {
|
|
4319
|
-
if (res.ok) notified = false;
|
|
4320
|
-
return res;
|
|
4321
|
-
}
|
|
4322
|
-
const refreshed = await tryRefresh();
|
|
4323
|
-
if (!refreshed) {
|
|
4324
|
-
if (!notified) {
|
|
4325
|
-
notified = true;
|
|
4326
|
-
onUnauthorized == null ? void 0 : onUnauthorized();
|
|
4327
|
-
}
|
|
4328
|
-
return res;
|
|
4329
|
-
}
|
|
4330
|
-
res = await baseFetch(input, withCookies(init));
|
|
4331
|
-
if (res.ok) notified = false;
|
|
4332
|
-
return res;
|
|
4333
|
-
} finally {
|
|
4334
|
-
onActivity == null ? void 0 : onActivity(-1);
|
|
4347
|
+
function focus() {
|
|
4348
|
+
nextTick(() => {
|
|
4349
|
+
var _a;
|
|
4350
|
+
return (_a = input.value) == null ? void 0 : _a.focus();
|
|
4351
|
+
});
|
|
4335
4352
|
}
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
const url = `${baseUrl}${path}`;
|
|
4345
|
-
const init = { method, signal, headers: { ...headers } };
|
|
4346
|
-
if (body !== void 0) {
|
|
4347
|
-
if (body instanceof FormData || body instanceof Blob || typeof body === "string") {
|
|
4348
|
-
init.body = body;
|
|
4349
|
-
} else {
|
|
4350
|
-
init.body = JSON.stringify(body);
|
|
4351
|
-
init.headers = { "Content-Type": "application/json", ...init.headers };
|
|
4353
|
+
onMounted(() => {
|
|
4354
|
+
if (props.autofocus) focus();
|
|
4355
|
+
});
|
|
4356
|
+
watch(
|
|
4357
|
+
() => props.resetKey,
|
|
4358
|
+
() => {
|
|
4359
|
+
value.value = "";
|
|
4360
|
+
focus();
|
|
4352
4361
|
}
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4362
|
+
);
|
|
4363
|
+
__expose({ focus });
|
|
4364
|
+
return (_ctx, _cache) => {
|
|
4365
|
+
return openBlock(), createElementBlock("form", {
|
|
4366
|
+
class: normalizeClass(["lf-scan", `lf-scan--${__props.size}`]),
|
|
4367
|
+
onSubmit: withModifiers(submit, ["prevent"])
|
|
4368
|
+
}, [
|
|
4369
|
+
__props.label ? (openBlock(), createElementBlock("label", {
|
|
4370
|
+
key: 0,
|
|
4371
|
+
class: "lf-scan__label",
|
|
4372
|
+
for: unref(id)
|
|
4373
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$8)) : createCommentVNode("", true),
|
|
4374
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
4375
|
+
withDirectives(createElementVNode("input", {
|
|
4376
|
+
id: unref(id),
|
|
4377
|
+
ref_key: "input",
|
|
4378
|
+
ref: input,
|
|
4379
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
4380
|
+
class: normalizeClass(["lf-scan__input", { "lf-scan__input--error": !!__props.error }]),
|
|
4381
|
+
placeholder: __props.placeholder,
|
|
4382
|
+
inputmode: __props.numeric ? "decimal" : "text",
|
|
4383
|
+
disabled: __props.disabled,
|
|
4384
|
+
autocomplete: "off",
|
|
4385
|
+
autocapitalize: "characters",
|
|
4386
|
+
spellcheck: "false",
|
|
4387
|
+
"aria-invalid": !!__props.error,
|
|
4388
|
+
"aria-describedby": __props.error || __props.hint ? `${unref(id)}-msg` : void 0
|
|
4389
|
+
}, null, 10, _hoisted_3$8), [
|
|
4390
|
+
[vModelText, value.value]
|
|
4391
|
+
]),
|
|
4392
|
+
createVNode(LfButton, {
|
|
4393
|
+
type: "submit",
|
|
4394
|
+
variant: "primary",
|
|
4395
|
+
size: __props.size === "md" ? "md" : "lg",
|
|
4396
|
+
icon: __props.icon,
|
|
4397
|
+
disabled: __props.disabled || !value.value.trim()
|
|
4398
|
+
}, {
|
|
4399
|
+
default: withCtx(() => [
|
|
4400
|
+
createTextVNode(toDisplayString(__props.okText), 1)
|
|
4401
|
+
]),
|
|
4402
|
+
_: 1
|
|
4403
|
+
}, 8, ["size", "icon", "disabled"])
|
|
4404
|
+
]),
|
|
4405
|
+
__props.error ? (openBlock(), createElementBlock("p", {
|
|
4406
|
+
key: 1,
|
|
4407
|
+
id: `${unref(id)}-msg`,
|
|
4408
|
+
class: "lf-scan__error",
|
|
4409
|
+
role: "alert"
|
|
4410
|
+
}, toDisplayString(__props.error), 9, _hoisted_4$8)) : __props.hint ? (openBlock(), createElementBlock("p", {
|
|
4411
|
+
key: 2,
|
|
4412
|
+
id: `${unref(id)}-msg`,
|
|
4413
|
+
class: "lf-scan__hint"
|
|
4414
|
+
}, toDisplayString(__props.hint), 9, _hoisted_5$8)) : createCommentVNode("", true)
|
|
4415
|
+
], 34);
|
|
4416
|
+
};
|
|
4417
|
+
}
|
|
4418
|
+
});
|
|
4419
|
+
const LfScanInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a0a71f90"]]);
|
|
4420
|
+
const _hoisted_1$7 = ["aria-label"];
|
|
4421
|
+
const _hoisted_2$7 = {
|
|
4422
|
+
key: 0,
|
|
4423
|
+
class: "lf-stepper__label"
|
|
4424
|
+
};
|
|
4425
|
+
const _hoisted_3$7 = { class: "lf-stepper__row" };
|
|
4426
|
+
const _hoisted_4$7 = ["aria-label", "disabled"];
|
|
4427
|
+
const _hoisted_5$7 = ["value", "disabled", "aria-label"];
|
|
4428
|
+
const _hoisted_6$5 = ["aria-label", "disabled"];
|
|
4429
|
+
const _hoisted_7$3 = {
|
|
4430
|
+
key: 1,
|
|
4431
|
+
class: "lf-stepper__unit"
|
|
4432
|
+
};
|
|
4433
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4434
|
+
__name: "LfStepper",
|
|
4435
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4436
|
+
label: {},
|
|
4437
|
+
min: {},
|
|
4438
|
+
max: {},
|
|
4439
|
+
step: { default: 1 },
|
|
4440
|
+
unit: {},
|
|
4441
|
+
size: { default: "lg" },
|
|
4442
|
+
disabled: { type: Boolean },
|
|
4443
|
+
decLabel: { default: "줄이기" },
|
|
4444
|
+
incLabel: { default: "늘리기" }
|
|
4445
|
+
}, {
|
|
4446
|
+
"modelValue": { default: 0 },
|
|
4447
|
+
"modelModifiers": {}
|
|
4448
|
+
}),
|
|
4449
|
+
emits: ["update:modelValue"],
|
|
4450
|
+
setup(__props) {
|
|
4451
|
+
const props = __props;
|
|
4452
|
+
const model = useModel(__props, "modelValue");
|
|
4453
|
+
const text = ref(String(model.value));
|
|
4454
|
+
watch(model, (v) => text.value = String(v));
|
|
4455
|
+
function clamp(v) {
|
|
4456
|
+
let n = Number.isFinite(v) ? v : 0;
|
|
4457
|
+
if (props.min !== void 0) n = Math.max(props.min, n);
|
|
4458
|
+
if (props.max !== void 0) n = Math.min(props.max, n);
|
|
4459
|
+
const decimals = (String(props.step).split(".")[1] ?? "").length;
|
|
4460
|
+
return Number(n.toFixed(decimals));
|
|
4461
|
+
}
|
|
4462
|
+
function bump(dir) {
|
|
4463
|
+
if (props.disabled) return;
|
|
4464
|
+
model.value = clamp(model.value + dir * props.step);
|
|
4465
|
+
}
|
|
4466
|
+
let timer = null;
|
|
4467
|
+
function hold(dir) {
|
|
4468
|
+
bump(dir);
|
|
4469
|
+
release();
|
|
4470
|
+
let delay = 400;
|
|
4471
|
+
const tick = () => {
|
|
4472
|
+
bump(dir);
|
|
4473
|
+
delay = Math.max(60, delay * 0.8);
|
|
4474
|
+
timer = setTimeout(tick, delay);
|
|
4475
|
+
};
|
|
4476
|
+
timer = setTimeout(tick, delay);
|
|
4477
|
+
}
|
|
4478
|
+
function release() {
|
|
4479
|
+
if (timer) clearTimeout(timer);
|
|
4480
|
+
timer = null;
|
|
4481
|
+
}
|
|
4482
|
+
onBeforeUnmount(release);
|
|
4483
|
+
function onInput(e3) {
|
|
4484
|
+
text.value = e3.target.value;
|
|
4485
|
+
const n = Number(text.value.replace(/,/g, ""));
|
|
4486
|
+
if (text.value.trim() !== "" && Number.isFinite(n)) model.value = n;
|
|
4487
|
+
}
|
|
4488
|
+
function commit() {
|
|
4489
|
+
model.value = clamp(Number(text.value.replace(/,/g, "")));
|
|
4490
|
+
text.value = String(model.value);
|
|
4491
|
+
}
|
|
4492
|
+
return (_ctx, _cache) => {
|
|
4493
|
+
return openBlock(), createElementBlock("div", {
|
|
4494
|
+
class: normalizeClass(["lf-stepper", [`lf-stepper--${__props.size}`, { "lf-stepper--disabled": __props.disabled }]]),
|
|
4495
|
+
role: "group",
|
|
4496
|
+
"aria-label": __props.label
|
|
4497
|
+
}, [
|
|
4498
|
+
__props.label ? (openBlock(), createElementBlock("span", _hoisted_2$7, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
4499
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
4500
|
+
createElementVNode("button", {
|
|
4501
|
+
type: "button",
|
|
4502
|
+
class: "lf-stepper__btn",
|
|
4503
|
+
"aria-label": __props.decLabel,
|
|
4504
|
+
disabled: __props.disabled || __props.min !== void 0 && model.value <= __props.min,
|
|
4505
|
+
onPointerdown: _cache[0] || (_cache[0] = ($event) => hold(-1)),
|
|
4506
|
+
onPointerup: release,
|
|
4507
|
+
onPointerleave: release,
|
|
4508
|
+
onKeydown: [
|
|
4509
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => bump(-1), ["prevent"]), ["enter"])),
|
|
4510
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => bump(-1), ["prevent"]), ["space"]))
|
|
4511
|
+
]
|
|
4512
|
+
}, " − ", 40, _hoisted_4$7),
|
|
4513
|
+
createElementVNode("input", {
|
|
4514
|
+
class: "lf-stepper__value",
|
|
4515
|
+
type: "text",
|
|
4516
|
+
inputmode: "decimal",
|
|
4517
|
+
value: text.value,
|
|
4518
|
+
disabled: __props.disabled,
|
|
4519
|
+
"aria-label": __props.label,
|
|
4520
|
+
onInput,
|
|
4521
|
+
onBlur: commit,
|
|
4522
|
+
onKeydown: [
|
|
4523
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => bump(1), ["prevent"]), ["up"])),
|
|
4524
|
+
_cache[4] || (_cache[4] = withKeys(withModifiers(($event) => bump(-1), ["prevent"]), ["down"]))
|
|
4525
|
+
]
|
|
4526
|
+
}, null, 40, _hoisted_5$7),
|
|
4527
|
+
createElementVNode("button", {
|
|
4528
|
+
type: "button",
|
|
4529
|
+
class: "lf-stepper__btn",
|
|
4530
|
+
"aria-label": __props.incLabel,
|
|
4531
|
+
disabled: __props.disabled || __props.max !== void 0 && model.value >= __props.max,
|
|
4532
|
+
onPointerdown: _cache[5] || (_cache[5] = ($event) => hold(1)),
|
|
4533
|
+
onPointerup: release,
|
|
4534
|
+
onPointerleave: release,
|
|
4535
|
+
onKeydown: [
|
|
4536
|
+
_cache[6] || (_cache[6] = withKeys(withModifiers(($event) => bump(1), ["prevent"]), ["enter"])),
|
|
4537
|
+
_cache[7] || (_cache[7] = withKeys(withModifiers(($event) => bump(1), ["prevent"]), ["space"]))
|
|
4538
|
+
]
|
|
4539
|
+
}, " + ", 40, _hoisted_6$5)
|
|
4540
|
+
]),
|
|
4541
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_7$3, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
4542
|
+
], 10, _hoisted_1$7);
|
|
4543
|
+
};
|
|
4544
|
+
}
|
|
4545
|
+
});
|
|
4546
|
+
const LfStepper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-00c8d9bc"]]);
|
|
4547
|
+
const _hoisted_1$6 = ["aria-label"];
|
|
4548
|
+
const _hoisted_2$6 = {
|
|
4549
|
+
key: 0,
|
|
4550
|
+
class: "lf-cells__scroll"
|
|
4551
|
+
};
|
|
4552
|
+
const _hoisted_3$6 = {
|
|
4553
|
+
key: 0,
|
|
4554
|
+
class: "lf-cells__corner",
|
|
4555
|
+
"aria-hidden": "true"
|
|
4556
|
+
};
|
|
4557
|
+
const _hoisted_4$6 = {
|
|
4558
|
+
key: 0,
|
|
4559
|
+
class: "lf-cells__axis lf-cells__axis--row",
|
|
4560
|
+
"aria-hidden": "true"
|
|
4561
|
+
};
|
|
4562
|
+
const _hoisted_5$6 = ["disabled", "title", "aria-label", "aria-selected", "data-row", "data-col", "onClick", "onKeydown"];
|
|
4563
|
+
const _hoisted_6$4 = {
|
|
4564
|
+
key: 1,
|
|
4565
|
+
class: "lf-cells__text"
|
|
4566
|
+
};
|
|
4567
|
+
const _hoisted_7$2 = {
|
|
4568
|
+
key: 1,
|
|
4569
|
+
class: "lf-cells__hole",
|
|
4570
|
+
"aria-hidden": "true"
|
|
4571
|
+
};
|
|
4572
|
+
const _hoisted_8$1 = {
|
|
4573
|
+
key: 1,
|
|
4574
|
+
class: "lf-cells__empty"
|
|
4575
|
+
};
|
|
4576
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4577
|
+
__name: "LfCellGrid",
|
|
4578
|
+
props: {
|
|
4579
|
+
cells: {},
|
|
4580
|
+
selected: {},
|
|
4581
|
+
cellSize: { default: 18 },
|
|
4582
|
+
gap: { default: 3 },
|
|
4583
|
+
rowLabels: { type: [Boolean, Function], default: true },
|
|
4584
|
+
colLabels: { type: [Boolean, Function], default: false },
|
|
4585
|
+
ariaLabel: { default: "cells" },
|
|
4586
|
+
emptyText: { default: "—" }
|
|
4587
|
+
},
|
|
4588
|
+
emits: ["pick"],
|
|
4589
|
+
setup(__props, { emit: __emit }) {
|
|
4590
|
+
const props = __props;
|
|
4591
|
+
const emit = __emit;
|
|
4592
|
+
const index = computed(() => {
|
|
4593
|
+
const m = /* @__PURE__ */ new Map();
|
|
4594
|
+
for (const c2 of props.cells) m.set(`${c2.row}:${c2.col}`, c2);
|
|
4595
|
+
return m;
|
|
4596
|
+
});
|
|
4597
|
+
const rowCount = computed(() => Math.max(0, ...props.cells.map((c2) => c2.row)));
|
|
4598
|
+
const colCount = computed(() => Math.max(0, ...props.cells.map((c2) => c2.col)));
|
|
4599
|
+
const gridStyle = computed(() => ({
|
|
4600
|
+
gridTemplateColumns: `${props.rowLabels ? "auto " : ""}repeat(${colCount.value}, ${props.cellSize}px)`,
|
|
4601
|
+
gap: `${props.gap}px`,
|
|
4602
|
+
"--lf-cell-size": `${props.cellSize}px`
|
|
4603
|
+
}));
|
|
4604
|
+
function at(r, c2) {
|
|
4605
|
+
return index.value.get(`${r}:${c2}`);
|
|
4606
|
+
}
|
|
4607
|
+
function rowLabel(r) {
|
|
4608
|
+
return typeof props.rowLabels === "function" ? props.rowLabels(r) : String(r);
|
|
4609
|
+
}
|
|
4610
|
+
function colLabel(c2) {
|
|
4611
|
+
return typeof props.colLabels === "function" ? props.colLabels(c2) : String(c2);
|
|
4612
|
+
}
|
|
4613
|
+
function onKey(e3, r, c2) {
|
|
4614
|
+
var _a;
|
|
4615
|
+
const d2 = { ArrowUp: [-1, 0], ArrowDown: [1, 0], ArrowLeft: [0, -1], ArrowRight: [0, 1] };
|
|
4616
|
+
const step = d2[e3.key];
|
|
4617
|
+
if (!step) return;
|
|
4618
|
+
e3.preventDefault();
|
|
4619
|
+
let nr = r + step[0];
|
|
4620
|
+
let nc = c2 + step[1];
|
|
4621
|
+
while (nr >= 1 && nc >= 1 && nr <= rowCount.value && nc <= colCount.value) {
|
|
4622
|
+
if (at(nr, nc)) {
|
|
4623
|
+
const root = e3.currentTarget.closest(".lf-cells__grid");
|
|
4624
|
+
(_a = root == null ? void 0 : root.querySelector(`[data-row="${nr}"][data-col="${nc}"]`)) == null ? void 0 : _a.focus();
|
|
4625
|
+
return;
|
|
4626
|
+
}
|
|
4627
|
+
nr += step[0];
|
|
4628
|
+
nc += step[1];
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
return (_ctx, _cache) => {
|
|
4632
|
+
return openBlock(), createElementBlock("div", {
|
|
4633
|
+
class: "lf-cells",
|
|
4634
|
+
"aria-label": __props.ariaLabel,
|
|
4635
|
+
role: "grid"
|
|
4636
|
+
}, [
|
|
4637
|
+
__props.cells.length ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
4638
|
+
createElementVNode("div", {
|
|
4639
|
+
class: "lf-cells__grid",
|
|
4640
|
+
style: normalizeStyle(gridStyle.value)
|
|
4641
|
+
}, [
|
|
4642
|
+
__props.colLabels ? (openBlock(), createElementBlock("span", _hoisted_3$6)) : createCommentVNode("", true),
|
|
4643
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(colCount.value, (c2) => {
|
|
4644
|
+
return withDirectives((openBlock(), createElementBlock("span", {
|
|
4645
|
+
key: `c${c2}`,
|
|
4646
|
+
class: "lf-cells__axis lf-cells__axis--col",
|
|
4647
|
+
"aria-hidden": "true"
|
|
4648
|
+
}, toDisplayString(colLabel(c2)), 1)), [
|
|
4649
|
+
[vShow, __props.colLabels]
|
|
4650
|
+
]);
|
|
4651
|
+
}), 128)),
|
|
4652
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(rowCount.value, (r) => {
|
|
4653
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
4654
|
+
key: `r${r}`
|
|
4655
|
+
}, [
|
|
4656
|
+
__props.rowLabels ? (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(rowLabel(r)), 1)) : createCommentVNode("", true),
|
|
4657
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(colCount.value, (c2) => {
|
|
4658
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
4659
|
+
key: `${r}-${c2}`
|
|
4660
|
+
}, [
|
|
4661
|
+
at(r, c2) ? (openBlock(), createElementBlock("button", {
|
|
4662
|
+
key: 0,
|
|
4663
|
+
type: "button",
|
|
4664
|
+
role: "gridcell",
|
|
4665
|
+
class: normalizeClass(["lf-cells__cell", [
|
|
4666
|
+
`lf-cells__cell--${at(r, c2).tone ?? "neutral"}`,
|
|
4667
|
+
{
|
|
4668
|
+
"lf-cells__cell--on": at(r, c2).id === __props.selected,
|
|
4669
|
+
"lf-cells__cell--blocked": at(r, c2).blocked
|
|
4670
|
+
}
|
|
4671
|
+
]]),
|
|
4672
|
+
disabled: at(r, c2).disabled,
|
|
4673
|
+
title: at(r, c2).title ?? at(r, c2).id,
|
|
4674
|
+
"aria-label": at(r, c2).title ?? at(r, c2).id,
|
|
4675
|
+
"aria-selected": at(r, c2).id === __props.selected,
|
|
4676
|
+
"data-row": r,
|
|
4677
|
+
"data-col": c2,
|
|
4678
|
+
onClick: ($event) => emit("pick", at(r, c2)),
|
|
4679
|
+
onKeydown: ($event) => onKey($event, r, c2)
|
|
4680
|
+
}, [
|
|
4681
|
+
at(r, c2).fill !== void 0 ? (openBlock(), createElementBlock("span", {
|
|
4682
|
+
key: 0,
|
|
4683
|
+
class: "lf-cells__fill",
|
|
4684
|
+
style: normalizeStyle({ height: `${Math.round(Math.min(1, Math.max(0, at(r, c2).fill)) * 100)}%` })
|
|
4685
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
4686
|
+
at(r, c2).text ? (openBlock(), createElementBlock("span", _hoisted_6$4, toDisplayString(at(r, c2).text), 1)) : createCommentVNode("", true)
|
|
4687
|
+
], 42, _hoisted_5$6)) : (openBlock(), createElementBlock("span", _hoisted_7$2))
|
|
4688
|
+
], 64);
|
|
4689
|
+
}), 128))
|
|
4690
|
+
], 64);
|
|
4691
|
+
}), 128))
|
|
4692
|
+
], 4)
|
|
4693
|
+
])) : (openBlock(), createElementBlock("p", _hoisted_8$1, toDisplayString(__props.emptyText), 1))
|
|
4694
|
+
], 8, _hoisted_1$6);
|
|
4695
|
+
};
|
|
4696
|
+
}
|
|
4697
|
+
});
|
|
4698
|
+
const LfCellGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-a3780db7"]]);
|
|
4699
|
+
const _hoisted_1$5 = ["title"];
|
|
4700
|
+
const _hoisted_2$5 = ["aria-label", "aria-valuenow"];
|
|
4701
|
+
const _hoisted_3$5 = {
|
|
4702
|
+
key: 0,
|
|
4703
|
+
class: "lf-rank__share"
|
|
4704
|
+
};
|
|
4705
|
+
const _hoisted_4$5 = {
|
|
4706
|
+
key: 1,
|
|
4707
|
+
class: "lf-rank__value"
|
|
4708
|
+
};
|
|
4709
|
+
const _hoisted_5$5 = {
|
|
4710
|
+
key: 1,
|
|
4711
|
+
class: "lf-rank__empty"
|
|
4712
|
+
};
|
|
4713
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
4714
|
+
__name: "LfRankBars",
|
|
4715
|
+
props: {
|
|
4716
|
+
items: {},
|
|
4717
|
+
tone: { default: "accent" },
|
|
4718
|
+
showShare: { type: Boolean, default: true },
|
|
4719
|
+
showValue: { type: Boolean, default: true },
|
|
4720
|
+
limit: {},
|
|
4721
|
+
format: {},
|
|
4722
|
+
compact: { type: Boolean },
|
|
4723
|
+
emptyText: { default: "—" }
|
|
4724
|
+
},
|
|
4725
|
+
setup(__props) {
|
|
4726
|
+
const props = __props;
|
|
4727
|
+
const sorted = computed(() => {
|
|
4728
|
+
const s = [...props.items].sort((a, b2) => b2.value - a.value);
|
|
4729
|
+
return props.limit ? s.slice(0, props.limit) : s;
|
|
4730
|
+
});
|
|
4731
|
+
const total = computed(() => props.items.reduce((a, b2) => a + Math.max(0, b2.value), 0) || 1);
|
|
4732
|
+
const max = computed(() => Math.max(1e-9, ...sorted.value.map((i2) => i2.value)));
|
|
4733
|
+
function share(i2) {
|
|
4734
|
+
return Math.max(0, i2.value) / total.value;
|
|
4735
|
+
}
|
|
4736
|
+
function isOver(i2) {
|
|
4737
|
+
return i2.limit !== void 0 && i2.limit !== null && i2.value > i2.limit;
|
|
4738
|
+
}
|
|
4739
|
+
function pct(v) {
|
|
4740
|
+
return `${Math.round(v * 100)}%`;
|
|
4741
|
+
}
|
|
4742
|
+
function fmt(v) {
|
|
4743
|
+
if (props.format) return props.format(v);
|
|
4744
|
+
return Math.abs(v) >= 100 ? Math.round(v).toLocaleString() : v.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
4745
|
+
}
|
|
4746
|
+
return (_ctx, _cache) => {
|
|
4747
|
+
return sorted.value.length ? (openBlock(), createElementBlock("ul", {
|
|
4748
|
+
key: 0,
|
|
4749
|
+
class: normalizeClass(["lf-rank", { "lf-rank--compact": __props.compact }])
|
|
4750
|
+
}, [
|
|
4751
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sorted.value, (item) => {
|
|
4752
|
+
return openBlock(), createElementBlock("li", {
|
|
4753
|
+
key: item.key,
|
|
4754
|
+
class: normalizeClass(["lf-rank__row", { "lf-rank__row--over": isOver(item) }])
|
|
4755
|
+
}, [
|
|
4756
|
+
createElementVNode("span", {
|
|
4757
|
+
class: "lf-rank__name",
|
|
4758
|
+
title: item.label
|
|
4759
|
+
}, [
|
|
4760
|
+
renderSlot(_ctx.$slots, "label", { item }, () => [
|
|
4761
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
4762
|
+
], true)
|
|
4763
|
+
], 8, _hoisted_1$5),
|
|
4764
|
+
createElementVNode("span", {
|
|
4765
|
+
class: "lf-rank__bar",
|
|
4766
|
+
role: "meter",
|
|
4767
|
+
"aria-label": item.label,
|
|
4768
|
+
"aria-valuenow": Math.round(share(item) * 100),
|
|
4769
|
+
"aria-valuemin": "0",
|
|
4770
|
+
"aria-valuemax": "100"
|
|
4771
|
+
}, [
|
|
4772
|
+
createElementVNode("span", {
|
|
4773
|
+
class: normalizeClass(["lf-rank__fill", `lf-rank__fill--${item.tone ?? (isOver(item) ? "error" : __props.tone)}`]),
|
|
4774
|
+
style: normalizeStyle({ width: `${Math.max(2, item.value / max.value * 100)}%` })
|
|
4775
|
+
}, null, 6)
|
|
4776
|
+
], 8, _hoisted_2$5),
|
|
4777
|
+
__props.showShare ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(pct(share(item))), 1)) : createCommentVNode("", true),
|
|
4778
|
+
__props.showValue ? (openBlock(), createElementBlock("span", _hoisted_4$5, [
|
|
4779
|
+
createTextVNode(toDisplayString(fmt(item.value)), 1),
|
|
4780
|
+
item.limit !== void 0 && item.limit !== null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
4781
|
+
createTextVNode(" / " + toDisplayString(fmt(item.limit)), 1)
|
|
4782
|
+
], 64)) : createCommentVNode("", true)
|
|
4783
|
+
])) : createCommentVNode("", true)
|
|
4784
|
+
], 2);
|
|
4785
|
+
}), 128))
|
|
4786
|
+
], 2)) : (openBlock(), createElementBlock("p", _hoisted_5$5, toDisplayString(__props.emptyText), 1));
|
|
4787
|
+
};
|
|
4788
|
+
}
|
|
4789
|
+
});
|
|
4790
|
+
const LfRankBars = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-622d0701"]]);
|
|
4791
|
+
const _hoisted_1$4 = ["aria-label", "aria-valuenow", "aria-valuemax"];
|
|
4792
|
+
const _hoisted_2$4 = {
|
|
4793
|
+
viewBox: "0 0 36 36",
|
|
4794
|
+
class: "lf-score__svg",
|
|
4795
|
+
"aria-hidden": "true"
|
|
4796
|
+
};
|
|
4797
|
+
const _hoisted_3$4 = ["stroke-dasharray"];
|
|
4798
|
+
const _hoisted_4$4 = { class: "lf-score__center" };
|
|
4799
|
+
const _hoisted_5$4 = { class: "lf-score__value" };
|
|
4800
|
+
const _hoisted_6$3 = {
|
|
4801
|
+
key: 0,
|
|
4802
|
+
class: "lf-score__caption"
|
|
4803
|
+
};
|
|
4804
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4805
|
+
__name: "LfScoreRing",
|
|
4806
|
+
props: {
|
|
4807
|
+
value: {},
|
|
4808
|
+
max: { default: 100 },
|
|
4809
|
+
label: { default: "score" },
|
|
4810
|
+
caption: {},
|
|
4811
|
+
thresholds: { default: () => [40, 70] },
|
|
4812
|
+
higherIsBetter: { type: Boolean },
|
|
4813
|
+
size: { default: "md" },
|
|
4814
|
+
format: {}
|
|
4815
|
+
},
|
|
4816
|
+
setup(__props) {
|
|
4817
|
+
const props = __props;
|
|
4818
|
+
const clamped = computed(() => Math.min(Math.max(props.value, 0), props.max));
|
|
4819
|
+
const dash = computed(() => clamped.value / props.max * 97.4);
|
|
4820
|
+
const display = computed(() => props.format ? props.format(clamped.value) : String(Math.round(clamped.value)));
|
|
4821
|
+
const tone = computed(() => {
|
|
4822
|
+
const [warn, bad] = props.thresholds;
|
|
4823
|
+
const v = clamped.value / props.max * 100;
|
|
4824
|
+
if (props.higherIsBetter) return v >= bad ? "success" : v >= warn ? "warning" : "error";
|
|
4825
|
+
return v >= bad ? "error" : v >= warn ? "warning" : "success";
|
|
4826
|
+
});
|
|
4827
|
+
return (_ctx, _cache) => {
|
|
4828
|
+
return openBlock(), createElementBlock("div", {
|
|
4829
|
+
class: normalizeClass(["lf-score", [`lf-score--${__props.size}`, `lf-score--${tone.value}`]]),
|
|
4830
|
+
role: "meter",
|
|
4831
|
+
"aria-label": __props.label,
|
|
4832
|
+
"aria-valuenow": clamped.value,
|
|
4833
|
+
"aria-valuemin": "0",
|
|
4834
|
+
"aria-valuemax": __props.max
|
|
4835
|
+
}, [
|
|
4836
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$4, [
|
|
4837
|
+
_cache[0] || (_cache[0] = createElementVNode("circle", {
|
|
4838
|
+
class: "lf-score__track",
|
|
4839
|
+
cx: "18",
|
|
4840
|
+
cy: "18",
|
|
4841
|
+
r: "15.5"
|
|
4842
|
+
}, null, -1)),
|
|
4843
|
+
createElementVNode("circle", {
|
|
4844
|
+
class: "lf-score__arc",
|
|
4845
|
+
cx: "18",
|
|
4846
|
+
cy: "18",
|
|
4847
|
+
r: "15.5",
|
|
4848
|
+
"stroke-dasharray": `${dash.value} 100`,
|
|
4849
|
+
transform: "rotate(-90 18 18)"
|
|
4850
|
+
}, null, 8, _hoisted_3$4)
|
|
4851
|
+
])),
|
|
4852
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
4853
|
+
createElementVNode("span", _hoisted_5$4, toDisplayString(display.value), 1),
|
|
4854
|
+
__props.caption ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(__props.caption), 1)) : createCommentVNode("", true)
|
|
4855
|
+
])
|
|
4856
|
+
], 10, _hoisted_1$4);
|
|
4857
|
+
};
|
|
4858
|
+
}
|
|
4859
|
+
});
|
|
4860
|
+
const LfScoreRing = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-9b2efada"]]);
|
|
4861
|
+
const _hoisted_1$3 = ["aria-checked", "disabled"];
|
|
4862
|
+
const _hoisted_2$3 = { class: "lf-choice__head" };
|
|
4863
|
+
const _hoisted_3$3 = { class: "lf-choice__title" };
|
|
4864
|
+
const _hoisted_4$3 = {
|
|
4865
|
+
key: 1,
|
|
4866
|
+
class: "lf-choice__rec"
|
|
4867
|
+
};
|
|
4868
|
+
const _hoisted_5$3 = {
|
|
4869
|
+
key: 2,
|
|
4870
|
+
class: "lf-choice__badge"
|
|
4871
|
+
};
|
|
4872
|
+
const _hoisted_6$2 = {
|
|
4873
|
+
key: 0,
|
|
4874
|
+
class: "lf-choice__desc"
|
|
4875
|
+
};
|
|
4876
|
+
const _hoisted_7$1 = {
|
|
4877
|
+
key: 1,
|
|
4878
|
+
class: "lf-choice__metrics"
|
|
4879
|
+
};
|
|
4880
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4881
|
+
__name: "LfChoiceCard",
|
|
4882
|
+
props: /* @__PURE__ */ mergeModels({
|
|
4883
|
+
value: {},
|
|
4884
|
+
title: {},
|
|
4885
|
+
description: {},
|
|
4886
|
+
icon: {},
|
|
4887
|
+
metrics: {},
|
|
4888
|
+
recommended: { type: Boolean },
|
|
4889
|
+
recommendedText: { default: "추천" },
|
|
4890
|
+
disabled: { type: Boolean }
|
|
4891
|
+
}, {
|
|
4892
|
+
"modelValue": {},
|
|
4893
|
+
"modelModifiers": {}
|
|
4894
|
+
}),
|
|
4895
|
+
emits: ["update:modelValue"],
|
|
4896
|
+
setup(__props) {
|
|
4897
|
+
const props = __props;
|
|
4898
|
+
const model = useModel(__props, "modelValue");
|
|
4899
|
+
const selected = computed(() => model.value === props.value);
|
|
4900
|
+
return (_ctx, _cache) => {
|
|
4901
|
+
var _a;
|
|
4902
|
+
return openBlock(), createElementBlock("button", {
|
|
4903
|
+
type: "button",
|
|
4904
|
+
role: "radio",
|
|
4905
|
+
class: normalizeClass(["lf-choice", { "lf-choice--on": selected.value, "lf-choice--disabled": __props.disabled }]),
|
|
4906
|
+
"aria-checked": selected.value,
|
|
4907
|
+
disabled: __props.disabled,
|
|
4908
|
+
onClick: _cache[0] || (_cache[0] = ($event) => model.value = __props.value)
|
|
4909
|
+
}, [
|
|
4910
|
+
createElementVNode("span", _hoisted_2$3, [
|
|
4911
|
+
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
4912
|
+
class: "lf-choice__radio",
|
|
4913
|
+
"aria-hidden": "true"
|
|
4914
|
+
}, null, -1)),
|
|
4915
|
+
__props.icon ? (openBlock(), createBlock(LfIcon, {
|
|
4916
|
+
key: 0,
|
|
4917
|
+
name: __props.icon,
|
|
4918
|
+
size: "1.125rem",
|
|
4919
|
+
class: "lf-choice__icon"
|
|
4920
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
4921
|
+
createElementVNode("span", _hoisted_3$3, toDisplayString(__props.title), 1),
|
|
4922
|
+
__props.recommended ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(__props.recommendedText), 1)) : createCommentVNode("", true),
|
|
4923
|
+
_ctx.$slots.badge ? (openBlock(), createElementBlock("span", _hoisted_5$3, [
|
|
4924
|
+
renderSlot(_ctx.$slots, "badge", {}, void 0, true)
|
|
4925
|
+
])) : createCommentVNode("", true)
|
|
4926
|
+
]),
|
|
4927
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
|
|
4928
|
+
((_a = __props.metrics) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("dl", _hoisted_7$1, [
|
|
4929
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.metrics, (m) => {
|
|
4930
|
+
return openBlock(), createElementBlock("div", {
|
|
4931
|
+
key: m.label,
|
|
4932
|
+
class: normalizeClass(["lf-choice__metric", m.tone ? `lf-choice__metric--${m.tone}` : null])
|
|
4933
|
+
}, [
|
|
4934
|
+
createElementVNode("dt", null, toDisplayString(m.label), 1),
|
|
4935
|
+
createElementVNode("dd", null, toDisplayString(m.value), 1)
|
|
4936
|
+
], 2);
|
|
4937
|
+
}), 128))
|
|
4938
|
+
])) : createCommentVNode("", true),
|
|
4939
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4940
|
+
], 10, _hoisted_1$3);
|
|
4941
|
+
};
|
|
4942
|
+
}
|
|
4943
|
+
});
|
|
4944
|
+
const LfChoiceCard = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-7a74d929"]]);
|
|
4945
|
+
const _hoisted_1$2 = { class: "lf-tile__head" };
|
|
4946
|
+
const _hoisted_2$2 = ["title"];
|
|
4947
|
+
const _hoisted_3$2 = {
|
|
4948
|
+
key: 0,
|
|
4949
|
+
class: "lf-tile__sub"
|
|
4950
|
+
};
|
|
4951
|
+
const _hoisted_4$2 = {
|
|
4952
|
+
key: 1,
|
|
4953
|
+
class: "lf-tile__lines"
|
|
4954
|
+
};
|
|
4955
|
+
const _hoisted_5$2 = {
|
|
4956
|
+
key: 0,
|
|
4957
|
+
class: "lf-tile__k"
|
|
4958
|
+
};
|
|
4959
|
+
const _hoisted_6$1 = { class: "lf-tile__v" };
|
|
4960
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4961
|
+
__name: "LfStatusTile",
|
|
4962
|
+
props: {
|
|
4963
|
+
title: {},
|
|
4964
|
+
subtitle: {},
|
|
4965
|
+
status: {},
|
|
4966
|
+
tone: { default: "neutral" },
|
|
4967
|
+
lines: {},
|
|
4968
|
+
clickable: { type: Boolean },
|
|
4969
|
+
active: { type: Boolean },
|
|
4970
|
+
dense: { type: Boolean }
|
|
4971
|
+
},
|
|
4972
|
+
emits: ["select"],
|
|
4973
|
+
setup(__props, { emit: __emit }) {
|
|
4974
|
+
const props = __props;
|
|
4975
|
+
const emit = __emit;
|
|
4976
|
+
const badgeTone = computed(() => props.tone);
|
|
4977
|
+
return (_ctx, _cache) => {
|
|
4978
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.clickable ? "button" : "div"), {
|
|
4979
|
+
type: __props.clickable ? "button" : void 0,
|
|
4980
|
+
class: normalizeClass(["lf-tile", [`lf-tile--${__props.tone}`, { "lf-tile--clickable": __props.clickable, "lf-tile--on": __props.active, "lf-tile--dense": __props.dense }]]),
|
|
4981
|
+
"aria-pressed": __props.clickable ? __props.active : void 0,
|
|
4982
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.clickable && emit("select"))
|
|
4983
|
+
}, {
|
|
4984
|
+
default: withCtx(() => {
|
|
4985
|
+
var _a;
|
|
4986
|
+
return [
|
|
4987
|
+
createElementVNode("span", _hoisted_1$2, [
|
|
4988
|
+
createElementVNode("span", {
|
|
4989
|
+
class: "lf-tile__title",
|
|
4990
|
+
title: __props.title
|
|
4991
|
+
}, toDisplayString(__props.title), 9, _hoisted_2$2),
|
|
4992
|
+
__props.status ? (openBlock(), createBlock(LfBadge, {
|
|
4993
|
+
key: 0,
|
|
4994
|
+
tone: badgeTone.value,
|
|
4995
|
+
size: "sm",
|
|
4996
|
+
label: __props.status
|
|
4997
|
+
}, null, 8, ["tone", "label"])) : createCommentVNode("", true)
|
|
4998
|
+
]),
|
|
4999
|
+
__props.subtitle ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true),
|
|
5000
|
+
((_a = __props.lines) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("span", _hoisted_4$2, [
|
|
5001
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (l2, i2) => {
|
|
5002
|
+
return openBlock(), createElementBlock("span", {
|
|
5003
|
+
key: i2,
|
|
5004
|
+
class: "lf-tile__line"
|
|
5005
|
+
}, [
|
|
5006
|
+
l2.label ? (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString(l2.label), 1)) : createCommentVNode("", true),
|
|
5007
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(l2.value), 1)
|
|
5008
|
+
]);
|
|
5009
|
+
}), 128))
|
|
5010
|
+
])) : createCommentVNode("", true),
|
|
5011
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
5012
|
+
];
|
|
5013
|
+
}),
|
|
5014
|
+
_: 3
|
|
5015
|
+
}, 8, ["type", "class", "aria-pressed"]);
|
|
5016
|
+
};
|
|
5017
|
+
}
|
|
5018
|
+
});
|
|
5019
|
+
const LfStatusTile = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a991780a"]]);
|
|
5020
|
+
const _hoisted_1$1 = {
|
|
5021
|
+
key: 0,
|
|
5022
|
+
class: "lf-code__bar"
|
|
5023
|
+
};
|
|
5024
|
+
const _hoisted_2$1 = { class: "lf-code__title" };
|
|
5025
|
+
const _hoisted_3$1 = { key: 0 };
|
|
5026
|
+
const _hoisted_4$1 = { key: 1 };
|
|
5027
|
+
const _hoisted_5$1 = {
|
|
5028
|
+
class: "lf-code__no",
|
|
5029
|
+
"aria-hidden": "true"
|
|
5030
|
+
};
|
|
5031
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
5032
|
+
__name: "LfCodeBlock",
|
|
5033
|
+
props: {
|
|
5034
|
+
code: {},
|
|
5035
|
+
title: {},
|
|
5036
|
+
maxHeight: { default: "24rem" },
|
|
5037
|
+
wrap: { type: Boolean },
|
|
5038
|
+
lineNumbers: { type: Boolean },
|
|
5039
|
+
copyable: { type: Boolean, default: true },
|
|
5040
|
+
copyText: { default: "복사" },
|
|
5041
|
+
copiedText: { default: "복사됨" }
|
|
5042
|
+
},
|
|
5043
|
+
setup(__props) {
|
|
5044
|
+
const props = __props;
|
|
5045
|
+
const lines = computed(() => props.code.split("\n"));
|
|
5046
|
+
const canCopy = typeof navigator !== "undefined" && !!navigator.clipboard;
|
|
5047
|
+
const copied = ref(false);
|
|
5048
|
+
async function copy() {
|
|
5049
|
+
try {
|
|
5050
|
+
await navigator.clipboard.writeText(props.code);
|
|
5051
|
+
copied.value = true;
|
|
5052
|
+
setTimeout(() => copied.value = false, 1500);
|
|
5053
|
+
} catch {
|
|
5054
|
+
copied.value = false;
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
return (_ctx, _cache) => {
|
|
5058
|
+
return openBlock(), createElementBlock("figure", {
|
|
5059
|
+
class: normalizeClass(["lf-code", { "lf-code--wrap": __props.wrap }])
|
|
5060
|
+
}, [
|
|
5061
|
+
__props.title || __props.copyable ? (openBlock(), createElementBlock("figcaption", _hoisted_1$1, [
|
|
5062
|
+
createElementVNode("span", _hoisted_2$1, toDisplayString(__props.title), 1),
|
|
5063
|
+
__props.copyable && unref(canCopy) ? (openBlock(), createElementBlock("button", {
|
|
5064
|
+
key: 0,
|
|
5065
|
+
type: "button",
|
|
5066
|
+
class: "lf-code__copy",
|
|
5067
|
+
onClick: copy
|
|
5068
|
+
}, [
|
|
5069
|
+
createVNode(LfIcon, {
|
|
5070
|
+
name: copied.value ? "check" : "content_copy",
|
|
5071
|
+
size: "0.875rem"
|
|
5072
|
+
}, null, 8, ["name"]),
|
|
5073
|
+
createElementVNode("span", null, toDisplayString(copied.value ? __props.copiedText : __props.copyText), 1)
|
|
5074
|
+
])) : createCommentVNode("", true)
|
|
5075
|
+
])) : createCommentVNode("", true),
|
|
5076
|
+
createElementVNode("pre", {
|
|
5077
|
+
class: "lf-code__pre",
|
|
5078
|
+
style: normalizeStyle({ maxHeight: __props.maxHeight }),
|
|
5079
|
+
tabindex: "0"
|
|
5080
|
+
}, [
|
|
5081
|
+
!__props.lineNumbers ? (openBlock(), createElementBlock("code", _hoisted_3$1, toDisplayString(__props.code), 1)) : (openBlock(), createElementBlock("code", _hoisted_4$1, [
|
|
5082
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, i2) => {
|
|
5083
|
+
return openBlock(), createElementBlock("span", {
|
|
5084
|
+
key: i2,
|
|
5085
|
+
class: "lf-code__line"
|
|
5086
|
+
}, [
|
|
5087
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(i2 + 1), 1),
|
|
5088
|
+
createTextVNode(toDisplayString(line) + "\n", 1)
|
|
5089
|
+
]);
|
|
5090
|
+
}), 128))
|
|
5091
|
+
]))
|
|
5092
|
+
], 4)
|
|
5093
|
+
], 2);
|
|
5094
|
+
};
|
|
5095
|
+
}
|
|
5096
|
+
});
|
|
5097
|
+
const LfCodeBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-edbc475d"]]);
|
|
5098
|
+
const _hoisted_1 = { class: "lf-gridedit__table" };
|
|
5099
|
+
const _hoisted_2 = {
|
|
5100
|
+
class: "lf-gridedit__corner",
|
|
5101
|
+
scope: "col"
|
|
5102
|
+
};
|
|
5103
|
+
const _hoisted_3 = { key: 0 };
|
|
5104
|
+
const _hoisted_4 = {
|
|
5105
|
+
key: 0,
|
|
5106
|
+
scope: "col",
|
|
5107
|
+
class: "lf-gridedit__col lf-gridedit__col--total"
|
|
5108
|
+
};
|
|
5109
|
+
const _hoisted_5 = {
|
|
5110
|
+
scope: "row",
|
|
5111
|
+
class: "lf-gridedit__row"
|
|
5112
|
+
};
|
|
5113
|
+
const _hoisted_6 = { key: 0 };
|
|
5114
|
+
const _hoisted_7 = ["value", "aria-label", "data-ri", "data-ci", "onChange", "onKeydown"];
|
|
5115
|
+
const _hoisted_8 = {
|
|
5116
|
+
key: 1,
|
|
5117
|
+
class: "lf-gridedit__value"
|
|
5118
|
+
};
|
|
5119
|
+
const _hoisted_9 = {
|
|
5120
|
+
key: 2,
|
|
5121
|
+
class: "lf-gridedit__hint"
|
|
5122
|
+
};
|
|
5123
|
+
const _hoisted_10 = {
|
|
5124
|
+
key: 0,
|
|
5125
|
+
class: "lf-gridedit__cell lf-gridedit__cell--total"
|
|
5126
|
+
};
|
|
5127
|
+
const _hoisted_11 = { class: "lf-gridedit__value" };
|
|
5128
|
+
const _hoisted_12 = { key: 0 };
|
|
5129
|
+
const _hoisted_13 = {
|
|
5130
|
+
scope: "row",
|
|
5131
|
+
class: "lf-gridedit__row"
|
|
5132
|
+
};
|
|
5133
|
+
const _hoisted_14 = { class: "lf-gridedit__value" };
|
|
5134
|
+
const _hoisted_15 = {
|
|
5135
|
+
key: 0,
|
|
5136
|
+
class: "lf-gridedit__cell lf-gridedit__cell--total"
|
|
5137
|
+
};
|
|
5138
|
+
const _hoisted_16 = { class: "lf-gridedit__value" };
|
|
5139
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5140
|
+
__name: "LfGridEditor",
|
|
5141
|
+
props: /* @__PURE__ */ mergeModels({
|
|
5142
|
+
rows: {},
|
|
5143
|
+
columns: {},
|
|
5144
|
+
baseline: {},
|
|
5145
|
+
hints: {},
|
|
5146
|
+
readonly: { type: Boolean },
|
|
5147
|
+
allowNegative: { type: Boolean },
|
|
5148
|
+
decimals: { default: 0 },
|
|
5149
|
+
totals: { type: Boolean },
|
|
5150
|
+
rowTotals: { type: Boolean },
|
|
5151
|
+
cornerLabel: { default: "" },
|
|
5152
|
+
totalLabel: { default: "합계" },
|
|
5153
|
+
maxHeight: { default: "32rem" }
|
|
5154
|
+
}, {
|
|
5155
|
+
"modelValue": { default: () => ({}) },
|
|
5156
|
+
"modelModifiers": {}
|
|
5157
|
+
}),
|
|
5158
|
+
emits: /* @__PURE__ */ mergeModels(["cellChange"], ["update:modelValue"]),
|
|
5159
|
+
setup(__props, { emit: __emit }) {
|
|
5160
|
+
const props = __props;
|
|
5161
|
+
const model = useModel(__props, "modelValue");
|
|
5162
|
+
const emit = __emit;
|
|
5163
|
+
function get(r, c2) {
|
|
5164
|
+
var _a;
|
|
5165
|
+
return ((_a = model.value[r]) == null ? void 0 : _a[c2]) ?? null;
|
|
5166
|
+
}
|
|
5167
|
+
function hint(r, c2) {
|
|
5168
|
+
var _a, _b;
|
|
5169
|
+
const v = (_b = (_a = props.hints) == null ? void 0 : _a[r]) == null ? void 0 : _b[c2];
|
|
5170
|
+
return v === null || v === void 0 ? void 0 : typeof v === "number" ? fmt(v) : v;
|
|
5171
|
+
}
|
|
5172
|
+
function ro(r, c2) {
|
|
5173
|
+
return props.readonly || r.readonly || c2.readonly;
|
|
5174
|
+
}
|
|
5175
|
+
function isChanged(r, c2) {
|
|
5176
|
+
var _a;
|
|
5177
|
+
if (!props.baseline) return false;
|
|
5178
|
+
return (((_a = props.baseline[r]) == null ? void 0 : _a[c2]) ?? null) !== (get(r, c2) ?? null);
|
|
5179
|
+
}
|
|
5180
|
+
function fmt(v) {
|
|
5181
|
+
if (v === null || v === void 0) return "";
|
|
5182
|
+
return v.toLocaleString(void 0, { minimumFractionDigits: props.decimals, maximumFractionDigits: props.decimals });
|
|
5183
|
+
}
|
|
5184
|
+
function fmtInput(v) {
|
|
5185
|
+
return v === null || v === void 0 ? "" : String(v);
|
|
5186
|
+
}
|
|
5187
|
+
function set(r, c2, raw, e3) {
|
|
5188
|
+
const input = e3.target;
|
|
5189
|
+
const t = raw.replace(/,/g, "").trim();
|
|
5190
|
+
let n = t === "" ? 0 : Number(t);
|
|
5191
|
+
if (!Number.isFinite(n) || !props.allowNegative && n < 0) {
|
|
5192
|
+
input.value = fmtInput(get(r, c2));
|
|
5193
|
+
return;
|
|
5194
|
+
}
|
|
5195
|
+
const f3 = 10 ** props.decimals;
|
|
5196
|
+
n = Math.round(n * f3) / f3;
|
|
5197
|
+
model.value = { ...model.value, [r]: { ...model.value[r] ?? {}, [c2]: n } };
|
|
5198
|
+
emit("cellChange", r, c2, n);
|
|
5199
|
+
}
|
|
5200
|
+
function focusCell(root, ri, ci) {
|
|
5201
|
+
var _a;
|
|
5202
|
+
(_a = root == null ? void 0 : root.querySelector(`input[data-ri="${ri}"][data-ci="${ci}"]`)) == null ? void 0 : _a.focus();
|
|
5203
|
+
}
|
|
5204
|
+
function onKey(e3, ri, ci) {
|
|
5205
|
+
const root = e3.currentTarget.closest("table");
|
|
5206
|
+
const input = e3.currentTarget;
|
|
5207
|
+
const atEnd = input.selectionStart === input.value.length;
|
|
5208
|
+
const atStart = input.selectionEnd === 0;
|
|
5209
|
+
let to = null;
|
|
5210
|
+
if (e3.key === "Enter" || e3.key === "ArrowDown") to = [ri + 1, ci];
|
|
5211
|
+
else if (e3.key === "ArrowUp") to = [ri - 1, ci];
|
|
5212
|
+
else if (e3.key === "ArrowRight" && atEnd) to = [ri, ci + 1];
|
|
5213
|
+
else if (e3.key === "ArrowLeft" && atStart) to = [ri, ci - 1];
|
|
5214
|
+
if (!to) return;
|
|
5215
|
+
e3.preventDefault();
|
|
5216
|
+
input.dispatchEvent(new Event("change"));
|
|
5217
|
+
focusCell(root, to[0], to[1]);
|
|
5218
|
+
}
|
|
5219
|
+
function rowSum(r) {
|
|
5220
|
+
return props.columns.reduce((a, c2) => a + (get(r, c2.key) ?? 0), 0);
|
|
5221
|
+
}
|
|
5222
|
+
function colSum(c2) {
|
|
5223
|
+
return props.rows.reduce((a, r) => a + (get(r.key, c2) ?? 0), 0);
|
|
5224
|
+
}
|
|
5225
|
+
const grand = computed(() => props.rows.reduce((a, r) => a + rowSum(r.key), 0));
|
|
5226
|
+
return (_ctx, _cache) => {
|
|
5227
|
+
return openBlock(), createElementBlock("div", {
|
|
5228
|
+
class: "lf-gridedit",
|
|
5229
|
+
style: normalizeStyle({ maxHeight: __props.maxHeight })
|
|
5230
|
+
}, [
|
|
5231
|
+
createElementVNode("table", _hoisted_1, [
|
|
5232
|
+
createElementVNode("thead", null, [
|
|
5233
|
+
createElementVNode("tr", null, [
|
|
5234
|
+
createElementVNode("th", _hoisted_2, toDisplayString(__props.cornerLabel), 1),
|
|
5235
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (c2) => {
|
|
5236
|
+
return openBlock(), createElementBlock("th", {
|
|
5237
|
+
key: c2.key,
|
|
5238
|
+
scope: "col",
|
|
5239
|
+
class: normalizeClass(["lf-gridedit__col", { "lf-gridedit__col--ro": c2.readonly }])
|
|
5240
|
+
}, [
|
|
5241
|
+
createElementVNode("span", null, toDisplayString(c2.label), 1),
|
|
5242
|
+
c2.sub ? (openBlock(), createElementBlock("small", _hoisted_3, toDisplayString(c2.sub), 1)) : createCommentVNode("", true)
|
|
5243
|
+
], 2);
|
|
5244
|
+
}), 128)),
|
|
5245
|
+
__props.rowTotals ? (openBlock(), createElementBlock("th", _hoisted_4, toDisplayString(__props.totalLabel), 1)) : createCommentVNode("", true)
|
|
5246
|
+
])
|
|
5247
|
+
]),
|
|
5248
|
+
createElementVNode("tbody", null, [
|
|
5249
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (r, ri) => {
|
|
5250
|
+
return openBlock(), createElementBlock("tr", {
|
|
5251
|
+
key: r.key
|
|
5252
|
+
}, [
|
|
5253
|
+
createElementVNode("th", _hoisted_5, [
|
|
5254
|
+
createElementVNode("span", null, toDisplayString(r.label), 1),
|
|
5255
|
+
r.sub ? (openBlock(), createElementBlock("small", _hoisted_6, toDisplayString(r.sub), 1)) : createCommentVNode("", true)
|
|
5256
|
+
]),
|
|
5257
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (c2, ci) => {
|
|
5258
|
+
return openBlock(), createElementBlock("td", {
|
|
5259
|
+
key: c2.key,
|
|
5260
|
+
class: normalizeClass(["lf-gridedit__cell", {
|
|
5261
|
+
"lf-gridedit__cell--changed": isChanged(r.key, c2.key),
|
|
5262
|
+
"lf-gridedit__cell--neg": (get(r.key, c2.key) ?? 0) < 0,
|
|
5263
|
+
"lf-gridedit__cell--ro": ro(r, c2)
|
|
5264
|
+
}])
|
|
5265
|
+
}, [
|
|
5266
|
+
!ro(r, c2) ? (openBlock(), createElementBlock("input", {
|
|
5267
|
+
key: 0,
|
|
5268
|
+
class: "lf-gridedit__input",
|
|
5269
|
+
inputmode: "decimal",
|
|
5270
|
+
value: fmtInput(get(r.key, c2.key)),
|
|
5271
|
+
"aria-label": `${r.label} ${c2.label}`,
|
|
5272
|
+
"data-ri": ri,
|
|
5273
|
+
"data-ci": ci,
|
|
5274
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => $event.target.select()),
|
|
5275
|
+
onChange: ($event) => set(r.key, c2.key, $event.target.value, $event),
|
|
5276
|
+
onKeydown: ($event) => onKey($event, ri, ci)
|
|
5277
|
+
}, null, 40, _hoisted_7)) : (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(fmt(get(r.key, c2.key))), 1)),
|
|
5278
|
+
hint(r.key, c2.key) !== void 0 || _ctx.$slots.hint ? (openBlock(), createElementBlock("small", _hoisted_9, [
|
|
5279
|
+
renderSlot(_ctx.$slots, "hint", {
|
|
5280
|
+
row: r,
|
|
5281
|
+
column: c2
|
|
5282
|
+
}, () => [
|
|
5283
|
+
createTextVNode(toDisplayString(hint(r.key, c2.key)), 1)
|
|
5284
|
+
], true)
|
|
5285
|
+
])) : createCommentVNode("", true)
|
|
5286
|
+
], 2);
|
|
5287
|
+
}), 128)),
|
|
5288
|
+
__props.rowTotals ? (openBlock(), createElementBlock("td", _hoisted_10, [
|
|
5289
|
+
createElementVNode("span", _hoisted_11, toDisplayString(fmt(rowSum(r.key))), 1)
|
|
5290
|
+
])) : createCommentVNode("", true)
|
|
5291
|
+
]);
|
|
5292
|
+
}), 128))
|
|
5293
|
+
]),
|
|
5294
|
+
__props.totals ? (openBlock(), createElementBlock("tfoot", _hoisted_12, [
|
|
5295
|
+
createElementVNode("tr", null, [
|
|
5296
|
+
createElementVNode("th", _hoisted_13, toDisplayString(__props.totalLabel), 1),
|
|
5297
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (c2) => {
|
|
5298
|
+
return openBlock(), createElementBlock("td", {
|
|
5299
|
+
key: c2.key,
|
|
5300
|
+
class: "lf-gridedit__cell lf-gridedit__cell--total"
|
|
5301
|
+
}, [
|
|
5302
|
+
createElementVNode("span", _hoisted_14, toDisplayString(fmt(colSum(c2.key))), 1)
|
|
5303
|
+
]);
|
|
5304
|
+
}), 128)),
|
|
5305
|
+
__props.rowTotals ? (openBlock(), createElementBlock("td", _hoisted_15, [
|
|
5306
|
+
createElementVNode("span", _hoisted_16, toDisplayString(fmt(grand.value)), 1)
|
|
5307
|
+
])) : createCommentVNode("", true)
|
|
5308
|
+
])
|
|
5309
|
+
])) : createCommentVNode("", true)
|
|
5310
|
+
])
|
|
5311
|
+
], 4);
|
|
5312
|
+
};
|
|
5313
|
+
}
|
|
5314
|
+
});
|
|
5315
|
+
const LfGridEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ab94cb9"]]);
|
|
5316
|
+
class ApiError extends Error {
|
|
5317
|
+
constructor(status, message, detail) {
|
|
5318
|
+
super(message);
|
|
5319
|
+
this.status = status;
|
|
5320
|
+
this.detail = detail;
|
|
5321
|
+
this.name = "ApiError";
|
|
5322
|
+
}
|
|
5323
|
+
}
|
|
5324
|
+
const DEFAULT_REFRESH_PATH = "/api/v1/auth/refresh";
|
|
5325
|
+
function createApiClient(options) {
|
|
5326
|
+
const {
|
|
5327
|
+
baseUrl,
|
|
5328
|
+
refreshPath = DEFAULT_REFRESH_PATH,
|
|
5329
|
+
refreshUrl = `${baseUrl}${refreshPath}`,
|
|
5330
|
+
isAuthPath = (url) => url.includes("/api/v1/auth/"),
|
|
5331
|
+
onUnauthorized,
|
|
5332
|
+
onActivity
|
|
5333
|
+
} = options;
|
|
5334
|
+
let baseFetch = globalThis.fetch.bind(globalThis);
|
|
5335
|
+
let refreshing = null;
|
|
5336
|
+
let notified = false;
|
|
5337
|
+
function tryRefresh() {
|
|
5338
|
+
refreshing ?? (refreshing = baseFetch(refreshUrl, {
|
|
5339
|
+
method: "POST",
|
|
5340
|
+
credentials: "include"
|
|
5341
|
+
}).then((r) => r.ok).catch(() => false).finally(() => {
|
|
5342
|
+
refreshing = null;
|
|
5343
|
+
}));
|
|
5344
|
+
return refreshing;
|
|
5345
|
+
}
|
|
5346
|
+
function withCookies(init) {
|
|
5347
|
+
const out = { ...init ?? {} };
|
|
5348
|
+
out.credentials = "include";
|
|
5349
|
+
if (out.headers) {
|
|
5350
|
+
const h2 = new Headers(out.headers);
|
|
5351
|
+
h2.delete("authorization");
|
|
5352
|
+
out.headers = h2;
|
|
5353
|
+
}
|
|
5354
|
+
return out;
|
|
5355
|
+
}
|
|
5356
|
+
async function send(input, init, allowRetry) {
|
|
5357
|
+
onActivity == null ? void 0 : onActivity(1);
|
|
5358
|
+
try {
|
|
5359
|
+
let res = await baseFetch(input, withCookies(init));
|
|
5360
|
+
if (res.status !== 401 || !allowRetry) {
|
|
5361
|
+
if (res.ok) notified = false;
|
|
5362
|
+
return res;
|
|
5363
|
+
}
|
|
5364
|
+
const refreshed = await tryRefresh();
|
|
5365
|
+
if (!refreshed) {
|
|
5366
|
+
if (!notified) {
|
|
5367
|
+
notified = true;
|
|
5368
|
+
onUnauthorized == null ? void 0 : onUnauthorized();
|
|
5369
|
+
}
|
|
5370
|
+
return res;
|
|
5371
|
+
}
|
|
5372
|
+
res = await baseFetch(input, withCookies(init));
|
|
5373
|
+
if (res.ok) notified = false;
|
|
5374
|
+
return res;
|
|
5375
|
+
} finally {
|
|
5376
|
+
onActivity == null ? void 0 : onActivity(-1);
|
|
5377
|
+
}
|
|
5378
|
+
}
|
|
5379
|
+
function urlOf(input) {
|
|
5380
|
+
if (typeof input === "string") return input;
|
|
5381
|
+
if (input instanceof URL) return input.href;
|
|
5382
|
+
return input.url;
|
|
5383
|
+
}
|
|
5384
|
+
async function request(path, opts = {}) {
|
|
5385
|
+
const { method = "GET", body, headers, signal, noRetry = false } = opts;
|
|
5386
|
+
const url = `${baseUrl}${path}`;
|
|
5387
|
+
const init = { method, signal, headers: { ...headers } };
|
|
5388
|
+
if (body !== void 0) {
|
|
5389
|
+
if (body instanceof FormData || body instanceof Blob || typeof body === "string") {
|
|
5390
|
+
init.body = body;
|
|
5391
|
+
} else {
|
|
5392
|
+
init.body = JSON.stringify(body);
|
|
5393
|
+
init.headers = { "Content-Type": "application/json", ...init.headers };
|
|
5394
|
+
}
|
|
5395
|
+
}
|
|
5396
|
+
return send(url, init, !noRetry && !isAuthPath(url));
|
|
5397
|
+
}
|
|
5398
|
+
async function api(path, opts = {}) {
|
|
5399
|
+
const res = await request(path, opts);
|
|
5400
|
+
if (res.status === 204) return void 0;
|
|
5401
|
+
const text = await res.text();
|
|
5402
|
+
let payload = void 0;
|
|
5403
|
+
if (text) {
|
|
5404
|
+
try {
|
|
5405
|
+
payload = JSON.parse(text);
|
|
5406
|
+
} catch {
|
|
5407
|
+
payload = text;
|
|
4366
5408
|
}
|
|
4367
5409
|
}
|
|
4368
5410
|
if (!res.ok) {
|
|
@@ -4391,6 +5433,201 @@ function createApiClient(options) {
|
|
|
4391
5433
|
}
|
|
4392
5434
|
return { api, request, install };
|
|
4393
5435
|
}
|
|
5436
|
+
let lastBtn = null;
|
|
5437
|
+
let lastAt = 0;
|
|
5438
|
+
let installed = false;
|
|
5439
|
+
function markDone(el) {
|
|
5440
|
+
if (!el || !el.isConnected) return;
|
|
5441
|
+
el.classList.remove("lf-done");
|
|
5442
|
+
void el.offsetWidth;
|
|
5443
|
+
el.classList.add("lf-done");
|
|
5444
|
+
window.setTimeout(() => el.classList.remove("lf-done"), 1200);
|
|
5445
|
+
}
|
|
5446
|
+
function installDoneFeedback(store) {
|
|
5447
|
+
if (installed || typeof document === "undefined") return;
|
|
5448
|
+
installed = true;
|
|
5449
|
+
document.addEventListener("click", (e3) => {
|
|
5450
|
+
var _a, _b;
|
|
5451
|
+
const b2 = (_b = (_a = e3.target) == null ? void 0 : _a.closest) == null ? void 0 : _b.call(_a, "button");
|
|
5452
|
+
if (b2) {
|
|
5453
|
+
lastBtn = b2;
|
|
5454
|
+
lastAt = Date.now();
|
|
5455
|
+
}
|
|
5456
|
+
}, true);
|
|
5457
|
+
store.$onAction(({ name }) => {
|
|
5458
|
+
if (name !== "success") return;
|
|
5459
|
+
if (lastBtn && Date.now() - lastAt < 3e3) markDone(lastBtn);
|
|
5460
|
+
lastBtn = null;
|
|
5461
|
+
});
|
|
5462
|
+
}
|
|
5463
|
+
function useThumb(el, sel, src) {
|
|
5464
|
+
const style = ref({ opacity: "0" });
|
|
5465
|
+
const ready = ref(false);
|
|
5466
|
+
function measure() {
|
|
5467
|
+
const box = el.value;
|
|
5468
|
+
const on = box == null ? void 0 : box.querySelector(sel);
|
|
5469
|
+
if (!box || !on) {
|
|
5470
|
+
style.value = { opacity: "0" };
|
|
5471
|
+
return;
|
|
5472
|
+
}
|
|
5473
|
+
style.value = {
|
|
5474
|
+
transform: `translate(${on.offsetLeft}px, ${on.offsetTop}px)`,
|
|
5475
|
+
width: `${on.offsetWidth}px`,
|
|
5476
|
+
height: `${on.offsetHeight}px`,
|
|
5477
|
+
opacity: "1"
|
|
5478
|
+
};
|
|
5479
|
+
}
|
|
5480
|
+
let ro = null;
|
|
5481
|
+
watch(src, () => {
|
|
5482
|
+
void nextTick(measure);
|
|
5483
|
+
});
|
|
5484
|
+
watch(el, (box) => {
|
|
5485
|
+
ro == null ? void 0 : ro.disconnect();
|
|
5486
|
+
ready.value = false;
|
|
5487
|
+
if (!box) return;
|
|
5488
|
+
ro = new ResizeObserver(() => measure());
|
|
5489
|
+
ro.observe(box);
|
|
5490
|
+
void nextTick(() => {
|
|
5491
|
+
measure();
|
|
5492
|
+
window.setTimeout(() => {
|
|
5493
|
+
ready.value = true;
|
|
5494
|
+
}, 60);
|
|
5495
|
+
});
|
|
5496
|
+
}, { immediate: true });
|
|
5497
|
+
onUnmounted(() => ro == null ? void 0 : ro.disconnect());
|
|
5498
|
+
return { style, ready };
|
|
5499
|
+
}
|
|
5500
|
+
const thumbs = /* @__PURE__ */ new WeakMap();
|
|
5501
|
+
function placeThumb(el, st) {
|
|
5502
|
+
const on = el.querySelector(st.opt.on);
|
|
5503
|
+
const s = st.thumb.style;
|
|
5504
|
+
if (!on || on.offsetWidth === 0) {
|
|
5505
|
+
s.opacity = "0";
|
|
5506
|
+
return;
|
|
5507
|
+
}
|
|
5508
|
+
const bar = st.opt.kind === "bar";
|
|
5509
|
+
const y = bar ? on.offsetTop + on.offsetHeight - 2 : on.offsetTop;
|
|
5510
|
+
s.transform = `translate(${on.offsetLeft}px, ${y}px)`;
|
|
5511
|
+
s.width = `${on.offsetWidth}px`;
|
|
5512
|
+
s.height = bar ? "2px" : `${on.offsetHeight}px`;
|
|
5513
|
+
s.opacity = "1";
|
|
5514
|
+
}
|
|
5515
|
+
const vThumb = {
|
|
5516
|
+
mounted(el, b2) {
|
|
5517
|
+
if (getComputedStyle(el).position === "static") el.style.position = "relative";
|
|
5518
|
+
const thumb = document.createElement("span");
|
|
5519
|
+
thumb.className = `lf-thumb lf-thumb--${b2.value.kind ?? "fill"}`;
|
|
5520
|
+
thumb.setAttribute("aria-hidden", "true");
|
|
5521
|
+
el.prepend(thumb);
|
|
5522
|
+
const watchKids = () => {
|
|
5523
|
+
for (const c2 of Array.from(el.children)) if (c2 !== thumb) st.ro.observe(c2);
|
|
5524
|
+
};
|
|
5525
|
+
const st = { thumb, opt: b2.value, mo: new MutationObserver(() => {
|
|
5526
|
+
watchKids();
|
|
5527
|
+
placeThumb(el, st);
|
|
5528
|
+
}), ro: new ResizeObserver(() => placeThumb(el, st)), t: 0 };
|
|
5529
|
+
st.mo.observe(el, { subtree: true, attributes: true, attributeFilter: ["class"], childList: true, characterData: true });
|
|
5530
|
+
st.ro.observe(el);
|
|
5531
|
+
watchKids();
|
|
5532
|
+
placeThumb(el, st);
|
|
5533
|
+
st.t = window.setTimeout(() => thumb.classList.add("lf-thumb--ready"), 60);
|
|
5534
|
+
thumbs.set(el, st);
|
|
5535
|
+
},
|
|
5536
|
+
updated(el, b2) {
|
|
5537
|
+
const st = thumbs.get(el);
|
|
5538
|
+
if (!st) return;
|
|
5539
|
+
st.opt = b2.value;
|
|
5540
|
+
placeThumb(el, st);
|
|
5541
|
+
},
|
|
5542
|
+
unmounted(el) {
|
|
5543
|
+
const st = thumbs.get(el);
|
|
5544
|
+
if (!st) return;
|
|
5545
|
+
st.mo.disconnect();
|
|
5546
|
+
st.ro.disconnect();
|
|
5547
|
+
window.clearTimeout(st.t);
|
|
5548
|
+
thumbs.delete(el);
|
|
5549
|
+
}
|
|
5550
|
+
};
|
|
5551
|
+
const SHOW_MS = 350;
|
|
5552
|
+
function installTooltips() {
|
|
5553
|
+
if (typeof document === "undefined" || window.__lfTip) return;
|
|
5554
|
+
window.__lfTip = true;
|
|
5555
|
+
const tip = document.createElement("div");
|
|
5556
|
+
tip.className = "lf-tip";
|
|
5557
|
+
tip.setAttribute("role", "tooltip");
|
|
5558
|
+
document.body.appendChild(tip);
|
|
5559
|
+
let cur = null;
|
|
5560
|
+
let timer = 0;
|
|
5561
|
+
const obs = new MutationObserver(() => {
|
|
5562
|
+
if (!cur) return;
|
|
5563
|
+
const t = cur.getAttribute("title");
|
|
5564
|
+
if (t == null) return;
|
|
5565
|
+
cur.setAttribute("data-lf-title", t);
|
|
5566
|
+
cur.removeAttribute("title");
|
|
5567
|
+
if (t) {
|
|
5568
|
+
tip.textContent = t;
|
|
5569
|
+
if (tip.classList.contains("lf-tip--on")) place();
|
|
5570
|
+
} else hide();
|
|
5571
|
+
});
|
|
5572
|
+
function place() {
|
|
5573
|
+
if (!cur) return;
|
|
5574
|
+
const r = cur.getBoundingClientRect();
|
|
5575
|
+
const b2 = tip.getBoundingClientRect();
|
|
5576
|
+
const gap = 6;
|
|
5577
|
+
let top = r.top - b2.height - gap;
|
|
5578
|
+
if (top < 4) top = r.bottom + gap;
|
|
5579
|
+
let left = r.left + r.width / 2 - b2.width / 2;
|
|
5580
|
+
left = Math.max(4, Math.min(window.innerWidth - b2.width - 4, left));
|
|
5581
|
+
tip.style.transform = `translate(${Math.round(left)}px, ${Math.round(top)}px)`;
|
|
5582
|
+
}
|
|
5583
|
+
function hide() {
|
|
5584
|
+
clearTimeout(timer);
|
|
5585
|
+
tip.classList.remove("lf-tip--on");
|
|
5586
|
+
}
|
|
5587
|
+
function release() {
|
|
5588
|
+
hide();
|
|
5589
|
+
obs.disconnect();
|
|
5590
|
+
if (cur && cur.hasAttribute("data-lf-title")) {
|
|
5591
|
+
if (!cur.hasAttribute("title")) cur.setAttribute("title", cur.getAttribute("data-lf-title") || "");
|
|
5592
|
+
cur.removeAttribute("data-lf-title");
|
|
5593
|
+
}
|
|
5594
|
+
cur = null;
|
|
5595
|
+
}
|
|
5596
|
+
document.addEventListener("pointerover", (e3) => {
|
|
5597
|
+
var _a, _b;
|
|
5598
|
+
if (e3.pointerType === "touch") return;
|
|
5599
|
+
const el = (_b = (_a = e3.target) == null ? void 0 : _a.closest) == null ? void 0 : _b.call(_a, "[title]");
|
|
5600
|
+
if (!el || el === cur) return;
|
|
5601
|
+
const text = el.getAttribute("title") || "";
|
|
5602
|
+
release();
|
|
5603
|
+
if (!text.trim()) return;
|
|
5604
|
+
if (el.tagName === "IFRAME") return;
|
|
5605
|
+
cur = el;
|
|
5606
|
+
el.setAttribute("data-lf-title", text);
|
|
5607
|
+
el.removeAttribute("title");
|
|
5608
|
+
obs.observe(el, { attributes: true, attributeFilter: ["title"] });
|
|
5609
|
+
tip.textContent = text;
|
|
5610
|
+
timer = window.setTimeout(() => {
|
|
5611
|
+
if (cur !== el) return;
|
|
5612
|
+
tip.classList.add("lf-tip--on");
|
|
5613
|
+
place();
|
|
5614
|
+
}, SHOW_MS);
|
|
5615
|
+
}, true);
|
|
5616
|
+
document.addEventListener("pointerout", (e3) => {
|
|
5617
|
+
if (!cur) return;
|
|
5618
|
+
const to = e3.relatedTarget;
|
|
5619
|
+
if (to && cur.contains(to)) return;
|
|
5620
|
+
release();
|
|
5621
|
+
}, true);
|
|
5622
|
+
for (const ev of ["pointerdown", "wheel", "keydown"]) document.addEventListener(ev, () => hide(), true);
|
|
5623
|
+
window.addEventListener("blur", () => release());
|
|
5624
|
+
}
|
|
5625
|
+
function installConventions(app, opts = {}) {
|
|
5626
|
+
app.directive("thumb", vThumb);
|
|
5627
|
+
if (typeof document === "undefined") return;
|
|
5628
|
+
if (opts.tooltips !== false) installTooltips();
|
|
5629
|
+
if (opts.doneFeedback !== false) installDoneFeedback(useToastStore());
|
|
5630
|
+
}
|
|
4394
5631
|
function useToast() {
|
|
4395
5632
|
const store = useToastStore();
|
|
4396
5633
|
return {
|
|
@@ -4421,13 +5658,18 @@ export {
|
|
|
4421
5658
|
LfBadge,
|
|
4422
5659
|
LfButton,
|
|
4423
5660
|
LfCard,
|
|
5661
|
+
LfCellGrid,
|
|
4424
5662
|
LfCheckbox,
|
|
5663
|
+
LfChoiceCard,
|
|
5664
|
+
LfCodeBlock,
|
|
5665
|
+
LfColorDot,
|
|
4425
5666
|
LfDateRange,
|
|
4426
5667
|
LfDescriptions,
|
|
4427
5668
|
LfDivider,
|
|
4428
5669
|
LfDrawer,
|
|
4429
5670
|
LfEmptyState,
|
|
4430
5671
|
LfField,
|
|
5672
|
+
LfGridEditor,
|
|
4431
5673
|
LfIcon,
|
|
4432
5674
|
LfIconButton,
|
|
4433
5675
|
LfKbd,
|
|
@@ -4441,12 +5683,17 @@ export {
|
|
|
4441
5683
|
LfPagination,
|
|
4442
5684
|
LfProgress,
|
|
4443
5685
|
LfRadioGroup,
|
|
5686
|
+
LfRankBars,
|
|
5687
|
+
LfScanInput,
|
|
5688
|
+
LfScoreRing,
|
|
4444
5689
|
e2 as LfSegmented,
|
|
4445
5690
|
f2 as LfSelect,
|
|
4446
5691
|
LfSkeleton,
|
|
4447
5692
|
LfSpinner,
|
|
4448
5693
|
LfSplitPane,
|
|
4449
5694
|
LfStatCard,
|
|
5695
|
+
LfStatusTile,
|
|
5696
|
+
LfStepper,
|
|
4450
5697
|
LfSteps,
|
|
4451
5698
|
LfSwitch,
|
|
4452
5699
|
LfTable,
|
|
@@ -4456,7 +5703,7 @@ export {
|
|
|
4456
5703
|
LfTextarea,
|
|
4457
5704
|
LfToolbar,
|
|
4458
5705
|
LfTooltip,
|
|
4459
|
-
_sfc_main$
|
|
5706
|
+
_sfc_main$p as LfTransitionList,
|
|
4460
5707
|
LfTree,
|
|
4461
5708
|
c as applySemanticPalette,
|
|
4462
5709
|
applyTheme,
|
|
@@ -4466,15 +5713,21 @@ export {
|
|
|
4466
5713
|
f as deriveSemanticPalette,
|
|
4467
5714
|
h as hexToRgb,
|
|
4468
5715
|
initTheme,
|
|
5716
|
+
installConventions,
|
|
5717
|
+
installDoneFeedback,
|
|
5718
|
+
installTooltips,
|
|
4469
5719
|
i as isLightBackground,
|
|
4470
5720
|
isServicePath,
|
|
4471
5721
|
l as luminance,
|
|
5722
|
+
markDone,
|
|
4472
5723
|
serviceIdForPath,
|
|
4473
5724
|
useConfirm,
|
|
4474
5725
|
useConfirmStore,
|
|
4475
5726
|
useLoadingStore,
|
|
4476
5727
|
useTheme,
|
|
5728
|
+
useThumb,
|
|
4477
5729
|
useToast,
|
|
4478
|
-
useToastStore
|
|
5730
|
+
useToastStore,
|
|
5731
|
+
vThumb
|
|
4479
5732
|
};
|
|
4480
5733
|
//# sourceMappingURL=index.js.map
|