@loafacto/ui 0.23.2 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LfSegmented-D2zAGi24.js +182 -0
- package/dist/LfSegmented-D2zAGi24.js.map +1 -0
- package/dist/{LfSegmented-CvGl-0vv.js → LfSelect-BrK4QbUk.js} +137 -116
- package/dist/LfSelect-BrK4QbUk.js.map +1 -0
- package/dist/LfSwitch-BD05yyB3.js +119 -0
- package/dist/LfSwitch-BD05yyB3.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +152 -456
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +967 -414
- package/dist/map-editor/LfMapEditor.vue.d.ts +126 -0
- package/dist/map-editor/MapEditorCanvas.vue.d.ts +19 -0
- package/dist/map-editor/doc.d.ts +134 -0
- package/dist/map-editor/editor.d.ts +149 -0
- package/dist/map-editor.d.ts +19 -0
- package/dist/map-editor.js +2096 -0
- package/dist/map-editor.js.map +1 -0
- package/dist/map3d/LfModelEditor.vue.d.ts +19 -0
- package/dist/map3d/LfModelViewer.vue.d.ts +28 -0
- package/dist/map3d/MapScene.d.ts +9 -0
- package/dist/map3d/ModelScene.d.ts +43 -0
- package/dist/map3d/model.d.ts +54 -0
- package/dist/map3d/types.d.ts +81 -1
- package/dist/map3d.d.ts +5 -1
- package/dist/map3d.js +1208 -31
- package/dist/map3d.js.map +1 -1
- package/package.json +5 -1
- package/dist/LfSegmented-CvGl-0vv.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, createElementVNode, createCommentVNode, readonly, ref, computed, withCtx, nextTick, createStaticVNode, watch, onBeforeUnmount, normalizeStyle, Fragment, toDisplayString, createVNode, Transition, renderList, onUnmounted, Teleport, TransitionGroup, unref, withModifiers, useTemplateRef, onMounted, createTextVNode, withDirectives, withKeys, vModelText,
|
|
2
|
-
import { L as LfIcon, _ as _export_sfc,
|
|
3
|
-
import { e, f } from "./
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, createElementVNode, createCommentVNode, readonly, ref, computed, withCtx, nextTick, createStaticVNode, watch, onBeforeUnmount, normalizeStyle, Fragment, toDisplayString, createVNode, Transition, renderList, onUnmounted, Teleport, TransitionGroup, unref, withModifiers, useTemplateRef, onMounted, createTextVNode, withDirectives, withKeys, vModelText, useModel, useId, mergeProps, mergeModels, vModelCheckbox, vModelRadio, resolveDynamicComponent, useSlots, vShow } from "vue";
|
|
2
|
+
import { L as LfIcon, _ as _export_sfc, u as useSplitAttrs, a as LfField, b as LfIconButton, c as LF_ICONS, d as LfSpinner } from "./LfSelect-BrK4QbUk.js";
|
|
3
|
+
import { e, f } from "./LfSelect-BrK4QbUk.js";
|
|
4
4
|
import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-8AxcQbPB.js";
|
|
5
5
|
import { b, c, d, e as e2, f as f2, h, i, l } from "./applyTheme-8AxcQbPB.js";
|
|
6
6
|
import { defineStore } from "pinia";
|
|
7
|
+
import { L as LfButton } from "./LfSwitch-BD05yyB3.js";
|
|
8
|
+
import { a } from "./LfSwitch-BD05yyB3.js";
|
|
9
|
+
import { L, a as a2 } from "./LfSegmented-D2zAGi24.js";
|
|
7
10
|
const LOAFACTO_SERVICES = [
|
|
8
11
|
{
|
|
9
12
|
/**
|
|
@@ -69,14 +72,14 @@ function serviceIdForPath(pathname, services = LOAFACTO_SERVICES) {
|
|
|
69
72
|
function isServicePath(pathname, services = LOAFACTO_SERVICES) {
|
|
70
73
|
return services.some((s) => isUnder(pathname, s.path));
|
|
71
74
|
}
|
|
72
|
-
const _hoisted_1$
|
|
73
|
-
const _hoisted_2$
|
|
75
|
+
const _hoisted_1$L = ["title", "aria-label", "aria-expanded"];
|
|
76
|
+
const _hoisted_2$F = {
|
|
74
77
|
key: 1,
|
|
75
78
|
viewBox: "0 0 24 24",
|
|
76
79
|
"aria-hidden": "true"
|
|
77
80
|
};
|
|
78
|
-
const _hoisted_3$
|
|
79
|
-
const _sfc_main$
|
|
81
|
+
const _hoisted_3$y = ["d"];
|
|
82
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
80
83
|
__name: "LfShellButton",
|
|
81
84
|
props: {
|
|
82
85
|
label: {},
|
|
@@ -101,11 +104,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
101
104
|
key: 0,
|
|
102
105
|
name: __props.icon,
|
|
103
106
|
size: "1.125rem"
|
|
104
|
-
}, null, 8, ["name"])) : __props.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_2$
|
|
107
|
+
}, null, 8, ["name"])) : __props.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_2$F, [
|
|
105
108
|
createElementVNode("path", {
|
|
106
109
|
d: __props.iconPath,
|
|
107
110
|
fill: "currentColor"
|
|
108
|
-
}, null, 8, _hoisted_3$
|
|
111
|
+
}, null, 8, _hoisted_3$y)
|
|
109
112
|
])) : createCommentVNode("", true)
|
|
110
113
|
], true),
|
|
111
114
|
__props.dot ? (openBlock(), createElementBlock("span", {
|
|
@@ -113,11 +116,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
113
116
|
class: "lf-shell-btn__dot",
|
|
114
117
|
"aria-hidden": "true"
|
|
115
118
|
})) : createCommentVNode("", true)
|
|
116
|
-
], 10, _hoisted_1$
|
|
119
|
+
], 10, _hoisted_1$L);
|
|
117
120
|
};
|
|
118
121
|
}
|
|
119
122
|
});
|
|
120
|
-
const LfShellButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
123
|
+
const LfShellButton = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-de6738d7"]]);
|
|
121
124
|
const STORAGE_KEY = "lf-theme";
|
|
122
125
|
const OS_QUERY = "(prefers-color-scheme: light)";
|
|
123
126
|
function readStored() {
|
|
@@ -198,10 +201,10 @@ function useTheme() {
|
|
|
198
201
|
}
|
|
199
202
|
};
|
|
200
203
|
}
|
|
201
|
-
const _hoisted_1$
|
|
204
|
+
const _hoisted_1$K = ["d"];
|
|
202
205
|
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";
|
|
203
206
|
const ICON_MOON = "M12.3 3a7 7 0 1 0 8.7 8.7A9 9 0 1 1 12.3 3z";
|
|
204
|
-
const _sfc_main$
|
|
207
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
205
208
|
__name: "LfThemeToggle",
|
|
206
209
|
props: {
|
|
207
210
|
mode: { default: void 0 },
|
|
@@ -256,7 +259,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
256
259
|
createElementVNode("path", {
|
|
257
260
|
d: current.value === "dark" ? ICON_MOON : ICON_SUN,
|
|
258
261
|
fill: "currentColor"
|
|
259
|
-
}, null, 8, _hoisted_1$
|
|
262
|
+
}, null, 8, _hoisted_1$K)
|
|
260
263
|
], 2))
|
|
261
264
|
]),
|
|
262
265
|
_: 1
|
|
@@ -264,27 +267,27 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
264
267
|
};
|
|
265
268
|
}
|
|
266
269
|
});
|
|
267
|
-
const LfThemeToggle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
268
|
-
const _sfc_main$
|
|
269
|
-
const _hoisted_1$
|
|
270
|
+
const LfThemeToggle = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-ea1dae0b"]]);
|
|
271
|
+
const _sfc_main$L = {};
|
|
272
|
+
const _hoisted_1$J = {
|
|
270
273
|
xmlns: "http://www.w3.org/2000/svg",
|
|
271
274
|
viewBox: "-24.0 -113.9 585.9 157.9",
|
|
272
275
|
"aria-hidden": "true"
|
|
273
276
|
};
|
|
274
277
|
function _sfc_render$1(_ctx, _cache) {
|
|
275
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
278
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$J, [..._cache[0] || (_cache[0] = [
|
|
276
279
|
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)
|
|
277
280
|
])]);
|
|
278
281
|
}
|
|
279
|
-
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
280
|
-
const _sfc_main$
|
|
281
|
-
const _hoisted_1$
|
|
282
|
+
const BrandLockup = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$1]]);
|
|
283
|
+
const _sfc_main$K = {};
|
|
284
|
+
const _hoisted_1$I = {
|
|
282
285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
283
286
|
viewBox: "30 -4 142 168",
|
|
284
287
|
"aria-hidden": "true"
|
|
285
288
|
};
|
|
286
289
|
function _sfc_render(_ctx, _cache) {
|
|
287
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
290
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$I, [..._cache[0] || (_cache[0] = [
|
|
288
291
|
createElementVNode("circle", {
|
|
289
292
|
cx: "74",
|
|
290
293
|
cy: "27",
|
|
@@ -307,12 +310,12 @@ function _sfc_render(_ctx, _cache) {
|
|
|
307
310
|
}, null, -1)
|
|
308
311
|
])]);
|
|
309
312
|
}
|
|
310
|
-
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
311
|
-
const _hoisted_1$
|
|
312
|
-
const _hoisted_2$
|
|
313
|
-
const _hoisted_3$
|
|
314
|
-
const _hoisted_4$
|
|
315
|
-
const _hoisted_5$
|
|
313
|
+
const BrandSymbol = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render]]);
|
|
314
|
+
const _hoisted_1$H = { class: "lf-topbar" };
|
|
315
|
+
const _hoisted_2$E = { class: "lf-topbar__inner" };
|
|
316
|
+
const _hoisted_3$x = ["aria-label", "title", "aria-expanded"];
|
|
317
|
+
const _hoisted_4$s = ["href", "aria-label"];
|
|
318
|
+
const _hoisted_5$q = ["src"];
|
|
316
319
|
const _hoisted_6$k = { class: "lf-brand__name" };
|
|
317
320
|
const _hoisted_7$h = ["aria-expanded"];
|
|
318
321
|
const _hoisted_8$7 = {
|
|
@@ -366,7 +369,7 @@ const _hoisted_28 = {
|
|
|
366
369
|
const _hoisted_29 = { class: "site-footer" };
|
|
367
370
|
const _hoisted_30 = { class: "site-footer-inner" };
|
|
368
371
|
const RAIL_KEY = "lf-rail-hidden";
|
|
369
|
-
const _sfc_main$
|
|
372
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
370
373
|
__name: "AppShell",
|
|
371
374
|
props: {
|
|
372
375
|
services: { default: () => LOAFACTO_SERVICES },
|
|
@@ -499,8 +502,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
499
502
|
backgroundImage: __props.backgroundImage ? `url(${__props.backgroundImage})` : void 0
|
|
500
503
|
})
|
|
501
504
|
}, null, 4)) : createCommentVNode("", true),
|
|
502
|
-
createElementVNode("header", _hoisted_1$
|
|
503
|
-
createElementVNode("div", _hoisted_2$
|
|
505
|
+
createElementVNode("header", _hoisted_1$H, [
|
|
506
|
+
createElementVNode("div", _hoisted_2$E, [
|
|
504
507
|
_ctx.$slots.rail ? (openBlock(), createElementBlock("button", {
|
|
505
508
|
key: 0,
|
|
506
509
|
type: "button",
|
|
@@ -519,7 +522,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
519
522
|
fill: "currentColor"
|
|
520
523
|
})
|
|
521
524
|
], -1)
|
|
522
|
-
])], 8, _hoisted_3$
|
|
525
|
+
])], 8, _hoisted_3$x)) : createCommentVNode("", true),
|
|
523
526
|
createElementVNode("a", {
|
|
524
527
|
class: "lf-brand",
|
|
525
528
|
href: __props.brandHref,
|
|
@@ -531,13 +534,13 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
531
534
|
src: __props.logoUrl,
|
|
532
535
|
alt: "",
|
|
533
536
|
class: "lf-brand__logo"
|
|
534
|
-
}, null, 8, _hoisted_5$
|
|
537
|
+
}, null, 8, _hoisted_5$q),
|
|
535
538
|
createElementVNode("span", _hoisted_6$k, toDisplayString(__props.brandName), 1)
|
|
536
539
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
537
540
|
createVNode(BrandLockup, { class: "lf-brand__lockup" }),
|
|
538
541
|
createVNode(BrandSymbol, { class: "lf-brand__symbol" })
|
|
539
542
|
], 64))
|
|
540
|
-
], 8, _hoisted_4$
|
|
543
|
+
], 8, _hoisted_4$s),
|
|
541
544
|
__props.services.length ? (openBlock(), createElementBlock("div", {
|
|
542
545
|
key: 1,
|
|
543
546
|
ref_key: "switcherEl",
|
|
@@ -708,7 +711,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
708
711
|
};
|
|
709
712
|
}
|
|
710
713
|
});
|
|
711
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
714
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-a695debc"]]);
|
|
712
715
|
function generateId() {
|
|
713
716
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
714
717
|
}
|
|
@@ -742,26 +745,26 @@ const useToastStore = defineStore("toast", () => {
|
|
|
742
745
|
}
|
|
743
746
|
return { items, add, remove, success, error, info, warning };
|
|
744
747
|
});
|
|
745
|
-
const _hoisted_1$
|
|
748
|
+
const _hoisted_1$G = {
|
|
746
749
|
class: "toast-container",
|
|
747
750
|
role: "region",
|
|
748
751
|
"aria-label": "알림"
|
|
749
752
|
};
|
|
750
|
-
const _hoisted_2$
|
|
751
|
-
const _hoisted_3$
|
|
753
|
+
const _hoisted_2$D = ["onClick"];
|
|
754
|
+
const _hoisted_3$w = {
|
|
752
755
|
class: "toast-icon",
|
|
753
756
|
viewBox: "0 0 24 24",
|
|
754
757
|
"aria-hidden": "true"
|
|
755
758
|
};
|
|
756
|
-
const _hoisted_4$
|
|
757
|
-
const _hoisted_5$
|
|
759
|
+
const _hoisted_4$r = ["d"];
|
|
760
|
+
const _hoisted_5$p = { class: "toast-message" };
|
|
758
761
|
const _hoisted_6$j = ["onClick"];
|
|
759
762
|
const _hoisted_7$g = {
|
|
760
763
|
viewBox: "0 0 24 24",
|
|
761
764
|
"aria-hidden": "true"
|
|
762
765
|
};
|
|
763
766
|
const _hoisted_8$6 = ["d"];
|
|
764
|
-
const _sfc_main$
|
|
767
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
765
768
|
__name: "AppToast",
|
|
766
769
|
setup(__props) {
|
|
767
770
|
const toastStore = useToastStore();
|
|
@@ -793,7 +796,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
793
796
|
});
|
|
794
797
|
return (_ctx, _cache) => {
|
|
795
798
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
796
|
-
createElementVNode("div", _hoisted_1$
|
|
799
|
+
createElementVNode("div", _hoisted_1$G, [
|
|
797
800
|
createVNode(TransitionGroup, { name: "toast" }, {
|
|
798
801
|
default: withCtx(() => [
|
|
799
802
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(toastStore).items, (item) => {
|
|
@@ -803,13 +806,13 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
803
806
|
role: "alert",
|
|
804
807
|
onClick: ($event) => unref(toastStore).remove(item.id)
|
|
805
808
|
}, [
|
|
806
|
-
(openBlock(), createElementBlock("svg", _hoisted_3$
|
|
809
|
+
(openBlock(), createElementBlock("svg", _hoisted_3$w, [
|
|
807
810
|
createElementVNode("path", {
|
|
808
811
|
d: ICON_PATHS[item.type],
|
|
809
812
|
fill: "currentColor"
|
|
810
|
-
}, null, 8, _hoisted_4$
|
|
813
|
+
}, null, 8, _hoisted_4$r)
|
|
811
814
|
])),
|
|
812
|
-
createElementVNode("span", _hoisted_5$
|
|
815
|
+
createElementVNode("span", _hoisted_5$p, toDisplayString(item.message), 1),
|
|
813
816
|
createElementVNode("button", {
|
|
814
817
|
type: "button",
|
|
815
818
|
class: "toast-close",
|
|
@@ -823,7 +826,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
823
826
|
}, null, 8, _hoisted_8$6)
|
|
824
827
|
]))
|
|
825
828
|
], 8, _hoisted_6$j)
|
|
826
|
-
], 10, _hoisted_2$
|
|
829
|
+
], 10, _hoisted_2$D);
|
|
827
830
|
}), 128))
|
|
828
831
|
]),
|
|
829
832
|
_: 1
|
|
@@ -833,7 +836,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
833
836
|
};
|
|
834
837
|
}
|
|
835
838
|
});
|
|
836
|
-
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
839
|
+
const AppToast = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-58e54e0c"]]);
|
|
837
840
|
const useLoadingStore = defineStore("loading", () => {
|
|
838
841
|
const count = ref(0);
|
|
839
842
|
const loading = computed(() => count.value > 0);
|
|
@@ -853,14 +856,14 @@ const useLoadingStore = defineStore("loading", () => {
|
|
|
853
856
|
}
|
|
854
857
|
return { loading, count, start, stop, withLoading };
|
|
855
858
|
});
|
|
856
|
-
const _hoisted_1$
|
|
859
|
+
const _hoisted_1$F = {
|
|
857
860
|
key: 0,
|
|
858
861
|
class: "loading-overlay",
|
|
859
862
|
role: "status",
|
|
860
863
|
"aria-live": "polite",
|
|
861
864
|
"aria-label": "로딩 중"
|
|
862
865
|
};
|
|
863
|
-
const _sfc_main$
|
|
866
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
864
867
|
__name: "AppLoadingOverlay",
|
|
865
868
|
setup(__props) {
|
|
866
869
|
const loadingStore = useLoadingStore();
|
|
@@ -868,7 +871,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
868
871
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
869
872
|
createVNode(Transition, { name: "fade" }, {
|
|
870
873
|
default: withCtx(() => [
|
|
871
|
-
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
874
|
+
unref(loadingStore).loading ? (openBlock(), createElementBlock("div", _hoisted_1$F, [..._cache[0] || (_cache[0] = [
|
|
872
875
|
createElementVNode("div", {
|
|
873
876
|
class: "loading-spinner",
|
|
874
877
|
"aria-hidden": "true"
|
|
@@ -881,7 +884,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
881
884
|
};
|
|
882
885
|
}
|
|
883
886
|
});
|
|
884
|
-
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
887
|
+
const AppLoadingOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-cce3ea3e"]]);
|
|
885
888
|
const useConfirmStore = defineStore("confirm", () => {
|
|
886
889
|
const open = ref(false);
|
|
887
890
|
const title = ref("확인");
|
|
@@ -929,18 +932,18 @@ const useConfirmStore = defineStore("confirm", () => {
|
|
|
929
932
|
resolve
|
|
930
933
|
};
|
|
931
934
|
});
|
|
932
|
-
const _hoisted_1$
|
|
935
|
+
const _hoisted_1$E = {
|
|
933
936
|
key: 0,
|
|
934
937
|
class: "app-confirm-backdrop"
|
|
935
938
|
};
|
|
936
|
-
const _hoisted_2$
|
|
939
|
+
const _hoisted_2$C = {
|
|
937
940
|
class: "app-confirm",
|
|
938
941
|
role: "dialog",
|
|
939
942
|
"aria-modal": "true"
|
|
940
943
|
};
|
|
941
|
-
const _hoisted_3$
|
|
942
|
-
const _hoisted_4$
|
|
943
|
-
const _hoisted_5$
|
|
944
|
+
const _hoisted_3$v = { class: "app-confirm__header" };
|
|
945
|
+
const _hoisted_4$q = { class: "app-confirm__title" };
|
|
946
|
+
const _hoisted_5$o = { class: "app-confirm__body" };
|
|
944
947
|
const _hoisted_6$i = { class: "app-confirm__message" };
|
|
945
948
|
const _hoisted_7$f = {
|
|
946
949
|
key: 0,
|
|
@@ -949,7 +952,7 @@ const _hoisted_7$f = {
|
|
|
949
952
|
const _hoisted_8$5 = { class: "app-confirm__require-label" };
|
|
950
953
|
const _hoisted_9$3 = { class: "app-confirm__actions" };
|
|
951
954
|
const _hoisted_10$2 = ["disabled"];
|
|
952
|
-
const _sfc_main$
|
|
955
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
953
956
|
__name: "AppConfirmModal",
|
|
954
957
|
setup(__props) {
|
|
955
958
|
const store = useConfirmStore();
|
|
@@ -974,12 +977,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
974
977
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
975
978
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
976
979
|
default: withCtx(() => [
|
|
977
|
-
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
978
|
-
createElementVNode("div", _hoisted_2$
|
|
979
|
-
createElementVNode("div", _hoisted_3$
|
|
980
|
-
createElementVNode("h3", _hoisted_4$
|
|
980
|
+
unref(store).open ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
981
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
982
|
+
createElementVNode("div", _hoisted_3$v, [
|
|
983
|
+
createElementVNode("h3", _hoisted_4$q, toDisplayString(unref(store).title), 1)
|
|
981
984
|
]),
|
|
982
|
-
createElementVNode("div", _hoisted_5$
|
|
985
|
+
createElementVNode("div", _hoisted_5$o, [
|
|
983
986
|
createElementVNode("p", _hoisted_6$i, toDisplayString(unref(store).message), 1),
|
|
984
987
|
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$f, [
|
|
985
988
|
createElementVNode("span", _hoisted_8$5, [
|
|
@@ -1022,188 +1025,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1022
1025
|
};
|
|
1023
1026
|
}
|
|
1024
1027
|
});
|
|
1025
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1026
|
-
const _hoisted_1$
|
|
1027
|
-
|
|
1028
|
-
class: "lf-btn__label"
|
|
1029
|
-
};
|
|
1030
|
-
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1031
|
-
__name: "LfButton",
|
|
1032
|
-
props: {
|
|
1033
|
-
variant: { default: "ghost" },
|
|
1034
|
-
size: { default: "md" },
|
|
1035
|
-
block: { type: Boolean },
|
|
1036
|
-
loading: { type: Boolean },
|
|
1037
|
-
disabled: { type: Boolean },
|
|
1038
|
-
type: { default: "button" },
|
|
1039
|
-
href: {},
|
|
1040
|
-
external: { type: Boolean },
|
|
1041
|
-
icon: {},
|
|
1042
|
-
iconPath: {},
|
|
1043
|
-
iconRight: {}
|
|
1044
|
-
},
|
|
1045
|
-
setup(__props) {
|
|
1046
|
-
return (_ctx, _cache) => {
|
|
1047
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.href ? "a" : "button"), {
|
|
1048
|
-
class: normalizeClass(["lf-btn", [`lf-btn--${__props.variant}`, `lf-btn--${__props.size}`, { "lf-btn--block": __props.block, "lf-btn--loading": __props.loading }]]),
|
|
1049
|
-
type: __props.href ? void 0 : __props.type,
|
|
1050
|
-
href: __props.href,
|
|
1051
|
-
target: __props.href && __props.external ? "_blank" : void 0,
|
|
1052
|
-
rel: __props.href && __props.external ? "noopener noreferrer" : void 0,
|
|
1053
|
-
disabled: __props.href ? void 0 : __props.disabled || __props.loading,
|
|
1054
|
-
"aria-disabled": __props.href && (__props.disabled || __props.loading) ? "true" : void 0,
|
|
1055
|
-
"aria-busy": __props.loading ? "true" : void 0
|
|
1056
|
-
}, {
|
|
1057
|
-
default: withCtx(() => [
|
|
1058
|
-
__props.loading ? (openBlock(), createBlock(LfSpinner, {
|
|
1059
|
-
key: 0,
|
|
1060
|
-
class: "lf-btn__spinner",
|
|
1061
|
-
size: "1em"
|
|
1062
|
-
})) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1063
|
-
key: 1,
|
|
1064
|
-
name: __props.icon,
|
|
1065
|
-
path: __props.iconPath
|
|
1066
|
-
}, null, 8, ["name", "path"])) : createCommentVNode("", true),
|
|
1067
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$H, [
|
|
1068
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1069
|
-
])) : createCommentVNode("", true),
|
|
1070
|
-
__props.iconRight ? (openBlock(), createBlock(LfIcon, {
|
|
1071
|
-
key: 3,
|
|
1072
|
-
name: __props.iconRight
|
|
1073
|
-
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
1074
|
-
]),
|
|
1075
|
-
_: 3
|
|
1076
|
-
}, 8, ["class", "type", "href", "target", "rel", "disabled", "aria-disabled", "aria-busy"]);
|
|
1077
|
-
};
|
|
1078
|
-
}
|
|
1079
|
-
});
|
|
1080
|
-
const LfButton = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-7ee886ae"]]);
|
|
1081
|
-
const _hoisted_1$G = { class: "lf-control-wrap" };
|
|
1082
|
-
const _hoisted_2$E = {
|
|
1083
|
-
key: 0,
|
|
1084
|
-
class: "lf-control-wrap__icon lf-control-wrap__icon--left"
|
|
1085
|
-
};
|
|
1086
|
-
const _hoisted_3$x = ["id", "type", "placeholder", "disabled", "readonly", "required", "aria-invalid"];
|
|
1087
|
-
const _hoisted_4$s = {
|
|
1088
|
-
key: 1,
|
|
1089
|
-
class: "lf-control-wrap__suffix"
|
|
1090
|
-
};
|
|
1091
|
-
const _hoisted_5$p = ["aria-label"];
|
|
1092
|
-
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1093
|
-
...{ inheritAttrs: false },
|
|
1094
|
-
__name: "LfTextField",
|
|
1095
|
-
props: /* @__PURE__ */ mergeModels({
|
|
1096
|
-
label: {},
|
|
1097
|
-
hint: {},
|
|
1098
|
-
error: {},
|
|
1099
|
-
required: { type: Boolean },
|
|
1100
|
-
placeholder: {},
|
|
1101
|
-
disabled: { type: Boolean },
|
|
1102
|
-
readonly: { type: Boolean },
|
|
1103
|
-
type: { default: "text" },
|
|
1104
|
-
size: { default: "md" },
|
|
1105
|
-
icon: {},
|
|
1106
|
-
iconPath: {},
|
|
1107
|
-
clearable: { type: Boolean },
|
|
1108
|
-
revealable: { type: Boolean },
|
|
1109
|
-
suffix: {}
|
|
1110
|
-
}, {
|
|
1111
|
-
"modelValue": {
|
|
1112
|
-
default: ""
|
|
1113
|
-
},
|
|
1114
|
-
"modelModifiers": {}
|
|
1115
|
-
}),
|
|
1116
|
-
emits: ["update:modelValue"],
|
|
1117
|
-
setup(__props) {
|
|
1118
|
-
const props = __props;
|
|
1119
|
-
const [model, modifiers] = useModel(__props, "modelValue", {
|
|
1120
|
-
set(value) {
|
|
1121
|
-
if (!modifiers.number || value === "" || typeof value === "number") return value;
|
|
1122
|
-
const n = parseFloat(String(value));
|
|
1123
|
-
return Number.isNaN(n) ? value : n;
|
|
1124
|
-
}
|
|
1125
|
-
});
|
|
1126
|
-
const { rootAttrs, controlAttrs } = useSplitAttrs();
|
|
1127
|
-
const inputId = useId();
|
|
1128
|
-
const revealed = ref(false);
|
|
1129
|
-
const hasTrailing = computed(
|
|
1130
|
-
() => props.revealable || props.clearable && !!model.value && !props.disabled && !props.readonly
|
|
1131
|
-
);
|
|
1132
|
-
function clear() {
|
|
1133
|
-
model.value = typeof model.value === "number" ? 0 : "";
|
|
1134
|
-
}
|
|
1135
|
-
return (_ctx, _cache) => {
|
|
1136
|
-
return openBlock(), createBlock(LfField, mergeProps(unref(rootAttrs), {
|
|
1137
|
-
label: __props.label,
|
|
1138
|
-
hint: __props.hint,
|
|
1139
|
-
error: __props.error,
|
|
1140
|
-
required: __props.required,
|
|
1141
|
-
"html-for": unref(inputId)
|
|
1142
|
-
}), {
|
|
1143
|
-
default: withCtx(() => [
|
|
1144
|
-
createElementVNode("div", _hoisted_1$G, [
|
|
1145
|
-
__props.icon || __props.iconPath ? (openBlock(), createElementBlock("span", _hoisted_2$E, [
|
|
1146
|
-
createVNode(LfIcon, {
|
|
1147
|
-
name: __props.icon,
|
|
1148
|
-
path: __props.iconPath,
|
|
1149
|
-
size: "1.125rem"
|
|
1150
|
-
}, null, 8, ["name", "path"])
|
|
1151
|
-
])) : createCommentVNode("", true),
|
|
1152
|
-
withDirectives(createElementVNode("input", mergeProps({ id: unref(inputId) }, unref(controlAttrs), {
|
|
1153
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
1154
|
-
class: ["lf-control", [
|
|
1155
|
-
{ "lf-control--sm": __props.size === "sm", "lf-control--error": !!__props.error },
|
|
1156
|
-
(__props.icon || __props.iconPath) && "lf-control--has-left",
|
|
1157
|
-
hasTrailing.value && "lf-control--has-right",
|
|
1158
|
-
__props.suffix && "lf-control--has-suffix"
|
|
1159
|
-
]],
|
|
1160
|
-
type: revealed.value ? "text" : __props.type,
|
|
1161
|
-
placeholder: __props.placeholder,
|
|
1162
|
-
disabled: __props.disabled,
|
|
1163
|
-
readonly: __props.readonly,
|
|
1164
|
-
required: __props.required,
|
|
1165
|
-
"aria-invalid": __props.error ? "true" : void 0
|
|
1166
|
-
}), null, 16, _hoisted_3$x), [
|
|
1167
|
-
[vModelDynamic, unref(model)]
|
|
1168
|
-
]),
|
|
1169
|
-
__props.suffix ? (openBlock(), createElementBlock("span", _hoisted_4$s, toDisplayString(__props.suffix), 1)) : createCommentVNode("", true),
|
|
1170
|
-
__props.revealable ? (openBlock(), createElementBlock("button", {
|
|
1171
|
-
key: 2,
|
|
1172
|
-
type: "button",
|
|
1173
|
-
class: "lf-control-action",
|
|
1174
|
-
"aria-label": revealed.value ? "비밀번호 가리기" : "비밀번호 보기",
|
|
1175
|
-
onClick: _cache[1] || (_cache[1] = ($event) => revealed.value = !revealed.value)
|
|
1176
|
-
}, [
|
|
1177
|
-
createVNode(LfIcon, {
|
|
1178
|
-
name: revealed.value ? "visibility_off" : "visibility",
|
|
1179
|
-
size: "1.125rem"
|
|
1180
|
-
}, null, 8, ["name"])
|
|
1181
|
-
], 8, _hoisted_5$p)) : __props.clearable && !!unref(model) && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
1182
|
-
key: 3,
|
|
1183
|
-
type: "button",
|
|
1184
|
-
class: "lf-control-action",
|
|
1185
|
-
"aria-label": "지우기",
|
|
1186
|
-
onClick: clear
|
|
1187
|
-
}, [
|
|
1188
|
-
createVNode(LfIcon, {
|
|
1189
|
-
name: "close",
|
|
1190
|
-
size: "1.125rem"
|
|
1191
|
-
})
|
|
1192
|
-
])) : createCommentVNode("", true)
|
|
1193
|
-
])
|
|
1194
|
-
]),
|
|
1195
|
-
_: 1
|
|
1196
|
-
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1197
|
-
};
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
const LfTextField = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-e113043f"]]);
|
|
1201
|
-
const _hoisted_1$F = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1202
|
-
const _hoisted_2$D = {
|
|
1028
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-561536f9"]]);
|
|
1029
|
+
const _hoisted_1$D = ["id", "rows", "placeholder", "disabled", "readonly", "required", "maxlength", "aria-invalid"];
|
|
1030
|
+
const _hoisted_2$B = {
|
|
1203
1031
|
key: 0,
|
|
1204
1032
|
class: "lf-textarea__counter"
|
|
1205
1033
|
};
|
|
1206
|
-
const _sfc_main$
|
|
1034
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
1207
1035
|
...{ inheritAttrs: false },
|
|
1208
1036
|
__name: "LfTextarea",
|
|
1209
1037
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1267,32 +1095,32 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1267
1095
|
maxlength: __props.maxlength,
|
|
1268
1096
|
"aria-invalid": __props.error ? "true" : void 0,
|
|
1269
1097
|
onInput: _cache[1] || (_cache[1] = ($event) => __props.autoGrow && grow())
|
|
1270
|
-
}), null, 16, _hoisted_1$
|
|
1098
|
+
}), null, 16, _hoisted_1$D), [
|
|
1271
1099
|
[vModelText, model.value]
|
|
1272
1100
|
]),
|
|
1273
|
-
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1101
|
+
__props.maxlength && __props.counter ? (openBlock(), createElementBlock("p", _hoisted_2$B, toDisplayString(String(model.value ?? "").length) + " / " + toDisplayString(__props.maxlength), 1)) : createCommentVNode("", true)
|
|
1274
1102
|
]),
|
|
1275
1103
|
_: 1
|
|
1276
1104
|
}, 16, ["label", "hint", "error", "required", "html-for"]);
|
|
1277
1105
|
};
|
|
1278
1106
|
}
|
|
1279
1107
|
});
|
|
1280
|
-
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1281
|
-
const _hoisted_1$
|
|
1282
|
-
const _hoisted_2$
|
|
1108
|
+
const LfTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-81fbed25"]]);
|
|
1109
|
+
const _hoisted_1$C = ["disabled", "value"];
|
|
1110
|
+
const _hoisted_2$A = {
|
|
1283
1111
|
class: "lf-check__box",
|
|
1284
1112
|
"aria-hidden": "true"
|
|
1285
1113
|
};
|
|
1286
|
-
const _hoisted_3$
|
|
1114
|
+
const _hoisted_3$u = {
|
|
1287
1115
|
key: 0,
|
|
1288
1116
|
class: "lf-check__text"
|
|
1289
1117
|
};
|
|
1290
|
-
const _hoisted_4$
|
|
1291
|
-
const _hoisted_5$
|
|
1118
|
+
const _hoisted_4$p = { class: "lf-check__label" };
|
|
1119
|
+
const _hoisted_5$n = {
|
|
1292
1120
|
key: 0,
|
|
1293
1121
|
class: "lf-check__desc"
|
|
1294
1122
|
};
|
|
1295
|
-
const _sfc_main$
|
|
1123
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1296
1124
|
...{ inheritAttrs: false },
|
|
1297
1125
|
__name: "LfCheckbox",
|
|
1298
1126
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -1317,97 +1145,40 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1317
1145
|
type: "checkbox",
|
|
1318
1146
|
disabled: __props.disabled,
|
|
1319
1147
|
value: __props.value
|
|
1320
|
-
}), null, 16, _hoisted_1$
|
|
1148
|
+
}), null, 16, _hoisted_1$C), [
|
|
1321
1149
|
[vModelCheckbox, model.value]
|
|
1322
1150
|
]),
|
|
1323
|
-
createElementVNode("span", _hoisted_2$
|
|
1151
|
+
createElementVNode("span", _hoisted_2$A, [
|
|
1324
1152
|
createVNode(LfIcon, {
|
|
1325
1153
|
name: "check",
|
|
1326
1154
|
size: "0.875rem"
|
|
1327
1155
|
})
|
|
1328
1156
|
]),
|
|
1329
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1330
|
-
createElementVNode("span", _hoisted_4$
|
|
1157
|
+
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
1158
|
+
createElementVNode("span", _hoisted_4$p, [
|
|
1331
1159
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1332
1160
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
1333
1161
|
], true)
|
|
1334
1162
|
]),
|
|
1335
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1163
|
+
__props.description ? (openBlock(), createElementBlock("span", _hoisted_5$n, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1336
1164
|
])) : createCommentVNode("", true)
|
|
1337
1165
|
], 2);
|
|
1338
1166
|
};
|
|
1339
1167
|
}
|
|
1340
1168
|
});
|
|
1341
|
-
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1342
|
-
const _hoisted_1$
|
|
1343
|
-
key: 0,
|
|
1344
|
-
class: "lf-switch__text"
|
|
1345
|
-
};
|
|
1346
|
-
const _hoisted_2$B = { class: "lf-switch__label" };
|
|
1347
|
-
const _hoisted_3$v = {
|
|
1348
|
-
key: 0,
|
|
1349
|
-
class: "lf-switch__desc"
|
|
1350
|
-
};
|
|
1351
|
-
const _hoisted_4$q = ["disabled"];
|
|
1352
|
-
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
1353
|
-
...{ inheritAttrs: false },
|
|
1354
|
-
__name: "LfSwitch",
|
|
1355
|
-
props: /* @__PURE__ */ mergeModels({
|
|
1356
|
-
label: {},
|
|
1357
|
-
description: {},
|
|
1358
|
-
disabled: { type: Boolean },
|
|
1359
|
-
row: { type: Boolean }
|
|
1360
|
-
}, {
|
|
1361
|
-
"modelValue": { type: Boolean, ...{ default: false } },
|
|
1362
|
-
"modelModifiers": {}
|
|
1363
|
-
}),
|
|
1364
|
-
emits: ["update:modelValue"],
|
|
1365
|
-
setup(__props) {
|
|
1366
|
-
const model = useModel(__props, "modelValue");
|
|
1367
|
-
return (_ctx, _cache) => {
|
|
1368
|
-
return openBlock(), createElementBlock("label", {
|
|
1369
|
-
class: normalizeClass(["lf-switch", { "lf-switch--row": __props.row, "lf-switch--disabled": __props.disabled }])
|
|
1370
|
-
}, [
|
|
1371
|
-
__props.label || __props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$D, [
|
|
1372
|
-
createElementVNode("span", _hoisted_2$B, [
|
|
1373
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1374
|
-
createTextVNode(toDisplayString(__props.label), 1)
|
|
1375
|
-
], true)
|
|
1376
|
-
]),
|
|
1377
|
-
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$v, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1378
|
-
])) : createCommentVNode("", true),
|
|
1379
|
-
withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
|
|
1380
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1381
|
-
class: "lf-switch__input",
|
|
1382
|
-
type: "checkbox",
|
|
1383
|
-
role: "switch",
|
|
1384
|
-
disabled: __props.disabled
|
|
1385
|
-
}), null, 16, _hoisted_4$q), [
|
|
1386
|
-
[vModelCheckbox, model.value]
|
|
1387
|
-
]),
|
|
1388
|
-
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1389
|
-
class: "lf-switch__track",
|
|
1390
|
-
"aria-hidden": "true"
|
|
1391
|
-
}, [
|
|
1392
|
-
createElementVNode("span", { class: "lf-switch__thumb" })
|
|
1393
|
-
], -1))
|
|
1394
|
-
], 2);
|
|
1395
|
-
};
|
|
1396
|
-
}
|
|
1397
|
-
});
|
|
1398
|
-
const LfSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-9b5f4253"]]);
|
|
1399
|
-
const _hoisted_1$C = {
|
|
1169
|
+
const LfCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-a86332f0"]]);
|
|
1170
|
+
const _hoisted_1$B = {
|
|
1400
1171
|
key: 0,
|
|
1401
1172
|
class: "lf-radio-group__legend"
|
|
1402
1173
|
};
|
|
1403
|
-
const _hoisted_2$
|
|
1174
|
+
const _hoisted_2$z = {
|
|
1404
1175
|
key: 0,
|
|
1405
1176
|
class: "lf-radio-group__required",
|
|
1406
1177
|
"aria-hidden": "true"
|
|
1407
1178
|
};
|
|
1408
|
-
const _hoisted_3$
|
|
1409
|
-
const _hoisted_4$
|
|
1410
|
-
const _hoisted_5$
|
|
1179
|
+
const _hoisted_3$t = ["name", "value", "disabled"];
|
|
1180
|
+
const _hoisted_4$o = { class: "lf-radio__text" };
|
|
1181
|
+
const _hoisted_5$m = { class: "lf-radio__label" };
|
|
1411
1182
|
const _hoisted_6$h = {
|
|
1412
1183
|
key: 0,
|
|
1413
1184
|
class: "lf-radio__desc"
|
|
@@ -1421,7 +1192,7 @@ const _hoisted_8$4 = {
|
|
|
1421
1192
|
key: 2,
|
|
1422
1193
|
class: "lf-radio-group__hint"
|
|
1423
1194
|
};
|
|
1424
|
-
const _sfc_main$
|
|
1195
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1425
1196
|
__name: "LfRadioGroup",
|
|
1426
1197
|
props: /* @__PURE__ */ mergeModels({
|
|
1427
1198
|
options: { default: () => [] },
|
|
@@ -1447,9 +1218,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1447
1218
|
return openBlock(), createElementBlock("fieldset", {
|
|
1448
1219
|
class: normalizeClass(["lf-radio-group", { "lf-radio-group--inline": __props.inline }])
|
|
1449
1220
|
}, [
|
|
1450
|
-
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$
|
|
1221
|
+
__props.label ? (openBlock(), createElementBlock("legend", _hoisted_1$B, [
|
|
1451
1222
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
1452
|
-
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1223
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_2$z, "*")) : createCommentVNode("", true)
|
|
1453
1224
|
])) : createCommentVNode("", true),
|
|
1454
1225
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalized.value, (opt) => {
|
|
1455
1226
|
return openBlock(), createElementBlock("label", {
|
|
@@ -1463,15 +1234,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1463
1234
|
name: unref(groupName),
|
|
1464
1235
|
value: opt.value,
|
|
1465
1236
|
disabled: __props.disabled || opt.disabled
|
|
1466
|
-
}, null, 8, _hoisted_3$
|
|
1237
|
+
}, null, 8, _hoisted_3$t), [
|
|
1467
1238
|
[vModelRadio, model.value]
|
|
1468
1239
|
]),
|
|
1469
1240
|
_cache[1] || (_cache[1] = createElementVNode("span", {
|
|
1470
1241
|
class: "lf-radio__dot",
|
|
1471
1242
|
"aria-hidden": "true"
|
|
1472
1243
|
}, null, -1)),
|
|
1473
|
-
createElementVNode("span", _hoisted_4$
|
|
1474
|
-
createElementVNode("span", _hoisted_5$
|
|
1244
|
+
createElementVNode("span", _hoisted_4$o, [
|
|
1245
|
+
createElementVNode("span", _hoisted_5$m, toDisplayString(opt.label), 1),
|
|
1475
1246
|
opt.description ? (openBlock(), createElementBlock("span", _hoisted_6$h, toDisplayString(opt.description), 1)) : createCommentVNode("", true)
|
|
1476
1247
|
])
|
|
1477
1248
|
], 2);
|
|
@@ -1481,15 +1252,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1481
1252
|
};
|
|
1482
1253
|
}
|
|
1483
1254
|
});
|
|
1484
|
-
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1485
|
-
const _hoisted_1$
|
|
1486
|
-
const _hoisted_2$
|
|
1255
|
+
const LfRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-cffad147"]]);
|
|
1256
|
+
const _hoisted_1$A = ["aria-labelledby", "aria-label"];
|
|
1257
|
+
const _hoisted_2$y = {
|
|
1487
1258
|
key: 0,
|
|
1488
1259
|
class: "lf-modal__header"
|
|
1489
1260
|
};
|
|
1490
|
-
const _hoisted_3$
|
|
1491
|
-
const _hoisted_4$
|
|
1492
|
-
const _hoisted_5$
|
|
1261
|
+
const _hoisted_3$s = { class: "lf-modal__heading" };
|
|
1262
|
+
const _hoisted_4$n = ["id"];
|
|
1263
|
+
const _hoisted_5$l = {
|
|
1493
1264
|
key: 0,
|
|
1494
1265
|
class: "lf-modal__subtitle"
|
|
1495
1266
|
};
|
|
@@ -1498,7 +1269,7 @@ const _hoisted_7$d = {
|
|
|
1498
1269
|
key: 1,
|
|
1499
1270
|
class: "lf-modal__footer"
|
|
1500
1271
|
};
|
|
1501
|
-
const _sfc_main$
|
|
1272
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1502
1273
|
__name: "LfModal",
|
|
1503
1274
|
props: /* @__PURE__ */ mergeModels({
|
|
1504
1275
|
title: {},
|
|
@@ -1610,14 +1381,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1610
1381
|
"aria-label": __props.title ? void 0 : __props.ariaLabel,
|
|
1611
1382
|
onKeydown
|
|
1612
1383
|
}, [
|
|
1613
|
-
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$
|
|
1384
|
+
__props.title || _ctx.$slots.header || __props.closable ? (openBlock(), createElementBlock("header", _hoisted_2$y, [
|
|
1614
1385
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1615
|
-
createElementVNode("div", _hoisted_3$
|
|
1386
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
1616
1387
|
createElementVNode("h2", {
|
|
1617
1388
|
id: unref(titleId),
|
|
1618
1389
|
class: "lf-modal__title"
|
|
1619
|
-
}, toDisplayString(__props.title), 9, _hoisted_4$
|
|
1620
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
1390
|
+
}, toDisplayString(__props.title), 9, _hoisted_4$n),
|
|
1391
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$l, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
1621
1392
|
])
|
|
1622
1393
|
], true),
|
|
1623
1394
|
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
@@ -1634,7 +1405,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1634
1405
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$d, [
|
|
1635
1406
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1636
1407
|
])) : createCommentVNode("", true)
|
|
1637
|
-
], 42, _hoisted_1$
|
|
1408
|
+
], 42, _hoisted_1$A)
|
|
1638
1409
|
], 32)) : createCommentVNode("", true)
|
|
1639
1410
|
]),
|
|
1640
1411
|
_: 3
|
|
@@ -1643,21 +1414,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1643
1414
|
};
|
|
1644
1415
|
}
|
|
1645
1416
|
});
|
|
1646
|
-
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1647
|
-
const _hoisted_1$
|
|
1417
|
+
const LfModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-da4a649b"]]);
|
|
1418
|
+
const _hoisted_1$z = {
|
|
1648
1419
|
key: 0,
|
|
1649
1420
|
class: "lf-card__head"
|
|
1650
1421
|
};
|
|
1651
|
-
const _hoisted_2$
|
|
1422
|
+
const _hoisted_2$x = {
|
|
1652
1423
|
key: 0,
|
|
1653
1424
|
class: "lf-card__icon"
|
|
1654
1425
|
};
|
|
1655
|
-
const _hoisted_3$
|
|
1656
|
-
const _hoisted_4$
|
|
1426
|
+
const _hoisted_3$r = { class: "lf-card__title" };
|
|
1427
|
+
const _hoisted_4$m = {
|
|
1657
1428
|
key: 1,
|
|
1658
1429
|
class: "lf-card__count"
|
|
1659
1430
|
};
|
|
1660
|
-
const _hoisted_5$
|
|
1431
|
+
const _hoisted_5$k = {
|
|
1661
1432
|
key: 0,
|
|
1662
1433
|
class: "lf-card__actions"
|
|
1663
1434
|
};
|
|
@@ -1666,7 +1437,7 @@ const _hoisted_7$c = {
|
|
|
1666
1437
|
key: 1,
|
|
1667
1438
|
class: "lf-card__foot"
|
|
1668
1439
|
};
|
|
1669
|
-
const _sfc_main$
|
|
1440
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
1670
1441
|
__name: "LfCard",
|
|
1671
1442
|
props: {
|
|
1672
1443
|
title: {},
|
|
@@ -1682,9 +1453,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1682
1453
|
return openBlock(), createElementBlock("section", {
|
|
1683
1454
|
class: normalizeClass(["lf-card", [{ "lf-card--glass": __props.glass }, `lf-card--pad-${__props.flush ? "none" : __props.padding}`]])
|
|
1684
1455
|
}, [
|
|
1685
|
-
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
1456
|
+
__props.title || _ctx.$slots.header || _ctx.$slots.actions ? (openBlock(), createElementBlock("header", _hoisted_1$z, [
|
|
1686
1457
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
1687
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1458
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$x, [
|
|
1688
1459
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1689
1460
|
createVNode(LfIcon, {
|
|
1690
1461
|
name: __props.icon,
|
|
@@ -1693,11 +1464,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1693
1464
|
}, null, 8, ["name", "path"])
|
|
1694
1465
|
], true)
|
|
1695
1466
|
])) : createCommentVNode("", true),
|
|
1696
|
-
createElementVNode("h3", _hoisted_3$
|
|
1697
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1467
|
+
createElementVNode("h3", _hoisted_3$r, toDisplayString(__props.title), 1),
|
|
1468
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1698
1469
|
], true),
|
|
1699
1470
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-card__spacer" }, null, -1)),
|
|
1700
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1471
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$k, [
|
|
1701
1472
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1702
1473
|
])) : createCommentVNode("", true)
|
|
1703
1474
|
])) : createCommentVNode("", true),
|
|
@@ -1711,15 +1482,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1711
1482
|
};
|
|
1712
1483
|
}
|
|
1713
1484
|
});
|
|
1714
|
-
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1715
|
-
const _hoisted_1$
|
|
1716
|
-
const _hoisted_2$
|
|
1717
|
-
const _hoisted_3$
|
|
1718
|
-
const _hoisted_4$
|
|
1485
|
+
const LfCard = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-61964a83"]]);
|
|
1486
|
+
const _hoisted_1$y = { class: "lf-page-header" };
|
|
1487
|
+
const _hoisted_2$w = { class: "lf-page-header__title-box" };
|
|
1488
|
+
const _hoisted_3$q = { class: "lf-page-header__title" };
|
|
1489
|
+
const _hoisted_4$l = {
|
|
1719
1490
|
key: 0,
|
|
1720
1491
|
class: "lf-page-header__icon"
|
|
1721
1492
|
};
|
|
1722
|
-
const _hoisted_5$
|
|
1493
|
+
const _hoisted_5$j = {
|
|
1723
1494
|
key: 0,
|
|
1724
1495
|
class: "lf-page-header__count"
|
|
1725
1496
|
};
|
|
@@ -1731,7 +1502,7 @@ const _hoisted_7$b = {
|
|
|
1731
1502
|
key: 1,
|
|
1732
1503
|
class: "lf-page-header__desc"
|
|
1733
1504
|
};
|
|
1734
|
-
const _sfc_main$
|
|
1505
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1735
1506
|
__name: "LfPageHeader",
|
|
1736
1507
|
props: {
|
|
1737
1508
|
title: {},
|
|
@@ -1742,10 +1513,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1742
1513
|
},
|
|
1743
1514
|
setup(__props) {
|
|
1744
1515
|
return (_ctx, _cache) => {
|
|
1745
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1746
|
-
createElementVNode("div", _hoisted_2$
|
|
1747
|
-
createElementVNode("h1", _hoisted_3$
|
|
1748
|
-
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
1516
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
1517
|
+
createElementVNode("div", _hoisted_2$w, [
|
|
1518
|
+
createElementVNode("h1", _hoisted_3$q, [
|
|
1519
|
+
__props.icon || __props.iconPath || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_4$l, [
|
|
1749
1520
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1750
1521
|
createVNode(LfIcon, {
|
|
1751
1522
|
name: __props.icon,
|
|
@@ -1758,7 +1529,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1758
1529
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
1759
1530
|
], true)
|
|
1760
1531
|
]),
|
|
1761
|
-
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
1532
|
+
__props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_5$j, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1762
1533
|
]),
|
|
1763
1534
|
_ctx.$slots.filters || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
|
|
1764
1535
|
renderSlot(_ctx.$slots, "filters", {}, void 0, true),
|
|
@@ -1774,14 +1545,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1774
1545
|
};
|
|
1775
1546
|
}
|
|
1776
1547
|
});
|
|
1777
|
-
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1778
|
-
const _hoisted_1$
|
|
1548
|
+
const LfPageHeader = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-503c1630"]]);
|
|
1549
|
+
const _hoisted_1$x = {
|
|
1779
1550
|
key: 0,
|
|
1780
1551
|
class: "lf-badge__dot",
|
|
1781
1552
|
"aria-hidden": "true"
|
|
1782
1553
|
};
|
|
1783
|
-
const _hoisted_2$
|
|
1784
|
-
const _sfc_main$
|
|
1554
|
+
const _hoisted_2$v = ["aria-label"];
|
|
1555
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1785
1556
|
__name: "LfBadge",
|
|
1786
1557
|
props: {
|
|
1787
1558
|
label: {},
|
|
@@ -1801,7 +1572,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
1801
1572
|
return openBlock(), createElementBlock("span", {
|
|
1802
1573
|
class: normalizeClass(["lf-badge", [`lf-badge--${__props.tone}`, `lf-badge--${__props.variant}`, { "lf-badge--sm": __props.size === "sm" }]])
|
|
1803
1574
|
}, [
|
|
1804
|
-
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1575
|
+
__props.dot ? (openBlock(), createElementBlock("span", _hoisted_1$x)) : __props.icon || __props.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
1805
1576
|
key: 1,
|
|
1806
1577
|
name: __props.icon,
|
|
1807
1578
|
path: __props.iconPath,
|
|
@@ -1821,88 +1592,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
1821
1592
|
name: "close",
|
|
1822
1593
|
size: "0.75rem"
|
|
1823
1594
|
})
|
|
1824
|
-
], 8, _hoisted_2$
|
|
1595
|
+
], 8, _hoisted_2$v)) : createCommentVNode("", true)
|
|
1825
1596
|
], 2);
|
|
1826
1597
|
};
|
|
1827
1598
|
}
|
|
1828
1599
|
});
|
|
1829
|
-
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1830
|
-
const _hoisted_1$x = ["role"];
|
|
1831
|
-
const _hoisted_2$v = {
|
|
1832
|
-
class: "lf-alert__badge",
|
|
1833
|
-
"aria-hidden": "true"
|
|
1834
|
-
};
|
|
1835
|
-
const _hoisted_3$q = { class: "lf-alert__body" };
|
|
1836
|
-
const _hoisted_4$l = {
|
|
1837
|
-
key: 0,
|
|
1838
|
-
class: "lf-alert__title"
|
|
1839
|
-
};
|
|
1840
|
-
const _hoisted_5$j = {
|
|
1841
|
-
key: 2,
|
|
1842
|
-
class: "lf-alert__actions"
|
|
1843
|
-
};
|
|
1844
|
-
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1845
|
-
__name: "LfAlert",
|
|
1846
|
-
props: {
|
|
1847
|
-
tone: { default: "info" },
|
|
1848
|
-
title: {},
|
|
1849
|
-
message: {},
|
|
1850
|
-
icon: {},
|
|
1851
|
-
iconPath: {},
|
|
1852
|
-
closable: { type: Boolean },
|
|
1853
|
-
closeLabel: { default: "닫기" },
|
|
1854
|
-
dense: { type: Boolean }
|
|
1855
|
-
},
|
|
1856
|
-
emits: ["close"],
|
|
1857
|
-
setup(__props, { emit: __emit }) {
|
|
1858
|
-
const emit = __emit;
|
|
1859
|
-
const TONE_ICON = {
|
|
1860
|
-
info: "info",
|
|
1861
|
-
success: "check_circle",
|
|
1862
|
-
warning: "warning",
|
|
1863
|
-
error: "error"
|
|
1864
|
-
};
|
|
1865
|
-
return (_ctx, _cache) => {
|
|
1866
|
-
return openBlock(), createElementBlock("div", {
|
|
1867
|
-
class: normalizeClass(["lf-alert", [`lf-alert--${__props.tone}`, { "lf-alert--dense": __props.dense }]]),
|
|
1868
|
-
role: __props.tone === "error" ? "alert" : "status"
|
|
1869
|
-
}, [
|
|
1870
|
-
createElementVNode("span", _hoisted_2$v, [
|
|
1871
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1872
|
-
createVNode(LfIcon, {
|
|
1873
|
-
name: __props.icon ?? TONE_ICON[__props.tone],
|
|
1874
|
-
path: __props.iconPath,
|
|
1875
|
-
size: __props.dense ? "0.9375rem" : "1.0625rem"
|
|
1876
|
-
}, null, 8, ["name", "path", "size"])
|
|
1877
|
-
], true)
|
|
1878
|
-
]),
|
|
1879
|
-
createElementVNode("div", _hoisted_3$q, [
|
|
1880
|
-
__props.title ? (openBlock(), createElementBlock("p", _hoisted_4$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1881
|
-
__props.message || _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
1882
|
-
key: 1,
|
|
1883
|
-
class: normalizeClass(["lf-alert__text", { "lf-alert__text--titled": __props.title }])
|
|
1884
|
-
}, [
|
|
1885
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1886
|
-
createTextVNode(toDisplayString(__props.message), 1)
|
|
1887
|
-
], true)
|
|
1888
|
-
], 2)) : createCommentVNode("", true),
|
|
1889
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_5$j, [
|
|
1890
|
-
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1891
|
-
])) : createCommentVNode("", true)
|
|
1892
|
-
]),
|
|
1893
|
-
__props.closable ? (openBlock(), createBlock(LfIconButton, {
|
|
1894
|
-
key: 0,
|
|
1895
|
-
class: "lf-alert__close",
|
|
1896
|
-
icon: "close",
|
|
1897
|
-
size: "sm",
|
|
1898
|
-
label: __props.closeLabel,
|
|
1899
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
1900
|
-
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
1901
|
-
], 10, _hoisted_1$x);
|
|
1902
|
-
};
|
|
1903
|
-
}
|
|
1904
|
-
});
|
|
1905
|
-
const LfAlert = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-62839786"]]);
|
|
1600
|
+
const LfBadge = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-31b186b5"]]);
|
|
1906
1601
|
const _hoisted_1$w = ["title"];
|
|
1907
1602
|
const _hoisted_2$u = ["src", "alt"];
|
|
1908
1603
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
@@ -2738,13 +2433,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2738
2433
|
const overflow = el.style.overflow;
|
|
2739
2434
|
el.style.overflow = "hidden";
|
|
2740
2435
|
const frames = kind === "in" ? [{ ...FLAT, opacity: 0, transform: "translateY(-4px)" }, { ...full, opacity: 1, transform: "none" }] : [{ ...full, opacity: 1, transform: "none" }, { ...FLAT, opacity: 0, transform: "translateX(8px)" }];
|
|
2741
|
-
const
|
|
2436
|
+
const a3 = el.animate(frames, kind === "in" ? { duration: tok("--lf-dur", 220), easing: ease("--lf-ease", "cubic-bezier(0.2, 0, 0, 1)") } : { duration: tok("--lf-dur", 220), easing: ease("--lf-ease-exit", "cubic-bezier(0.4, 0, 1, 1)") });
|
|
2742
2437
|
const end = () => {
|
|
2743
2438
|
el.style.overflow = overflow;
|
|
2744
2439
|
done();
|
|
2745
2440
|
};
|
|
2746
|
-
|
|
2747
|
-
|
|
2441
|
+
a3.onfinish = end;
|
|
2442
|
+
a3.oncancel = end;
|
|
2748
2443
|
}
|
|
2749
2444
|
function queue(job) {
|
|
2750
2445
|
if (typeof document !== "undefined" && document.hidden) {
|
|
@@ -4797,10 +4492,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4797
4492
|
setup(__props) {
|
|
4798
4493
|
const props = __props;
|
|
4799
4494
|
const sorted = computed(() => {
|
|
4800
|
-
const s = [...props.items].sort((
|
|
4495
|
+
const s = [...props.items].sort((a3, b2) => b2.value - a3.value);
|
|
4801
4496
|
return props.limit ? s.slice(0, props.limit) : s;
|
|
4802
4497
|
});
|
|
4803
|
-
const total = computed(() => props.items.reduce((
|
|
4498
|
+
const total = computed(() => props.items.reduce((a3, b2) => a3 + Math.max(0, b2.value), 0) || 1);
|
|
4804
4499
|
const max = computed(() => Math.max(1e-9, ...sorted.value.map((i2) => i2.value)));
|
|
4805
4500
|
function share(i2) {
|
|
4806
4501
|
return Math.max(0, i2.value) / total.value;
|
|
@@ -5289,12 +4984,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
5289
4984
|
focusCell(root, to[0], to[1]);
|
|
5290
4985
|
}
|
|
5291
4986
|
function rowSum(r) {
|
|
5292
|
-
return props.columns.reduce((
|
|
4987
|
+
return props.columns.reduce((a3, c2) => a3 + (get(r, c2.key) ?? 0), 0);
|
|
5293
4988
|
}
|
|
5294
4989
|
function colSum(c2) {
|
|
5295
|
-
return props.rows.reduce((
|
|
4990
|
+
return props.rows.reduce((a3, r) => a3 + (get(r.key, c2) ?? 0), 0);
|
|
5296
4991
|
}
|
|
5297
|
-
const grand = computed(() => props.rows.reduce((
|
|
4992
|
+
const grand = computed(() => props.rows.reduce((a3, r) => a3 + rowSum(r.key), 0));
|
|
5298
4993
|
return (_ctx, _cache) => {
|
|
5299
4994
|
return openBlock(), createElementBlock("div", {
|
|
5300
4995
|
class: "lf-gridedit",
|
|
@@ -5720,12 +5415,13 @@ export {
|
|
|
5720
5415
|
AppLoadingOverlay,
|
|
5721
5416
|
AppShell,
|
|
5722
5417
|
AppToast,
|
|
5418
|
+
BrandLockup,
|
|
5723
5419
|
DARK_THEME,
|
|
5724
5420
|
b as DEFAULT_THEME,
|
|
5725
5421
|
LF_ICONS,
|
|
5726
5422
|
LIGHT_THEME,
|
|
5727
5423
|
LOAFACTO_SERVICES,
|
|
5728
|
-
LfAlert,
|
|
5424
|
+
L as LfAlert,
|
|
5729
5425
|
LfAvatar,
|
|
5730
5426
|
LfBadge,
|
|
5731
5427
|
LfButton,
|
|
@@ -5758,8 +5454,8 @@ export {
|
|
|
5758
5454
|
LfRankBars,
|
|
5759
5455
|
LfScanInput,
|
|
5760
5456
|
LfScoreRing,
|
|
5761
|
-
|
|
5762
|
-
|
|
5457
|
+
a2 as LfSegmented,
|
|
5458
|
+
e as LfSelect,
|
|
5763
5459
|
LfShellButton,
|
|
5764
5460
|
LfSkeleton,
|
|
5765
5461
|
LfSpinner,
|
|
@@ -5768,11 +5464,11 @@ export {
|
|
|
5768
5464
|
LfStatusTile,
|
|
5769
5465
|
LfStepper,
|
|
5770
5466
|
LfSteps,
|
|
5771
|
-
LfSwitch,
|
|
5467
|
+
a as LfSwitch,
|
|
5772
5468
|
LfTable,
|
|
5773
5469
|
LfTabs,
|
|
5774
5470
|
LfTagInput,
|
|
5775
|
-
LfTextField,
|
|
5471
|
+
f as LfTextField,
|
|
5776
5472
|
LfTextarea,
|
|
5777
5473
|
LfThemeToggle,
|
|
5778
5474
|
LfToolbar,
|