@krds.ui/vue 0.0.5 → 0.0.7
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 +761 -582
- package/dist/krds-vue.es.js.map +1 -1
- package/dist/krds-vue.umd.js +1 -1
- package/dist/krds-vue.umd.js.map +1 -1
- package/dist/types/index.d.ts +71 -1
- package/package.json +1 -2
package/dist/krds-vue.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as w, computed as d, h as r, ref as M, onMounted as ue, onBeforeUnmount as Be, createElementBlock as D, openBlock as B, createElementVNode as m, normalizeClass as P, withDirectives as j, unref as I, toDisplayString as L, Fragment as O, renderList as q, vShow as G, createBlock as W, withCtx as U, createTextVNode as H, watch as _e, provide as De, inject as Ke, createCommentVNode as J, onUnmounted as ne, resolveDirective as xe, resolveDynamicComponent as se } from "vue";
|
|
2
|
+
const de = w({
|
|
3
3
|
name: "KrdsButton",
|
|
4
4
|
props: {
|
|
5
5
|
type: {
|
|
@@ -36,12 +36,12 @@ const oe = C({
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["click"],
|
|
39
|
-
setup(e, { emit:
|
|
40
|
-
const l =
|
|
39
|
+
setup(e, { emit: s, slots: n }) {
|
|
40
|
+
const l = d(() => {
|
|
41
41
|
const t = ["krds-btn"];
|
|
42
42
|
return e.icon && t.push("icon"), e.border && t.push("border"), e.pure && t.push("pure"), e.variant && !e.icon && t.push(e.variant), e.size && t.push(e.size), e.class && t.push(e.class), t;
|
|
43
43
|
}), o = (t) => {
|
|
44
|
-
e.disabled ||
|
|
44
|
+
e.disabled || s("click", t);
|
|
45
45
|
};
|
|
46
46
|
return () => r(
|
|
47
47
|
"button",
|
|
@@ -51,22 +51,22 @@ const oe = C({
|
|
|
51
51
|
disabled: e.disabled,
|
|
52
52
|
onClick: o
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
n.default?.()
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), Ve = w({
|
|
58
58
|
name: "KrdsButtonGroup",
|
|
59
59
|
props: {},
|
|
60
|
-
setup(e, { slots:
|
|
60
|
+
setup(e, { slots: s }) {
|
|
61
61
|
return () => r(
|
|
62
62
|
"div",
|
|
63
63
|
{
|
|
64
64
|
class: "btn-group"
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
s.default?.()
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), Ie = w({
|
|
70
70
|
name: "KrdsIcon",
|
|
71
71
|
props: {
|
|
72
72
|
name: {
|
|
@@ -83,7 +83,7 @@ const oe = C({
|
|
|
83
83
|
class: ["svg-icon", e.name, e.class].filter(Boolean).join(" ")
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
}), ze =
|
|
86
|
+
}), ze = w({
|
|
87
87
|
name: "KrdsLink",
|
|
88
88
|
props: {
|
|
89
89
|
href: {
|
|
@@ -120,18 +120,18 @@ const oe = C({
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
emits: ["click"],
|
|
123
|
-
setup(e, { emit:
|
|
124
|
-
const l =
|
|
123
|
+
setup(e, { emit: s, slots: n }) {
|
|
124
|
+
const l = d(() => {
|
|
125
125
|
const a = ["krds-btn"];
|
|
126
126
|
return e.size && a.push(e.size), e.link && a.push("link"), e.basic && a.push("basic"), e.pure && a.push("pure"), e.class && a.push(e.class), a;
|
|
127
|
-
}), o =
|
|
127
|
+
}), o = d(() => {
|
|
128
128
|
const a = {
|
|
129
129
|
href: e.href,
|
|
130
130
|
class: l.value
|
|
131
131
|
};
|
|
132
132
|
return e.target && (a.target = e.target), e.title && (a.title = e.title), e.target === "_blank" && (a.rel = "noopener noreferrer"), a;
|
|
133
133
|
}), t = (a) => {
|
|
134
|
-
|
|
134
|
+
s("click", a);
|
|
135
135
|
};
|
|
136
136
|
return () => r(
|
|
137
137
|
"a",
|
|
@@ -139,10 +139,10 @@ const oe = C({
|
|
|
139
139
|
...o.value,
|
|
140
140
|
onClick: t
|
|
141
141
|
},
|
|
142
|
-
|
|
142
|
+
n.default?.()
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
}),
|
|
145
|
+
}), ce = w({
|
|
146
146
|
name: "KrdsSpinner",
|
|
147
147
|
props: {
|
|
148
148
|
label: {
|
|
@@ -154,7 +154,7 @@ const oe = C({
|
|
|
154
154
|
const e = [r("span", { class: "sr-only" }, "로딩 중")];
|
|
155
155
|
return this.label && e.push(r("span", this.label)), r("div", { class: "krds-spinner", role: "status" }, e);
|
|
156
156
|
}
|
|
157
|
-
}), Me =
|
|
157
|
+
}), Me = w({
|
|
158
158
|
name: "KrdsInput",
|
|
159
159
|
props: {
|
|
160
160
|
modelValue: {
|
|
@@ -243,24 +243,24 @@ const oe = C({
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
|
|
246
|
-
setup(e, { emit:
|
|
247
|
-
const l =
|
|
246
|
+
setup(e, { emit: s, slots: n }) {
|
|
247
|
+
const l = d(() => {
|
|
248
248
|
const y = ["krds-input"];
|
|
249
249
|
return e.size && y.push(e.size), e.class && y.push(e.class), y;
|
|
250
250
|
}), o = (y) => {
|
|
251
|
-
const $ = y.target,
|
|
252
|
-
|
|
251
|
+
const $ = y.target, c = e.type === "number" ? Number($.value) : $.value;
|
|
252
|
+
s("update:modelValue", c), s("input", y);
|
|
253
253
|
}, t = (y) => {
|
|
254
|
-
|
|
254
|
+
s("change", y);
|
|
255
255
|
}, a = (y) => {
|
|
256
|
-
|
|
256
|
+
s("focus", y);
|
|
257
257
|
}, u = (y) => {
|
|
258
|
-
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
},
|
|
258
|
+
s("blur", y);
|
|
259
|
+
}, f = (y) => {
|
|
260
|
+
s("keydown", y);
|
|
261
|
+
}, p = (y) => {
|
|
262
|
+
s("keyup", y);
|
|
263
|
+
}, g = d(() => {
|
|
264
264
|
const y = {
|
|
265
265
|
type: e.type,
|
|
266
266
|
class: l.value,
|
|
@@ -277,20 +277,20 @@ const oe = C({
|
|
|
277
277
|
onChange: t,
|
|
278
278
|
onFocus: a,
|
|
279
279
|
onBlur: u,
|
|
280
|
-
onKeydown:
|
|
281
|
-
onKeyup:
|
|
280
|
+
onKeydown: f,
|
|
281
|
+
onKeyup: p
|
|
282
282
|
};
|
|
283
283
|
return e.maxlength !== void 0 && (y.maxlength = e.maxlength), e.minlength !== void 0 && (y.minlength = e.minlength), e.type === "number" && (e.max !== void 0 && (y.max = e.max), e.min !== void 0 && (y.min = e.min), e.step !== void 0 && (y.step = e.step)), y;
|
|
284
|
-
}),
|
|
284
|
+
}), _ = d(() => {
|
|
285
285
|
const y = ["form-conts"];
|
|
286
286
|
return e.state !== "default" && y.push(`is-${e.state}`), e.icon && y.push("btn-ico-wrap"), y;
|
|
287
287
|
});
|
|
288
288
|
return () => {
|
|
289
|
-
const y = [r("input",
|
|
290
|
-
return e.loading ? r("div", { class:
|
|
289
|
+
const y = [r("input", g.value)];
|
|
290
|
+
return e.loading ? r("div", { class: _.value }, [r("div", { class: "form-spinner" }, [...y, r(ce)])]) : (n.default && y.push(...n.default()), r("div", { class: _.value }, y));
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
}), $e =
|
|
293
|
+
}), $e = w({
|
|
294
294
|
name: "KrdsFormLabel",
|
|
295
295
|
props: {
|
|
296
296
|
for: {
|
|
@@ -311,9 +311,9 @@ const oe = C({
|
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
emits: ["click"],
|
|
314
|
-
setup(e, { emit:
|
|
314
|
+
setup(e, { emit: s, slots: n }) {
|
|
315
315
|
const l = (o) => {
|
|
316
|
-
|
|
316
|
+
s("click", o);
|
|
317
317
|
};
|
|
318
318
|
return () => r("div", { class: "form-tit" }, [
|
|
319
319
|
r(
|
|
@@ -325,11 +325,11 @@ const oe = C({
|
|
|
325
325
|
style: e.style,
|
|
326
326
|
onClick: l
|
|
327
327
|
},
|
|
328
|
-
|
|
328
|
+
n.default?.()
|
|
329
329
|
)
|
|
330
330
|
]);
|
|
331
331
|
}
|
|
332
|
-
}),
|
|
332
|
+
}), Ne = w({
|
|
333
333
|
name: "KrdsFormHint",
|
|
334
334
|
props: {
|
|
335
335
|
type: {
|
|
@@ -350,9 +350,9 @@ const oe = C({
|
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
emits: ["click"],
|
|
353
|
-
setup(e, { emit:
|
|
353
|
+
setup(e, { emit: s, slots: n }) {
|
|
354
354
|
const l = (t) => {
|
|
355
|
-
|
|
355
|
+
s("click", t);
|
|
356
356
|
}, o = () => {
|
|
357
357
|
let t;
|
|
358
358
|
switch (e.type) {
|
|
@@ -379,10 +379,10 @@ const oe = C({
|
|
|
379
379
|
style: e.style,
|
|
380
380
|
onClick: l
|
|
381
381
|
},
|
|
382
|
-
|
|
382
|
+
n.default?.()
|
|
383
383
|
);
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), Pe = w({
|
|
386
386
|
name: "KrdsFormGroup",
|
|
387
387
|
props: {
|
|
388
388
|
class: {
|
|
@@ -398,8 +398,8 @@ const oe = C({
|
|
|
398
398
|
default: void 0
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
|
-
setup(e, { slots:
|
|
402
|
-
const
|
|
401
|
+
setup(e, { slots: s }) {
|
|
402
|
+
const n = d(() => {
|
|
403
403
|
const l = ["form-group"];
|
|
404
404
|
return e.class && l.push(e.class), l;
|
|
405
405
|
});
|
|
@@ -407,33 +407,33 @@ const oe = C({
|
|
|
407
407
|
"div",
|
|
408
408
|
{
|
|
409
409
|
id: e.id,
|
|
410
|
-
class:
|
|
410
|
+
class: n.value,
|
|
411
411
|
style: e.style
|
|
412
412
|
},
|
|
413
|
-
|
|
413
|
+
s.default?.()
|
|
414
414
|
);
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
|
-
function
|
|
418
|
-
const
|
|
419
|
-
const
|
|
420
|
-
for (let
|
|
421
|
-
|
|
422
|
-
return
|
|
423
|
-
}),
|
|
417
|
+
function Le(e, s) {
|
|
418
|
+
const n = /* @__PURE__ */ new Date(), l = M(e || n.getFullYear()), o = M(s || n.getMonth() + 1), t = M(null), a = M(null), u = M(null), f = d(() => {
|
|
419
|
+
const b = n.getFullYear(), h = [];
|
|
420
|
+
for (let S = b - 10; S <= b + 10; S++)
|
|
421
|
+
h.push(S);
|
|
422
|
+
return h;
|
|
423
|
+
}), p = d(() => Array.from({ length: 12 }, (b, h) => h + 1)), g = () => {
|
|
424
424
|
t.value = null, a.value = null;
|
|
425
|
-
},
|
|
425
|
+
}, _ = () => {
|
|
426
426
|
o.value === 1 ? (o.value = 12, l.value -= 1) : o.value -= 1;
|
|
427
427
|
}, y = () => {
|
|
428
428
|
o.value === 12 ? (o.value = 1, l.value += 1) : o.value += 1;
|
|
429
|
-
}, $ = (
|
|
430
|
-
if (
|
|
431
|
-
t.value =
|
|
429
|
+
}, $ = (b, h = !1) => {
|
|
430
|
+
if (h)
|
|
431
|
+
t.value = b, a.value = b;
|
|
432
432
|
else if (!t.value || t.value && a.value)
|
|
433
|
-
t.value =
|
|
433
|
+
t.value = b, a.value = null;
|
|
434
434
|
else {
|
|
435
|
-
const
|
|
436
|
-
new Date(
|
|
435
|
+
const S = new Date(t.value.replace(/\./g, "-"));
|
|
436
|
+
new Date(b.replace(/\./g, "-")) < S ? (t.value = b, a.value = null) : a.value = b;
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
return {
|
|
@@ -444,48 +444,48 @@ function Ne(e, i) {
|
|
|
444
444
|
selectedEndDate: a,
|
|
445
445
|
activeDateSelector: u,
|
|
446
446
|
// Computed
|
|
447
|
-
yearOptions:
|
|
448
|
-
monthOptions:
|
|
447
|
+
yearOptions: f,
|
|
448
|
+
monthOptions: p,
|
|
449
449
|
// Methods
|
|
450
|
-
clearDateSelection:
|
|
451
|
-
prevMonth:
|
|
450
|
+
clearDateSelection: g,
|
|
451
|
+
prevMonth: _,
|
|
452
452
|
nextMonth: y,
|
|
453
453
|
handleDateSelection: $,
|
|
454
454
|
selectToday: () => {
|
|
455
|
-
const
|
|
456
|
-
$(
|
|
455
|
+
const b = `${n.getFullYear()}.${String(n.getMonth() + 1).padStart(2, "0")}.${String(n.getDate()).padStart(2, "0")}`;
|
|
456
|
+
$(b, !0);
|
|
457
457
|
},
|
|
458
|
-
isDateInSelectedRange: (
|
|
458
|
+
isDateInSelectedRange: (b) => {
|
|
459
459
|
if (!t.value || !a.value)
|
|
460
460
|
return { isInRange: !1, isStart: !1, isEnd: !1 };
|
|
461
|
-
const
|
|
462
|
-
return { isInRange:
|
|
461
|
+
const h = new Date(b.replace(/\./g, "-")), S = new Date(t.value.replace(/\./g, "-")), x = new Date(a.value.replace(/\./g, "-")), A = b === t.value, T = b === a.value;
|
|
462
|
+
return { isInRange: h >= S && h <= x, isStart: A, isEnd: T };
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function Te(e,
|
|
466
|
+
function Te(e, s, n = {}) {
|
|
467
467
|
let l = null;
|
|
468
|
-
const o = typeof
|
|
469
|
-
l = (
|
|
470
|
-
const
|
|
471
|
-
e.value?.contains(
|
|
468
|
+
const o = typeof n == "string" ? { ignore: n } : n, { ignore: t, event: a = "click" } = o, u = () => {
|
|
469
|
+
l = (p) => {
|
|
470
|
+
const g = p.target;
|
|
471
|
+
e.value?.contains(g) || t && g.closest(t) || s();
|
|
472
472
|
}, document.addEventListener(a, l);
|
|
473
|
-
},
|
|
473
|
+
}, f = () => {
|
|
474
474
|
if (l) {
|
|
475
|
-
const
|
|
476
|
-
document.removeEventListener(
|
|
475
|
+
const p = typeof n == "string" ? "click" : n.event || "click";
|
|
476
|
+
document.removeEventListener(p, l), l = null;
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
return
|
|
479
|
+
return ue(() => {
|
|
480
480
|
u();
|
|
481
|
-
}),
|
|
482
|
-
|
|
481
|
+
}), Be(() => {
|
|
482
|
+
f();
|
|
483
483
|
}), {
|
|
484
484
|
setupGlobalListeners: u,
|
|
485
|
-
removeGlobalListeners:
|
|
485
|
+
removeGlobalListeners: f
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
const
|
|
488
|
+
const Ee = { class: "form-conts" }, Oe = { class: "calendar-input" }, Ae = ["id", "name", "placeholder", "value", "readonly", "disabled", "required", "autofocus"], Fe = ["disabled", "aria-expanded"], qe = { class: "calendar-head" }, Re = { class: "calendar-switch-wrap" }, He = { class: "calendar-drop-down" }, je = ["aria-expanded"], Ye = { class: "calendar-select calendar-year-wrap" }, Ge = { class: "sel year" }, We = ["onClick"], Ue = { class: "calendar-drop-down" }, Je = ["aria-expanded"], Qe = { class: "calendar-select calendar-mon-wrap" }, Xe = { class: "sel month" }, Ze = ["onClick"], et = { class: "calendar-body" }, tt = { class: "calendar-table-wrap" }, at = { class: "calendar-tbl" }, lt = ["data-date"], nt = ["aria-pressed", "onClick"], st = { class: "calendar-footer" }, it = { class: "calendar-btn-wrap" }, rt = /* @__PURE__ */ w({
|
|
489
489
|
__name: "KrdsDateInput",
|
|
490
490
|
props: {
|
|
491
491
|
modelValue: { default: void 0 },
|
|
@@ -505,66 +505,66 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
505
505
|
id: { default: void 0 }
|
|
506
506
|
},
|
|
507
507
|
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
508
|
-
setup(e, { emit:
|
|
509
|
-
const
|
|
510
|
-
currentYear:
|
|
511
|
-
currentMonth:
|
|
512
|
-
selectedStartDate:
|
|
513
|
-
selectedEndDate:
|
|
508
|
+
setup(e, { emit: s }) {
|
|
509
|
+
const n = e, l = s, o = M(), t = M(), a = M(!1), u = M(null), {
|
|
510
|
+
currentYear: f,
|
|
511
|
+
currentMonth: p,
|
|
512
|
+
selectedStartDate: g,
|
|
513
|
+
selectedEndDate: _,
|
|
514
514
|
yearOptions: y,
|
|
515
515
|
monthOptions: $,
|
|
516
|
-
prevMonth:
|
|
517
|
-
nextMonth:
|
|
518
|
-
handleDateSelection:
|
|
519
|
-
selectToday:
|
|
520
|
-
isDateInSelectedRange:
|
|
521
|
-
} =
|
|
516
|
+
prevMonth: c,
|
|
517
|
+
nextMonth: i,
|
|
518
|
+
handleDateSelection: b,
|
|
519
|
+
selectToday: h,
|
|
520
|
+
isDateInSelectedRange: S
|
|
521
|
+
} = Le(n.initialYear, n.initialMonth), x = () => {
|
|
522
522
|
a.value && t.value?.focus(), a.value = !1, u.value = null;
|
|
523
523
|
};
|
|
524
|
-
Te(o,
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
return
|
|
528
|
-
}), T =
|
|
524
|
+
Te(o, x, ".calendar-conts");
|
|
525
|
+
const A = d(() => {
|
|
526
|
+
const v = ["krds-input", "datepicker", "cal"];
|
|
527
|
+
return n.size && v.push(n.size), n.class && v.push(n.class), v;
|
|
528
|
+
}), T = d(() => ["form-conts", "calendar-conts"]), N = d(() => ({
|
|
529
529
|
"krds-calendar-area": !0,
|
|
530
530
|
active: a.value
|
|
531
|
-
})), z =
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
for (let
|
|
536
|
-
const
|
|
537
|
-
for (let
|
|
538
|
-
const we = `${
|
|
539
|
-
|
|
540
|
-
day:
|
|
531
|
+
})), z = d(() => {
|
|
532
|
+
const v = f.value, k = p.value, C = new Date(v, k - 1, 1), F = new Date(C);
|
|
533
|
+
F.setDate(F.getDate() - C.getDay());
|
|
534
|
+
const E = [], V = new Date(F);
|
|
535
|
+
for (let Y = 0; Y < 6; Y++) {
|
|
536
|
+
const te = [];
|
|
537
|
+
for (let ae = 0; ae < 7; ae++) {
|
|
538
|
+
const we = `${V.getFullYear()}.${String(V.getMonth() + 1).padStart(2, "0")}.${String(V.getDate()).padStart(2, "0")}`, le = V.getDay();
|
|
539
|
+
te.push({
|
|
540
|
+
day: V.getDate(),
|
|
541
541
|
dateString: we,
|
|
542
|
-
isCurrentMonth:
|
|
543
|
-
isToday:
|
|
544
|
-
isPrevMonth:
|
|
545
|
-
isNextMonth:
|
|
546
|
-
isSunday:
|
|
547
|
-
isSaturday:
|
|
548
|
-
}),
|
|
542
|
+
isCurrentMonth: V.getMonth() === k - 1,
|
|
543
|
+
isToday: V.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
|
|
544
|
+
isPrevMonth: V.getMonth() < k - 1 || V.getMonth() === 11 && k === 1,
|
|
545
|
+
isNextMonth: V.getMonth() > k - 1 || V.getMonth() === 0 && k === 12,
|
|
546
|
+
isSunday: le === 0,
|
|
547
|
+
isSaturday: le === 6
|
|
548
|
+
}), V.setDate(V.getDate() + 1);
|
|
549
549
|
}
|
|
550
|
-
|
|
550
|
+
E.push(te);
|
|
551
551
|
}
|
|
552
|
-
return
|
|
553
|
-
}),
|
|
554
|
-
const
|
|
555
|
-
if (
|
|
556
|
-
const
|
|
557
|
-
|
|
552
|
+
return E;
|
|
553
|
+
}), R = (v) => {
|
|
554
|
+
const k = [];
|
|
555
|
+
if (v.isPrevMonth && k.push("old"), v.isNextMonth && k.push("new"), v.isToday && k.push("today"), v.isSunday && k.push("day-off"), n.holidays?.includes(v.dateString) && k.push("day-off"), n.eventDates?.includes(v.dateString) && k.push("day-event"), v.isCurrentMonth) {
|
|
556
|
+
const C = S(v.dateString);
|
|
557
|
+
C.isInRange && (k.push("period"), C.isStart && k.push("start"), C.isEnd && k.push("end"));
|
|
558
558
|
}
|
|
559
|
-
return
|
|
560
|
-
},
|
|
559
|
+
return k;
|
|
560
|
+
}, K = d(() => [
|
|
561
561
|
{
|
|
562
562
|
id: "get-today",
|
|
563
563
|
label: "오늘",
|
|
564
564
|
class: "text",
|
|
565
565
|
variant: void 0,
|
|
566
566
|
size: "small",
|
|
567
|
-
handler:
|
|
567
|
+
handler: h
|
|
568
568
|
},
|
|
569
569
|
{
|
|
570
570
|
id: "cancel-btn",
|
|
@@ -572,7 +572,7 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
572
572
|
class: void 0,
|
|
573
573
|
variant: "tertiary",
|
|
574
574
|
size: "small",
|
|
575
|
-
handler:
|
|
575
|
+
handler: x
|
|
576
576
|
},
|
|
577
577
|
{
|
|
578
578
|
id: "confirm-btn",
|
|
@@ -582,132 +582,132 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
582
582
|
size: "small",
|
|
583
583
|
handler: ge
|
|
584
584
|
}
|
|
585
|
-
]),
|
|
586
|
-
u.value ===
|
|
587
|
-
}, ve = (
|
|
588
|
-
|
|
589
|
-
}, he = (
|
|
590
|
-
|
|
585
|
+
]), ee = (v) => {
|
|
586
|
+
u.value === v ? u.value = null : u.value = v;
|
|
587
|
+
}, ve = (v) => {
|
|
588
|
+
f.value = v, u.value = null;
|
|
589
|
+
}, he = (v) => {
|
|
590
|
+
p.value = v, u.value = null;
|
|
591
591
|
}, ge = () => {
|
|
592
|
-
if (
|
|
593
|
-
if (
|
|
594
|
-
const
|
|
595
|
-
l("update:modelValue",
|
|
592
|
+
if (g.value) {
|
|
593
|
+
if (_.value && g.value !== _.value) {
|
|
594
|
+
const v = `${g.value} ~ ${_.value}`;
|
|
595
|
+
l("update:modelValue", v);
|
|
596
596
|
} else
|
|
597
|
-
l("update:modelValue",
|
|
598
|
-
|
|
597
|
+
l("update:modelValue", g.value);
|
|
598
|
+
x();
|
|
599
599
|
}
|
|
600
|
-
},
|
|
600
|
+
}, me = () => {
|
|
601
601
|
a.value = !0, u.value = null, setTimeout(() => {
|
|
602
602
|
o.value?.querySelector(".calendar-wrap")?.focus();
|
|
603
603
|
}, 50);
|
|
604
|
-
},
|
|
605
|
-
a.value ?
|
|
606
|
-
},
|
|
607
|
-
|
|
608
|
-
}, be = (
|
|
609
|
-
const
|
|
610
|
-
l("update:modelValue",
|
|
611
|
-
}, ke = (
|
|
612
|
-
l("change",
|
|
613
|
-
}, Se = (
|
|
614
|
-
l("focus",
|
|
615
|
-
}, Ce = (
|
|
616
|
-
l("blur",
|
|
604
|
+
}, ye = () => {
|
|
605
|
+
a.value ? x() : me();
|
|
606
|
+
}, pe = (v) => {
|
|
607
|
+
v.code === "Escape" && (u.value ? u.value = null : a.value && x());
|
|
608
|
+
}, be = (v) => {
|
|
609
|
+
const k = v.target;
|
|
610
|
+
l("update:modelValue", k.value), l("input", v);
|
|
611
|
+
}, ke = (v) => {
|
|
612
|
+
l("change", v);
|
|
613
|
+
}, Se = (v) => {
|
|
614
|
+
l("focus", v);
|
|
615
|
+
}, Ce = (v) => {
|
|
616
|
+
l("blur", v);
|
|
617
617
|
};
|
|
618
|
-
return (
|
|
619
|
-
|
|
620
|
-
class:
|
|
618
|
+
return (v, k) => (B(), D("div", Ee, [
|
|
619
|
+
m("div", {
|
|
620
|
+
class: P(T.value)
|
|
621
621
|
}, [
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
id:
|
|
625
|
-
name:
|
|
626
|
-
class:
|
|
627
|
-
placeholder:
|
|
628
|
-
value:
|
|
629
|
-
readonly:
|
|
630
|
-
disabled:
|
|
631
|
-
required:
|
|
632
|
-
autofocus:
|
|
622
|
+
m("div", Oe, [
|
|
623
|
+
m("input", {
|
|
624
|
+
id: v.id,
|
|
625
|
+
name: v.name,
|
|
626
|
+
class: P(A.value),
|
|
627
|
+
placeholder: v.placeholder,
|
|
628
|
+
value: v.modelValue,
|
|
629
|
+
readonly: v.readonly,
|
|
630
|
+
disabled: v.disabled,
|
|
631
|
+
required: v.required,
|
|
632
|
+
autofocus: v.autofocus,
|
|
633
633
|
type: "text",
|
|
634
634
|
onInput: be,
|
|
635
635
|
onChange: ke,
|
|
636
636
|
onFocus: Se,
|
|
637
637
|
onBlur: Ce
|
|
638
|
-
}, null, 42,
|
|
639
|
-
|
|
638
|
+
}, null, 42, Ae),
|
|
639
|
+
m("button", {
|
|
640
640
|
ref_key: "datePickerButtonRef",
|
|
641
641
|
ref: t,
|
|
642
|
-
class:
|
|
643
|
-
disabled:
|
|
642
|
+
class: P(`krds-btn ${v.size || "medium"} icon form-btn-datepicker`),
|
|
643
|
+
disabled: v.disabled,
|
|
644
644
|
"aria-expanded": a.value,
|
|
645
645
|
type: "button",
|
|
646
|
-
onClick:
|
|
647
|
-
}, [...
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
])], 10,
|
|
646
|
+
onClick: ye
|
|
647
|
+
}, [...k[4] || (k[4] = [
|
|
648
|
+
m("span", { class: "sr-only" }, "달력 열기", -1),
|
|
649
|
+
m("i", { class: "svg-icon ico-calendar" }, null, -1)
|
|
650
|
+
])], 10, Fe)
|
|
651
651
|
]),
|
|
652
|
-
|
|
652
|
+
m("div", {
|
|
653
653
|
ref_key: "datePickerAreaRef",
|
|
654
654
|
ref: o,
|
|
655
|
-
class:
|
|
655
|
+
class: P(N.value)
|
|
656
656
|
}, [
|
|
657
|
-
|
|
657
|
+
j(m("div", {
|
|
658
658
|
class: "calendar-wrap bottom",
|
|
659
659
|
"aria-label": "달력",
|
|
660
660
|
tabindex: "0",
|
|
661
|
-
onKeydown:
|
|
661
|
+
onKeydown: pe
|
|
662
662
|
}, [
|
|
663
|
-
|
|
664
|
-
|
|
663
|
+
m("div", qe, [
|
|
664
|
+
m("button", {
|
|
665
665
|
type: "button",
|
|
666
666
|
class: "btn-cal-move prev",
|
|
667
|
-
onClick:
|
|
668
|
-
(...
|
|
669
|
-
}, [...
|
|
670
|
-
|
|
667
|
+
onClick: k[0] || (k[0] = //@ts-ignore
|
|
668
|
+
(...C) => I(c) && I(c)(...C))
|
|
669
|
+
}, [...k[5] || (k[5] = [
|
|
670
|
+
m("span", { class: "sr-only" }, "이전 달", -1)
|
|
671
671
|
])]),
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
m("div", Re, [
|
|
673
|
+
m("div", He, [
|
|
674
|
+
m("button", {
|
|
675
675
|
type: "button",
|
|
676
676
|
class: "btn-cal-switch year",
|
|
677
677
|
"aria-label": "연도 선택",
|
|
678
678
|
"aria-expanded": u.value === "year",
|
|
679
|
-
onClick:
|
|
680
|
-
},
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
(
|
|
684
|
-
|
|
679
|
+
onClick: k[1] || (k[1] = (C) => ee("year"))
|
|
680
|
+
}, L(I(f)) + "년 ", 9, je),
|
|
681
|
+
j(m("div", Ye, [
|
|
682
|
+
m("ul", Ge, [
|
|
683
|
+
(B(!0), D(O, null, q(I(y), (C) => (B(), D("li", { key: C }, [
|
|
684
|
+
m("button", {
|
|
685
685
|
type: "button",
|
|
686
|
-
class:
|
|
687
|
-
onClick: (
|
|
688
|
-
},
|
|
686
|
+
class: P({ active: C === I(f) }),
|
|
687
|
+
onClick: (F) => ve(C)
|
|
688
|
+
}, L(C) + "년", 11, We)
|
|
689
689
|
]))), 128))
|
|
690
690
|
])
|
|
691
691
|
], 512), [
|
|
692
692
|
[G, u.value === "year"]
|
|
693
693
|
])
|
|
694
694
|
]),
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
m("div", Ue, [
|
|
696
|
+
m("button", {
|
|
697
697
|
type: "button",
|
|
698
698
|
class: "btn-cal-switch month",
|
|
699
699
|
"aria-label": "월 선택",
|
|
700
700
|
"aria-expanded": u.value === "month",
|
|
701
|
-
onClick:
|
|
702
|
-
},
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
(
|
|
706
|
-
|
|
701
|
+
onClick: k[2] || (k[2] = (C) => ee("month"))
|
|
702
|
+
}, L(I(p).toString().padStart(2, "0")) + "월 ", 9, Je),
|
|
703
|
+
j(m("div", Qe, [
|
|
704
|
+
m("ul", Xe, [
|
|
705
|
+
(B(!0), D(O, null, q(I($), (C) => (B(), D("li", { key: C }, [
|
|
706
|
+
m("button", {
|
|
707
707
|
type: "button",
|
|
708
|
-
class:
|
|
709
|
-
onClick: (
|
|
710
|
-
},
|
|
708
|
+
class: P({ active: C === I(p) }),
|
|
709
|
+
onClick: (F) => he(C)
|
|
710
|
+
}, L(C.toString().padStart(2, "0")) + "월 ", 11, Ze)
|
|
711
711
|
]))), 128))
|
|
712
712
|
])
|
|
713
713
|
], 512), [
|
|
@@ -715,63 +715,63 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
715
715
|
])
|
|
716
716
|
])
|
|
717
717
|
]),
|
|
718
|
-
|
|
718
|
+
m("button", {
|
|
719
719
|
type: "button",
|
|
720
720
|
class: "btn-cal-move next",
|
|
721
|
-
onClick:
|
|
722
|
-
(...
|
|
723
|
-
}, [...
|
|
724
|
-
|
|
721
|
+
onClick: k[3] || (k[3] = //@ts-ignore
|
|
722
|
+
(...C) => I(i) && I(i)(...C))
|
|
723
|
+
}, [...k[6] || (k[6] = [
|
|
724
|
+
m("span", { class: "sr-only" }, "다음 달", -1)
|
|
725
725
|
])])
|
|
726
726
|
]),
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
727
|
+
m("div", et, [
|
|
728
|
+
m("div", tt, [
|
|
729
|
+
m("table", at, [
|
|
730
|
+
m("caption", null, L(I(f)) + "년 " + L(I(p).toString().padStart(2, "0")) + "월", 1),
|
|
731
|
+
k[7] || (k[7] = m("thead", null, [
|
|
732
|
+
m("tr", null, [
|
|
733
|
+
m("th", null, "일"),
|
|
734
|
+
m("th", null, "월"),
|
|
735
|
+
m("th", null, "화"),
|
|
736
|
+
m("th", null, "수"),
|
|
737
|
+
m("th", null, "목"),
|
|
738
|
+
m("th", null, "금"),
|
|
739
|
+
m("th", null, "토")
|
|
740
740
|
])
|
|
741
741
|
], -1)),
|
|
742
|
-
|
|
743
|
-
(
|
|
744
|
-
(
|
|
745
|
-
key:
|
|
746
|
-
class:
|
|
747
|
-
"data-date":
|
|
742
|
+
m("tbody", null, [
|
|
743
|
+
(B(!0), D(O, null, q(z.value, (C, F) => (B(), D("tr", { key: F }, [
|
|
744
|
+
(B(!0), D(O, null, q(C, (E, V) => (B(), D("td", {
|
|
745
|
+
key: V,
|
|
746
|
+
class: P(R(E)),
|
|
747
|
+
"data-date": E.dateString
|
|
748
748
|
}, [
|
|
749
|
-
|
|
749
|
+
m("button", {
|
|
750
750
|
type: "button",
|
|
751
751
|
class: "btn-set-date",
|
|
752
|
-
"aria-pressed": I(
|
|
753
|
-
onClick: (
|
|
752
|
+
"aria-pressed": I(S)(E.dateString).isInRange ? "true" : "false",
|
|
753
|
+
onClick: (Y) => I(b)(E.dateString)
|
|
754
754
|
}, [
|
|
755
|
-
|
|
756
|
-
], 8,
|
|
757
|
-
], 10,
|
|
755
|
+
m("span", null, L(E.day), 1)
|
|
756
|
+
], 8, nt)
|
|
757
|
+
], 10, lt))), 128))
|
|
758
758
|
]))), 128))
|
|
759
759
|
])
|
|
760
760
|
])
|
|
761
761
|
])
|
|
762
762
|
]),
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
(
|
|
766
|
-
id:
|
|
767
|
-
key:
|
|
768
|
-
class:
|
|
769
|
-
variant:
|
|
770
|
-
size:
|
|
771
|
-
onClick:
|
|
763
|
+
m("div", st, [
|
|
764
|
+
m("div", it, [
|
|
765
|
+
(B(!0), D(O, null, q(K.value, (C) => (B(), W(I(de), {
|
|
766
|
+
id: C.id,
|
|
767
|
+
key: C.id,
|
|
768
|
+
class: P(C.class),
|
|
769
|
+
variant: C.variant,
|
|
770
|
+
size: C.size,
|
|
771
|
+
onClick: C.handler
|
|
772
772
|
}, {
|
|
773
773
|
default: U(() => [
|
|
774
|
-
|
|
774
|
+
H(L(C.label), 1)
|
|
775
775
|
]),
|
|
776
776
|
_: 2
|
|
777
777
|
}, 1032, ["id", "class", "variant", "size", "onClick"]))), 128))
|
|
@@ -784,7 +784,7 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
784
784
|
], 2)
|
|
785
785
|
]));
|
|
786
786
|
}
|
|
787
|
-
}), ot =
|
|
787
|
+
}), ot = w({
|
|
788
788
|
name: "KrdsTextarea",
|
|
789
789
|
props: {
|
|
790
790
|
modelValue: {
|
|
@@ -858,36 +858,36 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
858
858
|
}
|
|
859
859
|
},
|
|
860
860
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
|
|
861
|
-
setup(e, { emit:
|
|
862
|
-
const
|
|
863
|
-
|
|
861
|
+
setup(e, { emit: s }) {
|
|
862
|
+
const n = M(0);
|
|
863
|
+
_e(
|
|
864
864
|
() => e.modelValue,
|
|
865
|
-
(
|
|
866
|
-
|
|
865
|
+
(i) => {
|
|
866
|
+
n.value = (i || "").length;
|
|
867
867
|
},
|
|
868
868
|
{ immediate: !0 }
|
|
869
869
|
);
|
|
870
|
-
const l =
|
|
871
|
-
const
|
|
872
|
-
return e.size &&
|
|
873
|
-
}), o =
|
|
874
|
-
const
|
|
875
|
-
return e.resize && (
|
|
876
|
-
}), t = (
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
}, a = (
|
|
880
|
-
|
|
881
|
-
}, u = (
|
|
882
|
-
|
|
883
|
-
},
|
|
884
|
-
|
|
885
|
-
},
|
|
886
|
-
|
|
887
|
-
},
|
|
888
|
-
|
|
889
|
-
},
|
|
890
|
-
const
|
|
870
|
+
const l = d(() => {
|
|
871
|
+
const i = ["krds-input"];
|
|
872
|
+
return e.size && i.push(e.size), e.class && i.push(e.class), i;
|
|
873
|
+
}), o = d(() => {
|
|
874
|
+
const i = {};
|
|
875
|
+
return e.resize && (i.resize = e.resize), i;
|
|
876
|
+
}), t = (i) => {
|
|
877
|
+
const h = i.target.value;
|
|
878
|
+
n.value = h.length, s("update:modelValue", h), s("input", i);
|
|
879
|
+
}, a = (i) => {
|
|
880
|
+
s("change", i);
|
|
881
|
+
}, u = (i) => {
|
|
882
|
+
s("focus", i);
|
|
883
|
+
}, f = (i) => {
|
|
884
|
+
s("blur", i);
|
|
885
|
+
}, p = (i) => {
|
|
886
|
+
s("keydown", i);
|
|
887
|
+
}, g = (i) => {
|
|
888
|
+
s("keyup", i);
|
|
889
|
+
}, _ = d(() => {
|
|
890
|
+
const i = {
|
|
891
891
|
class: l.value,
|
|
892
892
|
style: o.value,
|
|
893
893
|
value: e.modelValue,
|
|
@@ -903,30 +903,124 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
903
903
|
onInput: t,
|
|
904
904
|
onChange: a,
|
|
905
905
|
onFocus: u,
|
|
906
|
-
onBlur:
|
|
907
|
-
onKeydown:
|
|
908
|
-
onKeyup:
|
|
906
|
+
onBlur: f,
|
|
907
|
+
onKeydown: p,
|
|
908
|
+
onKeyup: g
|
|
909
909
|
};
|
|
910
|
-
return e.maxlength !== void 0 && (
|
|
911
|
-
}), y =
|
|
910
|
+
return e.maxlength !== void 0 && (i.maxlength = e.maxlength), e.minlength !== void 0 && (i.minlength = e.minlength), i;
|
|
911
|
+
}), y = d(() => ["form-conts"]), $ = d(() => ["textarea-wrap"]), c = d(() => {
|
|
912
912
|
if (!e.showCount) return null;
|
|
913
|
-
const
|
|
913
|
+
const i = n.value, b = e.maxlength;
|
|
914
914
|
return {
|
|
915
|
-
current:
|
|
916
|
-
max:
|
|
915
|
+
current: i,
|
|
916
|
+
max: b || ""
|
|
917
917
|
};
|
|
918
918
|
});
|
|
919
919
|
return () => {
|
|
920
|
-
const
|
|
921
|
-
return
|
|
920
|
+
const i = [r("textarea", _.value)];
|
|
921
|
+
return c.value && i.push(
|
|
922
922
|
r("p", { class: "textarea-count" }, [
|
|
923
|
-
r("span", { class: "count-now" },
|
|
924
|
-
r("span", { class: "count-total" },
|
|
923
|
+
r("span", { class: "count-now" }, c.value.current),
|
|
924
|
+
r("span", { class: "count-total" }, c.value.max ? `/${c.value.max}` : "")
|
|
925
925
|
])
|
|
926
|
-
), r("div", { class: y.value }, [r("div", { class: $.value },
|
|
926
|
+
), r("div", { class: y.value }, [r("div", { class: $.value }, i)]);
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
}), ut = w({
|
|
930
|
+
name: "KrdsSelect",
|
|
931
|
+
props: {
|
|
932
|
+
modelValue: {
|
|
933
|
+
type: [String, Number, null],
|
|
934
|
+
default: null
|
|
935
|
+
},
|
|
936
|
+
size: {
|
|
937
|
+
type: String,
|
|
938
|
+
default: "medium"
|
|
939
|
+
},
|
|
940
|
+
title: {
|
|
941
|
+
type: String,
|
|
942
|
+
default: void 0
|
|
943
|
+
},
|
|
944
|
+
options: {
|
|
945
|
+
type: Array,
|
|
946
|
+
default: () => []
|
|
947
|
+
},
|
|
948
|
+
placeholder: {
|
|
949
|
+
type: String,
|
|
950
|
+
default: "선택"
|
|
951
|
+
},
|
|
952
|
+
name: {
|
|
953
|
+
type: String,
|
|
954
|
+
default: void 0
|
|
955
|
+
},
|
|
956
|
+
disabled: {
|
|
957
|
+
type: Boolean,
|
|
958
|
+
default: !1
|
|
959
|
+
},
|
|
960
|
+
state: {
|
|
961
|
+
type: String,
|
|
962
|
+
default: "default"
|
|
963
|
+
},
|
|
964
|
+
sort: {
|
|
965
|
+
type: Boolean,
|
|
966
|
+
default: !1
|
|
967
|
+
},
|
|
968
|
+
class: {
|
|
969
|
+
type: String,
|
|
970
|
+
default: void 0
|
|
971
|
+
},
|
|
972
|
+
id: {
|
|
973
|
+
type: String,
|
|
974
|
+
default: void 0
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
emits: ["update:modelValue", "focus", "blur"],
|
|
978
|
+
setup(e, { emit: s, slots: n }) {
|
|
979
|
+
const l = d(() => {
|
|
980
|
+
const g = [];
|
|
981
|
+
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;
|
|
982
|
+
}), o = (g) => {
|
|
983
|
+
const _ = g.target, y = _.value === "" ? null : _.value;
|
|
984
|
+
s("update:modelValue", y);
|
|
985
|
+
}, t = (g) => {
|
|
986
|
+
s("focus", g);
|
|
987
|
+
}, a = (g) => {
|
|
988
|
+
s("blur", g);
|
|
989
|
+
}, u = d(() => ({
|
|
990
|
+
class: l.value,
|
|
991
|
+
value: e.modelValue ?? "",
|
|
992
|
+
title: e.title || e.placeholder,
|
|
993
|
+
name: e.name,
|
|
994
|
+
id: e.id,
|
|
995
|
+
disabled: e.disabled || e.readonly,
|
|
996
|
+
onChange: o,
|
|
997
|
+
onFocus: t,
|
|
998
|
+
onBlur: a
|
|
999
|
+
})), f = d(() => {
|
|
1000
|
+
const g = ["form-conts"];
|
|
1001
|
+
return e.state !== "default" && g.push(`is-${e.state}`), g;
|
|
1002
|
+
}), p = () => {
|
|
1003
|
+
const g = [];
|
|
1004
|
+
return e.placeholder && !e.modelValue && g.push(r("option", { value: "", disabled: !0, selected: !0 }, e.placeholder)), e.options && e.options.length > 0 && e.options.forEach((_) => {
|
|
1005
|
+
g.push(
|
|
1006
|
+
r(
|
|
1007
|
+
"option",
|
|
1008
|
+
{
|
|
1009
|
+
value: _.value,
|
|
1010
|
+
disabled: _.disabled,
|
|
1011
|
+
selected: _.value === e.modelValue
|
|
1012
|
+
},
|
|
1013
|
+
_.label
|
|
1014
|
+
)
|
|
1015
|
+
);
|
|
1016
|
+
}), n.default && g.push(...n.default()), g;
|
|
1017
|
+
};
|
|
1018
|
+
return () => {
|
|
1019
|
+
const g = r("select", u.value, p());
|
|
1020
|
+
return e.sort ? g : r("div", { class: f.value }, [g]);
|
|
927
1021
|
};
|
|
928
1022
|
}
|
|
929
|
-
}),
|
|
1023
|
+
}), dt = w({
|
|
930
1024
|
name: "KrdsFileUpload",
|
|
931
1025
|
props: {
|
|
932
1026
|
modelValue: {
|
|
@@ -1029,15 +1123,15 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1029
1123
|
"download",
|
|
1030
1124
|
"preview"
|
|
1031
1125
|
],
|
|
1032
|
-
setup(e, { emit:
|
|
1033
|
-
M(!1),
|
|
1126
|
+
setup(e, { emit: s }) {
|
|
1127
|
+
M(!1), d(() => {
|
|
1034
1128
|
const l = ["krds-file-upload", "line"];
|
|
1035
1129
|
return e.class && l.push(e.class), l;
|
|
1036
1130
|
});
|
|
1037
|
-
const
|
|
1038
|
-
return
|
|
1131
|
+
const n = d(() => e.modelValue?.length || 0);
|
|
1132
|
+
return d(() => !e.disabled && n.value < e.maxFiles), () => null;
|
|
1039
1133
|
}
|
|
1040
|
-
}),
|
|
1134
|
+
}), ct = w({
|
|
1041
1135
|
name: "KrdsBadge",
|
|
1042
1136
|
props: {
|
|
1043
1137
|
type: {
|
|
@@ -1062,12 +1156,12 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1062
1156
|
}
|
|
1063
1157
|
},
|
|
1064
1158
|
emits: ["click"],
|
|
1065
|
-
setup(e, { emit:
|
|
1066
|
-
const l =
|
|
1159
|
+
setup(e, { emit: s, slots: n }) {
|
|
1160
|
+
const l = d(() => {
|
|
1067
1161
|
const t = ["krds-badge"];
|
|
1068
1162
|
return t.push(`${e.type}-${e.color}`), e.size && t.push(e.size), e.number && t.push("number"), e.class && t.push(e.class), t;
|
|
1069
1163
|
}), o = (t) => {
|
|
1070
|
-
|
|
1164
|
+
s("click", t);
|
|
1071
1165
|
};
|
|
1072
1166
|
return () => r(
|
|
1073
1167
|
"span",
|
|
@@ -1079,10 +1173,10 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1079
1173
|
class: l.value,
|
|
1080
1174
|
onClick: o
|
|
1081
1175
|
},
|
|
1082
|
-
|
|
1176
|
+
n.default?.()
|
|
1083
1177
|
);
|
|
1084
1178
|
}
|
|
1085
|
-
}),
|
|
1179
|
+
}), ft = w({
|
|
1086
1180
|
name: "KrdsTag",
|
|
1087
1181
|
props: {
|
|
1088
1182
|
link: {
|
|
@@ -1107,12 +1201,12 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1107
1201
|
}
|
|
1108
1202
|
},
|
|
1109
1203
|
emits: ["remove"],
|
|
1110
|
-
setup(e, { emit:
|
|
1111
|
-
const l =
|
|
1204
|
+
setup(e, { emit: s, slots: n }) {
|
|
1205
|
+
const l = d(() => {
|
|
1112
1206
|
const a = ["krds-btn-tag"];
|
|
1113
1207
|
return e.link && a.push("link"), e.class && a.push(e.class), a;
|
|
1114
1208
|
}), o = (a) => {
|
|
1115
|
-
|
|
1209
|
+
s("remove", a);
|
|
1116
1210
|
}, t = () => r(
|
|
1117
1211
|
"button",
|
|
1118
1212
|
{
|
|
@@ -1123,13 +1217,13 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1123
1217
|
[r("span", { class: "sr-only" }, "삭제")]
|
|
1124
1218
|
);
|
|
1125
1219
|
return () => {
|
|
1126
|
-
const a = [], u =
|
|
1220
|
+
const a = [], u = n.default?.();
|
|
1127
1221
|
if (u && a.push(u), e.link || a.push(t()), e.link) {
|
|
1128
|
-
const
|
|
1222
|
+
const f = {
|
|
1129
1223
|
href: e.href,
|
|
1130
1224
|
class: l.value
|
|
1131
1225
|
};
|
|
1132
|
-
return e.target && (
|
|
1226
|
+
return e.target && (f.target = e.target), e.rel && (f.rel = e.rel), r("a", f, a);
|
|
1133
1227
|
}
|
|
1134
1228
|
return r(
|
|
1135
1229
|
"span",
|
|
@@ -1140,7 +1234,7 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1140
1234
|
);
|
|
1141
1235
|
};
|
|
1142
1236
|
}
|
|
1143
|
-
}),
|
|
1237
|
+
}), vt = w({
|
|
1144
1238
|
name: "KrdsTagGroup",
|
|
1145
1239
|
props: {
|
|
1146
1240
|
size: {
|
|
@@ -1152,20 +1246,20 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1152
1246
|
default: void 0
|
|
1153
1247
|
}
|
|
1154
1248
|
},
|
|
1155
|
-
setup(e, { slots:
|
|
1156
|
-
const
|
|
1249
|
+
setup(e, { slots: s }) {
|
|
1250
|
+
const n = d(() => {
|
|
1157
1251
|
const l = ["krds-tag-wrap"];
|
|
1158
1252
|
return e.size && l.push(e.size), e.class && l.push(e.class), l;
|
|
1159
1253
|
});
|
|
1160
1254
|
return () => r(
|
|
1161
1255
|
"div",
|
|
1162
1256
|
{
|
|
1163
|
-
class:
|
|
1257
|
+
class: n.value
|
|
1164
1258
|
},
|
|
1165
|
-
|
|
1259
|
+
s.default?.()
|
|
1166
1260
|
);
|
|
1167
1261
|
}
|
|
1168
|
-
}),
|
|
1262
|
+
}), ht = w({
|
|
1169
1263
|
name: "KrdsMasthead",
|
|
1170
1264
|
props: {
|
|
1171
1265
|
class: {
|
|
@@ -1174,12 +1268,12 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1174
1268
|
}
|
|
1175
1269
|
},
|
|
1176
1270
|
emits: ["click"],
|
|
1177
|
-
setup(e, { emit:
|
|
1178
|
-
const l =
|
|
1271
|
+
setup(e, { emit: s, slots: n }) {
|
|
1272
|
+
const l = d(() => {
|
|
1179
1273
|
const t = [""];
|
|
1180
1274
|
return e.class && t.push(e.class), t;
|
|
1181
1275
|
}), o = (t) => {
|
|
1182
|
-
|
|
1276
|
+
s("click", t);
|
|
1183
1277
|
};
|
|
1184
1278
|
return () => r(
|
|
1185
1279
|
"div",
|
|
@@ -1190,24 +1284,24 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1190
1284
|
},
|
|
1191
1285
|
[
|
|
1192
1286
|
r("div", { class: "toggle-wrap" }, [
|
|
1193
|
-
r("div", { class: "toggle-head" }, [r("div", { class: "inner" }, [r("span", { class: "nuri-txt" },
|
|
1287
|
+
r("div", { class: "toggle-head" }, [r("div", { class: "inner" }, [r("span", { class: "nuri-txt" }, n.default?.())])])
|
|
1194
1288
|
])
|
|
1195
1289
|
]
|
|
1196
1290
|
);
|
|
1197
1291
|
}
|
|
1198
1292
|
});
|
|
1199
|
-
let
|
|
1200
|
-
function
|
|
1201
|
-
return `${e}-${++
|
|
1293
|
+
let gt = 0;
|
|
1294
|
+
function Q(e = "krds") {
|
|
1295
|
+
return `${e}-${++gt}`;
|
|
1202
1296
|
}
|
|
1203
|
-
function
|
|
1204
|
-
const e = Date.now().toString(36).slice(-4),
|
|
1205
|
-
return `${e}${
|
|
1297
|
+
function Lt() {
|
|
1298
|
+
const e = Date.now().toString(36).slice(-4), s = Math.random().toString(36).substring(2, 5);
|
|
1299
|
+
return `${e}${s}`;
|
|
1206
1300
|
}
|
|
1207
|
-
function
|
|
1301
|
+
function X(...e) {
|
|
1208
1302
|
return e.filter(Boolean).join(" ");
|
|
1209
1303
|
}
|
|
1210
|
-
const
|
|
1304
|
+
const mt = w({
|
|
1211
1305
|
name: "KrdsToggleSwitch",
|
|
1212
1306
|
props: {
|
|
1213
1307
|
modelValue: {
|
|
@@ -1249,13 +1343,13 @@ const gt = C({
|
|
|
1249
1343
|
}
|
|
1250
1344
|
},
|
|
1251
1345
|
emits: ["update:modelValue", "change"],
|
|
1252
|
-
setup(e, { emit:
|
|
1253
|
-
const l =
|
|
1346
|
+
setup(e, { emit: s, attrs: n }) {
|
|
1347
|
+
const l = d(() => e.modelValue), o = d(() => X("krds-form-toggle-switch", e.size, e.class)), t = (u) => {
|
|
1254
1348
|
if (e.disabled)
|
|
1255
1349
|
return;
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1258
|
-
}, a =
|
|
1350
|
+
const p = u.target.checked;
|
|
1351
|
+
s("update:modelValue", p), s("change", p);
|
|
1352
|
+
}, a = d(() => e.id || Q("toggle-switch"));
|
|
1259
1353
|
return () => r(
|
|
1260
1354
|
"div",
|
|
1261
1355
|
{
|
|
@@ -1269,7 +1363,7 @@ const gt = C({
|
|
|
1269
1363
|
checked: l.value,
|
|
1270
1364
|
disabled: e.disabled,
|
|
1271
1365
|
onChange: t,
|
|
1272
|
-
...
|
|
1366
|
+
...n
|
|
1273
1367
|
}),
|
|
1274
1368
|
r(
|
|
1275
1369
|
"label",
|
|
@@ -1290,27 +1384,31 @@ const gt = C({
|
|
|
1290
1384
|
]
|
|
1291
1385
|
);
|
|
1292
1386
|
}
|
|
1293
|
-
}), yt =
|
|
1387
|
+
}), yt = w({
|
|
1294
1388
|
name: "KrdsCheckArea",
|
|
1295
1389
|
props: {
|
|
1296
1390
|
class: {
|
|
1297
1391
|
type: String,
|
|
1298
1392
|
default: void 0
|
|
1393
|
+
},
|
|
1394
|
+
column: {
|
|
1395
|
+
type: Boolean,
|
|
1396
|
+
default: !1
|
|
1299
1397
|
}
|
|
1300
1398
|
},
|
|
1301
|
-
setup(e, { slots:
|
|
1399
|
+
setup(e, { slots: s }) {
|
|
1302
1400
|
return () => {
|
|
1303
|
-
const
|
|
1304
|
-
return e.class &&
|
|
1401
|
+
const n = ["krds-check-area"];
|
|
1402
|
+
return e.column && n.push("chk-column"), e.class && n.push(e.class), r(
|
|
1305
1403
|
"div",
|
|
1306
1404
|
{
|
|
1307
|
-
class:
|
|
1405
|
+
class: n
|
|
1308
1406
|
},
|
|
1309
|
-
|
|
1407
|
+
s.default?.()
|
|
1310
1408
|
);
|
|
1311
1409
|
};
|
|
1312
1410
|
}
|
|
1313
|
-
}), pt =
|
|
1411
|
+
}), pt = w({
|
|
1314
1412
|
name: "KrdsCheckbox",
|
|
1315
1413
|
props: {
|
|
1316
1414
|
modelValue: {
|
|
@@ -1339,27 +1437,104 @@ const gt = C({
|
|
|
1339
1437
|
default: void 0
|
|
1340
1438
|
}
|
|
1341
1439
|
},
|
|
1342
|
-
emits: ["update:modelValue"
|
|
1440
|
+
emits: ["update:modelValue"],
|
|
1343
1441
|
slots: Object,
|
|
1344
|
-
setup(e, { emit:
|
|
1345
|
-
const o =
|
|
1346
|
-
const
|
|
1347
|
-
return
|
|
1348
|
-
}), a = (
|
|
1442
|
+
setup(e, { emit: s, attrs: n, slots: l }) {
|
|
1443
|
+
const o = d(() => e.modelValue), t = d(() => {
|
|
1444
|
+
const f = e.chip ? "krds-form-chip" : "krds-form-check";
|
|
1445
|
+
return X(f, e.size, e.class);
|
|
1446
|
+
}), a = (f) => {
|
|
1349
1447
|
if (e.disabled)
|
|
1350
1448
|
return;
|
|
1351
|
-
const
|
|
1352
|
-
|
|
1353
|
-
}, u =
|
|
1449
|
+
const g = f.target.checked;
|
|
1450
|
+
s("update:modelValue", g);
|
|
1451
|
+
}, u = d(() => e.id || Q("checkbox"));
|
|
1354
1452
|
return () => {
|
|
1355
|
-
const
|
|
1453
|
+
const f = [
|
|
1356
1454
|
r("input", {
|
|
1357
1455
|
type: "checkbox",
|
|
1358
1456
|
id: u.value,
|
|
1359
1457
|
checked: o.value,
|
|
1360
1458
|
disabled: e.disabled,
|
|
1361
1459
|
onChange: a,
|
|
1362
|
-
...
|
|
1460
|
+
...n
|
|
1461
|
+
}),
|
|
1462
|
+
r(
|
|
1463
|
+
"label",
|
|
1464
|
+
{
|
|
1465
|
+
for: u.value
|
|
1466
|
+
},
|
|
1467
|
+
l.default?.()
|
|
1468
|
+
)
|
|
1469
|
+
];
|
|
1470
|
+
return l.description && !e.chip && f.push(r("div", { class: "krds-form-check-cnt" }, r("p", { class: "krds-form-check-p" }, l.description()))), r(
|
|
1471
|
+
"div",
|
|
1472
|
+
{
|
|
1473
|
+
class: t.value
|
|
1474
|
+
},
|
|
1475
|
+
f
|
|
1476
|
+
);
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
}), bt = w({
|
|
1480
|
+
name: "KrdsRadio",
|
|
1481
|
+
props: {
|
|
1482
|
+
modelValue: {
|
|
1483
|
+
type: [String, Number, Boolean],
|
|
1484
|
+
default: void 0
|
|
1485
|
+
},
|
|
1486
|
+
value: {
|
|
1487
|
+
type: [String, Number, Boolean],
|
|
1488
|
+
required: !0
|
|
1489
|
+
},
|
|
1490
|
+
disabled: {
|
|
1491
|
+
type: Boolean,
|
|
1492
|
+
default: !1
|
|
1493
|
+
},
|
|
1494
|
+
size: {
|
|
1495
|
+
type: String,
|
|
1496
|
+
default: "medium",
|
|
1497
|
+
validator: (e) => ["medium", "large"].includes(e)
|
|
1498
|
+
},
|
|
1499
|
+
chip: {
|
|
1500
|
+
type: Boolean,
|
|
1501
|
+
default: !1
|
|
1502
|
+
},
|
|
1503
|
+
name: {
|
|
1504
|
+
type: String,
|
|
1505
|
+
default: void 0
|
|
1506
|
+
},
|
|
1507
|
+
class: {
|
|
1508
|
+
type: String,
|
|
1509
|
+
default: void 0
|
|
1510
|
+
},
|
|
1511
|
+
id: {
|
|
1512
|
+
type: String,
|
|
1513
|
+
default: void 0
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
emits: ["update:modelValue"],
|
|
1517
|
+
slots: Object,
|
|
1518
|
+
setup(e, { emit: s, attrs: n, slots: l }) {
|
|
1519
|
+
const o = d(() => e.modelValue === e.value), t = d(() => {
|
|
1520
|
+
const p = e.chip ? "krds-form-chip" : "krds-form-check";
|
|
1521
|
+
return X(p, e.size, e.class);
|
|
1522
|
+
}), a = (p) => {
|
|
1523
|
+
if (e.disabled)
|
|
1524
|
+
return;
|
|
1525
|
+
p.target.checked && s("update:modelValue", e.value);
|
|
1526
|
+
}, u = d(() => e.id || Q("radio")), f = d(() => e.name);
|
|
1527
|
+
return () => {
|
|
1528
|
+
const p = [
|
|
1529
|
+
r("input", {
|
|
1530
|
+
type: "radio",
|
|
1531
|
+
id: u.value,
|
|
1532
|
+
name: f.value,
|
|
1533
|
+
value: String(e.value),
|
|
1534
|
+
checked: o.value,
|
|
1535
|
+
disabled: e.disabled,
|
|
1536
|
+
onChange: a,
|
|
1537
|
+
...n
|
|
1363
1538
|
}),
|
|
1364
1539
|
r(
|
|
1365
1540
|
"label",
|
|
@@ -1369,16 +1544,16 @@ const gt = C({
|
|
|
1369
1544
|
l.default?.()
|
|
1370
1545
|
)
|
|
1371
1546
|
];
|
|
1372
|
-
return l.description && !e.chip &&
|
|
1547
|
+
return l.description && !e.chip && p.push(r("div", { class: "krds-form-check-cnt" }, r("p", { class: "krds-form-check-p" }, l.description()))), r(
|
|
1373
1548
|
"div",
|
|
1374
1549
|
{
|
|
1375
1550
|
class: t.value
|
|
1376
1551
|
},
|
|
1377
|
-
|
|
1552
|
+
p
|
|
1378
1553
|
);
|
|
1379
1554
|
};
|
|
1380
1555
|
}
|
|
1381
|
-
}),
|
|
1556
|
+
}), kt = w({
|
|
1382
1557
|
name: "KrdsStepIndicator",
|
|
1383
1558
|
props: {
|
|
1384
1559
|
modelValue: {
|
|
@@ -1391,30 +1566,30 @@ const gt = C({
|
|
|
1391
1566
|
}
|
|
1392
1567
|
},
|
|
1393
1568
|
emits: ["update:modelValue"],
|
|
1394
|
-
setup(e, { slots:
|
|
1395
|
-
const
|
|
1569
|
+
setup(e, { slots: s }) {
|
|
1570
|
+
const n = d(() => {
|
|
1396
1571
|
const u = ["krds-step-wrap"];
|
|
1397
1572
|
return e.class && u.push(e.class), u;
|
|
1398
1573
|
}), l = (u) => {
|
|
1399
|
-
const
|
|
1400
|
-
return u <
|
|
1574
|
+
const f = e.modelValue || 0;
|
|
1575
|
+
return u < f ? "done" : u === f ? "active" : "pending";
|
|
1401
1576
|
}, o = M(0), t = () => {
|
|
1402
1577
|
o.value = 0;
|
|
1403
1578
|
}, a = () => o.value++;
|
|
1404
|
-
return
|
|
1405
|
-
activeStep:
|
|
1579
|
+
return De("stepIndicator", {
|
|
1580
|
+
activeStep: d(() => e.modelValue || 0),
|
|
1406
1581
|
getStepStatus: l,
|
|
1407
1582
|
getNextStepIndex: a,
|
|
1408
1583
|
resetStepIndex: t
|
|
1409
1584
|
}), () => (t(), r(
|
|
1410
1585
|
"ol",
|
|
1411
1586
|
{
|
|
1412
|
-
class:
|
|
1587
|
+
class: n.value
|
|
1413
1588
|
},
|
|
1414
|
-
|
|
1589
|
+
s.default?.()
|
|
1415
1590
|
));
|
|
1416
1591
|
}
|
|
1417
|
-
}),
|
|
1592
|
+
}), St = w({
|
|
1418
1593
|
name: "KrdsStep",
|
|
1419
1594
|
props: {
|
|
1420
1595
|
step: {
|
|
@@ -1435,15 +1610,15 @@ const gt = C({
|
|
|
1435
1610
|
}
|
|
1436
1611
|
},
|
|
1437
1612
|
emits: ["click"],
|
|
1438
|
-
setup(e, { emit:
|
|
1439
|
-
const l = Ke("stepIndicator"), o = l ? l.getNextStepIndex() : -1, t =
|
|
1440
|
-
const
|
|
1441
|
-
return e.class &&
|
|
1442
|
-
}), u = (
|
|
1443
|
-
|
|
1613
|
+
setup(e, { emit: s, slots: n }) {
|
|
1614
|
+
const l = Ke("stepIndicator"), o = l ? l.getNextStepIndex() : -1, t = d(() => e.status ? e.status : l && o >= 0 ? l.getStepStatus(o) : "pending"), a = d(() => {
|
|
1615
|
+
const f = [t.value];
|
|
1616
|
+
return e.class && f.push(e.class), f;
|
|
1617
|
+
}), u = (f) => {
|
|
1618
|
+
s("click", f, e.step);
|
|
1444
1619
|
};
|
|
1445
1620
|
return () => {
|
|
1446
|
-
const
|
|
1621
|
+
const f = t.value === "active";
|
|
1447
1622
|
return r(
|
|
1448
1623
|
"li",
|
|
1449
1624
|
{
|
|
@@ -1453,19 +1628,19 @@ const gt = C({
|
|
|
1453
1628
|
[
|
|
1454
1629
|
r("span", [
|
|
1455
1630
|
// 현재 단계 표시 (활성 상태일 때만)
|
|
1456
|
-
|
|
1631
|
+
f && r("em", { class: "sr-only" }, "현재단계"),
|
|
1457
1632
|
// 단계 번호
|
|
1458
1633
|
r("i", { class: "step" }, e.step),
|
|
1459
1634
|
// 단계 제목
|
|
1460
1635
|
r("span", { class: "step-tit" }, e.title),
|
|
1461
1636
|
// 슬롯 내용 (추가 콘텐츠가 있는 경우)
|
|
1462
|
-
|
|
1637
|
+
n.default?.()
|
|
1463
1638
|
])
|
|
1464
1639
|
]
|
|
1465
1640
|
);
|
|
1466
1641
|
};
|
|
1467
1642
|
}
|
|
1468
|
-
}),
|
|
1643
|
+
}), Ct = w({
|
|
1469
1644
|
name: "KrdsSkipLink",
|
|
1470
1645
|
props: {
|
|
1471
1646
|
/**
|
|
@@ -1492,7 +1667,7 @@ const gt = C({
|
|
|
1492
1667
|
default: "krds-skip-link"
|
|
1493
1668
|
}
|
|
1494
1669
|
},
|
|
1495
|
-
setup(e, { slots:
|
|
1670
|
+
setup(e, { slots: s }) {
|
|
1496
1671
|
return () => r(
|
|
1497
1672
|
"div",
|
|
1498
1673
|
{
|
|
@@ -1505,12 +1680,12 @@ const gt = C({
|
|
|
1505
1680
|
{
|
|
1506
1681
|
href: e.href
|
|
1507
1682
|
},
|
|
1508
|
-
|
|
1683
|
+
s.default?.()
|
|
1509
1684
|
)
|
|
1510
1685
|
]
|
|
1511
1686
|
);
|
|
1512
1687
|
}
|
|
1513
|
-
}),
|
|
1688
|
+
}), wt = ["id", "aria-label"], Bt = { class: "breadcrumb" }, _t = ["href", "aria-current", "onClick"], Dt = { key: 0 }, Kt = /* @__PURE__ */ w({
|
|
1514
1689
|
__name: "KrdsBreadcrumb",
|
|
1515
1690
|
props: {
|
|
1516
1691
|
items: {},
|
|
@@ -1519,33 +1694,33 @@ const gt = C({
|
|
|
1519
1694
|
showHomeIcon: { type: Boolean, default: !0 }
|
|
1520
1695
|
},
|
|
1521
1696
|
emits: ["item-click"],
|
|
1522
|
-
setup(e, { emit:
|
|
1523
|
-
const
|
|
1697
|
+
setup(e, { emit: s }) {
|
|
1698
|
+
const n = e, l = s, o = (a) => a === n.items.length - 1, t = (a, u) => {
|
|
1524
1699
|
a.onClick && a.onClick(u), l("item-click", a, u);
|
|
1525
1700
|
};
|
|
1526
|
-
return (a, u) => (
|
|
1701
|
+
return (a, u) => (B(), D("nav", {
|
|
1527
1702
|
id: a.id,
|
|
1528
1703
|
class: "krds-breadcrumb-wrap",
|
|
1529
1704
|
"aria-label": a.ariaLabel
|
|
1530
1705
|
}, [
|
|
1531
|
-
|
|
1532
|
-
(
|
|
1533
|
-
key: `breadcrumb-${
|
|
1534
|
-
class:
|
|
1706
|
+
m("ol", Bt, [
|
|
1707
|
+
(B(!0), D(O, null, q(a.items, (f, p) => (B(), D("li", {
|
|
1708
|
+
key: `breadcrumb-${p}`,
|
|
1709
|
+
class: P({ home: p === 0 && a.showHomeIcon })
|
|
1535
1710
|
}, [
|
|
1536
|
-
|
|
1537
|
-
href:
|
|
1711
|
+
m("a", {
|
|
1712
|
+
href: f.href || "#",
|
|
1538
1713
|
class: "txt",
|
|
1539
|
-
"aria-current": o(
|
|
1540
|
-
onClick: (
|
|
1714
|
+
"aria-current": o(p) ? "page" : void 0,
|
|
1715
|
+
onClick: (g) => t(f, g)
|
|
1541
1716
|
}, [
|
|
1542
|
-
|
|
1543
|
-
], 8,
|
|
1717
|
+
p === 0 && a.showHomeIcon ? J("", !0) : (B(), D("span", Dt, L(f.text), 1))
|
|
1718
|
+
], 8, _t)
|
|
1544
1719
|
], 2))), 128))
|
|
1545
1720
|
])
|
|
1546
|
-
], 8,
|
|
1721
|
+
], 8, wt));
|
|
1547
1722
|
}
|
|
1548
|
-
}),
|
|
1723
|
+
}), xt = w({
|
|
1549
1724
|
name: "KrdsInPageNavigation",
|
|
1550
1725
|
props: {
|
|
1551
1726
|
title: {
|
|
@@ -1579,107 +1754,107 @@ const gt = C({
|
|
|
1579
1754
|
},
|
|
1580
1755
|
emits: ["itemClick"],
|
|
1581
1756
|
slots: Object,
|
|
1582
|
-
setup(e, { emit:
|
|
1583
|
-
const l = M(""), o = M(/* @__PURE__ */ new Map()), t =
|
|
1584
|
-
const
|
|
1585
|
-
return e.class &&
|
|
1757
|
+
setup(e, { emit: s, slots: n }) {
|
|
1758
|
+
const l = M(""), o = M(/* @__PURE__ */ new Map()), t = d(() => {
|
|
1759
|
+
const c = ["krds-in-page-navigation-type"];
|
|
1760
|
+
return e.class && c.push(e.class), c;
|
|
1586
1761
|
}), a = () => {
|
|
1587
|
-
const
|
|
1588
|
-
return
|
|
1589
|
-
}, u = (
|
|
1590
|
-
if (
|
|
1591
|
-
|
|
1592
|
-
const
|
|
1593
|
-
if (
|
|
1594
|
-
const
|
|
1762
|
+
const c = e.headerTopSelector, i = e.headerInnerSelector, b = document.querySelector(c)?.clientHeight || 0, h = document.querySelector(i)?.clientHeight || 0;
|
|
1763
|
+
return b + h;
|
|
1764
|
+
}, u = (c, i) => {
|
|
1765
|
+
if (s("itemClick", c, i), c.href.startsWith("#")) {
|
|
1766
|
+
i.preventDefault();
|
|
1767
|
+
const b = document.querySelector(c.href);
|
|
1768
|
+
if (b) {
|
|
1769
|
+
const h = a();
|
|
1595
1770
|
if (window.scrollTo({
|
|
1596
1771
|
left: 0,
|
|
1597
|
-
top:
|
|
1772
|
+
top: b.getBoundingClientRect().top + window.scrollY - h,
|
|
1598
1773
|
behavior: "smooth"
|
|
1599
|
-
}), l.value =
|
|
1600
|
-
const
|
|
1601
|
-
|
|
1774
|
+
}), l.value = c.href, i instanceof KeyboardEvent) {
|
|
1775
|
+
const S = b.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
|
|
1776
|
+
S && S instanceof HTMLElement && (S.setAttribute("tabindex", "-1"), S.focus({ preventScroll: !0 }));
|
|
1602
1777
|
}
|
|
1603
1778
|
}
|
|
1604
1779
|
}
|
|
1605
|
-
},
|
|
1606
|
-
o.value.clear(), e.items && e.items.filter((
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1780
|
+
}, f = () => {
|
|
1781
|
+
o.value.clear(), e.items && e.items.filter((c) => c.href.startsWith("#")).forEach((c) => {
|
|
1782
|
+
const i = document.querySelector(c.href);
|
|
1783
|
+
i && o.value.set(c.href, i);
|
|
1609
1784
|
});
|
|
1610
|
-
},
|
|
1785
|
+
}, p = () => {
|
|
1611
1786
|
if (!e.autoActive || !e.items || o.value.size === 0) return;
|
|
1612
|
-
const
|
|
1787
|
+
const c = window.innerHeight, i = Math.ceil(c / 5), b = window.scrollY + c, h = document.body.scrollHeight, S = e.items.filter((z) => z.href.startsWith("#") && o.value.has(z.href)).map((z) => ({
|
|
1613
1788
|
href: z.href,
|
|
1614
1789
|
element: o.value.get(z.href),
|
|
1615
1790
|
item: z
|
|
1616
1791
|
}));
|
|
1617
|
-
if (
|
|
1618
|
-
const
|
|
1619
|
-
let
|
|
1620
|
-
if (
|
|
1621
|
-
|
|
1792
|
+
if (S.length === 0) return;
|
|
1793
|
+
const x = S[0], A = S[S.length - 1], T = x.element.offsetTop;
|
|
1794
|
+
let N = "";
|
|
1795
|
+
if (b >= h)
|
|
1796
|
+
N = A.href;
|
|
1622
1797
|
else if (window.scrollY <= T)
|
|
1623
|
-
|
|
1798
|
+
N = x.href;
|
|
1624
1799
|
else
|
|
1625
|
-
for (const z of
|
|
1626
|
-
const
|
|
1627
|
-
if (window.scrollY >
|
|
1628
|
-
|
|
1800
|
+
for (const z of S) {
|
|
1801
|
+
const R = z.element.offsetHeight, K = z.element.offsetTop - i;
|
|
1802
|
+
if (window.scrollY > K && window.scrollY <= K + R) {
|
|
1803
|
+
N = z.href;
|
|
1629
1804
|
break;
|
|
1630
1805
|
}
|
|
1631
1806
|
}
|
|
1632
|
-
|
|
1633
|
-
},
|
|
1807
|
+
N && N !== l.value && (l.value = N);
|
|
1808
|
+
}, g = () => {
|
|
1634
1809
|
if (!e.items) return;
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1810
|
+
const c = e.items.find((i) => i.active);
|
|
1811
|
+
c ? l.value = c.href : e.items.length > 0 && (l.value = e.items[0].href);
|
|
1637
1812
|
};
|
|
1638
|
-
|
|
1639
|
-
if (
|
|
1640
|
-
|
|
1641
|
-
const
|
|
1642
|
-
|
|
1813
|
+
ue(() => {
|
|
1814
|
+
if (g(), e.autoActive) {
|
|
1815
|
+
f(), p(), window.addEventListener("scroll", p, { passive: !0 });
|
|
1816
|
+
const c = new MutationObserver(() => {
|
|
1817
|
+
f();
|
|
1643
1818
|
});
|
|
1644
|
-
|
|
1819
|
+
c.observe(document.body, {
|
|
1645
1820
|
childList: !0,
|
|
1646
1821
|
subtree: !0
|
|
1647
|
-
}),
|
|
1648
|
-
|
|
1822
|
+
}), ne(() => {
|
|
1823
|
+
c.disconnect();
|
|
1649
1824
|
});
|
|
1650
1825
|
}
|
|
1651
|
-
}),
|
|
1652
|
-
e.autoActive && (window.removeEventListener("scroll",
|
|
1826
|
+
}), ne(() => {
|
|
1827
|
+
e.autoActive && (window.removeEventListener("scroll", p), o.value.clear());
|
|
1653
1828
|
});
|
|
1654
|
-
const
|
|
1829
|
+
const _ = () => !e.caption && !e.title ? null : r("div", { class: "in-page-navigation-header" }, [
|
|
1655
1830
|
e.caption && r("p", { class: "quick-caption" }, e.caption),
|
|
1656
1831
|
e.title && r("p", { class: "quick-title" }, e.title)
|
|
1657
1832
|
]), y = () => {
|
|
1658
1833
|
if (!e.items) return null;
|
|
1659
|
-
const
|
|
1660
|
-
const
|
|
1661
|
-
return r("li", { key:
|
|
1834
|
+
const c = e.items.map((i) => {
|
|
1835
|
+
const b = l.value === i.href || !e.autoActive && i.active;
|
|
1836
|
+
return r("li", { key: i.href }, [
|
|
1662
1837
|
r(
|
|
1663
1838
|
"a",
|
|
1664
1839
|
{
|
|
1665
|
-
href:
|
|
1666
|
-
class:
|
|
1667
|
-
onClick: (
|
|
1668
|
-
onKeydown: (
|
|
1669
|
-
(
|
|
1840
|
+
href: i.href,
|
|
1841
|
+
class: b ? "active" : "",
|
|
1842
|
+
onClick: (h) => u(i, h),
|
|
1843
|
+
onKeydown: (h) => {
|
|
1844
|
+
(h.key === "Enter" || h.key === " ") && (h.preventDefault(), u(i, h));
|
|
1670
1845
|
}
|
|
1671
1846
|
},
|
|
1672
|
-
|
|
1847
|
+
i.text
|
|
1673
1848
|
)
|
|
1674
1849
|
]);
|
|
1675
1850
|
});
|
|
1676
|
-
return r("nav", { class: "in-page-navigation-list" }, [r("ul", {},
|
|
1677
|
-
}, $ = () =>
|
|
1851
|
+
return r("nav", { class: "in-page-navigation-list" }, [r("ul", {}, c)]);
|
|
1852
|
+
}, $ = () => n.action ? r("div", { class: "in-page-navigation-action" }, [n.action()]) : null;
|
|
1678
1853
|
return () => r("div", { class: t.value }, [
|
|
1679
|
-
r("div", { class: "krds-in-page-navigation-area" }, [
|
|
1854
|
+
r("div", { class: "krds-in-page-navigation-area" }, [_(), y(), $()].filter(Boolean))
|
|
1680
1855
|
]);
|
|
1681
1856
|
}
|
|
1682
|
-
}),
|
|
1857
|
+
}), Vt = ["id"], It = { class: "page-links" }, zt = ["href", "aria-current", "onClick"], Mt = { key: 0 }, $t = ["aria-label"], Nt = /* @__PURE__ */ w({
|
|
1683
1858
|
__name: "KrdsPagination",
|
|
1684
1859
|
props: {
|
|
1685
1860
|
modelValue: { default: 1 },
|
|
@@ -1690,222 +1865,226 @@ const gt = C({
|
|
|
1690
1865
|
pageRange: { default: 8 }
|
|
1691
1866
|
},
|
|
1692
1867
|
emits: ["update:modelValue"],
|
|
1693
|
-
setup(e, { emit:
|
|
1694
|
-
const
|
|
1868
|
+
setup(e, { emit: s }) {
|
|
1869
|
+
const n = e, l = s, o = d(() => Math.max(1, n.min)), t = d(() => n.modelValue ?? o.value), a = d(() => t.value <= o.value), u = d(() => t.value >= n.max), f = d(() => {
|
|
1695
1870
|
if (!a.value)
|
|
1696
1871
|
return "#";
|
|
1697
|
-
}),
|
|
1872
|
+
}), p = d(() => {
|
|
1698
1873
|
if (!u.value)
|
|
1699
1874
|
return "#";
|
|
1700
|
-
}),
|
|
1701
|
-
const { pageRange:
|
|
1702
|
-
if (
|
|
1703
|
-
for (let
|
|
1704
|
-
|
|
1875
|
+
}), g = d(() => {
|
|
1876
|
+
const { pageRange: c, max: i } = n, b = 1, h = [];
|
|
1877
|
+
if (i <= c + 2 * b)
|
|
1878
|
+
for (let S = o.value; S <= i; S++)
|
|
1879
|
+
h.push({
|
|
1705
1880
|
type: "page",
|
|
1706
|
-
key: `page-${
|
|
1707
|
-
page:
|
|
1881
|
+
key: `page-${S}`,
|
|
1882
|
+
page: S,
|
|
1708
1883
|
href: "#"
|
|
1709
1884
|
});
|
|
1710
1885
|
else {
|
|
1711
|
-
const
|
|
1712
|
-
for (let
|
|
1713
|
-
|
|
1886
|
+
const S = Math.min(b, i), x = Math.max(i - b + 1, 1), A = Math.max(o.value, t.value - Math.floor(c / 2)), T = Math.min(i, A + c - 1), N = Math.max(o.value, T - c + 1);
|
|
1887
|
+
for (let K = o.value; K <= S; K++)
|
|
1888
|
+
h.push({
|
|
1714
1889
|
type: "page",
|
|
1715
|
-
key: `page-${
|
|
1716
|
-
page:
|
|
1890
|
+
key: `page-${K}`,
|
|
1891
|
+
page: K,
|
|
1717
1892
|
href: "#"
|
|
1718
1893
|
});
|
|
1719
|
-
|
|
1894
|
+
N > S + 1 && h.push({
|
|
1720
1895
|
type: "ellipsis",
|
|
1721
1896
|
key: "ellipsis-left",
|
|
1722
1897
|
ariaLabel: "페이지 생략"
|
|
1723
1898
|
});
|
|
1724
|
-
const z = Math.max(
|
|
1725
|
-
for (let
|
|
1726
|
-
|
|
1899
|
+
const z = Math.max(N, S + 1), R = Math.min(T, x - 1);
|
|
1900
|
+
for (let K = z; K <= R; K++)
|
|
1901
|
+
h.push({
|
|
1727
1902
|
type: "page",
|
|
1728
|
-
key: `page-${
|
|
1729
|
-
page:
|
|
1903
|
+
key: `page-${K}`,
|
|
1904
|
+
page: K,
|
|
1730
1905
|
href: "#"
|
|
1731
1906
|
});
|
|
1732
|
-
T <
|
|
1907
|
+
T < x - 1 && h.push({
|
|
1733
1908
|
type: "ellipsis",
|
|
1734
1909
|
key: "ellipsis-right",
|
|
1735
1910
|
ariaLabel: "페이지 생략"
|
|
1736
1911
|
});
|
|
1737
|
-
for (let
|
|
1738
|
-
|
|
1912
|
+
for (let K = x; K <= i; K++)
|
|
1913
|
+
h.push({
|
|
1739
1914
|
type: "page",
|
|
1740
|
-
key: `page-${
|
|
1741
|
-
page:
|
|
1915
|
+
key: `page-${K}`,
|
|
1916
|
+
page: K,
|
|
1742
1917
|
href: "#"
|
|
1743
1918
|
});
|
|
1744
1919
|
}
|
|
1745
|
-
return
|
|
1746
|
-
}),
|
|
1747
|
-
if (
|
|
1748
|
-
|
|
1920
|
+
return h;
|
|
1921
|
+
}), _ = (c, i) => {
|
|
1922
|
+
if (c === t.value) {
|
|
1923
|
+
i.preventDefault();
|
|
1749
1924
|
return;
|
|
1750
1925
|
}
|
|
1751
|
-
l("update:modelValue",
|
|
1752
|
-
}, y = (
|
|
1926
|
+
l("update:modelValue", c);
|
|
1927
|
+
}, y = (c) => {
|
|
1753
1928
|
if (a.value) {
|
|
1754
|
-
|
|
1929
|
+
c.preventDefault();
|
|
1755
1930
|
return;
|
|
1756
1931
|
}
|
|
1757
|
-
const
|
|
1758
|
-
l("update:modelValue",
|
|
1759
|
-
}, $ = (
|
|
1932
|
+
const i = t.value - 1;
|
|
1933
|
+
l("update:modelValue", i);
|
|
1934
|
+
}, $ = (c) => {
|
|
1760
1935
|
if (u.value) {
|
|
1761
|
-
|
|
1936
|
+
c.preventDefault();
|
|
1762
1937
|
return;
|
|
1763
1938
|
}
|
|
1764
|
-
const
|
|
1765
|
-
l("update:modelValue",
|
|
1939
|
+
const i = t.value + 1;
|
|
1940
|
+
l("update:modelValue", i);
|
|
1766
1941
|
};
|
|
1767
|
-
return (
|
|
1768
|
-
const
|
|
1769
|
-
return
|
|
1770
|
-
id:
|
|
1942
|
+
return (c, i) => {
|
|
1943
|
+
const b = xe("sr-only");
|
|
1944
|
+
return B(), D("div", {
|
|
1945
|
+
id: c.id,
|
|
1771
1946
|
class: "krds-pagination"
|
|
1772
1947
|
}, [
|
|
1773
|
-
(
|
|
1774
|
-
href: a.value ? void 0 :
|
|
1775
|
-
class:
|
|
1948
|
+
(B(), W(se(a.value ? "span" : "a"), {
|
|
1949
|
+
href: a.value ? void 0 : f.value,
|
|
1950
|
+
class: P(["page-navi", "prev", { disabled: a.value }]),
|
|
1776
1951
|
onClick: y
|
|
1777
1952
|
}, {
|
|
1778
|
-
default: U(() => [...
|
|
1779
|
-
|
|
1953
|
+
default: U(() => [...i[0] || (i[0] = [
|
|
1954
|
+
H(" 이전 ", -1)
|
|
1780
1955
|
])]),
|
|
1781
1956
|
_: 1
|
|
1782
1957
|
}, 8, ["href", "class"])),
|
|
1783
|
-
|
|
1784
|
-
(
|
|
1785
|
-
key:
|
|
1958
|
+
m("div", It, [
|
|
1959
|
+
(B(!0), D(O, null, q(g.value, (h) => (B(), D(O, {
|
|
1960
|
+
key: h.key
|
|
1786
1961
|
}, [
|
|
1787
|
-
|
|
1962
|
+
h.type === "page" ? (B(), D("a", {
|
|
1788
1963
|
key: 0,
|
|
1789
|
-
href:
|
|
1790
|
-
class:
|
|
1791
|
-
"aria-current":
|
|
1792
|
-
onClick: (
|
|
1964
|
+
href: h.href || "#",
|
|
1965
|
+
class: P(["page-link", { active: h.page === t.value }]),
|
|
1966
|
+
"aria-current": h.page === t.value ? "page" : void 0,
|
|
1967
|
+
onClick: (S) => _(h.page, S)
|
|
1793
1968
|
}, [
|
|
1794
|
-
|
|
1795
|
-
|
|
1969
|
+
h.page === t.value ? j((B(), D("span", Mt, [...i[1] || (i[1] = [
|
|
1970
|
+
H("현재페이지", -1)
|
|
1796
1971
|
])])), [
|
|
1797
|
-
[
|
|
1972
|
+
[b]
|
|
1798
1973
|
]) : J("", !0),
|
|
1799
|
-
|
|
1800
|
-
], 10,
|
|
1974
|
+
H(" " + L(h.page), 1)
|
|
1975
|
+
], 10, zt)) : h.type === "ellipsis" ? (B(), D("span", {
|
|
1801
1976
|
key: 1,
|
|
1802
1977
|
class: "page-link link-dot",
|
|
1803
|
-
"aria-label":
|
|
1804
|
-
}, null, 8,
|
|
1978
|
+
"aria-label": h.ariaLabel
|
|
1979
|
+
}, null, 8, $t)) : J("", !0)
|
|
1805
1980
|
], 64))), 128))
|
|
1806
1981
|
]),
|
|
1807
|
-
(
|
|
1808
|
-
href: u.value ? void 0 :
|
|
1809
|
-
class:
|
|
1982
|
+
(B(), W(se(u.value ? "span" : "a"), {
|
|
1983
|
+
href: u.value ? void 0 : p.value,
|
|
1984
|
+
class: P(["page-navi", "next", { disabled: u.value }]),
|
|
1810
1985
|
onClick: $
|
|
1811
1986
|
}, {
|
|
1812
|
-
default: U(() => [...
|
|
1813
|
-
|
|
1987
|
+
default: U(() => [...i[2] || (i[2] = [
|
|
1988
|
+
H(" 다음 ", -1)
|
|
1814
1989
|
])]),
|
|
1815
1990
|
_: 1
|
|
1816
1991
|
}, 8, ["href", "class"]))
|
|
1817
|
-
], 8,
|
|
1992
|
+
], 8, Vt);
|
|
1818
1993
|
};
|
|
1819
1994
|
}
|
|
1820
|
-
}),
|
|
1995
|
+
}), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1821
1996
|
__proto__: null,
|
|
1822
|
-
KrdsBadge:
|
|
1823
|
-
KrdsBreadcrumb:
|
|
1824
|
-
KrdsButton:
|
|
1825
|
-
KrdsButtonGroup:
|
|
1997
|
+
KrdsBadge: ct,
|
|
1998
|
+
KrdsBreadcrumb: Kt,
|
|
1999
|
+
KrdsButton: de,
|
|
2000
|
+
KrdsButtonGroup: Ve,
|
|
1826
2001
|
KrdsCheckArea: yt,
|
|
1827
2002
|
KrdsCheckbox: pt,
|
|
1828
2003
|
KrdsDateInput: rt,
|
|
1829
|
-
KrdsFileUpload:
|
|
1830
|
-
KrdsFormGroup:
|
|
1831
|
-
KrdsFormHint:
|
|
2004
|
+
KrdsFileUpload: dt,
|
|
2005
|
+
KrdsFormGroup: Pe,
|
|
2006
|
+
KrdsFormHint: Ne,
|
|
1832
2007
|
KrdsFormLabel: $e,
|
|
1833
|
-
KrdsIcon:
|
|
1834
|
-
KrdsInPageNavigation:
|
|
2008
|
+
KrdsIcon: Ie,
|
|
2009
|
+
KrdsInPageNavigation: xt,
|
|
1835
2010
|
KrdsInput: Me,
|
|
1836
2011
|
KrdsLink: ze,
|
|
1837
|
-
KrdsMasthead:
|
|
1838
|
-
KrdsPagination:
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
2012
|
+
KrdsMasthead: ht,
|
|
2013
|
+
KrdsPagination: Nt,
|
|
2014
|
+
KrdsRadio: bt,
|
|
2015
|
+
KrdsSelect: ut,
|
|
2016
|
+
KrdsSkipLink: Ct,
|
|
2017
|
+
KrdsSpinner: ce,
|
|
2018
|
+
KrdsStep: St,
|
|
2019
|
+
KrdsStepIndicator: kt,
|
|
2020
|
+
KrdsTag: ft,
|
|
2021
|
+
KrdsTagGroup: vt,
|
|
1845
2022
|
KrdsTextarea: ot,
|
|
1846
|
-
KrdsToggleSwitch:
|
|
1847
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1848
|
-
mounted(e,
|
|
1849
|
-
|
|
2023
|
+
KrdsToggleSwitch: mt
|
|
2024
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = {
|
|
2025
|
+
mounted(e, s) {
|
|
2026
|
+
s.value !== !1 && e.classList.add("sr-only");
|
|
1850
2027
|
},
|
|
1851
|
-
updated(e,
|
|
1852
|
-
|
|
2028
|
+
updated(e, s) {
|
|
2029
|
+
s.value === !1 ? e.classList.remove("sr-only") : e.classList.add("sr-only");
|
|
1853
2030
|
},
|
|
1854
2031
|
unmounted(e) {
|
|
1855
2032
|
e.classList.remove("sr-only");
|
|
1856
2033
|
}
|
|
1857
|
-
},
|
|
1858
|
-
"sr-only":
|
|
2034
|
+
}, re = {
|
|
2035
|
+
"sr-only": Z
|
|
1859
2036
|
}, fe = (e) => {
|
|
1860
|
-
e.directive("sr-only",
|
|
1861
|
-
},
|
|
2037
|
+
e.directive("sr-only", Z);
|
|
2038
|
+
}, oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1862
2039
|
__proto__: null,
|
|
1863
|
-
default:
|
|
1864
|
-
directives:
|
|
2040
|
+
default: re,
|
|
2041
|
+
directives: re,
|
|
1865
2042
|
installDirectives: fe,
|
|
1866
|
-
vSrOnly:
|
|
1867
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1868
|
-
install(e,
|
|
1869
|
-
e.provide("krds:config",
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
const o =
|
|
2043
|
+
vSrOnly: Z
|
|
2044
|
+
}, Symbol.toStringTag, { value: "Module" })), Tt = {
|
|
2045
|
+
install(e, s = {}) {
|
|
2046
|
+
e.provide("krds:config", s);
|
|
2047
|
+
const n = s.components || Object.keys(ie);
|
|
2048
|
+
n.forEach((l) => {
|
|
2049
|
+
const o = ie[l];
|
|
1873
2050
|
o && e.component(l, o);
|
|
1874
|
-
}), typeof
|
|
2051
|
+
}), typeof oe == "object" && oe !== null && fe(e), e.config.globalProperties.$krds = {
|
|
1875
2052
|
version: "__VERSION__"
|
|
1876
|
-
}, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${
|
|
2053
|
+
}, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${n.length}개`);
|
|
1877
2054
|
}
|
|
1878
|
-
},
|
|
2055
|
+
}, Et = "__VERSION__";
|
|
1879
2056
|
export {
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
2057
|
+
ct as KrdsBadge,
|
|
2058
|
+
Kt as KrdsBreadcrumb,
|
|
2059
|
+
de as KrdsButton,
|
|
2060
|
+
Ve as KrdsButtonGroup,
|
|
1884
2061
|
yt as KrdsCheckArea,
|
|
1885
2062
|
pt as KrdsCheckbox,
|
|
1886
2063
|
rt as KrdsDateInput,
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
2064
|
+
dt as KrdsFileUpload,
|
|
2065
|
+
Pe as KrdsFormGroup,
|
|
2066
|
+
Ne as KrdsFormHint,
|
|
1890
2067
|
$e as KrdsFormLabel,
|
|
1891
|
-
|
|
1892
|
-
|
|
2068
|
+
Ie as KrdsIcon,
|
|
2069
|
+
xt as KrdsInPageNavigation,
|
|
1893
2070
|
Me as KrdsInput,
|
|
1894
2071
|
ze as KrdsLink,
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2072
|
+
ht as KrdsMasthead,
|
|
2073
|
+
Nt as KrdsPagination,
|
|
2074
|
+
bt as KrdsRadio,
|
|
2075
|
+
ut as KrdsSelect,
|
|
2076
|
+
Ct as KrdsSkipLink,
|
|
2077
|
+
ce as KrdsSpinner,
|
|
2078
|
+
St as KrdsStep,
|
|
2079
|
+
kt as KrdsStepIndicator,
|
|
2080
|
+
ft as KrdsTag,
|
|
2081
|
+
vt as KrdsTagGroup,
|
|
1903
2082
|
ot as KrdsTextarea,
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
2083
|
+
mt as KrdsToggleSwitch,
|
|
2084
|
+
X as classNames,
|
|
2085
|
+
Tt as default,
|
|
2086
|
+
Q as generateId,
|
|
2087
|
+
Lt as generateUid,
|
|
2088
|
+
Et as version
|
|
1910
2089
|
};
|
|
1911
2090
|
//# sourceMappingURL=krds-vue.es.js.map
|