@krds.ui/vue 0.0.9 → 0.0.10
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/krds-vue.es.js +946 -820
- package/dist/krds-vue.es.js.map +1 -1
- package/dist/krds-vue.umd.js +1 -1
- package/dist/krds-vue.umd.js.map +1 -1
- package/dist/types/index.d.ts +89 -0
- package/package.json +12 -12
package/dist/krds-vue.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, computed as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as g, h as c, ref as K, onMounted as le, onBeforeUnmount as Se, createElementBlock as w, openBlock as k, createElementVNode as d, normalizeClass as I, withDirectives as Q, unref as P, toDisplayString as E, Fragment as F, renderList as N, vShow as te, createBlock as ie, withCtx as re, createTextVNode as A, watch as ae, provide as Ve, inject as ze, createCommentVNode as Y, onUnmounted as X, resolveDirective as Ee, resolveDynamicComponent as ye, renderSlot as J, normalizeStyle as ne, nextTick as we, withModifiers as de, getCurrentInstance as Ie, Teleport as Le } from "vue";
|
|
2
|
+
const Ce = B({
|
|
3
3
|
name: "KrdsButton",
|
|
4
4
|
props: {
|
|
5
5
|
type: {
|
|
@@ -41,13 +41,13 @@ const Se = B({
|
|
|
41
41
|
},
|
|
42
42
|
emits: ["click"],
|
|
43
43
|
setup(e, { emit: o, slots: s }) {
|
|
44
|
-
const n =
|
|
44
|
+
const n = g(() => {
|
|
45
45
|
const a = ["krds-btn"];
|
|
46
46
|
return e.icon && a.push("icon"), e.border && a.push("border"), e.pure && a.push("pure"), e.text && a.push("text"), e.variant && !e.icon && a.push(e.variant), e.size && a.push(e.size), e.class && a.push(e.class), a;
|
|
47
47
|
}), t = (a) => {
|
|
48
48
|
e.disabled || o("click", a);
|
|
49
49
|
};
|
|
50
|
-
return () =>
|
|
50
|
+
return () => c(
|
|
51
51
|
"button",
|
|
52
52
|
{
|
|
53
53
|
type: e.type,
|
|
@@ -58,11 +58,11 @@ const Se = B({
|
|
|
58
58
|
s.default?.()
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), Me = B({
|
|
62
62
|
name: "KrdsButtonGroup",
|
|
63
63
|
props: {},
|
|
64
64
|
setup(e, { slots: o }) {
|
|
65
|
-
return () =>
|
|
65
|
+
return () => c(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
68
|
class: "btn-group"
|
|
@@ -70,7 +70,7 @@ const Se = B({
|
|
|
70
70
|
o.default?.()
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
}),
|
|
73
|
+
}), Re = B({
|
|
74
74
|
name: "KrdsIcon",
|
|
75
75
|
props: {
|
|
76
76
|
name: {
|
|
@@ -83,11 +83,11 @@ const Se = B({
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
setup(e) {
|
|
86
|
-
return () =>
|
|
86
|
+
return () => c("i", {
|
|
87
87
|
class: ["svg-icon", e.name, e.class].filter(Boolean).join(" ")
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), Te = B({
|
|
91
91
|
name: "KrdsLink",
|
|
92
92
|
props: {
|
|
93
93
|
href: {
|
|
@@ -125,19 +125,19 @@ const Se = B({
|
|
|
125
125
|
},
|
|
126
126
|
emits: ["click"],
|
|
127
127
|
setup(e, { emit: o, slots: s }) {
|
|
128
|
-
const n =
|
|
129
|
-
const
|
|
130
|
-
return e.size &&
|
|
131
|
-
}), t =
|
|
132
|
-
const
|
|
128
|
+
const n = g(() => {
|
|
129
|
+
const r = ["krds-btn"];
|
|
130
|
+
return e.size && r.push(e.size), e.link && r.push("link"), e.basic && r.push("basic"), e.pure && r.push("pure"), e.class && r.push(e.class), r;
|
|
131
|
+
}), t = g(() => {
|
|
132
|
+
const r = {
|
|
133
133
|
href: e.href,
|
|
134
134
|
class: n.value
|
|
135
135
|
};
|
|
136
|
-
return e.target && (
|
|
137
|
-
}), a = (
|
|
138
|
-
o("click",
|
|
136
|
+
return e.target && (r.target = e.target), e.title && (r.title = e.title), e.target === "_blank" && (r.rel = "noopener noreferrer"), r;
|
|
137
|
+
}), a = (r) => {
|
|
138
|
+
o("click", r);
|
|
139
139
|
};
|
|
140
|
-
return () =>
|
|
140
|
+
return () => c(
|
|
141
141
|
"a",
|
|
142
142
|
{
|
|
143
143
|
...t.value,
|
|
@@ -146,7 +146,7 @@ const Se = B({
|
|
|
146
146
|
s.default?.()
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
149
|
+
}), xe = B({
|
|
150
150
|
name: "KrdsSpinner",
|
|
151
151
|
props: {
|
|
152
152
|
label: {
|
|
@@ -155,10 +155,10 @@ const Se = B({
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
render() {
|
|
158
|
-
const e = [
|
|
159
|
-
return this.label && e.push(
|
|
158
|
+
const e = [c("span", { class: "sr-only" }, "로딩 중")];
|
|
159
|
+
return this.label && e.push(c("span", this.label)), c("div", { class: "krds-spinner", role: "status" }, e);
|
|
160
160
|
}
|
|
161
|
-
}),
|
|
161
|
+
}), Pe = B({
|
|
162
162
|
name: "KrdsInput",
|
|
163
163
|
props: {
|
|
164
164
|
modelValue: {
|
|
@@ -248,24 +248,24 @@ const Se = B({
|
|
|
248
248
|
},
|
|
249
249
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
|
|
250
250
|
setup(e, { emit: o, slots: s }) {
|
|
251
|
-
const n =
|
|
252
|
-
const
|
|
253
|
-
return e.size &&
|
|
254
|
-
}), t = (
|
|
255
|
-
const D =
|
|
256
|
-
o("update:modelValue",
|
|
257
|
-
}, a = (
|
|
258
|
-
o("change",
|
|
259
|
-
},
|
|
260
|
-
o("focus",
|
|
261
|
-
},
|
|
262
|
-
o("blur",
|
|
263
|
-
},
|
|
264
|
-
o("keydown",
|
|
265
|
-
},
|
|
266
|
-
o("keyup",
|
|
267
|
-
},
|
|
268
|
-
const
|
|
251
|
+
const n = g(() => {
|
|
252
|
+
const b = ["krds-input"];
|
|
253
|
+
return e.size && b.push(e.size), e.class && b.push(e.class), b;
|
|
254
|
+
}), t = (b) => {
|
|
255
|
+
const D = b.target, m = e.type === "number" ? Number(D.value) : D.value;
|
|
256
|
+
o("update:modelValue", m), o("input", b);
|
|
257
|
+
}, a = (b) => {
|
|
258
|
+
o("change", b);
|
|
259
|
+
}, r = (b) => {
|
|
260
|
+
o("focus", b);
|
|
261
|
+
}, v = (b) => {
|
|
262
|
+
o("blur", b);
|
|
263
|
+
}, p = (b) => {
|
|
264
|
+
o("keydown", b);
|
|
265
|
+
}, h = (b) => {
|
|
266
|
+
o("keyup", b);
|
|
267
|
+
}, y = g(() => {
|
|
268
|
+
const b = {
|
|
269
269
|
type: e.type,
|
|
270
270
|
class: n.value,
|
|
271
271
|
value: e.modelValue,
|
|
@@ -279,22 +279,22 @@ const Se = B({
|
|
|
279
279
|
autofocus: e.autofocus,
|
|
280
280
|
onInput: t,
|
|
281
281
|
onChange: a,
|
|
282
|
-
onFocus:
|
|
283
|
-
onBlur:
|
|
284
|
-
onKeydown:
|
|
285
|
-
onKeyup:
|
|
282
|
+
onFocus: r,
|
|
283
|
+
onBlur: v,
|
|
284
|
+
onKeydown: p,
|
|
285
|
+
onKeyup: h
|
|
286
286
|
};
|
|
287
|
-
return e.maxlength !== void 0 && (
|
|
288
|
-
}),
|
|
289
|
-
const
|
|
290
|
-
return e.state !== "default" &&
|
|
287
|
+
return e.maxlength !== void 0 && (b.maxlength = e.maxlength), e.minlength !== void 0 && (b.minlength = e.minlength), e.type === "number" && (e.max !== void 0 && (b.max = e.max), e.min !== void 0 && (b.min = e.min), e.step !== void 0 && (b.step = e.step)), b;
|
|
288
|
+
}), S = g(() => {
|
|
289
|
+
const b = ["form-conts"];
|
|
290
|
+
return e.state !== "default" && b.push(`is-${e.state}`), e.icon && b.push("btn-ico-wrap"), b;
|
|
291
291
|
});
|
|
292
292
|
return () => {
|
|
293
|
-
const
|
|
294
|
-
return e.loading ?
|
|
293
|
+
const b = [c("input", y.value)];
|
|
294
|
+
return e.loading ? c("div", { class: S.value }, [c("div", { class: "form-spinner" }, [...b, c(xe)])]) : (s.default && b.push(...s.default()), c("div", { class: S.value }, b));
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}),
|
|
297
|
+
}), Ae = B({
|
|
298
298
|
name: "KrdsFormLabel",
|
|
299
299
|
props: {
|
|
300
300
|
for: {
|
|
@@ -319,8 +319,8 @@ const Se = B({
|
|
|
319
319
|
const n = (t) => {
|
|
320
320
|
o("click", t);
|
|
321
321
|
};
|
|
322
|
-
return () =>
|
|
323
|
-
|
|
322
|
+
return () => c("div", { class: "form-tit" }, [
|
|
323
|
+
c(
|
|
324
324
|
"label",
|
|
325
325
|
{
|
|
326
326
|
for: e.for,
|
|
@@ -333,7 +333,7 @@ const Se = B({
|
|
|
333
333
|
)
|
|
334
334
|
]);
|
|
335
335
|
}
|
|
336
|
-
}),
|
|
336
|
+
}), Fe = B({
|
|
337
337
|
name: "KrdsFormHint",
|
|
338
338
|
props: {
|
|
339
339
|
type: {
|
|
@@ -375,7 +375,7 @@ const Se = B({
|
|
|
375
375
|
}
|
|
376
376
|
return e.class ? `${a} ${e.class}` : a;
|
|
377
377
|
};
|
|
378
|
-
return () =>
|
|
378
|
+
return () => c(
|
|
379
379
|
"p",
|
|
380
380
|
{
|
|
381
381
|
id: e.id,
|
|
@@ -386,7 +386,7 @@ const Se = B({
|
|
|
386
386
|
s.default?.()
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
|
-
}),
|
|
389
|
+
}), Oe = B({
|
|
390
390
|
name: "KrdsFormGroup",
|
|
391
391
|
props: {
|
|
392
392
|
class: {
|
|
@@ -403,11 +403,11 @@ const Se = B({
|
|
|
403
403
|
}
|
|
404
404
|
},
|
|
405
405
|
setup(e, { slots: o }) {
|
|
406
|
-
const s =
|
|
406
|
+
const s = g(() => {
|
|
407
407
|
const n = ["form-group"];
|
|
408
408
|
return e.class && n.push(e.class), n;
|
|
409
409
|
});
|
|
410
|
-
return () =>
|
|
410
|
+
return () => c(
|
|
411
411
|
"div",
|
|
412
412
|
{
|
|
413
413
|
id: e.id,
|
|
@@ -418,26 +418,26 @@ const Se = B({
|
|
|
418
418
|
);
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
|
-
function
|
|
422
|
-
const s = /* @__PURE__ */ new Date(), n = K(e || s.getFullYear()), t = K(o || s.getMonth() + 1), a = K(null),
|
|
423
|
-
const
|
|
424
|
-
for (let f =
|
|
425
|
-
|
|
426
|
-
return
|
|
427
|
-
}),
|
|
428
|
-
a.value = null,
|
|
429
|
-
},
|
|
421
|
+
function qe(e, o) {
|
|
422
|
+
const s = /* @__PURE__ */ new Date(), n = K(e || s.getFullYear()), t = K(o || s.getMonth() + 1), a = K(null), r = K(null), v = K(null), p = g(() => {
|
|
423
|
+
const u = s.getFullYear(), i = [];
|
|
424
|
+
for (let f = u - 10; f <= u + 10; f++)
|
|
425
|
+
i.push(f);
|
|
426
|
+
return i;
|
|
427
|
+
}), h = g(() => Array.from({ length: 12 }, (u, i) => i + 1)), y = () => {
|
|
428
|
+
a.value = null, r.value = null;
|
|
429
|
+
}, S = () => {
|
|
430
430
|
t.value === 1 ? (t.value = 12, n.value -= 1) : t.value -= 1;
|
|
431
|
-
},
|
|
431
|
+
}, b = () => {
|
|
432
432
|
t.value === 12 ? (t.value = 1, n.value += 1) : t.value += 1;
|
|
433
|
-
}, D = (
|
|
434
|
-
if (
|
|
435
|
-
a.value =
|
|
436
|
-
else if (!a.value || a.value &&
|
|
437
|
-
a.value =
|
|
433
|
+
}, D = (u, i = !1) => {
|
|
434
|
+
if (i)
|
|
435
|
+
a.value = u, r.value = u;
|
|
436
|
+
else if (!a.value || a.value && r.value)
|
|
437
|
+
a.value = u, r.value = null;
|
|
438
438
|
else {
|
|
439
439
|
const f = new Date(a.value.replace(/\./g, "-"));
|
|
440
|
-
new Date(
|
|
440
|
+
new Date(u.replace(/\./g, "-")) < f ? (a.value = u, r.value = null) : r.value = u;
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
443
|
return {
|
|
@@ -445,51 +445,51 @@ function Fe(e, o) {
|
|
|
445
445
|
currentYear: n,
|
|
446
446
|
currentMonth: t,
|
|
447
447
|
selectedStartDate: a,
|
|
448
|
-
selectedEndDate:
|
|
449
|
-
activeDateSelector:
|
|
448
|
+
selectedEndDate: r,
|
|
449
|
+
activeDateSelector: v,
|
|
450
450
|
// Computed
|
|
451
|
-
yearOptions:
|
|
452
|
-
monthOptions:
|
|
451
|
+
yearOptions: p,
|
|
452
|
+
monthOptions: h,
|
|
453
453
|
// Methods
|
|
454
|
-
clearDateSelection:
|
|
455
|
-
prevMonth:
|
|
456
|
-
nextMonth:
|
|
454
|
+
clearDateSelection: y,
|
|
455
|
+
prevMonth: S,
|
|
456
|
+
nextMonth: b,
|
|
457
457
|
handleDateSelection: D,
|
|
458
458
|
selectToday: () => {
|
|
459
|
-
const
|
|
460
|
-
D(
|
|
459
|
+
const u = `${s.getFullYear()}.${String(s.getMonth() + 1).padStart(2, "0")}.${String(s.getDate()).padStart(2, "0")}`;
|
|
460
|
+
D(u, !0);
|
|
461
461
|
},
|
|
462
|
-
isDateInSelectedRange: (
|
|
463
|
-
if (!a.value || !
|
|
462
|
+
isDateInSelectedRange: (u) => {
|
|
463
|
+
if (!a.value || !r.value)
|
|
464
464
|
return { isInRange: !1, isStart: !1, isEnd: !1 };
|
|
465
|
-
const
|
|
466
|
-
return { isInRange:
|
|
465
|
+
const i = new Date(u.replace(/\./g, "-")), f = new Date(a.value.replace(/\./g, "-")), x = new Date(r.value.replace(/\./g, "-")), R = u === a.value, L = u === r.value;
|
|
466
|
+
return { isInRange: i >= f && i <= x, isStart: R, isEnd: L };
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ne(e, o, s = {}) {
|
|
471
471
|
let n = null;
|
|
472
|
-
const t = typeof s == "string" ? { ignore: s } : s, { ignore: a, event:
|
|
473
|
-
n = (
|
|
474
|
-
const
|
|
475
|
-
e.value?.contains(
|
|
476
|
-
}, document.addEventListener(
|
|
477
|
-
},
|
|
472
|
+
const t = typeof s == "string" ? { ignore: s } : s, { ignore: a, event: r = "click" } = t, v = () => {
|
|
473
|
+
n = (h) => {
|
|
474
|
+
const y = h.target;
|
|
475
|
+
e.value?.contains(y) || a && y.closest(a) || o();
|
|
476
|
+
}, document.addEventListener(r, n);
|
|
477
|
+
}, p = () => {
|
|
478
478
|
if (n) {
|
|
479
|
-
const
|
|
480
|
-
document.removeEventListener(
|
|
479
|
+
const h = typeof s == "string" ? "click" : s.event || "click";
|
|
480
|
+
document.removeEventListener(h, n), n = null;
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
return le(() => {
|
|
484
|
-
|
|
485
|
-
}),
|
|
486
|
-
|
|
484
|
+
v();
|
|
485
|
+
}), Se(() => {
|
|
486
|
+
p();
|
|
487
487
|
}), {
|
|
488
|
-
setupGlobalListeners:
|
|
489
|
-
removeGlobalListeners:
|
|
488
|
+
setupGlobalListeners: v,
|
|
489
|
+
removeGlobalListeners: p
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
const
|
|
492
|
+
const He = { class: "form-conts" }, je = { class: "calendar-input" }, We = ["id", "name", "placeholder", "value", "readonly", "disabled", "required", "autofocus"], Ye = ["disabled", "aria-expanded"], Ge = { class: "calendar-head" }, Ue = { class: "calendar-switch-wrap" }, Xe = { class: "calendar-drop-down" }, Je = ["aria-expanded"], Qe = { class: "calendar-select calendar-year-wrap" }, Ze = { class: "sel year" }, et = ["onClick"], tt = { class: "calendar-drop-down" }, lt = ["aria-expanded"], at = { class: "calendar-select calendar-mon-wrap" }, nt = { class: "sel month" }, st = ["onClick"], ot = { class: "calendar-body" }, it = { class: "calendar-table-wrap" }, rt = { class: "calendar-tbl" }, dt = ["data-date"], ut = ["aria-pressed", "onClick"], ct = { class: "calendar-footer" }, ft = { class: "calendar-btn-wrap" }, vt = /* @__PURE__ */ B({
|
|
493
493
|
__name: "KrdsDateInput",
|
|
494
494
|
props: {
|
|
495
495
|
modelValue: { default: void 0 },
|
|
@@ -510,65 +510,65 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
510
510
|
},
|
|
511
511
|
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
512
512
|
setup(e, { emit: o }) {
|
|
513
|
-
const s = e, n = o, t = K(), a = K(),
|
|
514
|
-
currentYear:
|
|
515
|
-
currentMonth:
|
|
516
|
-
selectedStartDate:
|
|
517
|
-
selectedEndDate:
|
|
518
|
-
yearOptions:
|
|
513
|
+
const s = e, n = o, t = K(), a = K(), r = K(!1), v = K(null), {
|
|
514
|
+
currentYear: p,
|
|
515
|
+
currentMonth: h,
|
|
516
|
+
selectedStartDate: y,
|
|
517
|
+
selectedEndDate: S,
|
|
518
|
+
yearOptions: b,
|
|
519
519
|
monthOptions: D,
|
|
520
|
-
prevMonth:
|
|
520
|
+
prevMonth: m,
|
|
521
521
|
nextMonth: l,
|
|
522
|
-
handleDateSelection:
|
|
523
|
-
selectToday:
|
|
522
|
+
handleDateSelection: u,
|
|
523
|
+
selectToday: i,
|
|
524
524
|
isDateInSelectedRange: f
|
|
525
|
-
} =
|
|
526
|
-
|
|
525
|
+
} = qe(s.initialYear, s.initialMonth), x = () => {
|
|
526
|
+
r.value && a.value?.focus(), r.value = !1, v.value = null;
|
|
527
527
|
};
|
|
528
|
-
|
|
529
|
-
const R =
|
|
530
|
-
const
|
|
531
|
-
return s.size &&
|
|
532
|
-
}),
|
|
528
|
+
Ne(t, x, ".calendar-conts");
|
|
529
|
+
const R = g(() => {
|
|
530
|
+
const C = ["krds-input", "datepicker", "cal"];
|
|
531
|
+
return s.size && C.push(s.size), s.class && C.push(s.class), C;
|
|
532
|
+
}), L = g(() => ["form-conts", "calendar-conts"]), M = g(() => ({
|
|
533
533
|
"krds-calendar-area": !0,
|
|
534
|
-
active:
|
|
535
|
-
})), z =
|
|
536
|
-
const
|
|
534
|
+
active: r.value
|
|
535
|
+
})), z = g(() => {
|
|
536
|
+
const C = p.value, _ = h.value, $ = new Date(C, _ - 1, 1), G = new Date($);
|
|
537
537
|
G.setDate(G.getDate() - $.getDay());
|
|
538
538
|
const W = [], T = new Date(G);
|
|
539
|
-
for (let
|
|
539
|
+
for (let oe = 0; oe < 6; oe++) {
|
|
540
540
|
const pe = [];
|
|
541
|
-
for (let
|
|
542
|
-
const
|
|
541
|
+
for (let me = 0; me < 7; me++) {
|
|
542
|
+
const De = `${T.getFullYear()}.${String(T.getMonth() + 1).padStart(2, "0")}.${String(T.getDate()).padStart(2, "0")}`, he = T.getDay();
|
|
543
543
|
pe.push({
|
|
544
544
|
day: T.getDate(),
|
|
545
|
-
dateString:
|
|
546
|
-
isCurrentMonth: T.getMonth() ===
|
|
545
|
+
dateString: De,
|
|
546
|
+
isCurrentMonth: T.getMonth() === _ - 1,
|
|
547
547
|
isToday: T.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
|
|
548
|
-
isPrevMonth: T.getMonth() <
|
|
549
|
-
isNextMonth: T.getMonth() >
|
|
550
|
-
isSunday:
|
|
551
|
-
isSaturday:
|
|
548
|
+
isPrevMonth: T.getMonth() < _ - 1 || T.getMonth() === 11 && _ === 1,
|
|
549
|
+
isNextMonth: T.getMonth() > _ - 1 || T.getMonth() === 0 && _ === 12,
|
|
550
|
+
isSunday: he === 0,
|
|
551
|
+
isSaturday: he === 6
|
|
552
552
|
}), T.setDate(T.getDate() + 1);
|
|
553
553
|
}
|
|
554
554
|
W.push(pe);
|
|
555
555
|
}
|
|
556
556
|
return W;
|
|
557
|
-
}), H = (
|
|
558
|
-
const
|
|
559
|
-
if (
|
|
560
|
-
const $ = f(
|
|
561
|
-
$.isInRange && (
|
|
557
|
+
}), H = (C) => {
|
|
558
|
+
const _ = [];
|
|
559
|
+
if (C.isPrevMonth && _.push("old"), C.isNextMonth && _.push("new"), C.isToday && _.push("today"), C.isSunday && _.push("day-off"), s.holidays?.includes(C.dateString) && _.push("day-off"), s.eventDates?.includes(C.dateString) && _.push("day-event"), C.isCurrentMonth) {
|
|
560
|
+
const $ = f(C.dateString);
|
|
561
|
+
$.isInRange && (_.push("period"), $.isStart && _.push("start"), $.isEnd && _.push("end"));
|
|
562
562
|
}
|
|
563
|
-
return
|
|
564
|
-
}, V =
|
|
563
|
+
return _;
|
|
564
|
+
}, V = g(() => [
|
|
565
565
|
{
|
|
566
566
|
id: "get-today",
|
|
567
567
|
label: "오늘",
|
|
568
568
|
class: "text",
|
|
569
569
|
variant: void 0,
|
|
570
570
|
size: "small",
|
|
571
|
-
handler:
|
|
571
|
+
handler: i
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
574
|
id: "cancel-btn",
|
|
@@ -576,7 +576,7 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
576
576
|
class: void 0,
|
|
577
577
|
variant: "tertiary",
|
|
578
578
|
size: "small",
|
|
579
|
-
handler:
|
|
579
|
+
handler: x
|
|
580
580
|
},
|
|
581
581
|
{
|
|
582
582
|
id: "confirm-btn",
|
|
@@ -586,45 +586,45 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
586
586
|
size: "small",
|
|
587
587
|
handler: U
|
|
588
588
|
}
|
|
589
|
-
]), j = (
|
|
590
|
-
|
|
591
|
-
}, Z = (
|
|
592
|
-
|
|
593
|
-
},
|
|
594
|
-
|
|
589
|
+
]), j = (C) => {
|
|
590
|
+
v.value === C ? v.value = null : v.value = C;
|
|
591
|
+
}, Z = (C) => {
|
|
592
|
+
p.value = C, v.value = null;
|
|
593
|
+
}, se = (C) => {
|
|
594
|
+
h.value = C, v.value = null;
|
|
595
595
|
}, U = () => {
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
n("update:modelValue",
|
|
596
|
+
if (y.value) {
|
|
597
|
+
if (S.value && y.value !== S.value) {
|
|
598
|
+
const C = `${y.value} ~ ${S.value}`;
|
|
599
|
+
n("update:modelValue", C);
|
|
600
600
|
} else
|
|
601
|
-
n("update:modelValue",
|
|
602
|
-
|
|
601
|
+
n("update:modelValue", y.value);
|
|
602
|
+
x();
|
|
603
603
|
}
|
|
604
604
|
}, O = () => {
|
|
605
|
-
|
|
605
|
+
r.value = !0, v.value = null, setTimeout(() => {
|
|
606
606
|
t.value?.querySelector(".calendar-wrap")?.focus();
|
|
607
607
|
}, 50);
|
|
608
608
|
}, q = () => {
|
|
609
|
-
|
|
610
|
-
}, ve = (
|
|
611
|
-
|
|
612
|
-
}, ee = (
|
|
613
|
-
const
|
|
614
|
-
n("update:modelValue",
|
|
615
|
-
},
|
|
616
|
-
n("change",
|
|
617
|
-
},
|
|
618
|
-
n("focus",
|
|
619
|
-
},
|
|
620
|
-
n("blur",
|
|
609
|
+
r.value ? x() : O();
|
|
610
|
+
}, ve = (C) => {
|
|
611
|
+
C.code === "Escape" && (v.value ? v.value = null : r.value && x());
|
|
612
|
+
}, ee = (C) => {
|
|
613
|
+
const _ = C.target;
|
|
614
|
+
n("update:modelValue", _.value), n("input", C);
|
|
615
|
+
}, Be = (C) => {
|
|
616
|
+
n("change", C);
|
|
617
|
+
}, Ke = (C) => {
|
|
618
|
+
n("focus", C);
|
|
619
|
+
}, $e = (C) => {
|
|
620
|
+
n("blur", C);
|
|
621
621
|
};
|
|
622
|
-
return (
|
|
623
|
-
|
|
624
|
-
class: I(
|
|
622
|
+
return (C, _) => (k(), w("div", He, [
|
|
623
|
+
d("div", {
|
|
624
|
+
class: I(L.value)
|
|
625
625
|
}, [
|
|
626
|
-
|
|
627
|
-
|
|
626
|
+
d("div", je, [
|
|
627
|
+
d("input", {
|
|
628
628
|
id: e.id,
|
|
629
629
|
name: e.name,
|
|
630
630
|
class: I(R.value),
|
|
@@ -636,137 +636,137 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
636
636
|
autofocus: e.autofocus,
|
|
637
637
|
type: "text",
|
|
638
638
|
onInput: ee,
|
|
639
|
-
onChange:
|
|
640
|
-
onFocus:
|
|
641
|
-
onBlur:
|
|
642
|
-
}, null, 42,
|
|
643
|
-
|
|
639
|
+
onChange: Be,
|
|
640
|
+
onFocus: Ke,
|
|
641
|
+
onBlur: $e
|
|
642
|
+
}, null, 42, We),
|
|
643
|
+
d("button", {
|
|
644
644
|
ref_key: "datePickerButtonRef",
|
|
645
645
|
ref: a,
|
|
646
646
|
class: I(`krds-btn ${e.size || "medium"} icon form-btn-datepicker`),
|
|
647
647
|
disabled: e.disabled,
|
|
648
|
-
"aria-expanded":
|
|
648
|
+
"aria-expanded": r.value,
|
|
649
649
|
type: "button",
|
|
650
650
|
onClick: q
|
|
651
|
-
}, [...
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
])], 10,
|
|
651
|
+
}, [..._[4] || (_[4] = [
|
|
652
|
+
d("span", { class: "sr-only" }, "달력 열기", -1),
|
|
653
|
+
d("i", { class: "svg-icon ico-calendar" }, null, -1)
|
|
654
|
+
])], 10, Ye)
|
|
655
655
|
]),
|
|
656
|
-
|
|
656
|
+
d("div", {
|
|
657
657
|
ref_key: "datePickerAreaRef",
|
|
658
658
|
ref: t,
|
|
659
659
|
class: I(M.value)
|
|
660
660
|
}, [
|
|
661
|
-
Q(
|
|
661
|
+
Q(d("div", {
|
|
662
662
|
class: "calendar-wrap bottom",
|
|
663
663
|
"aria-label": "달력",
|
|
664
664
|
tabindex: "0",
|
|
665
665
|
onKeydown: ve
|
|
666
666
|
}, [
|
|
667
|
-
|
|
668
|
-
|
|
667
|
+
d("div", Ge, [
|
|
668
|
+
d("button", {
|
|
669
669
|
type: "button",
|
|
670
670
|
class: "btn-cal-move prev",
|
|
671
|
-
onClick:
|
|
672
|
-
(...$) => P(
|
|
673
|
-
}, [...
|
|
674
|
-
|
|
671
|
+
onClick: _[0] || (_[0] = //@ts-ignore
|
|
672
|
+
(...$) => P(m) && P(m)(...$))
|
|
673
|
+
}, [..._[5] || (_[5] = [
|
|
674
|
+
d("span", { class: "sr-only" }, "이전 달", -1)
|
|
675
675
|
])]),
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
676
|
+
d("div", Ue, [
|
|
677
|
+
d("div", Xe, [
|
|
678
|
+
d("button", {
|
|
679
679
|
type: "button",
|
|
680
680
|
class: "btn-cal-switch year",
|
|
681
681
|
"aria-label": "연도 선택",
|
|
682
|
-
"aria-expanded":
|
|
683
|
-
onClick:
|
|
684
|
-
},
|
|
685
|
-
Q(
|
|
686
|
-
|
|
687
|
-
(
|
|
688
|
-
|
|
682
|
+
"aria-expanded": v.value === "year",
|
|
683
|
+
onClick: _[1] || (_[1] = ($) => j("year"))
|
|
684
|
+
}, E(P(p)) + "년 ", 9, Je),
|
|
685
|
+
Q(d("div", Qe, [
|
|
686
|
+
d("ul", Ze, [
|
|
687
|
+
(k(!0), w(F, null, N(P(b), ($) => (k(), w("li", { key: $ }, [
|
|
688
|
+
d("button", {
|
|
689
689
|
type: "button",
|
|
690
|
-
class: I({ active: $ === P(
|
|
690
|
+
class: I({ active: $ === P(p) }),
|
|
691
691
|
onClick: (G) => Z($)
|
|
692
|
-
},
|
|
692
|
+
}, E($) + "년", 11, et)
|
|
693
693
|
]))), 128))
|
|
694
694
|
])
|
|
695
695
|
], 512), [
|
|
696
|
-
[te,
|
|
696
|
+
[te, v.value === "year"]
|
|
697
697
|
])
|
|
698
698
|
]),
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
d("div", tt, [
|
|
700
|
+
d("button", {
|
|
701
701
|
type: "button",
|
|
702
702
|
class: "btn-cal-switch month",
|
|
703
703
|
"aria-label": "월 선택",
|
|
704
|
-
"aria-expanded":
|
|
705
|
-
onClick:
|
|
706
|
-
},
|
|
707
|
-
Q(
|
|
708
|
-
|
|
709
|
-
(
|
|
710
|
-
|
|
704
|
+
"aria-expanded": v.value === "month",
|
|
705
|
+
onClick: _[2] || (_[2] = ($) => j("month"))
|
|
706
|
+
}, E(P(h).toString().padStart(2, "0")) + "월 ", 9, lt),
|
|
707
|
+
Q(d("div", at, [
|
|
708
|
+
d("ul", nt, [
|
|
709
|
+
(k(!0), w(F, null, N(P(D), ($) => (k(), w("li", { key: $ }, [
|
|
710
|
+
d("button", {
|
|
711
711
|
type: "button",
|
|
712
|
-
class: I({ active: $ === P(
|
|
713
|
-
onClick: (G) =>
|
|
714
|
-
},
|
|
712
|
+
class: I({ active: $ === P(h) }),
|
|
713
|
+
onClick: (G) => se($)
|
|
714
|
+
}, E($.toString().padStart(2, "0")) + "월 ", 11, st)
|
|
715
715
|
]))), 128))
|
|
716
716
|
])
|
|
717
717
|
], 512), [
|
|
718
|
-
[te,
|
|
718
|
+
[te, v.value === "month"]
|
|
719
719
|
])
|
|
720
720
|
])
|
|
721
721
|
]),
|
|
722
|
-
|
|
722
|
+
d("button", {
|
|
723
723
|
type: "button",
|
|
724
724
|
class: "btn-cal-move next",
|
|
725
|
-
onClick:
|
|
725
|
+
onClick: _[3] || (_[3] = //@ts-ignore
|
|
726
726
|
(...$) => P(l) && P(l)(...$))
|
|
727
|
-
}, [...
|
|
728
|
-
|
|
727
|
+
}, [..._[6] || (_[6] = [
|
|
728
|
+
d("span", { class: "sr-only" }, "다음 달", -1)
|
|
729
729
|
])])
|
|
730
730
|
]),
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
731
|
+
d("div", ot, [
|
|
732
|
+
d("div", it, [
|
|
733
|
+
d("table", rt, [
|
|
734
|
+
d("caption", null, E(P(p)) + "년 " + E(P(h).toString().padStart(2, "0")) + "월", 1),
|
|
735
|
+
_[7] || (_[7] = d("thead", null, [
|
|
736
|
+
d("tr", null, [
|
|
737
|
+
d("th", null, "일"),
|
|
738
|
+
d("th", null, "월"),
|
|
739
|
+
d("th", null, "화"),
|
|
740
|
+
d("th", null, "수"),
|
|
741
|
+
d("th", null, "목"),
|
|
742
|
+
d("th", null, "금"),
|
|
743
|
+
d("th", null, "토")
|
|
744
744
|
])
|
|
745
745
|
], -1)),
|
|
746
|
-
|
|
747
|
-
(
|
|
748
|
-
(
|
|
746
|
+
d("tbody", null, [
|
|
747
|
+
(k(!0), w(F, null, N(z.value, ($, G) => (k(), w("tr", { key: G }, [
|
|
748
|
+
(k(!0), w(F, null, N($, (W, T) => (k(), w("td", {
|
|
749
749
|
key: T,
|
|
750
750
|
class: I(H(W)),
|
|
751
751
|
"data-date": W.dateString
|
|
752
752
|
}, [
|
|
753
|
-
|
|
753
|
+
d("button", {
|
|
754
754
|
type: "button",
|
|
755
755
|
class: "btn-set-date",
|
|
756
756
|
"aria-pressed": P(f)(W.dateString).isInRange ? "true" : "false",
|
|
757
|
-
onClick: (
|
|
757
|
+
onClick: (oe) => P(u)(W.dateString)
|
|
758
758
|
}, [
|
|
759
|
-
|
|
760
|
-
], 8,
|
|
761
|
-
], 10,
|
|
759
|
+
d("span", null, E(W.day), 1)
|
|
760
|
+
], 8, ut)
|
|
761
|
+
], 10, dt))), 128))
|
|
762
762
|
]))), 128))
|
|
763
763
|
])
|
|
764
764
|
])
|
|
765
765
|
])
|
|
766
766
|
]),
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
(
|
|
767
|
+
d("div", ct, [
|
|
768
|
+
d("div", ft, [
|
|
769
|
+
(k(!0), w(F, null, N(V.value, ($) => (k(), ie(P(Ce), {
|
|
770
770
|
id: $.id,
|
|
771
771
|
key: $.id,
|
|
772
772
|
class: I($.class),
|
|
@@ -774,21 +774,21 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
774
774
|
size: $.size,
|
|
775
775
|
onClick: $.handler
|
|
776
776
|
}, {
|
|
777
|
-
default:
|
|
778
|
-
A(
|
|
777
|
+
default: re(() => [
|
|
778
|
+
A(E($.label), 1)
|
|
779
779
|
]),
|
|
780
780
|
_: 2
|
|
781
781
|
}, 1032, ["id", "class", "variant", "size", "onClick"]))), 128))
|
|
782
782
|
])
|
|
783
783
|
])
|
|
784
784
|
], 544), [
|
|
785
|
-
[te,
|
|
785
|
+
[te, r.value]
|
|
786
786
|
])
|
|
787
787
|
], 2)
|
|
788
788
|
], 2)
|
|
789
789
|
]));
|
|
790
790
|
}
|
|
791
|
-
}),
|
|
791
|
+
}), pt = B({
|
|
792
792
|
name: "KrdsTextarea",
|
|
793
793
|
props: {
|
|
794
794
|
modelValue: {
|
|
@@ -864,33 +864,33 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
864
864
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
|
|
865
865
|
setup(e, { emit: o }) {
|
|
866
866
|
const s = K(0);
|
|
867
|
-
|
|
867
|
+
ae(
|
|
868
868
|
() => e.modelValue,
|
|
869
869
|
(l) => {
|
|
870
870
|
s.value = (l || "").length;
|
|
871
871
|
},
|
|
872
872
|
{ immediate: !0 }
|
|
873
873
|
);
|
|
874
|
-
const n =
|
|
874
|
+
const n = g(() => {
|
|
875
875
|
const l = ["krds-input"];
|
|
876
876
|
return e.size && l.push(e.size), e.class && l.push(e.class), l;
|
|
877
|
-
}), t =
|
|
877
|
+
}), t = g(() => {
|
|
878
878
|
const l = {};
|
|
879
879
|
return e.resize && (l.resize = e.resize), l;
|
|
880
880
|
}), a = (l) => {
|
|
881
|
-
const
|
|
882
|
-
s.value =
|
|
883
|
-
},
|
|
881
|
+
const i = l.target.value;
|
|
882
|
+
s.value = i.length, o("update:modelValue", i), o("input", l);
|
|
883
|
+
}, r = (l) => {
|
|
884
884
|
o("change", l);
|
|
885
|
-
},
|
|
885
|
+
}, v = (l) => {
|
|
886
886
|
o("focus", l);
|
|
887
|
-
},
|
|
887
|
+
}, p = (l) => {
|
|
888
888
|
o("blur", l);
|
|
889
|
-
},
|
|
889
|
+
}, h = (l) => {
|
|
890
890
|
o("keydown", l);
|
|
891
|
-
},
|
|
891
|
+
}, y = (l) => {
|
|
892
892
|
o("keyup", l);
|
|
893
|
-
},
|
|
893
|
+
}, S = g(() => {
|
|
894
894
|
const l = {
|
|
895
895
|
class: n.value,
|
|
896
896
|
style: t.value,
|
|
@@ -905,32 +905,32 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
905
905
|
rows: e.rows,
|
|
906
906
|
cols: e.cols,
|
|
907
907
|
onInput: a,
|
|
908
|
-
onChange:
|
|
909
|
-
onFocus:
|
|
910
|
-
onBlur:
|
|
911
|
-
onKeydown:
|
|
912
|
-
onKeyup:
|
|
908
|
+
onChange: r,
|
|
909
|
+
onFocus: v,
|
|
910
|
+
onBlur: p,
|
|
911
|
+
onKeydown: h,
|
|
912
|
+
onKeyup: y
|
|
913
913
|
};
|
|
914
914
|
return e.maxlength !== void 0 && (l.maxlength = e.maxlength), e.minlength !== void 0 && (l.minlength = e.minlength), l;
|
|
915
|
-
}),
|
|
915
|
+
}), b = g(() => ["form-conts"]), D = g(() => ["textarea-wrap"]), m = g(() => {
|
|
916
916
|
if (!e.showCount) return null;
|
|
917
|
-
const l = s.value,
|
|
917
|
+
const l = s.value, u = e.maxlength;
|
|
918
918
|
return {
|
|
919
919
|
current: l,
|
|
920
|
-
max:
|
|
920
|
+
max: u || ""
|
|
921
921
|
};
|
|
922
922
|
});
|
|
923
923
|
return () => {
|
|
924
|
-
const l = [
|
|
925
|
-
return
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
924
|
+
const l = [c("textarea", S.value)];
|
|
925
|
+
return m.value && l.push(
|
|
926
|
+
c("p", { class: "textarea-count" }, [
|
|
927
|
+
c("span", { class: "count-now" }, m.value.current),
|
|
928
|
+
c("span", { class: "count-total" }, m.value.max ? `/${m.value.max}` : "")
|
|
929
929
|
])
|
|
930
|
-
),
|
|
930
|
+
), c("div", { class: b.value }, [c("div", { class: D.value }, l)]);
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
|
-
}),
|
|
933
|
+
}), mt = B({
|
|
934
934
|
name: "KrdsSelect",
|
|
935
935
|
props: {
|
|
936
936
|
modelValue: {
|
|
@@ -980,17 +980,17 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
980
980
|
},
|
|
981
981
|
emits: ["update:modelValue", "focus", "blur"],
|
|
982
982
|
setup(e, { emit: o, slots: s }) {
|
|
983
|
-
const n =
|
|
984
|
-
const
|
|
985
|
-
return e.sort ?
|
|
986
|
-
}), t = (
|
|
987
|
-
const
|
|
988
|
-
o("update:modelValue",
|
|
989
|
-
}, a = (
|
|
990
|
-
o("focus",
|
|
991
|
-
},
|
|
992
|
-
o("blur",
|
|
993
|
-
},
|
|
983
|
+
const n = g(() => {
|
|
984
|
+
const y = [];
|
|
985
|
+
return e.sort ? y.push("krds-form-select-sort") : y.push("krds-form-select"), e.size && y.push(e.size), e.class && y.push(e.class), y;
|
|
986
|
+
}), t = (y) => {
|
|
987
|
+
const S = y.target, b = S.value === "" ? null : S.value;
|
|
988
|
+
o("update:modelValue", b);
|
|
989
|
+
}, a = (y) => {
|
|
990
|
+
o("focus", y);
|
|
991
|
+
}, r = (y) => {
|
|
992
|
+
o("blur", y);
|
|
993
|
+
}, v = g(() => ({
|
|
994
994
|
class: n.value,
|
|
995
995
|
value: e.modelValue ?? "",
|
|
996
996
|
title: e.title || e.placeholder,
|
|
@@ -999,32 +999,32 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
999
999
|
disabled: e.disabled || e.readonly,
|
|
1000
1000
|
onChange: t,
|
|
1001
1001
|
onFocus: a,
|
|
1002
|
-
onBlur:
|
|
1003
|
-
})),
|
|
1004
|
-
const
|
|
1005
|
-
return e.state !== "default" &&
|
|
1006
|
-
}),
|
|
1007
|
-
const
|
|
1008
|
-
return e.placeholder && !e.modelValue &&
|
|
1009
|
-
|
|
1010
|
-
|
|
1002
|
+
onBlur: r
|
|
1003
|
+
})), p = g(() => {
|
|
1004
|
+
const y = ["form-conts"];
|
|
1005
|
+
return e.state !== "default" && y.push(`is-${e.state}`), y;
|
|
1006
|
+
}), h = () => {
|
|
1007
|
+
const y = [];
|
|
1008
|
+
return e.placeholder && !e.modelValue && y.push(c("option", { value: "", disabled: !0, selected: !0 }, e.placeholder)), e.options && e.options.length > 0 && e.options.forEach((S) => {
|
|
1009
|
+
y.push(
|
|
1010
|
+
c(
|
|
1011
1011
|
"option",
|
|
1012
1012
|
{
|
|
1013
|
-
value:
|
|
1014
|
-
disabled:
|
|
1015
|
-
selected:
|
|
1013
|
+
value: S.value,
|
|
1014
|
+
disabled: S.disabled,
|
|
1015
|
+
selected: S.value === e.modelValue
|
|
1016
1016
|
},
|
|
1017
|
-
|
|
1017
|
+
S.label
|
|
1018
1018
|
)
|
|
1019
1019
|
);
|
|
1020
|
-
}), s.default &&
|
|
1020
|
+
}), s.default && y.push(...s.default()), y;
|
|
1021
1021
|
};
|
|
1022
1022
|
return () => {
|
|
1023
|
-
const
|
|
1024
|
-
return e.sort ?
|
|
1023
|
+
const y = c("select", v.value, h());
|
|
1024
|
+
return e.sort ? y : c("div", { class: p.value }, [y]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}),
|
|
1027
|
+
}), ht = B({
|
|
1028
1028
|
name: "KrdsFileUpload",
|
|
1029
1029
|
props: {
|
|
1030
1030
|
modelValue: {
|
|
@@ -1128,14 +1128,14 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1128
1128
|
"preview"
|
|
1129
1129
|
],
|
|
1130
1130
|
setup(e, { emit: o }) {
|
|
1131
|
-
K(!1),
|
|
1131
|
+
K(!1), g(() => {
|
|
1132
1132
|
const n = ["krds-file-upload", "line"];
|
|
1133
1133
|
return e.class && n.push(e.class), n;
|
|
1134
1134
|
});
|
|
1135
|
-
const s =
|
|
1136
|
-
return
|
|
1135
|
+
const s = g(() => e.modelValue?.length || 0);
|
|
1136
|
+
return g(() => !e.disabled && s.value < e.maxFiles), () => null;
|
|
1137
1137
|
}
|
|
1138
|
-
}),
|
|
1138
|
+
}), yt = B({
|
|
1139
1139
|
name: "KrdsBadge",
|
|
1140
1140
|
props: {
|
|
1141
1141
|
type: {
|
|
@@ -1161,13 +1161,13 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1161
1161
|
},
|
|
1162
1162
|
emits: ["click"],
|
|
1163
1163
|
setup(e, { emit: o, slots: s }) {
|
|
1164
|
-
const n =
|
|
1164
|
+
const n = g(() => {
|
|
1165
1165
|
const a = ["krds-badge"];
|
|
1166
1166
|
return a.push(`${e.type}-${e.color}`), e.size && a.push(e.size), e.number && a.push("number"), e.class && a.push(e.class), a;
|
|
1167
1167
|
}), t = (a) => {
|
|
1168
1168
|
o("click", a);
|
|
1169
1169
|
};
|
|
1170
|
-
return () =>
|
|
1170
|
+
return () => c(
|
|
1171
1171
|
"span",
|
|
1172
1172
|
{
|
|
1173
1173
|
type: e.type,
|
|
@@ -1180,7 +1180,7 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1180
1180
|
s.default?.()
|
|
1181
1181
|
);
|
|
1182
1182
|
}
|
|
1183
|
-
}),
|
|
1183
|
+
}), gt = B({
|
|
1184
1184
|
name: "KrdsTag",
|
|
1185
1185
|
props: {
|
|
1186
1186
|
link: {
|
|
@@ -1206,39 +1206,39 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1206
1206
|
},
|
|
1207
1207
|
emits: ["remove"],
|
|
1208
1208
|
setup(e, { emit: o, slots: s }) {
|
|
1209
|
-
const n =
|
|
1210
|
-
const
|
|
1211
|
-
return e.link &&
|
|
1212
|
-
}), t = (
|
|
1213
|
-
o("remove",
|
|
1214
|
-
}, a = () =>
|
|
1209
|
+
const n = g(() => {
|
|
1210
|
+
const r = ["krds-btn-tag"];
|
|
1211
|
+
return e.link && r.push("link"), e.class && r.push(e.class), r;
|
|
1212
|
+
}), t = (r) => {
|
|
1213
|
+
o("remove", r);
|
|
1214
|
+
}, a = () => c(
|
|
1215
1215
|
"button",
|
|
1216
1216
|
{
|
|
1217
1217
|
type: "button",
|
|
1218
1218
|
class: "btn-delete",
|
|
1219
1219
|
onClick: t
|
|
1220
1220
|
},
|
|
1221
|
-
[
|
|
1221
|
+
[c("span", { class: "sr-only" }, "삭제")]
|
|
1222
1222
|
);
|
|
1223
1223
|
return () => {
|
|
1224
|
-
const
|
|
1225
|
-
if (
|
|
1226
|
-
const
|
|
1224
|
+
const r = [], v = s.default?.();
|
|
1225
|
+
if (v && r.push(v), e.link || r.push(a()), e.link) {
|
|
1226
|
+
const p = {
|
|
1227
1227
|
href: e.href,
|
|
1228
1228
|
class: n.value
|
|
1229
1229
|
};
|
|
1230
|
-
return e.target && (
|
|
1230
|
+
return e.target && (p.target = e.target), e.rel && (p.rel = e.rel), c("a", p, r);
|
|
1231
1231
|
}
|
|
1232
|
-
return
|
|
1232
|
+
return c(
|
|
1233
1233
|
"span",
|
|
1234
1234
|
{
|
|
1235
1235
|
class: n.value
|
|
1236
1236
|
},
|
|
1237
|
-
|
|
1237
|
+
r
|
|
1238
1238
|
);
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
}),
|
|
1241
|
+
}), bt = B({
|
|
1242
1242
|
name: "KrdsTagGroup",
|
|
1243
1243
|
props: {
|
|
1244
1244
|
size: {
|
|
@@ -1251,11 +1251,11 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1251
1251
|
}
|
|
1252
1252
|
},
|
|
1253
1253
|
setup(e, { slots: o }) {
|
|
1254
|
-
const s =
|
|
1254
|
+
const s = g(() => {
|
|
1255
1255
|
const n = ["krds-tag-wrap"];
|
|
1256
1256
|
return e.size && n.push(e.size), e.class && n.push(e.class), n;
|
|
1257
1257
|
});
|
|
1258
|
-
return () =>
|
|
1258
|
+
return () => c(
|
|
1259
1259
|
"div",
|
|
1260
1260
|
{
|
|
1261
1261
|
class: s.value
|
|
@@ -1263,7 +1263,7 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1263
1263
|
o.default?.()
|
|
1264
1264
|
);
|
|
1265
1265
|
}
|
|
1266
|
-
}),
|
|
1266
|
+
}), kt = B({
|
|
1267
1267
|
name: "KrdsMasthead",
|
|
1268
1268
|
props: {
|
|
1269
1269
|
class: {
|
|
@@ -1273,13 +1273,13 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1273
1273
|
},
|
|
1274
1274
|
emits: ["click"],
|
|
1275
1275
|
setup(e, { emit: o, slots: s }) {
|
|
1276
|
-
const n =
|
|
1276
|
+
const n = g(() => {
|
|
1277
1277
|
const a = [""];
|
|
1278
1278
|
return e.class && a.push(e.class), a;
|
|
1279
1279
|
}), t = (a) => {
|
|
1280
1280
|
o("click", a);
|
|
1281
1281
|
};
|
|
1282
|
-
return () =>
|
|
1282
|
+
return () => c(
|
|
1283
1283
|
"div",
|
|
1284
1284
|
{
|
|
1285
1285
|
id: "krds-masthead",
|
|
@@ -1287,25 +1287,25 @@ const qe = { class: "form-conts" }, Ne = { class: "calendar-input" }, He = ["id"
|
|
|
1287
1287
|
onClick: t
|
|
1288
1288
|
},
|
|
1289
1289
|
[
|
|
1290
|
-
|
|
1291
|
-
|
|
1290
|
+
c("div", { class: "toggle-wrap" }, [
|
|
1291
|
+
c("div", { class: "toggle-head" }, [c("div", { class: "inner" }, [c("span", { class: "nuri-txt" }, s.default?.())])])
|
|
1292
1292
|
])
|
|
1293
1293
|
]
|
|
1294
1294
|
);
|
|
1295
1295
|
}
|
|
1296
1296
|
});
|
|
1297
|
-
let
|
|
1298
|
-
function
|
|
1299
|
-
return `${e}-${++
|
|
1297
|
+
let St = 0;
|
|
1298
|
+
function ue(e = "krds") {
|
|
1299
|
+
return `${e}-${++St}`;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function xl() {
|
|
1302
1302
|
const e = Date.now().toString(36).slice(-4), o = Math.random().toString(36).substring(2, 5);
|
|
1303
1303
|
return `${e}${o}`;
|
|
1304
1304
|
}
|
|
1305
1305
|
function ce(...e) {
|
|
1306
1306
|
return e.filter(Boolean).join(" ");
|
|
1307
1307
|
}
|
|
1308
|
-
const
|
|
1308
|
+
const wt = B({
|
|
1309
1309
|
name: "KrdsToggleSwitch",
|
|
1310
1310
|
props: {
|
|
1311
1311
|
modelValue: {
|
|
@@ -1348,39 +1348,39 @@ const bt = B({
|
|
|
1348
1348
|
},
|
|
1349
1349
|
emits: ["update:modelValue", "change"],
|
|
1350
1350
|
setup(e, { emit: o, attrs: s }) {
|
|
1351
|
-
const n =
|
|
1351
|
+
const n = g(() => e.modelValue), t = g(() => ce("krds-form-toggle-switch", e.size, e.class)), a = (v) => {
|
|
1352
1352
|
if (e.disabled)
|
|
1353
1353
|
return;
|
|
1354
|
-
const
|
|
1355
|
-
o("update:modelValue",
|
|
1356
|
-
},
|
|
1357
|
-
return () =>
|
|
1354
|
+
const h = v.target.checked;
|
|
1355
|
+
o("update:modelValue", h), o("change", h);
|
|
1356
|
+
}, r = g(() => e.id || ue("toggle-switch"));
|
|
1357
|
+
return () => c(
|
|
1358
1358
|
"div",
|
|
1359
1359
|
{
|
|
1360
1360
|
class: t.value
|
|
1361
1361
|
},
|
|
1362
1362
|
[
|
|
1363
|
-
|
|
1363
|
+
c("input", {
|
|
1364
1364
|
type: "checkbox",
|
|
1365
|
-
id:
|
|
1365
|
+
id: r.value,
|
|
1366
1366
|
name: e.name,
|
|
1367
1367
|
checked: n.value,
|
|
1368
1368
|
disabled: e.disabled,
|
|
1369
1369
|
onChange: a,
|
|
1370
1370
|
...s
|
|
1371
1371
|
}),
|
|
1372
|
-
|
|
1372
|
+
c(
|
|
1373
1373
|
"label",
|
|
1374
1374
|
{
|
|
1375
|
-
for:
|
|
1375
|
+
for: r.value
|
|
1376
1376
|
},
|
|
1377
1377
|
[
|
|
1378
|
-
|
|
1378
|
+
c(
|
|
1379
1379
|
"span",
|
|
1380
1380
|
{
|
|
1381
1381
|
class: "switch-toggle"
|
|
1382
1382
|
},
|
|
1383
|
-
[
|
|
1383
|
+
[c("i")]
|
|
1384
1384
|
),
|
|
1385
1385
|
e.label || ""
|
|
1386
1386
|
]
|
|
@@ -1388,7 +1388,7 @@ const bt = B({
|
|
|
1388
1388
|
]
|
|
1389
1389
|
);
|
|
1390
1390
|
}
|
|
1391
|
-
}),
|
|
1391
|
+
}), Ct = B({
|
|
1392
1392
|
name: "KrdsCheckArea",
|
|
1393
1393
|
props: {
|
|
1394
1394
|
class: {
|
|
@@ -1403,7 +1403,7 @@ const bt = B({
|
|
|
1403
1403
|
setup(e, { slots: o }) {
|
|
1404
1404
|
return () => {
|
|
1405
1405
|
const s = ["krds-check-area"];
|
|
1406
|
-
return e.column && s.push("chk-column"), e.class && s.push(e.class),
|
|
1406
|
+
return e.column && s.push("chk-column"), e.class && s.push(e.class), c(
|
|
1407
1407
|
"div",
|
|
1408
1408
|
{
|
|
1409
1409
|
class: s
|
|
@@ -1412,7 +1412,7 @@ const bt = B({
|
|
|
1412
1412
|
);
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
|
-
}),
|
|
1415
|
+
}), xt = B({
|
|
1416
1416
|
name: "KrdsCheckbox",
|
|
1417
1417
|
props: {
|
|
1418
1418
|
modelValue: {
|
|
@@ -1444,43 +1444,43 @@ const bt = B({
|
|
|
1444
1444
|
emits: ["update:modelValue"],
|
|
1445
1445
|
slots: Object,
|
|
1446
1446
|
setup(e, { emit: o, attrs: s, slots: n }) {
|
|
1447
|
-
const t =
|
|
1448
|
-
const
|
|
1449
|
-
return ce(
|
|
1450
|
-
}),
|
|
1447
|
+
const t = g(() => e.modelValue), a = g(() => {
|
|
1448
|
+
const p = e.chip ? "krds-form-chip" : "krds-form-check";
|
|
1449
|
+
return ce(p, e.size, e.class);
|
|
1450
|
+
}), r = (p) => {
|
|
1451
1451
|
if (e.disabled)
|
|
1452
1452
|
return;
|
|
1453
|
-
const
|
|
1454
|
-
o("update:modelValue",
|
|
1455
|
-
},
|
|
1453
|
+
const y = p.target.checked;
|
|
1454
|
+
o("update:modelValue", y);
|
|
1455
|
+
}, v = g(() => e.id || ue("checkbox"));
|
|
1456
1456
|
return () => {
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1457
|
+
const p = [
|
|
1458
|
+
c("input", {
|
|
1459
1459
|
type: "checkbox",
|
|
1460
|
-
id:
|
|
1460
|
+
id: v.value,
|
|
1461
1461
|
checked: t.value,
|
|
1462
1462
|
disabled: e.disabled,
|
|
1463
|
-
onChange:
|
|
1463
|
+
onChange: r,
|
|
1464
1464
|
...s
|
|
1465
1465
|
}),
|
|
1466
|
-
|
|
1466
|
+
c(
|
|
1467
1467
|
"label",
|
|
1468
1468
|
{
|
|
1469
|
-
for:
|
|
1469
|
+
for: v.value
|
|
1470
1470
|
},
|
|
1471
1471
|
n.default?.()
|
|
1472
1472
|
)
|
|
1473
1473
|
];
|
|
1474
|
-
return n.description && !e.chip &&
|
|
1474
|
+
return n.description && !e.chip && p.push(c("div", { class: "krds-form-check-cnt" }, c("p", { class: "krds-form-check-p" }, n.description()))), c(
|
|
1475
1475
|
"div",
|
|
1476
1476
|
{
|
|
1477
1477
|
class: a.value
|
|
1478
1478
|
},
|
|
1479
|
-
|
|
1479
|
+
p
|
|
1480
1480
|
);
|
|
1481
1481
|
};
|
|
1482
1482
|
}
|
|
1483
|
-
}),
|
|
1483
|
+
}), _t = B({
|
|
1484
1484
|
name: "KrdsRadio",
|
|
1485
1485
|
props: {
|
|
1486
1486
|
modelValue: {
|
|
@@ -1520,44 +1520,44 @@ const bt = B({
|
|
|
1520
1520
|
emits: ["update:modelValue"],
|
|
1521
1521
|
slots: Object,
|
|
1522
1522
|
setup(e, { emit: o, attrs: s, slots: n }) {
|
|
1523
|
-
const t =
|
|
1524
|
-
const
|
|
1525
|
-
return ce(
|
|
1526
|
-
}),
|
|
1523
|
+
const t = g(() => e.modelValue === e.value), a = g(() => {
|
|
1524
|
+
const h = e.chip ? "krds-form-chip" : "krds-form-check";
|
|
1525
|
+
return ce(h, e.size, e.class);
|
|
1526
|
+
}), r = (h) => {
|
|
1527
1527
|
if (e.disabled)
|
|
1528
1528
|
return;
|
|
1529
|
-
|
|
1530
|
-
},
|
|
1529
|
+
h.target.checked && o("update:modelValue", e.value);
|
|
1530
|
+
}, v = g(() => e.id || ue("radio")), p = g(() => e.name);
|
|
1531
1531
|
return () => {
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1532
|
+
const h = [
|
|
1533
|
+
c("input", {
|
|
1534
1534
|
type: "radio",
|
|
1535
|
-
id:
|
|
1536
|
-
name:
|
|
1535
|
+
id: v.value,
|
|
1536
|
+
name: p.value,
|
|
1537
1537
|
value: String(e.value),
|
|
1538
1538
|
checked: t.value,
|
|
1539
1539
|
disabled: e.disabled,
|
|
1540
|
-
onChange:
|
|
1540
|
+
onChange: r,
|
|
1541
1541
|
...s
|
|
1542
1542
|
}),
|
|
1543
|
-
|
|
1543
|
+
c(
|
|
1544
1544
|
"label",
|
|
1545
1545
|
{
|
|
1546
|
-
for:
|
|
1546
|
+
for: v.value
|
|
1547
1547
|
},
|
|
1548
1548
|
n.default?.()
|
|
1549
1549
|
)
|
|
1550
1550
|
];
|
|
1551
|
-
return n.description && !e.chip &&
|
|
1551
|
+
return n.description && !e.chip && h.push(c("div", { class: "krds-form-check-cnt" }, c("p", { class: "krds-form-check-p" }, n.description()))), c(
|
|
1552
1552
|
"div",
|
|
1553
1553
|
{
|
|
1554
1554
|
class: a.value
|
|
1555
1555
|
},
|
|
1556
|
-
|
|
1556
|
+
h
|
|
1557
1557
|
);
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
|
-
}),
|
|
1560
|
+
}), Bt = B({
|
|
1561
1561
|
name: "KrdsStepIndicator",
|
|
1562
1562
|
props: {
|
|
1563
1563
|
modelValue: {
|
|
@@ -1571,21 +1571,21 @@ const bt = B({
|
|
|
1571
1571
|
},
|
|
1572
1572
|
emits: ["update:modelValue"],
|
|
1573
1573
|
setup(e, { slots: o }) {
|
|
1574
|
-
const s =
|
|
1575
|
-
const
|
|
1576
|
-
return e.class &&
|
|
1577
|
-
}), n = (
|
|
1578
|
-
const
|
|
1579
|
-
return
|
|
1574
|
+
const s = g(() => {
|
|
1575
|
+
const v = ["krds-step-wrap"];
|
|
1576
|
+
return e.class && v.push(e.class), v;
|
|
1577
|
+
}), n = (v) => {
|
|
1578
|
+
const p = e.modelValue || 0;
|
|
1579
|
+
return v < p ? "done" : v === p ? "active" : "pending";
|
|
1580
1580
|
}, t = K(0), a = () => {
|
|
1581
1581
|
t.value = 0;
|
|
1582
|
-
},
|
|
1583
|
-
return
|
|
1584
|
-
activeStep:
|
|
1582
|
+
}, r = () => t.value++;
|
|
1583
|
+
return Ve("stepIndicator", {
|
|
1584
|
+
activeStep: g(() => e.modelValue || 0),
|
|
1585
1585
|
getStepStatus: n,
|
|
1586
|
-
getNextStepIndex:
|
|
1586
|
+
getNextStepIndex: r,
|
|
1587
1587
|
resetStepIndex: a
|
|
1588
|
-
}), () => (a(),
|
|
1588
|
+
}), () => (a(), c(
|
|
1589
1589
|
"ol",
|
|
1590
1590
|
{
|
|
1591
1591
|
class: s.value
|
|
@@ -1593,7 +1593,7 @@ const bt = B({
|
|
|
1593
1593
|
o.default?.()
|
|
1594
1594
|
));
|
|
1595
1595
|
}
|
|
1596
|
-
}),
|
|
1596
|
+
}), Kt = B({
|
|
1597
1597
|
name: "KrdsStep",
|
|
1598
1598
|
props: {
|
|
1599
1599
|
step: {
|
|
@@ -1615,28 +1615,28 @@ const bt = B({
|
|
|
1615
1615
|
},
|
|
1616
1616
|
emits: ["click"],
|
|
1617
1617
|
setup(e, { emit: o, slots: s }) {
|
|
1618
|
-
const n =
|
|
1619
|
-
const
|
|
1620
|
-
return e.class &&
|
|
1621
|
-
}),
|
|
1622
|
-
o("click",
|
|
1618
|
+
const n = ze("stepIndicator"), t = n ? n.getNextStepIndex() : -1, a = g(() => e.status ? e.status : n && t >= 0 ? n.getStepStatus(t) : "pending"), r = g(() => {
|
|
1619
|
+
const p = [a.value];
|
|
1620
|
+
return e.class && p.push(e.class), p;
|
|
1621
|
+
}), v = (p) => {
|
|
1622
|
+
o("click", p, e.step);
|
|
1623
1623
|
};
|
|
1624
1624
|
return () => {
|
|
1625
|
-
const
|
|
1626
|
-
return
|
|
1625
|
+
const p = a.value === "active";
|
|
1626
|
+
return c(
|
|
1627
1627
|
"li",
|
|
1628
1628
|
{
|
|
1629
|
-
class:
|
|
1630
|
-
onClick:
|
|
1629
|
+
class: r.value,
|
|
1630
|
+
onClick: v
|
|
1631
1631
|
},
|
|
1632
1632
|
[
|
|
1633
|
-
|
|
1633
|
+
c("span", [
|
|
1634
1634
|
// 현재 단계 표시 (활성 상태일 때만)
|
|
1635
|
-
|
|
1635
|
+
p && c("em", { class: "sr-only" }, "현재단계"),
|
|
1636
1636
|
// 단계 번호
|
|
1637
|
-
|
|
1637
|
+
c("i", { class: "step" }, e.step),
|
|
1638
1638
|
// 단계 제목
|
|
1639
|
-
|
|
1639
|
+
c("span", { class: "step-tit" }, e.title),
|
|
1640
1640
|
// 슬롯 내용 (추가 콘텐츠가 있는 경우)
|
|
1641
1641
|
s.default?.()
|
|
1642
1642
|
])
|
|
@@ -1644,7 +1644,7 @@ const bt = B({
|
|
|
1644
1644
|
);
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
|
-
}),
|
|
1647
|
+
}), $t = B({
|
|
1648
1648
|
name: "KrdsSkipLink",
|
|
1649
1649
|
props: {
|
|
1650
1650
|
/**
|
|
@@ -1672,14 +1672,14 @@ const bt = B({
|
|
|
1672
1672
|
}
|
|
1673
1673
|
},
|
|
1674
1674
|
setup(e, { slots: o }) {
|
|
1675
|
-
return () =>
|
|
1675
|
+
return () => c(
|
|
1676
1676
|
"div",
|
|
1677
1677
|
{
|
|
1678
1678
|
id: e.id,
|
|
1679
1679
|
class: e.class
|
|
1680
1680
|
},
|
|
1681
1681
|
[
|
|
1682
|
-
|
|
1682
|
+
c(
|
|
1683
1683
|
"a",
|
|
1684
1684
|
{
|
|
1685
1685
|
href: e.href
|
|
@@ -1689,7 +1689,7 @@ const bt = B({
|
|
|
1689
1689
|
]
|
|
1690
1690
|
);
|
|
1691
1691
|
}
|
|
1692
|
-
}),
|
|
1692
|
+
}), Dt = ["id", "aria-label"], Vt = { class: "breadcrumb" }, zt = ["href", "aria-current", "onClick"], Et = { key: 0 }, It = /* @__PURE__ */ B({
|
|
1693
1693
|
__name: "KrdsBreadcrumb",
|
|
1694
1694
|
props: {
|
|
1695
1695
|
items: {},
|
|
@@ -1699,30 +1699,30 @@ const bt = B({
|
|
|
1699
1699
|
},
|
|
1700
1700
|
emits: ["item-click"],
|
|
1701
1701
|
setup(e, { emit: o }) {
|
|
1702
|
-
const s = e, n = o, t = (
|
|
1703
|
-
|
|
1702
|
+
const s = e, n = o, t = (r) => r === s.items.length - 1, a = (r, v) => {
|
|
1703
|
+
r.onClick && r.onClick(v), n("item-click", r, v);
|
|
1704
1704
|
};
|
|
1705
|
-
return (
|
|
1705
|
+
return (r, v) => (k(), w("nav", {
|
|
1706
1706
|
id: e.id,
|
|
1707
1707
|
class: "krds-breadcrumb-wrap",
|
|
1708
1708
|
"aria-label": e.ariaLabel
|
|
1709
1709
|
}, [
|
|
1710
|
-
|
|
1711
|
-
(
|
|
1712
|
-
key: `breadcrumb-${
|
|
1713
|
-
class: I({ home:
|
|
1710
|
+
d("ol", Vt, [
|
|
1711
|
+
(k(!0), w(F, null, N(e.items, (p, h) => (k(), w("li", {
|
|
1712
|
+
key: `breadcrumb-${h}`,
|
|
1713
|
+
class: I({ home: h === 0 && e.showHomeIcon })
|
|
1714
1714
|
}, [
|
|
1715
|
-
|
|
1716
|
-
href:
|
|
1715
|
+
d("a", {
|
|
1716
|
+
href: p.href || "#",
|
|
1717
1717
|
class: "txt",
|
|
1718
|
-
"aria-current": t(
|
|
1719
|
-
onClick: (
|
|
1718
|
+
"aria-current": t(h) ? "page" : void 0,
|
|
1719
|
+
onClick: (y) => a(p, y)
|
|
1720
1720
|
}, [
|
|
1721
|
-
|
|
1722
|
-
], 8,
|
|
1721
|
+
h === 0 && e.showHomeIcon ? Y("", !0) : (k(), w("span", Et, E(p.text), 1))
|
|
1722
|
+
], 8, zt)
|
|
1723
1723
|
], 2))), 128))
|
|
1724
1724
|
])
|
|
1725
|
-
], 8,
|
|
1725
|
+
], 8, Dt));
|
|
1726
1726
|
}
|
|
1727
1727
|
}), Lt = B({
|
|
1728
1728
|
name: "KrdsInPageNavigation",
|
|
@@ -1759,47 +1759,47 @@ const bt = B({
|
|
|
1759
1759
|
emits: ["itemClick"],
|
|
1760
1760
|
slots: Object,
|
|
1761
1761
|
setup(e, { emit: o, slots: s }) {
|
|
1762
|
-
const n = K(""), t = K(/* @__PURE__ */ new Map()), a =
|
|
1763
|
-
const
|
|
1764
|
-
return e.class &&
|
|
1765
|
-
}),
|
|
1766
|
-
const
|
|
1767
|
-
return
|
|
1768
|
-
},
|
|
1769
|
-
if (o("itemClick",
|
|
1762
|
+
const n = K(""), t = K(/* @__PURE__ */ new Map()), a = g(() => {
|
|
1763
|
+
const m = ["krds-in-page-navigation-type"];
|
|
1764
|
+
return e.class && m.push(e.class), m;
|
|
1765
|
+
}), r = () => {
|
|
1766
|
+
const m = e.headerTopSelector, l = e.headerInnerSelector, u = document.querySelector(m)?.clientHeight || 0, i = document.querySelector(l)?.clientHeight || 0;
|
|
1767
|
+
return u + i;
|
|
1768
|
+
}, v = (m, l) => {
|
|
1769
|
+
if (o("itemClick", m, l), m.href.startsWith("#")) {
|
|
1770
1770
|
l.preventDefault();
|
|
1771
|
-
const
|
|
1772
|
-
if (
|
|
1773
|
-
const
|
|
1771
|
+
const u = document.querySelector(m.href);
|
|
1772
|
+
if (u) {
|
|
1773
|
+
const i = r();
|
|
1774
1774
|
if (window.scrollTo({
|
|
1775
1775
|
left: 0,
|
|
1776
|
-
top:
|
|
1776
|
+
top: u.getBoundingClientRect().top + window.scrollY - i,
|
|
1777
1777
|
behavior: "smooth"
|
|
1778
|
-
}), n.value =
|
|
1779
|
-
const f =
|
|
1778
|
+
}), n.value = m.href, l instanceof KeyboardEvent) {
|
|
1779
|
+
const f = u.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
|
|
1780
1780
|
f && f instanceof HTMLElement && (f.setAttribute("tabindex", "-1"), f.focus({ preventScroll: !0 }));
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
1784
|
-
},
|
|
1785
|
-
t.value.clear(), e.items && e.items.filter((
|
|
1786
|
-
const l = document.querySelector(
|
|
1787
|
-
l && t.value.set(
|
|
1784
|
+
}, p = () => {
|
|
1785
|
+
t.value.clear(), e.items && e.items.filter((m) => m.href.startsWith("#")).forEach((m) => {
|
|
1786
|
+
const l = document.querySelector(m.href);
|
|
1787
|
+
l && t.value.set(m.href, l);
|
|
1788
1788
|
});
|
|
1789
|
-
},
|
|
1789
|
+
}, h = () => {
|
|
1790
1790
|
if (!e.autoActive || !e.items || t.value.size === 0) return;
|
|
1791
|
-
const
|
|
1791
|
+
const m = window.innerHeight, l = Math.ceil(m / 5), u = window.scrollY + m, i = document.body.scrollHeight, f = e.items.filter((z) => z.href.startsWith("#") && t.value.has(z.href)).map((z) => ({
|
|
1792
1792
|
href: z.href,
|
|
1793
1793
|
element: t.value.get(z.href),
|
|
1794
1794
|
item: z
|
|
1795
1795
|
}));
|
|
1796
1796
|
if (f.length === 0) return;
|
|
1797
|
-
const
|
|
1797
|
+
const x = f[0], R = f[f.length - 1], L = x.element.offsetTop;
|
|
1798
1798
|
let M = "";
|
|
1799
|
-
if (
|
|
1799
|
+
if (u >= i)
|
|
1800
1800
|
M = R.href;
|
|
1801
|
-
else if (window.scrollY <=
|
|
1802
|
-
M =
|
|
1801
|
+
else if (window.scrollY <= L)
|
|
1802
|
+
M = x.href;
|
|
1803
1803
|
else
|
|
1804
1804
|
for (const z of f) {
|
|
1805
1805
|
const H = z.element.offsetHeight, V = z.element.offsetTop - l;
|
|
@@ -1809,56 +1809,56 @@ const bt = B({
|
|
|
1809
1809
|
}
|
|
1810
1810
|
}
|
|
1811
1811
|
M && M !== n.value && (n.value = M);
|
|
1812
|
-
},
|
|
1812
|
+
}, y = () => {
|
|
1813
1813
|
if (!e.items) return;
|
|
1814
|
-
const
|
|
1815
|
-
|
|
1814
|
+
const m = e.items.find((l) => l.active);
|
|
1815
|
+
m ? n.value = m.href : e.items.length > 0 && (n.value = e.items[0].href);
|
|
1816
1816
|
};
|
|
1817
1817
|
le(() => {
|
|
1818
|
-
if (
|
|
1819
|
-
|
|
1820
|
-
const
|
|
1821
|
-
|
|
1818
|
+
if (y(), e.autoActive) {
|
|
1819
|
+
p(), h(), window.addEventListener("scroll", h, { passive: !0 });
|
|
1820
|
+
const m = new MutationObserver(() => {
|
|
1821
|
+
p();
|
|
1822
1822
|
});
|
|
1823
|
-
|
|
1823
|
+
m.observe(document.body, {
|
|
1824
1824
|
childList: !0,
|
|
1825
1825
|
subtree: !0
|
|
1826
1826
|
}), X(() => {
|
|
1827
|
-
|
|
1827
|
+
m.disconnect();
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
}), X(() => {
|
|
1831
|
-
e.autoActive && (window.removeEventListener("scroll",
|
|
1831
|
+
e.autoActive && (window.removeEventListener("scroll", h), t.value.clear());
|
|
1832
1832
|
});
|
|
1833
|
-
const
|
|
1834
|
-
e.caption &&
|
|
1835
|
-
e.title &&
|
|
1836
|
-
]),
|
|
1833
|
+
const S = () => !e.caption && !e.title ? null : c("div", { class: "in-page-navigation-header" }, [
|
|
1834
|
+
e.caption && c("p", { class: "quick-caption" }, e.caption),
|
|
1835
|
+
e.title && c("p", { class: "quick-title" }, e.title)
|
|
1836
|
+
]), b = () => {
|
|
1837
1837
|
if (!e.items) return null;
|
|
1838
|
-
const
|
|
1839
|
-
const
|
|
1840
|
-
return
|
|
1841
|
-
|
|
1838
|
+
const m = e.items.map((l) => {
|
|
1839
|
+
const u = n.value === l.href || !e.autoActive && l.active;
|
|
1840
|
+
return c("li", { key: l.href }, [
|
|
1841
|
+
c(
|
|
1842
1842
|
"a",
|
|
1843
1843
|
{
|
|
1844
1844
|
href: l.href,
|
|
1845
|
-
class:
|
|
1846
|
-
onClick: (
|
|
1847
|
-
onKeydown: (
|
|
1848
|
-
(
|
|
1845
|
+
class: u ? "active" : "",
|
|
1846
|
+
onClick: (i) => v(l, i),
|
|
1847
|
+
onKeydown: (i) => {
|
|
1848
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), v(l, i));
|
|
1849
1849
|
}
|
|
1850
1850
|
},
|
|
1851
1851
|
l.text
|
|
1852
1852
|
)
|
|
1853
1853
|
]);
|
|
1854
1854
|
});
|
|
1855
|
-
return
|
|
1856
|
-
}, D = () => s.action ?
|
|
1857
|
-
return () =>
|
|
1858
|
-
|
|
1855
|
+
return c("nav", { class: "in-page-navigation-list" }, [c("ul", {}, m)]);
|
|
1856
|
+
}, D = () => s.action ? c("div", { class: "in-page-navigation-action" }, [s.action()]) : null;
|
|
1857
|
+
return () => c("div", { class: a.value }, [
|
|
1858
|
+
c("div", { class: "krds-in-page-navigation-area" }, [S(), b(), D()].filter(Boolean))
|
|
1859
1859
|
]);
|
|
1860
1860
|
}
|
|
1861
|
-
}),
|
|
1861
|
+
}), Mt = ["id"], Rt = { class: "page-links" }, Tt = ["href", "aria-current", "onClick"], Pt = { key: 0 }, At = ["aria-label"], Ft = /* @__PURE__ */ B({
|
|
1862
1862
|
__name: "KrdsPagination",
|
|
1863
1863
|
props: {
|
|
1864
1864
|
modelValue: { default: 1 },
|
|
@@ -1870,183 +1870,183 @@ const bt = B({
|
|
|
1870
1870
|
},
|
|
1871
1871
|
emits: ["update:modelValue"],
|
|
1872
1872
|
setup(e, { emit: o }) {
|
|
1873
|
-
const s = e, n = o, t =
|
|
1874
|
-
if (!
|
|
1873
|
+
const s = e, n = o, t = g(() => Math.max(1, s.min)), a = g(() => s.modelValue ?? t.value), r = g(() => a.value <= t.value), v = g(() => a.value >= s.max), p = g(() => {
|
|
1874
|
+
if (!r.value)
|
|
1875
1875
|
return "#";
|
|
1876
|
-
}),
|
|
1877
|
-
if (!
|
|
1876
|
+
}), h = g(() => {
|
|
1877
|
+
if (!v.value)
|
|
1878
1878
|
return "#";
|
|
1879
|
-
}),
|
|
1880
|
-
const { pageRange:
|
|
1881
|
-
if (l <=
|
|
1879
|
+
}), y = g(() => {
|
|
1880
|
+
const { pageRange: m, max: l } = s, u = 1, i = [];
|
|
1881
|
+
if (l <= m + 2 * u)
|
|
1882
1882
|
for (let f = t.value; f <= l; f++)
|
|
1883
|
-
|
|
1883
|
+
i.push({
|
|
1884
1884
|
type: "page",
|
|
1885
1885
|
key: `page-${f}`,
|
|
1886
1886
|
page: f,
|
|
1887
1887
|
href: "#"
|
|
1888
1888
|
});
|
|
1889
1889
|
else {
|
|
1890
|
-
const f = Math.min(
|
|
1890
|
+
const f = Math.min(u, l), x = Math.max(l - u + 1, 1), R = Math.max(t.value, a.value - Math.floor(m / 2)), L = Math.min(l, R + m - 1), M = Math.max(t.value, L - m + 1);
|
|
1891
1891
|
for (let V = t.value; V <= f; V++)
|
|
1892
|
-
|
|
1892
|
+
i.push({
|
|
1893
1893
|
type: "page",
|
|
1894
1894
|
key: `page-${V}`,
|
|
1895
1895
|
page: V,
|
|
1896
1896
|
href: "#"
|
|
1897
1897
|
});
|
|
1898
|
-
M > f + 1 &&
|
|
1898
|
+
M > f + 1 && i.push({
|
|
1899
1899
|
type: "ellipsis",
|
|
1900
1900
|
key: "ellipsis-left",
|
|
1901
1901
|
ariaLabel: "페이지 생략"
|
|
1902
1902
|
});
|
|
1903
|
-
const z = Math.max(M, f + 1), H = Math.min(
|
|
1903
|
+
const z = Math.max(M, f + 1), H = Math.min(L, x - 1);
|
|
1904
1904
|
for (let V = z; V <= H; V++)
|
|
1905
|
-
|
|
1905
|
+
i.push({
|
|
1906
1906
|
type: "page",
|
|
1907
1907
|
key: `page-${V}`,
|
|
1908
1908
|
page: V,
|
|
1909
1909
|
href: "#"
|
|
1910
1910
|
});
|
|
1911
|
-
|
|
1911
|
+
L < x - 1 && i.push({
|
|
1912
1912
|
type: "ellipsis",
|
|
1913
1913
|
key: "ellipsis-right",
|
|
1914
1914
|
ariaLabel: "페이지 생략"
|
|
1915
1915
|
});
|
|
1916
|
-
for (let V =
|
|
1917
|
-
|
|
1916
|
+
for (let V = x; V <= l; V++)
|
|
1917
|
+
i.push({
|
|
1918
1918
|
type: "page",
|
|
1919
1919
|
key: `page-${V}`,
|
|
1920
1920
|
page: V,
|
|
1921
1921
|
href: "#"
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
1924
|
-
return
|
|
1925
|
-
}),
|
|
1926
|
-
if (
|
|
1924
|
+
return i;
|
|
1925
|
+
}), S = (m, l) => {
|
|
1926
|
+
if (m === a.value) {
|
|
1927
1927
|
l.preventDefault();
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
1930
|
-
n("update:modelValue",
|
|
1931
|
-
},
|
|
1932
|
-
if (
|
|
1933
|
-
|
|
1930
|
+
n("update:modelValue", m);
|
|
1931
|
+
}, b = (m) => {
|
|
1932
|
+
if (r.value) {
|
|
1933
|
+
m.preventDefault();
|
|
1934
1934
|
return;
|
|
1935
1935
|
}
|
|
1936
1936
|
const l = a.value - 1;
|
|
1937
1937
|
n("update:modelValue", l);
|
|
1938
|
-
}, D = (
|
|
1939
|
-
if (
|
|
1940
|
-
|
|
1938
|
+
}, D = (m) => {
|
|
1939
|
+
if (v.value) {
|
|
1940
|
+
m.preventDefault();
|
|
1941
1941
|
return;
|
|
1942
1942
|
}
|
|
1943
1943
|
const l = a.value + 1;
|
|
1944
1944
|
n("update:modelValue", l);
|
|
1945
1945
|
};
|
|
1946
|
-
return (
|
|
1947
|
-
const
|
|
1948
|
-
return
|
|
1946
|
+
return (m, l) => {
|
|
1947
|
+
const u = Ee("sr-only");
|
|
1948
|
+
return k(), w("div", {
|
|
1949
1949
|
id: e.id,
|
|
1950
1950
|
class: "krds-pagination"
|
|
1951
1951
|
}, [
|
|
1952
|
-
(
|
|
1953
|
-
href:
|
|
1954
|
-
class: I(["page-navi", "prev", { disabled:
|
|
1955
|
-
onClick:
|
|
1952
|
+
(k(), ie(ye(r.value ? "span" : "a"), {
|
|
1953
|
+
href: r.value ? void 0 : p.value,
|
|
1954
|
+
class: I(["page-navi", "prev", { disabled: r.value }]),
|
|
1955
|
+
onClick: b
|
|
1956
1956
|
}, {
|
|
1957
|
-
default:
|
|
1957
|
+
default: re(() => [...l[0] || (l[0] = [
|
|
1958
1958
|
A(" 이전 ", -1)
|
|
1959
1959
|
])]),
|
|
1960
1960
|
_: 1
|
|
1961
1961
|
}, 8, ["href", "class"])),
|
|
1962
|
-
|
|
1963
|
-
(
|
|
1964
|
-
key:
|
|
1962
|
+
d("div", Rt, [
|
|
1963
|
+
(k(!0), w(F, null, N(y.value, (i) => (k(), w(F, {
|
|
1964
|
+
key: i.key
|
|
1965
1965
|
}, [
|
|
1966
|
-
|
|
1966
|
+
i.type === "page" ? (k(), w("a", {
|
|
1967
1967
|
key: 0,
|
|
1968
|
-
href:
|
|
1969
|
-
class: I(["page-link", { active:
|
|
1970
|
-
"aria-current":
|
|
1971
|
-
onClick: (f) =>
|
|
1968
|
+
href: i.href || "#",
|
|
1969
|
+
class: I(["page-link", { active: i.page === a.value }]),
|
|
1970
|
+
"aria-current": i.page === a.value ? "page" : void 0,
|
|
1971
|
+
onClick: (f) => S(i.page, f)
|
|
1972
1972
|
}, [
|
|
1973
|
-
|
|
1973
|
+
i.page === a.value ? Q((k(), w("span", Pt, [...l[1] || (l[1] = [
|
|
1974
1974
|
A("현재페이지", -1)
|
|
1975
1975
|
])])), [
|
|
1976
|
-
[
|
|
1976
|
+
[u]
|
|
1977
1977
|
]) : Y("", !0),
|
|
1978
|
-
A(" " +
|
|
1979
|
-
], 10,
|
|
1978
|
+
A(" " + E(i.page), 1)
|
|
1979
|
+
], 10, Tt)) : i.type === "ellipsis" ? (k(), w("span", {
|
|
1980
1980
|
key: 1,
|
|
1981
1981
|
class: "page-link link-dot",
|
|
1982
|
-
"aria-label":
|
|
1983
|
-
}, null, 8,
|
|
1982
|
+
"aria-label": i.ariaLabel
|
|
1983
|
+
}, null, 8, At)) : Y("", !0)
|
|
1984
1984
|
], 64))), 128))
|
|
1985
1985
|
]),
|
|
1986
|
-
(
|
|
1987
|
-
href:
|
|
1988
|
-
class: I(["page-navi", "next", { disabled:
|
|
1986
|
+
(k(), ie(ye(v.value ? "span" : "a"), {
|
|
1987
|
+
href: v.value ? void 0 : h.value,
|
|
1988
|
+
class: I(["page-navi", "next", { disabled: v.value }]),
|
|
1989
1989
|
onClick: D
|
|
1990
1990
|
}, {
|
|
1991
|
-
default:
|
|
1991
|
+
default: re(() => [...l[2] || (l[2] = [
|
|
1992
1992
|
A(" 다음 ", -1)
|
|
1993
1993
|
])]),
|
|
1994
1994
|
_: 1
|
|
1995
1995
|
}, 8, ["href", "class"]))
|
|
1996
|
-
], 8,
|
|
1996
|
+
], 8, Mt);
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
|
-
}),
|
|
1999
|
+
}), Ot = { class: "inner help-panel-flexible" }, qt = { class: "help-panel-wrap" }, Nt = { class: "help-conts-area" }, Ht = /* @__PURE__ */ B({
|
|
2000
2000
|
__name: "KrdsPanel",
|
|
2001
2001
|
props: {
|
|
2002
2002
|
modelValue: { type: Boolean, default: !1 }
|
|
2003
2003
|
},
|
|
2004
2004
|
emits: ["update:modelValue"],
|
|
2005
2005
|
setup(e, { emit: o }) {
|
|
2006
|
-
const s = e, n = o, t =
|
|
2006
|
+
const s = e, n = o, t = g({
|
|
2007
2007
|
get: () => s.modelValue,
|
|
2008
|
-
set: (
|
|
2008
|
+
set: (v) => n("update:modelValue", v)
|
|
2009
2009
|
}), a = () => {
|
|
2010
2010
|
t.value = !0;
|
|
2011
|
-
},
|
|
2011
|
+
}, r = () => {
|
|
2012
2012
|
t.value = !1;
|
|
2013
2013
|
};
|
|
2014
|
-
return (
|
|
2015
|
-
|
|
2014
|
+
return (v, p) => (k(), w("div", Ot, [
|
|
2015
|
+
d("button", {
|
|
2016
2016
|
type: "button",
|
|
2017
2017
|
class: "krds-btn small tertiary btn-help-panel expand btn-help-exec",
|
|
2018
2018
|
onClick: a
|
|
2019
|
-
}, [...
|
|
2020
|
-
|
|
2019
|
+
}, [...p[0] || (p[0] = [
|
|
2020
|
+
d("i", { class: "svg-icon ico-fold" }, null, -1),
|
|
2021
2021
|
A(" 도움말 ", -1)
|
|
2022
2022
|
])]),
|
|
2023
|
-
|
|
2023
|
+
d("div", {
|
|
2024
2024
|
class: I(["krds-help-panel", { expand: t.value }])
|
|
2025
2025
|
}, [
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
J(
|
|
2029
|
-
|
|
2026
|
+
d("div", qt, [
|
|
2027
|
+
d("div", Nt, [
|
|
2028
|
+
J(v.$slots, "default"),
|
|
2029
|
+
d("button", {
|
|
2030
2030
|
type: "button",
|
|
2031
2031
|
class: "krds-btn small tertiary btn-help-panel fold",
|
|
2032
|
-
onClick:
|
|
2033
|
-
}, [...
|
|
2034
|
-
|
|
2032
|
+
onClick: r
|
|
2033
|
+
}, [...p[1] || (p[1] = [
|
|
2034
|
+
d("span", { class: "sr-only" }, "도움말", -1),
|
|
2035
2035
|
A(" 접어두기 ", -1),
|
|
2036
|
-
|
|
2036
|
+
d("i", { class: "svg-icon ico-angle right" }, null, -1)
|
|
2037
2037
|
])])
|
|
2038
2038
|
])
|
|
2039
2039
|
])
|
|
2040
2040
|
], 2)
|
|
2041
2041
|
]));
|
|
2042
2042
|
}
|
|
2043
|
-
}),
|
|
2043
|
+
}), jt = { class: "tooltip-action" }, Wt = {
|
|
2044
2044
|
key: 0,
|
|
2045
2045
|
class: "svg-icon ico-help"
|
|
2046
|
-
},
|
|
2046
|
+
}, Yt = {
|
|
2047
2047
|
key: 1,
|
|
2048
2048
|
class: "svg-icon ico-tooltip"
|
|
2049
|
-
},
|
|
2049
|
+
}, Gt = { class: "tooltip-title" }, Ut = { class: "tooltip-contents" }, Xt = /* @__PURE__ */ B({
|
|
2050
2050
|
__name: "KrdsContextualHelp",
|
|
2051
2051
|
props: {
|
|
2052
2052
|
tooltipTitle: { default: "도움말 제목" },
|
|
@@ -2054,84 +2054,84 @@ const bt = B({
|
|
|
2054
2054
|
position: { default: "top left" }
|
|
2055
2055
|
},
|
|
2056
2056
|
setup(e) {
|
|
2057
|
-
const o = e, s = K(), n = K(), t = K(), a = K(),
|
|
2058
|
-
const l =
|
|
2059
|
-
|
|
2060
|
-
},
|
|
2057
|
+
const o = e, s = K(), n = K(), t = K(), a = K(), r = K(!1), v = () => {
|
|
2058
|
+
const l = r.value;
|
|
2059
|
+
y(), l || p();
|
|
2060
|
+
}, p = () => {
|
|
2061
2061
|
if (!t.value || !n.value) return;
|
|
2062
|
-
|
|
2063
|
-
},
|
|
2064
|
-
!t.value || !n.value || (
|
|
2065
|
-
},
|
|
2066
|
-
const l = document.querySelectorAll(".krds-contextual-help .tooltip-popover"),
|
|
2067
|
-
l.forEach((
|
|
2068
|
-
|
|
2069
|
-
}),
|
|
2070
|
-
|
|
2071
|
-
}),
|
|
2072
|
-
},
|
|
2062
|
+
r.value = !0, t.value.style.display = "block", n.value.setAttribute("aria-expanded", "true"), t.value.querySelector('a, button, [tabindex="0"], input, textarea, select')?.focus(), S();
|
|
2063
|
+
}, h = () => {
|
|
2064
|
+
!t.value || !n.value || (r.value = !1, t.value.style.display = "none", n.value.setAttribute("aria-expanded", "false"));
|
|
2065
|
+
}, y = () => {
|
|
2066
|
+
const l = document.querySelectorAll(".krds-contextual-help .tooltip-popover"), u = document.querySelectorAll(".krds-contextual-help .tooltip-btn");
|
|
2067
|
+
l.forEach((i) => {
|
|
2068
|
+
i.style.display = "none";
|
|
2069
|
+
}), u.forEach((i) => {
|
|
2070
|
+
i.setAttribute("aria-expanded", "false");
|
|
2071
|
+
}), r.value = !1;
|
|
2072
|
+
}, S = () => {
|
|
2073
2073
|
if (!s.value || !t.value) return;
|
|
2074
|
-
const l = window.innerWidth <= 768,
|
|
2074
|
+
const l = window.innerWidth <= 768, u = s.value.querySelector(".tooltip-action");
|
|
2075
2075
|
if (l) {
|
|
2076
|
-
const f = getComputedStyle(document.querySelector(":root")).getPropertyValue("--krds-contents-padding-x").trim().split("px")[0], R =
|
|
2077
|
-
t.value.style.left = `-${R}px`, t.value.style.width = `${
|
|
2076
|
+
const f = getComputedStyle(document.querySelector(":root")).getPropertyValue("--krds-contents-padding-x").trim().split("px")[0], R = u.getBoundingClientRect().left - parseInt(f), L = document.body.clientWidth - parseInt(f) * 2;
|
|
2077
|
+
t.value.style.left = `-${R}px`, t.value.style.width = `${L}px`;
|
|
2078
2078
|
} else
|
|
2079
2079
|
t.value.style.left = "", t.value.style.right = "", t.value.style.width = "360px";
|
|
2080
|
-
},
|
|
2081
|
-
(l.key === "Escape" || l.key === "Esc") &&
|
|
2080
|
+
}, b = (l) => {
|
|
2081
|
+
(l.key === "Escape" || l.key === "Esc") && y();
|
|
2082
2082
|
}, D = (l) => {
|
|
2083
|
-
l.target.closest(".tooltip-action") ||
|
|
2084
|
-
},
|
|
2085
|
-
|
|
2083
|
+
l.target.closest(".tooltip-action") || y();
|
|
2084
|
+
}, m = () => {
|
|
2085
|
+
r.value && S();
|
|
2086
2086
|
};
|
|
2087
2087
|
return le(() => {
|
|
2088
|
-
s.value && (n.value && n.value.setAttribute("aria-expanded", "false"), t.value && t.value.setAttribute("role", "tooltip"), document.addEventListener("keydown",
|
|
2088
|
+
s.value && (n.value && n.value.setAttribute("aria-expanded", "false"), t.value && t.value.setAttribute("role", "tooltip"), document.addEventListener("keydown", b), document.addEventListener("click", D), window.addEventListener("resize", m));
|
|
2089
2089
|
}), X(() => {
|
|
2090
|
-
document.removeEventListener("keydown",
|
|
2091
|
-
}), (l,
|
|
2090
|
+
document.removeEventListener("keydown", b), document.removeEventListener("click", D), window.removeEventListener("resize", m);
|
|
2091
|
+
}), (l, u) => (k(), w("div", {
|
|
2092
2092
|
ref_key: "containerRef",
|
|
2093
2093
|
ref: s,
|
|
2094
2094
|
class: I(["krds-contextual-help", o.position])
|
|
2095
2095
|
}, [
|
|
2096
|
-
|
|
2097
|
-
|
|
2096
|
+
d("div", jt, [
|
|
2097
|
+
d("button", {
|
|
2098
2098
|
ref_key: "tooltipBtnRef",
|
|
2099
2099
|
ref: n,
|
|
2100
2100
|
type: "button",
|
|
2101
2101
|
class: "krds-btn medium icon tooltip-btn",
|
|
2102
|
-
onClick:
|
|
2102
|
+
onClick: v
|
|
2103
2103
|
}, [
|
|
2104
|
-
|
|
2105
|
-
o.helpIcon ? (
|
|
2104
|
+
u[0] || (u[0] = d("span", { class: "sr-only" }, "도움말", -1)),
|
|
2105
|
+
o.helpIcon ? (k(), w("i", Wt)) : (k(), w("i", Yt))
|
|
2106
2106
|
], 512),
|
|
2107
|
-
|
|
2107
|
+
d("div", {
|
|
2108
2108
|
ref_key: "tooltipPopoverRef",
|
|
2109
2109
|
ref: t,
|
|
2110
2110
|
class: "tooltip-popover",
|
|
2111
2111
|
role: "tooltip"
|
|
2112
2112
|
}, [
|
|
2113
|
-
|
|
2114
|
-
|
|
2113
|
+
d("h4", Gt, E(o.tooltipTitle), 1),
|
|
2114
|
+
d("div", Ut, [
|
|
2115
2115
|
J(l.$slots, "default")
|
|
2116
2116
|
]),
|
|
2117
|
-
|
|
2117
|
+
d("button", {
|
|
2118
2118
|
ref_key: "closeBtnRef",
|
|
2119
2119
|
ref: a,
|
|
2120
2120
|
type: "button",
|
|
2121
2121
|
class: "krds-btn xsmall icon tooltip-close",
|
|
2122
|
-
onClick:
|
|
2123
|
-
}, [...
|
|
2124
|
-
|
|
2125
|
-
|
|
2122
|
+
onClick: h
|
|
2123
|
+
}, [...u[1] || (u[1] = [
|
|
2124
|
+
d("span", { class: "sr-only" }, "닫기", -1),
|
|
2125
|
+
d("i", { class: "svg-icon ico-modal-close" }, null, -1)
|
|
2126
2126
|
])], 512)
|
|
2127
2127
|
], 512)
|
|
2128
2128
|
])
|
|
2129
2129
|
], 2));
|
|
2130
2130
|
}
|
|
2131
|
-
}),
|
|
2131
|
+
}), Jt = {
|
|
2132
2132
|
key: 0,
|
|
2133
2133
|
class: "coach-balloon"
|
|
2134
|
-
},
|
|
2134
|
+
}, Qt = { class: "coach-tit" }, Zt = { class: "desc" }, el = { class: "coach-controls" }, tl = { class: "num" }, ll = { class: "btn-wrap" }, al = /* @__PURE__ */ B({
|
|
2135
2135
|
__name: "KrdsCoachMark",
|
|
2136
2136
|
props: {
|
|
2137
2137
|
coachMarkClass: { default: "" },
|
|
@@ -2144,56 +2144,56 @@ const bt = B({
|
|
|
2144
2144
|
},
|
|
2145
2145
|
emits: ["update:modelValue", "close"],
|
|
2146
2146
|
setup(e, { emit: o }) {
|
|
2147
|
-
const s = e, n =
|
|
2148
|
-
const
|
|
2149
|
-
return s.stepsData &&
|
|
2147
|
+
const s = e, n = g(() => {
|
|
2148
|
+
const p = s.activeStep - 1;
|
|
2149
|
+
return s.stepsData && p >= 0 && p < s.stepsData.length ? s.stepsData[p] : null;
|
|
2150
2150
|
}), t = o, a = () => {
|
|
2151
2151
|
s.activeStep > 1 && t("update:modelValue", s.activeStep - 1);
|
|
2152
|
-
},
|
|
2152
|
+
}, r = () => {
|
|
2153
2153
|
s.activeStep < s.stepsData.length && t("update:modelValue", s.activeStep + 1);
|
|
2154
|
-
},
|
|
2154
|
+
}, v = () => {
|
|
2155
2155
|
t("close");
|
|
2156
2156
|
};
|
|
2157
|
-
return (
|
|
2157
|
+
return (p, h) => (k(), w("div", {
|
|
2158
2158
|
class: I(["krds-coach-mark", e.coachMarkClass]),
|
|
2159
|
-
style:
|
|
2159
|
+
style: ne(e.style)
|
|
2160
2160
|
}, [
|
|
2161
|
-
e.modelValue === e.activeStep && n.value ? (
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2161
|
+
e.modelValue === e.activeStep && n.value ? (k(), w("div", Jt, [
|
|
2162
|
+
h[2] || (h[2] = d("h5", { class: "sr-only" }, "따라하기 가이드", -1)),
|
|
2163
|
+
d("h6", Qt, E(e.activeStep) + "단계 : " + E(n.value.title), 1),
|
|
2164
|
+
d("p", Zt, E(n.value.description), 1),
|
|
2165
|
+
d("div", el, [
|
|
2166
|
+
d("div", tl, [
|
|
2167
|
+
h[0] || (h[0] = d("span", { class: "sr-only" }, "현재 단계", -1)),
|
|
2168
|
+
d("strong", null, E(e.activeStep), 1),
|
|
2169
|
+
h[1] || (h[1] = d("span", { class: "sr-only" }, "총 단계", -1)),
|
|
2170
|
+
d("span", null, E(e.stepsData.length), 1)
|
|
2171
2171
|
]),
|
|
2172
|
-
|
|
2173
|
-
|
|
2172
|
+
d("div", ll, [
|
|
2173
|
+
d("button", {
|
|
2174
2174
|
type: "button",
|
|
2175
2175
|
class: "krds-btn small text",
|
|
2176
|
-
onClick:
|
|
2176
|
+
onClick: v
|
|
2177
2177
|
}, "그만보기"),
|
|
2178
|
-
e.activeStep !== 1 ? (
|
|
2178
|
+
e.activeStep !== 1 ? (k(), w("button", {
|
|
2179
2179
|
key: 0,
|
|
2180
2180
|
type: "button",
|
|
2181
2181
|
class: "krds-btn small text",
|
|
2182
2182
|
onClick: a
|
|
2183
2183
|
}, "이전으로")) : Y("", !0),
|
|
2184
|
-
e.activeStep !== e.stepsData.length ? (
|
|
2184
|
+
e.activeStep !== e.stepsData.length ? (k(), w("button", {
|
|
2185
2185
|
key: 1,
|
|
2186
2186
|
type: "button",
|
|
2187
2187
|
class: "krds-btn small tertiary",
|
|
2188
|
-
onClick:
|
|
2188
|
+
onClick: r
|
|
2189
2189
|
}, "다음으로")) : Y("", !0)
|
|
2190
2190
|
])
|
|
2191
2191
|
])
|
|
2192
2192
|
])) : Y("", !0),
|
|
2193
|
-
J(
|
|
2193
|
+
J(p.$slots, "coach-mark-content")
|
|
2194
2194
|
], 6));
|
|
2195
2195
|
}
|
|
2196
|
-
}),
|
|
2196
|
+
}), nl = ["disabled", "aria-labelledby"], sl = ["id", "aria-hidden"], ol = { class: "sr-only" }, il = /* @__PURE__ */ B({
|
|
2197
2197
|
__name: "KrdsTooltip",
|
|
2198
2198
|
props: {
|
|
2199
2199
|
type: { default: "default" },
|
|
@@ -2206,83 +2206,83 @@ const bt = B({
|
|
|
2206
2206
|
id: {}
|
|
2207
2207
|
},
|
|
2208
2208
|
setup(e) {
|
|
2209
|
-
const o = e, s = K(null), n = K(null), t = K(!1), a = K({}),
|
|
2209
|
+
const o = e, s = K(null), n = K(null), t = K(!1), a = K({}), r = K(`tooltip-popover-${Math.random().toString(36).substring(2, 9)}`), v = K(!1), p = g(() => {
|
|
2210
2210
|
const f = ["krds-btn", "krds-tooltip"];
|
|
2211
2211
|
return o.type === "default" ? f.push("small", "text") : o.type === "icon" ? f.push("icon") : o.type === "button" && f.push(""), !o.box && o.vertical && f.push("tooltip-vertical"), o.box && !o.vertical && f.push("tooltip-box"), f.join(" ");
|
|
2212
|
-
}),
|
|
2212
|
+
}), h = g(() => {
|
|
2213
2213
|
const f = [];
|
|
2214
2214
|
return o.box && f.push("tooltip-box"), o.vertical && f.push("tooltip-vertical"), t.value && f.push("active"), f;
|
|
2215
|
-
}),
|
|
2215
|
+
}), y = g(() => s.value?.querySelector("button")?.textContent?.trim() || ""), S = () => window.innerWidth <= 768, b = () => {
|
|
2216
2216
|
if (!s.value || !n.value) return;
|
|
2217
2217
|
const f = s.value.querySelector("button");
|
|
2218
2218
|
if (!f) return;
|
|
2219
|
-
const
|
|
2219
|
+
const x = 12, { clientHeight: R, clientWidth: L } = n.value, { top: M, left: z, right: H, height: V, width: j } = f.getBoundingClientRect(), Z = window.innerWidth / 2, se = window.innerHeight / 2;
|
|
2220
2220
|
let U, O;
|
|
2221
2221
|
const q = [];
|
|
2222
|
-
|
|
2222
|
+
v.value || o.box || o.vertical ? (M + V > se ? (U = M - R - x, q.push("top")) : (U = M + V + x, q.push("bottom")), z + j > Z ? (O = H - L, q.push("right"), window.innerWidth - (z + j) > L / 2 && (O = z + (j - L) / 2, q.splice(q.indexOf("right"), 1))) : (O = z + (j - L) / 2, O < 0 && (O = z, q.push("left")))) : (U = M + (V - R) / 2, z + j > Z ? (O = z - L - x, q.push("right")) : O = H + x);
|
|
2223
2223
|
const ee = window.innerWidth <= 420;
|
|
2224
2224
|
a.value = {
|
|
2225
2225
|
top: `${U}px`,
|
|
2226
2226
|
left: ee ? "50%" : `${O}px`,
|
|
2227
2227
|
transform: ee ? "translateX(-50%)" : "none"
|
|
2228
|
-
}, n.value && (n.value.className = `krds-tooltip-popover ${q.join(" ")} ${
|
|
2228
|
+
}, n.value && (n.value.className = `krds-tooltip-popover ${q.join(" ")} ${h.value.join(" ")}`);
|
|
2229
2229
|
}, D = async () => {
|
|
2230
|
-
o.disabled || !o.tooltipContent || (t.value = !0, await
|
|
2231
|
-
},
|
|
2230
|
+
o.disabled || !o.tooltipContent || (t.value = !0, await we(), b());
|
|
2231
|
+
}, m = () => {
|
|
2232
2232
|
t.value = !1, a.value = {};
|
|
2233
2233
|
}, l = (f) => {
|
|
2234
|
-
(f.key === "Escape" || f.key === "Esc") && t.value &&
|
|
2235
|
-
}, h = () => {
|
|
2236
|
-
d.value = x(), t.value && p();
|
|
2234
|
+
(f.key === "Escape" || f.key === "Esc") && t.value && m();
|
|
2237
2235
|
}, u = () => {
|
|
2238
|
-
t.value &&
|
|
2236
|
+
v.value = S(), t.value && m();
|
|
2237
|
+
}, i = () => {
|
|
2238
|
+
t.value && m();
|
|
2239
2239
|
};
|
|
2240
2240
|
return le(() => {
|
|
2241
|
-
|
|
2241
|
+
v.value = S(), document.addEventListener("keydown", l), window.addEventListener("scroll", i), window.addEventListener("resize", u);
|
|
2242
2242
|
}), X(() => {
|
|
2243
|
-
document.removeEventListener("keydown", l), window.removeEventListener("scroll",
|
|
2244
|
-
}), (f,
|
|
2243
|
+
document.removeEventListener("keydown", l), window.removeEventListener("scroll", i), window.removeEventListener("resize", u);
|
|
2244
|
+
}), (f, x) => (k(), w("div", {
|
|
2245
2245
|
ref_key: "containerRef",
|
|
2246
2246
|
ref: s
|
|
2247
2247
|
}, [
|
|
2248
|
-
|
|
2248
|
+
d("button", {
|
|
2249
2249
|
type: "button",
|
|
2250
|
-
class: I(
|
|
2250
|
+
class: I(p.value),
|
|
2251
2251
|
disabled: e.disabled,
|
|
2252
|
-
"aria-labelledby":
|
|
2252
|
+
"aria-labelledby": r.value,
|
|
2253
2253
|
onMouseover: D,
|
|
2254
|
-
onMouseout:
|
|
2254
|
+
onMouseout: m,
|
|
2255
2255
|
onFocusin: D,
|
|
2256
|
-
onFocusout:
|
|
2256
|
+
onFocusout: m
|
|
2257
2257
|
}, [
|
|
2258
2258
|
J(f.$slots, "default")
|
|
2259
|
-
], 42,
|
|
2260
|
-
Q(
|
|
2261
|
-
id:
|
|
2259
|
+
], 42, nl),
|
|
2260
|
+
Q(d("div", {
|
|
2261
|
+
id: r.value,
|
|
2262
2262
|
ref_key: "popoverRef",
|
|
2263
2263
|
ref: n,
|
|
2264
|
-
class: I(["krds-tooltip-popover",
|
|
2265
|
-
style:
|
|
2264
|
+
class: I(["krds-tooltip-popover", h.value]),
|
|
2265
|
+
style: ne(a.value),
|
|
2266
2266
|
"aria-hidden": !t.value,
|
|
2267
2267
|
role: "tooltip"
|
|
2268
2268
|
}, [
|
|
2269
|
-
|
|
2270
|
-
A(" " +
|
|
2271
|
-
], 14,
|
|
2269
|
+
d("span", ol, E(y.value), 1),
|
|
2270
|
+
A(" " + E(e.tooltipContent), 1)
|
|
2271
|
+
], 14, sl), [
|
|
2272
2272
|
[te, t.value]
|
|
2273
2273
|
])
|
|
2274
2274
|
], 512));
|
|
2275
2275
|
}
|
|
2276
|
-
}),
|
|
2276
|
+
}), rl = ["aria-expanded"], dl = { class: "drop-in" }, ul = {
|
|
2277
2277
|
key: 0,
|
|
2278
2278
|
class: "drop-top"
|
|
2279
|
-
},
|
|
2279
|
+
}, cl = {
|
|
2280
2280
|
key: 1,
|
|
2281
2281
|
class: "drop-list"
|
|
2282
|
-
},
|
|
2282
|
+
}, fl = ["lang", "aria-selected", "onClick"], vl = { class: "sr-only" }, pl = {
|
|
2283
2283
|
key: 2,
|
|
2284
2284
|
class: "drop-list"
|
|
2285
|
-
},
|
|
2285
|
+
}, ml = ["href", "lang"], hl = /* @__PURE__ */ B({
|
|
2286
2286
|
__name: "KrdsLanguageSwitcher",
|
|
2287
2287
|
props: {
|
|
2288
2288
|
languageList: {},
|
|
@@ -2295,37 +2295,37 @@ const bt = B({
|
|
|
2295
2295
|
},
|
|
2296
2296
|
emits: ["update:modelValue", "close"],
|
|
2297
2297
|
setup(e, { emit: o }) {
|
|
2298
|
-
const s = e, n = o, t = K(!1), a = K(),
|
|
2299
|
-
t.value = !t.value, t.value && a.value &&
|
|
2300
|
-
},
|
|
2298
|
+
const s = e, n = o, t = K(!1), a = K(), r = K(), v = () => {
|
|
2299
|
+
t.value = !t.value, t.value && a.value && y();
|
|
2300
|
+
}, p = () => {
|
|
2301
2301
|
t.value = !1;
|
|
2302
|
-
},
|
|
2303
|
-
n("update:modelValue", l),
|
|
2304
|
-
},
|
|
2302
|
+
}, h = (l) => {
|
|
2303
|
+
n("update:modelValue", l), p(), n("close"), r.value?.focus();
|
|
2304
|
+
}, y = () => {
|
|
2305
2305
|
if (!a.value) return;
|
|
2306
2306
|
const l = a.value.querySelector(".drop-menu");
|
|
2307
2307
|
if (!l) return;
|
|
2308
|
-
const
|
|
2309
|
-
a.value.classList.remove("drop-left", "drop-right"),
|
|
2310
|
-
},
|
|
2311
|
-
l.key === "Escape" && (
|
|
2312
|
-
},
|
|
2313
|
-
a.value?.contains(l.target) ||
|
|
2308
|
+
const u = l.getBoundingClientRect(), i = window.innerWidth;
|
|
2309
|
+
a.value.classList.remove("drop-left", "drop-right"), u.left < 0 ? a.value.classList.add("drop-left") : i < u.left + u.width && a.value.classList.add("drop-right");
|
|
2310
|
+
}, S = (l) => {
|
|
2311
|
+
l.key === "Escape" && (p(), r.value?.focus());
|
|
2312
|
+
}, b = (l) => {
|
|
2313
|
+
a.value?.contains(l.target) || p();
|
|
2314
2314
|
}, D = (l) => {
|
|
2315
|
-
a.value?.contains(l.relatedTarget) ||
|
|
2316
|
-
},
|
|
2315
|
+
a.value?.contains(l.relatedTarget) || p();
|
|
2316
|
+
}, m = (l) => {
|
|
2317
2317
|
if (!a.value) return;
|
|
2318
2318
|
a.value.querySelectorAll(".drop-list .item-link").forEach((f) => {
|
|
2319
2319
|
f.style.position = "relative", f.style.zIndex = "0";
|
|
2320
2320
|
});
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2321
|
+
const i = l.target;
|
|
2322
|
+
i.style.zIndex = "1";
|
|
2323
2323
|
};
|
|
2324
|
-
return
|
|
2325
|
-
l ? (document.addEventListener("keydown",
|
|
2324
|
+
return ae(t, (l) => {
|
|
2325
|
+
l ? (document.addEventListener("keydown", S), document.addEventListener("click", b)) : (document.removeEventListener("keydown", S), document.removeEventListener("click", b));
|
|
2326
2326
|
}), X(() => {
|
|
2327
|
-
document.removeEventListener("keydown",
|
|
2328
|
-
}), (l,
|
|
2327
|
+
document.removeEventListener("keydown", S), document.removeEventListener("click", b);
|
|
2328
|
+
}), (l, u) => (k(), w("div", {
|
|
2329
2329
|
ref_key: "dropdownRef",
|
|
2330
2330
|
ref: a,
|
|
2331
2331
|
class: I(["krds-drop-wrap krds-language", {
|
|
@@ -2335,150 +2335,150 @@ const bt = B({
|
|
|
2335
2335
|
}]),
|
|
2336
2336
|
onFocusout: D
|
|
2337
2337
|
}, [
|
|
2338
|
-
|
|
2338
|
+
d("button", {
|
|
2339
2339
|
ref_key: "buttonRef",
|
|
2340
|
-
ref:
|
|
2340
|
+
ref: r,
|
|
2341
2341
|
type: "button",
|
|
2342
2342
|
class: I(["krds-btn small text drop-btn", { active: t.value }]),
|
|
2343
2343
|
"aria-expanded": t.value,
|
|
2344
|
-
onClick:
|
|
2344
|
+
onClick: v
|
|
2345
2345
|
}, [
|
|
2346
|
-
|
|
2346
|
+
u[0] || (u[0] = d("i", { class: "svg-icon ico-global" }, null, -1)),
|
|
2347
2347
|
J(l.$slots, "default"),
|
|
2348
|
-
|
|
2349
|
-
], 10,
|
|
2350
|
-
|
|
2348
|
+
u[1] || (u[1] = d("i", { class: "svg-icon ico-toggle" }, null, -1))
|
|
2349
|
+
], 10, rl),
|
|
2350
|
+
d("div", {
|
|
2351
2351
|
class: "drop-menu",
|
|
2352
|
-
style:
|
|
2352
|
+
style: ne({ display: t.value ? "block" : "none" })
|
|
2353
2353
|
}, [
|
|
2354
|
-
|
|
2355
|
-
l.$slots["prev-item"] ? (
|
|
2354
|
+
d("div", dl, [
|
|
2355
|
+
l.$slots["prev-item"] ? (k(), w("div", ul, [
|
|
2356
2356
|
J(l.$slots, "prev-item")
|
|
2357
2357
|
])) : Y("", !0),
|
|
2358
|
-
s.type === "default" ? (
|
|
2359
|
-
(
|
|
2360
|
-
key:
|
|
2358
|
+
s.type === "default" ? (k(), w("ul", cl, [
|
|
2359
|
+
(k(!0), w(F, null, N(e.languageList, (i) => (k(), w("li", {
|
|
2360
|
+
key: i.code
|
|
2361
2361
|
}, [
|
|
2362
|
-
|
|
2362
|
+
d("a", {
|
|
2363
2363
|
href: "#",
|
|
2364
|
-
class: I(["item-link", { active: s.modelValue ===
|
|
2365
|
-
lang:
|
|
2366
|
-
"aria-selected": s.modelValue ===
|
|
2367
|
-
onClick:
|
|
2368
|
-
onFocus:
|
|
2364
|
+
class: I(["item-link", { active: s.modelValue === i.code }]),
|
|
2365
|
+
lang: i.code,
|
|
2366
|
+
"aria-selected": s.modelValue === i.code,
|
|
2367
|
+
onClick: de((f) => h(i.code), ["prevent"]),
|
|
2368
|
+
onFocus: m
|
|
2369
2369
|
}, [
|
|
2370
|
-
A(
|
|
2371
|
-
|
|
2372
|
-
], 42,
|
|
2370
|
+
A(E(i.name) + " ", 1),
|
|
2371
|
+
d("span", vl, E(s.modelValue === i.code ? "선택됨" : ""), 1)
|
|
2372
|
+
], 42, fl)
|
|
2373
2373
|
]))), 128))
|
|
2374
|
-
])) : s.type === "external" ? (
|
|
2375
|
-
(
|
|
2376
|
-
key:
|
|
2374
|
+
])) : s.type === "external" ? (k(), w("ul", pl, [
|
|
2375
|
+
(k(!0), w(F, null, N(e.languageList, (i) => (k(), w("li", {
|
|
2376
|
+
key: i.code
|
|
2377
2377
|
}, [
|
|
2378
|
-
|
|
2379
|
-
href:
|
|
2378
|
+
d("a", {
|
|
2379
|
+
href: i.url || "#",
|
|
2380
2380
|
class: "item-link",
|
|
2381
|
-
lang:
|
|
2381
|
+
lang: i.code,
|
|
2382
2382
|
target: "_blank",
|
|
2383
2383
|
title: "새 창 열림",
|
|
2384
|
-
onFocus:
|
|
2384
|
+
onFocus: m
|
|
2385
2385
|
}, [
|
|
2386
|
-
A(
|
|
2387
|
-
|
|
2388
|
-
], 40,
|
|
2386
|
+
A(E(i.name) + " ", 1),
|
|
2387
|
+
u[2] || (u[2] = d("i", { class: "svg-icon ico-go" }, null, -1))
|
|
2388
|
+
], 40, ml)
|
|
2389
2389
|
]))), 128))
|
|
2390
2390
|
])) : Y("", !0)
|
|
2391
2391
|
])
|
|
2392
2392
|
], 4)
|
|
2393
2393
|
], 34));
|
|
2394
2394
|
}
|
|
2395
|
-
}),
|
|
2395
|
+
}), yl = { class: "drop-in" }, gl = { class: "drop-list" }, bl = ["data-adjust-scale", "onClick"], kl = { class: "drop-bottom" }, Sl = /* @__PURE__ */ B({
|
|
2396
2396
|
__name: "KrdsResize",
|
|
2397
2397
|
emits: ["update:modelValue", "close"],
|
|
2398
2398
|
setup(e, { emit: o }) {
|
|
2399
|
-
const s = o, n = K(!1), t = K(), a = K(),
|
|
2399
|
+
const s = o, n = K(!1), t = K(), a = K(), r = K("md"), v = [
|
|
2400
2400
|
{ key: "sm", label: "작게", zoom: "0.9" },
|
|
2401
2401
|
{ key: "md", label: "보통", zoom: "1" },
|
|
2402
2402
|
{ key: "lg", label: "조금 크게", zoom: "1.1" },
|
|
2403
2403
|
{ key: "xlg", label: "크게", zoom: "1.3" },
|
|
2404
2404
|
{ key: "xxlg", label: "가장 크게", zoom: "1.5" }
|
|
2405
|
-
],
|
|
2406
|
-
n.value = !n.value, n.value && t.value &&
|
|
2407
|
-
},
|
|
2405
|
+
], p = () => {
|
|
2406
|
+
n.value = !n.value, n.value && t.value && b();
|
|
2407
|
+
}, h = () => {
|
|
2408
2408
|
n.value = !1;
|
|
2409
|
-
},
|
|
2410
|
-
|
|
2411
|
-
},
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2414
|
-
},
|
|
2409
|
+
}, y = (i) => {
|
|
2410
|
+
h(), s("close"), a.value?.focus(), r.value = i.key, document.body.style.zoom = i?.zoom;
|
|
2411
|
+
}, S = () => {
|
|
2412
|
+
const i = v.find((f) => f.key === "md");
|
|
2413
|
+
i && y(i);
|
|
2414
|
+
}, b = () => {
|
|
2415
2415
|
if (!t.value) return;
|
|
2416
|
-
const
|
|
2417
|
-
if (!
|
|
2418
|
-
const f =
|
|
2419
|
-
t.value.classList.remove("drop-left", "drop-right"), f.left < 0 ? t.value.classList.add("drop-left") :
|
|
2420
|
-
}, D = (
|
|
2421
|
-
|
|
2422
|
-
},
|
|
2423
|
-
t.value?.contains(
|
|
2424
|
-
}, l = (
|
|
2425
|
-
t.value?.contains(
|
|
2426
|
-
},
|
|
2416
|
+
const i = t.value.querySelector(".drop-menu");
|
|
2417
|
+
if (!i) return;
|
|
2418
|
+
const f = i.getBoundingClientRect(), x = window.innerWidth;
|
|
2419
|
+
t.value.classList.remove("drop-left", "drop-right"), f.left < 0 ? t.value.classList.add("drop-left") : x < f.left + f.width && t.value.classList.add("drop-right");
|
|
2420
|
+
}, D = (i) => {
|
|
2421
|
+
i.key === "Escape" && (h(), a.value?.focus());
|
|
2422
|
+
}, m = (i) => {
|
|
2423
|
+
t.value?.contains(i.target) || h();
|
|
2424
|
+
}, l = (i) => {
|
|
2425
|
+
t.value?.contains(i.relatedTarget) || h();
|
|
2426
|
+
}, u = (i) => {
|
|
2427
2427
|
if (!t.value) return;
|
|
2428
2428
|
t.value.querySelectorAll(".drop-list .item-link").forEach((R) => {
|
|
2429
2429
|
R.style.position = "relative", R.style.zIndex = "0";
|
|
2430
2430
|
});
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2431
|
+
const x = i.target;
|
|
2432
|
+
x.style.zIndex = "1";
|
|
2433
2433
|
};
|
|
2434
|
-
return
|
|
2435
|
-
|
|
2434
|
+
return ae(n, (i) => {
|
|
2435
|
+
i ? (document.addEventListener("keydown", D), document.addEventListener("click", m)) : (document.removeEventListener("keydown", D), document.removeEventListener("click", m));
|
|
2436
2436
|
}), X(() => {
|
|
2437
|
-
document.removeEventListener("keydown", D), document.removeEventListener("click",
|
|
2438
|
-
}), (
|
|
2437
|
+
document.removeEventListener("keydown", D), document.removeEventListener("click", m);
|
|
2438
|
+
}), (i, f) => (k(), w("div", {
|
|
2439
2439
|
ref_key: "dropdownRef",
|
|
2440
2440
|
ref: t,
|
|
2441
2441
|
class: "krds-drop-wrap krds-resize",
|
|
2442
2442
|
"data-adjust": "scale",
|
|
2443
2443
|
onFocusout: l
|
|
2444
2444
|
}, [
|
|
2445
|
-
|
|
2445
|
+
d("button", {
|
|
2446
2446
|
ref_key: "buttonRef",
|
|
2447
2447
|
ref: a,
|
|
2448
2448
|
type: "button",
|
|
2449
2449
|
class: "krds-btn small text drop-btn",
|
|
2450
|
-
onClick:
|
|
2450
|
+
onClick: p
|
|
2451
2451
|
}, [...f[0] || (f[0] = [
|
|
2452
2452
|
A(" 화면크기 ", -1),
|
|
2453
|
-
|
|
2453
|
+
d("i", { class: "svg-icon ico-toggle" }, null, -1)
|
|
2454
2454
|
])], 512),
|
|
2455
|
-
|
|
2455
|
+
d("div", {
|
|
2456
2456
|
class: "drop-menu",
|
|
2457
|
-
style:
|
|
2457
|
+
style: ne({ display: n.value ? "block" : "none" })
|
|
2458
2458
|
}, [
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
(
|
|
2462
|
-
key:
|
|
2459
|
+
d("div", yl, [
|
|
2460
|
+
d("ul", gl, [
|
|
2461
|
+
(k(), w(F, null, N(v, (x) => d("li", {
|
|
2462
|
+
key: x.key
|
|
2463
2463
|
}, [
|
|
2464
|
-
|
|
2464
|
+
d("button", {
|
|
2465
2465
|
type: "button",
|
|
2466
|
-
class: I(["item-link", [
|
|
2467
|
-
"data-adjust-scale":
|
|
2468
|
-
onClick:
|
|
2469
|
-
onFocus:
|
|
2470
|
-
},
|
|
2466
|
+
class: I(["item-link", [x.key, x.key === r.value ? "active" : ""]]),
|
|
2467
|
+
"data-adjust-scale": x.key,
|
|
2468
|
+
onClick: de((R) => y(x), ["prevent"]),
|
|
2469
|
+
onFocus: u
|
|
2470
|
+
}, E(x.label), 43, bl)
|
|
2471
2471
|
])), 64))
|
|
2472
2472
|
]),
|
|
2473
|
-
|
|
2474
|
-
|
|
2473
|
+
d("div", kl, [
|
|
2474
|
+
d("button", {
|
|
2475
2475
|
type: "button",
|
|
2476
2476
|
class: "krds-btn medium text",
|
|
2477
2477
|
"data-adjust-scale": "md",
|
|
2478
|
-
onClick:
|
|
2479
|
-
onFocus:
|
|
2478
|
+
onClick: de(S, ["prevent"]),
|
|
2479
|
+
onFocus: u
|
|
2480
2480
|
}, [...f[1] || (f[1] = [
|
|
2481
|
-
|
|
2481
|
+
d("i", { class: "svg-icon ico-reset" }, null, -1),
|
|
2482
2482
|
A(" 초기화 ", -1)
|
|
2483
2483
|
])], 32)
|
|
2484
2484
|
])
|
|
@@ -2486,41 +2486,166 @@ const bt = B({
|
|
|
2486
2486
|
], 4)
|
|
2487
2487
|
], 544));
|
|
2488
2488
|
}
|
|
2489
|
+
}), wl = B({
|
|
2490
|
+
name: "KrdsModal",
|
|
2491
|
+
props: {
|
|
2492
|
+
modelValue: {
|
|
2493
|
+
type: Boolean,
|
|
2494
|
+
default: !1
|
|
2495
|
+
},
|
|
2496
|
+
modalId: {
|
|
2497
|
+
type: String,
|
|
2498
|
+
default: void 0
|
|
2499
|
+
},
|
|
2500
|
+
backdrop: {
|
|
2501
|
+
type: Boolean,
|
|
2502
|
+
default: !0
|
|
2503
|
+
},
|
|
2504
|
+
size: {
|
|
2505
|
+
type: String,
|
|
2506
|
+
default: "medium"
|
|
2507
|
+
},
|
|
2508
|
+
full: {
|
|
2509
|
+
type: Boolean,
|
|
2510
|
+
default: !1
|
|
2511
|
+
},
|
|
2512
|
+
bottomSheet: {
|
|
2513
|
+
type: Boolean,
|
|
2514
|
+
default: !1
|
|
2515
|
+
},
|
|
2516
|
+
persistent: {
|
|
2517
|
+
type: Boolean,
|
|
2518
|
+
default: !1
|
|
2519
|
+
}
|
|
2520
|
+
},
|
|
2521
|
+
emits: ["update:modelValue"],
|
|
2522
|
+
slots: Object,
|
|
2523
|
+
setup(e, { slots: o, emit: s }) {
|
|
2524
|
+
const n = Ie()?.uid, t = g(() => e.modalId ?? `krds-modal-${n}`), a = g({
|
|
2525
|
+
get: () => e.modelValue,
|
|
2526
|
+
set: (u) => s("update:modelValue", u)
|
|
2527
|
+
}), r = g(() => `tit_${t.value}`), v = g(() => ({
|
|
2528
|
+
small: "modal-sm",
|
|
2529
|
+
medium: "modal-md",
|
|
2530
|
+
large: "modal-lg"
|
|
2531
|
+
})[e.size]), p = () => {
|
|
2532
|
+
a.value = !1;
|
|
2533
|
+
};
|
|
2534
|
+
let h = "", y = null;
|
|
2535
|
+
const S = K(null), b = (u) => Array.from(u.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(
|
|
2536
|
+
(f) => !f.hasAttribute("disabled") && f.getAttribute("tabindex") !== "-1"
|
|
2537
|
+
), D = (u) => {
|
|
2538
|
+
if (!S.value || u.key !== "Tab") return;
|
|
2539
|
+
const i = b(S.value);
|
|
2540
|
+
if (i.length === 0) {
|
|
2541
|
+
u.preventDefault();
|
|
2542
|
+
return;
|
|
2543
|
+
}
|
|
2544
|
+
const f = i[0], x = i[i.length - 1];
|
|
2545
|
+
u.shiftKey && document.activeElement === f ? (u.preventDefault(), x.focus()) : !u.shiftKey && document.activeElement === x && (u.preventDefault(), f.focus());
|
|
2546
|
+
}, m = (u) => {
|
|
2547
|
+
u.key === "Escape" && !e.persistent && p();
|
|
2548
|
+
}, l = () => {
|
|
2549
|
+
document.body.style.overflow = h, document.removeEventListener("keydown", D), document.removeEventListener("keydown", m), y && (y.focus(), y = null), S.value = null;
|
|
2550
|
+
};
|
|
2551
|
+
return ae(
|
|
2552
|
+
() => e.modelValue,
|
|
2553
|
+
async (u) => {
|
|
2554
|
+
if (u) {
|
|
2555
|
+
h = document.body.style.overflow, document.body.style.overflow = "hidden", y = document.activeElement, await we();
|
|
2556
|
+
const i = document.getElementById(t.value);
|
|
2557
|
+
if (i) {
|
|
2558
|
+
S.value = i;
|
|
2559
|
+
const f = i.querySelector(".modal-conts");
|
|
2560
|
+
f && (f.setAttribute("tabindex", "-1"), f.focus()), document.addEventListener("keydown", D), document.addEventListener("keydown", m);
|
|
2561
|
+
}
|
|
2562
|
+
} else
|
|
2563
|
+
l();
|
|
2564
|
+
},
|
|
2565
|
+
{ immediate: !0 }
|
|
2566
|
+
), Se(() => {
|
|
2567
|
+
e.modelValue && l();
|
|
2568
|
+
}), () => {
|
|
2569
|
+
if (!a.value) return null;
|
|
2570
|
+
const u = {
|
|
2571
|
+
id: t.value,
|
|
2572
|
+
class: "krds-modal fade in shown",
|
|
2573
|
+
role: "dialog",
|
|
2574
|
+
"aria-modal": !0,
|
|
2575
|
+
"aria-labelledby": r.value
|
|
2576
|
+
};
|
|
2577
|
+
return e.full ? u["data-type"] = "full" : e.bottomSheet && (u["data-type"] = "bottom-sheet"), c(
|
|
2578
|
+
Le,
|
|
2579
|
+
{ to: "body" },
|
|
2580
|
+
c("section", u, [
|
|
2581
|
+
c("div", { class: `modal-dialog ${v.value}` }, [
|
|
2582
|
+
c(
|
|
2583
|
+
"div",
|
|
2584
|
+
{ class: "modal-content" },
|
|
2585
|
+
[
|
|
2586
|
+
// modal title
|
|
2587
|
+
o.title ? c("div", { class: "modal-header" }, [c("h2", { id: r.value, class: "modal-title" }, o.title())]) : null,
|
|
2588
|
+
// modal contents
|
|
2589
|
+
c("div", { class: "modal-conts" }, [c("div", { class: "conts-area" }, o.default?.())]),
|
|
2590
|
+
// modal btn
|
|
2591
|
+
o.footer ? c("div", { class: "modal-btn btn-wrap" }, o.footer()) : null,
|
|
2592
|
+
// close button
|
|
2593
|
+
c(
|
|
2594
|
+
"button",
|
|
2595
|
+
{
|
|
2596
|
+
type: "button",
|
|
2597
|
+
class: "krds-btn medium icon btn-close close-modal",
|
|
2598
|
+
onClick: p
|
|
2599
|
+
},
|
|
2600
|
+
[c("span", { class: "sr-only" }, "닫기"), c("i", { class: "svg-icon ico-popup-close" })]
|
|
2601
|
+
)
|
|
2602
|
+
].filter(Boolean)
|
|
2603
|
+
)
|
|
2604
|
+
]),
|
|
2605
|
+
c("div", {
|
|
2606
|
+
class: e.backdrop ? "modal-back in" : "modal-back",
|
|
2607
|
+
onClick: e.persistent ? void 0 : p
|
|
2608
|
+
})
|
|
2609
|
+
])
|
|
2610
|
+
);
|
|
2611
|
+
};
|
|
2612
|
+
}
|
|
2489
2613
|
}), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2490
2614
|
__proto__: null,
|
|
2491
|
-
KrdsBadge:
|
|
2492
|
-
KrdsBreadcrumb:
|
|
2493
|
-
KrdsButton:
|
|
2494
|
-
KrdsButtonGroup:
|
|
2495
|
-
KrdsCheckArea:
|
|
2496
|
-
KrdsCheckbox:
|
|
2497
|
-
KrdsCoachMark:
|
|
2498
|
-
KrdsContextualHelp:
|
|
2499
|
-
KrdsDateInput:
|
|
2500
|
-
KrdsFileUpload:
|
|
2501
|
-
KrdsFormGroup:
|
|
2502
|
-
KrdsFormHint:
|
|
2503
|
-
KrdsFormLabel:
|
|
2504
|
-
KrdsIcon:
|
|
2615
|
+
KrdsBadge: yt,
|
|
2616
|
+
KrdsBreadcrumb: It,
|
|
2617
|
+
KrdsButton: Ce,
|
|
2618
|
+
KrdsButtonGroup: Me,
|
|
2619
|
+
KrdsCheckArea: Ct,
|
|
2620
|
+
KrdsCheckbox: xt,
|
|
2621
|
+
KrdsCoachMark: al,
|
|
2622
|
+
KrdsContextualHelp: Xt,
|
|
2623
|
+
KrdsDateInput: vt,
|
|
2624
|
+
KrdsFileUpload: ht,
|
|
2625
|
+
KrdsFormGroup: Oe,
|
|
2626
|
+
KrdsFormHint: Fe,
|
|
2627
|
+
KrdsFormLabel: Ae,
|
|
2628
|
+
KrdsIcon: Re,
|
|
2505
2629
|
KrdsInPageNavigation: Lt,
|
|
2506
|
-
KrdsInput:
|
|
2507
|
-
KrdsLanguageSwitcher:
|
|
2508
|
-
KrdsLink:
|
|
2509
|
-
KrdsMasthead:
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2630
|
+
KrdsInput: Pe,
|
|
2631
|
+
KrdsLanguageSwitcher: hl,
|
|
2632
|
+
KrdsLink: Te,
|
|
2633
|
+
KrdsMasthead: kt,
|
|
2634
|
+
KrdsModal: wl,
|
|
2635
|
+
KrdsPagination: Ft,
|
|
2636
|
+
KrdsPanel: Ht,
|
|
2637
|
+
KrdsRadio: _t,
|
|
2638
|
+
KrdsResize: Sl,
|
|
2639
|
+
KrdsSelect: mt,
|
|
2640
|
+
KrdsSkipLink: $t,
|
|
2641
|
+
KrdsSpinner: xe,
|
|
2642
|
+
KrdsStep: Kt,
|
|
2643
|
+
KrdsStepIndicator: Bt,
|
|
2644
|
+
KrdsTag: gt,
|
|
2645
|
+
KrdsTagGroup: bt,
|
|
2646
|
+
KrdsTextarea: pt,
|
|
2647
|
+
KrdsToggleSwitch: wt,
|
|
2648
|
+
KrdsTooltip: il
|
|
2524
2649
|
}, Symbol.toStringTag, { value: "Module" })), fe = {
|
|
2525
2650
|
mounted(e, o) {
|
|
2526
2651
|
o.value !== !1 && e.classList.add("sr-only");
|
|
@@ -2531,66 +2656,67 @@ const bt = B({
|
|
|
2531
2656
|
unmounted(e) {
|
|
2532
2657
|
e.classList.remove("sr-only");
|
|
2533
2658
|
}
|
|
2534
|
-
},
|
|
2659
|
+
}, be = {
|
|
2535
2660
|
"sr-only": fe
|
|
2536
|
-
},
|
|
2661
|
+
}, _e = (e) => {
|
|
2537
2662
|
e.directive("sr-only", fe);
|
|
2538
|
-
},
|
|
2663
|
+
}, ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2539
2664
|
__proto__: null,
|
|
2540
|
-
default:
|
|
2541
|
-
directives:
|
|
2542
|
-
installDirectives:
|
|
2665
|
+
default: be,
|
|
2666
|
+
directives: be,
|
|
2667
|
+
installDirectives: _e,
|
|
2543
2668
|
vSrOnly: fe
|
|
2544
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2669
|
+
}, Symbol.toStringTag, { value: "Module" })), _l = {
|
|
2545
2670
|
install(e, o = {}) {
|
|
2546
2671
|
e.provide("krds:config", o);
|
|
2547
2672
|
const s = o.components || Object.keys(ge);
|
|
2548
2673
|
s.forEach((n) => {
|
|
2549
2674
|
const t = ge[n];
|
|
2550
2675
|
t && e.component(n, t);
|
|
2551
|
-
}), typeof
|
|
2676
|
+
}), typeof ke == "object" && ke !== null && _e(e), e.config.globalProperties.$krds = {
|
|
2552
2677
|
version: "__VERSION__"
|
|
2553
2678
|
}, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${s.length}개`);
|
|
2554
2679
|
}
|
|
2555
|
-
},
|
|
2680
|
+
}, Bl = "__VERSION__";
|
|
2556
2681
|
export {
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2682
|
+
yt as KrdsBadge,
|
|
2683
|
+
It as KrdsBreadcrumb,
|
|
2684
|
+
Ce as KrdsButton,
|
|
2685
|
+
Me as KrdsButtonGroup,
|
|
2686
|
+
Ct as KrdsCheckArea,
|
|
2687
|
+
xt as KrdsCheckbox,
|
|
2688
|
+
al as KrdsCoachMark,
|
|
2689
|
+
Xt as KrdsContextualHelp,
|
|
2690
|
+
vt as KrdsDateInput,
|
|
2691
|
+
ht as KrdsFileUpload,
|
|
2692
|
+
Oe as KrdsFormGroup,
|
|
2693
|
+
Fe as KrdsFormHint,
|
|
2694
|
+
Ae as KrdsFormLabel,
|
|
2695
|
+
Re as KrdsIcon,
|
|
2571
2696
|
Lt as KrdsInPageNavigation,
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2697
|
+
Pe as KrdsInput,
|
|
2698
|
+
hl as KrdsLanguageSwitcher,
|
|
2699
|
+
Te as KrdsLink,
|
|
2700
|
+
kt as KrdsMasthead,
|
|
2701
|
+
wl as KrdsModal,
|
|
2702
|
+
Ft as KrdsPagination,
|
|
2703
|
+
Ht as KrdsPanel,
|
|
2704
|
+
_t as KrdsRadio,
|
|
2705
|
+
Sl as KrdsResize,
|
|
2706
|
+
mt as KrdsSelect,
|
|
2707
|
+
$t as KrdsSkipLink,
|
|
2708
|
+
xe as KrdsSpinner,
|
|
2709
|
+
Kt as KrdsStep,
|
|
2710
|
+
Bt as KrdsStepIndicator,
|
|
2711
|
+
gt as KrdsTag,
|
|
2712
|
+
bt as KrdsTagGroup,
|
|
2713
|
+
pt as KrdsTextarea,
|
|
2714
|
+
wt as KrdsToggleSwitch,
|
|
2715
|
+
il as KrdsTooltip,
|
|
2590
2716
|
ce as classNames,
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2717
|
+
_l as default,
|
|
2718
|
+
ue as generateId,
|
|
2719
|
+
xl as generateUid,
|
|
2720
|
+
Bl as version
|
|
2595
2721
|
};
|
|
2596
2722
|
//# sourceMappingURL=krds-vue.es.js.map
|