@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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as C, computed as g, h as r, ref as M, onMounted as re, onBeforeUnmount as _e, createElementBlock as B, openBlock as w, createElementVNode as h, normalizeClass as L, withDirectives as Y, unref as I, toDisplayString as N, Fragment as E, renderList as F, vShow as G, createBlock as W, withCtx as U, createTextVNode as R, watch as Be, provide as De, inject as Ke, createCommentVNode as J, onUnmounted as ae, resolveDirective as xe, resolveDynamicComponent as le } from "vue";
2
- const oe = C({
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: i, slots: s }) {
40
- const n = g(() => {
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 || i("click", t);
44
+ e.disabled || s("click", t);
45
45
  };
46
46
  return () => r(
47
47
  "button",
48
48
  {
49
49
  type: e.type,
50
- class: n.value,
50
+ class: l.value,
51
51
  disabled: e.disabled,
52
52
  onClick: o
53
53
  },
54
- s.default?.()
54
+ n.default?.()
55
55
  );
56
56
  }
57
- }), Ie = C({
57
+ }), Ve = w({
58
58
  name: "KrdsButtonGroup",
59
59
  props: {},
60
- setup(e, { slots: i }) {
60
+ setup(e, { slots: s }) {
61
61
  return () => r(
62
62
  "div",
63
63
  {
64
64
  class: "btn-group"
65
65
  },
66
- i.default?.()
66
+ s.default?.()
67
67
  );
68
68
  }
69
- }), Ve = C({
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 = C({
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: i, slots: s }) {
124
- const n = g(() => {
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 = g(() => {
127
+ }), o = d(() => {
128
128
  const a = {
129
129
  href: e.href,
130
- class: n.value
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
- i("click", a);
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
- s.default?.()
142
+ n.default?.()
143
143
  );
144
144
  }
145
- }), ue = C({
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 = C({
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: i, slots: s }) {
247
- const n = g(() => {
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, d = e.type === "number" ? Number($.value) : $.value;
252
- i("update:modelValue", d), i("input", y);
251
+ const $ = y.target, c = e.type === "number" ? Number($.value) : $.value;
252
+ s("update:modelValue", c), s("input", y);
253
253
  }, t = (y) => {
254
- i("change", y);
254
+ s("change", y);
255
255
  }, a = (y) => {
256
- i("focus", y);
256
+ s("focus", y);
257
257
  }, u = (y) => {
258
- i("blur", y);
259
- }, v = (y) => {
260
- i("keydown", y);
261
- }, S = (y) => {
262
- i("keyup", y);
263
- }, _ = g(() => {
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: n.value,
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: v,
281
- onKeyup: S
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
- }), V = g(() => {
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", _.value)];
290
- return e.loading ? r("div", { class: V.value }, [r("div", { class: "form-spinner" }, [...y, r(ue)])]) : (s.default && y.push(...s.default()), r("div", { class: V.value }, y));
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 = C({
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: i, slots: s }) {
315
- const n = (o) => {
316
- i("click", o);
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: n
326
+ onClick: l
327
327
  },
328
- s.default?.()
328
+ n.default?.()
329
329
  )
330
330
  ]);
331
331
  }
332
- }), Pe = C({
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: i, slots: s }) {
354
- const n = (t) => {
355
- i("click", t);
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: n
380
+ onClick: l
381
381
  },
382
- s.default?.()
382
+ n.default?.()
383
383
  );
384
384
  }
385
- }), Le = C({
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: i }) {
402
- const s = g(() => {
403
- const n = ["form-group"];
404
- return e.class && n.push(e.class), n;
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: s.value,
410
+ class: n.value,
411
411
  style: e.style
412
412
  },
413
- i.default?.()
413
+ s.default?.()
414
414
  );
415
415
  }
416
416
  });
417
- function Ne(e, i) {
418
- const s = /* @__PURE__ */ new Date(), n = M(e || s.getFullYear()), o = M(i || s.getMonth() + 1), t = M(null), a = M(null), u = M(null), v = g(() => {
419
- const p = s.getFullYear(), f = [];
420
- for (let b = p - 10; b <= p + 10; b++)
421
- f.push(b);
422
- return f;
423
- }), S = g(() => Array.from({ length: 12 }, (p, f) => f + 1)), _ = () => {
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
- }, V = () => {
426
- o.value === 1 ? (o.value = 12, n.value -= 1) : o.value -= 1;
425
+ }, _ = () => {
426
+ o.value === 1 ? (o.value = 12, l.value -= 1) : o.value -= 1;
427
427
  }, y = () => {
428
- o.value === 12 ? (o.value = 1, n.value += 1) : o.value += 1;
429
- }, $ = (p, f = !1) => {
430
- if (f)
431
- t.value = p, a.value = p;
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 = p, a.value = null;
433
+ t.value = b, a.value = null;
434
434
  else {
435
- const b = new Date(t.value.replace(/\./g, "-"));
436
- new Date(p.replace(/\./g, "-")) < b ? (t.value = p, a.value = null) : a.value = p;
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: n,
441
+ currentYear: l,
442
442
  currentMonth: o,
443
443
  selectedStartDate: t,
444
444
  selectedEndDate: a,
445
445
  activeDateSelector: u,
446
446
  // Computed
447
- yearOptions: v,
448
- monthOptions: S,
447
+ yearOptions: f,
448
+ monthOptions: p,
449
449
  // Methods
450
- clearDateSelection: _,
451
- prevMonth: V,
450
+ clearDateSelection: g,
451
+ prevMonth: _,
452
452
  nextMonth: y,
453
453
  handleDateSelection: $,
454
454
  selectToday: () => {
455
- const p = `${s.getFullYear()}.${String(s.getMonth() + 1).padStart(2, "0")}.${String(s.getDate()).padStart(2, "0")}`;
456
- $(p, !0);
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: (p) => {
458
+ isDateInSelectedRange: (b) => {
459
459
  if (!t.value || !a.value)
460
460
  return { isInRange: !1, isStart: !1, isEnd: !1 };
461
- const f = new Date(p.replace(/\./g, "-")), b = new Date(t.value.replace(/\./g, "-")), K = new Date(a.value.replace(/\./g, "-")), O = p === t.value, T = p === a.value;
462
- return { isInRange: f >= b && f <= K, isStart: O, isEnd: T };
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, i, s = {}) {
467
- let n = null;
468
- const o = typeof s == "string" ? { ignore: s } : s, { ignore: t, event: a = "click" } = o, u = () => {
469
- n = (S) => {
470
- const _ = S.target;
471
- e.value?.contains(_) || t && _.closest(t) || i();
472
- }, document.addEventListener(a, n);
473
- }, v = () => {
474
- if (n) {
475
- const S = typeof s == "string" ? "click" : s.event || "click";
476
- document.removeEventListener(S, n), n = null;
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 re(() => {
479
+ return ue(() => {
480
480
  u();
481
- }), _e(() => {
482
- v();
481
+ }), Be(() => {
482
+ f();
483
483
  }), {
484
484
  setupGlobalListeners: u,
485
- removeGlobalListeners: v
485
+ removeGlobalListeners: f
486
486
  };
487
487
  }
488
- const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id", "name", "placeholder", "value", "readonly", "disabled", "required", "autofocus"], qe = ["disabled", "aria-expanded"], Fe = { class: "calendar-head" }, He = { class: "calendar-switch-wrap" }, Re = { class: "calendar-drop-down" }, Ye = ["aria-expanded"], je = { 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__ */ C({
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: i }) {
509
- const s = e, n = i, o = M(), t = M(), a = M(!1), u = M(null), {
510
- currentYear: v,
511
- currentMonth: S,
512
- selectedStartDate: _,
513
- selectedEndDate: V,
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: d,
517
- nextMonth: l,
518
- handleDateSelection: p,
519
- selectToday: f,
520
- isDateInSelectedRange: b
521
- } = Ne(s.initialYear, s.initialMonth), K = () => {
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, K, ".calendar-conts");
525
- const O = g(() => {
526
- const c = ["krds-input", "datepicker", "cal"];
527
- return s.size && c.push(s.size), s.class && c.push(s.class), c;
528
- }), T = g(() => ["form-conts", "calendar-conts"]), P = g(() => ({
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 = g(() => {
532
- const c = v.value, m = S.value, k = new Date(c, m - 1, 1), q = new Date(k);
533
- q.setDate(q.getDate() - k.getDay());
534
- const A = [], x = new Date(q);
535
- for (let j = 0; j < 6; j++) {
536
- const Z = [];
537
- for (let ee = 0; ee < 7; ee++) {
538
- const we = `${x.getFullYear()}.${String(x.getMonth() + 1).padStart(2, "0")}.${String(x.getDate()).padStart(2, "0")}`, te = x.getDay();
539
- Z.push({
540
- day: x.getDate(),
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: x.getMonth() === m - 1,
543
- isToday: x.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
544
- isPrevMonth: x.getMonth() < m - 1 || x.getMonth() === 11 && m === 1,
545
- isNextMonth: x.getMonth() > m - 1 || x.getMonth() === 0 && m === 12,
546
- isSunday: te === 0,
547
- isSaturday: te === 6
548
- }), x.setDate(x.getDate() + 1);
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
- A.push(Z);
550
+ E.push(te);
551
551
  }
552
- return A;
553
- }), H = (c) => {
554
- const m = [];
555
- if (c.isPrevMonth && m.push("old"), c.isNextMonth && m.push("new"), c.isToday && m.push("today"), c.isSunday && m.push("day-off"), s.holidays?.includes(c.dateString) && m.push("day-off"), s.eventDates?.includes(c.dateString) && m.push("day-event"), c.isCurrentMonth) {
556
- const k = b(c.dateString);
557
- k.isInRange && (m.push("period"), k.isStart && m.push("start"), k.isEnd && m.push("end"));
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 m;
560
- }, D = g(() => [
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: f
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: K
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
- ]), X = (c) => {
586
- u.value === c ? u.value = null : u.value = c;
587
- }, ve = (c) => {
588
- v.value = c, u.value = null;
589
- }, he = (c) => {
590
- S.value = c, u.value = null;
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 (_.value) {
593
- if (V.value && _.value !== V.value) {
594
- const c = `${_.value} ~ ${V.value}`;
595
- n("update:modelValue", c);
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
- n("update:modelValue", _.value);
598
- K();
597
+ l("update:modelValue", g.value);
598
+ x();
599
599
  }
600
- }, ye = () => {
600
+ }, me = () => {
601
601
  a.value = !0, u.value = null, setTimeout(() => {
602
602
  o.value?.querySelector(".calendar-wrap")?.focus();
603
603
  }, 50);
604
- }, pe = () => {
605
- a.value ? K() : ye();
606
- }, me = (c) => {
607
- c.code === "Escape" && (u.value ? u.value = null : a.value && K());
608
- }, be = (c) => {
609
- const m = c.target;
610
- n("update:modelValue", m.value), n("input", c);
611
- }, ke = (c) => {
612
- n("change", c);
613
- }, Se = (c) => {
614
- n("focus", c);
615
- }, Ce = (c) => {
616
- n("blur", c);
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 (c, m) => (w(), B("div", Ae, [
619
- h("div", {
620
- class: L(T.value)
618
+ return (v, k) => (B(), D("div", Ee, [
619
+ m("div", {
620
+ class: P(T.value)
621
621
  }, [
622
- h("div", Ee, [
623
- h("input", {
624
- id: c.id,
625
- name: c.name,
626
- class: L(O.value),
627
- placeholder: c.placeholder,
628
- value: c.modelValue,
629
- readonly: c.readonly,
630
- disabled: c.disabled,
631
- required: c.required,
632
- autofocus: c.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, Oe),
639
- h("button", {
638
+ }, null, 42, Ae),
639
+ m("button", {
640
640
  ref_key: "datePickerButtonRef",
641
641
  ref: t,
642
- class: L(`krds-btn ${c.size || "medium"} icon form-btn-datepicker`),
643
- disabled: c.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: pe
647
- }, [...m[4] || (m[4] = [
648
- h("span", { class: "sr-only" }, "달력 열기", -1),
649
- h("i", { class: "svg-icon ico-calendar" }, null, -1)
650
- ])], 10, qe)
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
- h("div", {
652
+ m("div", {
653
653
  ref_key: "datePickerAreaRef",
654
654
  ref: o,
655
- class: L(P.value)
655
+ class: P(N.value)
656
656
  }, [
657
- Y(h("div", {
657
+ j(m("div", {
658
658
  class: "calendar-wrap bottom",
659
659
  "aria-label": "달력",
660
660
  tabindex: "0",
661
- onKeydown: me
661
+ onKeydown: pe
662
662
  }, [
663
- h("div", Fe, [
664
- h("button", {
663
+ m("div", qe, [
664
+ m("button", {
665
665
  type: "button",
666
666
  class: "btn-cal-move prev",
667
- onClick: m[0] || (m[0] = //@ts-ignore
668
- (...k) => I(d) && I(d)(...k))
669
- }, [...m[5] || (m[5] = [
670
- h("span", { class: "sr-only" }, "이전 달", -1)
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
- h("div", He, [
673
- h("div", Re, [
674
- h("button", {
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: m[1] || (m[1] = (k) => X("year"))
680
- }, N(I(v)) + "년 ", 9, Ye),
681
- Y(h("div", je, [
682
- h("ul", Ge, [
683
- (w(!0), B(E, null, F(I(y), (k) => (w(), B("li", { key: k }, [
684
- h("button", {
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: L({ active: k === I(v) }),
687
- onClick: (q) => ve(k)
688
- }, N(k) + "년", 11, We)
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
- h("div", Ue, [
696
- h("button", {
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: m[2] || (m[2] = (k) => X("month"))
702
- }, N(I(S).toString().padStart(2, "0")) + "월 ", 9, Je),
703
- Y(h("div", Qe, [
704
- h("ul", Xe, [
705
- (w(!0), B(E, null, F(I($), (k) => (w(), B("li", { key: k }, [
706
- h("button", {
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: L({ active: k === I(S) }),
709
- onClick: (q) => he(k)
710
- }, N(k.toString().padStart(2, "0")) + "월 ", 11, Ze)
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
- h("button", {
718
+ m("button", {
719
719
  type: "button",
720
720
  class: "btn-cal-move next",
721
- onClick: m[3] || (m[3] = //@ts-ignore
722
- (...k) => I(l) && I(l)(...k))
723
- }, [...m[6] || (m[6] = [
724
- h("span", { class: "sr-only" }, "다음 달", -1)
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
- h("div", et, [
728
- h("div", tt, [
729
- h("table", at, [
730
- h("caption", null, N(I(v)) + "년 " + N(I(S).toString().padStart(2, "0")) + "월", 1),
731
- m[7] || (m[7] = h("thead", null, [
732
- h("tr", null, [
733
- h("th", null, "일"),
734
- h("th", null, "월"),
735
- h("th", null, "화"),
736
- h("th", null, "수"),
737
- h("th", null, "목"),
738
- h("th", null, "금"),
739
- h("th", null, "토")
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
- h("tbody", null, [
743
- (w(!0), B(E, null, F(z.value, (k, q) => (w(), B("tr", { key: q }, [
744
- (w(!0), B(E, null, F(k, (A, x) => (w(), B("td", {
745
- key: x,
746
- class: L(H(A)),
747
- "data-date": A.dateString
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
- h("button", {
749
+ m("button", {
750
750
  type: "button",
751
751
  class: "btn-set-date",
752
- "aria-pressed": I(b)(A.dateString).isInRange ? "true" : "false",
753
- onClick: (j) => I(p)(A.dateString)
752
+ "aria-pressed": I(S)(E.dateString).isInRange ? "true" : "false",
753
+ onClick: (Y) => I(b)(E.dateString)
754
754
  }, [
755
- h("span", null, N(A.day), 1)
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
- h("div", st, [
764
- h("div", it, [
765
- (w(!0), B(E, null, F(D.value, (k) => (w(), W(I(oe), {
766
- id: k.id,
767
- key: k.id,
768
- class: L(k.class),
769
- variant: k.variant,
770
- size: k.size,
771
- onClick: k.handler
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
- R(N(k.label), 1)
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 = C({
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: i }) {
862
- const s = M(0);
863
- Be(
861
+ setup(e, { emit: s }) {
862
+ const n = M(0);
863
+ _e(
864
864
  () => e.modelValue,
865
- (l) => {
866
- s.value = (l || "").length;
865
+ (i) => {
866
+ n.value = (i || "").length;
867
867
  },
868
868
  { immediate: !0 }
869
869
  );
870
- const n = g(() => {
871
- const l = ["krds-input"];
872
- return e.size && l.push(e.size), e.class && l.push(e.class), l;
873
- }), o = g(() => {
874
- const l = {};
875
- return e.resize && (l.resize = e.resize), l;
876
- }), t = (l) => {
877
- const f = l.target.value;
878
- s.value = f.length, i("update:modelValue", f), i("input", l);
879
- }, a = (l) => {
880
- i("change", l);
881
- }, u = (l) => {
882
- i("focus", l);
883
- }, v = (l) => {
884
- i("blur", l);
885
- }, S = (l) => {
886
- i("keydown", l);
887
- }, _ = (l) => {
888
- i("keyup", l);
889
- }, V = g(() => {
890
- const l = {
891
- class: n.value,
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: v,
907
- onKeydown: S,
908
- onKeyup: _
906
+ onBlur: f,
907
+ onKeydown: p,
908
+ onKeyup: g
909
909
  };
910
- return e.maxlength !== void 0 && (l.maxlength = e.maxlength), e.minlength !== void 0 && (l.minlength = e.minlength), l;
911
- }), y = g(() => ["form-conts"]), $ = g(() => ["textarea-wrap"]), d = g(() => {
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 l = s.value, p = e.maxlength;
913
+ const i = n.value, b = e.maxlength;
914
914
  return {
915
- current: l,
916
- max: p || ""
915
+ current: i,
916
+ max: b || ""
917
917
  };
918
918
  });
919
919
  return () => {
920
- const l = [r("textarea", V.value)];
921
- return d.value && l.push(
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" }, d.value.current),
924
- r("span", { class: "count-total" }, d.value.max ? `/${d.value.max}` : "")
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 }, l)]);
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
- }), ut = C({
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: i }) {
1033
- M(!1), g(() => {
1034
- const n = ["krds-file-upload", "line"];
1035
- return e.class && n.push(e.class), n;
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 s = g(() => e.modelValue?.length || 0);
1038
- return g(() => !e.disabled && s.value < e.maxFiles), () => null;
1131
+ const n = d(() => e.modelValue?.length || 0);
1132
+ return d(() => !e.disabled && n.value < e.maxFiles), () => null;
1039
1133
  }
1040
- }), dt = C({
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: i, slots: s }) {
1066
- const n = g(() => {
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
- i("click", t);
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: n.value,
1173
+ class: l.value,
1080
1174
  onClick: o
1081
1175
  },
1082
- s.default?.()
1176
+ n.default?.()
1083
1177
  );
1084
1178
  }
1085
- }), ct = C({
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: i, slots: s }) {
1111
- const n = g(() => {
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
- i("remove", a);
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 = s.default?.();
1220
+ const a = [], u = n.default?.();
1127
1221
  if (u && a.push(u), e.link || a.push(t()), e.link) {
1128
- const v = {
1222
+ const f = {
1129
1223
  href: e.href,
1130
- class: n.value
1224
+ class: l.value
1131
1225
  };
1132
- return e.target && (v.target = e.target), e.rel && (v.rel = e.rel), r("a", v, a);
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: n.value
1231
+ class: l.value
1138
1232
  },
1139
1233
  a
1140
1234
  );
1141
1235
  };
1142
1236
  }
1143
- }), ft = C({
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: i }) {
1156
- const s = g(() => {
1157
- const n = ["krds-tag-wrap"];
1158
- return e.size && n.push(e.size), e.class && n.push(e.class), n;
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: s.value
1257
+ class: n.value
1164
1258
  },
1165
- i.default?.()
1259
+ s.default?.()
1166
1260
  );
1167
1261
  }
1168
- }), vt = C({
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: i, slots: s }) {
1178
- const n = g(() => {
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
- i("click", t);
1276
+ s("click", t);
1183
1277
  };
1184
1278
  return () => r(
1185
1279
  "div",
1186
1280
  {
1187
1281
  id: "krds-masthead",
1188
- class: n.value,
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" }, s.default?.())])])
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 ht = 0;
1200
- function de(e = "krds") {
1201
- return `${e}-${++ht}`;
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 ce(...e) {
1301
+ function X(...e) {
1204
1302
  return e.filter(Boolean).join(" ");
1205
1303
  }
1206
- const gt = C({
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: i, attrs: s }) {
1249
- const n = g(() => e.modelValue), o = g(() => ce("krds-form-toggle-switch", e.size, e.class)), t = (u) => {
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 S = u.target.checked;
1253
- i("update:modelValue", S), i("change", S);
1254
- }, a = g(() => e.id || de("toggle-switch"));
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: n.value,
1363
+ checked: l.value,
1266
1364
  disabled: e.disabled,
1267
1365
  onChange: t,
1268
- ...s
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 = C({
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: i }) {
1399
+ setup(e, { slots: s }) {
1298
1400
  return () => {
1299
- const s = ["krds-check-area"];
1300
- return e.class && s.push(e.class), r(
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: s
1405
+ class: n
1304
1406
  },
1305
- i.default?.()
1407
+ s.default?.()
1306
1408
  );
1307
1409
  };
1308
1410
  }
1309
- }), pt = C({
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", "change"],
1440
+ emits: ["update:modelValue"],
1339
1441
  slots: Object,
1340
- setup(e, { emit: i, attrs: s, slots: n }) {
1341
- const o = g(() => e.modelValue), t = g(() => {
1342
- const v = e.chip ? "krds-form-chip" : "krds-form-check";
1343
- return ce(v, e.size, e.class);
1344
- }), a = (v) => {
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 _ = v.target.checked;
1348
- i("update:modelValue", _), i("change", _);
1349
- }, u = g(() => e.id || de("checkbox"));
1449
+ const g = f.target.checked;
1450
+ s("update:modelValue", g);
1451
+ }, u = d(() => e.id || Q("checkbox"));
1350
1452
  return () => {
1351
- const v = [
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
- ...s
1460
+ ...n
1359
1461
  }),
1360
1462
  r(
1361
1463
  "label",
1362
1464
  {
1363
1465
  for: u.value
1364
1466
  },
1365
- n.default?.()
1467
+ l.default?.()
1366
1468
  )
1367
1469
  ];
1368
- return n.description && !e.chip && v.push(r("div", { class: "krds-form-check-cnt" }, r("p", { class: "krds-form-check-p" }, n.description()))), r(
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
- v
1475
+ f
1374
1476
  );
1375
1477
  };
1376
1478
  }
1377
- }), mt = C({
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: i }) {
1391
- const s = g(() => {
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
- }), n = (u) => {
1395
- const v = e.modelValue || 0;
1396
- return u < v ? "done" : u === v ? "active" : "pending";
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: g(() => e.modelValue || 0),
1402
- getStepStatus: n,
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: s.value
1587
+ class: n.value
1409
1588
  },
1410
- i.default?.()
1589
+ s.default?.()
1411
1590
  ));
1412
1591
  }
1413
- }), bt = C({
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: i, slots: s }) {
1435
- const n = Ke("stepIndicator"), o = n ? n.getNextStepIndex() : -1, t = g(() => e.status ? e.status : n && o >= 0 ? n.getStepStatus(o) : "pending"), a = g(() => {
1436
- const v = [t.value];
1437
- return e.class && v.push(e.class), v;
1438
- }), u = (v) => {
1439
- i("click", v, e.step);
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 v = t.value === "active";
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
- v && r("em", { class: "sr-only" }, "현재단계"),
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
- s.default?.()
1637
+ n.default?.()
1459
1638
  ])
1460
1639
  ]
1461
1640
  );
1462
1641
  };
1463
1642
  }
1464
- }), kt = C({
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: i }) {
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
- i.default?.()
1683
+ s.default?.()
1505
1684
  )
1506
1685
  ]
1507
1686
  );
1508
1687
  }
1509
- }), St = ["id", "aria-label"], Ct = { class: "breadcrumb" }, wt = ["href", "aria-current", "onClick"], _t = { key: 0 }, Bt = /* @__PURE__ */ C({
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: i }) {
1519
- const s = e, n = i, o = (a) => a === s.items.length - 1, t = (a, u) => {
1520
- a.onClick && a.onClick(u), n("item-click", a, 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) => (w(), B("nav", {
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
- h("ol", Ct, [
1528
- (w(!0), B(E, null, F(a.items, (v, S) => (w(), B("li", {
1529
- key: `breadcrumb-${S}`,
1530
- class: L({ home: S === 0 && a.showHomeIcon })
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
- h("a", {
1533
- href: v.href || "#",
1711
+ m("a", {
1712
+ href: f.href || "#",
1534
1713
  class: "txt",
1535
- "aria-current": o(S) ? "page" : void 0,
1536
- onClick: (_) => t(v, _)
1714
+ "aria-current": o(p) ? "page" : void 0,
1715
+ onClick: (g) => t(f, g)
1537
1716
  }, [
1538
- S === 0 && a.showHomeIcon ? J("", !0) : (w(), B("span", _t, N(v.text), 1))
1539
- ], 8, wt)
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, St));
1721
+ ], 8, wt));
1543
1722
  }
1544
- }), Dt = C({
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: i, slots: s }) {
1579
- const n = M(""), o = M(/* @__PURE__ */ new Map()), t = g(() => {
1580
- const d = ["krds-in-page-navigation-type"];
1581
- return e.class && d.push(e.class), d;
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 d = e.headerTopSelector, l = e.headerInnerSelector, p = document.querySelector(d)?.clientHeight || 0, f = document.querySelector(l)?.clientHeight || 0;
1584
- return p + f;
1585
- }, u = (d, l) => {
1586
- if (i("itemClick", d, l), d.href.startsWith("#")) {
1587
- l.preventDefault();
1588
- const p = document.querySelector(d.href);
1589
- if (p) {
1590
- const f = a();
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: p.getBoundingClientRect().top + window.scrollY - f,
1772
+ top: b.getBoundingClientRect().top + window.scrollY - h,
1594
1773
  behavior: "smooth"
1595
- }), n.value = d.href, l instanceof KeyboardEvent) {
1596
- const b = p.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
1597
- b && b instanceof HTMLElement && (b.setAttribute("tabindex", "-1"), b.focus({ preventScroll: !0 }));
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
- }, v = () => {
1602
- o.value.clear(), e.items && e.items.filter((d) => d.href.startsWith("#")).forEach((d) => {
1603
- const l = document.querySelector(d.href);
1604
- l && o.value.set(d.href, l);
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
- }, S = () => {
1785
+ }, p = () => {
1607
1786
  if (!e.autoActive || !e.items || o.value.size === 0) return;
1608
- const d = window.innerHeight, l = Math.ceil(d / 5), p = window.scrollY + d, f = document.body.scrollHeight, b = e.items.filter((z) => z.href.startsWith("#") && o.value.has(z.href)).map((z) => ({
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 (b.length === 0) return;
1614
- const K = b[0], O = b[b.length - 1], T = K.element.offsetTop;
1615
- let P = "";
1616
- if (p >= f)
1617
- P = O.href;
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
- P = K.href;
1798
+ N = x.href;
1620
1799
  else
1621
- for (const z of b) {
1622
- const H = z.element.offsetHeight, D = z.element.offsetTop - l;
1623
- if (window.scrollY > D && window.scrollY <= D + H) {
1624
- P = z.href;
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
- P && P !== n.value && (n.value = P);
1629
- }, _ = () => {
1807
+ N && N !== l.value && (l.value = N);
1808
+ }, g = () => {
1630
1809
  if (!e.items) return;
1631
- const d = e.items.find((l) => l.active);
1632
- d ? n.value = d.href : e.items.length > 0 && (n.value = e.items[0].href);
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
- re(() => {
1635
- if (_(), e.autoActive) {
1636
- v(), S(), window.addEventListener("scroll", S, { passive: !0 });
1637
- const d = new MutationObserver(() => {
1638
- v();
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
- d.observe(document.body, {
1819
+ c.observe(document.body, {
1641
1820
  childList: !0,
1642
1821
  subtree: !0
1643
- }), ae(() => {
1644
- d.disconnect();
1822
+ }), ne(() => {
1823
+ c.disconnect();
1645
1824
  });
1646
1825
  }
1647
- }), ae(() => {
1648
- e.autoActive && (window.removeEventListener("scroll", S), o.value.clear());
1826
+ }), ne(() => {
1827
+ e.autoActive && (window.removeEventListener("scroll", p), o.value.clear());
1649
1828
  });
1650
- const V = () => !e.caption && !e.title ? null : r("div", { class: "in-page-navigation-header" }, [
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 d = e.items.map((l) => {
1656
- const p = n.value === l.href || !e.autoActive && l.active;
1657
- return r("li", { key: l.href }, [
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: l.href,
1662
- class: p ? "active" : "",
1663
- onClick: (f) => u(l, f),
1664
- onKeydown: (f) => {
1665
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), u(l, f));
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
- l.text
1847
+ i.text
1669
1848
  )
1670
1849
  ]);
1671
1850
  });
1672
- return r("nav", { class: "in-page-navigation-list" }, [r("ul", {}, d)]);
1673
- }, $ = () => s.action ? r("div", { class: "in-page-navigation-action" }, [s.action()]) : null;
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" }, [V(), y(), $()].filter(Boolean))
1854
+ r("div", { class: "krds-in-page-navigation-area" }, [_(), y(), $()].filter(Boolean))
1676
1855
  ]);
1677
1856
  }
1678
- }), Kt = ["id"], xt = { class: "page-links" }, It = ["href", "aria-current", "onClick"], Vt = { key: 0 }, zt = ["aria-label"], Mt = /* @__PURE__ */ C({
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: i }) {
1690
- const s = e, n = i, o = g(() => Math.max(1, s.min)), t = g(() => s.modelValue ?? o.value), a = g(() => t.value <= o.value), u = g(() => t.value >= s.max), v = g(() => {
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
- }), S = g(() => {
1872
+ }), p = d(() => {
1694
1873
  if (!u.value)
1695
1874
  return "#";
1696
- }), _ = g(() => {
1697
- const { pageRange: d, max: l } = s, p = 1, f = [];
1698
- if (l <= d + 2 * p)
1699
- for (let b = o.value; b <= l; b++)
1700
- f.push({
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-${b}`,
1703
- page: b,
1881
+ key: `page-${S}`,
1882
+ page: S,
1704
1883
  href: "#"
1705
1884
  });
1706
1885
  else {
1707
- const b = Math.min(p, l), K = Math.max(l - p + 1, 1), O = Math.max(o.value, t.value - Math.floor(d / 2)), T = Math.min(l, O + d - 1), P = Math.max(o.value, T - d + 1);
1708
- for (let D = o.value; D <= b; D++)
1709
- f.push({
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-${D}`,
1712
- page: D,
1890
+ key: `page-${K}`,
1891
+ page: K,
1713
1892
  href: "#"
1714
1893
  });
1715
- P > b + 1 && f.push({
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(P, b + 1), H = Math.min(T, K - 1);
1721
- for (let D = z; D <= H; D++)
1722
- f.push({
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-${D}`,
1725
- page: D,
1903
+ key: `page-${K}`,
1904
+ page: K,
1726
1905
  href: "#"
1727
1906
  });
1728
- T < K - 1 && f.push({
1907
+ T < x - 1 && h.push({
1729
1908
  type: "ellipsis",
1730
1909
  key: "ellipsis-right",
1731
1910
  ariaLabel: "페이지 생략"
1732
1911
  });
1733
- for (let D = K; D <= l; D++)
1734
- f.push({
1912
+ for (let K = x; K <= i; K++)
1913
+ h.push({
1735
1914
  type: "page",
1736
- key: `page-${D}`,
1737
- page: D,
1915
+ key: `page-${K}`,
1916
+ page: K,
1738
1917
  href: "#"
1739
1918
  });
1740
1919
  }
1741
- return f;
1742
- }), V = (d, l) => {
1743
- if (d === t.value) {
1744
- l.preventDefault();
1920
+ return h;
1921
+ }), _ = (c, i) => {
1922
+ if (c === t.value) {
1923
+ i.preventDefault();
1745
1924
  return;
1746
1925
  }
1747
- n("update:modelValue", d);
1748
- }, y = (d) => {
1926
+ l("update:modelValue", c);
1927
+ }, y = (c) => {
1749
1928
  if (a.value) {
1750
- d.preventDefault();
1929
+ c.preventDefault();
1751
1930
  return;
1752
1931
  }
1753
- const l = t.value - 1;
1754
- n("update:modelValue", l);
1755
- }, $ = (d) => {
1932
+ const i = t.value - 1;
1933
+ l("update:modelValue", i);
1934
+ }, $ = (c) => {
1756
1935
  if (u.value) {
1757
- d.preventDefault();
1936
+ c.preventDefault();
1758
1937
  return;
1759
1938
  }
1760
- const l = t.value + 1;
1761
- n("update:modelValue", l);
1939
+ const i = t.value + 1;
1940
+ l("update:modelValue", i);
1762
1941
  };
1763
- return (d, l) => {
1764
- const p = xe("sr-only");
1765
- return w(), B("div", {
1766
- id: d.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
- (w(), W(le(a.value ? "span" : "a"), {
1770
- href: a.value ? void 0 : v.value,
1771
- class: L(["page-navi", "prev", { disabled: a.value }]),
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(() => [...l[0] || (l[0] = [
1775
- R(" 이전 ", -1)
1953
+ default: U(() => [...i[0] || (i[0] = [
1954
+ H(" 이전 ", -1)
1776
1955
  ])]),
1777
1956
  _: 1
1778
1957
  }, 8, ["href", "class"])),
1779
- h("div", xt, [
1780
- (w(!0), B(E, null, F(_.value, (f) => (w(), B(E, {
1781
- key: f.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
- f.type === "page" ? (w(), B("a", {
1962
+ h.type === "page" ? (B(), D("a", {
1784
1963
  key: 0,
1785
- href: f.href || "#",
1786
- class: L(["page-link", { active: f.page === t.value }]),
1787
- "aria-current": f.page === t.value ? "page" : void 0,
1788
- onClick: (b) => V(f.page, b)
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
- f.page === t.value ? Y((w(), B("span", Vt, [...l[1] || (l[1] = [
1791
- R("현재페이지", -1)
1969
+ h.page === t.value ? j((B(), D("span", Mt, [...i[1] || (i[1] = [
1970
+ H("현재페이지", -1)
1792
1971
  ])])), [
1793
- [p]
1972
+ [b]
1794
1973
  ]) : J("", !0),
1795
- R(" " + N(f.page), 1)
1796
- ], 10, It)) : f.type === "ellipsis" ? (w(), B("span", {
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": f.ariaLabel
1800
- }, null, 8, zt)) : J("", !0)
1978
+ "aria-label": h.ariaLabel
1979
+ }, null, 8, $t)) : J("", !0)
1801
1980
  ], 64))), 128))
1802
1981
  ]),
1803
- (w(), W(le(u.value ? "span" : "a"), {
1804
- href: u.value ? void 0 : S.value,
1805
- class: L(["page-navi", "next", { disabled: u.value }]),
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(() => [...l[2] || (l[2] = [
1809
- R(" 다음 ", -1)
1987
+ default: U(() => [...i[2] || (i[2] = [
1988
+ H(" 다음 ", -1)
1810
1989
  ])]),
1811
1990
  _: 1
1812
1991
  }, 8, ["href", "class"]))
1813
- ], 8, Kt);
1992
+ ], 8, Vt);
1814
1993
  };
1815
1994
  }
1816
- }), ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1995
+ }), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1817
1996
  __proto__: null,
1818
- KrdsBadge: dt,
1819
- KrdsBreadcrumb: Bt,
1820
- KrdsButton: oe,
1821
- KrdsButtonGroup: Ie,
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: ut,
1826
- KrdsFormGroup: Le,
1827
- KrdsFormHint: Pe,
2004
+ KrdsFileUpload: dt,
2005
+ KrdsFormGroup: Pe,
2006
+ KrdsFormHint: Ne,
1828
2007
  KrdsFormLabel: $e,
1829
- KrdsIcon: Ve,
1830
- KrdsInPageNavigation: Dt,
2008
+ KrdsIcon: Ie,
2009
+ KrdsInPageNavigation: xt,
1831
2010
  KrdsInput: Me,
1832
2011
  KrdsLink: ze,
1833
- KrdsMasthead: vt,
1834
- KrdsPagination: Mt,
1835
- KrdsSkipLink: kt,
1836
- KrdsSpinner: ue,
1837
- KrdsStep: bt,
1838
- KrdsStepIndicator: mt,
1839
- KrdsTag: ct,
1840
- KrdsTagGroup: ft,
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: gt
1843
- }, Symbol.toStringTag, { value: "Module" })), Q = {
1844
- mounted(e, i) {
1845
- i.value !== !1 && e.classList.add("sr-only");
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, i) {
1848
- i.value === !1 ? e.classList.remove("sr-only") : e.classList.add("sr-only");
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
- }, se = {
1854
- "sr-only": Q
2034
+ }, re = {
2035
+ "sr-only": Z
1855
2036
  }, fe = (e) => {
1856
- e.directive("sr-only", Q);
1857
- }, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2037
+ e.directive("sr-only", Z);
2038
+ }, oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1858
2039
  __proto__: null,
1859
- default: se,
1860
- directives: se,
2040
+ default: re,
2041
+ directives: re,
1861
2042
  installDirectives: fe,
1862
- vSrOnly: Q
1863
- }, Symbol.toStringTag, { value: "Module" })), Pt = {
1864
- install(e, i = {}) {
1865
- e.provide("krds:config", i);
1866
- const s = i.components || Object.keys(ne);
1867
- s.forEach((n) => {
1868
- const o = ne[n];
1869
- o && e.component(n, o);
1870
- }), typeof ie == "object" && ie !== null && fe(e), e.config.globalProperties.$krds = {
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__ 설치 완료 - 컴포넌트: ${s.length}개`);
2053
+ }, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${n.length}개`);
1873
2054
  }
1874
- }, Lt = "__VERSION__";
2055
+ }, Et = "__VERSION__";
1875
2056
  export {
1876
- dt as KrdsBadge,
1877
- Bt as KrdsBreadcrumb,
1878
- oe as KrdsButton,
1879
- Ie as KrdsButtonGroup,
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
- ut as KrdsFileUpload,
1884
- Le as KrdsFormGroup,
1885
- Pe as KrdsFormHint,
2064
+ dt as KrdsFileUpload,
2065
+ Pe as KrdsFormGroup,
2066
+ Ne as KrdsFormHint,
1886
2067
  $e as KrdsFormLabel,
1887
- Ve as KrdsIcon,
1888
- Dt as KrdsInPageNavigation,
2068
+ Ie as KrdsIcon,
2069
+ xt as KrdsInPageNavigation,
1889
2070
  Me as KrdsInput,
1890
2071
  ze as KrdsLink,
1891
- vt as KrdsMasthead,
1892
- Mt as KrdsPagination,
1893
- kt as KrdsSkipLink,
1894
- ue as KrdsSpinner,
1895
- bt as KrdsStep,
1896
- mt as KrdsStepIndicator,
1897
- ct as KrdsTag,
1898
- ft as KrdsTagGroup,
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
- gt as KrdsToggleSwitch,
1901
- ce as classNames,
1902
- Pt as default,
1903
- de as generateId,
1904
- Lt as version
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