@krds.ui/vue 0.0.14 → 0.0.15
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/KrdsAccordionGroup/KrdsAccordionGroup.d.ts +7 -0
- package/dist/components/KrdsAccordionGroup/KrdsAccordionGroup.d.ts.map +1 -0
- package/dist/components/KrdsAccordionGroup/index.d.ts +5 -0
- package/dist/components/KrdsAccordionGroup/index.d.ts.map +1 -0
- package/dist/components/KrdsAccordionItem/KrdsAccordionItem.d.ts +22 -0
- package/dist/components/KrdsAccordionItem/KrdsAccordionItem.d.ts.map +1 -0
- package/dist/components/KrdsAccordionItem/index.d.ts +5 -0
- package/dist/components/KrdsAccordionItem/index.d.ts.map +1 -0
- package/dist/components/KrdsBadge/KrdsBadge.d.ts +24 -0
- package/dist/components/KrdsBadge/KrdsBadge.d.ts.map +1 -0
- package/dist/components/KrdsBadge/index.d.ts +5 -0
- package/dist/components/KrdsBadge/index.d.ts.map +1 -0
- package/dist/components/KrdsBreadcrumb/KrdsBreadcrumb.d.ts +33 -0
- package/dist/components/KrdsBreadcrumb/KrdsBreadcrumb.d.ts.map +1 -0
- package/dist/components/KrdsBreadcrumb/index.d.ts +5 -0
- package/dist/components/KrdsBreadcrumb/index.d.ts.map +1 -0
- package/dist/components/KrdsButton/KrdsButton.d.ts +31 -0
- package/dist/components/KrdsButton/KrdsButton.d.ts.map +1 -0
- package/dist/components/KrdsButton/index.d.ts +5 -0
- package/dist/components/KrdsButton/index.d.ts.map +1 -0
- package/dist/components/KrdsButtonGroup/KrdsButtonGroup.d.ts +8 -0
- package/dist/components/KrdsButtonGroup/KrdsButtonGroup.d.ts.map +1 -0
- package/dist/components/KrdsButtonGroup/index.d.ts +3 -0
- package/dist/components/KrdsButtonGroup/index.d.ts.map +1 -0
- package/dist/components/KrdsCheckArea/KrdsCheckArea.d.ts +12 -0
- package/dist/components/KrdsCheckArea/KrdsCheckArea.d.ts.map +1 -0
- package/dist/components/KrdsCheckArea/index.d.ts +5 -0
- package/dist/components/KrdsCheckArea/index.d.ts.map +1 -0
- package/dist/components/KrdsCheckbox/KrdsCheckbox.d.ts +23 -0
- package/dist/components/KrdsCheckbox/KrdsCheckbox.d.ts.map +1 -0
- package/dist/components/KrdsCheckbox/index.d.ts +5 -0
- package/dist/components/KrdsCheckbox/index.d.ts.map +1 -0
- package/dist/components/KrdsCoachMark/KrdsCoachMark.d.ts +29 -0
- package/dist/components/KrdsCoachMark/KrdsCoachMark.d.ts.map +1 -0
- package/dist/components/KrdsCoachMark/index.d.ts +5 -0
- package/dist/components/KrdsCoachMark/index.d.ts.map +1 -0
- package/dist/components/KrdsContextualHelp/KrdsContextualHelp.d.ts +15 -0
- package/dist/components/KrdsContextualHelp/KrdsContextualHelp.d.ts.map +1 -0
- package/dist/components/KrdsContextualHelp/index.d.ts +5 -0
- package/dist/components/KrdsContextualHelp/index.d.ts.map +1 -0
- package/dist/components/KrdsCriticalAlerts/KrdsCriticalAlerts.d.ts +27 -0
- package/dist/components/KrdsCriticalAlerts/KrdsCriticalAlerts.d.ts.map +1 -0
- package/dist/components/KrdsCriticalAlerts/index.d.ts +5 -0
- package/dist/components/KrdsCriticalAlerts/index.d.ts.map +1 -0
- package/dist/components/KrdsDateInput/KrdsDateInput.d.ts +39 -0
- package/dist/components/KrdsDateInput/KrdsDateInput.d.ts.map +1 -0
- package/dist/components/KrdsDateInput/index.d.ts +5 -0
- package/dist/components/KrdsDateInput/index.d.ts.map +1 -0
- package/dist/components/KrdsDisclosure/KrdsDisclosure.d.ts +19 -0
- package/dist/components/KrdsDisclosure/KrdsDisclosure.d.ts.map +1 -0
- package/dist/components/KrdsDisclosure/index.d.ts +5 -0
- package/dist/components/KrdsDisclosure/index.d.ts.map +1 -0
- package/dist/components/KrdsFileUpload/KrdsFileUpload.d.ts +285 -0
- package/dist/components/KrdsFileUpload/KrdsFileUpload.d.ts.map +1 -0
- package/dist/components/KrdsFileUpload/index.d.ts +5 -0
- package/dist/components/KrdsFileUpload/index.d.ts.map +1 -0
- package/dist/components/KrdsFooter/KrdsFooter.d.ts +11 -0
- package/dist/components/KrdsFooter/KrdsFooter.d.ts.map +1 -0
- package/dist/components/KrdsFooter/index.d.ts +5 -0
- package/dist/components/KrdsFooter/index.d.ts.map +1 -0
- package/dist/components/KrdsFormGroup/KrdsFormGroup.d.ts +8 -0
- package/dist/components/KrdsFormGroup/KrdsFormGroup.d.ts.map +1 -0
- package/dist/components/KrdsFormGroup/index.d.ts +5 -0
- package/dist/components/KrdsFormGroup/index.d.ts.map +1 -0
- package/dist/components/KrdsFormHint/KrdsFormHint.d.ts +17 -0
- package/dist/components/KrdsFormHint/KrdsFormHint.d.ts.map +1 -0
- package/dist/components/KrdsFormHint/index.d.ts +5 -0
- package/dist/components/KrdsFormHint/index.d.ts.map +1 -0
- package/dist/components/KrdsFormLabel/KrdsFormLabel.d.ts +17 -0
- package/dist/components/KrdsFormLabel/KrdsFormLabel.d.ts.map +1 -0
- package/dist/components/KrdsFormLabel/index.d.ts +5 -0
- package/dist/components/KrdsFormLabel/index.d.ts.map +1 -0
- package/dist/components/KrdsHeader/KrdsHeader.d.ts +56 -0
- package/dist/components/KrdsHeader/KrdsHeader.d.ts.map +1 -0
- package/dist/components/KrdsHeader/index.d.ts +5 -0
- package/dist/components/KrdsHeader/index.d.ts.map +1 -0
- package/dist/components/KrdsIcon/KrdsIcon.d.ts +11 -0
- package/dist/components/KrdsIcon/KrdsIcon.d.ts.map +1 -0
- package/dist/components/KrdsIcon/index.d.ts +3 -0
- package/dist/components/KrdsIcon/index.d.ts.map +1 -0
- package/dist/components/KrdsIdentifier/KrdsIdentifier.d.ts +16 -0
- package/dist/components/KrdsIdentifier/KrdsIdentifier.d.ts.map +1 -0
- package/dist/components/KrdsIdentifier/index.d.ts +5 -0
- package/dist/components/KrdsIdentifier/index.d.ts.map +1 -0
- package/dist/components/KrdsInPageNavigation/KrdsInPageNavigation.d.ts +38 -0
- package/dist/components/KrdsInPageNavigation/KrdsInPageNavigation.d.ts.map +1 -0
- package/dist/components/KrdsInPageNavigation/index.d.ts +5 -0
- package/dist/components/KrdsInPageNavigation/index.d.ts.map +1 -0
- package/dist/components/KrdsInput/KrdsInput.d.ts +51 -0
- package/dist/components/KrdsInput/KrdsInput.d.ts.map +1 -0
- package/dist/components/KrdsInput/index.d.ts +5 -0
- package/dist/components/KrdsInput/index.d.ts.map +1 -0
- package/dist/components/KrdsLanguageSwitcher/KrdsLanguageSwitcher.d.ts +30 -0
- package/dist/components/KrdsLanguageSwitcher/KrdsLanguageSwitcher.d.ts.map +1 -0
- package/dist/components/KrdsLanguageSwitcher/index.d.ts +5 -0
- package/dist/components/KrdsLanguageSwitcher/index.d.ts.map +1 -0
- package/dist/components/KrdsLayout/KrdsLayout.d.ts +37 -0
- package/dist/components/KrdsLayout/KrdsLayout.d.ts.map +1 -0
- package/dist/components/KrdsLayout/index.d.ts +5 -0
- package/dist/components/KrdsLayout/index.d.ts.map +1 -0
- package/dist/components/KrdsLink/KrdsLink.d.ts +33 -0
- package/dist/components/KrdsLink/KrdsLink.d.ts.map +1 -0
- package/dist/components/KrdsLink/index.d.ts +3 -0
- package/dist/components/KrdsLink/index.d.ts.map +1 -0
- package/dist/components/KrdsMasthead/KrdsMasthead.d.ts +14 -0
- package/dist/components/KrdsMasthead/KrdsMasthead.d.ts.map +1 -0
- package/dist/components/KrdsMasthead/index.d.ts +5 -0
- package/dist/components/KrdsMasthead/index.d.ts.map +1 -0
- package/dist/components/KrdsModal/KrdsModal.d.ts +88 -0
- package/dist/components/KrdsModal/KrdsModal.d.ts.map +1 -0
- package/dist/components/KrdsModal/index.d.ts +5 -0
- package/dist/components/KrdsModal/index.d.ts.map +1 -0
- package/dist/components/KrdsPagination/KrdsPagination.d.ts +27 -0
- package/dist/components/KrdsPagination/KrdsPagination.d.ts.map +1 -0
- package/dist/components/KrdsPagination/index.d.ts +5 -0
- package/dist/components/KrdsPagination/index.d.ts.map +1 -0
- package/dist/components/KrdsPanel/KrdsPanel.d.ts +16 -0
- package/dist/components/KrdsPanel/KrdsPanel.d.ts.map +1 -0
- package/dist/components/KrdsPanel/index.d.ts +5 -0
- package/dist/components/KrdsPanel/index.d.ts.map +1 -0
- package/dist/components/KrdsRadio/KrdsRadio.d.ts +25 -0
- package/dist/components/KrdsRadio/KrdsRadio.d.ts.map +1 -0
- package/dist/components/KrdsRadio/index.d.ts +5 -0
- package/dist/components/KrdsRadio/index.d.ts.map +1 -0
- package/dist/components/KrdsResize/KrdsResize.d.ts +15 -0
- package/dist/components/KrdsResize/KrdsResize.d.ts.map +1 -0
- package/dist/components/KrdsResize/index.d.ts +5 -0
- package/dist/components/KrdsResize/index.d.ts.map +1 -0
- package/dist/components/KrdsSelect/KrdsSelect.d.ts +44 -0
- package/dist/components/KrdsSelect/KrdsSelect.d.ts.map +1 -0
- package/dist/components/KrdsSelect/index.d.ts +5 -0
- package/dist/components/KrdsSelect/index.d.ts.map +1 -0
- package/dist/components/KrdsSideNavigation/KrdsSideNavigation.d.ts +74 -0
- package/dist/components/KrdsSideNavigation/KrdsSideNavigation.d.ts.map +1 -0
- package/dist/components/KrdsSideNavigation/index.d.ts +5 -0
- package/dist/components/KrdsSideNavigation/index.d.ts.map +1 -0
- package/dist/components/KrdsSkipLink/KrdsSkipLink.d.ts +77 -0
- package/dist/components/KrdsSkipLink/KrdsSkipLink.d.ts.map +1 -0
- package/dist/components/KrdsSkipLink/index.d.ts +5 -0
- package/dist/components/KrdsSkipLink/index.d.ts.map +1 -0
- package/dist/components/KrdsSpinner/KrdsSpinner.d.ts +15 -0
- package/dist/components/KrdsSpinner/KrdsSpinner.d.ts.map +1 -0
- package/dist/components/KrdsSpinner/index.d.ts +4 -0
- package/dist/components/KrdsSpinner/index.d.ts.map +1 -0
- package/dist/components/KrdsStep/KrdsStep.d.ts +21 -0
- package/dist/components/KrdsStep/KrdsStep.d.ts.map +1 -0
- package/dist/components/KrdsStep/index.d.ts +5 -0
- package/dist/components/KrdsStep/index.d.ts.map +1 -0
- package/dist/components/KrdsStepIndicator/KrdsStepIndicator.d.ts +17 -0
- package/dist/components/KrdsStepIndicator/KrdsStepIndicator.d.ts.map +1 -0
- package/dist/components/KrdsStepIndicator/index.d.ts +5 -0
- package/dist/components/KrdsStepIndicator/index.d.ts.map +1 -0
- package/dist/components/KrdsStructuredList/KrdsStructuredList.d.ts +11 -0
- package/dist/components/KrdsStructuredList/KrdsStructuredList.d.ts.map +1 -0
- package/dist/components/KrdsStructuredList/index.d.ts +5 -0
- package/dist/components/KrdsStructuredList/index.d.ts.map +1 -0
- package/dist/components/KrdsTable/KrdsTable.d.ts +48 -0
- package/dist/components/KrdsTable/KrdsTable.d.ts.map +1 -0
- package/dist/components/KrdsTable/index.d.ts +5 -0
- package/dist/components/KrdsTable/index.d.ts.map +1 -0
- package/dist/components/KrdsTag/KrdsTag.d.ts +23 -0
- package/dist/components/KrdsTag/KrdsTag.d.ts.map +1 -0
- package/dist/components/KrdsTag/index.d.ts +5 -0
- package/dist/components/KrdsTag/index.d.ts.map +1 -0
- package/dist/components/KrdsTagGroup/KrdsTagGroup.d.ts +15 -0
- package/dist/components/KrdsTagGroup/KrdsTagGroup.d.ts.map +1 -0
- package/dist/components/KrdsTagGroup/index.d.ts +5 -0
- package/dist/components/KrdsTagGroup/index.d.ts.map +1 -0
- package/dist/components/KrdsTextList/KrdsTextList.d.ts +13 -0
- package/dist/components/KrdsTextList/KrdsTextList.d.ts.map +1 -0
- package/dist/components/KrdsTextList/index.d.ts +5 -0
- package/dist/components/KrdsTextList/index.d.ts.map +1 -0
- package/dist/components/KrdsTextarea/KrdsTextarea.d.ts +209 -0
- package/dist/components/KrdsTextarea/KrdsTextarea.d.ts.map +1 -0
- package/dist/components/KrdsTextarea/index.d.ts +5 -0
- package/dist/components/KrdsTextarea/index.d.ts.map +1 -0
- package/dist/components/KrdsToggleSwitch/KrdsToggleSwitch.d.ts +24 -0
- package/dist/components/KrdsToggleSwitch/KrdsToggleSwitch.d.ts.map +1 -0
- package/dist/components/KrdsToggleSwitch/index.d.ts +5 -0
- package/dist/components/KrdsToggleSwitch/index.d.ts.map +1 -0
- package/dist/components/KrdsTooltip/KrdsTooltip.d.ts +20 -0
- package/dist/components/KrdsTooltip/KrdsTooltip.d.ts.map +1 -0
- package/dist/components/KrdsTooltip/index.d.ts +5 -0
- package/dist/components/KrdsTooltip/index.d.ts.map +1 -0
- package/dist/components/KrdsTts/KrdsTts.d.ts +36 -0
- package/dist/components/KrdsTts/KrdsTts.d.ts.map +1 -0
- package/dist/components/KrdsTts/index.d.ts +5 -0
- package/dist/components/KrdsTts/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +97 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/useClickOutside.d.ts +22 -0
- package/dist/composables/useClickOutside.d.ts.map +1 -0
- package/dist/composables/useDatePicker.d.ts +26 -0
- package/dist/composables/useDatePicker.d.ts.map +1 -0
- package/dist/directives/index.d.ts +15 -0
- package/dist/directives/index.d.ts.map +1 -0
- package/dist/directives/vSrOnly.d.ts +8 -0
- package/dist/directives/vSrOnly.d.ts.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/krds-vue.es.js +1677 -1558
- package/dist/krds-vue.es.js.map +1 -1
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +115 -2079
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/index.d.ts +26 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +30 -30
package/dist/krds-vue.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
let
|
|
4
|
-
for (var
|
|
5
|
-
|
|
6
|
-
get: e[
|
|
1
|
+
import { Teleport as ke, computed as g, defineComponent as D, getCurrentInstance as Se, h as t, inject as Ke, nextTick as ue, onBeforeUnmount as Q, onMounted as N, onUnmounted as q, provide as we, ref as _, useId as O, vShow as X, watch as G, withDirectives as W, withModifiers as J } from "vue";
|
|
2
|
+
var se = Object.defineProperty, ce = (e, l) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var a in e)
|
|
5
|
+
se(r, a, {
|
|
6
|
+
get: e[a],
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
|
-
return
|
|
10
|
-
},
|
|
9
|
+
return l || se(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
10
|
+
}, fe = D({
|
|
11
11
|
name: "KrdsButton",
|
|
12
12
|
props: {
|
|
13
13
|
type: {
|
|
@@ -48,27 +48,27 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
emits: ["click"],
|
|
51
|
-
setup(e, { emit:
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
return e.icon &&
|
|
55
|
-
}),
|
|
56
|
-
e.disabled ||
|
|
51
|
+
setup(e, { emit: l, slots: r }) {
|
|
52
|
+
const a = g(() => {
|
|
53
|
+
const s = ["krds-btn"];
|
|
54
|
+
return e.icon && s.push("icon"), e.border && s.push("border"), e.pure && s.push("pure"), e.text && s.push("text"), e.variant && !e.icon && s.push(e.variant), e.size && s.push(e.size), e.class && s.push(e.class), s;
|
|
55
|
+
}), n = (s) => {
|
|
56
|
+
e.disabled || l("click", s);
|
|
57
57
|
};
|
|
58
58
|
return () => t("button", {
|
|
59
59
|
type: e.type,
|
|
60
|
-
class:
|
|
60
|
+
class: a.value,
|
|
61
61
|
disabled: e.disabled,
|
|
62
|
-
onClick:
|
|
63
|
-
},
|
|
62
|
+
onClick: n
|
|
63
|
+
}, r.default?.());
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), Ce = fe, xe = D({
|
|
66
66
|
name: "KrdsButtonGroup",
|
|
67
67
|
props: {},
|
|
68
|
-
setup(e, { slots:
|
|
69
|
-
return () => t("div", { class: "btn-group" },
|
|
68
|
+
setup(e, { slots: l }) {
|
|
69
|
+
return () => t("div", { class: "btn-group" }, l.default?.());
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
71
|
+
}), $e = D({
|
|
72
72
|
name: "KrdsIcon",
|
|
73
73
|
props: {
|
|
74
74
|
name: {
|
|
@@ -87,7 +87,7 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
87
87
|
e.class
|
|
88
88
|
].filter(Boolean).join(" ") });
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), Be = D({
|
|
91
91
|
name: "KrdsLink",
|
|
92
92
|
props: {
|
|
93
93
|
href: {
|
|
@@ -124,25 +124,25 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
emits: ["click"],
|
|
127
|
-
setup(e, { emit:
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
return e.size &&
|
|
131
|
-
}),
|
|
132
|
-
const
|
|
127
|
+
setup(e, { emit: l, slots: r }) {
|
|
128
|
+
const a = g(() => {
|
|
129
|
+
const d = ["krds-btn"];
|
|
130
|
+
return e.size && d.push(e.size), e.link && d.push("link"), e.basic && d.push("basic"), e.pure && d.push("pure"), e.class && d.push(e.class), d;
|
|
131
|
+
}), n = g(() => {
|
|
132
|
+
const d = {
|
|
133
133
|
href: e.href,
|
|
134
|
-
class:
|
|
134
|
+
class: a.value
|
|
135
135
|
};
|
|
136
|
-
return e.target && (
|
|
137
|
-
}),
|
|
138
|
-
|
|
136
|
+
return e.target && (d.target = e.target), e.title && (d.title = e.title), e.target === "_blank" && (d.rel = "noopener noreferrer"), d;
|
|
137
|
+
}), s = (d) => {
|
|
138
|
+
l("click", d);
|
|
139
139
|
};
|
|
140
140
|
return () => t("a", {
|
|
141
|
-
...
|
|
142
|
-
onClick:
|
|
143
|
-
},
|
|
141
|
+
...n.value,
|
|
142
|
+
onClick: s
|
|
143
|
+
}, r.default?.());
|
|
144
144
|
}
|
|
145
|
-
}),
|
|
145
|
+
}), ve = D({
|
|
146
146
|
name: "KrdsSpinner",
|
|
147
147
|
props: { label: {
|
|
148
148
|
type: String,
|
|
@@ -155,7 +155,7 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
155
155
|
role: "status"
|
|
156
156
|
}, e);
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), Le = D({
|
|
159
159
|
name: "KrdsInput",
|
|
160
160
|
props: {
|
|
161
161
|
modelValue: {
|
|
@@ -252,27 +252,27 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
252
252
|
"keydown",
|
|
253
253
|
"keyup"
|
|
254
254
|
],
|
|
255
|
-
setup(e, { emit:
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
return e.size &&
|
|
259
|
-
}),
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
}, f = (
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
},
|
|
273
|
-
const
|
|
255
|
+
setup(e, { emit: l, slots: r }) {
|
|
256
|
+
const a = g(() => {
|
|
257
|
+
const y = ["krds-input"];
|
|
258
|
+
return e.size && y.push(e.size), e.class && y.push(e.class), y;
|
|
259
|
+
}), n = (y) => {
|
|
260
|
+
const k = y.target;
|
|
261
|
+
l("update:modelValue", e.type === "number" ? Number(k.value) : k.value), l("input", y);
|
|
262
|
+
}, s = (y) => {
|
|
263
|
+
l("change", y);
|
|
264
|
+
}, d = (y) => {
|
|
265
|
+
l("focus", y);
|
|
266
|
+
}, h = (y) => {
|
|
267
|
+
l("blur", y);
|
|
268
|
+
}, f = (y) => {
|
|
269
|
+
l("keydown", y);
|
|
270
|
+
}, S = (y) => {
|
|
271
|
+
l("keyup", y);
|
|
272
|
+
}, p = g(() => {
|
|
273
|
+
const y = {
|
|
274
274
|
type: e.type,
|
|
275
|
-
class:
|
|
275
|
+
class: a.value,
|
|
276
276
|
value: e.modelValue,
|
|
277
277
|
placeholder: e.placeholder,
|
|
278
278
|
name: e.name,
|
|
@@ -282,24 +282,24 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
282
282
|
disabled: e.disabled,
|
|
283
283
|
autocomplete: e.autocomplete,
|
|
284
284
|
autofocus: e.autofocus,
|
|
285
|
-
onInput:
|
|
286
|
-
onChange:
|
|
287
|
-
onFocus:
|
|
288
|
-
onBlur:
|
|
285
|
+
onInput: n,
|
|
286
|
+
onChange: s,
|
|
287
|
+
onFocus: d,
|
|
288
|
+
onBlur: h,
|
|
289
289
|
onKeydown: f,
|
|
290
|
-
onKeyup:
|
|
290
|
+
onKeyup: S
|
|
291
291
|
};
|
|
292
|
-
return e.maxlength !== void 0 && (
|
|
293
|
-
}),
|
|
294
|
-
const
|
|
295
|
-
return e.state !== "default" &&
|
|
292
|
+
return e.maxlength !== void 0 && (y.maxlength = e.maxlength), e.minlength !== void 0 && (y.minlength = e.minlength), e.type === "number" && (e.max !== void 0 && (y.max = e.max), e.min !== void 0 && (y.min = e.min), e.step !== void 0 && (y.step = e.step)), y;
|
|
293
|
+
}), C = g(() => {
|
|
294
|
+
const y = ["form-conts"];
|
|
295
|
+
return e.state !== "default" && y.push(`is-${e.state}`), e.icon && y.push("btn-ico-wrap"), y;
|
|
296
296
|
});
|
|
297
297
|
return () => {
|
|
298
|
-
const
|
|
299
|
-
return e.loading ? t("div", { class:
|
|
298
|
+
const y = [t("input", p.value)];
|
|
299
|
+
return e.loading ? t("div", { class: C.value }, [t("div", { class: "form-spinner" }, [...y, t(ve)])]) : (r.default && y.push(...r.default()), t("div", { class: C.value }, y));
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
}),
|
|
302
|
+
}), De = Le, _e = D({
|
|
303
303
|
name: "KrdsFormLabel",
|
|
304
304
|
props: {
|
|
305
305
|
for: {
|
|
@@ -320,19 +320,19 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
emits: ["click"],
|
|
323
|
-
setup(e, { emit:
|
|
324
|
-
const
|
|
325
|
-
|
|
323
|
+
setup(e, { emit: l, slots: r }) {
|
|
324
|
+
const a = (n) => {
|
|
325
|
+
l("click", n);
|
|
326
326
|
};
|
|
327
327
|
return () => t("div", { class: "form-tit" }, [t("label", {
|
|
328
328
|
for: e.for,
|
|
329
329
|
id: e.id,
|
|
330
330
|
class: e.class,
|
|
331
331
|
style: e.style,
|
|
332
|
-
onClick:
|
|
333
|
-
},
|
|
332
|
+
onClick: a
|
|
333
|
+
}, r.default?.())]);
|
|
334
334
|
}
|
|
335
|
-
}),
|
|
335
|
+
}), Te = _e, Ve = D({
|
|
336
336
|
name: "KrdsFormHint",
|
|
337
337
|
props: {
|
|
338
338
|
type: {
|
|
@@ -353,35 +353,34 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
emits: ["click"],
|
|
356
|
-
setup(e, { emit:
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
let
|
|
356
|
+
setup(e, { emit: l, slots: r }) {
|
|
357
|
+
const a = (s) => {
|
|
358
|
+
l("click", s);
|
|
359
|
+
}, n = () => {
|
|
360
|
+
let s;
|
|
361
361
|
switch (e.type) {
|
|
362
362
|
case "error":
|
|
363
|
-
|
|
363
|
+
s = "form-hint-invalid";
|
|
364
364
|
break;
|
|
365
365
|
case "success":
|
|
366
|
-
|
|
366
|
+
s = "form-hint-success";
|
|
367
367
|
break;
|
|
368
368
|
case "information":
|
|
369
|
-
|
|
369
|
+
s = "form-hint-information";
|
|
370
370
|
break;
|
|
371
371
|
default:
|
|
372
|
-
|
|
373
|
-
break;
|
|
372
|
+
s = "form-hint";
|
|
374
373
|
}
|
|
375
|
-
return e.class ? `${
|
|
374
|
+
return e.class ? `${s} ${e.class}` : s;
|
|
376
375
|
};
|
|
377
376
|
return () => t("p", {
|
|
378
377
|
id: e.id,
|
|
379
|
-
class:
|
|
378
|
+
class: n(),
|
|
380
379
|
style: e.style,
|
|
381
|
-
onClick:
|
|
382
|
-
},
|
|
380
|
+
onClick: a
|
|
381
|
+
}, r.default?.());
|
|
383
382
|
}
|
|
384
|
-
}),
|
|
383
|
+
}), Ee = Ve, ze = D({
|
|
385
384
|
name: "KrdsFormGroup",
|
|
386
385
|
props: {
|
|
387
386
|
class: {
|
|
@@ -397,107 +396,120 @@ var be = Object.defineProperty, we = (e, a) => {
|
|
|
397
396
|
default: void 0
|
|
398
397
|
}
|
|
399
398
|
},
|
|
400
|
-
setup(e, { slots:
|
|
401
|
-
const
|
|
402
|
-
const
|
|
403
|
-
return e.class &&
|
|
399
|
+
setup(e, { slots: l }) {
|
|
400
|
+
const r = g(() => {
|
|
401
|
+
const a = ["form-group"];
|
|
402
|
+
return e.class && a.push(e.class), a;
|
|
404
403
|
});
|
|
405
404
|
return () => t("div", {
|
|
406
405
|
id: e.id,
|
|
407
|
-
class:
|
|
406
|
+
class: r.value,
|
|
408
407
|
style: e.style
|
|
409
|
-
},
|
|
408
|
+
}, l.default?.());
|
|
410
409
|
}
|
|
411
|
-
}),
|
|
412
|
-
function
|
|
413
|
-
const
|
|
414
|
-
const
|
|
415
|
-
for (let
|
|
416
|
-
return
|
|
417
|
-
}),
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
},
|
|
424
|
-
if (
|
|
425
|
-
|
|
426
|
-
else if (!
|
|
427
|
-
|
|
410
|
+
}), Ie = ze;
|
|
411
|
+
function Ae(e, l) {
|
|
412
|
+
const r = /* @__PURE__ */ new Date(), a = _(e || r.getFullYear()), n = _(l || r.getMonth() + 1), s = _(null), d = _(null), h = _(null), f = g(() => {
|
|
413
|
+
const i = r.getFullYear(), v = [];
|
|
414
|
+
for (let m = i - 10; m <= i + 10; m++) v.push(m);
|
|
415
|
+
return v;
|
|
416
|
+
}), S = g(() => Array.from({ length: 12 }, (i, v) => v + 1)), p = () => {
|
|
417
|
+
s.value = null, d.value = null;
|
|
418
|
+
}, C = () => {
|
|
419
|
+
n.value === 1 ? (n.value = 12, a.value -= 1) : n.value -= 1;
|
|
420
|
+
}, y = () => {
|
|
421
|
+
n.value === 12 ? (n.value = 1, a.value += 1) : n.value += 1;
|
|
422
|
+
}, k = (i, v = !1) => {
|
|
423
|
+
if (v)
|
|
424
|
+
s.value = i, d.value = i;
|
|
425
|
+
else if (!s.value || s.value && d.value)
|
|
426
|
+
s.value = i, d.value = null;
|
|
428
427
|
else {
|
|
429
|
-
const
|
|
430
|
-
new Date(
|
|
428
|
+
const m = new Date(s.value.replace(/\./g, "-"));
|
|
429
|
+
new Date(i.replace(/\./g, "-")) < m ? (s.value = i, d.value = null) : d.value = i;
|
|
431
430
|
}
|
|
432
431
|
};
|
|
433
432
|
return {
|
|
434
|
-
currentYear:
|
|
435
|
-
currentMonth:
|
|
436
|
-
selectedStartDate:
|
|
437
|
-
selectedEndDate:
|
|
438
|
-
activeDateSelector:
|
|
433
|
+
currentYear: a,
|
|
434
|
+
currentMonth: n,
|
|
435
|
+
selectedStartDate: s,
|
|
436
|
+
selectedEndDate: d,
|
|
437
|
+
activeDateSelector: h,
|
|
439
438
|
yearOptions: f,
|
|
440
|
-
monthOptions:
|
|
441
|
-
clearDateSelection:
|
|
442
|
-
prevMonth:
|
|
443
|
-
nextMonth:
|
|
444
|
-
handleDateSelection:
|
|
439
|
+
monthOptions: S,
|
|
440
|
+
clearDateSelection: p,
|
|
441
|
+
prevMonth: C,
|
|
442
|
+
nextMonth: y,
|
|
443
|
+
handleDateSelection: k,
|
|
445
444
|
selectToday: () => {
|
|
446
|
-
|
|
445
|
+
const i = `${r.getFullYear()}.${String(r.getMonth() + 1).padStart(2, "0")}.${String(r.getDate()).padStart(2, "0")}`;
|
|
446
|
+
k(i, !0);
|
|
447
447
|
},
|
|
448
|
-
isDateInSelectedRange: (
|
|
449
|
-
if (!
|
|
448
|
+
isDateInSelectedRange: (i) => {
|
|
449
|
+
if (!s.value || !d.value) return {
|
|
450
450
|
isInRange: !1,
|
|
451
451
|
isStart: !1,
|
|
452
452
|
isEnd: !1
|
|
453
453
|
};
|
|
454
|
-
const
|
|
454
|
+
const v = new Date(i.replace(/\./g, "-")), m = new Date(s.value.replace(/\./g, "-")), K = new Date(d.value.replace(/\./g, "-")), b = i === s.value, w = i === d.value;
|
|
455
455
|
return {
|
|
456
|
-
isInRange:
|
|
457
|
-
isStart:
|
|
458
|
-
isEnd:
|
|
456
|
+
isInRange: v >= m && v <= K,
|
|
457
|
+
isStart: b,
|
|
458
|
+
isEnd: w
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
let
|
|
465
|
-
const { ignore:
|
|
466
|
-
|
|
467
|
-
const
|
|
468
|
-
e.value?.contains(
|
|
469
|
-
}, document.addEventListener(
|
|
470
|
-
},
|
|
471
|
-
if (
|
|
472
|
-
const f = typeof
|
|
473
|
-
document.removeEventListener(f,
|
|
463
|
+
function Fe(e, l, r = {}) {
|
|
464
|
+
let a = null;
|
|
465
|
+
const { ignore: n, event: s = "click" } = typeof r == "string" ? { ignore: r } : r, d = () => {
|
|
466
|
+
a = (f) => {
|
|
467
|
+
const S = f.target;
|
|
468
|
+
e.value?.contains(S) || n && S.closest(n) || l();
|
|
469
|
+
}, document.addEventListener(s, a);
|
|
470
|
+
}, h = () => {
|
|
471
|
+
if (a) {
|
|
472
|
+
const f = typeof r == "string" ? "click" : r.event || "click";
|
|
473
|
+
document.removeEventListener(f, a), a = null;
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
return
|
|
477
|
-
|
|
478
|
-
}),
|
|
479
|
-
|
|
476
|
+
return N(() => {
|
|
477
|
+
d();
|
|
478
|
+
}), Q(() => {
|
|
479
|
+
h();
|
|
480
480
|
}), {
|
|
481
|
-
setupGlobalListeners:
|
|
482
|
-
removeGlobalListeners:
|
|
481
|
+
setupGlobalListeners: d,
|
|
482
|
+
removeGlobalListeners: h
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
var
|
|
486
|
-
"
|
|
487
|
-
"
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
__name: "KrdsDateInput",
|
|
485
|
+
var Me = [
|
|
486
|
+
"일",
|
|
487
|
+
"월",
|
|
488
|
+
"화",
|
|
489
|
+
"수",
|
|
490
|
+
"목",
|
|
491
|
+
"금",
|
|
492
|
+
"토"
|
|
493
|
+
], Pe = D({
|
|
494
|
+
name: "KrdsDateInput",
|
|
496
495
|
props: {
|
|
497
|
-
modelValue: {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
496
|
+
modelValue: {
|
|
497
|
+
type: String,
|
|
498
|
+
default: void 0
|
|
499
|
+
},
|
|
500
|
+
size: {
|
|
501
|
+
type: String,
|
|
502
|
+
default: "medium"
|
|
503
|
+
},
|
|
504
|
+
placeholder: {
|
|
505
|
+
type: String,
|
|
506
|
+
default: "YYYY.MM.DD"
|
|
507
|
+
},
|
|
508
|
+
name: {
|
|
509
|
+
type: String,
|
|
510
|
+
default: void 0
|
|
511
|
+
},
|
|
512
|
+
required: {
|
|
501
513
|
type: Boolean,
|
|
502
514
|
default: !1
|
|
503
515
|
},
|
|
@@ -505,22 +517,42 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
505
517
|
type: Boolean,
|
|
506
518
|
default: !1
|
|
507
519
|
},
|
|
508
|
-
|
|
520
|
+
disabled: {
|
|
509
521
|
type: Boolean,
|
|
510
522
|
default: !1
|
|
511
523
|
},
|
|
512
|
-
|
|
513
|
-
holidays: { default: () => [] },
|
|
514
|
-
initialYear: { default: void 0 },
|
|
515
|
-
initialMonth: { default: void 0 },
|
|
516
|
-
name: { default: void 0 },
|
|
517
|
-
required: {
|
|
524
|
+
autofocus: {
|
|
518
525
|
type: Boolean,
|
|
519
526
|
default: !1
|
|
520
527
|
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
528
|
+
eventDates: {
|
|
529
|
+
type: Array,
|
|
530
|
+
default: () => []
|
|
531
|
+
},
|
|
532
|
+
holidays: {
|
|
533
|
+
type: Array,
|
|
534
|
+
default: () => []
|
|
535
|
+
},
|
|
536
|
+
initialYear: {
|
|
537
|
+
type: Number,
|
|
538
|
+
default: void 0
|
|
539
|
+
},
|
|
540
|
+
initialMonth: {
|
|
541
|
+
type: Number,
|
|
542
|
+
default: void 0
|
|
543
|
+
},
|
|
544
|
+
class: {
|
|
545
|
+
type: String,
|
|
546
|
+
default: void 0
|
|
547
|
+
},
|
|
548
|
+
style: {
|
|
549
|
+
type: [String, Object],
|
|
550
|
+
default: void 0
|
|
551
|
+
},
|
|
552
|
+
id: {
|
|
553
|
+
type: String,
|
|
554
|
+
default: void 0
|
|
555
|
+
}
|
|
524
556
|
},
|
|
525
557
|
emits: [
|
|
526
558
|
"update:modelValue",
|
|
@@ -529,58 +561,58 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
529
561
|
"focus",
|
|
530
562
|
"blur"
|
|
531
563
|
],
|
|
532
|
-
setup(e, { emit:
|
|
533
|
-
const
|
|
534
|
-
|
|
564
|
+
setup(e, { emit: l }) {
|
|
565
|
+
const r = _(), a = _(), n = _(!1), s = _(null), { currentYear: d, currentMonth: h, selectedStartDate: f, selectedEndDate: S, yearOptions: p, monthOptions: C, prevMonth: y, nextMonth: k, handleDateSelection: u, selectToday: o, isDateInSelectedRange: i } = Ae(e.initialYear, e.initialMonth), v = () => {
|
|
566
|
+
n.value && a.value?.focus(), n.value = !1, s.value = null;
|
|
535
567
|
};
|
|
536
|
-
|
|
537
|
-
const
|
|
538
|
-
const
|
|
568
|
+
Fe(r, v, ".calendar-conts");
|
|
569
|
+
const m = g(() => {
|
|
570
|
+
const $ = [
|
|
539
571
|
"krds-input",
|
|
540
572
|
"datepicker",
|
|
541
573
|
"cal"
|
|
542
574
|
];
|
|
543
|
-
return
|
|
544
|
-
}),
|
|
575
|
+
return e.size && $.push(e.size), e.class && $.push(e.class), $;
|
|
576
|
+
}), K = g(() => ["form-conts", "calendar-conts"]), b = g(() => ({
|
|
545
577
|
"krds-calendar-area": !0,
|
|
546
|
-
active:
|
|
547
|
-
})),
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
for (let
|
|
552
|
-
const
|
|
553
|
-
for (let
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
day:
|
|
557
|
-
dateString:
|
|
558
|
-
isCurrentMonth:
|
|
559
|
-
isToday:
|
|
560
|
-
isPrevMonth:
|
|
561
|
-
isNextMonth:
|
|
562
|
-
isSunday:
|
|
563
|
-
isSaturday:
|
|
564
|
-
}),
|
|
578
|
+
active: n.value
|
|
579
|
+
})), w = g(() => {
|
|
580
|
+
const $ = d.value, T = h.value, F = new Date($, T - 1, 1), R = new Date(F);
|
|
581
|
+
R.setDate(R.getDate() - F.getDay());
|
|
582
|
+
const H = [], z = new Date(R);
|
|
583
|
+
for (let te = 0; te < 6; te++) {
|
|
584
|
+
const ae = [];
|
|
585
|
+
for (let le = 0; le < 7; le++) {
|
|
586
|
+
const be = `${z.getFullYear()}.${String(z.getMonth() + 1).padStart(2, "0")}.${String(z.getDate()).padStart(2, "0")}`, ne = z.getDay();
|
|
587
|
+
ae.push({
|
|
588
|
+
day: z.getDate(),
|
|
589
|
+
dateString: be,
|
|
590
|
+
isCurrentMonth: z.getMonth() === T - 1,
|
|
591
|
+
isToday: z.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
|
|
592
|
+
isPrevMonth: z.getMonth() < T - 1 || z.getMonth() === 11 && T === 1,
|
|
593
|
+
isNextMonth: z.getMonth() > T - 1 || z.getMonth() === 0 && T === 12,
|
|
594
|
+
isSunday: ne === 0,
|
|
595
|
+
isSaturday: ne === 6
|
|
596
|
+
}), z.setDate(z.getDate() + 1);
|
|
565
597
|
}
|
|
566
|
-
|
|
598
|
+
H.push(ae);
|
|
567
599
|
}
|
|
568
|
-
return
|
|
569
|
-
}),
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
const
|
|
573
|
-
|
|
600
|
+
return H;
|
|
601
|
+
}), x = ($) => {
|
|
602
|
+
const T = [];
|
|
603
|
+
if ($.isPrevMonth && T.push("old"), $.isNextMonth && T.push("new"), $.isToday && T.push("today"), $.isSunday && T.push("day-off"), e.holidays?.includes($.dateString) && T.push("day-off"), e.eventDates?.includes($.dateString) && T.push("day-event"), $.isCurrentMonth) {
|
|
604
|
+
const F = i($.dateString);
|
|
605
|
+
F.isInRange && (T.push("period"), F.isStart && T.push("start"), F.isEnd && T.push("end"));
|
|
574
606
|
}
|
|
575
|
-
return
|
|
576
|
-
},
|
|
607
|
+
return T;
|
|
608
|
+
}, L = g(() => [
|
|
577
609
|
{
|
|
578
610
|
id: "get-today",
|
|
579
611
|
label: "오늘",
|
|
580
612
|
class: "text",
|
|
581
613
|
variant: void 0,
|
|
582
614
|
size: "small",
|
|
583
|
-
handler:
|
|
615
|
+
handler: o
|
|
584
616
|
},
|
|
585
617
|
{
|
|
586
618
|
id: "cancel-btn",
|
|
@@ -588,7 +620,7 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
588
620
|
class: void 0,
|
|
589
621
|
variant: "tertiary",
|
|
590
622
|
size: "small",
|
|
591
|
-
handler:
|
|
623
|
+
handler: v
|
|
592
624
|
},
|
|
593
625
|
{
|
|
594
626
|
id: "confirm-btn",
|
|
@@ -596,38 +628,64 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
596
628
|
class: void 0,
|
|
597
629
|
variant: "primary",
|
|
598
630
|
size: "small",
|
|
599
|
-
handler:
|
|
631
|
+
handler: I
|
|
600
632
|
}
|
|
601
|
-
]),
|
|
602
|
-
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
},
|
|
606
|
-
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
|
|
633
|
+
]), c = ($) => {
|
|
634
|
+
s.value === $ ? s.value = null : s.value = $;
|
|
635
|
+
}, B = ($) => {
|
|
636
|
+
d.value = $, s.value = null;
|
|
637
|
+
}, V = ($) => {
|
|
638
|
+
h.value = $, s.value = null;
|
|
639
|
+
}, I = () => {
|
|
640
|
+
f.value && (S.value && f.value !== S.value ? l("update:modelValue", `${f.value} ~ ${S.value}`) : l("update:modelValue", f.value), v());
|
|
641
|
+
}, E = () => {
|
|
642
|
+
n.value = !0, s.value = null, setTimeout(() => {
|
|
643
|
+
r.value?.querySelector(".calendar-wrap")?.focus();
|
|
612
644
|
}, 50);
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
},
|
|
618
|
-
const
|
|
619
|
-
l("update:modelValue",
|
|
620
|
-
},
|
|
621
|
-
l("change",
|
|
622
|
-
},
|
|
623
|
-
l("focus",
|
|
624
|
-
},
|
|
625
|
-
l("blur",
|
|
626
|
-
}
|
|
627
|
-
|
|
645
|
+
}, M = () => {
|
|
646
|
+
n.value ? v() : E();
|
|
647
|
+
}, A = ($) => {
|
|
648
|
+
$.code === "Escape" && (s.value ? s.value = null : n.value && v());
|
|
649
|
+
}, P = ($) => {
|
|
650
|
+
const T = $.target;
|
|
651
|
+
l("update:modelValue", T.value), l("input", $);
|
|
652
|
+
}, j = ($) => {
|
|
653
|
+
l("change", $);
|
|
654
|
+
}, me = ($) => {
|
|
655
|
+
l("focus", $);
|
|
656
|
+
}, ge = ($) => {
|
|
657
|
+
l("blur", $);
|
|
658
|
+
}, ee = ($) => {
|
|
659
|
+
const T = $ === "year", F = T ? p.value : C.value, R = T ? d.value : h.value, H = (z) => T ? `${z}년` : `${z.toString().padStart(2, "0")}월`;
|
|
660
|
+
return t("div", { class: "calendar-drop-down" }, [t("button", {
|
|
661
|
+
type: "button",
|
|
662
|
+
class: `btn-cal-switch ${$}`,
|
|
663
|
+
"aria-label": T ? "연도 선택" : "월 선택",
|
|
664
|
+
"aria-expanded": s.value === $,
|
|
665
|
+
onClick: () => c($)
|
|
666
|
+
}, H(R)), W(t("div", { class: `calendar-select ${T ? "calendar-year-wrap" : "calendar-mon-wrap"}` }, [t("ul", { class: `sel ${$}` }, F.map((z) => t("li", { key: z }, [t("button", {
|
|
667
|
+
type: "button",
|
|
668
|
+
class: { active: z === R },
|
|
669
|
+
onClick: () => T ? B(z) : V(z)
|
|
670
|
+
}, H(z))])))]), [[X, s.value === $]])]);
|
|
671
|
+
}, ye = () => t("table", { class: "calendar-tbl" }, [
|
|
672
|
+
t("caption", null, `${d.value}년 ${h.value.toString().padStart(2, "0")}월`),
|
|
673
|
+
t("thead", null, [t("tr", null, Me.map(($) => t("th", null, $)))]),
|
|
674
|
+
t("tbody", null, w.value.map(($, T) => t("tr", { key: T }, $.map((F, R) => t("td", {
|
|
675
|
+
key: R,
|
|
676
|
+
class: x(F),
|
|
677
|
+
"data-date": F.dateString
|
|
678
|
+
}, [t("button", {
|
|
679
|
+
type: "button",
|
|
680
|
+
class: "btn-set-date",
|
|
681
|
+
"aria-pressed": i(F.dateString).isInRange ? "true" : "false",
|
|
682
|
+
onClick: () => u(F.dateString)
|
|
683
|
+
}, [t("span", null, String(F.day))])])))))
|
|
684
|
+
]);
|
|
685
|
+
return () => t("div", { class: "form-conts" }, [t("div", { class: K.value }, [t("div", { class: "calendar-input" }, [t("input", {
|
|
628
686
|
id: e.id,
|
|
629
687
|
name: e.name,
|
|
630
|
-
class:
|
|
688
|
+
class: m.value,
|
|
631
689
|
placeholder: e.placeholder,
|
|
632
690
|
value: e.modelValue,
|
|
633
691
|
readonly: e.readonly,
|
|
@@ -635,103 +693,51 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
635
693
|
required: e.required,
|
|
636
694
|
autofocus: e.autofocus,
|
|
637
695
|
type: "text",
|
|
638
|
-
onInput:
|
|
639
|
-
onChange:
|
|
640
|
-
onFocus:
|
|
641
|
-
onBlur:
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
class: R(`krds-btn ${e.size || "medium"} icon form-btn-datepicker`),
|
|
696
|
+
onInput: P,
|
|
697
|
+
onChange: j,
|
|
698
|
+
onFocus: me,
|
|
699
|
+
onBlur: ge
|
|
700
|
+
}), t("button", {
|
|
701
|
+
ref: a,
|
|
702
|
+
class: `krds-btn ${e.size || "medium"} icon form-btn-datepicker`,
|
|
646
703
|
disabled: e.disabled,
|
|
647
|
-
"aria-expanded":
|
|
704
|
+
"aria-expanded": n.value,
|
|
648
705
|
type: "button",
|
|
649
|
-
onClick:
|
|
650
|
-
}, [
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}, [ee(p("div", {
|
|
706
|
+
onClick: M
|
|
707
|
+
}, [t("span", { class: "sr-only" }, "달력 열기"), t("i", { class: "svg-icon ico-calendar" })])]), t("div", {
|
|
708
|
+
ref: r,
|
|
709
|
+
class: b.value
|
|
710
|
+
}, [W(t("div", {
|
|
655
711
|
class: "calendar-wrap bottom",
|
|
656
712
|
"aria-label": "달력",
|
|
657
713
|
tabindex: "0",
|
|
658
|
-
onKeydown:
|
|
714
|
+
onKeydown: A
|
|
659
715
|
}, [
|
|
660
|
-
|
|
661
|
-
|
|
716
|
+
t("div", { class: "calendar-head" }, [
|
|
717
|
+
t("button", {
|
|
662
718
|
type: "button",
|
|
663
719
|
class: "btn-cal-move prev",
|
|
664
|
-
onClick:
|
|
665
|
-
}, [
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
class: "btn-cal-switch year",
|
|
669
|
-
"aria-label": "연도 선택",
|
|
670
|
-
"aria-expanded": v.value === "year",
|
|
671
|
-
onClick: z[1] || (z[1] = (E) => F("year"))
|
|
672
|
-
}, M(q(f)) + "년 ", 9, nt), ee(p("div", rt, [p("ul", it, [(D(!0), T(W, null, Y(q(S), (E) => (D(), T("li", { key: E }, [p("button", {
|
|
673
|
-
type: "button",
|
|
674
|
-
class: R({ active: E === q(f) }),
|
|
675
|
-
onClick: (Q) => P(E)
|
|
676
|
-
}, M(E) + "년", 11, ot)]))), 128))])], 512), [[se, v.value === "year"]])]), p("div", dt, [p("button", {
|
|
677
|
-
type: "button",
|
|
678
|
-
class: "btn-cal-switch month",
|
|
679
|
-
"aria-label": "월 선택",
|
|
680
|
-
"aria-expanded": v.value === "month",
|
|
681
|
-
onClick: z[2] || (z[2] = (E) => F("month"))
|
|
682
|
-
}, M(q(b).toString().padStart(2, "0")) + "월 ", 9, ut), ee(p("div", ct, [p("ul", ft, [(D(!0), T(W, null, Y(q(V), (E) => (D(), T("li", { key: E }, [p("button", {
|
|
683
|
-
type: "button",
|
|
684
|
-
class: R({ active: E === q(b) }),
|
|
685
|
-
onClick: (Q) => A(E)
|
|
686
|
-
}, M(E.toString().padStart(2, "0")) + "월 ", 11, vt)]))), 128))])], 512), [[se, v.value === "month"]])])]),
|
|
687
|
-
p("button", {
|
|
720
|
+
onClick: y
|
|
721
|
+
}, [t("span", { class: "sr-only" }, "이전 달")]),
|
|
722
|
+
t("div", { class: "calendar-switch-wrap" }, [ee("year"), ee("month")]),
|
|
723
|
+
t("button", {
|
|
688
724
|
type: "button",
|
|
689
725
|
class: "btn-cal-move next",
|
|
690
|
-
onClick:
|
|
691
|
-
}, [
|
|
726
|
+
onClick: k
|
|
727
|
+
}, [t("span", { class: "sr-only" }, "다음 달")])
|
|
692
728
|
]),
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
])], -1)),
|
|
704
|
-
p("tbody", null, [(D(!0), T(W, null, Y($.value, (E, Q) => (D(), T("tr", { key: Q }, [(D(!0), T(W, null, Y(E, (U, H) => (D(), T("td", {
|
|
705
|
-
key: H,
|
|
706
|
-
class: R(y(U)),
|
|
707
|
-
"data-date": U.dateString
|
|
708
|
-
}, [p("button", {
|
|
709
|
-
type: "button",
|
|
710
|
-
class: "btn-set-date",
|
|
711
|
-
"aria-pressed": q(h)(U.dateString).isInRange ? "true" : "false",
|
|
712
|
-
onClick: (ie) => q(c)(U.dateString)
|
|
713
|
-
}, [p("span", null, M(U.day), 1)], 8, gt)], 10, yt))), 128))]))), 128))])
|
|
714
|
-
])])]),
|
|
715
|
-
p("div", bt, [p("div", kt, [(D(!0), T(W, null, Y(K.value, (E) => (D(), de(q(_e), {
|
|
716
|
-
id: E.id,
|
|
717
|
-
key: E.id,
|
|
718
|
-
class: R(E.class),
|
|
719
|
-
variant: E.variant,
|
|
720
|
-
size: E.size,
|
|
721
|
-
onClick: E.handler
|
|
722
|
-
}, {
|
|
723
|
-
default: ue(() => [N(M(E.label), 1)]),
|
|
724
|
-
_: 2
|
|
725
|
-
}, 1032, [
|
|
726
|
-
"id",
|
|
727
|
-
"class",
|
|
728
|
-
"variant",
|
|
729
|
-
"size",
|
|
730
|
-
"onClick"
|
|
731
|
-
]))), 128))])])
|
|
732
|
-
], 544), [[se, o.value]])], 2)], 2)]));
|
|
729
|
+
t("div", { class: "calendar-body" }, [t("div", { class: "calendar-table-wrap" }, [ye()])]),
|
|
730
|
+
t("div", { class: "calendar-footer" }, [t("div", { class: "calendar-btn-wrap" }, L.value.map(($) => t(fe, {
|
|
731
|
+
id: $.id,
|
|
732
|
+
key: $.id,
|
|
733
|
+
class: $.class,
|
|
734
|
+
variant: $.variant,
|
|
735
|
+
size: $.size,
|
|
736
|
+
onClick: $.handler
|
|
737
|
+
}, { default: () => $.label })))])
|
|
738
|
+
]), [[X, n.value]])])])]);
|
|
733
739
|
}
|
|
734
|
-
}),
|
|
740
|
+
}), Re = Pe, qe = D({
|
|
735
741
|
name: "KrdsTextarea",
|
|
736
742
|
props: {
|
|
737
743
|
modelValue: {
|
|
@@ -812,34 +818,34 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
812
818
|
"keydown",
|
|
813
819
|
"keyup"
|
|
814
820
|
],
|
|
815
|
-
setup(e, { emit:
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
|
|
821
|
+
setup(e, { emit: l }) {
|
|
822
|
+
const r = _(0);
|
|
823
|
+
G(() => e.modelValue, (o) => {
|
|
824
|
+
r.value = (o || "").length;
|
|
819
825
|
}, { immediate: !0 });
|
|
820
|
-
const
|
|
821
|
-
const
|
|
822
|
-
return e.size &&
|
|
823
|
-
}),
|
|
824
|
-
const
|
|
825
|
-
return e.resize && (
|
|
826
|
-
}),
|
|
827
|
-
const
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
}, f = (
|
|
834
|
-
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
},
|
|
838
|
-
|
|
839
|
-
},
|
|
840
|
-
const
|
|
841
|
-
class:
|
|
842
|
-
style:
|
|
826
|
+
const a = g(() => {
|
|
827
|
+
const o = ["krds-input"];
|
|
828
|
+
return e.size && o.push(e.size), e.class && o.push(e.class), o;
|
|
829
|
+
}), n = g(() => {
|
|
830
|
+
const o = {};
|
|
831
|
+
return e.resize && (o.resize = e.resize), o;
|
|
832
|
+
}), s = (o) => {
|
|
833
|
+
const i = o.target.value;
|
|
834
|
+
r.value = i.length, l("update:modelValue", i), l("input", o);
|
|
835
|
+
}, d = (o) => {
|
|
836
|
+
l("change", o);
|
|
837
|
+
}, h = (o) => {
|
|
838
|
+
l("focus", o);
|
|
839
|
+
}, f = (o) => {
|
|
840
|
+
l("blur", o);
|
|
841
|
+
}, S = (o) => {
|
|
842
|
+
l("keydown", o);
|
|
843
|
+
}, p = (o) => {
|
|
844
|
+
l("keyup", o);
|
|
845
|
+
}, C = g(() => {
|
|
846
|
+
const o = {
|
|
847
|
+
class: a.value,
|
|
848
|
+
style: n.value,
|
|
843
849
|
value: e.modelValue,
|
|
844
850
|
placeholder: e.placeholder,
|
|
845
851
|
name: e.name,
|
|
@@ -850,24 +856,24 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
850
856
|
autofocus: e.autofocus,
|
|
851
857
|
rows: e.rows,
|
|
852
858
|
cols: e.cols,
|
|
853
|
-
onInput:
|
|
854
|
-
onChange:
|
|
855
|
-
onFocus:
|
|
859
|
+
onInput: s,
|
|
860
|
+
onChange: d,
|
|
861
|
+
onFocus: h,
|
|
856
862
|
onBlur: f,
|
|
857
|
-
onKeydown:
|
|
858
|
-
onKeyup:
|
|
863
|
+
onKeydown: S,
|
|
864
|
+
onKeyup: p
|
|
859
865
|
};
|
|
860
|
-
return e.maxlength !== void 0 && (
|
|
861
|
-
}),
|
|
862
|
-
current:
|
|
866
|
+
return e.maxlength !== void 0 && (o.maxlength = e.maxlength), e.minlength !== void 0 && (o.minlength = e.minlength), o;
|
|
867
|
+
}), y = g(() => ["form-conts"]), k = g(() => ["textarea-wrap"]), u = g(() => e.showCount ? {
|
|
868
|
+
current: r.value,
|
|
863
869
|
max: e.maxlength || ""
|
|
864
870
|
} : null);
|
|
865
871
|
return () => {
|
|
866
|
-
const
|
|
867
|
-
return
|
|
872
|
+
const o = [t("textarea", C.value)];
|
|
873
|
+
return u.value && o.push(t("p", { class: "textarea-count" }, [t("span", { class: "count-now" }, u.value.current), t("span", { class: "count-total" }, u.value.max ? `/${u.value.max}` : "")])), t("div", { class: y.value }, [t("div", { class: k.value }, o)]);
|
|
868
874
|
};
|
|
869
875
|
}
|
|
870
|
-
}),
|
|
876
|
+
}), He = qe, Ne = D({
|
|
871
877
|
name: "KrdsSelect",
|
|
872
878
|
props: {
|
|
873
879
|
modelValue: {
|
|
@@ -924,50 +930,50 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
924
930
|
"focus",
|
|
925
931
|
"blur"
|
|
926
932
|
],
|
|
927
|
-
setup(e, { emit:
|
|
928
|
-
const
|
|
929
|
-
const
|
|
930
|
-
return e.sort ?
|
|
931
|
-
}),
|
|
932
|
-
const
|
|
933
|
-
|
|
934
|
-
},
|
|
935
|
-
|
|
936
|
-
},
|
|
937
|
-
|
|
938
|
-
},
|
|
939
|
-
class:
|
|
933
|
+
setup(e, { emit: l, slots: r }) {
|
|
934
|
+
const a = g(() => {
|
|
935
|
+
const p = [];
|
|
936
|
+
return e.sort ? p.push("krds-form-select-sort") : p.push("krds-form-select"), e.size && p.push(e.size), e.class && p.push(e.class), p;
|
|
937
|
+
}), n = (p) => {
|
|
938
|
+
const C = p.target;
|
|
939
|
+
l("update:modelValue", C.value === "" ? null : C.value);
|
|
940
|
+
}, s = (p) => {
|
|
941
|
+
l("focus", p);
|
|
942
|
+
}, d = (p) => {
|
|
943
|
+
l("blur", p);
|
|
944
|
+
}, h = g(() => ({
|
|
945
|
+
class: a.value,
|
|
940
946
|
value: e.modelValue ?? "",
|
|
941
947
|
title: e.title || e.placeholder,
|
|
942
948
|
name: e.name,
|
|
943
949
|
id: e.id,
|
|
944
950
|
disabled: e.disabled || e.readonly,
|
|
945
|
-
onChange:
|
|
946
|
-
onFocus:
|
|
947
|
-
onBlur:
|
|
948
|
-
})), f =
|
|
949
|
-
const
|
|
950
|
-
return e.state !== "default" &&
|
|
951
|
-
}),
|
|
952
|
-
const
|
|
953
|
-
return e.placeholder && !e.modelValue &&
|
|
951
|
+
onChange: n,
|
|
952
|
+
onFocus: s,
|
|
953
|
+
onBlur: d
|
|
954
|
+
})), f = g(() => {
|
|
955
|
+
const p = ["form-conts"];
|
|
956
|
+
return e.state !== "default" && p.push(`is-${e.state}`), p;
|
|
957
|
+
}), S = () => {
|
|
958
|
+
const p = [];
|
|
959
|
+
return e.placeholder && !e.modelValue && p.push(t("option", {
|
|
954
960
|
value: "",
|
|
955
961
|
disabled: !0,
|
|
956
962
|
selected: !0
|
|
957
|
-
}, e.placeholder)), e.options && e.options.length > 0 && e.options.forEach((
|
|
958
|
-
|
|
959
|
-
value:
|
|
960
|
-
disabled:
|
|
961
|
-
selected:
|
|
962
|
-
},
|
|
963
|
-
}),
|
|
963
|
+
}, e.placeholder)), e.options && e.options.length > 0 && e.options.forEach((C) => {
|
|
964
|
+
p.push(t("option", {
|
|
965
|
+
value: C.value,
|
|
966
|
+
disabled: C.disabled,
|
|
967
|
+
selected: C.value === e.modelValue
|
|
968
|
+
}, C.label));
|
|
969
|
+
}), r.default && p.push(...r.default()), p;
|
|
964
970
|
};
|
|
965
971
|
return () => {
|
|
966
|
-
const
|
|
967
|
-
return e.sort ?
|
|
972
|
+
const p = t("select", h.value, S());
|
|
973
|
+
return e.sort ? p : t("div", { class: f.value }, [p]);
|
|
968
974
|
};
|
|
969
975
|
}
|
|
970
|
-
}),
|
|
976
|
+
}), Oe = Ne, je = 0, We = D({
|
|
971
977
|
name: "KrdsFileUpload",
|
|
972
978
|
props: {
|
|
973
979
|
modelValue: {
|
|
@@ -988,7 +994,7 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
988
994
|
},
|
|
989
995
|
maxFileSize: {
|
|
990
996
|
type: Number,
|
|
991
|
-
default:
|
|
997
|
+
default: 20971520
|
|
992
998
|
},
|
|
993
999
|
multiple: {
|
|
994
1000
|
type: Boolean,
|
|
@@ -1068,128 +1074,128 @@ var Qe = { class: "form-conts" }, Ze = { class: "calendar-input" }, et = [
|
|
|
1068
1074
|
"download",
|
|
1069
1075
|
"preview"
|
|
1070
1076
|
],
|
|
1071
|
-
setup(e, { emit:
|
|
1072
|
-
const
|
|
1073
|
-
const
|
|
1074
|
-
return
|
|
1075
|
-
},
|
|
1076
|
-
const
|
|
1077
|
-
return
|
|
1078
|
-
}, f = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
|
1079
|
-
if (e.maxFileSize &&
|
|
1080
|
-
${
|
|
1077
|
+
setup(e, { emit: l }) {
|
|
1078
|
+
const r = _(!1), a = _(null), n = e.id ? `${e.id}-input` : `krds-file-upload-${++je}`, s = (c) => c < 1024 ? `${c}B` : c < 1048576 ? `${Math.round(c / 1024)}KB` : `${(c / 1048576).toFixed(1)}MB`, d = (c) => {
|
|
1079
|
+
const B = c.split(".");
|
|
1080
|
+
return B.length > 1 ? B.pop().toLowerCase() : "";
|
|
1081
|
+
}, h = (c) => {
|
|
1082
|
+
const B = d(c.name), V = B ? c.name.slice(0, -(B.length + 1)) : c.name;
|
|
1083
|
+
return B ? `${V} [${B}, ${s(c.size)}]` : `${c.name} [${s(c.size)}]`;
|
|
1084
|
+
}, f = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, S = (c) => {
|
|
1085
|
+
if (e.maxFileSize && c.size > e.maxFileSize) return `등록 가능한 파일 용량을 초과하였습니다.
|
|
1086
|
+
${s(e.maxFileSize)} 미만의 파일만 등록할 수 있습니다.`;
|
|
1081
1087
|
if (e.accept) {
|
|
1082
|
-
const
|
|
1083
|
-
if (!
|
|
1088
|
+
const B = e.accept.split(",").map((E) => E.trim().toLowerCase()), V = `.${d(c.name)}`, I = c.type;
|
|
1089
|
+
if (!B.some((E) => E.startsWith(".") ? V === E : E.endsWith("/*") ? I.startsWith(E.replace("/*", "/")) : I === E)) return "허용되지 않는 파일 형식입니다.";
|
|
1084
1090
|
}
|
|
1085
1091
|
return null;
|
|
1086
|
-
},
|
|
1092
|
+
}, p = (c) => {
|
|
1087
1093
|
if (e.disabled || e.readonly) return;
|
|
1088
|
-
let
|
|
1089
|
-
!e.multiple &&
|
|
1090
|
-
const
|
|
1091
|
-
for (let
|
|
1092
|
-
const
|
|
1094
|
+
let B = [...e.modelValue || []];
|
|
1095
|
+
!e.multiple && B.length > 0 && (B = []);
|
|
1096
|
+
const V = [];
|
|
1097
|
+
for (let I = 0; I < c.length && !(B.length + V.length >= e.maxFiles); I++) {
|
|
1098
|
+
const E = c[I], M = S(E), A = {
|
|
1093
1099
|
id: f(),
|
|
1094
|
-
file:
|
|
1095
|
-
name:
|
|
1096
|
-
size:
|
|
1097
|
-
type:
|
|
1098
|
-
status:
|
|
1099
|
-
errorMessage:
|
|
1100
|
+
file: E,
|
|
1101
|
+
name: E.name,
|
|
1102
|
+
size: E.size,
|
|
1103
|
+
type: E.type,
|
|
1104
|
+
status: M ? "error" : "pending",
|
|
1105
|
+
errorMessage: M || void 0
|
|
1100
1106
|
};
|
|
1101
|
-
|
|
1107
|
+
V.push(A), M ? l("file-error", A, M) : l("file-added", A);
|
|
1102
1108
|
}
|
|
1103
|
-
|
|
1104
|
-
},
|
|
1105
|
-
const
|
|
1106
|
-
|
|
1107
|
-
},
|
|
1108
|
-
e.disabled || e.readonly || !e.dragAndDrop || (
|
|
1109
|
-
},
|
|
1110
|
-
|
|
1111
|
-
},
|
|
1112
|
-
|
|
1113
|
-
},
|
|
1114
|
-
e.disabled || e.readonly ||
|
|
1115
|
-
},
|
|
1116
|
-
e.disabled || e.readonly || (
|
|
1117
|
-
},
|
|
1118
|
-
e.disabled || e.readonly || (
|
|
1119
|
-
},
|
|
1120
|
-
const
|
|
1121
|
-
return e.class &&
|
|
1122
|
-
}),
|
|
1109
|
+
V.length > 0 && l("update:modelValue", [...B, ...V]);
|
|
1110
|
+
}, C = (c) => {
|
|
1111
|
+
const B = c.target;
|
|
1112
|
+
B.files?.length && (p(B.files), B.value = "");
|
|
1113
|
+
}, y = (c) => {
|
|
1114
|
+
e.disabled || e.readonly || !e.dragAndDrop || (c.preventDefault(), r.value = !0);
|
|
1115
|
+
}, k = () => {
|
|
1116
|
+
r.value = !1;
|
|
1117
|
+
}, u = (c) => {
|
|
1118
|
+
c.preventDefault(), r.value = !1, !(e.disabled || e.readonly || !e.dragAndDrop) && c.dataTransfer?.files && p(c.dataTransfer.files);
|
|
1119
|
+
}, o = () => {
|
|
1120
|
+
e.disabled || e.readonly || a.value?.click();
|
|
1121
|
+
}, i = (c) => {
|
|
1122
|
+
e.disabled || e.readonly || (l("update:modelValue", (e.modelValue || []).filter((B) => B.id !== c)), l("file-removed", c));
|
|
1123
|
+
}, v = () => {
|
|
1124
|
+
e.disabled || e.readonly || (l("update:modelValue", []), l("clear-all"));
|
|
1125
|
+
}, m = g(() => {
|
|
1126
|
+
const c = ["krds-file-upload", "line"];
|
|
1127
|
+
return e.class && c.push(e.class), c;
|
|
1128
|
+
}), K = () => t("div", { class: "file-head" }, [t("h3", { class: "tit" }, e.title), t("div", null, [t("p", null, e.description)])]), b = () => t("div", {
|
|
1123
1129
|
class: "file-upload",
|
|
1124
|
-
onDragover:
|
|
1125
|
-
onDragleave:
|
|
1126
|
-
onDrop:
|
|
1130
|
+
onDragover: y,
|
|
1131
|
+
onDragleave: k,
|
|
1132
|
+
onDrop: u
|
|
1127
1133
|
}, [t("p", { class: "txt" }, e.placeholder), t("div", { class: "file-upload-btn-wrap" }, [t("input", {
|
|
1128
|
-
ref:
|
|
1134
|
+
ref: a,
|
|
1129
1135
|
type: "file",
|
|
1130
1136
|
name: e.name || "myFile",
|
|
1131
|
-
id:
|
|
1137
|
+
id: n,
|
|
1132
1138
|
hidden: !0,
|
|
1133
1139
|
accept: e.accept || void 0,
|
|
1134
1140
|
multiple: e.multiple,
|
|
1135
|
-
onChange:
|
|
1136
|
-
}), t("label", { for:
|
|
1141
|
+
onChange: C
|
|
1142
|
+
}), t("label", { for: n }, [t("button", {
|
|
1137
1143
|
type: "button",
|
|
1138
1144
|
class: ["krds-btn", e.size],
|
|
1139
1145
|
disabled: e.disabled || void 0,
|
|
1140
|
-
onClick:
|
|
1141
|
-
}, [t("i", { class: "svg-icon ico-upload" }), "파일선택"])])])]),
|
|
1142
|
-
const
|
|
1143
|
-
return
|
|
1146
|
+
onClick: o
|
|
1147
|
+
}, [t("i", { class: "svg-icon ico-upload" }), "파일선택"])])])]), w = (c) => {
|
|
1148
|
+
const B = [];
|
|
1149
|
+
return c.status === "uploading" ? B.push(t("span", {
|
|
1144
1150
|
class: "krds-spinner",
|
|
1145
1151
|
role: "status"
|
|
1146
|
-
}, [t("span", { class: "sr-only" }, "업로드 중")])) :
|
|
1152
|
+
}, [t("span", { class: "sr-only" }, "업로드 중")])) : c.downloadUrl ? (e.showDownload && B.push(t("button", {
|
|
1147
1153
|
type: "button",
|
|
1148
1154
|
class: "krds-btn medium text",
|
|
1149
|
-
onClick: () =>
|
|
1150
|
-
}, ["다운로드 ", t("i", { class: "svg-icon ico-down" })])), e.showPreviewButton &&
|
|
1155
|
+
onClick: () => l("download", c)
|
|
1156
|
+
}, ["다운로드 ", t("i", { class: "svg-icon ico-down" })])), e.showPreviewButton && B.push(t("button", {
|
|
1151
1157
|
type: "button",
|
|
1152
1158
|
class: "krds-btn medium text",
|
|
1153
|
-
onClick: () =>
|
|
1154
|
-
}, ["바로보기 ", t("i", { class: "svg-icon ico-angle right" })]))) :
|
|
1159
|
+
onClick: () => l("preview", c)
|
|
1160
|
+
}, ["바로보기 ", t("i", { class: "svg-icon ico-angle right" })]))) : c.status === "completed" ? B.push(t("span", { class: "ico-invalid complete" }, [t("em", { class: "sr-only" }, "업로드 완료")])) : e.readonly || B.push(t("button", {
|
|
1155
1161
|
type: "button",
|
|
1156
1162
|
class: "krds-btn medium text",
|
|
1157
1163
|
disabled: e.disabled || void 0,
|
|
1158
|
-
onClick: () => c
|
|
1159
|
-
}, ["삭제 ", t("i", { class: "svg-icon ico-delete-fill" })])),
|
|
1160
|
-
}, x = (
|
|
1161
|
-
const
|
|
1162
|
-
if (
|
|
1163
|
-
const
|
|
1164
|
-
`),
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
}),
|
|
1164
|
+
onClick: () => i(c.id)
|
|
1165
|
+
}, ["삭제 ", t("i", { class: "svg-icon ico-delete-fill" })])), B;
|
|
1166
|
+
}, x = (c) => {
|
|
1167
|
+
const B = [t("div", { class: c.downloadUrl ? "file-info m-column" : "file-info" }, [t("div", { class: "file-name" }, h(c)), t("div", { class: "btn-wrap" }, w(c))])];
|
|
1168
|
+
if (c.status === "error" && c.errorMessage) {
|
|
1169
|
+
const V = c.errorMessage.split(`
|
|
1170
|
+
`), I = [];
|
|
1171
|
+
V.forEach((E, M) => {
|
|
1172
|
+
M > 0 && I.push(t("br")), I.push(E);
|
|
1173
|
+
}), B.push(t("p", { class: "file-hint-invalid" }, I));
|
|
1168
1174
|
}
|
|
1169
1175
|
return t("li", {
|
|
1170
|
-
key:
|
|
1171
|
-
class:
|
|
1172
|
-
},
|
|
1173
|
-
},
|
|
1174
|
-
const
|
|
1175
|
-
return e.showClearAll && !e.readonly &&
|
|
1176
|
+
key: c.id,
|
|
1177
|
+
class: c.status === "error" ? "is-error" : void 0
|
|
1178
|
+
}, B);
|
|
1179
|
+
}, L = (c) => {
|
|
1180
|
+
const B = c.filter((I) => I.status !== "error").length, V = [t("div", { class: "total" }, [t("span", { class: "current" }, `${B}개`), ` / ${e.maxFiles}개`]), t("ul", { class: "upload-list" }, c.map(x))];
|
|
1181
|
+
return e.showClearAll && !e.readonly && V.push(t("div", { class: "upload-delete-btn" }, [t("button", {
|
|
1176
1182
|
type: "button",
|
|
1177
1183
|
class: "krds-btn xsmall tertiary",
|
|
1178
1184
|
disabled: e.disabled || void 0,
|
|
1179
|
-
onClick:
|
|
1180
|
-
}, ["전체 파일 삭제", t("i", { class: "svg-icon ico-angle right" })])])), t("div", { class: "file-list" },
|
|
1185
|
+
onClick: v
|
|
1186
|
+
}, ["전체 파일 삭제", t("i", { class: "svg-icon ico-angle right" })])])), t("div", { class: "file-list" }, V);
|
|
1181
1187
|
};
|
|
1182
1188
|
return () => {
|
|
1183
|
-
const
|
|
1184
|
-
e.readonly ||
|
|
1185
|
-
const
|
|
1186
|
-
return
|
|
1187
|
-
class:
|
|
1189
|
+
const c = [K()];
|
|
1190
|
+
e.readonly || c.push(b());
|
|
1191
|
+
const B = e.modelValue || [];
|
|
1192
|
+
return B.length > 0 && c.push(L(B)), t("div", {
|
|
1193
|
+
class: m.value,
|
|
1188
1194
|
style: e.style || void 0
|
|
1189
|
-
},
|
|
1195
|
+
}, c);
|
|
1190
1196
|
};
|
|
1191
1197
|
}
|
|
1192
|
-
}),
|
|
1198
|
+
}), Ge = We, Ye = D({
|
|
1193
1199
|
name: "KrdsBadge",
|
|
1194
1200
|
props: {
|
|
1195
1201
|
type: {
|
|
@@ -1214,23 +1220,23 @@ ${r(e.maxFileSize)} 미만의 파일만 등록할 수 있습니다.`;
|
|
|
1214
1220
|
}
|
|
1215
1221
|
},
|
|
1216
1222
|
emits: ["click"],
|
|
1217
|
-
setup(e, { emit:
|
|
1218
|
-
const
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1221
|
-
}),
|
|
1222
|
-
|
|
1223
|
+
setup(e, { emit: l, slots: r }) {
|
|
1224
|
+
const a = g(() => {
|
|
1225
|
+
const s = ["krds-badge"];
|
|
1226
|
+
return s.push(`${e.type}-${e.color}`), e.size && s.push(e.size), e.number && s.push("number"), e.class && s.push(e.class), s;
|
|
1227
|
+
}), n = (s) => {
|
|
1228
|
+
l("click", s);
|
|
1223
1229
|
};
|
|
1224
1230
|
return () => t("span", {
|
|
1225
1231
|
type: e.type,
|
|
1226
1232
|
color: e.color,
|
|
1227
1233
|
size: e.size,
|
|
1228
1234
|
number: e.number,
|
|
1229
|
-
class:
|
|
1230
|
-
onClick:
|
|
1231
|
-
},
|
|
1235
|
+
class: a.value,
|
|
1236
|
+
onClick: n
|
|
1237
|
+
}, r.default?.());
|
|
1232
1238
|
}
|
|
1233
|
-
}),
|
|
1239
|
+
}), Ue = Ye, Xe = D({
|
|
1234
1240
|
name: "KrdsTag",
|
|
1235
1241
|
props: {
|
|
1236
1242
|
link: {
|
|
@@ -1255,30 +1261,30 @@ ${r(e.maxFileSize)} 미만의 파일만 등록할 수 있습니다.`;
|
|
|
1255
1261
|
}
|
|
1256
1262
|
},
|
|
1257
1263
|
emits: ["remove"],
|
|
1258
|
-
setup(e, { emit:
|
|
1259
|
-
const
|
|
1260
|
-
const
|
|
1261
|
-
return e.link &&
|
|
1262
|
-
}),
|
|
1263
|
-
|
|
1264
|
-
},
|
|
1264
|
+
setup(e, { emit: l, slots: r }) {
|
|
1265
|
+
const a = g(() => {
|
|
1266
|
+
const d = ["krds-btn-tag"];
|
|
1267
|
+
return e.link && d.push("link"), e.class && d.push(e.class), d;
|
|
1268
|
+
}), n = (d) => {
|
|
1269
|
+
l("remove", d);
|
|
1270
|
+
}, s = () => t("button", {
|
|
1265
1271
|
type: "button",
|
|
1266
1272
|
class: "btn-delete",
|
|
1267
|
-
onClick:
|
|
1273
|
+
onClick: n
|
|
1268
1274
|
}, [t("span", { class: "sr-only" }, "삭제")]);
|
|
1269
1275
|
return () => {
|
|
1270
|
-
const
|
|
1271
|
-
if (
|
|
1276
|
+
const d = [], h = r.default?.();
|
|
1277
|
+
if (h && d.push(h), e.link || d.push(s()), e.link) {
|
|
1272
1278
|
const f = {
|
|
1273
1279
|
href: e.href,
|
|
1274
|
-
class:
|
|
1280
|
+
class: a.value
|
|
1275
1281
|
};
|
|
1276
|
-
return e.target && (f.target = e.target), e.rel && (f.rel = e.rel), t("a", f,
|
|
1282
|
+
return e.target && (f.target = e.target), e.rel && (f.rel = e.rel), t("a", f, d);
|
|
1277
1283
|
}
|
|
1278
|
-
return t("span", { class:
|
|
1284
|
+
return t("span", { class: a.value }, d);
|
|
1279
1285
|
};
|
|
1280
1286
|
}
|
|
1281
|
-
}),
|
|
1287
|
+
}), Je = Xe, Qe = D({
|
|
1282
1288
|
name: "KrdsTagGroup",
|
|
1283
1289
|
props: {
|
|
1284
1290
|
size: {
|
|
@@ -1290,44 +1296,44 @@ ${r(e.maxFileSize)} 미만의 파일만 등록할 수 있습니다.`;
|
|
|
1290
1296
|
default: void 0
|
|
1291
1297
|
}
|
|
1292
1298
|
},
|
|
1293
|
-
setup(e, { slots:
|
|
1294
|
-
const
|
|
1295
|
-
const
|
|
1296
|
-
return e.size &&
|
|
1299
|
+
setup(e, { slots: l }) {
|
|
1300
|
+
const r = g(() => {
|
|
1301
|
+
const a = ["krds-tag-wrap"];
|
|
1302
|
+
return e.size && a.push(e.size), e.class && a.push(e.class), a;
|
|
1297
1303
|
});
|
|
1298
|
-
return () => t("div", { class:
|
|
1304
|
+
return () => t("div", { class: r.value }, l.default?.());
|
|
1299
1305
|
}
|
|
1300
|
-
}),
|
|
1306
|
+
}), Ze = Qe, et = D({
|
|
1301
1307
|
name: "KrdsMasthead",
|
|
1302
1308
|
props: { class: {
|
|
1303
1309
|
type: String,
|
|
1304
1310
|
default: void 0
|
|
1305
1311
|
} },
|
|
1306
1312
|
emits: ["click"],
|
|
1307
|
-
setup(e, { emit:
|
|
1308
|
-
const
|
|
1309
|
-
const
|
|
1310
|
-
return e.class &&
|
|
1311
|
-
}),
|
|
1312
|
-
|
|
1313
|
+
setup(e, { emit: l, slots: r }) {
|
|
1314
|
+
const a = g(() => {
|
|
1315
|
+
const s = [""];
|
|
1316
|
+
return e.class && s.push(e.class), s;
|
|
1317
|
+
}), n = (s) => {
|
|
1318
|
+
l("click", s);
|
|
1313
1319
|
};
|
|
1314
1320
|
return () => t("div", {
|
|
1315
1321
|
id: "krds-masthead",
|
|
1316
|
-
class:
|
|
1317
|
-
onClick:
|
|
1318
|
-
}, [t("div", { class: "toggle-wrap" }, [t("div", { class: "toggle-head" }, [t("div", { class: "inner" }, [t("span", { class: "nuri-txt" },
|
|
1322
|
+
class: a.value,
|
|
1323
|
+
onClick: n
|
|
1324
|
+
}, [t("div", { class: "toggle-wrap" }, [t("div", { class: "toggle-head" }, [t("div", { class: "inner" }, [t("span", { class: "nuri-txt" }, r.default?.())])])])]);
|
|
1319
1325
|
}
|
|
1320
|
-
}),
|
|
1321
|
-
function
|
|
1322
|
-
return `${e}-${++
|
|
1326
|
+
}), tt = et, at = 0;
|
|
1327
|
+
function fa(e = "krds") {
|
|
1328
|
+
return `${e}-${++at}`;
|
|
1323
1329
|
}
|
|
1324
|
-
function
|
|
1330
|
+
function va() {
|
|
1325
1331
|
return `${Date.now().toString(36).slice(-4)}${Math.random().toString(36).substring(2, 5)}`;
|
|
1326
1332
|
}
|
|
1327
|
-
function
|
|
1333
|
+
function Z(...e) {
|
|
1328
1334
|
return e.filter(Boolean).join(" ");
|
|
1329
1335
|
}
|
|
1330
|
-
var
|
|
1336
|
+
var lt = D({
|
|
1331
1337
|
name: "KrdsToggleSwitch",
|
|
1332
1338
|
props: {
|
|
1333
1339
|
modelValue: {
|
|
@@ -1369,23 +1375,23 @@ var Pt = B({
|
|
|
1369
1375
|
}
|
|
1370
1376
|
},
|
|
1371
1377
|
emits: ["update:modelValue", "change"],
|
|
1372
|
-
setup(e, { emit:
|
|
1373
|
-
const
|
|
1378
|
+
setup(e, { emit: l, attrs: r }) {
|
|
1379
|
+
const a = `toggle-switch-${O()}`, n = g(() => e.modelValue), s = g(() => Z("krds-form-toggle-switch", e.size, e.class)), d = (f) => {
|
|
1374
1380
|
if (e.disabled) return;
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1377
|
-
},
|
|
1378
|
-
return () => t("div", { class:
|
|
1381
|
+
const S = f.target.checked;
|
|
1382
|
+
l("update:modelValue", S), l("change", S);
|
|
1383
|
+
}, h = g(() => e.id || a);
|
|
1384
|
+
return () => t("div", { class: s.value }, [t("input", {
|
|
1379
1385
|
type: "checkbox",
|
|
1380
|
-
id:
|
|
1386
|
+
id: h.value,
|
|
1381
1387
|
name: e.name,
|
|
1382
|
-
checked:
|
|
1388
|
+
checked: n.value,
|
|
1383
1389
|
disabled: e.disabled,
|
|
1384
|
-
onChange:
|
|
1385
|
-
...
|
|
1386
|
-
}), t("label", { for:
|
|
1390
|
+
onChange: d,
|
|
1391
|
+
...r
|
|
1392
|
+
}), t("label", { for: h.value }, [t("span", { class: "switch-toggle" }, [t("i")]), e.label || ""])]);
|
|
1387
1393
|
}
|
|
1388
|
-
}),
|
|
1394
|
+
}), nt = lt, st = D({
|
|
1389
1395
|
name: "KrdsCheckArea",
|
|
1390
1396
|
props: {
|
|
1391
1397
|
class: {
|
|
@@ -1397,13 +1403,13 @@ var Pt = B({
|
|
|
1397
1403
|
default: !1
|
|
1398
1404
|
}
|
|
1399
1405
|
},
|
|
1400
|
-
setup(e, { slots:
|
|
1406
|
+
setup(e, { slots: l }) {
|
|
1401
1407
|
return () => {
|
|
1402
|
-
const
|
|
1403
|
-
return e.column &&
|
|
1408
|
+
const r = ["krds-check-area"];
|
|
1409
|
+
return e.column && r.push("chk-column"), e.class && r.push(e.class), t("div", { class: r }, l.default?.());
|
|
1404
1410
|
};
|
|
1405
1411
|
}
|
|
1406
|
-
}),
|
|
1412
|
+
}), rt = st, it = D({
|
|
1407
1413
|
name: "KrdsCheckbox",
|
|
1408
1414
|
props: {
|
|
1409
1415
|
modelValue: {
|
|
@@ -1434,25 +1440,28 @@ var Pt = B({
|
|
|
1434
1440
|
},
|
|
1435
1441
|
emits: ["update:modelValue"],
|
|
1436
1442
|
slots: Object,
|
|
1437
|
-
setup(e, { emit:
|
|
1438
|
-
const
|
|
1443
|
+
setup(e, { emit: l, attrs: r, slots: a }) {
|
|
1444
|
+
const n = `checkbox-${O()}`, s = g(() => e.modelValue), d = g(() => {
|
|
1445
|
+
const S = e.chip ? "krds-form-chip" : "krds-form-check";
|
|
1446
|
+
return Z(S, e.size, e.class);
|
|
1447
|
+
}), h = (S) => {
|
|
1439
1448
|
if (e.disabled) return;
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
}, f =
|
|
1449
|
+
const p = S.target.checked;
|
|
1450
|
+
l("update:modelValue", p);
|
|
1451
|
+
}, f = g(() => e.id || n);
|
|
1443
1452
|
return () => {
|
|
1444
|
-
const
|
|
1453
|
+
const S = [t("input", {
|
|
1445
1454
|
type: "checkbox",
|
|
1446
1455
|
id: f.value,
|
|
1447
|
-
checked:
|
|
1456
|
+
checked: s.value,
|
|
1448
1457
|
disabled: e.disabled,
|
|
1449
|
-
onChange:
|
|
1450
|
-
...
|
|
1451
|
-
}), t("label", { for: f.value },
|
|
1452
|
-
return
|
|
1458
|
+
onChange: h,
|
|
1459
|
+
...r
|
|
1460
|
+
}), t("label", { for: f.value }, a.default?.())];
|
|
1461
|
+
return a.description && !e.chip && S.push(t("div", { class: "krds-form-check-cnt" }, t("p", { class: "krds-form-check-p" }, a.description()))), t("div", { class: d.value }, S);
|
|
1453
1462
|
};
|
|
1454
1463
|
}
|
|
1455
|
-
}),
|
|
1464
|
+
}), ot = it, dt = D({
|
|
1456
1465
|
name: "KrdsRadio",
|
|
1457
1466
|
props: {
|
|
1458
1467
|
modelValue: {
|
|
@@ -1499,25 +1508,28 @@ var Pt = B({
|
|
|
1499
1508
|
},
|
|
1500
1509
|
emits: ["update:modelValue"],
|
|
1501
1510
|
slots: Object,
|
|
1502
|
-
setup(e, { emit:
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1505
|
-
|
|
1511
|
+
setup(e, { emit: l, attrs: r, slots: a }) {
|
|
1512
|
+
const n = `radio-${O()}`, s = g(() => e.modelValue === e.value), d = g(() => {
|
|
1513
|
+
const p = e.chip ? "krds-form-chip" : "krds-form-check";
|
|
1514
|
+
return Z(p, e.size, e.class);
|
|
1515
|
+
}), h = (p) => {
|
|
1516
|
+
e.disabled || p.target.checked && l("update:modelValue", e.value);
|
|
1517
|
+
}, f = g(() => e.id || n), S = g(() => e.name);
|
|
1506
1518
|
return () => {
|
|
1507
|
-
const
|
|
1519
|
+
const p = [t("input", {
|
|
1508
1520
|
type: "radio",
|
|
1509
1521
|
id: f.value,
|
|
1510
|
-
name:
|
|
1522
|
+
name: S.value,
|
|
1511
1523
|
value: String(e.value),
|
|
1512
|
-
checked:
|
|
1524
|
+
checked: s.value,
|
|
1513
1525
|
disabled: e.disabled,
|
|
1514
|
-
onChange:
|
|
1515
|
-
...
|
|
1516
|
-
}), t("label", { for: f.value },
|
|
1517
|
-
return
|
|
1526
|
+
onChange: h,
|
|
1527
|
+
...r
|
|
1528
|
+
}), t("label", { for: f.value }, a.default?.())];
|
|
1529
|
+
return a.description && !e.chip && p.push(t("div", { class: "krds-form-check-cnt" }, t("p", { class: "krds-form-check-p" }, a.description()))), t("div", { class: d.value }, p);
|
|
1518
1530
|
};
|
|
1519
1531
|
}
|
|
1520
|
-
}),
|
|
1532
|
+
}), ut = dt, ct = ve, ft = D({
|
|
1521
1533
|
name: "KrdsStepIndicator",
|
|
1522
1534
|
props: {
|
|
1523
1535
|
modelValue: {
|
|
@@ -1530,24 +1542,24 @@ var Pt = B({
|
|
|
1530
1542
|
}
|
|
1531
1543
|
},
|
|
1532
1544
|
emits: ["update:modelValue"],
|
|
1533
|
-
setup(e, { slots:
|
|
1534
|
-
const
|
|
1535
|
-
const
|
|
1536
|
-
return e.class &&
|
|
1537
|
-
}),
|
|
1545
|
+
setup(e, { slots: l }) {
|
|
1546
|
+
const r = g(() => {
|
|
1547
|
+
const h = ["krds-step-wrap"];
|
|
1548
|
+
return e.class && h.push(e.class), h;
|
|
1549
|
+
}), a = (h) => {
|
|
1538
1550
|
const f = e.modelValue || 0;
|
|
1539
|
-
return
|
|
1540
|
-
},
|
|
1541
|
-
|
|
1542
|
-
},
|
|
1543
|
-
return
|
|
1544
|
-
activeStep:
|
|
1545
|
-
getStepStatus:
|
|
1546
|
-
getNextStepIndex:
|
|
1547
|
-
resetStepIndex:
|
|
1548
|
-
}), () => (
|
|
1551
|
+
return h < f ? "done" : h === f ? "active" : "pending";
|
|
1552
|
+
}, n = _(0), s = () => {
|
|
1553
|
+
n.value = 0;
|
|
1554
|
+
}, d = () => n.value++;
|
|
1555
|
+
return we("stepIndicator", {
|
|
1556
|
+
activeStep: g(() => e.modelValue || 0),
|
|
1557
|
+
getStepStatus: a,
|
|
1558
|
+
getNextStepIndex: d,
|
|
1559
|
+
resetStepIndex: s
|
|
1560
|
+
}), () => (s(), t("ol", { class: r.value }, l.default?.()));
|
|
1549
1561
|
}
|
|
1550
|
-
}),
|
|
1562
|
+
}), vt = ft, ht = D({
|
|
1551
1563
|
name: "KrdsStep",
|
|
1552
1564
|
props: {
|
|
1553
1565
|
step: {
|
|
@@ -1568,27 +1580,27 @@ var Pt = B({
|
|
|
1568
1580
|
}
|
|
1569
1581
|
},
|
|
1570
1582
|
emits: ["click"],
|
|
1571
|
-
setup(e, { emit:
|
|
1572
|
-
const
|
|
1573
|
-
const f = [
|
|
1583
|
+
setup(e, { emit: l, slots: r }) {
|
|
1584
|
+
const a = Ke("stepIndicator"), n = a ? a.getNextStepIndex() : -1, s = g(() => e.status ? e.status : a && n >= 0 ? a.getStepStatus(n) : "pending"), d = g(() => {
|
|
1585
|
+
const f = [s.value];
|
|
1574
1586
|
return e.class && f.push(e.class), f;
|
|
1575
|
-
}),
|
|
1576
|
-
|
|
1587
|
+
}), h = (f) => {
|
|
1588
|
+
l("click", f, e.step);
|
|
1577
1589
|
};
|
|
1578
1590
|
return () => {
|
|
1579
|
-
const f =
|
|
1591
|
+
const f = s.value === "active";
|
|
1580
1592
|
return t("li", {
|
|
1581
|
-
class:
|
|
1582
|
-
onClick:
|
|
1593
|
+
class: d.value,
|
|
1594
|
+
onClick: h
|
|
1583
1595
|
}, [t("span", [
|
|
1584
1596
|
f && t("em", { class: "sr-only" }, "현재단계"),
|
|
1585
1597
|
t("i", { class: "step" }, e.step),
|
|
1586
1598
|
t("span", { class: "step-tit" }, e.title),
|
|
1587
|
-
|
|
1599
|
+
r.default?.()
|
|
1588
1600
|
])]);
|
|
1589
1601
|
};
|
|
1590
1602
|
}
|
|
1591
|
-
}),
|
|
1603
|
+
}), pt = ht, mt = D({
|
|
1592
1604
|
name: "KrdsSkipLink",
|
|
1593
1605
|
props: {
|
|
1594
1606
|
href: {
|
|
@@ -1609,47 +1621,55 @@ var Pt = B({
|
|
|
1609
1621
|
default: "krds-skip-link"
|
|
1610
1622
|
}
|
|
1611
1623
|
},
|
|
1612
|
-
setup(e, { slots:
|
|
1624
|
+
setup(e, { slots: l }) {
|
|
1613
1625
|
return () => t("div", {
|
|
1614
1626
|
id: e.id,
|
|
1615
1627
|
class: e.class
|
|
1616
|
-
}, [t("a", { href: e.href },
|
|
1628
|
+
}, [t("a", { href: e.href }, l.default?.())]);
|
|
1617
1629
|
}
|
|
1618
|
-
}),
|
|
1619
|
-
"
|
|
1620
|
-
"aria-current",
|
|
1621
|
-
"onClick"
|
|
1622
|
-
], sa = { key: 0 }, na = /* @__PURE__ */ B({
|
|
1623
|
-
__name: "KrdsBreadcrumb",
|
|
1630
|
+
}), gt = mt, yt = D({
|
|
1631
|
+
name: "KrdsBreadcrumb",
|
|
1624
1632
|
props: {
|
|
1625
|
-
items: {
|
|
1626
|
-
|
|
1627
|
-
|
|
1633
|
+
items: {
|
|
1634
|
+
type: Array,
|
|
1635
|
+
required: !0
|
|
1636
|
+
},
|
|
1637
|
+
id: {
|
|
1638
|
+
type: String,
|
|
1639
|
+
default: void 0
|
|
1640
|
+
},
|
|
1641
|
+
ariaLabel: {
|
|
1642
|
+
type: String,
|
|
1643
|
+
default: "현재 경로"
|
|
1644
|
+
},
|
|
1628
1645
|
showHomeIcon: {
|
|
1629
1646
|
type: Boolean,
|
|
1630
1647
|
default: !0
|
|
1631
1648
|
}
|
|
1632
1649
|
},
|
|
1633
1650
|
emits: ["item-click"],
|
|
1634
|
-
setup(e, { emit:
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1651
|
+
setup(e, { emit: l }) {
|
|
1652
|
+
const r = (n) => n === e.items.length - 1, a = (n, s) => {
|
|
1653
|
+
n.onClick && n.onClick(s), l("item-click", n, s);
|
|
1637
1654
|
};
|
|
1638
|
-
return (
|
|
1655
|
+
return () => t("nav", {
|
|
1639
1656
|
id: e.id,
|
|
1640
1657
|
class: "krds-breadcrumb-wrap",
|
|
1641
1658
|
"aria-label": e.ariaLabel
|
|
1642
|
-
}, [
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1659
|
+
}, [t("ol", { class: "breadcrumb" }, e.items.map((n, s) => {
|
|
1660
|
+
const d = s === 0 && e.showHomeIcon;
|
|
1661
|
+
return t("li", {
|
|
1662
|
+
key: `breadcrumb-${s}`,
|
|
1663
|
+
class: { home: d }
|
|
1664
|
+
}, [t("a", {
|
|
1665
|
+
href: n.href || "#",
|
|
1666
|
+
class: "txt",
|
|
1667
|
+
"aria-current": r(s) ? "page" : void 0,
|
|
1668
|
+
onClick: (h) => a(n, h)
|
|
1669
|
+
}, d ? [] : [t("span", null, n.text)])]);
|
|
1670
|
+
}))]);
|
|
1651
1671
|
}
|
|
1652
|
-
}),
|
|
1672
|
+
}), bt = yt, kt = D({
|
|
1653
1673
|
name: "KrdsInPageNavigation",
|
|
1654
1674
|
props: {
|
|
1655
1675
|
title: {
|
|
@@ -1683,554 +1703,645 @@ var Pt = B({
|
|
|
1683
1703
|
},
|
|
1684
1704
|
emits: ["itemClick"],
|
|
1685
1705
|
slots: Object,
|
|
1686
|
-
setup(e, { emit:
|
|
1687
|
-
const
|
|
1688
|
-
const
|
|
1689
|
-
return e.class &&
|
|
1690
|
-
}),
|
|
1691
|
-
const
|
|
1692
|
-
return (document.querySelector(
|
|
1693
|
-
},
|
|
1694
|
-
if (
|
|
1695
|
-
|
|
1696
|
-
const
|
|
1697
|
-
if (
|
|
1698
|
-
const
|
|
1706
|
+
setup(e, { emit: l, slots: r }) {
|
|
1707
|
+
const a = _(""), n = _(/* @__PURE__ */ new Map()), s = g(() => {
|
|
1708
|
+
const u = ["krds-in-page-navigation-type"];
|
|
1709
|
+
return e.class && u.push(e.class), u;
|
|
1710
|
+
}), d = () => {
|
|
1711
|
+
const u = e.headerTopSelector, o = e.headerInnerSelector;
|
|
1712
|
+
return (document.querySelector(u)?.clientHeight || 0) + (document.querySelector(o)?.clientHeight || 0);
|
|
1713
|
+
}, h = (u, o) => {
|
|
1714
|
+
if (l("itemClick", u, o), u.href.startsWith("#")) {
|
|
1715
|
+
o.preventDefault();
|
|
1716
|
+
const i = document.querySelector(u.href);
|
|
1717
|
+
if (i) {
|
|
1718
|
+
const v = d();
|
|
1699
1719
|
if (window.scrollTo({
|
|
1700
1720
|
left: 0,
|
|
1701
|
-
top:
|
|
1721
|
+
top: i.getBoundingClientRect().top + window.scrollY - v,
|
|
1702
1722
|
behavior: "smooth"
|
|
1703
|
-
}),
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1723
|
+
}), a.value = u.href, o instanceof KeyboardEvent) {
|
|
1724
|
+
const m = i.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
|
|
1725
|
+
m && m instanceof HTMLElement && (m.setAttribute("tabindex", "-1"), m.focus({ preventScroll: !0 }));
|
|
1706
1726
|
}
|
|
1707
1727
|
}
|
|
1708
1728
|
}
|
|
1709
1729
|
}, f = () => {
|
|
1710
|
-
|
|
1711
|
-
const
|
|
1712
|
-
|
|
1730
|
+
n.value.clear(), e.items && e.items.filter((u) => u.href.startsWith("#")).forEach((u) => {
|
|
1731
|
+
const o = document.querySelector(u.href);
|
|
1732
|
+
o && n.value.set(u.href, o);
|
|
1713
1733
|
});
|
|
1714
|
-
},
|
|
1715
|
-
if (!e.autoActive || !e.items ||
|
|
1716
|
-
const
|
|
1717
|
-
href:
|
|
1718
|
-
element:
|
|
1719
|
-
item:
|
|
1734
|
+
}, S = () => {
|
|
1735
|
+
if (!e.autoActive || !e.items || n.value.size === 0) return;
|
|
1736
|
+
const u = window.innerHeight, o = Math.ceil(u / 5), i = window.scrollY + u, v = document.body.scrollHeight, m = e.items.filter((L) => L.href.startsWith("#") && n.value.has(L.href)).map((L) => ({
|
|
1737
|
+
href: L.href,
|
|
1738
|
+
element: n.value.get(L.href),
|
|
1739
|
+
item: L
|
|
1720
1740
|
}));
|
|
1721
|
-
if (
|
|
1722
|
-
const
|
|
1741
|
+
if (m.length === 0) return;
|
|
1742
|
+
const K = m[0], b = m[m.length - 1], w = K.element.offsetTop;
|
|
1723
1743
|
let x = "";
|
|
1724
|
-
if (
|
|
1725
|
-
else if (window.scrollY <=
|
|
1726
|
-
else for (const
|
|
1727
|
-
const
|
|
1728
|
-
if (window.scrollY >
|
|
1729
|
-
x =
|
|
1744
|
+
if (i >= v) x = b.href;
|
|
1745
|
+
else if (window.scrollY <= w) x = K.href;
|
|
1746
|
+
else for (const L of m) {
|
|
1747
|
+
const c = L.element.offsetHeight, B = L.element.offsetTop - o;
|
|
1748
|
+
if (window.scrollY > B && window.scrollY <= B + c) {
|
|
1749
|
+
x = L.href;
|
|
1730
1750
|
break;
|
|
1731
1751
|
}
|
|
1732
1752
|
}
|
|
1733
|
-
x && x !==
|
|
1734
|
-
},
|
|
1753
|
+
x && x !== a.value && (a.value = x);
|
|
1754
|
+
}, p = () => {
|
|
1735
1755
|
if (!e.items) return;
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1756
|
+
const u = e.items.find((o) => o.active);
|
|
1757
|
+
u ? a.value = u.href : e.items.length > 0 && (a.value = e.items[0].href);
|
|
1738
1758
|
};
|
|
1739
|
-
|
|
1740
|
-
if (
|
|
1741
|
-
f(),
|
|
1742
|
-
const
|
|
1759
|
+
N(() => {
|
|
1760
|
+
if (p(), e.autoActive) {
|
|
1761
|
+
f(), S(), window.addEventListener("scroll", S, { passive: !0 });
|
|
1762
|
+
const u = new MutationObserver(() => {
|
|
1743
1763
|
f();
|
|
1744
1764
|
});
|
|
1745
|
-
|
|
1765
|
+
u.observe(document.body, {
|
|
1746
1766
|
childList: !0,
|
|
1747
1767
|
subtree: !0
|
|
1748
|
-
}),
|
|
1749
|
-
|
|
1768
|
+
}), q(() => {
|
|
1769
|
+
u.disconnect();
|
|
1750
1770
|
});
|
|
1751
1771
|
}
|
|
1752
|
-
}),
|
|
1753
|
-
e.autoActive && (window.removeEventListener("scroll",
|
|
1772
|
+
}), q(() => {
|
|
1773
|
+
e.autoActive && (window.removeEventListener("scroll", S), n.value.clear());
|
|
1754
1774
|
});
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
href
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
(
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1775
|
+
const C = () => !e.caption && !e.title ? null : t("div", { class: "in-page-navigation-header" }, [e.caption && t("p", { class: "quick-caption" }, e.caption), e.title && t("p", { class: "quick-title" }, e.title)]), y = () => {
|
|
1776
|
+
if (!e.items) return null;
|
|
1777
|
+
const u = e.items.map((o) => {
|
|
1778
|
+
const i = a.value === o.href || !e.autoActive && o.active;
|
|
1779
|
+
return t("li", { key: o.href }, [t("a", {
|
|
1780
|
+
href: o.href,
|
|
1781
|
+
class: i ? "active" : "",
|
|
1782
|
+
onClick: (v) => h(o, v),
|
|
1783
|
+
onKeydown: (v) => {
|
|
1784
|
+
(v.key === "Enter" || v.key === " ") && (v.preventDefault(), h(o, v));
|
|
1785
|
+
}
|
|
1786
|
+
}, o.text)]);
|
|
1787
|
+
});
|
|
1788
|
+
return t("nav", { class: "in-page-navigation-list" }, [t("ul", {}, u)]);
|
|
1789
|
+
}, k = () => r.action ? t("div", { class: "in-page-navigation-action" }, [r.action()]) : null;
|
|
1790
|
+
return () => t("div", { class: s.value }, [t("div", { class: "krds-in-page-navigation-area" }, [
|
|
1791
|
+
C(),
|
|
1792
|
+
y(),
|
|
1793
|
+
k()
|
|
1770
1794
|
].filter(Boolean))]);
|
|
1771
1795
|
}
|
|
1772
|
-
}),
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1796
|
+
}), St = kt, Y = {
|
|
1797
|
+
mounted(e, l) {
|
|
1798
|
+
l.value !== !1 && e.classList.add("sr-only");
|
|
1799
|
+
},
|
|
1800
|
+
updated(e, l) {
|
|
1801
|
+
l.value === !1 ? e.classList.remove("sr-only") : e.classList.add("sr-only");
|
|
1802
|
+
},
|
|
1803
|
+
unmounted(e) {
|
|
1804
|
+
e.classList.remove("sr-only");
|
|
1805
|
+
}
|
|
1806
|
+
}, U = /* @__PURE__ */ ce({
|
|
1807
|
+
default: () => re,
|
|
1808
|
+
directives: () => re,
|
|
1809
|
+
installDirectives: () => he,
|
|
1810
|
+
vSrOnly: () => Y
|
|
1811
|
+
}), re = { "sr-only": Y }, he = (e) => {
|
|
1812
|
+
e.directive("sr-only", Y);
|
|
1813
|
+
}, ie = 1, oe = 8, Kt = D({
|
|
1814
|
+
name: "KrdsPagination",
|
|
1778
1815
|
props: {
|
|
1779
|
-
modelValue: {
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1816
|
+
modelValue: {
|
|
1817
|
+
type: Number,
|
|
1818
|
+
default: 1
|
|
1819
|
+
},
|
|
1820
|
+
min: {
|
|
1821
|
+
type: Number,
|
|
1822
|
+
default: ie
|
|
1823
|
+
},
|
|
1824
|
+
max: {
|
|
1825
|
+
type: Number,
|
|
1826
|
+
required: !0
|
|
1827
|
+
},
|
|
1828
|
+
id: {
|
|
1829
|
+
type: String,
|
|
1830
|
+
default: void 0
|
|
1831
|
+
},
|
|
1832
|
+
ariaLabel: {
|
|
1833
|
+
type: String,
|
|
1834
|
+
default: "페이지 내비게이션"
|
|
1835
|
+
},
|
|
1836
|
+
pageRange: {
|
|
1837
|
+
type: Number,
|
|
1838
|
+
default: oe
|
|
1839
|
+
}
|
|
1785
1840
|
},
|
|
1786
1841
|
emits: ["update:modelValue"],
|
|
1787
|
-
setup(e, { emit:
|
|
1788
|
-
const
|
|
1789
|
-
if (!
|
|
1842
|
+
setup(e, { emit: l }) {
|
|
1843
|
+
const r = g(() => Math.max(1, e.min ?? ie)), a = g(() => e.modelValue ?? r.value), n = g(() => a.value <= r.value), s = g(() => a.value >= e.max), d = g(() => {
|
|
1844
|
+
if (!n.value)
|
|
1790
1845
|
return "#";
|
|
1791
|
-
}),
|
|
1792
|
-
if (!
|
|
1846
|
+
}), h = g(() => {
|
|
1847
|
+
if (!s.value)
|
|
1793
1848
|
return "#";
|
|
1794
|
-
}),
|
|
1795
|
-
const {
|
|
1796
|
-
if (
|
|
1849
|
+
}), f = g(() => {
|
|
1850
|
+
const { max: k } = e, u = e.pageRange ?? oe, o = 1, i = [];
|
|
1851
|
+
if (k <= u + 2) for (let v = r.value; v <= k; v++) i.push({
|
|
1797
1852
|
type: "page",
|
|
1798
|
-
key: `page-${
|
|
1799
|
-
page:
|
|
1853
|
+
key: `page-${v}`,
|
|
1854
|
+
page: v,
|
|
1800
1855
|
href: "#"
|
|
1801
1856
|
});
|
|
1802
1857
|
else {
|
|
1803
|
-
const
|
|
1804
|
-
for (let
|
|
1858
|
+
const v = Math.min(o, k), m = Math.max(k - o + 1, 1), K = Math.max(r.value, a.value - Math.floor(u / 2)), b = Math.min(k, K + u - 1), w = Math.max(r.value, b - u + 1);
|
|
1859
|
+
for (let c = r.value; c <= v; c++) i.push({
|
|
1805
1860
|
type: "page",
|
|
1806
|
-
key: `page-${
|
|
1807
|
-
page:
|
|
1861
|
+
key: `page-${c}`,
|
|
1862
|
+
page: c,
|
|
1808
1863
|
href: "#"
|
|
1809
1864
|
});
|
|
1810
|
-
|
|
1865
|
+
w > v + 1 && i.push({
|
|
1811
1866
|
type: "ellipsis",
|
|
1812
1867
|
key: "ellipsis-left",
|
|
1813
1868
|
ariaLabel: "페이지 생략"
|
|
1814
1869
|
});
|
|
1815
|
-
const
|
|
1816
|
-
for (let
|
|
1870
|
+
const x = Math.max(w, v + 1), L = Math.min(b, m - 1);
|
|
1871
|
+
for (let c = x; c <= L; c++) i.push({
|
|
1817
1872
|
type: "page",
|
|
1818
|
-
key: `page-${
|
|
1819
|
-
page:
|
|
1873
|
+
key: `page-${c}`,
|
|
1874
|
+
page: c,
|
|
1820
1875
|
href: "#"
|
|
1821
1876
|
});
|
|
1822
|
-
|
|
1877
|
+
b < m - 1 && i.push({
|
|
1823
1878
|
type: "ellipsis",
|
|
1824
1879
|
key: "ellipsis-right",
|
|
1825
1880
|
ariaLabel: "페이지 생략"
|
|
1826
1881
|
});
|
|
1827
|
-
for (let
|
|
1882
|
+
for (let c = m; c <= k; c++) i.push({
|
|
1828
1883
|
type: "page",
|
|
1829
|
-
key: `page-${
|
|
1830
|
-
page:
|
|
1884
|
+
key: `page-${c}`,
|
|
1885
|
+
page: c,
|
|
1831
1886
|
href: "#"
|
|
1832
1887
|
});
|
|
1833
1888
|
}
|
|
1834
|
-
return
|
|
1835
|
-
}),
|
|
1836
|
-
if (
|
|
1837
|
-
|
|
1889
|
+
return i;
|
|
1890
|
+
}), S = (k, u) => {
|
|
1891
|
+
if (k === a.value) {
|
|
1892
|
+
u.preventDefault();
|
|
1838
1893
|
return;
|
|
1839
1894
|
}
|
|
1840
|
-
l("update:modelValue",
|
|
1841
|
-
},
|
|
1842
|
-
if (
|
|
1843
|
-
|
|
1895
|
+
l("update:modelValue", k);
|
|
1896
|
+
}, p = (k) => {
|
|
1897
|
+
if (n.value) {
|
|
1898
|
+
k.preventDefault();
|
|
1844
1899
|
return;
|
|
1845
1900
|
}
|
|
1846
|
-
l("update:modelValue",
|
|
1847
|
-
},
|
|
1848
|
-
if (
|
|
1849
|
-
|
|
1901
|
+
l("update:modelValue", a.value - 1);
|
|
1902
|
+
}, C = (k) => {
|
|
1903
|
+
if (s.value) {
|
|
1904
|
+
k.preventDefault();
|
|
1850
1905
|
return;
|
|
1851
1906
|
}
|
|
1852
|
-
l("update:modelValue",
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
default: ue(() => [...i[0] || (i[0] = [N(" 이전 ", -1)])]),
|
|
1870
|
-
_: 1
|
|
1871
|
-
}, 8, ["href", "class"])),
|
|
1872
|
-
p("div", ca, [(D(!0), T(W, null, Y(g.value, (u) => (D(), T(W, { key: u.key }, [u.type === "page" ? (D(), T("a", {
|
|
1873
|
-
key: 0,
|
|
1874
|
-
href: u.href || "#",
|
|
1875
|
-
class: R(["page-link", { active: u.page === r.value }]),
|
|
1876
|
-
"aria-current": u.page === r.value ? "page" : void 0,
|
|
1877
|
-
onClick: (h) => _(u.page, h)
|
|
1878
|
-
}, [u.page === r.value ? ee((D(), T("span", va, [...i[1] || (i[1] = [N("현재페이지", -1)])])), [[c]]) : X("", !0), N(" " + M(u.page), 1)], 10, fa)) : u.type === "ellipsis" ? (D(), T("span", {
|
|
1879
|
-
key: 1,
|
|
1880
|
-
class: "page-link link-dot",
|
|
1881
|
-
"aria-label": u.ariaLabel
|
|
1882
|
-
}, null, 8, pa)) : X("", !0)], 64))), 128))]),
|
|
1883
|
-
(D(), de(ge(v.value ? "span" : "a"), {
|
|
1884
|
-
href: v.value ? void 0 : b.value,
|
|
1885
|
-
class: R([
|
|
1886
|
-
"page-navi",
|
|
1887
|
-
"next",
|
|
1888
|
-
{ disabled: v.value }
|
|
1889
|
-
]),
|
|
1890
|
-
onClick: V
|
|
1891
|
-
}, {
|
|
1892
|
-
default: ue(() => [...i[2] || (i[2] = [N(" 다음 ", -1)])]),
|
|
1893
|
-
_: 1
|
|
1894
|
-
}, 8, ["href", "class"]))
|
|
1895
|
-
], 8, ua);
|
|
1907
|
+
l("update:modelValue", a.value + 1);
|
|
1908
|
+
}, y = (k) => {
|
|
1909
|
+
if (k.type === "page") {
|
|
1910
|
+
const u = k.page === a.value;
|
|
1911
|
+
return t("a", {
|
|
1912
|
+
key: k.key,
|
|
1913
|
+
href: k.href || "#",
|
|
1914
|
+
class: ["page-link", { active: u }],
|
|
1915
|
+
"aria-current": u ? "page" : void 0,
|
|
1916
|
+
onClick: (o) => S(k.page, o)
|
|
1917
|
+
}, [u ? W(t("span", null, "현재페이지"), [[Y]]) : null, ` ${k.page} `]);
|
|
1918
|
+
}
|
|
1919
|
+
return t("span", {
|
|
1920
|
+
key: k.key,
|
|
1921
|
+
class: "page-link link-dot",
|
|
1922
|
+
"aria-label": k.ariaLabel
|
|
1923
|
+
});
|
|
1896
1924
|
};
|
|
1925
|
+
return () => t("div", {
|
|
1926
|
+
id: e.id,
|
|
1927
|
+
class: "krds-pagination"
|
|
1928
|
+
}, [
|
|
1929
|
+
t(n.value ? "span" : "a", {
|
|
1930
|
+
href: n.value ? void 0 : d.value,
|
|
1931
|
+
class: [
|
|
1932
|
+
"page-navi",
|
|
1933
|
+
"prev",
|
|
1934
|
+
{ disabled: n.value }
|
|
1935
|
+
],
|
|
1936
|
+
onClick: p
|
|
1937
|
+
}, "이전"),
|
|
1938
|
+
t("div", { class: "page-links" }, f.value.map(y)),
|
|
1939
|
+
t(s.value ? "span" : "a", {
|
|
1940
|
+
href: s.value ? void 0 : h.value,
|
|
1941
|
+
class: [
|
|
1942
|
+
"page-navi",
|
|
1943
|
+
"next",
|
|
1944
|
+
{ disabled: s.value }
|
|
1945
|
+
],
|
|
1946
|
+
onClick: C
|
|
1947
|
+
}, "다음")
|
|
1948
|
+
]);
|
|
1897
1949
|
}
|
|
1898
|
-
}),
|
|
1899
|
-
|
|
1950
|
+
}), wt = Kt, Ct = D({
|
|
1951
|
+
name: "KrdsPanel",
|
|
1900
1952
|
props: { modelValue: {
|
|
1901
1953
|
type: Boolean,
|
|
1902
1954
|
default: !1
|
|
1903
1955
|
} },
|
|
1904
1956
|
emits: ["update:modelValue"],
|
|
1905
|
-
setup(e, { emit:
|
|
1906
|
-
const
|
|
1907
|
-
get: () =>
|
|
1908
|
-
set: (
|
|
1909
|
-
}),
|
|
1910
|
-
|
|
1911
|
-
},
|
|
1912
|
-
|
|
1957
|
+
setup(e, { emit: l, slots: r }) {
|
|
1958
|
+
const a = g({
|
|
1959
|
+
get: () => e.modelValue,
|
|
1960
|
+
set: (d) => l("update:modelValue", d)
|
|
1961
|
+
}), n = () => {
|
|
1962
|
+
a.value = !0;
|
|
1963
|
+
}, s = () => {
|
|
1964
|
+
a.value = !1;
|
|
1913
1965
|
};
|
|
1914
|
-
return (
|
|
1966
|
+
return () => t("div", { class: "inner help-panel-flexible" }, [t("button", {
|
|
1915
1967
|
type: "button",
|
|
1916
1968
|
class: "krds-btn small tertiary btn-help-panel expand btn-help-exec",
|
|
1917
|
-
onClick:
|
|
1918
|
-
}, [
|
|
1969
|
+
onClick: n
|
|
1970
|
+
}, [t("i", { class: "svg-icon ico-fold" }), " 도움말"]), t("div", { class: ["krds-help-panel", { expand: a.value }] }, [t("div", { class: "help-panel-wrap" }, [t("div", { class: "help-conts-area" }, [r.default?.(), t("button", {
|
|
1919
1971
|
type: "button",
|
|
1920
1972
|
class: "krds-btn small tertiary btn-help-panel fold",
|
|
1921
|
-
onClick:
|
|
1922
|
-
}, [
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
])])])])]
|
|
1973
|
+
onClick: s
|
|
1974
|
+
}, [
|
|
1975
|
+
t("span", { class: "sr-only" }, "도움말"),
|
|
1976
|
+
" 접어두기 ",
|
|
1977
|
+
t("i", { class: "svg-icon ico-angle right" })
|
|
1978
|
+
])])])])]);
|
|
1927
1979
|
}
|
|
1928
|
-
}),
|
|
1929
|
-
|
|
1930
|
-
class: "svg-icon ico-help"
|
|
1931
|
-
}, $a = {
|
|
1932
|
-
key: 1,
|
|
1933
|
-
class: "svg-icon ico-tooltip"
|
|
1934
|
-
}, xa = { class: "tooltip-title" }, Ba = { class: "tooltip-contents" }, La = /* @__PURE__ */ B({
|
|
1935
|
-
__name: "KrdsContextualHelp",
|
|
1980
|
+
}), xt = Ct, $t = D({
|
|
1981
|
+
name: "KrdsContextualHelp",
|
|
1936
1982
|
props: {
|
|
1937
|
-
tooltipTitle: {
|
|
1938
|
-
|
|
1939
|
-
|
|
1983
|
+
tooltipTitle: {
|
|
1984
|
+
type: String,
|
|
1985
|
+
default: "도움말 제목"
|
|
1986
|
+
},
|
|
1987
|
+
helpIcon: {
|
|
1988
|
+
type: Boolean,
|
|
1989
|
+
default: !1
|
|
1990
|
+
},
|
|
1991
|
+
position: {
|
|
1992
|
+
type: String,
|
|
1993
|
+
default: "top left"
|
|
1994
|
+
}
|
|
1940
1995
|
},
|
|
1941
|
-
setup(e) {
|
|
1942
|
-
const
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1996
|
+
setup(e, { slots: l }) {
|
|
1997
|
+
const r = _(), a = _(), n = _(), s = _(), d = _(!1), h = () => {
|
|
1998
|
+
const o = d.value;
|
|
1999
|
+
p(), o || f();
|
|
1945
2000
|
}, f = () => {
|
|
1946
|
-
!
|
|
1947
|
-
},
|
|
1948
|
-
!
|
|
1949
|
-
},
|
|
1950
|
-
const
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
}),
|
|
1954
|
-
|
|
1955
|
-
}),
|
|
1956
|
-
},
|
|
1957
|
-
if (!
|
|
1958
|
-
const
|
|
1959
|
-
if (
|
|
1960
|
-
const
|
|
1961
|
-
|
|
2001
|
+
!n.value || !a.value || (d.value = !0, n.value.style.display = "block", a.value.setAttribute("aria-expanded", "true"), n.value.querySelector('a, button, [tabindex="0"], input, textarea, select')?.focus(), C());
|
|
2002
|
+
}, S = () => {
|
|
2003
|
+
!n.value || !a.value || (d.value = !1, n.value.style.display = "none", a.value.setAttribute("aria-expanded", "false"));
|
|
2004
|
+
}, p = () => {
|
|
2005
|
+
const o = document.querySelectorAll(".krds-contextual-help .tooltip-popover"), i = document.querySelectorAll(".krds-contextual-help .tooltip-btn");
|
|
2006
|
+
o.forEach((v) => {
|
|
2007
|
+
v.style.display = "none";
|
|
2008
|
+
}), i.forEach((v) => {
|
|
2009
|
+
v.setAttribute("aria-expanded", "false");
|
|
2010
|
+
}), d.value = !1;
|
|
2011
|
+
}, C = () => {
|
|
2012
|
+
if (!r.value || !n.value) return;
|
|
2013
|
+
const o = window.innerWidth <= 768, i = r.value.querySelector(".tooltip-action");
|
|
2014
|
+
if (o) {
|
|
2015
|
+
const v = getComputedStyle(document.querySelector(":root")).getPropertyValue("--krds-contents-padding-x").trim().split("px")[0], m = i.getBoundingClientRect().left - parseInt(v), K = document.body.clientWidth - parseInt(v) * 2;
|
|
2016
|
+
n.value.style.left = `-${m}px`, n.value.style.width = `${K}px`;
|
|
1962
2017
|
} else
|
|
1963
|
-
|
|
1964
|
-
},
|
|
1965
|
-
(
|
|
1966
|
-
},
|
|
1967
|
-
|
|
1968
|
-
},
|
|
1969
|
-
|
|
2018
|
+
n.value.style.left = "", n.value.style.right = "", n.value.style.width = "360px";
|
|
2019
|
+
}, y = (o) => {
|
|
2020
|
+
(o.key === "Escape" || o.key === "Esc") && p();
|
|
2021
|
+
}, k = (o) => {
|
|
2022
|
+
o.target.closest(".tooltip-action") || p();
|
|
2023
|
+
}, u = () => {
|
|
2024
|
+
d.value && C();
|
|
1970
2025
|
};
|
|
1971
|
-
return
|
|
1972
|
-
|
|
1973
|
-
}),
|
|
1974
|
-
document.removeEventListener("keydown",
|
|
1975
|
-
}), (
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
ref_key: "tooltipBtnRef",
|
|
1981
|
-
ref: l,
|
|
2026
|
+
return N(() => {
|
|
2027
|
+
r.value && (a.value && a.value.setAttribute("aria-expanded", "false"), n.value && n.value.setAttribute("role", "tooltip"), document.addEventListener("keydown", y), document.addEventListener("click", k), window.addEventListener("resize", u));
|
|
2028
|
+
}), q(() => {
|
|
2029
|
+
document.removeEventListener("keydown", y), document.removeEventListener("click", k), window.removeEventListener("resize", u);
|
|
2030
|
+
}), () => t("div", {
|
|
2031
|
+
ref: r,
|
|
2032
|
+
class: ["krds-contextual-help", e.position]
|
|
2033
|
+
}, [t("div", { class: "tooltip-action" }, [t("button", {
|
|
2034
|
+
ref: a,
|
|
1982
2035
|
type: "button",
|
|
1983
2036
|
class: "krds-btn medium icon tooltip-btn",
|
|
1984
|
-
onClick:
|
|
1985
|
-
}, [
|
|
1986
|
-
|
|
1987
|
-
ref: s,
|
|
2037
|
+
onClick: h
|
|
2038
|
+
}, [t("span", { class: "sr-only" }, "도움말"), e.helpIcon ? t("i", { class: "svg-icon ico-help" }) : t("i", { class: "svg-icon ico-tooltip" })]), t("div", {
|
|
2039
|
+
ref: n,
|
|
1988
2040
|
class: "tooltip-popover",
|
|
1989
2041
|
role: "tooltip"
|
|
1990
2042
|
}, [
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
ref: r,
|
|
2043
|
+
t("h4", { class: "tooltip-title" }, e.tooltipTitle),
|
|
2044
|
+
t("div", { class: "tooltip-contents" }, l.default?.()),
|
|
2045
|
+
t("button", {
|
|
2046
|
+
ref: s,
|
|
1996
2047
|
type: "button",
|
|
1997
2048
|
class: "krds-btn xsmall icon tooltip-close",
|
|
1998
|
-
onClick:
|
|
1999
|
-
}, [
|
|
2000
|
-
]
|
|
2049
|
+
onClick: S
|
|
2050
|
+
}, [t("span", { class: "sr-only" }, "닫기"), t("i", { class: "svg-icon ico-modal-close" })])
|
|
2051
|
+
])])]);
|
|
2001
2052
|
}
|
|
2002
|
-
}),
|
|
2003
|
-
|
|
2004
|
-
class: "coach-balloon"
|
|
2005
|
-
}, za = { class: "coach-tit" }, Ia = { class: "desc" }, Ea = { class: "coach-controls" }, Fa = { class: "num" }, Ma = { class: "btn-wrap" }, Aa = /* @__PURE__ */ B({
|
|
2006
|
-
__name: "KrdsCoachMark",
|
|
2053
|
+
}), Bt = $t, Lt = D({
|
|
2054
|
+
name: "KrdsCoachMark",
|
|
2007
2055
|
props: {
|
|
2008
|
-
coachMarkClass: {
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2056
|
+
coachMarkClass: {
|
|
2057
|
+
type: [String, Array],
|
|
2058
|
+
default: ""
|
|
2059
|
+
},
|
|
2060
|
+
stepsData: {
|
|
2061
|
+
type: Array,
|
|
2062
|
+
required: !0
|
|
2063
|
+
},
|
|
2064
|
+
activeStep: {
|
|
2065
|
+
type: Number,
|
|
2066
|
+
required: !0
|
|
2067
|
+
},
|
|
2068
|
+
modelValue: {
|
|
2069
|
+
type: Number,
|
|
2070
|
+
default: null
|
|
2071
|
+
},
|
|
2072
|
+
class: {
|
|
2073
|
+
type: String,
|
|
2074
|
+
default: void 0
|
|
2075
|
+
},
|
|
2076
|
+
style: {
|
|
2077
|
+
type: [String, Object],
|
|
2078
|
+
default: void 0
|
|
2079
|
+
},
|
|
2080
|
+
id: {
|
|
2081
|
+
type: String,
|
|
2082
|
+
default: void 0
|
|
2083
|
+
}
|
|
2015
2084
|
},
|
|
2016
2085
|
emits: ["update:modelValue", "close"],
|
|
2017
|
-
setup(e, { emit:
|
|
2018
|
-
const
|
|
2019
|
-
const f =
|
|
2020
|
-
return
|
|
2021
|
-
}),
|
|
2022
|
-
|
|
2023
|
-
},
|
|
2024
|
-
|
|
2025
|
-
},
|
|
2026
|
-
|
|
2086
|
+
setup(e, { emit: l, slots: r }) {
|
|
2087
|
+
const a = g(() => {
|
|
2088
|
+
const f = e.activeStep - 1;
|
|
2089
|
+
return e.stepsData && f >= 0 && f < e.stepsData.length ? e.stepsData[f] : null;
|
|
2090
|
+
}), n = () => {
|
|
2091
|
+
e.activeStep > 1 && l("update:modelValue", e.activeStep - 1);
|
|
2092
|
+
}, s = () => {
|
|
2093
|
+
e.activeStep < e.stepsData.length && l("update:modelValue", e.activeStep + 1);
|
|
2094
|
+
}, d = () => {
|
|
2095
|
+
l("close");
|
|
2096
|
+
}, h = () => {
|
|
2097
|
+
const f = a.value;
|
|
2098
|
+
return e.modelValue !== e.activeStep || !f ? null : t("div", { class: "coach-balloon" }, [
|
|
2099
|
+
t("h5", { class: "sr-only" }, "따라하기 가이드"),
|
|
2100
|
+
t("h6", { class: "coach-tit" }, `${e.activeStep}단계 : ${f.title}`),
|
|
2101
|
+
t("p", { class: "desc" }, f.description),
|
|
2102
|
+
t("div", { class: "coach-controls" }, [t("div", { class: "num" }, [
|
|
2103
|
+
t("span", { class: "sr-only" }, "현재 단계"),
|
|
2104
|
+
t("strong", null, String(e.activeStep)),
|
|
2105
|
+
t("span", { class: "sr-only" }, "총 단계"),
|
|
2106
|
+
t("span", null, String(e.stepsData.length))
|
|
2107
|
+
]), t("div", { class: "btn-wrap" }, [
|
|
2108
|
+
t("button", {
|
|
2109
|
+
type: "button",
|
|
2110
|
+
class: "krds-btn small text",
|
|
2111
|
+
onClick: d
|
|
2112
|
+
}, "그만보기"),
|
|
2113
|
+
e.activeStep !== 1 ? t("button", {
|
|
2114
|
+
type: "button",
|
|
2115
|
+
class: "krds-btn small text",
|
|
2116
|
+
onClick: n
|
|
2117
|
+
}, "이전으로") : null,
|
|
2118
|
+
e.activeStep !== e.stepsData.length ? t("button", {
|
|
2119
|
+
type: "button",
|
|
2120
|
+
class: "krds-btn small tertiary",
|
|
2121
|
+
onClick: s
|
|
2122
|
+
}, "다음으로") : null
|
|
2123
|
+
])])
|
|
2124
|
+
]);
|
|
2027
2125
|
};
|
|
2028
|
-
return (
|
|
2029
|
-
class:
|
|
2030
|
-
style:
|
|
2031
|
-
}, [
|
|
2032
|
-
b[2] || (b[2] = p("h5", { class: "sr-only" }, "따라하기 가이드", -1)),
|
|
2033
|
-
p("h6", za, M(e.activeStep) + "단계 : " + M(l.value.title), 1),
|
|
2034
|
-
p("p", Ia, M(l.value.description), 1),
|
|
2035
|
-
p("div", Ea, [p("div", Fa, [
|
|
2036
|
-
b[0] || (b[0] = p("span", { class: "sr-only" }, "현재 단계", -1)),
|
|
2037
|
-
p("strong", null, M(e.activeStep), 1),
|
|
2038
|
-
b[1] || (b[1] = p("span", { class: "sr-only" }, "총 단계", -1)),
|
|
2039
|
-
p("span", null, M(e.stepsData.length), 1)
|
|
2040
|
-
]), p("div", Ma, [
|
|
2041
|
-
p("button", {
|
|
2042
|
-
type: "button",
|
|
2043
|
-
class: "krds-btn small text",
|
|
2044
|
-
onClick: v
|
|
2045
|
-
}, "그만보기"),
|
|
2046
|
-
e.activeStep !== 1 ? (D(), T("button", {
|
|
2047
|
-
key: 0,
|
|
2048
|
-
type: "button",
|
|
2049
|
-
class: "krds-btn small text",
|
|
2050
|
-
onClick: r
|
|
2051
|
-
}, "이전으로")) : X("", !0),
|
|
2052
|
-
e.activeStep !== e.stepsData.length ? (D(), T("button", {
|
|
2053
|
-
key: 1,
|
|
2054
|
-
type: "button",
|
|
2055
|
-
class: "krds-btn small tertiary",
|
|
2056
|
-
onClick: o
|
|
2057
|
-
}, "다음으로")) : X("", !0)
|
|
2058
|
-
])])
|
|
2059
|
-
])) : X("", !0), J(f.$slots, "coach-mark-content")], 6));
|
|
2126
|
+
return () => t("div", {
|
|
2127
|
+
class: ["krds-coach-mark", e.coachMarkClass],
|
|
2128
|
+
style: e.style
|
|
2129
|
+
}, [h(), r["coach-mark-content"]?.()]);
|
|
2060
2130
|
}
|
|
2061
|
-
}),
|
|
2062
|
-
|
|
2131
|
+
}), Dt = Lt, _t = D({
|
|
2132
|
+
name: "KrdsTooltip",
|
|
2063
2133
|
props: {
|
|
2064
|
-
type: {
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2134
|
+
type: {
|
|
2135
|
+
type: String,
|
|
2136
|
+
default: "default"
|
|
2137
|
+
},
|
|
2138
|
+
tooltipContent: {
|
|
2139
|
+
type: String,
|
|
2140
|
+
required: !0
|
|
2141
|
+
},
|
|
2142
|
+
vertical: {
|
|
2143
|
+
type: Boolean,
|
|
2144
|
+
default: !1
|
|
2145
|
+
},
|
|
2146
|
+
box: {
|
|
2147
|
+
type: Boolean,
|
|
2148
|
+
default: !1
|
|
2149
|
+
},
|
|
2068
2150
|
disabled: {
|
|
2069
2151
|
type: Boolean,
|
|
2070
2152
|
default: !1
|
|
2071
2153
|
},
|
|
2072
|
-
class: {
|
|
2073
|
-
|
|
2074
|
-
|
|
2154
|
+
class: {
|
|
2155
|
+
type: String,
|
|
2156
|
+
default: void 0
|
|
2157
|
+
},
|
|
2158
|
+
style: {
|
|
2159
|
+
type: [String, Object],
|
|
2160
|
+
default: void 0
|
|
2161
|
+
},
|
|
2162
|
+
id: {
|
|
2163
|
+
type: String,
|
|
2164
|
+
default: void 0
|
|
2165
|
+
}
|
|
2075
2166
|
},
|
|
2076
|
-
setup(e) {
|
|
2077
|
-
const
|
|
2078
|
-
const
|
|
2079
|
-
return
|
|
2080
|
-
}),
|
|
2081
|
-
const
|
|
2082
|
-
return
|
|
2083
|
-
}),
|
|
2084
|
-
if (!
|
|
2085
|
-
const
|
|
2086
|
-
if (!
|
|
2087
|
-
const
|
|
2088
|
-
let
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2093
|
-
top: `${
|
|
2094
|
-
left:
|
|
2095
|
-
transform:
|
|
2096
|
-
},
|
|
2097
|
-
},
|
|
2098
|
-
|
|
2099
|
-
}, d = () => {
|
|
2100
|
-
s.value = !1, r.value = {};
|
|
2101
|
-
}, i = (h) => {
|
|
2102
|
-
(h.key === "Escape" || h.key === "Esc") && s.value && d();
|
|
2103
|
-
}, c = () => {
|
|
2104
|
-
v.value = _(), s.value && d();
|
|
2167
|
+
setup(e, { slots: l }) {
|
|
2168
|
+
const r = _(null), a = _(null), n = _(!1), s = _({}), d = `tooltip-popover-${O()}`, h = _(!1), f = g(() => {
|
|
2169
|
+
const m = ["krds-btn", "krds-tooltip"];
|
|
2170
|
+
return e.type === "default" ? m.push("small", "text") : e.type === "icon" ? m.push("icon") : e.type === "button" && m.push(""), !e.box && e.vertical && m.push("tooltip-vertical"), e.box && !e.vertical && m.push("tooltip-box"), m.join(" ");
|
|
2171
|
+
}), S = g(() => {
|
|
2172
|
+
const m = [];
|
|
2173
|
+
return e.box && m.push("tooltip-box"), e.vertical && m.push("tooltip-vertical"), n.value && m.push("active"), m;
|
|
2174
|
+
}), p = g(() => r.value?.querySelector("button")?.textContent?.trim() || ""), C = () => window.innerWidth <= 768, y = () => {
|
|
2175
|
+
if (!r.value || !a.value) return;
|
|
2176
|
+
const m = r.value.querySelector("button");
|
|
2177
|
+
if (!m) return;
|
|
2178
|
+
const K = 12, { clientHeight: b, clientWidth: w } = a.value, { top: x, left: L, right: c, height: B, width: V } = m.getBoundingClientRect(), I = window.innerWidth / 2, E = window.innerHeight / 2;
|
|
2179
|
+
let M, A;
|
|
2180
|
+
const P = [];
|
|
2181
|
+
h.value || e.box || e.vertical ? (x + B > E ? (M = x - b - K, P.push("top")) : (M = x + B + K, P.push("bottom")), L + V > I ? (A = c - w, P.push("right"), window.innerWidth - (L + V) > w / 2 && (A = L + (V - w) / 2, P.splice(P.indexOf("right"), 1))) : (A = L + (V - w) / 2, A < 0 && (A = L, P.push("left")))) : (M = x + (B - b) / 2, L + V > I ? (A = L - w - K, P.push("right")) : A = c + K);
|
|
2182
|
+
const j = window.innerWidth <= 420;
|
|
2183
|
+
s.value = {
|
|
2184
|
+
top: `${M}px`,
|
|
2185
|
+
left: j ? "50%" : `${A}px`,
|
|
2186
|
+
transform: j ? "translateX(-50%)" : "none"
|
|
2187
|
+
}, a.value && (a.value.className = `krds-tooltip-popover ${P.join(" ")} ${S.value.join(" ")}`);
|
|
2188
|
+
}, k = async () => {
|
|
2189
|
+
e.disabled || !e.tooltipContent || (n.value = !0, await ue(), y());
|
|
2105
2190
|
}, u = () => {
|
|
2106
|
-
s.value
|
|
2191
|
+
n.value = !1, s.value = {};
|
|
2192
|
+
}, o = (m) => {
|
|
2193
|
+
(m.key === "Escape" || m.key === "Esc") && n.value && u();
|
|
2194
|
+
}, i = () => {
|
|
2195
|
+
h.value = C(), n.value && u();
|
|
2196
|
+
}, v = () => {
|
|
2197
|
+
n.value && u();
|
|
2107
2198
|
};
|
|
2108
|
-
return
|
|
2109
|
-
|
|
2110
|
-
}),
|
|
2111
|
-
document.removeEventListener("keydown",
|
|
2112
|
-
}), (
|
|
2113
|
-
ref_key: "containerRef",
|
|
2114
|
-
ref: n
|
|
2115
|
-
}, [p("button", {
|
|
2199
|
+
return N(() => {
|
|
2200
|
+
h.value = C(), document.addEventListener("keydown", o), window.addEventListener("scroll", v), window.addEventListener("resize", i);
|
|
2201
|
+
}), q(() => {
|
|
2202
|
+
document.removeEventListener("keydown", o), window.removeEventListener("scroll", v), window.removeEventListener("resize", i);
|
|
2203
|
+
}), () => t("div", { ref: r }, [t("button", {
|
|
2116
2204
|
type: "button",
|
|
2117
|
-
class:
|
|
2205
|
+
class: f.value,
|
|
2118
2206
|
disabled: e.disabled,
|
|
2119
|
-
"aria-labelledby":
|
|
2120
|
-
onMouseover:
|
|
2121
|
-
onMouseout:
|
|
2122
|
-
onFocusin:
|
|
2123
|
-
onFocusout:
|
|
2124
|
-
},
|
|
2125
|
-
id:
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
"aria-hidden": !s.value,
|
|
2207
|
+
"aria-labelledby": d,
|
|
2208
|
+
onMouseover: k,
|
|
2209
|
+
onMouseout: u,
|
|
2210
|
+
onFocusin: k,
|
|
2211
|
+
onFocusout: u
|
|
2212
|
+
}, l.default?.()), W(t("div", {
|
|
2213
|
+
id: d,
|
|
2214
|
+
ref: a,
|
|
2215
|
+
class: ["krds-tooltip-popover", S.value],
|
|
2216
|
+
style: s.value,
|
|
2217
|
+
"aria-hidden": !n.value,
|
|
2131
2218
|
role: "tooltip"
|
|
2132
|
-
}, [
|
|
2219
|
+
}, [
|
|
2220
|
+
t("span", { class: "sr-only" }, p.value),
|
|
2221
|
+
" ",
|
|
2222
|
+
e.tooltipContent
|
|
2223
|
+
]), [[X, n.value]])]);
|
|
2133
2224
|
}
|
|
2134
|
-
}),
|
|
2135
|
-
|
|
2136
|
-
class: "drop-top"
|
|
2137
|
-
}, Xa = {
|
|
2138
|
-
key: 1,
|
|
2139
|
-
class: "drop-list"
|
|
2140
|
-
}, Ja = [
|
|
2141
|
-
"lang",
|
|
2142
|
-
"aria-selected",
|
|
2143
|
-
"onClick"
|
|
2144
|
-
], Qa = { class: "sr-only" }, Za = {
|
|
2145
|
-
key: 2,
|
|
2146
|
-
class: "drop-list"
|
|
2147
|
-
}, el = ["href", "lang"], tl = /* @__PURE__ */ B({
|
|
2148
|
-
__name: "KrdsLanguageSwitcher",
|
|
2225
|
+
}), Tt = _t, Vt = D({
|
|
2226
|
+
name: "KrdsLanguageSwitcher",
|
|
2149
2227
|
props: {
|
|
2150
|
-
languageList: {
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2228
|
+
languageList: {
|
|
2229
|
+
type: Array,
|
|
2230
|
+
required: !0
|
|
2231
|
+
},
|
|
2232
|
+
modelValue: {
|
|
2233
|
+
type: String,
|
|
2234
|
+
default: ""
|
|
2235
|
+
},
|
|
2236
|
+
type: {
|
|
2237
|
+
type: String,
|
|
2238
|
+
default: "default"
|
|
2239
|
+
},
|
|
2240
|
+
dropPosition: {
|
|
2241
|
+
type: String,
|
|
2242
|
+
default: "center"
|
|
2243
|
+
},
|
|
2244
|
+
class: {
|
|
2245
|
+
type: String,
|
|
2246
|
+
default: void 0
|
|
2247
|
+
},
|
|
2248
|
+
style: {
|
|
2249
|
+
type: [String, Object],
|
|
2250
|
+
default: void 0
|
|
2251
|
+
},
|
|
2252
|
+
id: {
|
|
2253
|
+
type: String,
|
|
2254
|
+
default: void 0
|
|
2255
|
+
}
|
|
2157
2256
|
},
|
|
2158
2257
|
emits: ["update:modelValue", "close"],
|
|
2159
|
-
setup(e, { emit:
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2162
|
-
},
|
|
2163
|
-
|
|
2164
|
-
},
|
|
2165
|
-
l("update:modelValue", i),
|
|
2166
|
-
},
|
|
2167
|
-
if (!
|
|
2168
|
-
const i =
|
|
2258
|
+
setup(e, { emit: l, slots: r }) {
|
|
2259
|
+
const a = _(!1), n = _(), s = _(), d = () => {
|
|
2260
|
+
a.value = !a.value, a.value && n.value && S();
|
|
2261
|
+
}, h = () => {
|
|
2262
|
+
a.value = !1;
|
|
2263
|
+
}, f = (i) => {
|
|
2264
|
+
l("update:modelValue", i), h(), l("close"), s.value?.focus();
|
|
2265
|
+
}, S = () => {
|
|
2266
|
+
if (!n.value) return;
|
|
2267
|
+
const i = n.value.querySelector(".drop-menu");
|
|
2169
2268
|
if (!i) return;
|
|
2170
|
-
const
|
|
2171
|
-
|
|
2172
|
-
},
|
|
2173
|
-
i.key === "Escape" && (
|
|
2174
|
-
},
|
|
2175
|
-
|
|
2176
|
-
},
|
|
2177
|
-
|
|
2178
|
-
},
|
|
2179
|
-
if (!
|
|
2180
|
-
|
|
2181
|
-
|
|
2269
|
+
const v = i.getBoundingClientRect(), m = window.innerWidth;
|
|
2270
|
+
n.value.classList.remove("drop-left", "drop-right"), v.left < 0 ? n.value.classList.add("drop-left") : m < v.left + v.width && n.value.classList.add("drop-right");
|
|
2271
|
+
}, p = (i) => {
|
|
2272
|
+
i.key === "Escape" && (h(), s.value?.focus());
|
|
2273
|
+
}, C = (i) => {
|
|
2274
|
+
n.value?.contains(i.target) || h();
|
|
2275
|
+
}, y = (i) => {
|
|
2276
|
+
n.value?.contains(i.relatedTarget) || h();
|
|
2277
|
+
}, k = (i) => {
|
|
2278
|
+
if (!n.value) return;
|
|
2279
|
+
n.value.querySelectorAll(".drop-list .item-link").forEach((m) => {
|
|
2280
|
+
m.style.position = "relative", m.style.zIndex = "0";
|
|
2182
2281
|
});
|
|
2183
|
-
const
|
|
2184
|
-
|
|
2282
|
+
const v = i.target;
|
|
2283
|
+
v.style.zIndex = "1";
|
|
2185
2284
|
};
|
|
2186
|
-
|
|
2187
|
-
i ? (document.addEventListener("keydown",
|
|
2188
|
-
}),
|
|
2189
|
-
document.removeEventListener("keydown",
|
|
2190
|
-
})
|
|
2191
|
-
|
|
2192
|
-
ref: r,
|
|
2193
|
-
class: R(["krds-drop-wrap krds-language", {
|
|
2194
|
-
active: s.value,
|
|
2195
|
-
"drop-left": n.dropPosition === "left",
|
|
2196
|
-
"drop-right": n.dropPosition === "right"
|
|
2197
|
-
}]),
|
|
2198
|
-
onFocusout: V
|
|
2199
|
-
}, [p("button", {
|
|
2200
|
-
ref_key: "buttonRef",
|
|
2201
|
-
ref: o,
|
|
2202
|
-
type: "button",
|
|
2203
|
-
class: R(["krds-btn small text drop-btn", { active: s.value }]),
|
|
2204
|
-
"aria-expanded": s.value,
|
|
2205
|
-
onClick: v
|
|
2206
|
-
}, [
|
|
2207
|
-
c[0] || (c[0] = p("i", { class: "svg-icon ico-global" }, null, -1)),
|
|
2208
|
-
J(i.$slots, "default"),
|
|
2209
|
-
c[1] || (c[1] = p("i", { class: "svg-icon ico-toggle" }, null, -1))
|
|
2210
|
-
], 10, Ga), p("div", {
|
|
2211
|
-
class: "drop-menu",
|
|
2212
|
-
style: ne({ display: s.value ? "block" : "none" })
|
|
2213
|
-
}, [p("div", Ya, [i.$slots["prev-item"] ? (D(), T("div", Ua, [J(i.$slots, "prev-item")])) : X("", !0), n.type === "default" ? (D(), T("ul", Xa, [(D(!0), T(W, null, Y(e.languageList, (u) => (D(), T("li", { key: u.code }, [p("a", {
|
|
2285
|
+
G(a, (i) => {
|
|
2286
|
+
i ? (document.addEventListener("keydown", p), document.addEventListener("click", C)) : (document.removeEventListener("keydown", p), document.removeEventListener("click", C));
|
|
2287
|
+
}), q(() => {
|
|
2288
|
+
document.removeEventListener("keydown", p), document.removeEventListener("click", C);
|
|
2289
|
+
});
|
|
2290
|
+
const u = () => t("ul", { class: "drop-list" }, e.languageList.map((i) => t("li", { key: i.code }, [t("a", {
|
|
2214
2291
|
href: "#",
|
|
2215
|
-
class:
|
|
2216
|
-
lang:
|
|
2217
|
-
"aria-selected":
|
|
2218
|
-
onClick:
|
|
2219
|
-
onFocus:
|
|
2220
|
-
}, [
|
|
2221
|
-
|
|
2292
|
+
class: ["item-link", { active: e.modelValue === i.code }],
|
|
2293
|
+
lang: i.code,
|
|
2294
|
+
"aria-selected": e.modelValue === i.code,
|
|
2295
|
+
onClick: J(() => f(i.code), ["prevent"]),
|
|
2296
|
+
onFocus: k
|
|
2297
|
+
}, [
|
|
2298
|
+
i.name,
|
|
2299
|
+
" ",
|
|
2300
|
+
t("span", { class: "sr-only" }, e.modelValue === i.code ? "선택됨" : "")
|
|
2301
|
+
])]))), o = () => t("ul", { class: "drop-list" }, e.languageList.map((i) => t("li", { key: i.code }, [t("a", {
|
|
2302
|
+
href: i.url || "#",
|
|
2222
2303
|
class: "item-link",
|
|
2223
|
-
lang:
|
|
2304
|
+
lang: i.code,
|
|
2224
2305
|
target: "_blank",
|
|
2225
2306
|
title: "새 창 열림",
|
|
2226
|
-
onFocus:
|
|
2227
|
-
}, [
|
|
2307
|
+
onFocus: k
|
|
2308
|
+
}, [
|
|
2309
|
+
i.name,
|
|
2310
|
+
" ",
|
|
2311
|
+
t("i", { class: "svg-icon ico-go" })
|
|
2312
|
+
])])));
|
|
2313
|
+
return () => t("div", {
|
|
2314
|
+
ref: n,
|
|
2315
|
+
class: [
|
|
2316
|
+
"krds-drop-wrap",
|
|
2317
|
+
"krds-language",
|
|
2318
|
+
{
|
|
2319
|
+
active: a.value,
|
|
2320
|
+
"drop-left": e.dropPosition === "left",
|
|
2321
|
+
"drop-right": e.dropPosition === "right"
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
onFocusout: y
|
|
2325
|
+
}, [t("button", {
|
|
2326
|
+
ref: s,
|
|
2327
|
+
type: "button",
|
|
2328
|
+
class: ["krds-btn small text drop-btn", { active: a.value }],
|
|
2329
|
+
"aria-expanded": a.value,
|
|
2330
|
+
onClick: d
|
|
2331
|
+
}, [
|
|
2332
|
+
t("i", { class: "svg-icon ico-global" }),
|
|
2333
|
+
r.default?.(),
|
|
2334
|
+
t("i", { class: "svg-icon ico-toggle" })
|
|
2335
|
+
]), t("div", {
|
|
2336
|
+
class: "drop-menu",
|
|
2337
|
+
style: { display: a.value ? "block" : "none" }
|
|
2338
|
+
}, [t("div", { class: "drop-in" }, [r["prev-item"] ? t("div", { class: "drop-top" }, r["prev-item"]()) : null, e.type === "default" ? u() : e.type === "external" ? o() : null])])]);
|
|
2228
2339
|
}
|
|
2229
|
-
}),
|
|
2230
|
-
|
|
2340
|
+
}), Et = Vt, zt = D({
|
|
2341
|
+
name: "KrdsResize",
|
|
2231
2342
|
emits: ["update:modelValue", "close"],
|
|
2232
|
-
setup(e, { emit:
|
|
2233
|
-
const
|
|
2343
|
+
setup(e, { emit: l }) {
|
|
2344
|
+
const r = _(!1), a = _(), n = _(), s = _("md"), d = [
|
|
2234
2345
|
{
|
|
2235
2346
|
key: "sm",
|
|
2236
2347
|
label: "작게",
|
|
@@ -2256,69 +2367,71 @@ var Pt = B({
|
|
|
2256
2367
|
label: "가장 크게",
|
|
2257
2368
|
zoom: "1.5"
|
|
2258
2369
|
}
|
|
2259
|
-
],
|
|
2260
|
-
|
|
2261
|
-
},
|
|
2262
|
-
|
|
2263
|
-
},
|
|
2264
|
-
|
|
2265
|
-
},
|
|
2266
|
-
const
|
|
2267
|
-
|
|
2268
|
-
},
|
|
2269
|
-
if (!
|
|
2270
|
-
const
|
|
2271
|
-
if (!
|
|
2272
|
-
const
|
|
2273
|
-
|
|
2274
|
-
},
|
|
2275
|
-
|
|
2276
|
-
},
|
|
2277
|
-
|
|
2278
|
-
},
|
|
2279
|
-
|
|
2280
|
-
},
|
|
2281
|
-
if (!
|
|
2282
|
-
|
|
2370
|
+
], h = () => {
|
|
2371
|
+
r.value = !r.value, r.value && a.value && C();
|
|
2372
|
+
}, f = () => {
|
|
2373
|
+
r.value = !1;
|
|
2374
|
+
}, S = (i) => {
|
|
2375
|
+
f(), l("close"), n.value?.focus(), s.value = i.key, document.body.style.zoom = i?.zoom;
|
|
2376
|
+
}, p = () => {
|
|
2377
|
+
const i = d.find((v) => v.key === "md");
|
|
2378
|
+
i && S(i);
|
|
2379
|
+
}, C = () => {
|
|
2380
|
+
if (!a.value) return;
|
|
2381
|
+
const i = a.value.querySelector(".drop-menu");
|
|
2382
|
+
if (!i) return;
|
|
2383
|
+
const v = i.getBoundingClientRect(), m = window.innerWidth;
|
|
2384
|
+
a.value.classList.remove("drop-left", "drop-right"), v.left < 0 ? a.value.classList.add("drop-left") : m < v.left + v.width && a.value.classList.add("drop-right");
|
|
2385
|
+
}, y = (i) => {
|
|
2386
|
+
i.key === "Escape" && (f(), n.value?.focus());
|
|
2387
|
+
}, k = (i) => {
|
|
2388
|
+
a.value?.contains(i.target) || f();
|
|
2389
|
+
}, u = (i) => {
|
|
2390
|
+
a.value?.contains(i.relatedTarget) || f();
|
|
2391
|
+
}, o = (i) => {
|
|
2392
|
+
if (!a.value) return;
|
|
2393
|
+
a.value.querySelectorAll(".drop-list .item-link").forEach((m) => {
|
|
2283
2394
|
m.style.position = "relative", m.style.zIndex = "0";
|
|
2284
2395
|
});
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2396
|
+
const v = i.target;
|
|
2397
|
+
v.style.zIndex = "1";
|
|
2287
2398
|
};
|
|
2288
|
-
return
|
|
2289
|
-
|
|
2290
|
-
}),
|
|
2291
|
-
document.removeEventListener("keydown",
|
|
2292
|
-
}), (
|
|
2293
|
-
|
|
2294
|
-
ref: s,
|
|
2399
|
+
return G(r, (i) => {
|
|
2400
|
+
i ? (document.addEventListener("keydown", y), document.addEventListener("click", k)) : (document.removeEventListener("keydown", y), document.removeEventListener("click", k));
|
|
2401
|
+
}), q(() => {
|
|
2402
|
+
document.removeEventListener("keydown", y), document.removeEventListener("click", k);
|
|
2403
|
+
}), () => t("div", {
|
|
2404
|
+
ref: a,
|
|
2295
2405
|
class: "krds-drop-wrap krds-resize",
|
|
2296
2406
|
"data-adjust": "scale",
|
|
2297
|
-
onFocusout:
|
|
2298
|
-
}, [
|
|
2299
|
-
|
|
2300
|
-
ref: r,
|
|
2407
|
+
onFocusout: u
|
|
2408
|
+
}, [t("button", {
|
|
2409
|
+
ref: n,
|
|
2301
2410
|
type: "button",
|
|
2302
2411
|
class: "krds-btn small text drop-btn",
|
|
2303
|
-
onClick:
|
|
2304
|
-
}, [
|
|
2412
|
+
onClick: h
|
|
2413
|
+
}, ["화면크기 ", t("i", { class: "svg-icon ico-toggle" })]), t("div", {
|
|
2305
2414
|
class: "drop-menu",
|
|
2306
|
-
style:
|
|
2307
|
-
}, [
|
|
2415
|
+
style: { display: r.value ? "block" : "none" }
|
|
2416
|
+
}, [t("div", { class: "drop-in" }, [t("ul", { class: "drop-list" }, d.map((i) => t("li", { key: i.key }, [t("button", {
|
|
2308
2417
|
type: "button",
|
|
2309
|
-
class:
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2418
|
+
class: [
|
|
2419
|
+
"item-link",
|
|
2420
|
+
i.key,
|
|
2421
|
+
i.key === s.value ? "active" : ""
|
|
2422
|
+
],
|
|
2423
|
+
"data-adjust-scale": i.key,
|
|
2424
|
+
onClick: J(() => S(i), ["prevent"]),
|
|
2425
|
+
onFocus: o
|
|
2426
|
+
}, i.label)]))), t("div", { class: "drop-bottom" }, [t("button", {
|
|
2314
2427
|
type: "button",
|
|
2315
2428
|
class: "krds-btn medium text",
|
|
2316
2429
|
"data-adjust-scale": "md",
|
|
2317
|
-
onClick:
|
|
2318
|
-
onFocus:
|
|
2319
|
-
}, [
|
|
2430
|
+
onClick: J(p, ["prevent"]),
|
|
2431
|
+
onFocus: o
|
|
2432
|
+
}, [t("i", { class: "svg-icon ico-reset" }), " 초기화"])])])])]);
|
|
2320
2433
|
}
|
|
2321
|
-
}),
|
|
2434
|
+
}), It = zt, At = D({
|
|
2322
2435
|
name: "KrdsModal",
|
|
2323
2436
|
props: {
|
|
2324
2437
|
modelValue: {
|
|
@@ -2352,60 +2465,60 @@ var Pt = B({
|
|
|
2352
2465
|
},
|
|
2353
2466
|
emits: ["update:modelValue"],
|
|
2354
2467
|
slots: Object,
|
|
2355
|
-
setup(e, { slots:
|
|
2356
|
-
const
|
|
2468
|
+
setup(e, { slots: l, emit: r }) {
|
|
2469
|
+
const a = Se()?.uid, n = g(() => e.modalId ?? `krds-modal-${a}`), s = g({
|
|
2357
2470
|
get: () => e.modelValue,
|
|
2358
|
-
set: (
|
|
2359
|
-
}),
|
|
2471
|
+
set: (i) => r("update:modelValue", i)
|
|
2472
|
+
}), d = g(() => `tit_${n.value}`), h = g(() => ({
|
|
2360
2473
|
small: "modal-sm",
|
|
2361
2474
|
medium: "modal-md",
|
|
2362
2475
|
large: "modal-lg"
|
|
2363
2476
|
})[e.size]), f = () => {
|
|
2364
|
-
|
|
2477
|
+
s.value = !1;
|
|
2365
2478
|
};
|
|
2366
|
-
let
|
|
2367
|
-
const
|
|
2368
|
-
if (!
|
|
2369
|
-
const
|
|
2370
|
-
if (
|
|
2371
|
-
|
|
2479
|
+
let S = "", p = null;
|
|
2480
|
+
const C = _(null), y = (i) => Array.from(i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter((v) => !v.hasAttribute("disabled") && v.getAttribute("tabindex") !== "-1"), k = (i) => {
|
|
2481
|
+
if (!C.value || i.key !== "Tab") return;
|
|
2482
|
+
const v = y(C.value);
|
|
2483
|
+
if (v.length === 0) {
|
|
2484
|
+
i.preventDefault();
|
|
2372
2485
|
return;
|
|
2373
2486
|
}
|
|
2374
|
-
const
|
|
2375
|
-
|
|
2376
|
-
},
|
|
2377
|
-
|
|
2378
|
-
},
|
|
2379
|
-
document.body.style.overflow =
|
|
2487
|
+
const m = v[0], K = v[v.length - 1];
|
|
2488
|
+
i.shiftKey && document.activeElement === m ? (i.preventDefault(), K.focus()) : !i.shiftKey && document.activeElement === K && (i.preventDefault(), m.focus());
|
|
2489
|
+
}, u = (i) => {
|
|
2490
|
+
i.key === "Escape" && !e.persistent && f();
|
|
2491
|
+
}, o = () => {
|
|
2492
|
+
document.body.style.overflow = S, document.removeEventListener("keydown", k), document.removeEventListener("keydown", u), p && (p.focus(), p = null), C.value = null;
|
|
2380
2493
|
};
|
|
2381
|
-
return
|
|
2382
|
-
if (
|
|
2383
|
-
|
|
2384
|
-
const
|
|
2385
|
-
if (
|
|
2386
|
-
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2494
|
+
return G(() => e.modelValue, async (i) => {
|
|
2495
|
+
if (i) {
|
|
2496
|
+
S = document.body.style.overflow, document.body.style.overflow = "hidden", p = document.activeElement, await ue();
|
|
2497
|
+
const v = document.getElementById(n.value);
|
|
2498
|
+
if (v) {
|
|
2499
|
+
C.value = v;
|
|
2500
|
+
const m = v.querySelector(".modal-conts");
|
|
2501
|
+
m && (m.setAttribute("tabindex", "-1"), m.focus()), document.addEventListener("keydown", k), document.addEventListener("keydown", u);
|
|
2389
2502
|
}
|
|
2390
|
-
} else
|
|
2391
|
-
}, { immediate: !0 }),
|
|
2392
|
-
e.modelValue &&
|
|
2503
|
+
} else o();
|
|
2504
|
+
}, { immediate: !0 }), Q(() => {
|
|
2505
|
+
e.modelValue && o();
|
|
2393
2506
|
}), () => {
|
|
2394
|
-
if (!
|
|
2395
|
-
const
|
|
2396
|
-
id:
|
|
2507
|
+
if (!s.value) return null;
|
|
2508
|
+
const i = {
|
|
2509
|
+
id: n.value,
|
|
2397
2510
|
class: "krds-modal fade in shown",
|
|
2398
2511
|
role: "dialog",
|
|
2399
2512
|
"aria-modal": !0,
|
|
2400
|
-
"aria-labelledby":
|
|
2513
|
+
"aria-labelledby": d.value
|
|
2401
2514
|
};
|
|
2402
|
-
return e.full ?
|
|
2403
|
-
|
|
2404
|
-
id:
|
|
2515
|
+
return e.full ? i["data-type"] = "full" : e.bottomSheet && (i["data-type"] = "bottom-sheet"), t(ke, { to: "body" }, t("section", i, [t("div", { class: `modal-dialog ${h.value}` }, [t("div", { class: "modal-content" }, [
|
|
2516
|
+
l.title ? t("div", { class: "modal-header" }, [t("h2", {
|
|
2517
|
+
id: d.value,
|
|
2405
2518
|
class: "modal-title"
|
|
2406
|
-
},
|
|
2407
|
-
t("div", { class: "modal-conts" }, [t("div", { class: "conts-area" },
|
|
2408
|
-
|
|
2519
|
+
}, l.title())]) : null,
|
|
2520
|
+
t("div", { class: "modal-conts" }, [t("div", { class: "conts-area" }, l.default?.())]),
|
|
2521
|
+
l.footer ? t("div", { class: "modal-btn btn-wrap" }, l.footer()) : null,
|
|
2409
2522
|
t("button", {
|
|
2410
2523
|
type: "button",
|
|
2411
2524
|
class: "krds-btn medium icon btn-close close-modal",
|
|
@@ -2417,7 +2530,7 @@ var Pt = B({
|
|
|
2417
2530
|
})]));
|
|
2418
2531
|
};
|
|
2419
2532
|
}
|
|
2420
|
-
}),
|
|
2533
|
+
}), Ft = At, Mt = D({
|
|
2421
2534
|
name: "KrdsAccordionGroup",
|
|
2422
2535
|
props: {
|
|
2423
2536
|
typeLine: {
|
|
@@ -2429,47 +2542,56 @@ var Pt = B({
|
|
|
2429
2542
|
default: void 0
|
|
2430
2543
|
}
|
|
2431
2544
|
},
|
|
2432
|
-
setup(e, { slots:
|
|
2433
|
-
const
|
|
2434
|
-
const
|
|
2435
|
-
return e.typeLine &&
|
|
2545
|
+
setup(e, { slots: l }) {
|
|
2546
|
+
const r = g(() => {
|
|
2547
|
+
const a = ["krds-accordion"];
|
|
2548
|
+
return e.typeLine && a.push("type-line"), e.class && a.push(e.class), a;
|
|
2436
2549
|
});
|
|
2437
|
-
return () => t("div", { class:
|
|
2550
|
+
return () => t("div", { class: r.value }, l.default?.());
|
|
2438
2551
|
}
|
|
2439
|
-
}),
|
|
2440
|
-
"
|
|
2441
|
-
"aria-expanded",
|
|
2442
|
-
"aria-controls"
|
|
2443
|
-
], gl = ["id", "aria-labelledby"], bl = { class: "accordion-body" }, kl = /* @__PURE__ */ B({
|
|
2444
|
-
__name: "KrdsAccordionItem",
|
|
2552
|
+
}), Pt = Mt, Rt = D({
|
|
2553
|
+
name: "KrdsAccordionItem",
|
|
2445
2554
|
props: {
|
|
2446
|
-
id: {
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2555
|
+
id: {
|
|
2556
|
+
type: String,
|
|
2557
|
+
required: !0
|
|
2558
|
+
},
|
|
2559
|
+
openItem: {
|
|
2560
|
+
type: String,
|
|
2561
|
+
default: void 0
|
|
2562
|
+
},
|
|
2563
|
+
title: {
|
|
2564
|
+
type: String,
|
|
2565
|
+
default: void 0
|
|
2566
|
+
},
|
|
2567
|
+
content: {
|
|
2568
|
+
type: String,
|
|
2569
|
+
default: void 0
|
|
2570
|
+
}
|
|
2450
2571
|
},
|
|
2451
2572
|
emits: ["toggle"],
|
|
2452
|
-
setup(e, { emit:
|
|
2453
|
-
const
|
|
2454
|
-
l("toggle",
|
|
2573
|
+
setup(e, { emit: l, slots: r }) {
|
|
2574
|
+
const a = g(() => e.openItem === e.id), n = () => {
|
|
2575
|
+
l("toggle", e.id);
|
|
2455
2576
|
};
|
|
2456
|
-
return (
|
|
2577
|
+
return () => t("div", {
|
|
2457
2578
|
id: e.id,
|
|
2458
|
-
class:
|
|
2459
|
-
}, [
|
|
2579
|
+
class: ["accordion-item", { active: a.value }]
|
|
2580
|
+
}, [t("h5", { class: "accordion-header" }, [t("button", {
|
|
2460
2581
|
id: `accordion-header-${e.id}`,
|
|
2461
2582
|
type: "button",
|
|
2462
|
-
class: "btn-accordion",
|
|
2463
|
-
"aria-expanded":
|
|
2583
|
+
class: ["btn-accordion", { active: a.value }],
|
|
2584
|
+
"aria-expanded": a.value,
|
|
2464
2585
|
"aria-controls": `accordion-collapse-${e.id}`,
|
|
2465
|
-
onClick:
|
|
2466
|
-
},
|
|
2586
|
+
onClick: n
|
|
2587
|
+
}, r.title?.() ?? e.title)]), t("div", {
|
|
2467
2588
|
id: `accordion-collapse-${e.id}`,
|
|
2468
2589
|
class: "accordion-collapse collapse",
|
|
2590
|
+
role: "region",
|
|
2469
2591
|
"aria-labelledby": `accordion-header-${e.id}`
|
|
2470
|
-
}, [
|
|
2592
|
+
}, [t("div", { class: "accordion-body" }, r.content?.() ?? e.content)])]);
|
|
2471
2593
|
}
|
|
2472
|
-
}),
|
|
2594
|
+
}), qt = Rt, Ht = D({
|
|
2473
2595
|
name: "KrdsTts",
|
|
2474
2596
|
props: {
|
|
2475
2597
|
text: {
|
|
@@ -2503,49 +2625,49 @@ var Pt = B({
|
|
|
2503
2625
|
"end",
|
|
2504
2626
|
"error"
|
|
2505
2627
|
],
|
|
2506
|
-
setup(e, { emit:
|
|
2507
|
-
const
|
|
2508
|
-
let
|
|
2509
|
-
const
|
|
2510
|
-
typeof window < "u" && window.speechSynthesis && window.speechSynthesis.cancel(),
|
|
2511
|
-
},
|
|
2628
|
+
setup(e, { emit: l }) {
|
|
2629
|
+
const r = _(!1);
|
|
2630
|
+
let a = null;
|
|
2631
|
+
const n = () => {
|
|
2632
|
+
typeof window < "u" && window.speechSynthesis && window.speechSynthesis.cancel(), r.value = !1, a = null;
|
|
2633
|
+
}, s = () => {
|
|
2512
2634
|
if (!e.disabled) {
|
|
2513
|
-
if (
|
|
2514
|
-
|
|
2635
|
+
if (r.value) {
|
|
2636
|
+
n(), l("pause");
|
|
2515
2637
|
return;
|
|
2516
2638
|
}
|
|
2517
2639
|
if (typeof window > "u" || !window.speechSynthesis) {
|
|
2518
|
-
|
|
2640
|
+
l("error", /* @__PURE__ */ new Error("SpeechSynthesis API is not supported"));
|
|
2519
2641
|
return;
|
|
2520
2642
|
}
|
|
2521
|
-
window.speechSynthesis.cancel(),
|
|
2522
|
-
|
|
2523
|
-
},
|
|
2524
|
-
|
|
2525
|
-
},
|
|
2526
|
-
|
|
2527
|
-
}, window.speechSynthesis.speak(
|
|
2643
|
+
window.speechSynthesis.cancel(), a = new SpeechSynthesisUtterance(e.text), a.lang = "ko-KR", a.onstart = () => {
|
|
2644
|
+
r.value = !0;
|
|
2645
|
+
}, a.onend = () => {
|
|
2646
|
+
r.value = !1, a = null, l("end");
|
|
2647
|
+
}, a.onerror = (f) => {
|
|
2648
|
+
r.value = !1, a = null, f.error !== "canceled" && l("error", new Error(f.error));
|
|
2649
|
+
}, window.speechSynthesis.speak(a), l("play", e.text);
|
|
2528
2650
|
}
|
|
2529
|
-
},
|
|
2651
|
+
}, d = g(() => {
|
|
2530
2652
|
const f = ["krds-tts"];
|
|
2531
|
-
return e.size && f.push(e.size),
|
|
2532
|
-
}),
|
|
2533
|
-
return
|
|
2534
|
-
|
|
2653
|
+
return e.size && f.push(e.size), r.value ? f.push("pause") : e.icon === "play" && f.push("play"), e.class && f.push(e.class), f;
|
|
2654
|
+
}), h = g(() => r.value ? "ico-stop" : e.icon === "play" ? "ico-play" : "ico-volume");
|
|
2655
|
+
return Q(() => {
|
|
2656
|
+
n();
|
|
2535
2657
|
}), () => {
|
|
2536
2658
|
const f = [t("span", {
|
|
2537
2659
|
class: "krds-tts-icon",
|
|
2538
2660
|
"aria-hidden": "true"
|
|
2539
|
-
}, [t("i", { class: `svg-icon ${
|
|
2661
|
+
}, [t("i", { class: `svg-icon ${h.value}` })])];
|
|
2540
2662
|
return e.label && f.push(t("span", { class: "krds-tts-text" }, e.label)), t("button", {
|
|
2541
2663
|
type: "button",
|
|
2542
|
-
class:
|
|
2664
|
+
class: d.value,
|
|
2543
2665
|
disabled: e.disabled || void 0,
|
|
2544
|
-
onClick:
|
|
2666
|
+
onClick: s
|
|
2545
2667
|
}, f);
|
|
2546
2668
|
};
|
|
2547
2669
|
}
|
|
2548
|
-
}),
|
|
2670
|
+
}), Nt = Ht, Ot = D({
|
|
2549
2671
|
name: "KrdsTable",
|
|
2550
2672
|
props: {
|
|
2551
2673
|
caption: {
|
|
@@ -2567,55 +2689,66 @@ var Pt = B({
|
|
|
2567
2689
|
},
|
|
2568
2690
|
emits: ["row-click"],
|
|
2569
2691
|
slots: Object,
|
|
2570
|
-
setup(e, { emit:
|
|
2571
|
-
const
|
|
2572
|
-
const
|
|
2573
|
-
return e.class &&
|
|
2574
|
-
}),
|
|
2692
|
+
setup(e, { emit: l, slots: r }) {
|
|
2693
|
+
const a = g(() => {
|
|
2694
|
+
const u = ["tbl"];
|
|
2695
|
+
return e.class && u.push(e.class), u;
|
|
2696
|
+
}), n = g(() => ["krds-table-wrap"]), s = (u) => u.headerStyle || void 0, d = (u) => {
|
|
2697
|
+
const o = [];
|
|
2698
|
+
return u.align && o.push(`text-${u.align}`), u.headerClasses && o.push(u.headerClasses), o.length > 0 ? o : void 0;
|
|
2699
|
+
}, h = (u, o) => {
|
|
2700
|
+
if (o.style)
|
|
2701
|
+
return typeof o.style == "function" ? o.style(u) : o.style;
|
|
2702
|
+
}, f = (u, o) => {
|
|
2575
2703
|
const i = [];
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
return typeof i.style == "function" ? i.style(d) : i.style;
|
|
2580
|
-
}, f = (d, i) => {
|
|
2581
|
-
const c = [];
|
|
2582
|
-
if (i.align && c.push(`text-${i.align}`), i.classes) {
|
|
2583
|
-
const u = typeof i.classes == "function" ? i.classes(d) : i.classes;
|
|
2584
|
-
c.push(u);
|
|
2704
|
+
if (o.align && i.push(`text-${o.align}`), o.classes) {
|
|
2705
|
+
const v = typeof o.classes == "function" ? o.classes(u) : o.classes;
|
|
2706
|
+
i.push(v);
|
|
2585
2707
|
}
|
|
2586
|
-
return
|
|
2587
|
-
},
|
|
2588
|
-
if (!
|
|
2589
|
-
const
|
|
2590
|
-
return t("col", { style:
|
|
2591
|
-
})),
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2708
|
+
return i.length > 0 ? i : void 0;
|
|
2709
|
+
}, S = () => !e.columns.length || !e.columns.some((u) => u.headerStyle && u.headerStyle.includes("width")) ? null : t("colgroup", e.columns.map((u) => {
|
|
2710
|
+
if (!u.headerStyle) return t("col");
|
|
2711
|
+
const o = u.headerStyle.match(/width\s*:\s*([^;]+)/i);
|
|
2712
|
+
return t("col", { style: o ? { width: o[1].trim() } : void 0 });
|
|
2713
|
+
})), p = () => {
|
|
2714
|
+
if (!e.columns.length) return null;
|
|
2715
|
+
const u = e.columns.map((o) => {
|
|
2716
|
+
const i = s(o), v = d(o);
|
|
2717
|
+
return t("th", {
|
|
2718
|
+
scope: "col",
|
|
2719
|
+
class: v,
|
|
2720
|
+
style: i
|
|
2721
|
+
}, o.label);
|
|
2722
|
+
});
|
|
2723
|
+
return t("thead", [t("tr", u)]);
|
|
2724
|
+
}, C = (u, o) => typeof o.field == "function" ? o.field(u) : u[o.field], y = () => {
|
|
2725
|
+
if (!e.rows.length) return t("tbody", [t("tr", [t("td", {
|
|
2726
|
+
colspan: e.columns.length || 1,
|
|
2727
|
+
class: "text-center"
|
|
2728
|
+
}, r["no-data"] ? r["no-data"]() : "데이터가 없습니다.")])]);
|
|
2729
|
+
const u = e.rows.map((o, i) => {
|
|
2730
|
+
const v = e.columns.map((m, K) => {
|
|
2731
|
+
const b = C(o, m), w = typeof b == "function" ? b() : b, x = h(o, m), L = f(o, m);
|
|
2732
|
+
return t(K === 0 ? "th" : "td", {
|
|
2733
|
+
scope: K === 0 ? "row" : void 0,
|
|
2734
|
+
class: L,
|
|
2735
|
+
style: x
|
|
2736
|
+
}, w);
|
|
2737
|
+
});
|
|
2738
|
+
return t("tr", { onClick: () => k(o, i) }, v);
|
|
2739
|
+
});
|
|
2740
|
+
return t("tbody", u);
|
|
2741
|
+
}, k = (u, o) => {
|
|
2742
|
+
l("row-click", u, o);
|
|
2610
2743
|
};
|
|
2611
|
-
return () => t("div", { class:
|
|
2744
|
+
return () => t("div", { class: n.value }, [t("table", { class: a.value }, [
|
|
2612
2745
|
e.caption && t("caption", e.caption),
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2746
|
+
S(),
|
|
2747
|
+
p(),
|
|
2748
|
+
y()
|
|
2616
2749
|
])]);
|
|
2617
2750
|
}
|
|
2618
|
-
}),
|
|
2751
|
+
}), jt = Ot, Wt = D({
|
|
2619
2752
|
name: "KrdsHeader",
|
|
2620
2753
|
props: {
|
|
2621
2754
|
id: {
|
|
@@ -2632,29 +2765,29 @@ var Pt = B({
|
|
|
2632
2765
|
}
|
|
2633
2766
|
},
|
|
2634
2767
|
slots: Object,
|
|
2635
|
-
setup(e, { slots:
|
|
2636
|
-
const
|
|
2637
|
-
const
|
|
2638
|
-
return e.class &&
|
|
2768
|
+
setup(e, { slots: l }) {
|
|
2769
|
+
const r = g(() => {
|
|
2770
|
+
const a = [];
|
|
2771
|
+
return e.class && a.push(e.class), a;
|
|
2639
2772
|
});
|
|
2640
2773
|
return () => {
|
|
2641
|
-
const
|
|
2642
|
-
if (
|
|
2643
|
-
const
|
|
2644
|
-
|
|
2774
|
+
const a = [];
|
|
2775
|
+
if (l.utility || l.branding) {
|
|
2776
|
+
const s = [];
|
|
2777
|
+
l.utility && s.push(t("div", { class: "header-utility" }, l.utility())), l.branding && s.push(t("div", { class: "header-branding" }, l.branding())), a.push(t("div", { class: "header-container" }, [t("div", { class: "inner" }, s)]));
|
|
2645
2778
|
}
|
|
2646
|
-
|
|
2647
|
-
const
|
|
2648
|
-
return
|
|
2779
|
+
l.navigation && a.push(t("nav", { class: "krds-main-menu" }, [t("div", { class: "inner" }, l.navigation())]));
|
|
2780
|
+
const n = [t("div", { class: "header-in" }, a)];
|
|
2781
|
+
return l.mobileNavigation && n.push(t("div", {
|
|
2649
2782
|
id: e.mobileNavId,
|
|
2650
2783
|
class: "krds-main-menu-mobile"
|
|
2651
|
-
},
|
|
2784
|
+
}, l.mobileNavigation())), t("header", {
|
|
2652
2785
|
id: e.id,
|
|
2653
|
-
class:
|
|
2654
|
-
},
|
|
2786
|
+
class: r.value
|
|
2787
|
+
}, n);
|
|
2655
2788
|
};
|
|
2656
2789
|
}
|
|
2657
|
-
}),
|
|
2790
|
+
}), Gt = Wt, Yt = D({
|
|
2658
2791
|
name: "KrdsFooter",
|
|
2659
2792
|
props: {
|
|
2660
2793
|
id: {
|
|
@@ -2666,22 +2799,22 @@ var Pt = B({
|
|
|
2666
2799
|
default: void 0
|
|
2667
2800
|
}
|
|
2668
2801
|
},
|
|
2669
|
-
setup(e, { slots:
|
|
2670
|
-
const
|
|
2671
|
-
const
|
|
2672
|
-
return e.class &&
|
|
2673
|
-
}),
|
|
2802
|
+
setup(e, { slots: l }) {
|
|
2803
|
+
const r = g(() => {
|
|
2804
|
+
const h = [];
|
|
2805
|
+
return e.class && h.push(e.class), h;
|
|
2806
|
+
}), a = () => l.top ? t("div", { class: "foot-quick" }, [t("div", { class: "inner" }, l.top())]) : null, n = () => l.logo ? t("div", { class: "f-logo" }, l.logo()) : null, s = () => l.content ? t("div", { class: "f-cnt" }, l.content()) : null, d = () => l.bottom ? t("div", { class: "f-btm" }, l.bottom()) : null;
|
|
2674
2807
|
return () => {
|
|
2675
|
-
const
|
|
2676
|
-
f &&
|
|
2677
|
-
const
|
|
2678
|
-
return
|
|
2808
|
+
const h = a(), f = n(), S = s(), p = d(), C = [];
|
|
2809
|
+
f && C.push(f), S && C.push(S), p && C.push(p);
|
|
2810
|
+
const y = [];
|
|
2811
|
+
return h && y.push(h), C.length > 0 && y.push(t("div", { class: "inner" }, C)), t("footer", {
|
|
2679
2812
|
id: e.id,
|
|
2680
|
-
class:
|
|
2681
|
-
},
|
|
2813
|
+
class: r.value
|
|
2814
|
+
}, y);
|
|
2682
2815
|
};
|
|
2683
2816
|
}
|
|
2684
|
-
}),
|
|
2817
|
+
}), Ut = Yt, Xt = D({
|
|
2685
2818
|
name: "KrdsDisclosure",
|
|
2686
2819
|
props: {
|
|
2687
2820
|
title: {
|
|
@@ -2694,27 +2827,27 @@ var Pt = B({
|
|
|
2694
2827
|
}
|
|
2695
2828
|
},
|
|
2696
2829
|
emits: ["update:modelValue"],
|
|
2697
|
-
setup(e, { emit:
|
|
2698
|
-
const
|
|
2699
|
-
|
|
2830
|
+
setup(e, { emit: l, slots: r }) {
|
|
2831
|
+
const a = `disclosure-${O()}`, n = g(() => e.modelValue), s = () => {
|
|
2832
|
+
l("update:modelValue", !e.modelValue);
|
|
2700
2833
|
};
|
|
2701
2834
|
return () => t("div", { class: [
|
|
2702
2835
|
"krds-disclosure",
|
|
2703
2836
|
"conts-expand-area",
|
|
2704
|
-
|
|
2837
|
+
n.value && "active"
|
|
2705
2838
|
] }, [t("button", {
|
|
2706
2839
|
type: "button",
|
|
2707
2840
|
class: "btn-conts-expand",
|
|
2708
|
-
onClick:
|
|
2709
|
-
"aria-expanded":
|
|
2710
|
-
"aria-controls":
|
|
2841
|
+
onClick: s,
|
|
2842
|
+
"aria-expanded": n.value,
|
|
2843
|
+
"aria-controls": a
|
|
2711
2844
|
}, e.title), t("div", {
|
|
2712
|
-
id:
|
|
2845
|
+
id: a,
|
|
2713
2846
|
class: "expand-wrap",
|
|
2714
|
-
inert: !
|
|
2715
|
-
}, [t("div", { class: "expand-in" },
|
|
2847
|
+
inert: !n.value
|
|
2848
|
+
}, [t("div", { class: "expand-in" }, r.default?.())])]);
|
|
2716
2849
|
}
|
|
2717
|
-
}),
|
|
2850
|
+
}), Jt = Xt, Qt = D({
|
|
2718
2851
|
name: "KrdsIdentifier",
|
|
2719
2852
|
props: {
|
|
2720
2853
|
class: {
|
|
@@ -2727,19 +2860,19 @@ var Pt = B({
|
|
|
2727
2860
|
}
|
|
2728
2861
|
},
|
|
2729
2862
|
emits: ["click"],
|
|
2730
|
-
setup(e, { emit:
|
|
2731
|
-
const
|
|
2732
|
-
const
|
|
2733
|
-
return e.class &&
|
|
2734
|
-
}),
|
|
2735
|
-
|
|
2863
|
+
setup(e, { emit: l, slots: r }) {
|
|
2864
|
+
const a = g(() => {
|
|
2865
|
+
const s = ["krds-identifier"];
|
|
2866
|
+
return e.class && s.push(e.class), s;
|
|
2867
|
+
}), n = (s) => {
|
|
2868
|
+
l("click", s);
|
|
2736
2869
|
};
|
|
2737
2870
|
return () => t("div", {
|
|
2738
|
-
class:
|
|
2739
|
-
onClick:
|
|
2740
|
-
}, [t("span", { class: "logo" }, [t("span", { class: "sr-only" }, e.logoLabel)]), t("span", { class: "ban-txt" },
|
|
2871
|
+
class: a.value,
|
|
2872
|
+
onClick: n
|
|
2873
|
+
}, [t("span", { class: "logo" }, [t("span", { class: "sr-only" }, e.logoLabel)]), t("span", { class: "ban-txt" }, r.default?.())]);
|
|
2741
2874
|
}
|
|
2742
|
-
}),
|
|
2875
|
+
}), Zt = Qt, ea = 50, ta = D({
|
|
2743
2876
|
name: "KrdsLayout",
|
|
2744
2877
|
props: {
|
|
2745
2878
|
id: {
|
|
@@ -2760,46 +2893,46 @@ var Pt = B({
|
|
|
2760
2893
|
scroll: (e) => !0,
|
|
2761
2894
|
"scroll-height": (e) => !0
|
|
2762
2895
|
},
|
|
2763
|
-
setup(e, { slots:
|
|
2764
|
-
const
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
},
|
|
2768
|
-
if (!
|
|
2769
|
-
const
|
|
2770
|
-
if (!
|
|
2771
|
-
const
|
|
2772
|
-
|
|
2773
|
-
},
|
|
2774
|
-
|
|
2775
|
-
scrollY:
|
|
2776
|
-
scrollHeight:
|
|
2777
|
-
direction:
|
|
2896
|
+
setup(e, { slots: l, emit: r }) {
|
|
2897
|
+
const a = _(0), n = _(0), s = _(0), d = _(null), h = _(null), f = _(null), S = () => {
|
|
2898
|
+
const u = n.value;
|
|
2899
|
+
a.value = window.scrollY, n.value = document.body.scrollHeight, u !== n.value && u > 0 && r("scroll-height", n.value);
|
|
2900
|
+
}, p = () => {
|
|
2901
|
+
if (!h.value || !e.enableScrollDetection) return;
|
|
2902
|
+
const u = document.querySelector("#container");
|
|
2903
|
+
if (!u) return;
|
|
2904
|
+
const o = u.offsetTop, i = window.scrollY, v = i > s.value, m = i < s.value;
|
|
2905
|
+
i > o + ea ? v ? (h.value.classList.add("scroll-down"), h.value.classList.remove("scroll-up"), d.value = "down") : m && (h.value.classList.add("scroll-up"), h.value.classList.remove("scroll-down"), d.value = "up") : (h.value.classList.remove("scroll-down", "scroll-up"), d.value = null), s.value = i;
|
|
2906
|
+
}, C = () => {
|
|
2907
|
+
S(), p(), r("scroll", {
|
|
2908
|
+
scrollY: a.value,
|
|
2909
|
+
scrollHeight: n.value,
|
|
2910
|
+
direction: d.value,
|
|
2778
2911
|
timestamp: Date.now()
|
|
2779
2912
|
});
|
|
2780
|
-
},
|
|
2781
|
-
for (const
|
|
2782
|
-
const { width:
|
|
2783
|
-
|
|
2784
|
-
width:
|
|
2785
|
-
height:
|
|
2913
|
+
}, y = (u) => {
|
|
2914
|
+
for (const o of u) {
|
|
2915
|
+
const { width: i, height: v } = o.contentRect;
|
|
2916
|
+
r("resize", {
|
|
2917
|
+
width: i,
|
|
2918
|
+
height: v
|
|
2786
2919
|
});
|
|
2787
2920
|
}
|
|
2788
|
-
},
|
|
2789
|
-
const
|
|
2790
|
-
return e.class &&
|
|
2921
|
+
}, k = g(() => {
|
|
2922
|
+
const u = ["g-wrap"];
|
|
2923
|
+
return e.class && u.push(e.class), u;
|
|
2791
2924
|
});
|
|
2792
|
-
return
|
|
2793
|
-
e.enableScrollDetection && (
|
|
2794
|
-
}),
|
|
2795
|
-
e.enableScrollDetection && window.removeEventListener("scroll",
|
|
2925
|
+
return N(() => {
|
|
2926
|
+
e.enableScrollDetection && (S(), window.addEventListener("scroll", C, { passive: !0 })), h.value && typeof ResizeObserver < "u" && (f.value = new ResizeObserver(y), f.value.observe(h.value));
|
|
2927
|
+
}), q(() => {
|
|
2928
|
+
e.enableScrollDetection && window.removeEventListener("scroll", C), f.value && (f.value.disconnect(), f.value = null);
|
|
2796
2929
|
}), () => t("div", {
|
|
2797
2930
|
id: e.id,
|
|
2798
|
-
class:
|
|
2799
|
-
ref:
|
|
2800
|
-
},
|
|
2931
|
+
class: k.value,
|
|
2932
|
+
ref: h
|
|
2933
|
+
}, l.default?.());
|
|
2801
2934
|
}
|
|
2802
|
-
}),
|
|
2935
|
+
}), aa = ta, la = D({
|
|
2803
2936
|
name: "KrdsSideNavigation",
|
|
2804
2937
|
props: {
|
|
2805
2938
|
title: {
|
|
@@ -2812,158 +2945,161 @@ var Pt = B({
|
|
|
2812
2945
|
}
|
|
2813
2946
|
},
|
|
2814
2947
|
emits: ["update:modelValue"],
|
|
2815
|
-
setup(e, { emit:
|
|
2816
|
-
const
|
|
2817
|
-
const x = `${
|
|
2818
|
-
|
|
2819
|
-
}, f = (
|
|
2820
|
-
const x = `${
|
|
2821
|
-
|
|
2822
|
-
},
|
|
2823
|
-
const x = `${
|
|
2824
|
-
|
|
2825
|
-
},
|
|
2826
|
-
|
|
2827
|
-
if (
|
|
2828
|
-
const x =
|
|
2829
|
-
...
|
|
2830
|
-
expanded: !
|
|
2948
|
+
setup(e, { emit: l }) {
|
|
2949
|
+
const r = g(() => e.modelValue || []), a = _(/* @__PURE__ */ new Map()), n = _(/* @__PURE__ */ new Map()), s = _(/* @__PURE__ */ new Map()), d = _(null), h = (K, b, w) => {
|
|
2950
|
+
const x = `${b}-${w}`;
|
|
2951
|
+
K ? a.value.set(x, K) : a.value.delete(x);
|
|
2952
|
+
}, f = (K, b, w) => {
|
|
2953
|
+
const x = `${b}-${w}`;
|
|
2954
|
+
K ? n.value.set(x, K) : n.value.delete(x);
|
|
2955
|
+
}, S = (K, b, w) => {
|
|
2956
|
+
const x = `${b}-${w}`;
|
|
2957
|
+
K ? s.value.set(x, K) : s.value.delete(x);
|
|
2958
|
+
}, p = (K) => {
|
|
2959
|
+
l("update:modelValue", r.value.map((b, w) => {
|
|
2960
|
+
if (w === K && b.subItems) {
|
|
2961
|
+
const x = b.expanded, L = {
|
|
2962
|
+
...b,
|
|
2963
|
+
expanded: !b.expanded
|
|
2831
2964
|
};
|
|
2832
|
-
return x &&
|
|
2833
|
-
...
|
|
2965
|
+
return x && !L.expanded && (L.subItems = b.subItems.map((c) => ({
|
|
2966
|
+
...c,
|
|
2834
2967
|
expanded: !1
|
|
2835
|
-
})),
|
|
2968
|
+
})), d.value = null), L;
|
|
2836
2969
|
}
|
|
2837
|
-
return
|
|
2970
|
+
return b;
|
|
2838
2971
|
}));
|
|
2839
|
-
},
|
|
2840
|
-
|
|
2841
|
-
...
|
|
2842
|
-
subItems:
|
|
2843
|
-
if (
|
|
2844
|
-
const
|
|
2845
|
-
|
|
2846
|
-
expanded:
|
|
2972
|
+
}, C = (K, b) => {
|
|
2973
|
+
l("update:modelValue", r.value.map((w, x) => x === K && w.subItems ? {
|
|
2974
|
+
...w,
|
|
2975
|
+
subItems: w.subItems.map((L, c) => {
|
|
2976
|
+
if (c === b && L.subItems) {
|
|
2977
|
+
const B = {
|
|
2978
|
+
...L,
|
|
2979
|
+
expanded: !L.expanded
|
|
2847
2980
|
};
|
|
2848
|
-
if (
|
|
2849
|
-
const
|
|
2850
|
-
|
|
2851
|
-
const
|
|
2852
|
-
|
|
2853
|
-
|
|
2981
|
+
if (B.expanded) {
|
|
2982
|
+
const V = `${K}-${b}`;
|
|
2983
|
+
d.value = a.value.get(V) || null;
|
|
2984
|
+
const I = n.value.get(V), E = s.value.get(V);
|
|
2985
|
+
I && E && I.addEventListener("transitionend", () => {
|
|
2986
|
+
E.focus();
|
|
2854
2987
|
}, { once: !0 });
|
|
2855
2988
|
}
|
|
2856
|
-
return
|
|
2989
|
+
return B;
|
|
2857
2990
|
}
|
|
2858
|
-
return
|
|
2991
|
+
return L;
|
|
2859
2992
|
})
|
|
2860
|
-
} :
|
|
2861
|
-
},
|
|
2862
|
-
|
|
2863
|
-
...
|
|
2864
|
-
subItems:
|
|
2865
|
-
if (
|
|
2866
|
-
if (
|
|
2867
|
-
const
|
|
2993
|
+
} : w));
|
|
2994
|
+
}, y = (K, b) => {
|
|
2995
|
+
l("update:modelValue", r.value.map((w, x) => x === K && w.subItems ? {
|
|
2996
|
+
...w,
|
|
2997
|
+
subItems: w.subItems.map((L, c) => {
|
|
2998
|
+
if (c === b && L.subItems && L.expanded) {
|
|
2999
|
+
if (d.value) {
|
|
3000
|
+
const B = d.value;
|
|
2868
3001
|
requestAnimationFrame(() => {
|
|
2869
|
-
|
|
2870
|
-
}),
|
|
3002
|
+
B.focus();
|
|
3003
|
+
}), d.value = null;
|
|
2871
3004
|
}
|
|
2872
3005
|
return {
|
|
2873
|
-
|
|
3006
|
+
...L,
|
|
2874
3007
|
expanded: !1
|
|
2875
3008
|
};
|
|
2876
3009
|
}
|
|
2877
|
-
return
|
|
3010
|
+
return L;
|
|
2878
3011
|
})
|
|
2879
|
-
} :
|
|
2880
|
-
},
|
|
2881
|
-
const x = `${
|
|
2882
|
-
|
|
2883
|
-
},
|
|
2884
|
-
|
|
2885
|
-
},
|
|
2886
|
-
|
|
2887
|
-
},
|
|
2888
|
-
key: `popup-item-${
|
|
3012
|
+
} : w));
|
|
3013
|
+
}, k = (K, b, w) => {
|
|
3014
|
+
const x = `${b}-${w}`, L = n.value.get(x);
|
|
3015
|
+
L && !L.contains(K.relatedTarget) && y(b, w);
|
|
3016
|
+
}, u = (K, b) => {
|
|
3017
|
+
y(K, b);
|
|
3018
|
+
}, o = (K, b) => {
|
|
3019
|
+
K.onClick && K.onClick(b);
|
|
3020
|
+
}, i = (K, b, w) => K.map((x, L) => t("li", {
|
|
3021
|
+
key: `popup-item-${b}-${w}-${L}`,
|
|
2889
3022
|
role: "none"
|
|
2890
3023
|
}, t("a", {
|
|
2891
3024
|
href: x.href || "#",
|
|
2892
3025
|
class: "lnb-btn",
|
|
2893
3026
|
role: "menuitem",
|
|
2894
|
-
onClick: (
|
|
2895
|
-
}, x.text))),
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
3027
|
+
onClick: (c) => o(x, c)
|
|
3028
|
+
}, x.text))), v = (K, b) => K.map((w, x) => {
|
|
3029
|
+
const L = `lnb-subitem-${b}-${x}`;
|
|
3030
|
+
return t("li", {
|
|
3031
|
+
key: L,
|
|
3032
|
+
class: ["lnb-subitem", { active: w.expanded }],
|
|
3033
|
+
role: "none"
|
|
3034
|
+
}, [w.subItems ? [t("button", {
|
|
3035
|
+
ref: (c) => h(c, b, x),
|
|
3036
|
+
type: "button",
|
|
3037
|
+
class: "lnb-btn lnb-toggle-popup",
|
|
3038
|
+
role: "menuitem",
|
|
3039
|
+
"aria-controls": `lnbmenu-${b}-${x}`,
|
|
3040
|
+
"aria-expanded": w.expanded ? "true" : "false",
|
|
3041
|
+
"aria-haspopup": "true",
|
|
3042
|
+
onClick: () => C(b, x)
|
|
3043
|
+
}, w.text), t("div", {
|
|
3044
|
+
ref: (c) => f(c, b, x),
|
|
3045
|
+
id: `lnbmenu-${b}-${x}`,
|
|
3046
|
+
class: ["lnb-submenu-lv2", { active: w.expanded }],
|
|
3047
|
+
role: "menu",
|
|
3048
|
+
onFocusout: (c) => k(c, b, x)
|
|
3049
|
+
}, [t("button", {
|
|
3050
|
+
ref: (c) => S(c, b, x),
|
|
3051
|
+
type: "button",
|
|
3052
|
+
class: "lnb-btn-tit",
|
|
3053
|
+
onClick: () => u(b, x)
|
|
3054
|
+
}, w.popupTitle || w.text), t("ul", {}, i(w.subItems || [], b, x))])] : t("a", {
|
|
3055
|
+
href: w.href || "#",
|
|
3056
|
+
class: ["lnb-btn", "lnb-link"],
|
|
3057
|
+
role: "menuitem",
|
|
3058
|
+
onClick: (c) => o(w, c)
|
|
3059
|
+
}, w.text)]);
|
|
3060
|
+
}), m = () => r.value.map((K, b) => t("li", {
|
|
3061
|
+
key: `lnb-item-${b}`,
|
|
3062
|
+
class: ["lnb-item", { active: K.expanded }],
|
|
2927
3063
|
role: "none"
|
|
2928
3064
|
}, [t("button", {
|
|
2929
3065
|
type: "button",
|
|
2930
3066
|
class: [
|
|
2931
3067
|
"lnb-btn",
|
|
2932
3068
|
"lnb-toggle",
|
|
2933
|
-
{ active:
|
|
3069
|
+
{ active: K.expanded }
|
|
2934
3070
|
],
|
|
2935
3071
|
role: "menuitem",
|
|
2936
|
-
"aria-controls": `lnbmenu-${
|
|
2937
|
-
"aria-expanded":
|
|
2938
|
-
onClick: () =>
|
|
2939
|
-
},
|
|
2940
|
-
id: `lnbmenu-${
|
|
3072
|
+
"aria-controls": `lnbmenu-${b}`,
|
|
3073
|
+
"aria-expanded": K.expanded ? "true" : "false",
|
|
3074
|
+
onClick: () => p(b)
|
|
3075
|
+
}, K.text), K.subItems ? t("div", { class: "lnb-submenu" }, [t("ul", {
|
|
3076
|
+
id: `lnbmenu-${b}`,
|
|
2941
3077
|
role: "menu"
|
|
2942
|
-
},
|
|
3078
|
+
}, v(K.subItems, b))]) : null]));
|
|
2943
3079
|
return () => t("nav", { class: "krds-side-navigation" }, [t("h2", { class: "lnb-tit" }, e.title), t("ul", {
|
|
2944
3080
|
class: "lnb-list",
|
|
2945
3081
|
role: "menubar"
|
|
2946
|
-
},
|
|
3082
|
+
}, m())]);
|
|
2947
3083
|
}
|
|
2948
|
-
}),
|
|
3084
|
+
}), na = la, sa = D({
|
|
2949
3085
|
name: "KrdsStructuredList",
|
|
2950
3086
|
props: { full: {
|
|
2951
3087
|
type: Boolean,
|
|
2952
3088
|
default: !0
|
|
2953
3089
|
} },
|
|
2954
3090
|
slots: Object,
|
|
2955
|
-
setup(e, { slots:
|
|
3091
|
+
setup(e, { slots: l }) {
|
|
2956
3092
|
return () => {
|
|
2957
|
-
const
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
3093
|
+
const r = l.cardTop?.(), a = l.cardBody?.(), n = l.cardBtm?.(), s = l.cardBtn?.(), d = t("li", { class: "structured-item" }, [t("div", { class: "in" }, [
|
|
3094
|
+
r && t("div", { class: "card-top" }, r),
|
|
3095
|
+
a && t("div", { class: "card-body" }, a),
|
|
3096
|
+
n && t("div", { class: "card-btm" }, n),
|
|
3097
|
+
s && t("div", { class: "card-btn" }, s)
|
|
2962
3098
|
].filter(Boolean))]);
|
|
2963
|
-
return t("ul", { class: ["krds-structured-list", e.full ? "type-full" : ""] }, [
|
|
3099
|
+
return t("ul", { class: ["krds-structured-list", e.full ? "type-full" : ""] }, [d]);
|
|
2964
3100
|
};
|
|
2965
3101
|
}
|
|
2966
|
-
}),
|
|
3102
|
+
}), ra = sa, ia = D({
|
|
2967
3103
|
name: "KrdsTextList",
|
|
2968
3104
|
props: {
|
|
2969
3105
|
type: {
|
|
@@ -2975,10 +3111,10 @@ var Pt = B({
|
|
|
2975
3111
|
default: "dash"
|
|
2976
3112
|
}
|
|
2977
3113
|
},
|
|
2978
|
-
setup(e, { slots:
|
|
2979
|
-
return () => t(e.type, { class: ["krds-info-list", e.variant] },
|
|
3114
|
+
setup(e, { slots: l }) {
|
|
3115
|
+
return () => t(e.type, { class: ["krds-info-list", e.variant] }, l.default?.());
|
|
2980
3116
|
}
|
|
2981
|
-
}),
|
|
3117
|
+
}), oa = ia, da = D({
|
|
2982
3118
|
name: "KrdsCriticalAlerts",
|
|
2983
3119
|
props: {
|
|
2984
3120
|
type: {
|
|
@@ -2999,148 +3135,131 @@ var Pt = B({
|
|
|
2999
3135
|
}
|
|
3000
3136
|
},
|
|
3001
3137
|
emits: ["link-click"],
|
|
3002
|
-
setup(e, { emit:
|
|
3003
|
-
const
|
|
3138
|
+
setup(e, { emit: l }) {
|
|
3139
|
+
const r = (n) => ({
|
|
3004
3140
|
danger: "긴급",
|
|
3005
3141
|
ok: "안전",
|
|
3006
3142
|
info: "안내"
|
|
3007
|
-
})[
|
|
3008
|
-
|
|
3143
|
+
})[n], a = (n) => {
|
|
3144
|
+
l("link-click", n);
|
|
3009
3145
|
};
|
|
3010
3146
|
return () => t("ul", { class: "krds-critical-alerts" }, [t("li", [t("div", { class: "critical-ban" }, [
|
|
3011
|
-
t("span", { class: ["critical-badge", e.type] },
|
|
3147
|
+
t("span", { class: ["critical-badge", e.type] }, r(e.type)),
|
|
3012
3148
|
t("p", { class: "critical-txt" }, e.message),
|
|
3013
3149
|
e.linkHref && t("a", {
|
|
3014
3150
|
href: e.linkHref,
|
|
3015
3151
|
class: "krds-btn medium link basic",
|
|
3016
|
-
onClick:
|
|
3152
|
+
onClick: a
|
|
3017
3153
|
}, [t("span", { class: "m-hide" }, e.linkText), t("i", { class: "svg-icon ico-angle right" })])
|
|
3018
3154
|
])])]);
|
|
3019
3155
|
}
|
|
3020
|
-
}),
|
|
3021
|
-
KrdsAccordionGroup: () =>
|
|
3022
|
-
KrdsAccordionItem: () =>
|
|
3023
|
-
KrdsBadge: () =>
|
|
3024
|
-
KrdsBreadcrumb: () =>
|
|
3025
|
-
KrdsButton: () =>
|
|
3026
|
-
KrdsButtonGroup: () =>
|
|
3027
|
-
KrdsCheckArea: () =>
|
|
3028
|
-
KrdsCheckbox: () =>
|
|
3029
|
-
KrdsCoachMark: () =>
|
|
3030
|
-
KrdsContextualHelp: () =>
|
|
3031
|
-
KrdsCriticalAlerts: () =>
|
|
3032
|
-
KrdsDateInput: () =>
|
|
3033
|
-
KrdsDisclosure: () =>
|
|
3034
|
-
KrdsFileUpload: () =>
|
|
3035
|
-
KrdsFooter: () =>
|
|
3036
|
-
KrdsFormGroup: () =>
|
|
3037
|
-
KrdsFormHint: () =>
|
|
3038
|
-
KrdsFormLabel: () =>
|
|
3039
|
-
KrdsHeader: () =>
|
|
3040
|
-
KrdsIcon: () =>
|
|
3041
|
-
KrdsIdentifier: () =>
|
|
3042
|
-
KrdsInPageNavigation: () =>
|
|
3043
|
-
KrdsInput: () =>
|
|
3044
|
-
KrdsLanguageSwitcher: () =>
|
|
3045
|
-
KrdsLayout: () =>
|
|
3046
|
-
KrdsLink: () =>
|
|
3047
|
-
KrdsMasthead: () =>
|
|
3048
|
-
KrdsModal: () =>
|
|
3049
|
-
KrdsPagination: () =>
|
|
3050
|
-
KrdsPanel: () =>
|
|
3051
|
-
KrdsRadio: () =>
|
|
3052
|
-
KrdsResize: () =>
|
|
3053
|
-
KrdsSelect: () =>
|
|
3054
|
-
KrdsSideNavigation: () =>
|
|
3055
|
-
KrdsSkipLink: () =>
|
|
3056
|
-
KrdsSpinner: () =>
|
|
3057
|
-
KrdsStep: () =>
|
|
3058
|
-
KrdsStepIndicator: () =>
|
|
3059
|
-
KrdsStructuredList: () =>
|
|
3060
|
-
KrdsTable: () =>
|
|
3061
|
-
KrdsTag: () =>
|
|
3062
|
-
KrdsTagGroup: () =>
|
|
3063
|
-
KrdsTextList: () =>
|
|
3064
|
-
KrdsTextarea: () =>
|
|
3065
|
-
KrdsToggleSwitch: () =>
|
|
3066
|
-
KrdsTooltip: () =>
|
|
3067
|
-
KrdsTts: () =>
|
|
3068
|
-
}), pe = {
|
|
3069
|
-
|
|
3070
|
-
a
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
},
|
|
3075
|
-
unmounted(e) {
|
|
3076
|
-
e.classList.remove("sr-only");
|
|
3077
|
-
}
|
|
3078
|
-
}, oe = /* @__PURE__ */ we({
|
|
3079
|
-
default: () => Se,
|
|
3080
|
-
directives: () => Se,
|
|
3081
|
-
installDirectives: () => $e,
|
|
3082
|
-
vSrOnly: () => pe
|
|
3083
|
-
}), Se = { "sr-only": pe }, $e = (e) => {
|
|
3084
|
-
e.directive("sr-only", pe);
|
|
3085
|
-
}, xe = "0.0.14", Ul = { install(e, a = {}) {
|
|
3086
|
-
e.provide("krds:config", a), (a.components || Object.keys(ke)).forEach((n) => {
|
|
3087
|
-
const l = ke[n];
|
|
3088
|
-
l && e.component(n, l);
|
|
3089
|
-
}), typeof oe == "object" && oe !== null && "installDirectives" in oe && $e(e), e.config.globalProperties.$krds = { version: xe };
|
|
3090
|
-
} }, Xl = xe;
|
|
3156
|
+
}), ua = da, de = /* @__PURE__ */ ce({
|
|
3157
|
+
KrdsAccordionGroup: () => Pt,
|
|
3158
|
+
KrdsAccordionItem: () => qt,
|
|
3159
|
+
KrdsBadge: () => Ue,
|
|
3160
|
+
KrdsBreadcrumb: () => bt,
|
|
3161
|
+
KrdsButton: () => Ce,
|
|
3162
|
+
KrdsButtonGroup: () => xe,
|
|
3163
|
+
KrdsCheckArea: () => rt,
|
|
3164
|
+
KrdsCheckbox: () => ot,
|
|
3165
|
+
KrdsCoachMark: () => Dt,
|
|
3166
|
+
KrdsContextualHelp: () => Bt,
|
|
3167
|
+
KrdsCriticalAlerts: () => ua,
|
|
3168
|
+
KrdsDateInput: () => Re,
|
|
3169
|
+
KrdsDisclosure: () => Jt,
|
|
3170
|
+
KrdsFileUpload: () => Ge,
|
|
3171
|
+
KrdsFooter: () => Ut,
|
|
3172
|
+
KrdsFormGroup: () => Ie,
|
|
3173
|
+
KrdsFormHint: () => Ee,
|
|
3174
|
+
KrdsFormLabel: () => Te,
|
|
3175
|
+
KrdsHeader: () => Gt,
|
|
3176
|
+
KrdsIcon: () => $e,
|
|
3177
|
+
KrdsIdentifier: () => Zt,
|
|
3178
|
+
KrdsInPageNavigation: () => St,
|
|
3179
|
+
KrdsInput: () => De,
|
|
3180
|
+
KrdsLanguageSwitcher: () => Et,
|
|
3181
|
+
KrdsLayout: () => aa,
|
|
3182
|
+
KrdsLink: () => Be,
|
|
3183
|
+
KrdsMasthead: () => tt,
|
|
3184
|
+
KrdsModal: () => Ft,
|
|
3185
|
+
KrdsPagination: () => wt,
|
|
3186
|
+
KrdsPanel: () => xt,
|
|
3187
|
+
KrdsRadio: () => ut,
|
|
3188
|
+
KrdsResize: () => It,
|
|
3189
|
+
KrdsSelect: () => Oe,
|
|
3190
|
+
KrdsSideNavigation: () => na,
|
|
3191
|
+
KrdsSkipLink: () => gt,
|
|
3192
|
+
KrdsSpinner: () => ct,
|
|
3193
|
+
KrdsStep: () => pt,
|
|
3194
|
+
KrdsStepIndicator: () => vt,
|
|
3195
|
+
KrdsStructuredList: () => ra,
|
|
3196
|
+
KrdsTable: () => jt,
|
|
3197
|
+
KrdsTag: () => Je,
|
|
3198
|
+
KrdsTagGroup: () => Ze,
|
|
3199
|
+
KrdsTextList: () => oa,
|
|
3200
|
+
KrdsTextarea: () => He,
|
|
3201
|
+
KrdsToggleSwitch: () => nt,
|
|
3202
|
+
KrdsTooltip: () => Tt,
|
|
3203
|
+
KrdsTts: () => Nt
|
|
3204
|
+
}), pe = "0.0.15", ha = { install(e, l = {}) {
|
|
3205
|
+
e.provide("krds:config", l), (l.components || Object.keys(de)).forEach((r) => {
|
|
3206
|
+
const a = de[r];
|
|
3207
|
+
a && e.component(r, a);
|
|
3208
|
+
}), typeof U == "object" && U !== null && "installDirectives" in U && he(e), e.config.globalProperties.$krds = { version: pe };
|
|
3209
|
+
} }, pa = pe;
|
|
3091
3210
|
export {
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3211
|
+
Pt as KrdsAccordionGroup,
|
|
3212
|
+
qt as KrdsAccordionItem,
|
|
3213
|
+
Ue as KrdsBadge,
|
|
3214
|
+
bt as KrdsBreadcrumb,
|
|
3215
|
+
Ce as KrdsButton,
|
|
3216
|
+
xe as KrdsButtonGroup,
|
|
3217
|
+
rt as KrdsCheckArea,
|
|
3218
|
+
ot as KrdsCheckbox,
|
|
3219
|
+
Dt as KrdsCoachMark,
|
|
3220
|
+
Bt as KrdsContextualHelp,
|
|
3221
|
+
ua as KrdsCriticalAlerts,
|
|
3222
|
+
Re as KrdsDateInput,
|
|
3223
|
+
Jt as KrdsDisclosure,
|
|
3224
|
+
Ge as KrdsFileUpload,
|
|
3225
|
+
Ut as KrdsFooter,
|
|
3226
|
+
Ie as KrdsFormGroup,
|
|
3227
|
+
Ee as KrdsFormHint,
|
|
3228
|
+
Te as KrdsFormLabel,
|
|
3229
|
+
Gt as KrdsHeader,
|
|
3230
|
+
$e as KrdsIcon,
|
|
3231
|
+
Zt as KrdsIdentifier,
|
|
3232
|
+
St as KrdsInPageNavigation,
|
|
3233
|
+
De as KrdsInput,
|
|
3234
|
+
Et as KrdsLanguageSwitcher,
|
|
3235
|
+
aa as KrdsLayout,
|
|
3236
|
+
Be as KrdsLink,
|
|
3237
|
+
tt as KrdsMasthead,
|
|
3238
|
+
Ft as KrdsModal,
|
|
3239
|
+
wt as KrdsPagination,
|
|
3240
|
+
xt as KrdsPanel,
|
|
3241
|
+
ut as KrdsRadio,
|
|
3242
|
+
It as KrdsResize,
|
|
3243
|
+
Oe as KrdsSelect,
|
|
3244
|
+
na as KrdsSideNavigation,
|
|
3245
|
+
gt as KrdsSkipLink,
|
|
3246
|
+
ct as KrdsSpinner,
|
|
3247
|
+
pt as KrdsStep,
|
|
3248
|
+
vt as KrdsStepIndicator,
|
|
3249
|
+
ra as KrdsStructuredList,
|
|
3250
|
+
jt as KrdsTable,
|
|
3251
|
+
Je as KrdsTag,
|
|
3252
|
+
Ze as KrdsTagGroup,
|
|
3253
|
+
oa as KrdsTextList,
|
|
3254
|
+
He as KrdsTextarea,
|
|
3255
|
+
nt as KrdsToggleSwitch,
|
|
3256
|
+
Tt as KrdsTooltip,
|
|
3257
|
+
Nt as KrdsTts,
|
|
3258
|
+
Z as classNames,
|
|
3259
|
+
ha as default,
|
|
3260
|
+
fa as generateId,
|
|
3261
|
+
va as generateUid,
|
|
3262
|
+
pa as version
|
|
3144
3263
|
};
|
|
3145
3264
|
|
|
3146
3265
|
//# sourceMappingURL=krds-vue.es.js.map
|