@loafacto/ui 0.12.4 → 0.13.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/components/LfListSelect.vue.d.ts +54 -0
- package/dist/components/LfSegmented.vue.d.ts +26 -0
- package/dist/components/LfSelect.vue.d.ts +11 -6
- package/dist/components/LfTextField.vue.d.ts +10 -3
- package/dist/composables/useSplitAttrs.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +823 -360
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +227 -7
- package/dist/types.d.ts +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, useTemplateRef, onMounted, nextTick, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useModel, useId, mergeProps, vModelDynamic, mergeModels, vModelSelect, vModelCheckbox, vModelRadio, useSlots } from "vue";
|
|
1
|
+
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, useTemplateRef, onMounted, nextTick, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useAttrs, useModel, useId, mergeProps, isRef, vModelDynamic, mergeModels, vModelSelect, vModelCheckbox, vModelRadio, useSlots } from "vue";
|
|
2
2
|
import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-8AxcQbPB.js";
|
|
3
3
|
import { b, c, d, e, f, h, i, l } from "./applyTheme-8AxcQbPB.js";
|
|
4
4
|
import { defineStore } from "pinia";
|
|
@@ -156,26 +156,26 @@ const _export_sfc = (sfc, props) => {
|
|
|
156
156
|
}
|
|
157
157
|
return target;
|
|
158
158
|
};
|
|
159
|
-
const _sfc_main$
|
|
160
|
-
const _hoisted_1$
|
|
159
|
+
const _sfc_main$x = {};
|
|
160
|
+
const _hoisted_1$w = {
|
|
161
161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
162
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
163
163
|
"aria-hidden": "true"
|
|
164
164
|
};
|
|
165
165
|
function _sfc_render$1(_ctx, _cache) {
|
|
166
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
166
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$w, [..._cache[0] || (_cache[0] = [
|
|
167
167
|
createStaticVNode('<g transform="translate(-27.12,-91.37) scale(0.7136)"><circle cx="74" cy="27" r="15" fill="#8F6747"></circle><circle cx="104" cy="12" r="10" fill="#8F6747"></circle><path d="M43,48 L95,48 A5,5 0 0 1 100,53 L100,59 A5,5 0 0 1 95,64 L92,64 L92,124 L164,124 L164,148 A8,8 0 0 1 156,156 L54,156 A8,8 0 0 1 46,148 L46,64 L43,64 A5,5 0 0 1 38,59 L38,53 A5,5 0 0 1 43,48 Z" fill="currentColor"></path><path d="M92,94 A18,18 0 0 1 128,94 A18,18 0 0 1 164,94 L164,124 L92,124 Z" fill="#8F6747"></path></g><path transform="translate(122.11,0)" d="M6.80 0.00V-70.00H22.90V-14.80H52.70V0.00ZM82.95 1.20Q75.05 1.20 69.05 -2.15Q63.05 -5.50 59.60 -11.40Q56.15 -17.30 56.15 -25.00Q56.15 -32.70 59.50 -38.60Q62.85 -44.50 68.90 -47.85Q74.95 -51.20 82.65 -51.20Q90.55 -51.20 96.60 -47.85Q102.65 -44.50 106.00 -38.60Q109.35 -32.70 109.35 -25.00Q109.35 -17.30 106.00 -11.40Q102.65 -5.50 96.65 -2.15Q90.65 1.20 82.95 1.20ZM82.95 -13.20Q85.95 -13.20 88.30 -14.70Q90.65 -16.20 92.00 -18.85Q93.35 -21.50 93.35 -25.00Q93.35 -28.50 92.00 -31.15Q90.65 -33.80 88.25 -35.30Q85.85 -36.80 82.75 -36.80Q79.65 -36.80 77.25 -35.30Q74.85 -33.80 73.50 -31.15Q72.15 -28.50 72.15 -25.00Q72.15 -21.50 73.50 -18.85Q74.85 -16.20 77.30 -14.70Q79.75 -13.20 82.95 -13.20ZM133.40 1.20Q124.50 1.20 119.60 -2.80Q114.70 -6.80 114.70 -14.10Q114.70 -22.00 119.80 -25.90Q124.90 -29.80 134.10 -29.80H146.30Q145.80 -33.80 143.95 -36.05Q142.10 -38.30 138.00 -38.30Q135.20 -38.30 133.10 -37.00Q131.00 -35.70 129.50 -33.40L115.90 -37.90Q117.60 -41.60 120.55 -44.60Q123.50 -47.60 127.80 -49.40Q132.10 -51.20 137.80 -51.20Q145.60 -51.20 151.00 -48.30Q156.40 -45.40 159.10 -40.20Q161.80 -35.00 161.80 -27.90L161.60 0.00H147.00L146.80 -5.10Q144.80 -2.00 141.40 -0.40Q138.00 1.20 133.40 1.20ZM136.80 -10.60Q139.70 -10.60 141.90 -11.80Q144.10 -13.00 145.35 -15.05Q146.60 -17.10 146.60 -19.50V-19.80H140.00Q135.00 -19.80 132.80 -18.40Q130.60 -17.00 130.60 -14.50Q130.60 -12.70 132.25 -11.65Q133.90 -10.60 136.80 -10.60ZM176.65 0.00V-37.70H168.75V-50.00H176.65V-54.60Q176.65 -62.80 180.95 -67.50Q185.25 -72.20 194.15 -72.20Q197.45 -72.20 201.05 -71.05Q204.65 -69.90 207.25 -68.40L201.45 -57.40Q200.25 -58.20 199.05 -58.55Q197.85 -58.90 196.85 -58.90Q194.45 -58.90 193.35 -57.25Q192.25 -55.60 192.25 -51.80V-50.00H203.55V-37.70H192.25V0.00ZM227.90 1.20Q219.00 1.20 214.10 -2.80Q209.20 -6.80 209.20 -14.10Q209.20 -22.00 214.30 -25.90Q219.40 -29.80 228.60 -29.80H240.80Q240.30 -33.80 238.45 -36.05Q236.60 -38.30 232.50 -38.30Q229.70 -38.30 227.60 -37.00Q225.50 -35.70 224.00 -33.40L210.40 -37.90Q212.10 -41.60 215.05 -44.60Q218.00 -47.60 222.30 -49.40Q226.60 -51.20 232.30 -51.20Q240.10 -51.20 245.50 -48.30Q250.90 -45.40 253.60 -40.20Q256.30 -35.00 256.30 -27.90L256.10 0.00H241.50L241.30 -5.10Q239.30 -2.00 235.90 -0.40Q232.50 1.20 227.90 1.20ZM231.30 -10.60Q234.20 -10.60 236.40 -11.80Q238.60 -13.00 239.85 -15.05Q241.10 -17.10 241.10 -19.50V-19.80H234.50Q229.50 -19.80 227.30 -18.40Q225.10 -17.00 225.10 -14.50Q225.10 -12.70 226.75 -11.65Q228.40 -10.60 231.30 -10.60ZM291.05 1.20Q283.05 1.20 276.80 -2.15Q270.55 -5.50 267.05 -11.45Q263.55 -17.40 263.55 -25.00Q263.55 -32.70 267.05 -38.60Q270.55 -44.50 276.70 -47.85Q282.85 -51.20 290.85 -51.20Q298.55 -51.20 304.95 -47.30Q311.35 -43.40 314.15 -36.00L299.35 -31.00Q298.25 -33.40 295.70 -34.95Q293.15 -36.50 290.05 -36.50Q286.95 -36.50 284.60 -35.05Q282.25 -33.60 280.90 -31.00Q279.55 -28.40 279.55 -25.00Q279.55 -21.60 280.90 -19.05Q282.25 -16.50 284.70 -15.00Q287.15 -13.50 290.25 -13.50Q293.35 -13.50 295.85 -15.10Q298.35 -16.70 299.55 -19.30L314.35 -14.30Q311.45 -6.80 305.10 -2.80Q298.75 1.20 291.05 1.20ZM342.80 1.20Q333.90 1.20 329.55 -3.05Q325.20 -7.30 325.20 -15.20V-36.90H317.40V-50.00H325.20V-65.60H340.80V-50.00H352.20V-36.90H340.80V-19.10Q340.80 -16.10 341.90 -14.70Q343.00 -13.30 345.30 -13.30Q346.20 -13.30 347.40 -13.75Q348.60 -14.20 349.60 -14.90L355.00 -3.50Q352.60 -1.50 349.25 -0.15Q345.90 1.20 342.80 1.20ZM386.85 1.20Q378.95 1.20 372.95 -2.15Q366.95 -5.50 363.50 -11.40Q360.05 -17.30 360.05 -25.00Q360.05 -32.70 363.40 -38.60Q366.75 -44.50 372.80 -47.85Q378.85 -51.20 386.55 -51.20Q394.45 -51.20 400.50 -47.85Q406.55 -44.50 409.90 -38.60Q413.25 -32.70 413.25 -25.00Q413.25 -17.30 409.90 -11.40Q406.55 -5.50 400.55 -2.15Q394.55 1.20 386.85 1.20ZM386.85 -13.20Q389.85 -13.20 392.20 -14.70Q394.55 -16.20 395.90 -18.85Q397.25 -21.50 397.25 -25.00Q397.25 -28.50 395.90 -31.15Q394.55 -33.80 392.15 -35.30Q389.75 -36.80 386.65 -36.80Q383.55 -36.80 381.15 -35.30Q378.75 -33.80 377.40 -31.15Q376.05 -28.50 376.05 -25.00Q376.05 -21.50 377.40 -18.85Q378.75 -16.20 381.20 -14.70Q383.65 -13.20 386.85 -13.20Z" fill="currentColor"></path>', 2)
|
|
168
168
|
])]);
|
|
169
169
|
}
|
|
170
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
171
|
-
const _sfc_main$
|
|
172
|
-
const _hoisted_1$
|
|
170
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
|
|
171
|
+
const _sfc_main$w = {};
|
|
172
|
+
const _hoisted_1$v = {
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
viewBox: "30 -4 142 168",
|
|
175
175
|
"aria-hidden": "true"
|
|
176
176
|
};
|
|
177
177
|
function _sfc_render(_ctx, _cache) {
|
|
178
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
178
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$v, [..._cache[0] || (_cache[0] = [
|
|
179
179
|
createElementVNode("circle", {
|
|
180
180
|
cx: "74",
|
|
181
181
|
cy: "27",
|
|
@@ -198,29 +198,29 @@ function _sfc_render(_ctx, _cache) {
|
|
|
198
198
|
}, null, -1)
|
|
199
199
|
])]);
|
|
200
200
|
}
|
|
201
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
202
|
-
const _hoisted_1$
|
|
203
|
-
const _hoisted_2$
|
|
204
|
-
const _hoisted_3$
|
|
205
|
-
const _hoisted_4$
|
|
206
|
-
const _hoisted_5$
|
|
207
|
-
const _hoisted_6$
|
|
208
|
-
const _hoisted_7$
|
|
209
|
-
const _hoisted_8$
|
|
201
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render]]);
|
|
202
|
+
const _hoisted_1$u = { class: "lf-topbar" };
|
|
203
|
+
const _hoisted_2$q = { class: "lf-topbar__inner" };
|
|
204
|
+
const _hoisted_3$l = ["aria-label", "title", "aria-expanded"];
|
|
205
|
+
const _hoisted_4$j = ["href", "aria-label"];
|
|
206
|
+
const _hoisted_5$f = ["src"];
|
|
207
|
+
const _hoisted_6$b = { class: "lf-brand__name" };
|
|
208
|
+
const _hoisted_7$9 = ["aria-expanded"];
|
|
209
|
+
const _hoisted_8$4 = {
|
|
210
210
|
key: 0,
|
|
211
211
|
class: "lf-switcher__menu",
|
|
212
212
|
role: "menu"
|
|
213
213
|
};
|
|
214
|
-
const _hoisted_9$
|
|
215
|
-
const _hoisted_10$
|
|
214
|
+
const _hoisted_9$2 = ["href", "onClick"];
|
|
215
|
+
const _hoisted_10$2 = {
|
|
216
216
|
key: 0,
|
|
217
217
|
class: "lf-switcher__icon",
|
|
218
218
|
viewBox: "0 0 24 24",
|
|
219
219
|
"aria-hidden": "true"
|
|
220
220
|
};
|
|
221
|
-
const _hoisted_11 = ["d"];
|
|
222
|
-
const _hoisted_12 = { class: "lf-switcher__label" };
|
|
223
|
-
const _hoisted_13 = {
|
|
221
|
+
const _hoisted_11$1 = ["d"];
|
|
222
|
+
const _hoisted_12$1 = { class: "lf-switcher__label" };
|
|
223
|
+
const _hoisted_13$1 = {
|
|
224
224
|
key: 1,
|
|
225
225
|
class: "admin-badge admin-badge--gray"
|
|
226
226
|
};
|
|
@@ -268,7 +268,7 @@ const _hoisted_32 = { class: "site-footer-inner" };
|
|
|
268
268
|
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";
|
|
269
269
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
270
270
|
const RAIL_KEY = "lf-rail-hidden";
|
|
271
|
-
const _sfc_main$
|
|
271
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
272
272
|
__name: "AppShell",
|
|
273
273
|
props: {
|
|
274
274
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -385,8 +385,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
385
385
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
386
386
|
})
|
|
387
387
|
}, null, 4)) : createCommentVNode("", true),
|
|
388
|
-
createElementVNode("header", _hoisted_1$
|
|
389
|
-
createElementVNode("div", _hoisted_2$
|
|
388
|
+
createElementVNode("header", _hoisted_1$u, [
|
|
389
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
390
390
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
391
391
|
key: 0,
|
|
392
392
|
type: "button",
|
|
@@ -405,7 +405,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
405
405
|
fill: "currentColor"
|
|
406
406
|
})
|
|
407
407
|
], -1)
|
|
408
|
-
])], 8, _hoisted_3$
|
|
408
|
+
])], 8, _hoisted_3$l)) : createCommentVNode("", true),
|
|
409
409
|
createElementVNode("a", {
|
|
410
410
|
class: "lf-brand",
|
|
411
411
|
href: __props.brandHref,
|
|
@@ -417,13 +417,13 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
417
417
|
src: __props.logoUrl,
|
|
418
418
|
alt: "",
|
|
419
419
|
class: "lf-brand__logo"
|
|
420
|
-
}, null, 8, _hoisted_5$
|
|
421
|
-
createElementVNode("span", _hoisted_6$
|
|
420
|
+
}, null, 8, _hoisted_5$f),
|
|
421
|
+
createElementVNode("span", _hoisted_6$b, toDisplayString(__props.brandName), 1)
|
|
422
422
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
423
423
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
424
424
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
425
425
|
], 64))
|
|
426
|
-
], 8, _hoisted_4$
|
|
426
|
+
], 8, _hoisted_4$j),
|
|
427
427
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
428
428
|
key: 1,
|
|
429
429
|
ref_key: "switcherEl",
|
|
@@ -448,8 +448,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
448
448
|
fill: "currentColor"
|
|
449
449
|
})
|
|
450
450
|
], -1))
|
|
451
|
-
], 8, _hoisted_7$
|
|
452
|
-
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
451
|
+
], 8, _hoisted_7$9),
|
|
452
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
|
|
453
453
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
454
454
|
return openBlock(), createElementBlock("a", {
|
|
455
455
|
key: svc.id,
|
|
@@ -461,15 +461,15 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
461
461
|
role: "menuitem",
|
|
462
462
|
onClick: ($event) => onServiceClick($event, svc)
|
|
463
463
|
}, [
|
|
464
|
-
svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$
|
|
464
|
+
svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$2, [
|
|
465
465
|
createElementVNode("path", {
|
|
466
466
|
d: svc.iconPath,
|
|
467
467
|
fill: "currentColor"
|
|
468
|
-
}, null, 8, _hoisted_11)
|
|
468
|
+
}, null, 8, _hoisted_11$1)
|
|
469
469
|
])) : createCommentVNode("", true),
|
|
470
|
-
createElementVNode("span", _hoisted_12, toDisplayString(svc.name), 1),
|
|
471
|
-
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
472
|
-
], 10, _hoisted_9$
|
|
470
|
+
createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
|
|
471
|
+
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
472
|
+
], 10, _hoisted_9$2);
|
|
473
473
|
}), 128))
|
|
474
474
|
])) : createCommentVNode("", true)
|
|
475
475
|
], 512)) : createCommentVNode("", true),
|
|
@@ -591,7 +591,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
});
|
|
594
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
594
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-e12e3587"]]);
|
|
595
595
|
function generateId() {
|
|
596
596
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
597
597
|
}
|
|
@@ -625,26 +625,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
625
625
|
}
|
|
626
626
|
return { items, add, remove, success, error, info, warning };
|
|
627
627
|
});
|
|
628
|
-
const _hoisted_1$
|
|
628
|
+
const _hoisted_1$t = {
|
|
629
629
|
class: "toast-container",
|
|
630
630
|
role: "region",
|
|
631
631
|
"aria-label": "알림"
|
|
632
632
|
};
|
|
633
|
-
const _hoisted_2$
|
|
634
|
-
const _hoisted_3$
|
|
633
|
+
const _hoisted_2$p = ["onClick"];
|
|
634
|
+
const _hoisted_3$k = {
|
|
635
635
|
class: "toast-icon",
|
|
636
636
|
viewBox: "0 0 24 24",
|
|
637
637
|
"aria-hidden": "true"
|
|
638
638
|
};
|
|
639
|
-
const _hoisted_4$
|
|
640
|
-
const _hoisted_5$
|
|
641
|
-
const _hoisted_6$
|
|
642
|
-
const _hoisted_7$
|
|
639
|
+
const _hoisted_4$i = ["d"];
|
|
640
|
+
const _hoisted_5$e = { class: "toast-message" };
|
|
641
|
+
const _hoisted_6$a = ["onClick"];
|
|
642
|
+
const _hoisted_7$8 = {
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
644
|
"aria-hidden": "true"
|
|
645
645
|
};
|
|
646
|
-
const _hoisted_8$
|
|
647
|
-
const _sfc_main$
|
|
646
|
+
const _hoisted_8$3 = ["d"];
|
|
647
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
648
648
|
__name: "AppToast",
|
|
649
649
|
setup(__props) {
|
|
650
650
|
const toastStore = useToastStore();
|
|
@@ -676,7 +676,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
676
676
|
});
|
|
677
677
|
return (_ctx, _cache) => {
|
|
678
678
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
679
|
-
createElementVNode("div", _hoisted_1$
|
|
679
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
680
680
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
681
681
|
default: withCtx(() => [
|
|
682
682
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -686,27 +686,27 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
686
686
|
role: "alert",
|
|
687
687
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
688
688
|
}, [
|
|
689
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
689
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$k, [
|
|
690
690
|
createElementVNode("path", {
|
|
691
691
|
d: ICON_PATHS[item.type],
|
|
692
692
|
fill: "currentColor"
|
|
693
|
-
}, null, 8, _hoisted_4$
|
|
693
|
+
}, null, 8, _hoisted_4$i)
|
|
694
694
|
])),
|
|
695
|
-
createElementVNode("span", _hoisted_5$
|
|
695
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString(item.message), 1),
|
|
696
696
|
createElementVNode("button", {
|
|
697
697
|
type: "button",
|
|
698
698
|
class: "toast-close",
|
|
699
699
|
"aria-label": "닫기",
|
|
700
700
|
onClick: withModifiers(($event) => unref(toastStore).remove(item.id), ["stop"])
|
|
701
701
|
}, [
|
|
702
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$
|
|
702
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$8, [
|
|
703
703
|
createElementVNode("path", {
|
|
704
704
|
d: ICON_PATHS.close,
|
|
705
705
|
fill: "currentColor"
|
|
706
|
-
}, null, 8, _hoisted_8$
|
|
706
|
+
}, null, 8, _hoisted_8$3)
|
|
707
707
|
]))
|
|
708
|
-
], 8, _hoisted_6$
|
|
709
|
-
], 10, _hoisted_2$
|
|
708
|
+
], 8, _hoisted_6$a)
|
|
709
|
+
], 10, _hoisted_2$p);
|
|
710
710
|
}), 128))
|
|
711
711
|
]),
|
|
712
712
|
_: 1
|
|
@@ -716,7 +716,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
});
|
|
719
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
719
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-284b8ae8"]]);
|
|
720
720
|
const useLoadingStore = defineStore("loading", () => {
|
|
721
721
|
const count = ref(0);
|
|
722
722
|
const loading = computed(() => count.value > 0);
|
|
@@ -736,14 +736,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
736
736
|
}
|
|
737
737
|
return { loading, count, start, stop, withLoading };
|
|
738
738
|
});
|
|
739
|
-
const _hoisted_1$
|
|
739
|
+
const _hoisted_1$s = {
|
|
740
740
|
key: 0,
|
|
741
741
|
class: "loading-overlay",
|
|
742
742
|
role: "status",
|
|
743
743
|
"aria-live": "polite",
|
|
744
744
|
"aria-label": "로딩 중"
|
|
745
745
|
};
|
|
746
|
-
const _sfc_main$
|
|
746
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
747
747
|
__name: "AppLoadingOverlay",
|
|
748
748
|
setup(__props) {
|
|
749
749
|
const loadingStore = useLoadingStore();
|
|
@@ -751,7 +751,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
751
751
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
752
752
|
createVNode(Transition, { name: "fade" }, {
|
|
753
753
|
default: withCtx(() => [
|
|
754
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
754
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$s, [..._cache[0] || (_cache[0] = [
|
|
755
755
|
createElementVNode("div", {
|
|
756
756
|
class: "loading-spinner",
|
|
757
757
|
"aria-hidden": "true"
|
|
@@ -764,7 +764,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
767
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
768
768
|
const useConfirmStore = defineStore("confirm", () => {
|
|
769
769
|
const open = ref(false);
|
|
770
770
|
const title = ref("확인");
|
|
@@ -812,27 +812,27 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
812
812
|
resolve
|
|
813
813
|
};
|
|
814
814
|
});
|
|
815
|
-
const _hoisted_1$
|
|
815
|
+
const _hoisted_1$r = {
|
|
816
816
|
key: 0,
|
|
817
817
|
class: "app-confirm-backdrop"
|
|
818
818
|
};
|
|
819
|
-
const _hoisted_2$
|
|
819
|
+
const _hoisted_2$o = {
|
|
820
820
|
class: "app-confirm",
|
|
821
821
|
role: "dialog",
|
|
822
822
|
"aria-modal": "true"
|
|
823
823
|
};
|
|
824
|
-
const _hoisted_3$
|
|
825
|
-
const _hoisted_4$
|
|
826
|
-
const _hoisted_5$
|
|
827
|
-
const _hoisted_6$
|
|
828
|
-
const _hoisted_7$
|
|
824
|
+
const _hoisted_3$j = { class: "app-confirm__header" };
|
|
825
|
+
const _hoisted_4$h = { class: "app-confirm__title" };
|
|
826
|
+
const _hoisted_5$d = { class: "app-confirm__body" };
|
|
827
|
+
const _hoisted_6$9 = { class: "app-confirm__message" };
|
|
828
|
+
const _hoisted_7$7 = {
|
|
829
829
|
key: 0,
|
|
830
830
|
class: "app-confirm__require"
|
|
831
831
|
};
|
|
832
|
-
const _hoisted_8$
|
|
833
|
-
const _hoisted_9 = { class: "app-confirm__actions" };
|
|
834
|
-
const _hoisted_10 = ["disabled"];
|
|
835
|
-
const _sfc_main$
|
|
832
|
+
const _hoisted_8$2 = { class: "app-confirm__require-label" };
|
|
833
|
+
const _hoisted_9$1 = { class: "app-confirm__actions" };
|
|
834
|
+
const _hoisted_10$1 = ["disabled"];
|
|
835
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
836
836
|
__name: "AppConfirmModal",
|
|
837
837
|
setup(__props) {
|
|
838
838
|
const store = useConfirmStore();
|
|
@@ -857,15 +857,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
857
857
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
858
858
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
859
859
|
default: withCtx(() => [
|
|
860
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
861
|
-
createElementVNode("div", _hoisted_2$
|
|
862
|
-
createElementVNode("div", _hoisted_3$
|
|
863
|
-
createElementVNode("h3", _hoisted_4$
|
|
860
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
861
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
862
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
863
|
+
createElementVNode("h3", _hoisted_4$h, toDisplayString(unref(store).title), 1)
|
|
864
864
|
]),
|
|
865
|
-
createElementVNode("div", _hoisted_5$
|
|
866
|
-
createElementVNode("p", _hoisted_6$
|
|
867
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
868
|
-
createElementVNode("span", _hoisted_8$
|
|
865
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
866
|
+
createElementVNode("p", _hoisted_6$9, toDisplayString(unref(store).message), 1),
|
|
867
|
+
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$7, [
|
|
868
|
+
createElementVNode("span", _hoisted_8$2, [
|
|
869
869
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
870
870
|
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
871
871
|
]),
|
|
@@ -883,7 +883,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
883
883
|
])
|
|
884
884
|
])) : createCommentVNode("", true)
|
|
885
885
|
]),
|
|
886
|
-
createElementVNode("div", _hoisted_9, [
|
|
886
|
+
createElementVNode("div", _hoisted_9$1, [
|
|
887
887
|
createElementVNode("button", {
|
|
888
888
|
type: "button",
|
|
889
889
|
class: "app-confirm__btn app-confirm__btn--ghost",
|
|
@@ -894,7 +894,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
894
894
|
class: normalizeClass(["app-confirm__btn", unref(store).danger ? "app-confirm__btn--danger" : "app-confirm__btn--primary"]),
|
|
895
895
|
disabled: !unref(store).canConfirm,
|
|
896
896
|
onClick: _cache[3] || (_cache[3] = ($event) => unref(store).resolve(true))
|
|
897
|
-
}, toDisplayString(unref(store).confirmText), 11, _hoisted_10)
|
|
897
|
+
}, toDisplayString(unref(store).confirmText), 11, _hoisted_10$1)
|
|
898
898
|
])
|
|
899
899
|
])
|
|
900
900
|
])) : createCommentVNode("", true)
|
|
@@ -905,7 +905,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
});
|
|
908
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
908
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-29454195"]]);
|
|
909
909
|
const LF_ICONS = {
|
|
910
910
|
close: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
|
|
911
911
|
search: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19 15.5 14zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z",
|
|
@@ -945,10 +945,10 @@ const LF_ICONS = {
|
|
|
945
945
|
calendar_today: "M19 3h-1V1h-2v2H8V1H6v2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm0 18H5V9h14v12z",
|
|
946
946
|
save: "M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4zm-5 16a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm3-10H5V5h10v4z"
|
|
947
947
|
};
|
|
948
|
-
const _hoisted_1$
|
|
949
|
-
const _hoisted_2$
|
|
950
|
-
const _hoisted_3$
|
|
951
|
-
const _sfc_main$
|
|
948
|
+
const _hoisted_1$q = ["role", "aria-label", "aria-hidden"];
|
|
949
|
+
const _hoisted_2$n = { key: 0 };
|
|
950
|
+
const _hoisted_3$i = ["d"];
|
|
951
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
952
952
|
__name: "LfIcon",
|
|
953
953
|
props: {
|
|
954
954
|
name: {},
|
|
@@ -971,19 +971,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
971
971
|
"aria-label": __props.label || void 0,
|
|
972
972
|
"aria-hidden": __props.label ? void 0 : "true"
|
|
973
973
|
}, [
|
|
974
|
-
__props.label ? (openBlock(), createElementBlock("title", _hoisted_2$
|
|
974
|
+
__props.label ? (openBlock(), createElementBlock("title", _hoisted_2$n, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
975
975
|
d2.value ? (openBlock(), createElementBlock("path", {
|
|
976
976
|
key: 1,
|
|
977
977
|
d: d2.value,
|
|
978
978
|
fill: "currentColor"
|
|
979
|
-
}, null, 8, _hoisted_3$
|
|
980
|
-
], 12, _hoisted_1$
|
|
979
|
+
}, null, 8, _hoisted_3$i)) : createCommentVNode("", true)
|
|
980
|
+
], 12, _hoisted_1$q);
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
|
-
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
985
|
-
const _hoisted_1$
|
|
986
|
-
const _sfc_main$
|
|
984
|
+
const LfIcon = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-b70b3868"]]);
|
|
985
|
+
const _hoisted_1$p = ["role", "aria-label", "aria-hidden"];
|
|
986
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
987
987
|
__name: "LfSpinner",
|
|
988
988
|
props: {
|
|
989
989
|
size: { default: "1.25rem" },
|
|
@@ -1015,16 +1015,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1015
1015
|
cy: "12",
|
|
1016
1016
|
r: "9"
|
|
1017
1017
|
}, null, -1)
|
|
1018
|
-
])], 12, _hoisted_1$
|
|
1018
|
+
])], 12, _hoisted_1$p);
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
});
|
|
1022
|
-
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1023
|
-
const _hoisted_1$
|
|
1022
|
+
const LfSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-4aedf6b0"]]);
|
|
1023
|
+
const _hoisted_1$o = {
|
|
1024
1024
|
key: 2,
|
|
1025
1025
|
class: "lf-btn__label"
|
|
1026
1026
|
};
|
|
1027
|
-
const _sfc_main$
|
|
1027
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1028
1028
|
__name: "LfButton",
|
|
1029
1029
|
props: {
|
|
1030
1030
|
variant: { default: "ghost" },
|
|
@@ -1061,7 +1061,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1061
1061
|
name: __props.icon,
|
|
1062
1062
|
path: __props.iconPath
|
|
1063
1063
|
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
1064
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1064
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$o, [
|
|
1065
1065
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1066
1066
|
])) : createCommentVNode("", true),
|
|
1067
1067
|
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
@@ -1074,8 +1074,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1078
|
-
const _sfc_main$
|
|
1077
|
+
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-c4bac4e1"]]);
|
|
1078
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1079
1079
|
__name: "LfIconButton",
|
|
1080
1080
|
props: {
|
|
1081
1081
|
icon: {},
|
|
@@ -1120,23 +1120,23 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
1122
|
});
|
|
1123
|
-
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1124
|
-
const _hoisted_1$
|
|
1125
|
-
const _hoisted_2$
|
|
1123
|
+
const LfIconButton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e86ee99c"]]);
|
|
1124
|
+
const _hoisted_1$n = ["for"];
|
|
1125
|
+
const _hoisted_2$m = {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: "lf-field__required",
|
|
1128
1128
|
"aria-hidden": "true"
|
|
1129
1129
|
};
|
|
1130
|
-
const _hoisted_3$
|
|
1130
|
+
const _hoisted_3$h = {
|
|
1131
1131
|
key: 1,
|
|
1132
1132
|
class: "lf-field__error",
|
|
1133
1133
|
role: "alert"
|
|
1134
1134
|
};
|
|
1135
|
-
const _hoisted_4$
|
|
1135
|
+
const _hoisted_4$g = {
|
|
1136
1136
|
key: 2,
|
|
1137
1137
|
class: "lf-field__hint"
|
|
1138
1138
|
};
|
|
1139
|
-
const _sfc_main$
|
|
1139
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
1140
1140
|
__name: "LfField",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
label: {},
|
|
@@ -1156,23 +1156,36 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1156
1156
|
for: __props.htmlFor
|
|
1157
1157
|
}, [
|
|
1158
1158
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1159
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1160
|
-
], 8, _hoisted_1$
|
|
1159
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$m, "*")) : createCommentVNode("", true)
|
|
1160
|
+
], 8, _hoisted_1$n)) : createCommentVNode("", true),
|
|
1161
1161
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1162
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
1162
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_3$h, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4$g, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1163
1163
|
], 2);
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
|
-
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1168
|
-
|
|
1169
|
-
const
|
|
1167
|
+
const LfField = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-38509e4d"]]);
|
|
1168
|
+
function useSplitAttrs() {
|
|
1169
|
+
const attrs = useAttrs();
|
|
1170
|
+
const rootAttrs = computed(() => ({ class: attrs.class, style: attrs.style }));
|
|
1171
|
+
const controlAttrs = computed(() => {
|
|
1172
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
1173
|
+
return rest;
|
|
1174
|
+
});
|
|
1175
|
+
return { rootAttrs, controlAttrs };
|
|
1176
|
+
}
|
|
1177
|
+
const _hoisted_1$m = { class: "lf-control-wrap" };
|
|
1178
|
+
const _hoisted_2$l = {
|
|
1170
1179
|
key: 0,
|
|
1171
1180
|
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
1172
1181
|
};
|
|
1173
|
-
const _hoisted_3$
|
|
1174
|
-
const _hoisted_4$
|
|
1175
|
-
|
|
1182
|
+
const _hoisted_3$g = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
1183
|
+
const _hoisted_4$f = {
|
|
1184
|
+
key: 1,
|
|
1185
|
+
class: "lf-control-wrap__suffix"
|
|
1186
|
+
};
|
|
1187
|
+
const _hoisted_5$c = ["aria-label"];
|
|
1188
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
1176
1189
|
...{ inheritAttrs: false },
|
|
1177
1190
|
__name: "LfTextField",
|
|
1178
1191
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1188,15 +1201,25 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1188
1201
|
icon: {},
|
|
1189
1202
|
iconPath: {},
|
|
1190
1203
|
clearable: { type: Boolean },
|
|
1191
|
-
revealable: { type: Boolean }
|
|
1204
|
+
revealable: { type: Boolean },
|
|
1205
|
+
suffix: {}
|
|
1192
1206
|
}, {
|
|
1193
|
-
"modelValue": {
|
|
1207
|
+
"modelValue": {
|
|
1208
|
+
default: ""
|
|
1209
|
+
},
|
|
1194
1210
|
"modelModifiers": {}
|
|
1195
1211
|
}),
|
|
1196
1212
|
emits: ["update:modelValue"],
|
|
1197
1213
|
setup(__props) {
|
|
1198
1214
|
const props = __props;
|
|
1199
|
-
const model = useModel(__props, "modelValue"
|
|
1215
|
+
const [model, modifiers] = useModel(__props, "modelValue", {
|
|
1216
|
+
set(value) {
|
|
1217
|
+
if (!modifiers.number || value === "" || typeof value === "number") return value;
|
|
1218
|
+
const n = parseFloat(String(value));
|
|
1219
|
+
return Number.isNaN(n) ? value : n;
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
1200
1223
|
const inputId = useId();
|
|
1201
1224
|
const revealed = ref(false);
|
|
1202
1225
|
const hasTrailing = computed(
|
|
@@ -1206,28 +1229,29 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1206
1229
|
model.value = typeof model.value === "number" ? 0 : "";
|
|
1207
1230
|
}
|
|
1208
1231
|
return (_ctx, _cache) => {
|
|
1209
|
-
return openBlock(), createBlock(LfField, {
|
|
1232
|
+
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
1210
1233
|
label: __props.label,
|
|
1211
1234
|
hint: __props.hint,
|
|
1212
1235
|
error: __props.error,
|
|
1213
1236
|
required: __props.required,
|
|
1214
1237
|
"html-for": unref(inputId)
|
|
1215
|
-
}, {
|
|
1238
|
+
}), {
|
|
1216
1239
|
default: withCtx(() => [
|
|
1217
|
-
createElementVNode("div", _hoisted_1$
|
|
1218
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1240
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
1241
|
+
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$l, [
|
|
1219
1242
|
createVNode(LfIcon, {
|
|
1220
1243
|
name: __props.icon,
|
|
1221
1244
|
path: __props.iconPath,
|
|
1222
1245
|
size: "1.125rem"
|
|
1223
1246
|
}, null, 8, ["name", "path"])
|
|
1224
1247
|
])) : createCommentVNode("", true),
|
|
1225
|
-
withDirectives(createElementVNode("input", mergeProps({ id: unref(inputId) },
|
|
1226
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1248
|
+
withDirectives(createElementVNode("input", mergeProps({ id: unref(inputId) }, unref(controlAttrs), {
|
|
1249
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
1227
1250
|
class: ["lf-control", [
|
|
1228
1251
|
{ "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error },
|
|
1229
1252
|
(__props.icon || __props.iconPath) && "lf-control--has-left",
|
|
1230
|
-
hasTrailing.value && "lf-control--has-right"
|
|
1253
|
+
hasTrailing.value && "lf-control--has-right",
|
|
1254
|
+
__props.suffix && "lf-control--has-suffix"
|
|
1231
1255
|
]],
|
|
1232
1256
|
type: revealed.value ? "text" : __props.type,
|
|
1233
1257
|
placeholder: __props.placeholder,
|
|
@@ -1235,11 +1259,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1235
1259
|
readonly: __props.readonly,
|
|
1236
1260
|
required: __props.required,
|
|
1237
1261
|
"aria-invalid": __props.error ? "true" : void 0
|
|
1238
|
-
}), null, 16, _hoisted_3$
|
|
1239
|
-
[vModelDynamic, model
|
|
1262
|
+
}), null, 16, _hoisted_3$g), [
|
|
1263
|
+
[vModelDynamic, unref(model)]
|
|
1240
1264
|
]),
|
|
1265
|
+
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$f, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1241
1266
|
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1242
|
-
key:
|
|
1267
|
+
key: 2,
|
|
1243
1268
|
type: "button",
|
|
1244
1269
|
class: "lf-control-action",
|
|
1245
1270
|
"aria-label": revealed.value ? "비밀번호 가리기" : "비밀번호 보기",
|
|
@@ -1249,8 +1274,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1249
1274
|
name: revealed.value ? "visibility_off" : "visibility",
|
|
1250
1275
|
size: "1.125rem"
|
|
1251
1276
|
}, null, 8, ["name"])
|
|
1252
|
-
], 8,
|
|
1253
|
-
key:
|
|
1277
|
+
], 8, _hoisted_5$c)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1278
|
+
key: 3,
|
|
1254
1279
|
type: "button",
|
|
1255
1280
|
class: "lf-control-action",
|
|
1256
1281
|
"aria-label": "지우기",
|
|
@@ -1264,17 +1289,17 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1264
1289
|
])
|
|
1265
1290
|
]),
|
|
1266
1291
|
_: 1
|
|
1267
|
-
},
|
|
1292
|
+
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1268
1293
|
};
|
|
1269
1294
|
}
|
|
1270
1295
|
});
|
|
1271
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1272
|
-
const _hoisted_1$
|
|
1273
|
-
const _hoisted_2$
|
|
1296
|
+
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-e113043f"]]);
|
|
1297
|
+
const _hoisted_1$l = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1298
|
+
const _hoisted_2$k = {
|
|
1274
1299
|
key: 0,
|
|
1275
1300
|
class: "lf-textarea__counter"
|
|
1276
1301
|
};
|
|
1277
|
-
const _sfc_main$
|
|
1302
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1278
1303
|
...{ inheritAttrs: false },
|
|
1279
1304
|
__name: "LfTextarea",
|
|
1280
1305
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1299,6 +1324,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1299
1324
|
setup(__props) {
|
|
1300
1325
|
const props = __props;
|
|
1301
1326
|
const model = useModel(__props, "modelValue");
|
|
1327
|
+
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
1302
1328
|
const inputId = useId();
|
|
1303
1329
|
const el = useTemplateRef("el");
|
|
1304
1330
|
function grow() {
|
|
@@ -1314,19 +1340,19 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1314
1340
|
if (props.autoGrow) void nextTick(grow);
|
|
1315
1341
|
});
|
|
1316
1342
|
return (_ctx, _cache) => {
|
|
1317
|
-
return openBlock(), createBlock(LfField, {
|
|
1343
|
+
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
1318
1344
|
label: __props.label,
|
|
1319
1345
|
hint: __props.hint,
|
|
1320
1346
|
error: __props.error,
|
|
1321
1347
|
required: __props.required,
|
|
1322
1348
|
"html-for": unref(inputId)
|
|
1323
|
-
}, {
|
|
1349
|
+
}), {
|
|
1324
1350
|
default: withCtx(() => [
|
|
1325
1351
|
withDirectives(createElementVNode("textarea", mergeProps({
|
|
1326
1352
|
id: unref(inputId),
|
|
1327
1353
|
ref_key: "el",
|
|
1328
1354
|
ref: el
|
|
1329
|
-
},
|
|
1355
|
+
}, unref(controlAttrs), {
|
|
1330
1356
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1331
1357
|
class: ["lf-control lf-textarea", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error, "lf-textarea--fixed": !__props.resize }],
|
|
1332
1358
|
rows: __props.rows,
|
|
@@ -1337,23 +1363,23 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1337
1363
|
maxlength: __props.maxlength,
|
|
1338
1364
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1339
1365
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1340
|
-
}), null, 16, _hoisted_1$
|
|
1366
|
+
}), null, 16, _hoisted_1$l), [
|
|
1341
1367
|
[vModelText, model.value]
|
|
1342
1368
|
]),
|
|
1343
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1369
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$k, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1344
1370
|
]),
|
|
1345
1371
|
_: 1
|
|
1346
|
-
},
|
|
1372
|
+
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1347
1373
|
};
|
|
1348
1374
|
}
|
|
1349
1375
|
});
|
|
1350
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1351
|
-
const _hoisted_1$
|
|
1352
|
-
const _hoisted_2$
|
|
1353
|
-
const _hoisted_3$
|
|
1354
|
-
const _hoisted_4$
|
|
1355
|
-
const _hoisted_5$
|
|
1356
|
-
const _sfc_main$
|
|
1376
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-81fbed25"]]);
|
|
1377
|
+
const _hoisted_1$k = { class: "lf-control-wrap" };
|
|
1378
|
+
const _hoisted_2$j = ["id", "disabled", "required", "aria-invalid"];
|
|
1379
|
+
const _hoisted_3$f = ["disabled"];
|
|
1380
|
+
const _hoisted_4$e = ["value", "disabled"];
|
|
1381
|
+
const _hoisted_5$b = { class: "lf-control-wrap__icon lf-control-wrap__icon--right" };
|
|
1382
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1357
1383
|
...{ inheritAttrs: false },
|
|
1358
1384
|
__name: "LfSelect",
|
|
1359
1385
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1367,29 +1393,38 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1367
1393
|
disabled: { type: Boolean },
|
|
1368
1394
|
size: { default: "md" }
|
|
1369
1395
|
}, {
|
|
1370
|
-
"modelValue": {
|
|
1396
|
+
"modelValue": {
|
|
1397
|
+
default: ""
|
|
1398
|
+
},
|
|
1371
1399
|
"modelModifiers": {}
|
|
1372
1400
|
}),
|
|
1373
1401
|
emits: ["update:modelValue"],
|
|
1374
1402
|
setup(__props) {
|
|
1375
1403
|
const props = __props;
|
|
1376
|
-
const model = useModel(__props, "modelValue"
|
|
1404
|
+
const [model, modifiers] = useModel(__props, "modelValue", {
|
|
1405
|
+
set(value) {
|
|
1406
|
+
if (!modifiers.number || value === "" || typeof value === "number") return value;
|
|
1407
|
+
const n = parseFloat(String(value));
|
|
1408
|
+
return Number.isNaN(n) ? value : n;
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
1377
1412
|
const inputId = useId();
|
|
1378
1413
|
const normalized = computed(
|
|
1379
|
-
() => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
|
|
1414
|
+
() => props.options.map((o) => typeof o === "string" || typeof o === "number" ? { value: o, label: String(o) } : o)
|
|
1380
1415
|
);
|
|
1381
1416
|
return (_ctx, _cache) => {
|
|
1382
|
-
return openBlock(), createBlock(LfField, {
|
|
1417
|
+
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
1383
1418
|
label: __props.label,
|
|
1384
1419
|
hint: __props.hint,
|
|
1385
1420
|
error: __props.error,
|
|
1386
1421
|
required: __props.required,
|
|
1387
1422
|
"html-for": unref(inputId)
|
|
1388
|
-
}, {
|
|
1423
|
+
}), {
|
|
1389
1424
|
default: withCtx(() => [
|
|
1390
|
-
createElementVNode("div", _hoisted_1$
|
|
1391
|
-
withDirectives(createElementVNode("select", mergeProps({ id: unref(inputId) },
|
|
1392
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1425
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
1426
|
+
withDirectives(createElementVNode("select", mergeProps({ id: unref(inputId) }, unref(controlAttrs), {
|
|
1427
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
1393
1428
|
class: ["lf-control lf-select lf-control--has-right", { "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }],
|
|
1394
1429
|
disabled: __props.disabled,
|
|
1395
1430
|
required: __props.required,
|
|
@@ -1399,18 +1434,18 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1399
1434
|
key: 0,
|
|
1400
1435
|
value: "",
|
|
1401
1436
|
disabled: !__props.clearable
|
|
1402
|
-
}, toDisplayString(__props.placeholder), 9, _hoisted_3$
|
|
1437
|
+
}, toDisplayString(__props.placeholder), 9, _hoisted_3$f)) : createCommentVNode("", true),
|
|
1403
1438
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1404
1439
|
return openBlock(), createElementBlock("option", {
|
|
1405
1440
|
key: String(opt.value),
|
|
1406
1441
|
value: opt.value,
|
|
1407
1442
|
disabled: opt.disabled
|
|
1408
|
-
}, toDisplayString(opt.label), 9, _hoisted_4$
|
|
1443
|
+
}, toDisplayString(opt.label), 9, _hoisted_4$e);
|
|
1409
1444
|
}), 128))
|
|
1410
|
-
], 16, _hoisted_2$
|
|
1411
|
-
[vModelSelect, model
|
|
1445
|
+
], 16, _hoisted_2$j), [
|
|
1446
|
+
[vModelSelect, unref(model)]
|
|
1412
1447
|
]),
|
|
1413
|
-
createElementVNode("span", _hoisted_5$
|
|
1448
|
+
createElementVNode("span", _hoisted_5$b, [
|
|
1414
1449
|
createVNode(LfIcon, {
|
|
1415
1450
|
name: "expand_more",
|
|
1416
1451
|
size: "1.125rem"
|
|
@@ -1419,26 +1454,26 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1419
1454
|
])
|
|
1420
1455
|
]),
|
|
1421
1456
|
_: 1
|
|
1422
|
-
},
|
|
1457
|
+
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1423
1458
|
};
|
|
1424
1459
|
}
|
|
1425
1460
|
});
|
|
1426
|
-
const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1427
|
-
const _hoisted_1$
|
|
1428
|
-
const _hoisted_2$
|
|
1461
|
+
const LfSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-e0d9d182"]]);
|
|
1462
|
+
const _hoisted_1$j = ["disabled", "value"];
|
|
1463
|
+
const _hoisted_2$i = {
|
|
1429
1464
|
class: "lf-check__box",
|
|
1430
1465
|
"aria-hidden": "true"
|
|
1431
1466
|
};
|
|
1432
|
-
const _hoisted_3$
|
|
1467
|
+
const _hoisted_3$e = {
|
|
1433
1468
|
key: 0,
|
|
1434
1469
|
class: "lf-check__text"
|
|
1435
1470
|
};
|
|
1436
|
-
const _hoisted_4$
|
|
1437
|
-
const _hoisted_5$
|
|
1471
|
+
const _hoisted_4$d = { class: "lf-check__label" };
|
|
1472
|
+
const _hoisted_5$a = {
|
|
1438
1473
|
key: 0,
|
|
1439
1474
|
class: "lf-check__desc"
|
|
1440
1475
|
};
|
|
1441
|
-
const _sfc_main$
|
|
1476
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1442
1477
|
...{ inheritAttrs: false },
|
|
1443
1478
|
__name: "LfCheckbox",
|
|
1444
1479
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1463,39 +1498,39 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1463
1498
|
type: "checkbox",
|
|
1464
1499
|
disabled: __props.disabled,
|
|
1465
1500
|
value: __props.value
|
|
1466
|
-
}), null, 16, _hoisted_1$
|
|
1501
|
+
}), null, 16, _hoisted_1$j), [
|
|
1467
1502
|
[vModelCheckbox, model.value]
|
|
1468
1503
|
]),
|
|
1469
|
-
createElementVNode("span", _hoisted_2$
|
|
1504
|
+
createElementVNode("span", _hoisted_2$i, [
|
|
1470
1505
|
createVNode(LfIcon, {
|
|
1471
1506
|
name: "check",
|
|
1472
1507
|
size: "0.875rem"
|
|
1473
1508
|
})
|
|
1474
1509
|
]),
|
|
1475
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1476
|
-
createElementVNode("span", _hoisted_4$
|
|
1510
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$e, [
|
|
1511
|
+
createElementVNode("span", _hoisted_4$d, [
|
|
1477
1512
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1478
1513
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1479
1514
|
], true)
|
|
1480
1515
|
]),
|
|
1481
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1516
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$a, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1482
1517
|
])) : createCommentVNode("", true)
|
|
1483
1518
|
], 2);
|
|
1484
1519
|
};
|
|
1485
1520
|
}
|
|
1486
1521
|
});
|
|
1487
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1488
|
-
const _hoisted_1$
|
|
1522
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-a86332f0"]]);
|
|
1523
|
+
const _hoisted_1$i = {
|
|
1489
1524
|
key: 0,
|
|
1490
1525
|
class: "lf-switch__text"
|
|
1491
1526
|
};
|
|
1492
|
-
const _hoisted_2$
|
|
1493
|
-
const _hoisted_3$
|
|
1527
|
+
const _hoisted_2$h = { class: "lf-switch__label" };
|
|
1528
|
+
const _hoisted_3$d = {
|
|
1494
1529
|
key: 0,
|
|
1495
1530
|
class: "lf-switch__desc"
|
|
1496
1531
|
};
|
|
1497
|
-
const _hoisted_4$
|
|
1498
|
-
const _sfc_main$
|
|
1532
|
+
const _hoisted_4$c = ["disabled"];
|
|
1533
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1499
1534
|
...{ inheritAttrs: false },
|
|
1500
1535
|
__name: "LfSwitch",
|
|
1501
1536
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1514,13 +1549,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1514
1549
|
return openBlock(), createElementBlock("label", {
|
|
1515
1550
|
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1516
1551
|
}, [
|
|
1517
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1518
|
-
createElementVNode("span", _hoisted_2$
|
|
1552
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$i, [
|
|
1553
|
+
createElementVNode("span", _hoisted_2$h, [
|
|
1519
1554
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1520
1555
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1521
1556
|
], true)
|
|
1522
1557
|
]),
|
|
1523
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1558
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1524
1559
|
])) : createCommentVNode("", true),
|
|
1525
1560
|
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1526
1561
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1528,7 +1563,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1528
1563
|
type: "checkbox",
|
|
1529
1564
|
role: "switch",
|
|
1530
1565
|
disabled: __props.disabled
|
|
1531
|
-
}), null, 16, _hoisted_4$
|
|
1566
|
+
}), null, 16, _hoisted_4$c), [
|
|
1532
1567
|
[vModelCheckbox, model.value]
|
|
1533
1568
|
]),
|
|
1534
1569
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
@@ -1541,33 +1576,33 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1541
1576
|
};
|
|
1542
1577
|
}
|
|
1543
1578
|
});
|
|
1544
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1545
|
-
const _hoisted_1$
|
|
1579
|
+
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-134991c6"]]);
|
|
1580
|
+
const _hoisted_1$h = {
|
|
1546
1581
|
key: 0,
|
|
1547
1582
|
class: "lf-radio-group__legend"
|
|
1548
1583
|
};
|
|
1549
|
-
const _hoisted_2$
|
|
1584
|
+
const _hoisted_2$g = {
|
|
1550
1585
|
key: 0,
|
|
1551
1586
|
class: "lf-radio-group__required",
|
|
1552
1587
|
"aria-hidden": "true"
|
|
1553
1588
|
};
|
|
1554
|
-
const _hoisted_3$
|
|
1555
|
-
const _hoisted_4$
|
|
1556
|
-
const _hoisted_5$
|
|
1557
|
-
const _hoisted_6$
|
|
1589
|
+
const _hoisted_3$c = ["name", "value", "disabled"];
|
|
1590
|
+
const _hoisted_4$b = { class: "lf-radio__text" };
|
|
1591
|
+
const _hoisted_5$9 = { class: "lf-radio__label" };
|
|
1592
|
+
const _hoisted_6$8 = {
|
|
1558
1593
|
key: 0,
|
|
1559
1594
|
class: "lf-radio__desc"
|
|
1560
1595
|
};
|
|
1561
|
-
const _hoisted_7$
|
|
1596
|
+
const _hoisted_7$6 = {
|
|
1562
1597
|
key: 1,
|
|
1563
1598
|
class: "lf-radio-group__error",
|
|
1564
1599
|
role: "alert"
|
|
1565
1600
|
};
|
|
1566
|
-
const _hoisted_8 = {
|
|
1601
|
+
const _hoisted_8$1 = {
|
|
1567
1602
|
key: 2,
|
|
1568
1603
|
class: "lf-radio-group__hint"
|
|
1569
1604
|
};
|
|
1570
|
-
const _sfc_main$
|
|
1605
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1571
1606
|
__name: "LfRadioGroup",
|
|
1572
1607
|
props: /* @__PURE__ */ mergeModels({
|
|
1573
1608
|
options: { default: () => [] },
|
|
@@ -1593,9 +1628,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1593
1628
|
return openBlock(), createElementBlock("fieldset", {
|
|
1594
1629
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1595
1630
|
}, [
|
|
1596
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1631
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$h, [
|
|
1597
1632
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1598
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1633
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$g, "*")) : createCommentVNode("", true)
|
|
1599
1634
|
])) : createCommentVNode("", true),
|
|
1600
1635
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1601
1636
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1609,42 +1644,42 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1609
1644
|
name: unref(groupName),
|
|
1610
1645
|
value: opt.value,
|
|
1611
1646
|
disabled: __props.disabled || opt.disabled
|
|
1612
|
-
}, null, 8, _hoisted_3$
|
|
1647
|
+
}, null, 8, _hoisted_3$c), [
|
|
1613
1648
|
[vModelRadio, model.value]
|
|
1614
1649
|
]),
|
|
1615
1650
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1616
1651
|
class: "lf-radio__dot",
|
|
1617
1652
|
"aria-hidden": "true"
|
|
1618
1653
|
}, null, -1)),
|
|
1619
|
-
createElementVNode("span", _hoisted_4$
|
|
1620
|
-
createElementVNode("span", _hoisted_5$
|
|
1621
|
-
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
1654
|
+
createElementVNode("span", _hoisted_4$b, [
|
|
1655
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString(opt.label), 1),
|
|
1656
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1622
1657
|
])
|
|
1623
1658
|
], 2);
|
|
1624
1659
|
}), 128)),
|
|
1625
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1660
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$6, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_8$1, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1626
1661
|
], 2);
|
|
1627
1662
|
};
|
|
1628
1663
|
}
|
|
1629
1664
|
});
|
|
1630
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1631
|
-
const _hoisted_1$
|
|
1632
|
-
const _hoisted_2$
|
|
1665
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-cffad147"]]);
|
|
1666
|
+
const _hoisted_1$g = ["aria-labelledby", "aria-label"];
|
|
1667
|
+
const _hoisted_2$f = {
|
|
1633
1668
|
key: 0,
|
|
1634
1669
|
class: "lf-modal__header"
|
|
1635
1670
|
};
|
|
1636
|
-
const _hoisted_3$
|
|
1637
|
-
const _hoisted_4$
|
|
1638
|
-
const _hoisted_5$
|
|
1671
|
+
const _hoisted_3$b = { class: "lf-modal__heading" };
|
|
1672
|
+
const _hoisted_4$a = ["id"];
|
|
1673
|
+
const _hoisted_5$8 = {
|
|
1639
1674
|
key: 0,
|
|
1640
1675
|
class: "lf-modal__subtitle"
|
|
1641
1676
|
};
|
|
1642
|
-
const _hoisted_6$
|
|
1643
|
-
const _hoisted_7$
|
|
1677
|
+
const _hoisted_6$7 = { class: "lf-modal__body" };
|
|
1678
|
+
const _hoisted_7$5 = {
|
|
1644
1679
|
key: 1,
|
|
1645
1680
|
class: "lf-modal__footer"
|
|
1646
1681
|
};
|
|
1647
|
-
const _sfc_main$
|
|
1682
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1648
1683
|
__name: "LfModal",
|
|
1649
1684
|
props: /* @__PURE__ */ mergeModels({
|
|
1650
1685
|
title: {},
|
|
@@ -1756,14 +1791,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1756
1791
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1757
1792
|
onKeydown
|
|
1758
1793
|
}, [
|
|
1759
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1794
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$f, [
|
|
1760
1795
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1761
|
-
createElementVNode("div", _hoisted_3$
|
|
1796
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
1762
1797
|
createElementVNode("h2", {
|
|
1763
1798
|
id: unref(titleId),
|
|
1764
1799
|
class: "lf-modal__title"
|
|
1765
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1766
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
1800
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$a),
|
|
1801
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1767
1802
|
])
|
|
1768
1803
|
], true),
|
|
1769
1804
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1774,13 +1809,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1774
1809
|
onClick: _cache[0] || (_cache[0] = ($event) => close("close"))
|
|
1775
1810
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1776
1811
|
])) : createCommentVNode("", true),
|
|
1777
|
-
createElementVNode("div", _hoisted_6$
|
|
1812
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
1778
1813
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1779
1814
|
]),
|
|
1780
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1815
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$5, [
|
|
1781
1816
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1782
1817
|
])) : createCommentVNode("", true)
|
|
1783
|
-
], 42, _hoisted_1$
|
|
1818
|
+
], 42, _hoisted_1$g)
|
|
1784
1819
|
], 32)) : createCommentVNode("", true)
|
|
1785
1820
|
]),
|
|
1786
1821
|
_: 3
|
|
@@ -1789,30 +1824,30 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1789
1824
|
};
|
|
1790
1825
|
}
|
|
1791
1826
|
});
|
|
1792
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1793
|
-
const _hoisted_1$
|
|
1827
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-cd0b7eb4"]]);
|
|
1828
|
+
const _hoisted_1$f = {
|
|
1794
1829
|
key: 0,
|
|
1795
1830
|
class: "lf-card__head"
|
|
1796
1831
|
};
|
|
1797
|
-
const _hoisted_2$
|
|
1832
|
+
const _hoisted_2$e = {
|
|
1798
1833
|
key: 0,
|
|
1799
1834
|
class: "lf-card__icon"
|
|
1800
1835
|
};
|
|
1801
|
-
const _hoisted_3$
|
|
1802
|
-
const _hoisted_4$
|
|
1836
|
+
const _hoisted_3$a = { class: "lf-card__title" };
|
|
1837
|
+
const _hoisted_4$9 = {
|
|
1803
1838
|
key: 1,
|
|
1804
1839
|
class: "lf-card__count"
|
|
1805
1840
|
};
|
|
1806
|
-
const _hoisted_5$
|
|
1841
|
+
const _hoisted_5$7 = {
|
|
1807
1842
|
key: 0,
|
|
1808
1843
|
class: "lf-card__actions"
|
|
1809
1844
|
};
|
|
1810
|
-
const _hoisted_6$
|
|
1811
|
-
const _hoisted_7$
|
|
1845
|
+
const _hoisted_6$6 = { class: "lf-card__body" };
|
|
1846
|
+
const _hoisted_7$4 = {
|
|
1812
1847
|
key: 1,
|
|
1813
1848
|
class: "lf-card__foot"
|
|
1814
1849
|
};
|
|
1815
|
-
const _sfc_main$
|
|
1850
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1816
1851
|
__name: "LfCard",
|
|
1817
1852
|
props: {
|
|
1818
1853
|
title: {},
|
|
@@ -1828,9 +1863,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1828
1863
|
return openBlock(), createElementBlock("section", {
|
|
1829
1864
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1830
1865
|
}, [
|
|
1831
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1866
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$f, [
|
|
1832
1867
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1833
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1868
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$e, [
|
|
1834
1869
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1835
1870
|
createVNode(LfIcon, {
|
|
1836
1871
|
name: __props.icon,
|
|
@@ -1839,45 +1874,45 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1839
1874
|
}, null, 8, ["name", "path"])
|
|
1840
1875
|
], true)
|
|
1841
1876
|
])) : createCommentVNode("", true),
|
|
1842
|
-
createElementVNode("h3", _hoisted_3$
|
|
1843
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1877
|
+
createElementVNode("h3", _hoisted_3$a, toDisplayString(__props.title), 1),
|
|
1878
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$9, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1844
1879
|
], true),
|
|
1845
1880
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1846
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1881
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
1847
1882
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1848
1883
|
])) : createCommentVNode("", true)
|
|
1849
1884
|
])) : createCommentVNode("", true),
|
|
1850
|
-
createElementVNode("div", _hoisted_6$
|
|
1885
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
1851
1886
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1852
1887
|
]),
|
|
1853
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1888
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$4, [
|
|
1854
1889
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1855
1890
|
])) : createCommentVNode("", true)
|
|
1856
1891
|
], 2);
|
|
1857
1892
|
};
|
|
1858
1893
|
}
|
|
1859
1894
|
});
|
|
1860
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1861
|
-
const _hoisted_1$
|
|
1862
|
-
const _hoisted_2$
|
|
1863
|
-
const _hoisted_3$
|
|
1864
|
-
const _hoisted_4$
|
|
1895
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4d6ca8ce"]]);
|
|
1896
|
+
const _hoisted_1$e = { class: "lf-page-header" };
|
|
1897
|
+
const _hoisted_2$d = { class: "lf-page-header__title-box" };
|
|
1898
|
+
const _hoisted_3$9 = { class: "lf-page-header__title" };
|
|
1899
|
+
const _hoisted_4$8 = {
|
|
1865
1900
|
key: 0,
|
|
1866
1901
|
class: "lf-page-header__icon"
|
|
1867
1902
|
};
|
|
1868
|
-
const _hoisted_5$
|
|
1903
|
+
const _hoisted_5$6 = {
|
|
1869
1904
|
key: 0,
|
|
1870
1905
|
class: "lf-page-header__count"
|
|
1871
1906
|
};
|
|
1872
|
-
const _hoisted_6$
|
|
1907
|
+
const _hoisted_6$5 = {
|
|
1873
1908
|
key: 0,
|
|
1874
1909
|
class: "lf-page-header__tools"
|
|
1875
1910
|
};
|
|
1876
|
-
const _hoisted_7$
|
|
1911
|
+
const _hoisted_7$3 = {
|
|
1877
1912
|
key: 1,
|
|
1878
1913
|
class: "lf-page-header__desc"
|
|
1879
1914
|
};
|
|
1880
|
-
const _sfc_main$
|
|
1915
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1881
1916
|
__name: "LfPageHeader",
|
|
1882
1917
|
props: {
|
|
1883
1918
|
title: {},
|
|
@@ -1890,10 +1925,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1890
1925
|
const slots = useSlots();
|
|
1891
1926
|
const hasTools = computed(() => !!slots.filters || !!slots.actions);
|
|
1892
1927
|
return (_ctx, _cache) => {
|
|
1893
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1894
|
-
createElementVNode("div", _hoisted_2$
|
|
1895
|
-
createElementVNode("h1", _hoisted_3$
|
|
1896
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1928
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
1929
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
1930
|
+
createElementVNode("h1", _hoisted_3$9, [
|
|
1931
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$8, [
|
|
1897
1932
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1898
1933
|
createVNode(LfIcon, {
|
|
1899
1934
|
name: __props.icon,
|
|
@@ -1906,14 +1941,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1906
1941
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1907
1942
|
], true)
|
|
1908
1943
|
]),
|
|
1909
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1944
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$6, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1910
1945
|
]),
|
|
1911
|
-
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1946
|
+
hasTools.value ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
1912
1947
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
1913
1948
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1914
1949
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1915
1950
|
])) : createCommentVNode("", true),
|
|
1916
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1951
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$3, [
|
|
1917
1952
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1918
1953
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1919
1954
|
], true)
|
|
@@ -1922,14 +1957,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1922
1957
|
};
|
|
1923
1958
|
}
|
|
1924
1959
|
});
|
|
1925
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1926
|
-
const _hoisted_1$
|
|
1960
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-04602db7"]]);
|
|
1961
|
+
const _hoisted_1$d = {
|
|
1927
1962
|
key: 0,
|
|
1928
1963
|
class: "lf-badge__dot",
|
|
1929
1964
|
"aria-hidden": "true"
|
|
1930
1965
|
};
|
|
1931
|
-
const _hoisted_2$
|
|
1932
|
-
const _sfc_main$
|
|
1966
|
+
const _hoisted_2$c = ["aria-label"];
|
|
1967
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1933
1968
|
__name: "LfBadge",
|
|
1934
1969
|
props: {
|
|
1935
1970
|
label: {},
|
|
@@ -1949,7 +1984,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1949
1984
|
return openBlock(), createElementBlock("span", {
|
|
1950
1985
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1951
1986
|
}, [
|
|
1952
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1987
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$d)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1953
1988
|
key: 1,
|
|
1954
1989
|
name: __props.icon,
|
|
1955
1990
|
path: __props.iconPath,
|
|
@@ -1969,27 +2004,27 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1969
2004
|
name: "close",
|
|
1970
2005
|
size: "0.75rem"
|
|
1971
2006
|
})
|
|
1972
|
-
], 8, _hoisted_2$
|
|
2007
|
+
], 8, _hoisted_2$c)) : createCommentVNode("", true)
|
|
1973
2008
|
], 2);
|
|
1974
2009
|
};
|
|
1975
2010
|
}
|
|
1976
2011
|
});
|
|
1977
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1978
|
-
const _hoisted_1$
|
|
1979
|
-
const _hoisted_2$
|
|
2012
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b55cda7f"]]);
|
|
2013
|
+
const _hoisted_1$c = ["role"];
|
|
2014
|
+
const _hoisted_2$b = {
|
|
1980
2015
|
class: "lf-alert__badge",
|
|
1981
2016
|
"aria-hidden": "true"
|
|
1982
2017
|
};
|
|
1983
|
-
const _hoisted_3$
|
|
1984
|
-
const _hoisted_4$
|
|
2018
|
+
const _hoisted_3$8 = { class: "lf-alert__body" };
|
|
2019
|
+
const _hoisted_4$7 = {
|
|
1985
2020
|
key: 0,
|
|
1986
2021
|
class: "lf-alert__title"
|
|
1987
2022
|
};
|
|
1988
|
-
const _hoisted_5$
|
|
2023
|
+
const _hoisted_5$5 = {
|
|
1989
2024
|
key: 2,
|
|
1990
2025
|
class: "lf-alert__actions"
|
|
1991
2026
|
};
|
|
1992
|
-
const _sfc_main$
|
|
2027
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1993
2028
|
__name: "LfAlert",
|
|
1994
2029
|
props: {
|
|
1995
2030
|
tone: { default: "info" },
|
|
@@ -2015,7 +2050,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2015
2050
|
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
2016
2051
|
role: __props.tone === "error" ? "alert" : "status"
|
|
2017
2052
|
}, [
|
|
2018
|
-
createElementVNode("span", _hoisted_2$
|
|
2053
|
+
createElementVNode("span", _hoisted_2$b, [
|
|
2019
2054
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2020
2055
|
createVNode(LfIcon, {
|
|
2021
2056
|
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
@@ -2024,8 +2059,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2024
2059
|
}, null, 8, ["name", "path", "size"])
|
|
2025
2060
|
], true)
|
|
2026
2061
|
]),
|
|
2027
|
-
createElementVNode("div", _hoisted_3$
|
|
2028
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
2062
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
2063
|
+
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$7, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
2029
2064
|
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
2030
2065
|
key: 1,
|
|
2031
2066
|
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
@@ -2034,7 +2069,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2034
2069
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
2035
2070
|
], true)
|
|
2036
2071
|
], 2)) : createCommentVNode("", true),
|
|
2037
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2072
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
2038
2073
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
2039
2074
|
])) : createCommentVNode("", true)
|
|
2040
2075
|
]),
|
|
@@ -2046,14 +2081,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2046
2081
|
label: __props.closeLabel,
|
|
2047
2082
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
2048
2083
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
2049
|
-
], 10, _hoisted_1$
|
|
2084
|
+
], 10, _hoisted_1$c);
|
|
2050
2085
|
};
|
|
2051
2086
|
}
|
|
2052
2087
|
});
|
|
2053
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2054
|
-
const _hoisted_1$
|
|
2055
|
-
const _hoisted_2$
|
|
2056
|
-
const _sfc_main$
|
|
2088
|
+
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-62839786"]]);
|
|
2089
|
+
const _hoisted_1$b = ["title"];
|
|
2090
|
+
const _hoisted_2$a = ["src", "alt"];
|
|
2091
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
2057
2092
|
__name: "LfAvatar",
|
|
2058
2093
|
props: {
|
|
2059
2094
|
name: {},
|
|
@@ -2088,21 +2123,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2088
2123
|
src: __props.src,
|
|
2089
2124
|
alt: __props.name ?? "",
|
|
2090
2125
|
onError: _cache[0] || (_cache[0] = ($event) => errored.value = true)
|
|
2091
|
-
}, null, 40, _hoisted_2$
|
|
2126
|
+
}, null, 40, _hoisted_2$a)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2092
2127
|
createTextVNode(toDisplayString(initial.value), 1)
|
|
2093
2128
|
], 64))
|
|
2094
|
-
], 14, _hoisted_1$
|
|
2129
|
+
], 14, _hoisted_1$b);
|
|
2095
2130
|
};
|
|
2096
2131
|
}
|
|
2097
2132
|
});
|
|
2098
|
-
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2099
|
-
const _hoisted_1$
|
|
2100
|
-
const _hoisted_2$
|
|
2101
|
-
const _hoisted_3$
|
|
2102
|
-
const _hoisted_4$
|
|
2103
|
-
const _hoisted_5$
|
|
2104
|
-
const _hoisted_6$
|
|
2105
|
-
const _sfc_main$
|
|
2133
|
+
const LfAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-61adf36e"]]);
|
|
2134
|
+
const _hoisted_1$a = { class: "lf-table-wrap" };
|
|
2135
|
+
const _hoisted_2$9 = ["aria-sort"];
|
|
2136
|
+
const _hoisted_3$7 = ["onClick"];
|
|
2137
|
+
const _hoisted_4$6 = { key: 1 };
|
|
2138
|
+
const _hoisted_5$4 = ["colspan"];
|
|
2139
|
+
const _hoisted_6$4 = ["tabindex", "onClick", "onKeydown"];
|
|
2140
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2106
2141
|
__name: "LfTable",
|
|
2107
2142
|
props: {
|
|
2108
2143
|
columns: {},
|
|
@@ -2134,7 +2169,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2134
2169
|
return props.sort.order === "asc" ? "ascending" : "descending";
|
|
2135
2170
|
}
|
|
2136
2171
|
return (_ctx, _cache) => {
|
|
2137
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2172
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
2138
2173
|
createElementVNode("table", {
|
|
2139
2174
|
class: normalizeClass(["lf-table", { "lf-table--compact": __props.compact }]),
|
|
2140
2175
|
style: normalizeStyle({ minWidth: __props.minWidth })
|
|
@@ -2161,10 +2196,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2161
2196
|
name: __props.sort.order === "asc" ? "arrow_upward" : "arrow_downward",
|
|
2162
2197
|
size: "0.875rem"
|
|
2163
2198
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
2164
|
-
], 8, _hoisted_3$
|
|
2199
|
+
], 8, _hoisted_3$7)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2165
2200
|
createTextVNode(toDisplayString(col.label), 1)
|
|
2166
2201
|
], 64))
|
|
2167
|
-
], 14, _hoisted_2$
|
|
2202
|
+
], 14, _hoisted_2$9);
|
|
2168
2203
|
}), 128))
|
|
2169
2204
|
])
|
|
2170
2205
|
]),
|
|
@@ -2183,7 +2218,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2183
2218
|
])], 2);
|
|
2184
2219
|
}), 128))
|
|
2185
2220
|
]);
|
|
2186
|
-
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$
|
|
2221
|
+
}), 128)) : __props.rows.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_4$6, [
|
|
2187
2222
|
createElementVNode("td", {
|
|
2188
2223
|
class: "lf-table__empty",
|
|
2189
2224
|
colspan: __props.columns.length
|
|
@@ -2191,7 +2226,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2191
2226
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
2192
2227
|
createTextVNode(toDisplayString(__props.emptyText), 1)
|
|
2193
2228
|
], true)
|
|
2194
|
-
], 8, _hoisted_5$
|
|
2229
|
+
], 8, _hoisted_5$4)
|
|
2195
2230
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.rows, (row, i2) => {
|
|
2196
2231
|
return openBlock(), createElementBlock("tr", {
|
|
2197
2232
|
key: keyOf(row, i2),
|
|
@@ -2215,7 +2250,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2215
2250
|
], true)
|
|
2216
2251
|
], 6);
|
|
2217
2252
|
}), 128))
|
|
2218
|
-
], 42, _hoisted_6$
|
|
2253
|
+
], 42, _hoisted_6$4);
|
|
2219
2254
|
}), 128))
|
|
2220
2255
|
])
|
|
2221
2256
|
], 6)
|
|
@@ -2223,26 +2258,26 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2223
2258
|
};
|
|
2224
2259
|
}
|
|
2225
2260
|
});
|
|
2226
|
-
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2227
|
-
const _hoisted_1$
|
|
2228
|
-
const _hoisted_2$
|
|
2261
|
+
const LfTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-dc7b5ff5"]]);
|
|
2262
|
+
const _hoisted_1$9 = ["aria-label"];
|
|
2263
|
+
const _hoisted_2$8 = {
|
|
2229
2264
|
key: 0,
|
|
2230
2265
|
class: "lf-pagination__total"
|
|
2231
2266
|
};
|
|
2232
|
-
const _hoisted_3$
|
|
2267
|
+
const _hoisted_3$6 = {
|
|
2233
2268
|
key: 1,
|
|
2234
2269
|
class: "lf-pagination__btns"
|
|
2235
2270
|
};
|
|
2236
|
-
const _hoisted_4$
|
|
2237
|
-
const _hoisted_5$
|
|
2271
|
+
const _hoisted_4$5 = ["disabled"];
|
|
2272
|
+
const _hoisted_5$3 = {
|
|
2238
2273
|
key: 0,
|
|
2239
2274
|
class: "lf-pagination__gap",
|
|
2240
2275
|
"aria-hidden": "true"
|
|
2241
2276
|
};
|
|
2242
|
-
const _hoisted_6$
|
|
2243
|
-
const _hoisted_7$
|
|
2277
|
+
const _hoisted_6$3 = ["aria-current", "onClick"];
|
|
2278
|
+
const _hoisted_7$2 = ["disabled"];
|
|
2244
2279
|
const ELLIPSIS = -1;
|
|
2245
|
-
const _sfc_main$
|
|
2280
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2246
2281
|
__name: "LfPagination",
|
|
2247
2282
|
props: /* @__PURE__ */ mergeModels({
|
|
2248
2283
|
total: { default: 0 },
|
|
@@ -2283,12 +2318,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2283
2318
|
class: "lf-pagination",
|
|
2284
2319
|
"aria-label": __props.ariaLabel
|
|
2285
2320
|
}, [
|
|
2286
|
-
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
2321
|
+
__props.showTotal ? (openBlock(), createElementBlock("p", _hoisted_2$8, [
|
|
2287
2322
|
renderSlot(_ctx.$slots, "total", {}, () => [
|
|
2288
2323
|
createTextVNode("전체 " + toDisplayString(__props.total.toLocaleString()) + "건", 1)
|
|
2289
2324
|
], true)
|
|
2290
2325
|
])) : createCommentVNode("", true),
|
|
2291
|
-
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2326
|
+
totalPages.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
2292
2327
|
createElementVNode("button", {
|
|
2293
2328
|
type: "button",
|
|
2294
2329
|
class: "lf-pagination__btn",
|
|
@@ -2300,18 +2335,18 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2300
2335
|
name: "chevron_left",
|
|
2301
2336
|
size: "1rem"
|
|
2302
2337
|
})
|
|
2303
|
-
], 8, _hoisted_4$
|
|
2338
|
+
], 8, _hoisted_4$5),
|
|
2304
2339
|
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (p, i2) => {
|
|
2305
2340
|
return openBlock(), createElementBlock(Fragment, {
|
|
2306
2341
|
key: `${p}-${i2}`
|
|
2307
2342
|
}, [
|
|
2308
|
-
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2343
|
+
p === ELLIPSIS ? (openBlock(), createElementBlock("span", _hoisted_5$3, "…")) : (openBlock(), createElementBlock("button", {
|
|
2309
2344
|
key: 1,
|
|
2310
2345
|
type: "button",
|
|
2311
2346
|
class: normalizeClass(["lf-pagination__btn", { "lf-pagination__btn--active": p === model.value }]),
|
|
2312
2347
|
"aria-current": p === model.value ? "page" : void 0,
|
|
2313
2348
|
onClick: ($event) => go(p)
|
|
2314
|
-
}, toDisplayString(p), 11, _hoisted_6$
|
|
2349
|
+
}, toDisplayString(p), 11, _hoisted_6$3))
|
|
2315
2350
|
], 64);
|
|
2316
2351
|
}), 128)),
|
|
2317
2352
|
createElementVNode("button", {
|
|
@@ -2325,27 +2360,27 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2325
2360
|
name: "chevron_right",
|
|
2326
2361
|
size: "1rem"
|
|
2327
2362
|
})
|
|
2328
|
-
], 8, _hoisted_7$
|
|
2363
|
+
], 8, _hoisted_7$2)
|
|
2329
2364
|
])) : createCommentVNode("", true)
|
|
2330
|
-
], 8, _hoisted_1$
|
|
2365
|
+
], 8, _hoisted_1$9)) : createCommentVNode("", true);
|
|
2331
2366
|
};
|
|
2332
2367
|
}
|
|
2333
2368
|
});
|
|
2334
|
-
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2335
|
-
const _hoisted_1$
|
|
2369
|
+
const LfPagination = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-be847541"]]);
|
|
2370
|
+
const _hoisted_1$8 = {
|
|
2336
2371
|
key: 0,
|
|
2337
2372
|
class: "lf-empty__icon"
|
|
2338
2373
|
};
|
|
2339
|
-
const _hoisted_2$
|
|
2340
|
-
const _hoisted_3$
|
|
2374
|
+
const _hoisted_2$7 = { class: "lf-empty__title" };
|
|
2375
|
+
const _hoisted_3$5 = {
|
|
2341
2376
|
key: 1,
|
|
2342
2377
|
class: "lf-empty__desc"
|
|
2343
2378
|
};
|
|
2344
|
-
const _hoisted_4$
|
|
2379
|
+
const _hoisted_4$4 = {
|
|
2345
2380
|
key: 2,
|
|
2346
2381
|
class: "lf-empty__action"
|
|
2347
2382
|
};
|
|
2348
|
-
const _sfc_main$
|
|
2383
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2349
2384
|
__name: "LfEmptyState",
|
|
2350
2385
|
props: {
|
|
2351
2386
|
title: { default: "표시할 내용이 없습니다." },
|
|
@@ -2360,7 +2395,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2360
2395
|
return openBlock(), createElementBlock("div", {
|
|
2361
2396
|
class: normalizeClass(["lf-empty", [`lf-empty--${__props.tone}`, { "lf-empty--dense": __props.dense }]])
|
|
2362
2397
|
}, [
|
|
2363
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
2398
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$8, [
|
|
2364
2399
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2365
2400
|
createVNode(LfIcon, {
|
|
2366
2401
|
name: __props.icon,
|
|
@@ -2369,31 +2404,31 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2369
2404
|
}, null, 8, ["name", "path"])
|
|
2370
2405
|
], true)
|
|
2371
2406
|
])) : createCommentVNode("", true),
|
|
2372
|
-
createElementVNode("p", _hoisted_2$
|
|
2407
|
+
createElementVNode("p", _hoisted_2$7, [
|
|
2373
2408
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2374
2409
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
2375
2410
|
], true)
|
|
2376
2411
|
]),
|
|
2377
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
2412
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_3$5, [
|
|
2378
2413
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2379
2414
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
2380
2415
|
], true)
|
|
2381
2416
|
])) : createCommentVNode("", true),
|
|
2382
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2417
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
2383
2418
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2384
2419
|
])) : createCommentVNode("", true)
|
|
2385
2420
|
], 2);
|
|
2386
2421
|
};
|
|
2387
2422
|
}
|
|
2388
2423
|
});
|
|
2389
|
-
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2390
|
-
const _hoisted_1$
|
|
2424
|
+
const LfEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-b0e021c9"]]);
|
|
2425
|
+
const _hoisted_1$7 = {
|
|
2391
2426
|
key: 0,
|
|
2392
2427
|
class: "lf-skeleton-group",
|
|
2393
2428
|
"aria-busy": true,
|
|
2394
2429
|
"aria-live": "polite"
|
|
2395
2430
|
};
|
|
2396
|
-
const _sfc_main$
|
|
2431
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2397
2432
|
__name: "LfSkeleton",
|
|
2398
2433
|
props: {
|
|
2399
2434
|
variant: { default: "text" },
|
|
@@ -2408,7 +2443,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2408
2443
|
return { width: last ? "60%" : props.width ?? "100%", height: props.height };
|
|
2409
2444
|
}
|
|
2410
2445
|
return (_ctx, _cache) => {
|
|
2411
|
-
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2446
|
+
return __props.lines > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
2412
2447
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (n) => {
|
|
2413
2448
|
return openBlock(), createElementBlock("span", {
|
|
2414
2449
|
key: n,
|
|
@@ -2425,24 +2460,24 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2425
2460
|
};
|
|
2426
2461
|
}
|
|
2427
2462
|
});
|
|
2428
|
-
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2429
|
-
const _hoisted_1$
|
|
2463
|
+
const LfSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-a01556ce"]]);
|
|
2464
|
+
const _hoisted_1$6 = {
|
|
2430
2465
|
class: "lf-stat__badge",
|
|
2431
2466
|
"aria-hidden": "true"
|
|
2432
2467
|
};
|
|
2433
|
-
const _hoisted_2$
|
|
2434
|
-
const _hoisted_3$
|
|
2435
|
-
const _hoisted_4$
|
|
2436
|
-
const _hoisted_5$
|
|
2437
|
-
const _hoisted_6$
|
|
2468
|
+
const _hoisted_2$6 = { class: "lf-stat__body" };
|
|
2469
|
+
const _hoisted_3$4 = { class: "lf-stat__label" };
|
|
2470
|
+
const _hoisted_4$3 = { class: "lf-stat__value-row" };
|
|
2471
|
+
const _hoisted_5$2 = { class: "lf-stat__value" };
|
|
2472
|
+
const _hoisted_6$2 = {
|
|
2438
2473
|
key: 0,
|
|
2439
2474
|
class: "lf-stat__unit"
|
|
2440
2475
|
};
|
|
2441
|
-
const _hoisted_7 = {
|
|
2476
|
+
const _hoisted_7$1 = {
|
|
2442
2477
|
key: 0,
|
|
2443
2478
|
class: "lf-stat__hint"
|
|
2444
2479
|
};
|
|
2445
|
-
const _sfc_main$
|
|
2480
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2446
2481
|
__name: "LfStatCard",
|
|
2447
2482
|
props: {
|
|
2448
2483
|
label: {},
|
|
@@ -2471,7 +2506,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2471
2506
|
class: normalizeClass(["lf-stat", [`lf-stat--${__props.tone}`, { "lf-stat--glass": __props.glass, "lf-stat--link": __props.href }]])
|
|
2472
2507
|
}, {
|
|
2473
2508
|
default: withCtx(() => [
|
|
2474
|
-
createElementVNode("span", _hoisted_1$
|
|
2509
|
+
createElementVNode("span", _hoisted_1$6, [
|
|
2475
2510
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2476
2511
|
createVNode(LfIcon, {
|
|
2477
2512
|
name: __props.icon,
|
|
@@ -2480,14 +2515,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2480
2515
|
}, null, 8, ["name", "path"])
|
|
2481
2516
|
], true)
|
|
2482
2517
|
]),
|
|
2483
|
-
createElementVNode("div", _hoisted_2$
|
|
2484
|
-
createElementVNode("div", _hoisted_3$
|
|
2485
|
-
createElementVNode("div", _hoisted_4$
|
|
2486
|
-
createElementVNode("span", _hoisted_5$
|
|
2518
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
2519
|
+
createElementVNode("div", _hoisted_3$4, toDisplayString(__props.label), 1),
|
|
2520
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
2521
|
+
createElementVNode("span", _hoisted_5$2, [
|
|
2487
2522
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2488
2523
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
2489
2524
|
], true),
|
|
2490
|
-
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2525
|
+
__props.unit ? (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(__props.unit), 1)) : createCommentVNode("", true)
|
|
2491
2526
|
]),
|
|
2492
2527
|
__props.delta != null ? (openBlock(), createElementBlock("span", {
|
|
2493
2528
|
key: 0,
|
|
@@ -2500,7 +2535,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2500
2535
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2501
2536
|
], 2)) : createCommentVNode("", true)
|
|
2502
2537
|
]),
|
|
2503
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2538
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$1, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2504
2539
|
])
|
|
2505
2540
|
]),
|
|
2506
2541
|
_: 3
|
|
@@ -2508,10 +2543,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2508
2543
|
};
|
|
2509
2544
|
}
|
|
2510
2545
|
});
|
|
2511
|
-
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2512
|
-
const _hoisted_1$
|
|
2513
|
-
const _hoisted_2$
|
|
2514
|
-
const _sfc_main$
|
|
2546
|
+
const LfStatCard = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-8499d382"]]);
|
|
2547
|
+
const _hoisted_1$5 = ["aria-describedby"];
|
|
2548
|
+
const _hoisted_2$5 = ["id"];
|
|
2549
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2515
2550
|
__name: "LfTooltip",
|
|
2516
2551
|
props: {
|
|
2517
2552
|
text: {},
|
|
@@ -2528,7 +2563,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2528
2563
|
"aria-describedby": unref(bubbleId)
|
|
2529
2564
|
}, [
|
|
2530
2565
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2531
|
-
], 8, _hoisted_1$
|
|
2566
|
+
], 8, _hoisted_1$5),
|
|
2532
2567
|
createElementVNode("span", {
|
|
2533
2568
|
id: unref(bubbleId),
|
|
2534
2569
|
class: "lf-tooltip__bubble",
|
|
@@ -2537,19 +2572,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2537
2572
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
2538
2573
|
createTextVNode(toDisplayString(__props.text), 1)
|
|
2539
2574
|
], true)
|
|
2540
|
-
], 8, _hoisted_2$
|
|
2575
|
+
], 8, _hoisted_2$5)
|
|
2541
2576
|
], 2);
|
|
2542
2577
|
};
|
|
2543
2578
|
}
|
|
2544
2579
|
});
|
|
2545
|
-
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2546
|
-
const _hoisted_1$
|
|
2547
|
-
const _hoisted_2$
|
|
2548
|
-
const _hoisted_3$
|
|
2580
|
+
const LfTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bfa77821"]]);
|
|
2581
|
+
const _hoisted_1$4 = ["disabled", "onClick"];
|
|
2582
|
+
const _hoisted_2$4 = { class: "lf-menu__item-text" };
|
|
2583
|
+
const _hoisted_3$3 = {
|
|
2549
2584
|
key: 0,
|
|
2550
2585
|
class: "lf-menu__item-desc"
|
|
2551
2586
|
};
|
|
2552
|
-
const _sfc_main$
|
|
2587
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2553
2588
|
__name: "LfMenu",
|
|
2554
2589
|
props: {
|
|
2555
2590
|
items: { default: () => [] },
|
|
@@ -2639,11 +2674,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2639
2674
|
size: "1.125rem",
|
|
2640
2675
|
class: "lf-menu__item-icon"
|
|
2641
2676
|
}), null, 16)) : createCommentVNode("", true),
|
|
2642
|
-
createElementVNode("span", _hoisted_2$
|
|
2677
|
+
createElementVNode("span", _hoisted_2$4, [
|
|
2643
2678
|
createElementVNode("span", null, toDisplayString(item.label), 1),
|
|
2644
|
-
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2679
|
+
item.description ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(item.description), 1)) : createCommentVNode("", true)
|
|
2645
2680
|
])
|
|
2646
|
-
], 8, _hoisted_1$
|
|
2681
|
+
], 8, _hoisted_1$4);
|
|
2647
2682
|
}), 128))
|
|
2648
2683
|
], true)
|
|
2649
2684
|
], 2)) : createCommentVNode("", true)
|
|
@@ -2654,17 +2689,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2654
2689
|
};
|
|
2655
2690
|
}
|
|
2656
2691
|
});
|
|
2657
|
-
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2658
|
-
const _hoisted_1$
|
|
2659
|
-
const _hoisted_2$
|
|
2660
|
-
const _hoisted_3 = {
|
|
2692
|
+
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-500f54dd"]]);
|
|
2693
|
+
const _hoisted_1$3 = { class: "lf-rail__list" };
|
|
2694
|
+
const _hoisted_2$3 = { class: "lf-rail__icon" };
|
|
2695
|
+
const _hoisted_3$2 = {
|
|
2661
2696
|
key: 2,
|
|
2662
2697
|
class: "lf-rail__badge"
|
|
2663
2698
|
};
|
|
2664
|
-
const _hoisted_4 = { class: "lf-rail__name" };
|
|
2665
|
-
const _hoisted_5 = { class: "lf-rail__short" };
|
|
2666
|
-
const _hoisted_6 = { class: "lf-rail__long" };
|
|
2667
|
-
const _sfc_main$
|
|
2699
|
+
const _hoisted_4$2 = { class: "lf-rail__name" };
|
|
2700
|
+
const _hoisted_5$1 = { class: "lf-rail__short" };
|
|
2701
|
+
const _hoisted_6$1 = { class: "lf-rail__long" };
|
|
2702
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2668
2703
|
__name: "LfNavRail",
|
|
2669
2704
|
props: {
|
|
2670
2705
|
items: {},
|
|
@@ -2683,7 +2718,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2683
2718
|
return props.current === item.to || props.current.startsWith(`${item.to}/`);
|
|
2684
2719
|
}
|
|
2685
2720
|
return (_ctx, _cache) => {
|
|
2686
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2721
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2687
2722
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
2688
2723
|
return openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({
|
|
2689
2724
|
key: item.to
|
|
@@ -2694,7 +2729,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2694
2729
|
onClick: ($event) => emit("navigate", item)
|
|
2695
2730
|
}), {
|
|
2696
2731
|
default: withCtx(() => [
|
|
2697
|
-
createElementVNode("span", _hoisted_2$
|
|
2732
|
+
createElementVNode("span", _hoisted_2$3, [
|
|
2698
2733
|
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2699
2734
|
key: 0,
|
|
2700
2735
|
path: item.iconPath,
|
|
@@ -2704,11 +2739,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2704
2739
|
name: item.icon,
|
|
2705
2740
|
size: "1.15rem"
|
|
2706
2741
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2707
|
-
item.badge ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2742
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2708
2743
|
]),
|
|
2709
|
-
createElementVNode("span", _hoisted_4, [
|
|
2710
|
-
createElementVNode("span", _hoisted_5, toDisplayString(item.short ?? item.label), 1),
|
|
2711
|
-
createElementVNode("span", _hoisted_6, toDisplayString(item.label), 1)
|
|
2744
|
+
createElementVNode("span", _hoisted_4$2, [
|
|
2745
|
+
createElementVNode("span", _hoisted_5$1, toDisplayString(item.short ?? item.label), 1),
|
|
2746
|
+
createElementVNode("span", _hoisted_6$1, toDisplayString(item.label), 1)
|
|
2712
2747
|
])
|
|
2713
2748
|
]),
|
|
2714
2749
|
_: 2
|
|
@@ -2718,7 +2753,433 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2718
2753
|
};
|
|
2719
2754
|
}
|
|
2720
2755
|
});
|
|
2721
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2756
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-29095523"]]);
|
|
2757
|
+
const _hoisted_1$2 = ["aria-label"];
|
|
2758
|
+
const _hoisted_2$2 = ["aria-checked", "aria-label", "title", "disabled", "onClick"];
|
|
2759
|
+
const _hoisted_3$1 = {
|
|
2760
|
+
key: 1,
|
|
2761
|
+
class: "lf-seg__label"
|
|
2762
|
+
};
|
|
2763
|
+
const _hoisted_4$1 = {
|
|
2764
|
+
key: 2,
|
|
2765
|
+
class: "lf-seg__badge"
|
|
2766
|
+
};
|
|
2767
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2768
|
+
__name: "LfSegmented",
|
|
2769
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2770
|
+
options: { default: () => [] },
|
|
2771
|
+
size: { default: "md" },
|
|
2772
|
+
labelHidden: { type: Boolean },
|
|
2773
|
+
block: { type: Boolean },
|
|
2774
|
+
disabled: { type: Boolean },
|
|
2775
|
+
ariaLabel: {}
|
|
2776
|
+
}, {
|
|
2777
|
+
"modelValue": { default: "" },
|
|
2778
|
+
"modelModifiers": {}
|
|
2779
|
+
}),
|
|
2780
|
+
emits: ["update:modelValue"],
|
|
2781
|
+
setup(__props) {
|
|
2782
|
+
const props = __props;
|
|
2783
|
+
const model = useModel(__props, "modelValue");
|
|
2784
|
+
const normalized = computed(
|
|
2785
|
+
() => props.options.map((o) => typeof o === "string" ? { value: o, label: o } : o)
|
|
2786
|
+
);
|
|
2787
|
+
function iconOf(opt) {
|
|
2788
|
+
if (!opt.icon) return {};
|
|
2789
|
+
return opt.icon in LF_ICONS ? { name: opt.icon } : { path: opt.icon };
|
|
2790
|
+
}
|
|
2791
|
+
return (_ctx, _cache) => {
|
|
2792
|
+
return openBlock(), createElementBlock("div", {
|
|
2793
|
+
class: normalizeClass(["lf-seg", [`lf-seg--${__props.size}`, { "lf-seg--block": __props.block }]]),
|
|
2794
|
+
role: "radiogroup",
|
|
2795
|
+
"aria-label": __props.ariaLabel
|
|
2796
|
+
}, [
|
|
2797
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
2798
|
+
return openBlock(), createElementBlock("button", {
|
|
2799
|
+
key: String(opt.value),
|
|
2800
|
+
type: "button",
|
|
2801
|
+
class: normalizeClass(["lf-seg__btn", { "lf-seg__btn--on": opt.value === model.value }]),
|
|
2802
|
+
role: "radio",
|
|
2803
|
+
"aria-checked": opt.value === model.value ? "true" : "false",
|
|
2804
|
+
"aria-label": __props.labelHidden ? opt.label : void 0,
|
|
2805
|
+
title: __props.labelHidden ? opt.label : void 0,
|
|
2806
|
+
disabled: __props.disabled || opt.disabled,
|
|
2807
|
+
onClick: ($event) => model.value = opt.value
|
|
2808
|
+
}, [
|
|
2809
|
+
opt.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
2810
|
+
key: 0,
|
|
2811
|
+
ref_for: true
|
|
2812
|
+
}, iconOf(opt), { class: "lf-seg__icon" }), null, 16)) : createCommentVNode("", true),
|
|
2813
|
+
!__props.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(opt.label), 1)) : createCommentVNode("", true),
|
|
2814
|
+
opt.badge !== void 0 && opt.badge !== "" ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(opt.badge), 1)) : createCommentVNode("", true)
|
|
2815
|
+
], 10, _hoisted_2$2);
|
|
2816
|
+
}), 128))
|
|
2817
|
+
], 10, _hoisted_1$2);
|
|
2818
|
+
};
|
|
2819
|
+
}
|
|
2820
|
+
});
|
|
2821
|
+
const LfSegmented = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4b9d64cc"]]);
|
|
2822
|
+
const _hoisted_1$1 = { class: "lf-control-wrap" };
|
|
2823
|
+
const _hoisted_2$1 = {
|
|
2824
|
+
key: 0,
|
|
2825
|
+
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
2826
|
+
};
|
|
2827
|
+
const _hoisted_3 = ["id", "aria-expanded", "aria-controls", "placeholder", "disabled", "required"];
|
|
2828
|
+
const _hoisted_4 = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
2829
|
+
const _hoisted_5 = { class: "lf-listsel__text" };
|
|
2830
|
+
const _hoisted_6 = ["aria-label"];
|
|
2831
|
+
const _hoisted_7 = {
|
|
2832
|
+
key: 4,
|
|
2833
|
+
class: "lf-control-wrap__icon lf-control-wrap__icon--right"
|
|
2834
|
+
};
|
|
2835
|
+
const _hoisted_8 = ["id"];
|
|
2836
|
+
const _hoisted_9 = ["placeholder"];
|
|
2837
|
+
const _hoisted_10 = ["aria-selected", "disabled", "onMousemove", "onClick"];
|
|
2838
|
+
const _hoisted_11 = { class: "lf-listsel__item-text" };
|
|
2839
|
+
const _hoisted_12 = {
|
|
2840
|
+
key: 0,
|
|
2841
|
+
class: "lf-listsel__item-desc"
|
|
2842
|
+
};
|
|
2843
|
+
const _hoisted_13 = {
|
|
2844
|
+
key: 1,
|
|
2845
|
+
class: "lf-listsel__empty"
|
|
2846
|
+
};
|
|
2847
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2848
|
+
...{ inheritAttrs: false },
|
|
2849
|
+
__name: "LfListSelect",
|
|
2850
|
+
props: /* @__PURE__ */ mergeModels({
|
|
2851
|
+
options: { default: () => [] },
|
|
2852
|
+
label: {},
|
|
2853
|
+
hint: {},
|
|
2854
|
+
error: {},
|
|
2855
|
+
required: { type: Boolean },
|
|
2856
|
+
placeholder: {},
|
|
2857
|
+
disabled: { type: Boolean },
|
|
2858
|
+
size: { default: "md" },
|
|
2859
|
+
searchable: { type: Boolean },
|
|
2860
|
+
editable: { type: Boolean },
|
|
2861
|
+
clearable: { type: Boolean },
|
|
2862
|
+
loading: { type: Boolean },
|
|
2863
|
+
emptyText: { default: "해당 없음" },
|
|
2864
|
+
searchPlaceholder: { default: "찾기" },
|
|
2865
|
+
clearLabel: { default: "지우기" }
|
|
2866
|
+
}, {
|
|
2867
|
+
"modelValue": { default: "" },
|
|
2868
|
+
"modelModifiers": {}
|
|
2869
|
+
}),
|
|
2870
|
+
emits: ["update:modelValue"],
|
|
2871
|
+
setup(__props) {
|
|
2872
|
+
const props = __props;
|
|
2873
|
+
const model = useModel(__props, "modelValue");
|
|
2874
|
+
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
2875
|
+
const inputId = useId();
|
|
2876
|
+
const listId = useId();
|
|
2877
|
+
const root = useTemplateRef("root");
|
|
2878
|
+
const control = useTemplateRef("control");
|
|
2879
|
+
const list = useTemplateRef("list");
|
|
2880
|
+
const search = useTemplateRef("search");
|
|
2881
|
+
const open = ref(false);
|
|
2882
|
+
const query = ref("");
|
|
2883
|
+
const active = ref(-1);
|
|
2884
|
+
const flipUp = ref(false);
|
|
2885
|
+
const listStyle = ref({});
|
|
2886
|
+
const text = ref(String(model.value ?? ""));
|
|
2887
|
+
watch(model, (v) => {
|
|
2888
|
+
if (props.editable && String(v ?? "") !== text.value) text.value = String(v ?? "");
|
|
2889
|
+
});
|
|
2890
|
+
watch(text, (v) => {
|
|
2891
|
+
if (props.editable && v !== String(model.value ?? "")) model.value = v;
|
|
2892
|
+
});
|
|
2893
|
+
const normalized = computed(
|
|
2894
|
+
() => props.options.map((o) => typeof o === "string" || typeof o === "number" ? { value: o, label: String(o) } : o)
|
|
2895
|
+
);
|
|
2896
|
+
const selected = computed(() => normalized.value.find((o) => o.value === model.value) ?? null);
|
|
2897
|
+
const hasValue = computed(() => props.editable ? text.value !== "" : model.value !== "" && model.value !== null);
|
|
2898
|
+
const filtered = computed(() => {
|
|
2899
|
+
const needle = (props.editable ? text.value : props.searchable ? query.value : "").trim().toLowerCase();
|
|
2900
|
+
if (!needle) return normalized.value;
|
|
2901
|
+
return normalized.value.filter(
|
|
2902
|
+
(o) => {
|
|
2903
|
+
var _a;
|
|
2904
|
+
return o.label.toLowerCase().includes(needle) || String(o.value).toLowerCase().includes(needle) || ((_a = o.description) == null ? void 0 : _a.toLowerCase().includes(needle));
|
|
2905
|
+
}
|
|
2906
|
+
);
|
|
2907
|
+
});
|
|
2908
|
+
function iconOf(opt) {
|
|
2909
|
+
if (!(opt == null ? void 0 : opt.icon)) return {};
|
|
2910
|
+
return opt.icon in LF_ICONS ? { name: opt.icon } : { path: opt.icon };
|
|
2911
|
+
}
|
|
2912
|
+
function place() {
|
|
2913
|
+
const el = control.value;
|
|
2914
|
+
if (!el) return;
|
|
2915
|
+
const r = el.getBoundingClientRect();
|
|
2916
|
+
const below = window.innerHeight - r.bottom;
|
|
2917
|
+
const wanted = Math.min(320, 40 * Math.max(filtered.value.length, 1) + 12 + (props.searchable ? 44 : 0));
|
|
2918
|
+
flipUp.value = below < wanted && r.top > below;
|
|
2919
|
+
listStyle.value = {
|
|
2920
|
+
left: `${r.left}px`,
|
|
2921
|
+
width: `${r.width}px`,
|
|
2922
|
+
...flipUp.value ? { bottom: `${window.innerHeight - r.top + 6}px` } : { top: `${r.bottom + 6}px` }
|
|
2923
|
+
};
|
|
2924
|
+
}
|
|
2925
|
+
async function show() {
|
|
2926
|
+
var _a;
|
|
2927
|
+
if (props.disabled || open.value) return;
|
|
2928
|
+
open.value = true;
|
|
2929
|
+
active.value = Math.max(0, filtered.value.findIndex((o) => o.value === model.value));
|
|
2930
|
+
await nextTick();
|
|
2931
|
+
place();
|
|
2932
|
+
if (props.searchable && !props.editable) (_a = search.value) == null ? void 0 : _a.focus();
|
|
2933
|
+
}
|
|
2934
|
+
function hide() {
|
|
2935
|
+
open.value = false;
|
|
2936
|
+
query.value = "";
|
|
2937
|
+
}
|
|
2938
|
+
function toggle() {
|
|
2939
|
+
open.value ? hide() : show();
|
|
2940
|
+
}
|
|
2941
|
+
function pick(opt) {
|
|
2942
|
+
var _a;
|
|
2943
|
+
if (opt.disabled) return;
|
|
2944
|
+
model.value = opt.value;
|
|
2945
|
+
if (props.editable) text.value = opt.label;
|
|
2946
|
+
hide();
|
|
2947
|
+
(_a = control.value) == null ? void 0 : _a.focus();
|
|
2948
|
+
}
|
|
2949
|
+
function clear() {
|
|
2950
|
+
var _a;
|
|
2951
|
+
model.value = props.editable ? "" : null;
|
|
2952
|
+
text.value = "";
|
|
2953
|
+
(_a = control.value) == null ? void 0 : _a.focus();
|
|
2954
|
+
}
|
|
2955
|
+
function onKeydown(e2) {
|
|
2956
|
+
var _a, _b;
|
|
2957
|
+
if (e2.key === "Escape") {
|
|
2958
|
+
if (open.value) {
|
|
2959
|
+
e2.stopPropagation();
|
|
2960
|
+
hide();
|
|
2961
|
+
}
|
|
2962
|
+
return;
|
|
2963
|
+
}
|
|
2964
|
+
if (e2.key === "ArrowDown" || e2.key === "ArrowUp") {
|
|
2965
|
+
e2.preventDefault();
|
|
2966
|
+
if (!open.value) {
|
|
2967
|
+
show();
|
|
2968
|
+
return;
|
|
2969
|
+
}
|
|
2970
|
+
const n = filtered.value.length;
|
|
2971
|
+
if (!n) return;
|
|
2972
|
+
active.value = (active.value + (e2.key === "ArrowDown" ? 1 : -1) + n) % n;
|
|
2973
|
+
(_b = (_a = list.value) == null ? void 0 : _a.querySelectorAll("[role=option]")[active.value]) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
|
|
2974
|
+
return;
|
|
2975
|
+
}
|
|
2976
|
+
if (e2.key === "Enter") {
|
|
2977
|
+
if (!open.value) return;
|
|
2978
|
+
const opt = filtered.value[active.value];
|
|
2979
|
+
if (opt) {
|
|
2980
|
+
e2.preventDefault();
|
|
2981
|
+
pick(opt);
|
|
2982
|
+
} else if (props.editable) hide();
|
|
2983
|
+
return;
|
|
2984
|
+
}
|
|
2985
|
+
if ((e2.key === " " || e2.key === "Spacebar") && !props.editable && !props.searchable) {
|
|
2986
|
+
e2.preventDefault();
|
|
2987
|
+
toggle();
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
function onFocusOut(e2) {
|
|
2991
|
+
var _a, _b;
|
|
2992
|
+
const next = e2.relatedTarget;
|
|
2993
|
+
if (next && (((_a = root.value) == null ? void 0 : _a.contains(next)) || ((_b = list.value) == null ? void 0 : _b.contains(next)))) return;
|
|
2994
|
+
hide();
|
|
2995
|
+
}
|
|
2996
|
+
function onPointerDown(e2) {
|
|
2997
|
+
var _a, _b;
|
|
2998
|
+
const t = e2.target;
|
|
2999
|
+
if (!((_a = root.value) == null ? void 0 : _a.contains(t)) && !((_b = list.value) == null ? void 0 : _b.contains(t))) hide();
|
|
3000
|
+
}
|
|
3001
|
+
function onScroll(e2) {
|
|
3002
|
+
if (list.value && list.value.contains(e2.target)) return;
|
|
3003
|
+
hide();
|
|
3004
|
+
}
|
|
3005
|
+
watch(open, (isOpen) => {
|
|
3006
|
+
if (isOpen) {
|
|
3007
|
+
document.addEventListener("pointerdown", onPointerDown);
|
|
3008
|
+
document.addEventListener("scroll", onScroll, true);
|
|
3009
|
+
window.addEventListener("resize", hide);
|
|
3010
|
+
} else {
|
|
3011
|
+
document.removeEventListener("pointerdown", onPointerDown);
|
|
3012
|
+
document.removeEventListener("scroll", onScroll, true);
|
|
3013
|
+
window.removeEventListener("resize", hide);
|
|
3014
|
+
}
|
|
3015
|
+
});
|
|
3016
|
+
watch(filtered, () => {
|
|
3017
|
+
if (open.value) {
|
|
3018
|
+
active.value = Math.min(active.value, filtered.value.length - 1);
|
|
3019
|
+
place();
|
|
3020
|
+
}
|
|
3021
|
+
});
|
|
3022
|
+
onBeforeUnmount(() => {
|
|
3023
|
+
document.removeEventListener("pointerdown", onPointerDown);
|
|
3024
|
+
document.removeEventListener("scroll", onScroll, true);
|
|
3025
|
+
window.removeEventListener("resize", hide);
|
|
3026
|
+
});
|
|
3027
|
+
return (_ctx, _cache) => {
|
|
3028
|
+
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
3029
|
+
label: __props.label,
|
|
3030
|
+
hint: __props.hint,
|
|
3031
|
+
error: __props.error,
|
|
3032
|
+
required: __props.required,
|
|
3033
|
+
"html-for": unref(inputId)
|
|
3034
|
+
}), {
|
|
3035
|
+
default: withCtx(() => {
|
|
3036
|
+
var _a, _b;
|
|
3037
|
+
return [
|
|
3038
|
+
createElementVNode("div", {
|
|
3039
|
+
ref_key: "root",
|
|
3040
|
+
ref: root,
|
|
3041
|
+
class: "lf-listsel",
|
|
3042
|
+
onFocusout: onFocusOut
|
|
3043
|
+
}, [
|
|
3044
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
3045
|
+
!__props.editable && ((_a = selected.value) == null ? void 0 : _a.icon) ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
|
|
3046
|
+
createVNode(LfIcon, mergeProps(iconOf(selected.value), { size: "1.125rem" }), null, 16)
|
|
3047
|
+
])) : createCommentVNode("", true),
|
|
3048
|
+
__props.editable ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
3049
|
+
key: 1,
|
|
3050
|
+
id: unref(inputId),
|
|
3051
|
+
ref_key: "control",
|
|
3052
|
+
ref: control
|
|
3053
|
+
}, unref(controlAttrs), {
|
|
3054
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => text.value = $event),
|
|
3055
|
+
class: ["lf-control lf-control--has-right", [{ "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error }]],
|
|
3056
|
+
type: "text",
|
|
3057
|
+
role: "combobox",
|
|
3058
|
+
autocomplete: "off",
|
|
3059
|
+
"aria-expanded": open.value ? "true" : "false",
|
|
3060
|
+
"aria-controls": unref(listId),
|
|
3061
|
+
placeholder: __props.placeholder,
|
|
3062
|
+
disabled: __props.disabled,
|
|
3063
|
+
required: __props.required,
|
|
3064
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => show()),
|
|
3065
|
+
onInput: _cache[2] || (_cache[2] = ($event) => show()),
|
|
3066
|
+
onKeydown
|
|
3067
|
+
}), null, 16, _hoisted_3)), [
|
|
3068
|
+
[vModelText, text.value]
|
|
3069
|
+
]) : (openBlock(), createElementBlock("button", mergeProps({
|
|
3070
|
+
key: 2,
|
|
3071
|
+
id: unref(inputId),
|
|
3072
|
+
ref_key: "control",
|
|
3073
|
+
ref: control
|
|
3074
|
+
}, unref(controlAttrs), {
|
|
3075
|
+
type: "button",
|
|
3076
|
+
class: ["lf-control lf-listsel__trigger lf-control--has-right", [
|
|
3077
|
+
{ "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error, "lf-listsel__trigger--empty": !selected.value },
|
|
3078
|
+
((_b = selected.value) == null ? void 0 : _b.icon) && "lf-control--has-left"
|
|
3079
|
+
]],
|
|
3080
|
+
role: "combobox",
|
|
3081
|
+
"aria-haspopup": "listbox",
|
|
3082
|
+
"aria-expanded": open.value ? "true" : "false",
|
|
3083
|
+
"aria-controls": unref(listId),
|
|
3084
|
+
disabled: __props.disabled,
|
|
3085
|
+
onClick: toggle,
|
|
3086
|
+
onKeydown
|
|
3087
|
+
}), [
|
|
3088
|
+
renderSlot(_ctx.$slots, "selected", { option: selected.value }, () => [
|
|
3089
|
+
createElementVNode("span", _hoisted_5, toDisplayString(selected.value ? selected.value.label : __props.placeholder), 1)
|
|
3090
|
+
], true)
|
|
3091
|
+
], 16, _hoisted_4)),
|
|
3092
|
+
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createElementBlock("button", {
|
|
3093
|
+
key: 3,
|
|
3094
|
+
type: "button",
|
|
3095
|
+
class: "lf-listsel__clear",
|
|
3096
|
+
"aria-label": __props.clearLabel,
|
|
3097
|
+
onClick: withModifiers(clear, ["stop"])
|
|
3098
|
+
}, [
|
|
3099
|
+
createVNode(LfIcon, {
|
|
3100
|
+
name: "close",
|
|
3101
|
+
size: "1rem"
|
|
3102
|
+
})
|
|
3103
|
+
], 8, _hoisted_6)) : (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
3104
|
+
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
3105
|
+
key: 0,
|
|
3106
|
+
size: "1rem"
|
|
3107
|
+
})) : (openBlock(), createBlock(LfIcon, {
|
|
3108
|
+
key: 1,
|
|
3109
|
+
name: "expand_more",
|
|
3110
|
+
size: "1.125rem"
|
|
3111
|
+
}))
|
|
3112
|
+
]))
|
|
3113
|
+
]),
|
|
3114
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
3115
|
+
createVNode(Transition, { name: "lf-listsel-fade" }, {
|
|
3116
|
+
default: withCtx(() => [
|
|
3117
|
+
open.value ? (openBlock(), createElementBlock("div", {
|
|
3118
|
+
key: 0,
|
|
3119
|
+
id: unref(listId),
|
|
3120
|
+
ref_key: "list",
|
|
3121
|
+
ref: list,
|
|
3122
|
+
class: normalizeClass(["lf-listsel__list", { "lf-listsel__list--up": flipUp.value }]),
|
|
3123
|
+
style: normalizeStyle(listStyle.value),
|
|
3124
|
+
role: "listbox",
|
|
3125
|
+
onFocusout: onFocusOut
|
|
3126
|
+
}, [
|
|
3127
|
+
__props.searchable && !__props.editable ? withDirectives((openBlock(), createElementBlock("input", {
|
|
3128
|
+
key: 0,
|
|
3129
|
+
ref_key: "search",
|
|
3130
|
+
ref: search,
|
|
3131
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => query.value = $event),
|
|
3132
|
+
class: "lf-listsel__search",
|
|
3133
|
+
type: "search",
|
|
3134
|
+
placeholder: __props.searchPlaceholder,
|
|
3135
|
+
autocomplete: "off",
|
|
3136
|
+
onKeydown
|
|
3137
|
+
}, null, 40, _hoisted_9)), [
|
|
3138
|
+
[vModelText, query.value]
|
|
3139
|
+
]) : createCommentVNode("", true),
|
|
3140
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(filtered.value, (opt, index) => {
|
|
3141
|
+
return openBlock(), createElementBlock("button", {
|
|
3142
|
+
key: String(opt.value),
|
|
3143
|
+
type: "button",
|
|
3144
|
+
class: normalizeClass(["lf-listsel__item", { "lf-listsel__item--active": index === active.value, "lf-listsel__item--on": opt.value === model.value }]),
|
|
3145
|
+
role: "option",
|
|
3146
|
+
"aria-selected": opt.value === model.value ? "true" : "false",
|
|
3147
|
+
disabled: opt.disabled,
|
|
3148
|
+
onMousemove: ($event) => active.value = index,
|
|
3149
|
+
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
3150
|
+
}, ["prevent"])),
|
|
3151
|
+
onClick: ($event) => pick(opt)
|
|
3152
|
+
}, [
|
|
3153
|
+
renderSlot(_ctx.$slots, "option", { option: opt }, () => [
|
|
3154
|
+
opt.icon ? (openBlock(), createBlock(LfIcon, mergeProps({
|
|
3155
|
+
key: 0,
|
|
3156
|
+
ref_for: true
|
|
3157
|
+
}, iconOf(opt), {
|
|
3158
|
+
size: "1.125rem",
|
|
3159
|
+
class: "lf-listsel__item-icon"
|
|
3160
|
+
}), null, 16)) : createCommentVNode("", true),
|
|
3161
|
+
createElementVNode("span", _hoisted_11, [
|
|
3162
|
+
createElementVNode("span", null, toDisplayString(opt.label), 1),
|
|
3163
|
+
opt.description ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
3164
|
+
])
|
|
3165
|
+
], true)
|
|
3166
|
+
], 42, _hoisted_10);
|
|
3167
|
+
}), 128)),
|
|
3168
|
+
!filtered.value.length ? (openBlock(), createElementBlock("div", _hoisted_13, toDisplayString(__props.emptyText), 1)) : createCommentVNode("", true)
|
|
3169
|
+
], 46, _hoisted_8)) : createCommentVNode("", true)
|
|
3170
|
+
]),
|
|
3171
|
+
_: 3
|
|
3172
|
+
})
|
|
3173
|
+
]))
|
|
3174
|
+
], 544)
|
|
3175
|
+
];
|
|
3176
|
+
}),
|
|
3177
|
+
_: 3
|
|
3178
|
+
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
3179
|
+
};
|
|
3180
|
+
}
|
|
3181
|
+
});
|
|
3182
|
+
const LfListSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-60c3b796"]]);
|
|
2722
3183
|
const _hoisted_1 = {
|
|
2723
3184
|
key: 0,
|
|
2724
3185
|
class: "lf-divider lf-divider--labeled",
|
|
@@ -2903,12 +3364,14 @@ export {
|
|
|
2903
3364
|
LfField,
|
|
2904
3365
|
LfIcon,
|
|
2905
3366
|
LfIconButton,
|
|
3367
|
+
LfListSelect,
|
|
2906
3368
|
LfMenu,
|
|
2907
3369
|
LfModal,
|
|
2908
3370
|
LfNavRail,
|
|
2909
3371
|
LfPageHeader,
|
|
2910
3372
|
LfPagination,
|
|
2911
3373
|
LfRadioGroup,
|
|
3374
|
+
LfSegmented,
|
|
2912
3375
|
LfSelect,
|
|
2913
3376
|
LfSkeleton,
|
|
2914
3377
|
LfSpinner,
|