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