@loafacto/ui 0.16.0 → 0.16.1
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/AppShell.vue.d.ts +8 -8
- package/dist/index.js +53 -43
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +97 -75
- package/package.json +1 -1
|
@@ -34,21 +34,21 @@ type __VLS_Props = {
|
|
|
34
34
|
backgroundColor?: string;
|
|
35
35
|
backgroundImage?: string;
|
|
36
36
|
};
|
|
37
|
-
declare var
|
|
37
|
+
declare var __VLS_23: {}, __VLS_25: {}, __VLS_27: {}, __VLS_29: {}, __VLS_31: {}, __VLS_33: {}, __VLS_35: {};
|
|
38
38
|
type __VLS_Slots = {} & {
|
|
39
|
-
'user-menu'?: (props: typeof
|
|
39
|
+
'user-menu'?: (props: typeof __VLS_23) => any;
|
|
40
40
|
} & {
|
|
41
|
-
'auth-actions'?: (props: typeof
|
|
41
|
+
'auth-actions'?: (props: typeof __VLS_25) => any;
|
|
42
42
|
} & {
|
|
43
|
-
actions?: (props: typeof
|
|
43
|
+
actions?: (props: typeof __VLS_27) => any;
|
|
44
44
|
} & {
|
|
45
|
-
rail?: (props: typeof
|
|
45
|
+
rail?: (props: typeof __VLS_29) => any;
|
|
46
46
|
} & {
|
|
47
|
-
default?: (props: typeof
|
|
47
|
+
default?: (props: typeof __VLS_31) => any;
|
|
48
48
|
} & {
|
|
49
|
-
default?: (props: typeof
|
|
49
|
+
default?: (props: typeof __VLS_33) => any;
|
|
50
50
|
} & {
|
|
51
|
-
footer?: (props: typeof
|
|
51
|
+
footer?: (props: typeof __VLS_35) => any;
|
|
52
52
|
};
|
|
53
53
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
54
|
navigate: (payload: {
|
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,
|
|
1
|
+
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeClass, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, Transition, withCtx, renderList, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withModifiers, 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";
|
|
@@ -449,29 +449,34 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
449
449
|
})
|
|
450
450
|
], -1))
|
|
451
451
|
], 8, _hoisted_7$a),
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
452
|
+
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
453
|
+
default: withCtx(() => [
|
|
454
|
+
switcherOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
455
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.services, (svc) => {
|
|
456
|
+
return openBlock(), createElementBlock("a", {
|
|
457
|
+
key: svc.id,
|
|
458
|
+
class: normalizeClass(["lf-switcher__item", {
|
|
459
|
+
"lf-switcher__item--active": svc.id === __props.currentServiceId,
|
|
460
|
+
"lf-switcher__item--disabled": svc.comingSoon
|
|
461
|
+
}]),
|
|
462
|
+
href: svc.comingSoon ? void 0 : svc.path,
|
|
463
|
+
role: "menuitem",
|
|
464
|
+
onClick: ($event) => onServiceClick($event, svc)
|
|
465
|
+
}, [
|
|
466
|
+
svc.iconPath ? (openBlock(), createElementBlock("svg", _hoisted_10$2, [
|
|
467
|
+
createElementVNode("path", {
|
|
468
|
+
d: svc.iconPath,
|
|
469
|
+
fill: "currentColor"
|
|
470
|
+
}, null, 8, _hoisted_11$1)
|
|
471
|
+
])) : createCommentVNode("", true),
|
|
472
|
+
createElementVNode("span", _hoisted_12$1, toDisplayString(svc.name), 1),
|
|
473
|
+
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13$1, "준비 중")) : svc.badge ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(svc.badge), 1)) : createCommentVNode("", true)
|
|
474
|
+
], 10, _hoisted_9$2);
|
|
475
|
+
}), 128))
|
|
476
|
+
])) : createCommentVNode("", true)
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
})
|
|
475
480
|
], 512)) : createCommentVNode("", true),
|
|
476
481
|
_cache[9] || (_cache[9] = createElementVNode("div", { class: "lf-topbar__spacer" }, null, -1)),
|
|
477
482
|
__props.user ? (openBlock(), createElementBlock("div", {
|
|
@@ -505,24 +510,29 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
505
510
|
})
|
|
506
511
|
], -1))
|
|
507
512
|
], 8, _hoisted_15),
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
513
|
+
createVNode(Transition, { name: "lf-shell-menu" }, {
|
|
514
|
+
default: withCtx(() => [
|
|
515
|
+
userOpen.value ? (openBlock(), createElementBlock("div", {
|
|
516
|
+
key: 0,
|
|
517
|
+
class: "lf-user__menu",
|
|
518
|
+
role: "menu",
|
|
519
|
+
onClick: _cache[3] || (_cache[3] = ($event) => userOpen.value = false)
|
|
520
|
+
}, [
|
|
521
|
+
__props.user.email ? (openBlock(), createElementBlock("p", _hoisted_19, toDisplayString(__props.user.email), 1)) : createCommentVNode("", true),
|
|
522
|
+
__props.myPageHref ? (openBlock(), createElementBlock("a", {
|
|
523
|
+
key: 1,
|
|
524
|
+
href: __props.myPageHref
|
|
525
|
+
}, "내 정보", 8, _hoisted_20)) : createCommentVNode("", true),
|
|
526
|
+
renderSlot(_ctx.$slots, "user-menu", {}, void 0, true),
|
|
527
|
+
__props.logoutHref ? (openBlock(), createElementBlock("a", {
|
|
528
|
+
key: 2,
|
|
529
|
+
class: "lf-user__logout",
|
|
530
|
+
href: __props.logoutHref
|
|
531
|
+
}, "로그아웃", 8, _hoisted_21)) : createCommentVNode("", true)
|
|
532
|
+
])) : createCommentVNode("", true)
|
|
533
|
+
]),
|
|
534
|
+
_: 3
|
|
535
|
+
})
|
|
526
536
|
], 512)) : renderSlot(_ctx.$slots, "auth-actions", {}, void 0, true, 3),
|
|
527
537
|
__props.shortcuts.length ? (openBlock(), createElementBlock("nav", _hoisted_22, [
|
|
528
538
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.shortcuts, (s) => {
|
|
@@ -591,7 +601,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
591
601
|
};
|
|
592
602
|
}
|
|
593
603
|
});
|
|
594
|
-
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
604
|
+
const AppShell = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0e48f886"]]);
|
|
595
605
|
function generateId() {
|
|
596
606
|
return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
597
607
|
}
|