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