@krds.ui/vue 0.0.4 → 0.0.6
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 +789 -605
- 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 +79 -1
- package/package.json +16 -46
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,37 +36,37 @@ const oe = C({
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["click"],
|
|
39
|
-
setup(e, { emit:
|
|
40
|
-
const
|
|
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",
|
|
48
48
|
{
|
|
49
49
|
type: e.type,
|
|
50
|
-
class:
|
|
50
|
+
class: l.value,
|
|
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
|
|
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
|
-
class:
|
|
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,27 +243,27 @@ const oe = C({
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
|
|
246
|
-
setup(e, { emit:
|
|
247
|
-
const
|
|
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
|
-
class:
|
|
266
|
+
class: l.value,
|
|
267
267
|
value: e.modelValue,
|
|
268
268
|
placeholder: e.placeholder,
|
|
269
269
|
name: e.name,
|
|
@@ -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:
|
|
315
|
-
const
|
|
316
|
-
|
|
314
|
+
setup(e, { emit: s, slots: n }) {
|
|
315
|
+
const l = (o) => {
|
|
316
|
+
s("click", o);
|
|
317
317
|
};
|
|
318
318
|
return () => r("div", { class: "form-tit" }, [
|
|
319
319
|
r(
|
|
@@ -323,13 +323,13 @@ const oe = C({
|
|
|
323
323
|
id: e.id,
|
|
324
324
|
class: e.class,
|
|
325
325
|
style: e.style,
|
|
326
|
-
onClick:
|
|
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:
|
|
354
|
-
const
|
|
355
|
-
|
|
353
|
+
setup(e, { emit: s, slots: n }) {
|
|
354
|
+
const l = (t) => {
|
|
355
|
+
s("click", t);
|
|
356
356
|
}, o = () => {
|
|
357
357
|
let t;
|
|
358
358
|
switch (e.type) {
|
|
@@ -377,12 +377,12 @@ const oe = C({
|
|
|
377
377
|
id: e.id,
|
|
378
378
|
class: o(),
|
|
379
379
|
style: e.style,
|
|
380
|
-
onClick:
|
|
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,94 +398,94 @@ const oe = C({
|
|
|
398
398
|
default: void 0
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
|
-
setup(e, { slots:
|
|
402
|
-
const
|
|
403
|
-
const
|
|
404
|
-
return e.class &&
|
|
401
|
+
setup(e, { slots: s }) {
|
|
402
|
+
const n = d(() => {
|
|
403
|
+
const l = ["form-group"];
|
|
404
|
+
return e.class && l.push(e.class), l;
|
|
405
405
|
});
|
|
406
406
|
return () => r(
|
|
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
|
-
},
|
|
426
|
-
o.value === 1 ? (o.value = 12,
|
|
425
|
+
}, _ = () => {
|
|
426
|
+
o.value === 1 ? (o.value = 12, l.value -= 1) : o.value -= 1;
|
|
427
427
|
}, y = () => {
|
|
428
|
-
o.value === 12 ? (o.value = 1,
|
|
429
|
-
}, $ = (
|
|
430
|
-
if (
|
|
431
|
-
t.value =
|
|
428
|
+
o.value === 12 ? (o.value = 1, l.value += 1) : o.value += 1;
|
|
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 {
|
|
440
440
|
// State
|
|
441
|
-
currentYear:
|
|
441
|
+
currentYear: l,
|
|
442
442
|
currentMonth: o,
|
|
443
443
|
selectedStartDate: t,
|
|
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,
|
|
467
|
-
let
|
|
468
|
-
const o = typeof
|
|
469
|
-
|
|
470
|
-
const
|
|
471
|
-
e.value?.contains(
|
|
472
|
-
}, document.addEventListener(a,
|
|
473
|
-
},
|
|
474
|
-
if (
|
|
475
|
-
const
|
|
476
|
-
document.removeEventListener(
|
|
466
|
+
function Te(e, s, n = {}) {
|
|
467
|
+
let l = null;
|
|
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
|
+
}, document.addEventListener(a, l);
|
|
473
|
+
}, f = () => {
|
|
474
|
+
if (l) {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
611
|
-
}, ke = (
|
|
612
|
-
|
|
613
|
-
}, Se = (
|
|
614
|
-
|
|
615
|
-
}, Ce = (
|
|
616
|
-
|
|
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,44 +715,44 @@ 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
|
-
|
|
755
|
+
m("span", null, L(E.day), 1)
|
|
756
756
|
], 8, nt)
|
|
757
757
|
], 10, lt))), 128))
|
|
758
758
|
]))), 128))
|
|
@@ -760,18 +760,18 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
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,37 +858,37 @@ 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
|
|
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
|
|
891
|
-
class:
|
|
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
|
+
class: l.value,
|
|
892
892
|
style: o.value,
|
|
893
893
|
value: e.modelValue,
|
|
894
894
|
placeholder: e.placeholder,
|
|
@@ -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),
|
|
1034
|
-
const
|
|
1035
|
-
return e.class &&
|
|
1126
|
+
setup(e, { emit: s }) {
|
|
1127
|
+
M(!1), d(() => {
|
|
1128
|
+
const l = ["krds-file-upload", "line"];
|
|
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
|
|
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",
|
|
@@ -1076,13 +1170,13 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
|
|
|
1076
1170
|
color: e.color,
|
|
1077
1171
|
size: e.size,
|
|
1078
1172
|
number: e.number,
|
|
1079
|
-
class:
|
|
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
|
|
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,24 +1217,24 @@ 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
|
-
class:
|
|
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",
|
|
1136
1230
|
{
|
|
1137
|
-
class:
|
|
1231
|
+
class: l.value
|
|
1138
1232
|
},
|
|
1139
1233
|
a
|
|
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
|
|
1157
|
-
const
|
|
1158
|
-
return e.size &&
|
|
1249
|
+
setup(e, { slots: s }) {
|
|
1250
|
+
const n = d(() => {
|
|
1251
|
+
const l = ["krds-tag-wrap"];
|
|
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,36 +1268,40 @@ 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
|
|
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",
|
|
1186
1280
|
{
|
|
1187
1281
|
id: "krds-masthead",
|
|
1188
|
-
class:
|
|
1282
|
+
class: l.value,
|
|
1189
1283
|
onClick: o
|
|
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}`;
|
|
1296
|
+
}
|
|
1297
|
+
function Lt() {
|
|
1298
|
+
const e = Date.now().toString(36).slice(-4), s = Math.random().toString(36).substring(2, 5);
|
|
1299
|
+
return `${e}${s}`;
|
|
1202
1300
|
}
|
|
1203
|
-
function
|
|
1301
|
+
function X(...e) {
|
|
1204
1302
|
return e.filter(Boolean).join(" ");
|
|
1205
1303
|
}
|
|
1206
|
-
const
|
|
1304
|
+
const mt = w({
|
|
1207
1305
|
name: "KrdsToggleSwitch",
|
|
1208
1306
|
props: {
|
|
1209
1307
|
modelValue: {
|
|
@@ -1245,13 +1343,13 @@ const gt = C({
|
|
|
1245
1343
|
}
|
|
1246
1344
|
},
|
|
1247
1345
|
emits: ["update:modelValue", "change"],
|
|
1248
|
-
setup(e, { emit:
|
|
1249
|
-
const
|
|
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) => {
|
|
1250
1348
|
if (e.disabled)
|
|
1251
1349
|
return;
|
|
1252
|
-
const
|
|
1253
|
-
|
|
1254
|
-
}, a =
|
|
1350
|
+
const p = u.target.checked;
|
|
1351
|
+
s("update:modelValue", p), s("change", p);
|
|
1352
|
+
}, a = d(() => e.id || Q("toggle-switch"));
|
|
1255
1353
|
return () => r(
|
|
1256
1354
|
"div",
|
|
1257
1355
|
{
|
|
@@ -1262,10 +1360,10 @@ const gt = C({
|
|
|
1262
1360
|
type: "checkbox",
|
|
1263
1361
|
id: a.value,
|
|
1264
1362
|
name: e.name,
|
|
1265
|
-
checked:
|
|
1363
|
+
checked: l.value,
|
|
1266
1364
|
disabled: e.disabled,
|
|
1267
1365
|
onChange: t,
|
|
1268
|
-
...
|
|
1366
|
+
...n
|
|
1269
1367
|
}),
|
|
1270
1368
|
r(
|
|
1271
1369
|
"label",
|
|
@@ -1286,27 +1384,31 @@ const gt = C({
|
|
|
1286
1384
|
]
|
|
1287
1385
|
);
|
|
1288
1386
|
}
|
|
1289
|
-
}), yt =
|
|
1387
|
+
}), yt = w({
|
|
1290
1388
|
name: "KrdsCheckArea",
|
|
1291
1389
|
props: {
|
|
1292
1390
|
class: {
|
|
1293
1391
|
type: String,
|
|
1294
1392
|
default: void 0
|
|
1393
|
+
},
|
|
1394
|
+
column: {
|
|
1395
|
+
type: Boolean,
|
|
1396
|
+
default: !1
|
|
1295
1397
|
}
|
|
1296
1398
|
},
|
|
1297
|
-
setup(e, { slots:
|
|
1399
|
+
setup(e, { slots: s }) {
|
|
1298
1400
|
return () => {
|
|
1299
|
-
const
|
|
1300
|
-
return e.class &&
|
|
1401
|
+
const n = ["krds-check-area"];
|
|
1402
|
+
return e.column && n.push("chk-column"), e.class && n.push(e.class), r(
|
|
1301
1403
|
"div",
|
|
1302
1404
|
{
|
|
1303
|
-
class:
|
|
1405
|
+
class: n
|
|
1304
1406
|
},
|
|
1305
|
-
|
|
1407
|
+
s.default?.()
|
|
1306
1408
|
);
|
|
1307
1409
|
};
|
|
1308
1410
|
}
|
|
1309
|
-
}), pt =
|
|
1411
|
+
}), pt = w({
|
|
1310
1412
|
name: "KrdsCheckbox",
|
|
1311
1413
|
props: {
|
|
1312
1414
|
modelValue: {
|
|
@@ -1335,46 +1437,123 @@ const gt = C({
|
|
|
1335
1437
|
default: void 0
|
|
1336
1438
|
}
|
|
1337
1439
|
},
|
|
1338
|
-
emits: ["update:modelValue"
|
|
1440
|
+
emits: ["update:modelValue"],
|
|
1339
1441
|
slots: Object,
|
|
1340
|
-
setup(e, { emit:
|
|
1341
|
-
const o =
|
|
1342
|
-
const
|
|
1343
|
-
return
|
|
1344
|
-
}), 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) => {
|
|
1345
1447
|
if (e.disabled)
|
|
1346
1448
|
return;
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
}, u =
|
|
1449
|
+
const g = f.target.checked;
|
|
1450
|
+
s("update:modelValue", g);
|
|
1451
|
+
}, u = d(() => e.id || Q("checkbox"));
|
|
1350
1452
|
return () => {
|
|
1351
|
-
const
|
|
1453
|
+
const f = [
|
|
1352
1454
|
r("input", {
|
|
1353
1455
|
type: "checkbox",
|
|
1354
1456
|
id: u.value,
|
|
1355
1457
|
checked: o.value,
|
|
1356
1458
|
disabled: e.disabled,
|
|
1357
1459
|
onChange: a,
|
|
1358
|
-
...
|
|
1460
|
+
...n
|
|
1359
1461
|
}),
|
|
1360
1462
|
r(
|
|
1361
1463
|
"label",
|
|
1362
1464
|
{
|
|
1363
1465
|
for: u.value
|
|
1364
1466
|
},
|
|
1365
|
-
|
|
1467
|
+
l.default?.()
|
|
1366
1468
|
)
|
|
1367
1469
|
];
|
|
1368
|
-
return
|
|
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(
|
|
1369
1471
|
"div",
|
|
1370
1472
|
{
|
|
1371
1473
|
class: t.value
|
|
1372
1474
|
},
|
|
1373
|
-
|
|
1475
|
+
f
|
|
1374
1476
|
);
|
|
1375
1477
|
};
|
|
1376
1478
|
}
|
|
1377
|
-
}),
|
|
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
|
|
1538
|
+
}),
|
|
1539
|
+
r(
|
|
1540
|
+
"label",
|
|
1541
|
+
{
|
|
1542
|
+
for: u.value
|
|
1543
|
+
},
|
|
1544
|
+
l.default?.()
|
|
1545
|
+
)
|
|
1546
|
+
];
|
|
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(
|
|
1548
|
+
"div",
|
|
1549
|
+
{
|
|
1550
|
+
class: t.value
|
|
1551
|
+
},
|
|
1552
|
+
p
|
|
1553
|
+
);
|
|
1554
|
+
};
|
|
1555
|
+
}
|
|
1556
|
+
}), kt = w({
|
|
1378
1557
|
name: "KrdsStepIndicator",
|
|
1379
1558
|
props: {
|
|
1380
1559
|
modelValue: {
|
|
@@ -1387,30 +1566,30 @@ const gt = C({
|
|
|
1387
1566
|
}
|
|
1388
1567
|
},
|
|
1389
1568
|
emits: ["update:modelValue"],
|
|
1390
|
-
setup(e, { slots:
|
|
1391
|
-
const
|
|
1569
|
+
setup(e, { slots: s }) {
|
|
1570
|
+
const n = d(() => {
|
|
1392
1571
|
const u = ["krds-step-wrap"];
|
|
1393
1572
|
return e.class && u.push(e.class), u;
|
|
1394
|
-
}),
|
|
1395
|
-
const
|
|
1396
|
-
return u <
|
|
1573
|
+
}), l = (u) => {
|
|
1574
|
+
const f = e.modelValue || 0;
|
|
1575
|
+
return u < f ? "done" : u === f ? "active" : "pending";
|
|
1397
1576
|
}, o = M(0), t = () => {
|
|
1398
1577
|
o.value = 0;
|
|
1399
1578
|
}, a = () => o.value++;
|
|
1400
1579
|
return De("stepIndicator", {
|
|
1401
|
-
activeStep:
|
|
1402
|
-
getStepStatus:
|
|
1580
|
+
activeStep: d(() => e.modelValue || 0),
|
|
1581
|
+
getStepStatus: l,
|
|
1403
1582
|
getNextStepIndex: a,
|
|
1404
1583
|
resetStepIndex: t
|
|
1405
1584
|
}), () => (t(), r(
|
|
1406
1585
|
"ol",
|
|
1407
1586
|
{
|
|
1408
|
-
class:
|
|
1587
|
+
class: n.value
|
|
1409
1588
|
},
|
|
1410
|
-
|
|
1589
|
+
s.default?.()
|
|
1411
1590
|
));
|
|
1412
1591
|
}
|
|
1413
|
-
}),
|
|
1592
|
+
}), St = w({
|
|
1414
1593
|
name: "KrdsStep",
|
|
1415
1594
|
props: {
|
|
1416
1595
|
step: {
|
|
@@ -1431,15 +1610,15 @@ const gt = C({
|
|
|
1431
1610
|
}
|
|
1432
1611
|
},
|
|
1433
1612
|
emits: ["click"],
|
|
1434
|
-
setup(e, { emit:
|
|
1435
|
-
const
|
|
1436
|
-
const
|
|
1437
|
-
return e.class &&
|
|
1438
|
-
}), u = (
|
|
1439
|
-
|
|
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);
|
|
1440
1619
|
};
|
|
1441
1620
|
return () => {
|
|
1442
|
-
const
|
|
1621
|
+
const f = t.value === "active";
|
|
1443
1622
|
return r(
|
|
1444
1623
|
"li",
|
|
1445
1624
|
{
|
|
@@ -1449,19 +1628,19 @@ const gt = C({
|
|
|
1449
1628
|
[
|
|
1450
1629
|
r("span", [
|
|
1451
1630
|
// 현재 단계 표시 (활성 상태일 때만)
|
|
1452
|
-
|
|
1631
|
+
f && r("em", { class: "sr-only" }, "현재단계"),
|
|
1453
1632
|
// 단계 번호
|
|
1454
1633
|
r("i", { class: "step" }, e.step),
|
|
1455
1634
|
// 단계 제목
|
|
1456
1635
|
r("span", { class: "step-tit" }, e.title),
|
|
1457
1636
|
// 슬롯 내용 (추가 콘텐츠가 있는 경우)
|
|
1458
|
-
|
|
1637
|
+
n.default?.()
|
|
1459
1638
|
])
|
|
1460
1639
|
]
|
|
1461
1640
|
);
|
|
1462
1641
|
};
|
|
1463
1642
|
}
|
|
1464
|
-
}),
|
|
1643
|
+
}), Ct = w({
|
|
1465
1644
|
name: "KrdsSkipLink",
|
|
1466
1645
|
props: {
|
|
1467
1646
|
/**
|
|
@@ -1488,7 +1667,7 @@ const gt = C({
|
|
|
1488
1667
|
default: "krds-skip-link"
|
|
1489
1668
|
}
|
|
1490
1669
|
},
|
|
1491
|
-
setup(e, { slots:
|
|
1670
|
+
setup(e, { slots: s }) {
|
|
1492
1671
|
return () => r(
|
|
1493
1672
|
"div",
|
|
1494
1673
|
{
|
|
@@ -1501,12 +1680,12 @@ const gt = C({
|
|
|
1501
1680
|
{
|
|
1502
1681
|
href: e.href
|
|
1503
1682
|
},
|
|
1504
|
-
|
|
1683
|
+
s.default?.()
|
|
1505
1684
|
)
|
|
1506
1685
|
]
|
|
1507
1686
|
);
|
|
1508
1687
|
}
|
|
1509
|
-
}),
|
|
1688
|
+
}), wt = ["id", "aria-label"], Bt = { class: "breadcrumb" }, _t = ["href", "aria-current", "onClick"], Dt = { key: 0 }, Kt = /* @__PURE__ */ w({
|
|
1510
1689
|
__name: "KrdsBreadcrumb",
|
|
1511
1690
|
props: {
|
|
1512
1691
|
items: {},
|
|
@@ -1515,33 +1694,33 @@ const gt = C({
|
|
|
1515
1694
|
showHomeIcon: { type: Boolean, default: !0 }
|
|
1516
1695
|
},
|
|
1517
1696
|
emits: ["item-click"],
|
|
1518
|
-
setup(e, { emit:
|
|
1519
|
-
const
|
|
1520
|
-
a.onClick && a.onClick(u),
|
|
1697
|
+
setup(e, { emit: s }) {
|
|
1698
|
+
const n = e, l = s, o = (a) => a === n.items.length - 1, t = (a, u) => {
|
|
1699
|
+
a.onClick && a.onClick(u), l("item-click", a, u);
|
|
1521
1700
|
};
|
|
1522
|
-
return (a, u) => (
|
|
1701
|
+
return (a, u) => (B(), D("nav", {
|
|
1523
1702
|
id: a.id,
|
|
1524
1703
|
class: "krds-breadcrumb-wrap",
|
|
1525
1704
|
"aria-label": a.ariaLabel
|
|
1526
1705
|
}, [
|
|
1527
|
-
|
|
1528
|
-
(
|
|
1529
|
-
key: `breadcrumb-${
|
|
1530
|
-
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 })
|
|
1531
1710
|
}, [
|
|
1532
|
-
|
|
1533
|
-
href:
|
|
1711
|
+
m("a", {
|
|
1712
|
+
href: f.href || "#",
|
|
1534
1713
|
class: "txt",
|
|
1535
|
-
"aria-current": o(
|
|
1536
|
-
onClick: (
|
|
1714
|
+
"aria-current": o(p) ? "page" : void 0,
|
|
1715
|
+
onClick: (g) => t(f, g)
|
|
1537
1716
|
}, [
|
|
1538
|
-
|
|
1539
|
-
], 8,
|
|
1717
|
+
p === 0 && a.showHomeIcon ? J("", !0) : (B(), D("span", Dt, L(f.text), 1))
|
|
1718
|
+
], 8, _t)
|
|
1540
1719
|
], 2))), 128))
|
|
1541
1720
|
])
|
|
1542
|
-
], 8,
|
|
1721
|
+
], 8, wt));
|
|
1543
1722
|
}
|
|
1544
|
-
}),
|
|
1723
|
+
}), xt = w({
|
|
1545
1724
|
name: "KrdsInPageNavigation",
|
|
1546
1725
|
props: {
|
|
1547
1726
|
title: {
|
|
@@ -1575,107 +1754,107 @@ const gt = C({
|
|
|
1575
1754
|
},
|
|
1576
1755
|
emits: ["itemClick"],
|
|
1577
1756
|
slots: Object,
|
|
1578
|
-
setup(e, { emit:
|
|
1579
|
-
const
|
|
1580
|
-
const
|
|
1581
|
-
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;
|
|
1582
1761
|
}), a = () => {
|
|
1583
|
-
const
|
|
1584
|
-
return
|
|
1585
|
-
}, u = (
|
|
1586
|
-
if (
|
|
1587
|
-
|
|
1588
|
-
const
|
|
1589
|
-
if (
|
|
1590
|
-
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();
|
|
1591
1770
|
if (window.scrollTo({
|
|
1592
1771
|
left: 0,
|
|
1593
|
-
top:
|
|
1772
|
+
top: b.getBoundingClientRect().top + window.scrollY - h,
|
|
1594
1773
|
behavior: "smooth"
|
|
1595
|
-
}),
|
|
1596
|
-
const
|
|
1597
|
-
|
|
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 }));
|
|
1598
1777
|
}
|
|
1599
1778
|
}
|
|
1600
1779
|
}
|
|
1601
|
-
},
|
|
1602
|
-
o.value.clear(), e.items && e.items.filter((
|
|
1603
|
-
const
|
|
1604
|
-
|
|
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);
|
|
1605
1784
|
});
|
|
1606
|
-
},
|
|
1785
|
+
}, p = () => {
|
|
1607
1786
|
if (!e.autoActive || !e.items || o.value.size === 0) return;
|
|
1608
|
-
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) => ({
|
|
1609
1788
|
href: z.href,
|
|
1610
1789
|
element: o.value.get(z.href),
|
|
1611
1790
|
item: z
|
|
1612
1791
|
}));
|
|
1613
|
-
if (
|
|
1614
|
-
const
|
|
1615
|
-
let
|
|
1616
|
-
if (
|
|
1617
|
-
|
|
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;
|
|
1618
1797
|
else if (window.scrollY <= T)
|
|
1619
|
-
|
|
1798
|
+
N = x.href;
|
|
1620
1799
|
else
|
|
1621
|
-
for (const z of
|
|
1622
|
-
const
|
|
1623
|
-
if (window.scrollY >
|
|
1624
|
-
|
|
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;
|
|
1625
1804
|
break;
|
|
1626
1805
|
}
|
|
1627
1806
|
}
|
|
1628
|
-
|
|
1629
|
-
},
|
|
1807
|
+
N && N !== l.value && (l.value = N);
|
|
1808
|
+
}, g = () => {
|
|
1630
1809
|
if (!e.items) return;
|
|
1631
|
-
const
|
|
1632
|
-
|
|
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);
|
|
1633
1812
|
};
|
|
1634
|
-
|
|
1635
|
-
if (
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1638
|
-
|
|
1813
|
+
ue(() => {
|
|
1814
|
+
if (g(), e.autoActive) {
|
|
1815
|
+
f(), p(), window.addEventListener("scroll", p, { passive: !0 });
|
|
1816
|
+
const c = new MutationObserver(() => {
|
|
1817
|
+
f();
|
|
1639
1818
|
});
|
|
1640
|
-
|
|
1819
|
+
c.observe(document.body, {
|
|
1641
1820
|
childList: !0,
|
|
1642
1821
|
subtree: !0
|
|
1643
|
-
}),
|
|
1644
|
-
|
|
1822
|
+
}), ne(() => {
|
|
1823
|
+
c.disconnect();
|
|
1645
1824
|
});
|
|
1646
1825
|
}
|
|
1647
|
-
}),
|
|
1648
|
-
e.autoActive && (window.removeEventListener("scroll",
|
|
1826
|
+
}), ne(() => {
|
|
1827
|
+
e.autoActive && (window.removeEventListener("scroll", p), o.value.clear());
|
|
1649
1828
|
});
|
|
1650
|
-
const
|
|
1829
|
+
const _ = () => !e.caption && !e.title ? null : r("div", { class: "in-page-navigation-header" }, [
|
|
1651
1830
|
e.caption && r("p", { class: "quick-caption" }, e.caption),
|
|
1652
1831
|
e.title && r("p", { class: "quick-title" }, e.title)
|
|
1653
1832
|
]), y = () => {
|
|
1654
1833
|
if (!e.items) return null;
|
|
1655
|
-
const
|
|
1656
|
-
const
|
|
1657
|
-
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 }, [
|
|
1658
1837
|
r(
|
|
1659
1838
|
"a",
|
|
1660
1839
|
{
|
|
1661
|
-
href:
|
|
1662
|
-
class:
|
|
1663
|
-
onClick: (
|
|
1664
|
-
onKeydown: (
|
|
1665
|
-
(
|
|
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));
|
|
1666
1845
|
}
|
|
1667
1846
|
},
|
|
1668
|
-
|
|
1847
|
+
i.text
|
|
1669
1848
|
)
|
|
1670
1849
|
]);
|
|
1671
1850
|
});
|
|
1672
|
-
return r("nav", { class: "in-page-navigation-list" }, [r("ul", {},
|
|
1673
|
-
}, $ = () =>
|
|
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;
|
|
1674
1853
|
return () => r("div", { class: t.value }, [
|
|
1675
|
-
r("div", { class: "krds-in-page-navigation-area" }, [
|
|
1854
|
+
r("div", { class: "krds-in-page-navigation-area" }, [_(), y(), $()].filter(Boolean))
|
|
1676
1855
|
]);
|
|
1677
1856
|
}
|
|
1678
|
-
}),
|
|
1857
|
+
}), Vt = ["id"], It = { class: "page-links" }, zt = ["href", "aria-current", "onClick"], Mt = { key: 0 }, $t = ["aria-label"], Nt = /* @__PURE__ */ w({
|
|
1679
1858
|
__name: "KrdsPagination",
|
|
1680
1859
|
props: {
|
|
1681
1860
|
modelValue: { default: 1 },
|
|
@@ -1686,221 +1865,226 @@ const gt = C({
|
|
|
1686
1865
|
pageRange: { default: 8 }
|
|
1687
1866
|
},
|
|
1688
1867
|
emits: ["update:modelValue"],
|
|
1689
|
-
setup(e, { emit:
|
|
1690
|
-
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(() => {
|
|
1691
1870
|
if (!a.value)
|
|
1692
1871
|
return "#";
|
|
1693
|
-
}),
|
|
1872
|
+
}), p = d(() => {
|
|
1694
1873
|
if (!u.value)
|
|
1695
1874
|
return "#";
|
|
1696
|
-
}),
|
|
1697
|
-
const { pageRange:
|
|
1698
|
-
if (
|
|
1699
|
-
for (let
|
|
1700
|
-
|
|
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({
|
|
1701
1880
|
type: "page",
|
|
1702
|
-
key: `page-${
|
|
1703
|
-
page:
|
|
1881
|
+
key: `page-${S}`,
|
|
1882
|
+
page: S,
|
|
1704
1883
|
href: "#"
|
|
1705
1884
|
});
|
|
1706
1885
|
else {
|
|
1707
|
-
const
|
|
1708
|
-
for (let
|
|
1709
|
-
|
|
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({
|
|
1710
1889
|
type: "page",
|
|
1711
|
-
key: `page-${
|
|
1712
|
-
page:
|
|
1890
|
+
key: `page-${K}`,
|
|
1891
|
+
page: K,
|
|
1713
1892
|
href: "#"
|
|
1714
1893
|
});
|
|
1715
|
-
|
|
1894
|
+
N > S + 1 && h.push({
|
|
1716
1895
|
type: "ellipsis",
|
|
1717
1896
|
key: "ellipsis-left",
|
|
1718
1897
|
ariaLabel: "페이지 생략"
|
|
1719
1898
|
});
|
|
1720
|
-
const z = Math.max(
|
|
1721
|
-
for (let
|
|
1722
|
-
|
|
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({
|
|
1723
1902
|
type: "page",
|
|
1724
|
-
key: `page-${
|
|
1725
|
-
page:
|
|
1903
|
+
key: `page-${K}`,
|
|
1904
|
+
page: K,
|
|
1726
1905
|
href: "#"
|
|
1727
1906
|
});
|
|
1728
|
-
T <
|
|
1907
|
+
T < x - 1 && h.push({
|
|
1729
1908
|
type: "ellipsis",
|
|
1730
1909
|
key: "ellipsis-right",
|
|
1731
1910
|
ariaLabel: "페이지 생략"
|
|
1732
1911
|
});
|
|
1733
|
-
for (let
|
|
1734
|
-
|
|
1912
|
+
for (let K = x; K <= i; K++)
|
|
1913
|
+
h.push({
|
|
1735
1914
|
type: "page",
|
|
1736
|
-
key: `page-${
|
|
1737
|
-
page:
|
|
1915
|
+
key: `page-${K}`,
|
|
1916
|
+
page: K,
|
|
1738
1917
|
href: "#"
|
|
1739
1918
|
});
|
|
1740
1919
|
}
|
|
1741
|
-
return
|
|
1742
|
-
}),
|
|
1743
|
-
if (
|
|
1744
|
-
|
|
1920
|
+
return h;
|
|
1921
|
+
}), _ = (c, i) => {
|
|
1922
|
+
if (c === t.value) {
|
|
1923
|
+
i.preventDefault();
|
|
1745
1924
|
return;
|
|
1746
1925
|
}
|
|
1747
|
-
|
|
1748
|
-
}, y = (
|
|
1926
|
+
l("update:modelValue", c);
|
|
1927
|
+
}, y = (c) => {
|
|
1749
1928
|
if (a.value) {
|
|
1750
|
-
|
|
1929
|
+
c.preventDefault();
|
|
1751
1930
|
return;
|
|
1752
1931
|
}
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1755
|
-
}, $ = (
|
|
1932
|
+
const i = t.value - 1;
|
|
1933
|
+
l("update:modelValue", i);
|
|
1934
|
+
}, $ = (c) => {
|
|
1756
1935
|
if (u.value) {
|
|
1757
|
-
|
|
1936
|
+
c.preventDefault();
|
|
1758
1937
|
return;
|
|
1759
1938
|
}
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1939
|
+
const i = t.value + 1;
|
|
1940
|
+
l("update:modelValue", i);
|
|
1762
1941
|
};
|
|
1763
|
-
return (
|
|
1764
|
-
const
|
|
1765
|
-
return
|
|
1766
|
-
id:
|
|
1942
|
+
return (c, i) => {
|
|
1943
|
+
const b = xe("sr-only");
|
|
1944
|
+
return B(), D("div", {
|
|
1945
|
+
id: c.id,
|
|
1767
1946
|
class: "krds-pagination"
|
|
1768
1947
|
}, [
|
|
1769
|
-
(
|
|
1770
|
-
href: a.value ? void 0 :
|
|
1771
|
-
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 }]),
|
|
1772
1951
|
onClick: y
|
|
1773
1952
|
}, {
|
|
1774
|
-
default: U(() => [...
|
|
1775
|
-
|
|
1953
|
+
default: U(() => [...i[0] || (i[0] = [
|
|
1954
|
+
H(" 이전 ", -1)
|
|
1776
1955
|
])]),
|
|
1777
1956
|
_: 1
|
|
1778
1957
|
}, 8, ["href", "class"])),
|
|
1779
|
-
|
|
1780
|
-
(
|
|
1781
|
-
key:
|
|
1958
|
+
m("div", It, [
|
|
1959
|
+
(B(!0), D(O, null, q(g.value, (h) => (B(), D(O, {
|
|
1960
|
+
key: h.key
|
|
1782
1961
|
}, [
|
|
1783
|
-
|
|
1962
|
+
h.type === "page" ? (B(), D("a", {
|
|
1784
1963
|
key: 0,
|
|
1785
|
-
href:
|
|
1786
|
-
class:
|
|
1787
|
-
"aria-current":
|
|
1788
|
-
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)
|
|
1789
1968
|
}, [
|
|
1790
|
-
|
|
1791
|
-
|
|
1969
|
+
h.page === t.value ? j((B(), D("span", Mt, [...i[1] || (i[1] = [
|
|
1970
|
+
H("현재페이지", -1)
|
|
1792
1971
|
])])), [
|
|
1793
|
-
[
|
|
1972
|
+
[b]
|
|
1794
1973
|
]) : J("", !0),
|
|
1795
|
-
|
|
1796
|
-
], 10,
|
|
1974
|
+
H(" " + L(h.page), 1)
|
|
1975
|
+
], 10, zt)) : h.type === "ellipsis" ? (B(), D("span", {
|
|
1797
1976
|
key: 1,
|
|
1798
1977
|
class: "page-link link-dot",
|
|
1799
|
-
"aria-label":
|
|
1800
|
-
}, null, 8,
|
|
1978
|
+
"aria-label": h.ariaLabel
|
|
1979
|
+
}, null, 8, $t)) : J("", !0)
|
|
1801
1980
|
], 64))), 128))
|
|
1802
1981
|
]),
|
|
1803
|
-
(
|
|
1804
|
-
href: u.value ? void 0 :
|
|
1805
|
-
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 }]),
|
|
1806
1985
|
onClick: $
|
|
1807
1986
|
}, {
|
|
1808
|
-
default: U(() => [...
|
|
1809
|
-
|
|
1987
|
+
default: U(() => [...i[2] || (i[2] = [
|
|
1988
|
+
H(" 다음 ", -1)
|
|
1810
1989
|
])]),
|
|
1811
1990
|
_: 1
|
|
1812
1991
|
}, 8, ["href", "class"]))
|
|
1813
|
-
], 8,
|
|
1992
|
+
], 8, Vt);
|
|
1814
1993
|
};
|
|
1815
1994
|
}
|
|
1816
|
-
}),
|
|
1995
|
+
}), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1817
1996
|
__proto__: null,
|
|
1818
|
-
KrdsBadge:
|
|
1819
|
-
KrdsBreadcrumb:
|
|
1820
|
-
KrdsButton:
|
|
1821
|
-
KrdsButtonGroup:
|
|
1997
|
+
KrdsBadge: ct,
|
|
1998
|
+
KrdsBreadcrumb: Kt,
|
|
1999
|
+
KrdsButton: de,
|
|
2000
|
+
KrdsButtonGroup: Ve,
|
|
1822
2001
|
KrdsCheckArea: yt,
|
|
1823
2002
|
KrdsCheckbox: pt,
|
|
1824
2003
|
KrdsDateInput: rt,
|
|
1825
|
-
KrdsFileUpload:
|
|
1826
|
-
KrdsFormGroup:
|
|
1827
|
-
KrdsFormHint:
|
|
2004
|
+
KrdsFileUpload: dt,
|
|
2005
|
+
KrdsFormGroup: Pe,
|
|
2006
|
+
KrdsFormHint: Ne,
|
|
1828
2007
|
KrdsFormLabel: $e,
|
|
1829
|
-
KrdsIcon:
|
|
1830
|
-
KrdsInPageNavigation:
|
|
2008
|
+
KrdsIcon: Ie,
|
|
2009
|
+
KrdsInPageNavigation: xt,
|
|
1831
2010
|
KrdsInput: Me,
|
|
1832
2011
|
KrdsLink: ze,
|
|
1833
|
-
KrdsMasthead:
|
|
1834
|
-
KrdsPagination:
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
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,
|
|
1841
2022
|
KrdsTextarea: ot,
|
|
1842
|
-
KrdsToggleSwitch:
|
|
1843
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1844
|
-
mounted(e,
|
|
1845
|
-
|
|
2023
|
+
KrdsToggleSwitch: mt
|
|
2024
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = {
|
|
2025
|
+
mounted(e, s) {
|
|
2026
|
+
s.value !== !1 && e.classList.add("sr-only");
|
|
1846
2027
|
},
|
|
1847
|
-
updated(e,
|
|
1848
|
-
|
|
2028
|
+
updated(e, s) {
|
|
2029
|
+
s.value === !1 ? e.classList.remove("sr-only") : e.classList.add("sr-only");
|
|
1849
2030
|
},
|
|
1850
2031
|
unmounted(e) {
|
|
1851
2032
|
e.classList.remove("sr-only");
|
|
1852
2033
|
}
|
|
1853
|
-
},
|
|
1854
|
-
"sr-only":
|
|
2034
|
+
}, re = {
|
|
2035
|
+
"sr-only": Z
|
|
1855
2036
|
}, fe = (e) => {
|
|
1856
|
-
e.directive("sr-only",
|
|
1857
|
-
},
|
|
2037
|
+
e.directive("sr-only", Z);
|
|
2038
|
+
}, oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1858
2039
|
__proto__: null,
|
|
1859
|
-
default:
|
|
1860
|
-
directives:
|
|
2040
|
+
default: re,
|
|
2041
|
+
directives: re,
|
|
1861
2042
|
installDirectives: fe,
|
|
1862
|
-
vSrOnly:
|
|
1863
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1864
|
-
install(e,
|
|
1865
|
-
e.provide("krds:config",
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1868
|
-
const o =
|
|
1869
|
-
o && e.component(
|
|
1870
|
-
}), typeof
|
|
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];
|
|
2050
|
+
o && e.component(l, o);
|
|
2051
|
+
}), typeof oe == "object" && oe !== null && fe(e), e.config.globalProperties.$krds = {
|
|
1871
2052
|
version: "__VERSION__"
|
|
1872
|
-
}, 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}개`);
|
|
1873
2054
|
}
|
|
1874
|
-
},
|
|
2055
|
+
}, Et = "__VERSION__";
|
|
1875
2056
|
export {
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
2057
|
+
ct as KrdsBadge,
|
|
2058
|
+
Kt as KrdsBreadcrumb,
|
|
2059
|
+
de as KrdsButton,
|
|
2060
|
+
Ve as KrdsButtonGroup,
|
|
1880
2061
|
yt as KrdsCheckArea,
|
|
1881
2062
|
pt as KrdsCheckbox,
|
|
1882
2063
|
rt as KrdsDateInput,
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
2064
|
+
dt as KrdsFileUpload,
|
|
2065
|
+
Pe as KrdsFormGroup,
|
|
2066
|
+
Ne as KrdsFormHint,
|
|
1886
2067
|
$e as KrdsFormLabel,
|
|
1887
|
-
|
|
1888
|
-
|
|
2068
|
+
Ie as KrdsIcon,
|
|
2069
|
+
xt as KrdsInPageNavigation,
|
|
1889
2070
|
Me as KrdsInput,
|
|
1890
2071
|
ze as KrdsLink,
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
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,
|
|
1899
2082
|
ot as KrdsTextarea,
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
Lt as
|
|
2083
|
+
mt as KrdsToggleSwitch,
|
|
2084
|
+
X as classNames,
|
|
2085
|
+
Tt as default,
|
|
2086
|
+
Q as generateId,
|
|
2087
|
+
Lt as generateUid,
|
|
2088
|
+
Et as version
|
|
1905
2089
|
};
|
|
1906
2090
|
//# sourceMappingURL=krds-vue.es.js.map
|