@loafacto/ui 0.13.2 → 0.13.3
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/index.js +70 -58
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +46 -15
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -205,8 +205,8 @@ const _hoisted_3$l = ["aria-label", "title", "aria-expanded"];
|
|
|
205
205
|
const _hoisted_4$j = ["href", "aria-label"];
|
|
206
206
|
const _hoisted_5$f = ["src"];
|
|
207
207
|
const _hoisted_6$b = { class: "lf-brand__name" };
|
|
208
|
-
const _hoisted_7$
|
|
209
|
-
const _hoisted_8$
|
|
208
|
+
const _hoisted_7$a = ["aria-expanded"];
|
|
209
|
+
const _hoisted_8$5 = {
|
|
210
210
|
key: 0,
|
|
211
211
|
class: "lf-switcher__menu",
|
|
212
212
|
role: "menu"
|
|
@@ -448,8 +448,8 @@ const _sfc_main$v = /* @__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$a),
|
|
452
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
453
453
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
454
454
|
return openBlock(), createElementBlock("a", {
|
|
455
455
|
key: svc.id,
|
|
@@ -639,11 +639,11 @@ const _hoisted_3$k = {
|
|
|
639
639
|
const _hoisted_4$i = ["d"];
|
|
640
640
|
const _hoisted_5$e = { class: "toast-message" };
|
|
641
641
|
const _hoisted_6$a = ["onClick"];
|
|
642
|
-
const _hoisted_7$
|
|
642
|
+
const _hoisted_7$9 = {
|
|
643
643
|
viewBox: "0 0 24 24",
|
|
644
644
|
"aria-hidden": "true"
|
|
645
645
|
};
|
|
646
|
-
const _hoisted_8$
|
|
646
|
+
const _hoisted_8$4 = ["d"];
|
|
647
647
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
648
648
|
__name: "AppToast",
|
|
649
649
|
setup(__props) {
|
|
@@ -699,11 +699,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
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$9, [
|
|
703
703
|
createElementVNode("path", {
|
|
704
704
|
d: ICON_PATHS.close,
|
|
705
705
|
fill: "currentColor"
|
|
706
|
-
}, null, 8, _hoisted_8$
|
|
706
|
+
}, null, 8, _hoisted_8$4)
|
|
707
707
|
]))
|
|
708
708
|
], 8, _hoisted_6$a)
|
|
709
709
|
], 10, _hoisted_2$p);
|
|
@@ -825,11 +825,11 @@ const _hoisted_3$j = { class: "app-confirm__header" };
|
|
|
825
825
|
const _hoisted_4$h = { class: "app-confirm__title" };
|
|
826
826
|
const _hoisted_5$d = { class: "app-confirm__body" };
|
|
827
827
|
const _hoisted_6$9 = { class: "app-confirm__message" };
|
|
828
|
-
const _hoisted_7$
|
|
828
|
+
const _hoisted_7$8 = {
|
|
829
829
|
key: 0,
|
|
830
830
|
class: "app-confirm__require"
|
|
831
831
|
};
|
|
832
|
-
const _hoisted_8$
|
|
832
|
+
const _hoisted_8$3 = { class: "app-confirm__require-label" };
|
|
833
833
|
const _hoisted_9$1 = { class: "app-confirm__actions" };
|
|
834
834
|
const _hoisted_10$1 = ["disabled"];
|
|
835
835
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
@@ -864,8 +864,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
864
864
|
]),
|
|
865
865
|
createElementVNode("div", _hoisted_5$d, [
|
|
866
866
|
createElementVNode("p", _hoisted_6$9, toDisplayString(unref(store).message), 1),
|
|
867
|
-
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$
|
|
868
|
-
createElementVNode("span", _hoisted_8$
|
|
867
|
+
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$8, [
|
|
868
|
+
createElementVNode("span", _hoisted_8$3, [
|
|
869
869
|
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
870
870
|
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
871
871
|
]),
|
|
@@ -1593,12 +1593,12 @@ const _hoisted_6$8 = {
|
|
|
1593
1593
|
key: 0,
|
|
1594
1594
|
class: "lf-radio__desc"
|
|
1595
1595
|
};
|
|
1596
|
-
const _hoisted_7$
|
|
1596
|
+
const _hoisted_7$7 = {
|
|
1597
1597
|
key: 1,
|
|
1598
1598
|
class: "lf-radio-group__error",
|
|
1599
1599
|
role: "alert"
|
|
1600
1600
|
};
|
|
1601
|
-
const _hoisted_8$
|
|
1601
|
+
const _hoisted_8$2 = {
|
|
1602
1602
|
key: 2,
|
|
1603
1603
|
class: "lf-radio-group__hint"
|
|
1604
1604
|
};
|
|
@@ -1657,7 +1657,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1657
1657
|
])
|
|
1658
1658
|
], 2);
|
|
1659
1659
|
}), 128)),
|
|
1660
|
-
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1660
|
+
__props.error ? (openBlock(), createElementBlock("p", _hoisted_7$7, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_8$2, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1661
1661
|
], 2);
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
@@ -1675,7 +1675,7 @@ const _hoisted_5$8 = {
|
|
|
1675
1675
|
class: "lf-modal__subtitle"
|
|
1676
1676
|
};
|
|
1677
1677
|
const _hoisted_6$7 = { class: "lf-modal__body" };
|
|
1678
|
-
const _hoisted_7$
|
|
1678
|
+
const _hoisted_7$6 = {
|
|
1679
1679
|
key: 1,
|
|
1680
1680
|
class: "lf-modal__footer"
|
|
1681
1681
|
};
|
|
@@ -1812,7 +1812,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1812
1812
|
createElementVNode("div", _hoisted_6$7, [
|
|
1813
1813
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1814
1814
|
]),
|
|
1815
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1815
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$6, [
|
|
1816
1816
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1817
1817
|
])) : createCommentVNode("", true)
|
|
1818
1818
|
], 42, _hoisted_1$g)
|
|
@@ -1843,7 +1843,7 @@ const _hoisted_5$7 = {
|
|
|
1843
1843
|
class: "lf-card__actions"
|
|
1844
1844
|
};
|
|
1845
1845
|
const _hoisted_6$6 = { class: "lf-card__body" };
|
|
1846
|
-
const _hoisted_7$
|
|
1846
|
+
const _hoisted_7$5 = {
|
|
1847
1847
|
key: 1,
|
|
1848
1848
|
class: "lf-card__foot"
|
|
1849
1849
|
};
|
|
@@ -1885,7 +1885,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1885
1885
|
createElementVNode("div", _hoisted_6$6, [
|
|
1886
1886
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1887
1887
|
]),
|
|
1888
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$
|
|
1888
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_7$5, [
|
|
1889
1889
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1890
1890
|
])) : createCommentVNode("", true)
|
|
1891
1891
|
], 2);
|
|
@@ -1908,7 +1908,7 @@ const _hoisted_6$5 = {
|
|
|
1908
1908
|
key: 0,
|
|
1909
1909
|
class: "lf-page-header__tools"
|
|
1910
1910
|
};
|
|
1911
|
-
const _hoisted_7$
|
|
1911
|
+
const _hoisted_7$4 = {
|
|
1912
1912
|
key: 1,
|
|
1913
1913
|
class: "lf-page-header__desc"
|
|
1914
1914
|
};
|
|
@@ -1948,7 +1948,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1948
1948
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "lf-page-header__spacer" }, null, -1)),
|
|
1949
1949
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
1950
1950
|
])) : createCommentVNode("", true),
|
|
1951
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
1951
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_7$4, [
|
|
1952
1952
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1953
1953
|
createTextVNode(toDisplayString(__props.description), 1)
|
|
1954
1954
|
], true)
|
|
@@ -2275,7 +2275,7 @@ const _hoisted_5$3 = {
|
|
|
2275
2275
|
"aria-hidden": "true"
|
|
2276
2276
|
};
|
|
2277
2277
|
const _hoisted_6$3 = ["aria-current", "onClick"];
|
|
2278
|
-
const _hoisted_7$
|
|
2278
|
+
const _hoisted_7$3 = ["disabled"];
|
|
2279
2279
|
const ELLIPSIS = -1;
|
|
2280
2280
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2281
2281
|
__name: "LfPagination",
|
|
@@ -2360,7 +2360,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2360
2360
|
name: "chevron_right",
|
|
2361
2361
|
size: "1rem"
|
|
2362
2362
|
})
|
|
2363
|
-
], 8, _hoisted_7$
|
|
2363
|
+
], 8, _hoisted_7$3)
|
|
2364
2364
|
])) : createCommentVNode("", true)
|
|
2365
2365
|
], 8, _hoisted_1$9)) : createCommentVNode("", true);
|
|
2366
2366
|
};
|
|
@@ -2473,7 +2473,7 @@ const _hoisted_6$2 = {
|
|
|
2473
2473
|
key: 0,
|
|
2474
2474
|
class: "lf-stat__unit"
|
|
2475
2475
|
};
|
|
2476
|
-
const _hoisted_7$
|
|
2476
|
+
const _hoisted_7$2 = {
|
|
2477
2477
|
key: 0,
|
|
2478
2478
|
class: "lf-stat__hint"
|
|
2479
2479
|
};
|
|
@@ -2535,7 +2535,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2535
2535
|
createTextVNode(" " + toDisplayString(Math.abs(__props.delta)) + toDisplayString(__props.deltaUnit), 1)
|
|
2536
2536
|
], 2)) : createCommentVNode("", true)
|
|
2537
2537
|
]),
|
|
2538
|
-
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
2538
|
+
__props.hint ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
2539
2539
|
])
|
|
2540
2540
|
]),
|
|
2541
2541
|
_: 3
|
|
@@ -2691,14 +2691,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2691
2691
|
});
|
|
2692
2692
|
const LfMenu = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-500f54dd"]]);
|
|
2693
2693
|
const _hoisted_1$3 = { class: "lf-rail__list" };
|
|
2694
|
-
const _hoisted_2$3 = {
|
|
2695
|
-
|
|
2694
|
+
const _hoisted_2$3 = {
|
|
2695
|
+
key: 0,
|
|
2696
|
+
class: "lf-rail__group",
|
|
2697
|
+
role: "presentation"
|
|
2698
|
+
};
|
|
2699
|
+
const _hoisted_3$2 = { class: "lf-rail__group-name" };
|
|
2700
|
+
const _hoisted_4$2 = { class: "lf-rail__icon" };
|
|
2701
|
+
const _hoisted_5$1 = {
|
|
2696
2702
|
key: 2,
|
|
2697
2703
|
class: "lf-rail__badge"
|
|
2698
2704
|
};
|
|
2699
|
-
const
|
|
2700
|
-
const
|
|
2701
|
-
const
|
|
2705
|
+
const _hoisted_6$1 = { class: "lf-rail__name" };
|
|
2706
|
+
const _hoisted_7$1 = { class: "lf-rail__short" };
|
|
2707
|
+
const _hoisted_8$1 = { class: "lf-rail__long" };
|
|
2702
2708
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2703
2709
|
__name: "LfNavRail",
|
|
2704
2710
|
props: {
|
|
@@ -2719,41 +2725,47 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2719
2725
|
}
|
|
2720
2726
|
return (_ctx, _cache) => {
|
|
2721
2727
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
2722
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
2723
|
-
|
|
2728
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
2729
|
+
var _a;
|
|
2730
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
2724
2731
|
key: item.to
|
|
2725
|
-
},
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
"
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2732
|
+
}, [
|
|
2733
|
+
item.group && item.group !== ((_a = __props.items[index - 1]) == null ? void 0 : _a.group) ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
2734
|
+
createElementVNode("span", _hoisted_3$2, toDisplayString(item.group), 1)
|
|
2735
|
+
])) : createCommentVNode("", true),
|
|
2736
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.link), mergeProps({ ref_for: true }, linkAttrs(item), {
|
|
2737
|
+
class: ["lf-rail__link", { "lf-rail__link--active": isActive(item), "lf-rail__link--bottom": item.bottom }],
|
|
2738
|
+
title: item.label,
|
|
2739
|
+
"aria-label": item.label,
|
|
2740
|
+
onClick: ($event) => emit("navigate", item)
|
|
2741
|
+
}), {
|
|
2742
|
+
default: withCtx(() => [
|
|
2743
|
+
createElementVNode("span", _hoisted_4$2, [
|
|
2744
|
+
item.iconPath ? (openBlock(), createBlock(LfIcon, {
|
|
2745
|
+
key: 0,
|
|
2746
|
+
path: item.iconPath,
|
|
2747
|
+
size: "1.15rem"
|
|
2748
|
+
}, null, 8, ["path"])) : item.icon ? (openBlock(), createBlock(LfIcon, {
|
|
2749
|
+
key: 1,
|
|
2750
|
+
name: item.icon,
|
|
2751
|
+
size: "1.15rem"
|
|
2752
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2753
|
+
item.badge ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.badge), 1)) : createCommentVNode("", true)
|
|
2754
|
+
]),
|
|
2755
|
+
createElementVNode("span", _hoisted_6$1, [
|
|
2756
|
+
createElementVNode("span", _hoisted_7$1, toDisplayString(item.short ?? item.label), 1),
|
|
2757
|
+
createElementVNode("span", _hoisted_8$1, toDisplayString(item.label), 1)
|
|
2758
|
+
])
|
|
2743
2759
|
]),
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
])
|
|
2748
|
-
]),
|
|
2749
|
-
_: 2
|
|
2750
|
-
}, 1040, ["class", "title", "aria-label", "onClick"]);
|
|
2760
|
+
_: 2
|
|
2761
|
+
}, 1040, ["class", "title", "aria-label", "onClick"]))
|
|
2762
|
+
], 64);
|
|
2751
2763
|
}), 128))
|
|
2752
2764
|
]);
|
|
2753
2765
|
};
|
|
2754
2766
|
}
|
|
2755
2767
|
});
|
|
2756
|
-
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
2768
|
+
const LfNavRail = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-44d2c07e"]]);
|
|
2757
2769
|
const _hoisted_1$2 = ["aria-label"];
|
|
2758
2770
|
const _hoisted_2$2 = ["aria-checked", "aria-label", "title", "disabled", "onClick"];
|
|
2759
2771
|
const _hoisted_3$1 = {
|