@loafacto/ui 0.8.2 → 0.8.4
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 +25 -12
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +31 -21
- package/dist/vuetify.d.ts +7 -1
- package/dist/vuetify.js.map +1 -1
- 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, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, normalizeClass, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, withDirectives, withKeys, vModelText, resolveDynamicComponent,
|
|
1
|
+
import { readonly, ref, openBlock, createElementBlock, createStaticVNode, createElementVNode, defineComponent, computed, watch, onBeforeUnmount, normalizeStyle, createCommentVNode, Fragment, toDisplayString, createVNode, renderList, normalizeClass, renderSlot, unref, onUnmounted, createBlock, Teleport, TransitionGroup, withCtx, withModifiers, Transition, useTemplateRef, nextTick, createTextVNode, withDirectives, withKeys, vModelText, resolveDynamicComponent, useModel, useId, mergeProps, vModelDynamic, mergeModels, onMounted, vModelSelect, vModelCheckbox, vModelRadio, useSlots } from "vue";
|
|
2
2
|
import { a as applyTheme, D as DARK_THEME, L as LIGHT_THEME } from "./applyTheme-EBr0eOKY.js";
|
|
3
3
|
import { b, c, d, e, f, h, i, l } from "./applyTheme-EBr0eOKY.js";
|
|
4
4
|
import { defineStore } from "pinia";
|
|
@@ -151,7 +151,7 @@ const _hoisted_10$1 = {
|
|
|
151
151
|
viewBox: "0 0 24 24",
|
|
152
152
|
"aria-hidden": "true"
|
|
153
153
|
};
|
|
154
|
-
const _hoisted_11
|
|
154
|
+
const _hoisted_11 = ["d"];
|
|
155
155
|
const _hoisted_12 = { class: "lf-switcher__label" };
|
|
156
156
|
const _hoisted_13 = {
|
|
157
157
|
key: 1,
|
|
@@ -334,7 +334,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
334
334
|
createElementVNode("path", {
|
|
335
335
|
d: svc.iconPath,
|
|
336
336
|
fill: "currentColor"
|
|
337
|
-
}, null, 8, _hoisted_11
|
|
337
|
+
}, null, 8, _hoisted_11)
|
|
338
338
|
])) : createCommentVNode("", true),
|
|
339
339
|
createElementVNode("span", _hoisted_12, toDisplayString(svc.name), 1),
|
|
340
340
|
svc.comingSoon ? (openBlock(), createElementBlock("span", _hoisted_13, "준비 중")) : createCommentVNode("", true)
|
|
@@ -676,13 +676,22 @@ const _hoisted_7$6 = {
|
|
|
676
676
|
class: "app-confirm__require"
|
|
677
677
|
};
|
|
678
678
|
const _hoisted_8$1 = { class: "app-confirm__require-label" };
|
|
679
|
-
const _hoisted_9 =
|
|
680
|
-
const _hoisted_10 =
|
|
681
|
-
const _hoisted_11 = ["disabled"];
|
|
679
|
+
const _hoisted_9 = { class: "app-confirm__actions" };
|
|
680
|
+
const _hoisted_10 = ["disabled"];
|
|
682
681
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
683
682
|
__name: "AppConfirmModal",
|
|
684
683
|
setup(__props) {
|
|
685
684
|
const store = useConfirmStore();
|
|
685
|
+
const requireInput = useTemplateRef("requireInput");
|
|
686
|
+
watch(
|
|
687
|
+
() => store.open,
|
|
688
|
+
async (open) => {
|
|
689
|
+
var _a;
|
|
690
|
+
if (!open || !store.requireText) return;
|
|
691
|
+
await nextTick();
|
|
692
|
+
(_a = requireInput.value) == null ? void 0 : _a.focus();
|
|
693
|
+
}
|
|
694
|
+
);
|
|
686
695
|
return (_ctx, _cache) => {
|
|
687
696
|
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
688
697
|
createVNode(Transition, { name: "app-confirm-fade" }, {
|
|
@@ -695,21 +704,25 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
695
704
|
createElementVNode("div", _hoisted_5$a, [
|
|
696
705
|
createElementVNode("p", _hoisted_6$7, toDisplayString(unref(store).message), 1),
|
|
697
706
|
unref(store).requireText ? (openBlock(), createElementBlock("label", _hoisted_7$6, [
|
|
698
|
-
createElementVNode("span", _hoisted_8$1,
|
|
707
|
+
createElementVNode("span", _hoisted_8$1, [
|
|
708
|
+
createTextVNode(toDisplayString(unref(store).requireLabel || "확인을 위해 입력") + ": ", 1),
|
|
709
|
+
createElementVNode("code", null, toDisplayString(unref(store).requireText), 1)
|
|
710
|
+
]),
|
|
699
711
|
withDirectives(createElementVNode("input", {
|
|
712
|
+
ref_key: "requireInput",
|
|
713
|
+
ref: requireInput,
|
|
700
714
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(store).typedText = $event),
|
|
701
715
|
class: "app-confirm__input",
|
|
702
716
|
type: "text",
|
|
703
717
|
autocomplete: "off",
|
|
704
718
|
spellcheck: "false",
|
|
705
|
-
placeholder: unref(store).requireText,
|
|
706
719
|
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => unref(store).resolve(true), ["prevent"]), ["enter"]))
|
|
707
|
-
}, null,
|
|
720
|
+
}, null, 544), [
|
|
708
721
|
[vModelText, unref(store).typedText]
|
|
709
722
|
])
|
|
710
723
|
])) : createCommentVNode("", true)
|
|
711
724
|
]),
|
|
712
|
-
createElementVNode("div",
|
|
725
|
+
createElementVNode("div", _hoisted_9, [
|
|
713
726
|
createElementVNode("button", {
|
|
714
727
|
type: "button",
|
|
715
728
|
class: "app-confirm__btn app-confirm__btn--ghost",
|
|
@@ -720,7 +733,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
720
733
|
class: normalizeClass(["app-confirm__btn", unref(store).danger ? "app-confirm__btn--danger" : "app-confirm__btn--primary"]),
|
|
721
734
|
disabled: !unref(store).canConfirm,
|
|
722
735
|
onClick: _cache[3] || (_cache[3] = ($event) => unref(store).resolve(true))
|
|
723
|
-
}, toDisplayString(unref(store).confirmText), 11,
|
|
736
|
+
}, toDisplayString(unref(store).confirmText), 11, _hoisted_10)
|
|
724
737
|
])
|
|
725
738
|
])
|
|
726
739
|
])) : createCommentVNode("", true)
|
|
@@ -731,7 +744,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
731
744
|
};
|
|
732
745
|
}
|
|
733
746
|
});
|
|
734
|
-
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
747
|
+
const AppConfirmModal = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0f5ba1a6"]]);
|
|
735
748
|
const LF_ICONS = {
|
|
736
749
|
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",
|
|
737
750
|
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",
|