@krds.ui/vue 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 D, 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 De, provide as Be, inject as Ke, createCommentVNode as J, onUnmounted as ae, resolveDirective as xe, resolveDynamicComponent as ne } 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,12 +36,12 @@ const oe = C({
36
36
  }
37
37
  },
38
38
  emits: ["click"],
39
- setup(e, { emit: i, slots: s }) {
40
- const l = 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",
@@ -51,22 +51,22 @@ const oe = C({
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 l = 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
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,24 +243,24 @@ const oe = C({
243
243
  }
244
244
  },
245
245
  emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
246
- setup(e, { emit: i, slots: s }) {
247
- const l = 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
266
  class: l.value,
@@ -277,20 +277,20 @@ const oe = C({
277
277
  onChange: t,
278
278
  onFocus: a,
279
279
  onBlur: u,
280
- onKeydown: 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 }) {
314
+ setup(e, { emit: s, slots: n }) {
315
315
  const l = (o) => {
316
- i("click", o);
316
+ s("click", o);
317
317
  };
318
318
  return () => r("div", { class: "form-tit" }, [
319
319
  r(
@@ -325,11 +325,11 @@ const oe = C({
325
325
  style: e.style,
326
326
  onClick: l
327
327
  },
328
- 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 }) {
353
+ setup(e, { emit: s, slots: n }) {
354
354
  const l = (t) => {
355
- i("click", t);
355
+ s("click", t);
356
356
  }, o = () => {
357
357
  let t;
358
358
  switch (e.type) {
@@ -379,10 +379,10 @@ const oe = C({
379
379
  style: e.style,
380
380
  onClick: l
381
381
  },
382
- 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,8 +398,8 @@ const oe = C({
398
398
  default: void 0
399
399
  }
400
400
  },
401
- setup(e, { slots: i }) {
402
- const s = g(() => {
401
+ setup(e, { slots: s }) {
402
+ const n = d(() => {
403
403
  const l = ["form-group"];
404
404
  return e.class && l.push(e.class), l;
405
405
  });
@@ -407,33 +407,33 @@ const oe = C({
407
407
  "div",
408
408
  {
409
409
  id: e.id,
410
- class: 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(), l = 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 = () => {
425
+ }, _ = () => {
426
426
  o.value === 1 ? (o.value = 12, l.value -= 1) : o.value -= 1;
427
427
  }, y = () => {
428
428
  o.value === 12 ? (o.value = 1, l.value += 1) : o.value += 1;
429
- }, $ = (p, f = !1) => {
430
- if (f)
431
- t.value = p, a.value = p;
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 {
@@ -444,48 +444,48 @@ function Ne(e, i) {
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 = {}) {
466
+ function Te(e, s, n = {}) {
467
467
  let l = null;
468
- const o = typeof s == "string" ? { ignore: s } : s, { ignore: t, event: a = "click" } = o, u = () => {
469
- l = (S) => {
470
- const _ = S.target;
471
- e.value?.contains(_) || t && _.closest(t) || i();
468
+ const o = typeof n == "string" ? { ignore: n } : n, { ignore: t, event: a = "click" } = o, u = () => {
469
+ l = (p) => {
470
+ const g = p.target;
471
+ e.value?.contains(g) || t && g.closest(t) || s();
472
472
  }, document.addEventListener(a, l);
473
- }, v = () => {
473
+ }, f = () => {
474
474
  if (l) {
475
- const S = typeof s == "string" ? "click" : s.event || "click";
476
- document.removeEventListener(S, l), l = null;
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" }, nt = ["data-date"], lt = ["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, l = 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: n,
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
- }, B = 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
- l("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
- l("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
- l("update:modelValue", m.value), l("input", c);
611
- }, ke = (c) => {
612
- l("change", c);
613
- }, Se = (c) => {
614
- l("focus", c);
615
- }, Ce = (c) => {
616
- l("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(), D("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), D(E, null, F(I(y), (k) => (w(), D("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), D(E, null, F(I($), (k) => (w(), D("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,63 +715,63 @@ 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(n) && I(n)(...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), D(E, null, F(z.value, (k, q) => (w(), D("tr", { key: q }, [
744
- (w(!0), D(E, null, F(k, (A, x) => (w(), D("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)
756
- ], 8, lt)
757
- ], 10, nt))), 128))
755
+ m("span", null, L(E.day), 1)
756
+ ], 8, nt)
757
+ ], 10, lt))), 128))
758
758
  ]))), 128))
759
759
  ])
760
760
  ])
761
761
  ])
762
762
  ]),
763
- h("div", st, [
764
- h("div", it, [
765
- (w(!0), D(E, null, F(B.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,36 +858,36 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
858
858
  }
859
859
  },
860
860
  emits: ["update:modelValue", "input", "change", "focus", "blur", "keydown", "keyup"],
861
- setup(e, { emit: i }) {
862
- const s = M(0);
863
- De(
861
+ setup(e, { emit: s }) {
862
+ const n = M(0);
863
+ _e(
864
864
  () => e.modelValue,
865
- (n) => {
866
- s.value = (n || "").length;
865
+ (i) => {
866
+ n.value = (i || "").length;
867
867
  },
868
868
  { immediate: !0 }
869
869
  );
870
- const l = g(() => {
871
- const n = ["krds-input"];
872
- return e.size && n.push(e.size), e.class && n.push(e.class), n;
873
- }), o = g(() => {
874
- const n = {};
875
- return e.resize && (n.resize = e.resize), n;
876
- }), t = (n) => {
877
- const f = n.target.value;
878
- s.value = f.length, i("update:modelValue", f), i("input", n);
879
- }, a = (n) => {
880
- i("change", n);
881
- }, u = (n) => {
882
- i("focus", n);
883
- }, v = (n) => {
884
- i("blur", n);
885
- }, S = (n) => {
886
- i("keydown", n);
887
- }, _ = (n) => {
888
- i("keyup", n);
889
- }, V = g(() => {
890
- const n = {
870
+ const l = d(() => {
871
+ const i = ["krds-input"];
872
+ return e.size && i.push(e.size), e.class && i.push(e.class), i;
873
+ }), o = d(() => {
874
+ const i = {};
875
+ return e.resize && (i.resize = e.resize), i;
876
+ }), t = (i) => {
877
+ const h = i.target.value;
878
+ n.value = h.length, s("update:modelValue", h), s("input", i);
879
+ }, a = (i) => {
880
+ s("change", i);
881
+ }, u = (i) => {
882
+ s("focus", i);
883
+ }, f = (i) => {
884
+ s("blur", i);
885
+ }, p = (i) => {
886
+ s("keydown", i);
887
+ }, g = (i) => {
888
+ s("keyup", i);
889
+ }, _ = d(() => {
890
+ const i = {
891
891
  class: l.value,
892
892
  style: o.value,
893
893
  value: e.modelValue,
@@ -903,30 +903,124 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
903
903
  onInput: t,
904
904
  onChange: a,
905
905
  onFocus: u,
906
- onBlur: v,
907
- onKeydown: S,
908
- onKeyup: _
906
+ onBlur: f,
907
+ onKeydown: p,
908
+ onKeyup: g
909
909
  };
910
- return e.maxlength !== void 0 && (n.maxlength = e.maxlength), e.minlength !== void 0 && (n.minlength = e.minlength), n;
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 n = s.value, p = e.maxlength;
913
+ const i = n.value, b = e.maxlength;
914
914
  return {
915
- current: n,
916
- max: p || ""
915
+ current: i,
916
+ max: b || ""
917
917
  };
918
918
  });
919
919
  return () => {
920
- const n = [r("textarea", V.value)];
921
- return d.value && n.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 }, n)]);
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(() => {
1126
+ setup(e, { emit: s }) {
1127
+ M(!1), d(() => {
1034
1128
  const l = ["krds-file-upload", "line"];
1035
1129
  return e.class && l.push(e.class), l;
1036
1130
  });
1037
- const 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 l = 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",
@@ -1079,10 +1173,10 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
1079
1173
  class: l.value,
1080
1174
  onClick: o
1081
1175
  },
1082
- 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 l = 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,13 +1217,13 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
1123
1217
  [r("span", { class: "sr-only" }, "삭제")]
1124
1218
  );
1125
1219
  return () => {
1126
- const a = [], u = 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
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",
@@ -1140,7 +1234,7 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
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(() => {
1249
+ setup(e, { slots: s }) {
1250
+ const n = d(() => {
1157
1251
  const l = ["krds-tag-wrap"];
1158
1252
  return e.size && l.push(e.size), e.class && l.push(e.class), l;
1159
1253
  });
1160
1254
  return () => r(
1161
1255
  "div",
1162
1256
  {
1163
- class: 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,12 +1268,12 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
1174
1268
  }
1175
1269
  },
1176
1270
  emits: ["click"],
1177
- setup(e, { emit: i, slots: s }) {
1178
- const l = 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",
@@ -1190,24 +1284,24 @@ const Ae = { class: "form-conts" }, Ee = { class: "calendar-input" }, Oe = ["id"
1190
1284
  },
1191
1285
  [
1192
1286
  r("div", { class: "toggle-wrap" }, [
1193
- r("div", { class: "toggle-head" }, [r("div", { class: "inner" }, [r("span", { class: "nuri-txt" }, 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}`;
1202
1296
  }
1203
- function Pt() {
1204
- const e = Date.now().toString(36).slice(-4), i = Math.random().toString(36).substring(2, 5);
1205
- return `${e}${i}`;
1297
+ function Lt() {
1298
+ const e = Date.now().toString(36).slice(-4), s = Math.random().toString(36).substring(2, 5);
1299
+ return `${e}${s}`;
1206
1300
  }
1207
- function ce(...e) {
1301
+ function X(...e) {
1208
1302
  return e.filter(Boolean).join(" ");
1209
1303
  }
1210
- const gt = C({
1304
+ const mt = w({
1211
1305
  name: "KrdsToggleSwitch",
1212
1306
  props: {
1213
1307
  modelValue: {
@@ -1249,13 +1343,13 @@ const gt = C({
1249
1343
  }
1250
1344
  },
1251
1345
  emits: ["update:modelValue", "change"],
1252
- setup(e, { emit: i, attrs: s }) {
1253
- const l = 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) => {
1254
1348
  if (e.disabled)
1255
1349
  return;
1256
- const S = u.target.checked;
1257
- i("update:modelValue", S), i("change", S);
1258
- }, 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"));
1259
1353
  return () => r(
1260
1354
  "div",
1261
1355
  {
@@ -1269,7 +1363,7 @@ const gt = C({
1269
1363
  checked: l.value,
1270
1364
  disabled: e.disabled,
1271
1365
  onChange: t,
1272
- ...s
1366
+ ...n
1273
1367
  }),
1274
1368
  r(
1275
1369
  "label",
@@ -1290,27 +1384,31 @@ const gt = C({
1290
1384
  ]
1291
1385
  );
1292
1386
  }
1293
- }), yt = C({
1387
+ }), yt = w({
1294
1388
  name: "KrdsCheckArea",
1295
1389
  props: {
1296
1390
  class: {
1297
1391
  type: String,
1298
1392
  default: void 0
1393
+ },
1394
+ column: {
1395
+ type: Boolean,
1396
+ default: !1
1299
1397
  }
1300
1398
  },
1301
- setup(e, { slots: i }) {
1399
+ setup(e, { slots: s }) {
1302
1400
  return () => {
1303
- const s = ["krds-check-area"];
1304
- 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(
1305
1403
  "div",
1306
1404
  {
1307
- class: s
1405
+ class: n
1308
1406
  },
1309
- i.default?.()
1407
+ s.default?.()
1310
1408
  );
1311
1409
  };
1312
1410
  }
1313
- }), pt = C({
1411
+ }), pt = w({
1314
1412
  name: "KrdsCheckbox",
1315
1413
  props: {
1316
1414
  modelValue: {
@@ -1339,27 +1437,104 @@ const gt = C({
1339
1437
  default: void 0
1340
1438
  }
1341
1439
  },
1342
- emits: ["update:modelValue", "change"],
1440
+ emits: ["update:modelValue"],
1343
1441
  slots: Object,
1344
- setup(e, { emit: i, attrs: s, slots: l }) {
1345
- const o = g(() => e.modelValue), t = g(() => {
1346
- const v = e.chip ? "krds-form-chip" : "krds-form-check";
1347
- return ce(v, e.size, e.class);
1348
- }), 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) => {
1349
1447
  if (e.disabled)
1350
1448
  return;
1351
- const _ = v.target.checked;
1352
- i("update:modelValue", _), i("change", _);
1353
- }, u = g(() => e.id || de("checkbox"));
1449
+ const g = f.target.checked;
1450
+ s("update:modelValue", g);
1451
+ }, u = d(() => e.id || Q("checkbox"));
1354
1452
  return () => {
1355
- const v = [
1453
+ const f = [
1356
1454
  r("input", {
1357
1455
  type: "checkbox",
1358
1456
  id: u.value,
1359
1457
  checked: o.value,
1360
1458
  disabled: e.disabled,
1361
1459
  onChange: a,
1362
- ...s
1460
+ ...n
1461
+ }),
1462
+ r(
1463
+ "label",
1464
+ {
1465
+ for: u.value
1466
+ },
1467
+ l.default?.()
1468
+ )
1469
+ ];
1470
+ return l.description && !e.chip && f.push(r("div", { class: "krds-form-check-cnt" }, r("p", { class: "krds-form-check-p" }, l.description()))), r(
1471
+ "div",
1472
+ {
1473
+ class: t.value
1474
+ },
1475
+ f
1476
+ );
1477
+ };
1478
+ }
1479
+ }), bt = w({
1480
+ name: "KrdsRadio",
1481
+ props: {
1482
+ modelValue: {
1483
+ type: [String, Number, Boolean],
1484
+ default: void 0
1485
+ },
1486
+ value: {
1487
+ type: [String, Number, Boolean],
1488
+ required: !0
1489
+ },
1490
+ disabled: {
1491
+ type: Boolean,
1492
+ default: !1
1493
+ },
1494
+ size: {
1495
+ type: String,
1496
+ default: "medium",
1497
+ validator: (e) => ["medium", "large"].includes(e)
1498
+ },
1499
+ chip: {
1500
+ type: Boolean,
1501
+ default: !1
1502
+ },
1503
+ name: {
1504
+ type: String,
1505
+ default: void 0
1506
+ },
1507
+ class: {
1508
+ type: String,
1509
+ default: void 0
1510
+ },
1511
+ id: {
1512
+ type: String,
1513
+ default: void 0
1514
+ }
1515
+ },
1516
+ emits: ["update:modelValue"],
1517
+ slots: Object,
1518
+ setup(e, { emit: s, attrs: n, slots: l }) {
1519
+ const o = d(() => e.modelValue === e.value), t = d(() => {
1520
+ const p = e.chip ? "krds-form-chip" : "krds-form-check";
1521
+ return X(p, e.size, e.class);
1522
+ }), a = (p) => {
1523
+ if (e.disabled)
1524
+ return;
1525
+ p.target.checked && s("update:modelValue", e.value);
1526
+ }, u = d(() => e.id || Q("radio")), f = d(() => e.name);
1527
+ return () => {
1528
+ const p = [
1529
+ r("input", {
1530
+ type: "radio",
1531
+ id: u.value,
1532
+ name: f.value,
1533
+ value: String(e.value),
1534
+ checked: o.value,
1535
+ disabled: e.disabled,
1536
+ onChange: a,
1537
+ ...n
1363
1538
  }),
1364
1539
  r(
1365
1540
  "label",
@@ -1369,16 +1544,16 @@ const gt = C({
1369
1544
  l.default?.()
1370
1545
  )
1371
1546
  ];
1372
- return l.description && !e.chip && v.push(r("div", { class: "krds-form-check-cnt" }, r("p", { class: "krds-form-check-p" }, l.description()))), r(
1547
+ return l.description && !e.chip && p.push(r("div", { class: "krds-form-check-cnt" }, r("p", { class: "krds-form-check-p" }, l.description()))), r(
1373
1548
  "div",
1374
1549
  {
1375
1550
  class: t.value
1376
1551
  },
1377
- v
1552
+ p
1378
1553
  );
1379
1554
  };
1380
1555
  }
1381
- }), mt = C({
1556
+ }), kt = w({
1382
1557
  name: "KrdsStepIndicator",
1383
1558
  props: {
1384
1559
  modelValue: {
@@ -1391,30 +1566,30 @@ const gt = C({
1391
1566
  }
1392
1567
  },
1393
1568
  emits: ["update:modelValue"],
1394
- setup(e, { slots: i }) {
1395
- const s = g(() => {
1569
+ setup(e, { slots: s }) {
1570
+ const n = d(() => {
1396
1571
  const u = ["krds-step-wrap"];
1397
1572
  return e.class && u.push(e.class), u;
1398
1573
  }), l = (u) => {
1399
- const v = e.modelValue || 0;
1400
- return u < v ? "done" : u === v ? "active" : "pending";
1574
+ const f = e.modelValue || 0;
1575
+ return u < f ? "done" : u === f ? "active" : "pending";
1401
1576
  }, o = M(0), t = () => {
1402
1577
  o.value = 0;
1403
1578
  }, a = () => o.value++;
1404
- return Be("stepIndicator", {
1405
- activeStep: g(() => e.modelValue || 0),
1579
+ return De("stepIndicator", {
1580
+ activeStep: d(() => e.modelValue || 0),
1406
1581
  getStepStatus: l,
1407
1582
  getNextStepIndex: a,
1408
1583
  resetStepIndex: t
1409
1584
  }), () => (t(), r(
1410
1585
  "ol",
1411
1586
  {
1412
- class: s.value
1587
+ class: n.value
1413
1588
  },
1414
- i.default?.()
1589
+ s.default?.()
1415
1590
  ));
1416
1591
  }
1417
- }), bt = C({
1592
+ }), St = w({
1418
1593
  name: "KrdsStep",
1419
1594
  props: {
1420
1595
  step: {
@@ -1435,15 +1610,15 @@ const gt = C({
1435
1610
  }
1436
1611
  },
1437
1612
  emits: ["click"],
1438
- setup(e, { emit: i, slots: s }) {
1439
- const l = Ke("stepIndicator"), o = l ? l.getNextStepIndex() : -1, t = g(() => e.status ? e.status : l && o >= 0 ? l.getStepStatus(o) : "pending"), a = g(() => {
1440
- const v = [t.value];
1441
- return e.class && v.push(e.class), v;
1442
- }), u = (v) => {
1443
- 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);
1444
1619
  };
1445
1620
  return () => {
1446
- const v = t.value === "active";
1621
+ const f = t.value === "active";
1447
1622
  return r(
1448
1623
  "li",
1449
1624
  {
@@ -1453,19 +1628,19 @@ const gt = C({
1453
1628
  [
1454
1629
  r("span", [
1455
1630
  // 현재 단계 표시 (활성 상태일 때만)
1456
- v && r("em", { class: "sr-only" }, "현재단계"),
1631
+ f && r("em", { class: "sr-only" }, "현재단계"),
1457
1632
  // 단계 번호
1458
1633
  r("i", { class: "step" }, e.step),
1459
1634
  // 단계 제목
1460
1635
  r("span", { class: "step-tit" }, e.title),
1461
1636
  // 슬롯 내용 (추가 콘텐츠가 있는 경우)
1462
- s.default?.()
1637
+ n.default?.()
1463
1638
  ])
1464
1639
  ]
1465
1640
  );
1466
1641
  };
1467
1642
  }
1468
- }), kt = C({
1643
+ }), Ct = w({
1469
1644
  name: "KrdsSkipLink",
1470
1645
  props: {
1471
1646
  /**
@@ -1492,7 +1667,7 @@ const gt = C({
1492
1667
  default: "krds-skip-link"
1493
1668
  }
1494
1669
  },
1495
- setup(e, { slots: i }) {
1670
+ setup(e, { slots: s }) {
1496
1671
  return () => r(
1497
1672
  "div",
1498
1673
  {
@@ -1505,12 +1680,12 @@ const gt = C({
1505
1680
  {
1506
1681
  href: e.href
1507
1682
  },
1508
- i.default?.()
1683
+ s.default?.()
1509
1684
  )
1510
1685
  ]
1511
1686
  );
1512
1687
  }
1513
- }), St = ["id", "aria-label"], Ct = { class: "breadcrumb" }, wt = ["href", "aria-current", "onClick"], _t = { key: 0 }, Dt = /* @__PURE__ */ C({
1688
+ }), wt = ["id", "aria-label"], Bt = { class: "breadcrumb" }, _t = ["href", "aria-current", "onClick"], Dt = { key: 0 }, Kt = /* @__PURE__ */ w({
1514
1689
  __name: "KrdsBreadcrumb",
1515
1690
  props: {
1516
1691
  items: {},
@@ -1519,33 +1694,33 @@ const gt = C({
1519
1694
  showHomeIcon: { type: Boolean, default: !0 }
1520
1695
  },
1521
1696
  emits: ["item-click"],
1522
- setup(e, { emit: i }) {
1523
- const s = e, l = i, o = (a) => a === s.items.length - 1, t = (a, u) => {
1697
+ setup(e, { emit: s }) {
1698
+ const n = e, l = s, o = (a) => a === n.items.length - 1, t = (a, u) => {
1524
1699
  a.onClick && a.onClick(u), l("item-click", a, u);
1525
1700
  };
1526
- return (a, u) => (w(), D("nav", {
1701
+ return (a, u) => (B(), D("nav", {
1527
1702
  id: a.id,
1528
1703
  class: "krds-breadcrumb-wrap",
1529
1704
  "aria-label": a.ariaLabel
1530
1705
  }, [
1531
- h("ol", Ct, [
1532
- (w(!0), D(E, null, F(a.items, (v, S) => (w(), D("li", {
1533
- key: `breadcrumb-${S}`,
1534
- 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 })
1535
1710
  }, [
1536
- h("a", {
1537
- href: v.href || "#",
1711
+ m("a", {
1712
+ href: f.href || "#",
1538
1713
  class: "txt",
1539
- "aria-current": o(S) ? "page" : void 0,
1540
- onClick: (_) => t(v, _)
1714
+ "aria-current": o(p) ? "page" : void 0,
1715
+ onClick: (g) => t(f, g)
1541
1716
  }, [
1542
- S === 0 && a.showHomeIcon ? J("", !0) : (w(), D("span", _t, N(v.text), 1))
1543
- ], 8, wt)
1717
+ p === 0 && a.showHomeIcon ? J("", !0) : (B(), D("span", Dt, L(f.text), 1))
1718
+ ], 8, _t)
1544
1719
  ], 2))), 128))
1545
1720
  ])
1546
- ], 8, St));
1721
+ ], 8, wt));
1547
1722
  }
1548
- }), Bt = C({
1723
+ }), xt = w({
1549
1724
  name: "KrdsInPageNavigation",
1550
1725
  props: {
1551
1726
  title: {
@@ -1579,107 +1754,107 @@ const gt = C({
1579
1754
  },
1580
1755
  emits: ["itemClick"],
1581
1756
  slots: Object,
1582
- setup(e, { emit: i, slots: s }) {
1583
- const l = M(""), o = M(/* @__PURE__ */ new Map()), t = g(() => {
1584
- const d = ["krds-in-page-navigation-type"];
1585
- 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;
1586
1761
  }), a = () => {
1587
- const d = e.headerTopSelector, n = e.headerInnerSelector, p = document.querySelector(d)?.clientHeight || 0, f = document.querySelector(n)?.clientHeight || 0;
1588
- return p + f;
1589
- }, u = (d, n) => {
1590
- if (i("itemClick", d, n), d.href.startsWith("#")) {
1591
- n.preventDefault();
1592
- const p = document.querySelector(d.href);
1593
- if (p) {
1594
- 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();
1595
1770
  if (window.scrollTo({
1596
1771
  left: 0,
1597
- top: p.getBoundingClientRect().top + window.scrollY - f,
1772
+ top: b.getBoundingClientRect().top + window.scrollY - h,
1598
1773
  behavior: "smooth"
1599
- }), l.value = d.href, n instanceof KeyboardEvent) {
1600
- const b = p.querySelector(".sec-tit, h1, h2, h3, h4, h5, h6");
1601
- 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 }));
1602
1777
  }
1603
1778
  }
1604
1779
  }
1605
- }, v = () => {
1606
- o.value.clear(), e.items && e.items.filter((d) => d.href.startsWith("#")).forEach((d) => {
1607
- const n = document.querySelector(d.href);
1608
- n && o.value.set(d.href, n);
1780
+ }, f = () => {
1781
+ o.value.clear(), e.items && e.items.filter((c) => c.href.startsWith("#")).forEach((c) => {
1782
+ const i = document.querySelector(c.href);
1783
+ i && o.value.set(c.href, i);
1609
1784
  });
1610
- }, S = () => {
1785
+ }, p = () => {
1611
1786
  if (!e.autoActive || !e.items || o.value.size === 0) return;
1612
- const d = window.innerHeight, n = 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) => ({
1613
1788
  href: z.href,
1614
1789
  element: o.value.get(z.href),
1615
1790
  item: z
1616
1791
  }));
1617
- if (b.length === 0) return;
1618
- const K = b[0], O = b[b.length - 1], T = K.element.offsetTop;
1619
- let P = "";
1620
- if (p >= f)
1621
- 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;
1622
1797
  else if (window.scrollY <= T)
1623
- P = K.href;
1798
+ N = x.href;
1624
1799
  else
1625
- for (const z of b) {
1626
- const H = z.element.offsetHeight, B = z.element.offsetTop - n;
1627
- if (window.scrollY > B && window.scrollY <= B + H) {
1628
- 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;
1629
1804
  break;
1630
1805
  }
1631
1806
  }
1632
- P && P !== l.value && (l.value = P);
1633
- }, _ = () => {
1807
+ N && N !== l.value && (l.value = N);
1808
+ }, g = () => {
1634
1809
  if (!e.items) return;
1635
- const d = e.items.find((n) => n.active);
1636
- d ? l.value = d.href : e.items.length > 0 && (l.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);
1637
1812
  };
1638
- re(() => {
1639
- if (_(), e.autoActive) {
1640
- v(), S(), window.addEventListener("scroll", S, { passive: !0 });
1641
- const d = new MutationObserver(() => {
1642
- v();
1813
+ ue(() => {
1814
+ if (g(), e.autoActive) {
1815
+ f(), p(), window.addEventListener("scroll", p, { passive: !0 });
1816
+ const c = new MutationObserver(() => {
1817
+ f();
1643
1818
  });
1644
- d.observe(document.body, {
1819
+ c.observe(document.body, {
1645
1820
  childList: !0,
1646
1821
  subtree: !0
1647
- }), ae(() => {
1648
- d.disconnect();
1822
+ }), ne(() => {
1823
+ c.disconnect();
1649
1824
  });
1650
1825
  }
1651
- }), ae(() => {
1652
- e.autoActive && (window.removeEventListener("scroll", S), o.value.clear());
1826
+ }), ne(() => {
1827
+ e.autoActive && (window.removeEventListener("scroll", p), o.value.clear());
1653
1828
  });
1654
- 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" }, [
1655
1830
  e.caption && r("p", { class: "quick-caption" }, e.caption),
1656
1831
  e.title && r("p", { class: "quick-title" }, e.title)
1657
1832
  ]), y = () => {
1658
1833
  if (!e.items) return null;
1659
- const d = e.items.map((n) => {
1660
- const p = l.value === n.href || !e.autoActive && n.active;
1661
- return r("li", { key: n.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 }, [
1662
1837
  r(
1663
1838
  "a",
1664
1839
  {
1665
- href: n.href,
1666
- class: p ? "active" : "",
1667
- onClick: (f) => u(n, f),
1668
- onKeydown: (f) => {
1669
- (f.key === "Enter" || f.key === " ") && (f.preventDefault(), u(n, 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));
1670
1845
  }
1671
1846
  },
1672
- n.text
1847
+ i.text
1673
1848
  )
1674
1849
  ]);
1675
1850
  });
1676
- return r("nav", { class: "in-page-navigation-list" }, [r("ul", {}, d)]);
1677
- }, $ = () => 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;
1678
1853
  return () => r("div", { class: t.value }, [
1679
- r("div", { class: "krds-in-page-navigation-area" }, [V(), y(), $()].filter(Boolean))
1854
+ r("div", { class: "krds-in-page-navigation-area" }, [_(), y(), $()].filter(Boolean))
1680
1855
  ]);
1681
1856
  }
1682
- }), 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({
1683
1858
  __name: "KrdsPagination",
1684
1859
  props: {
1685
1860
  modelValue: { default: 1 },
@@ -1690,222 +1865,226 @@ const gt = C({
1690
1865
  pageRange: { default: 8 }
1691
1866
  },
1692
1867
  emits: ["update:modelValue"],
1693
- setup(e, { emit: i }) {
1694
- const s = e, l = 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(() => {
1695
1870
  if (!a.value)
1696
1871
  return "#";
1697
- }), S = g(() => {
1872
+ }), p = d(() => {
1698
1873
  if (!u.value)
1699
1874
  return "#";
1700
- }), _ = g(() => {
1701
- const { pageRange: d, max: n } = s, p = 1, f = [];
1702
- if (n <= d + 2 * p)
1703
- for (let b = o.value; b <= n; b++)
1704
- 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({
1705
1880
  type: "page",
1706
- key: `page-${b}`,
1707
- page: b,
1881
+ key: `page-${S}`,
1882
+ page: S,
1708
1883
  href: "#"
1709
1884
  });
1710
1885
  else {
1711
- const b = Math.min(p, n), K = Math.max(n - p + 1, 1), O = Math.max(o.value, t.value - Math.floor(d / 2)), T = Math.min(n, O + d - 1), P = Math.max(o.value, T - d + 1);
1712
- for (let B = o.value; B <= b; B++)
1713
- 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({
1714
1889
  type: "page",
1715
- key: `page-${B}`,
1716
- page: B,
1890
+ key: `page-${K}`,
1891
+ page: K,
1717
1892
  href: "#"
1718
1893
  });
1719
- P > b + 1 && f.push({
1894
+ N > S + 1 && h.push({
1720
1895
  type: "ellipsis",
1721
1896
  key: "ellipsis-left",
1722
1897
  ariaLabel: "페이지 생략"
1723
1898
  });
1724
- const z = Math.max(P, b + 1), H = Math.min(T, K - 1);
1725
- for (let B = z; B <= H; B++)
1726
- 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({
1727
1902
  type: "page",
1728
- key: `page-${B}`,
1729
- page: B,
1903
+ key: `page-${K}`,
1904
+ page: K,
1730
1905
  href: "#"
1731
1906
  });
1732
- T < K - 1 && f.push({
1907
+ T < x - 1 && h.push({
1733
1908
  type: "ellipsis",
1734
1909
  key: "ellipsis-right",
1735
1910
  ariaLabel: "페이지 생략"
1736
1911
  });
1737
- for (let B = K; B <= n; B++)
1738
- f.push({
1912
+ for (let K = x; K <= i; K++)
1913
+ h.push({
1739
1914
  type: "page",
1740
- key: `page-${B}`,
1741
- page: B,
1915
+ key: `page-${K}`,
1916
+ page: K,
1742
1917
  href: "#"
1743
1918
  });
1744
1919
  }
1745
- return f;
1746
- }), V = (d, n) => {
1747
- if (d === t.value) {
1748
- n.preventDefault();
1920
+ return h;
1921
+ }), _ = (c, i) => {
1922
+ if (c === t.value) {
1923
+ i.preventDefault();
1749
1924
  return;
1750
1925
  }
1751
- l("update:modelValue", d);
1752
- }, y = (d) => {
1926
+ l("update:modelValue", c);
1927
+ }, y = (c) => {
1753
1928
  if (a.value) {
1754
- d.preventDefault();
1929
+ c.preventDefault();
1755
1930
  return;
1756
1931
  }
1757
- const n = t.value - 1;
1758
- l("update:modelValue", n);
1759
- }, $ = (d) => {
1932
+ const i = t.value - 1;
1933
+ l("update:modelValue", i);
1934
+ }, $ = (c) => {
1760
1935
  if (u.value) {
1761
- d.preventDefault();
1936
+ c.preventDefault();
1762
1937
  return;
1763
1938
  }
1764
- const n = t.value + 1;
1765
- l("update:modelValue", n);
1939
+ const i = t.value + 1;
1940
+ l("update:modelValue", i);
1766
1941
  };
1767
- return (d, n) => {
1768
- const p = xe("sr-only");
1769
- return w(), D("div", {
1770
- id: d.id,
1942
+ return (c, i) => {
1943
+ const b = xe("sr-only");
1944
+ return B(), D("div", {
1945
+ id: c.id,
1771
1946
  class: "krds-pagination"
1772
1947
  }, [
1773
- (w(), W(ne(a.value ? "span" : "a"), {
1774
- href: a.value ? void 0 : v.value,
1775
- 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 }]),
1776
1951
  onClick: y
1777
1952
  }, {
1778
- default: U(() => [...n[0] || (n[0] = [
1779
- R(" 이전 ", -1)
1953
+ default: U(() => [...i[0] || (i[0] = [
1954
+ H(" 이전 ", -1)
1780
1955
  ])]),
1781
1956
  _: 1
1782
1957
  }, 8, ["href", "class"])),
1783
- h("div", xt, [
1784
- (w(!0), D(E, null, F(_.value, (f) => (w(), D(E, {
1785
- key: f.key
1958
+ m("div", It, [
1959
+ (B(!0), D(O, null, q(g.value, (h) => (B(), D(O, {
1960
+ key: h.key
1786
1961
  }, [
1787
- f.type === "page" ? (w(), D("a", {
1962
+ h.type === "page" ? (B(), D("a", {
1788
1963
  key: 0,
1789
- href: f.href || "#",
1790
- class: L(["page-link", { active: f.page === t.value }]),
1791
- "aria-current": f.page === t.value ? "page" : void 0,
1792
- 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)
1793
1968
  }, [
1794
- f.page === t.value ? Y((w(), D("span", Vt, [...n[1] || (n[1] = [
1795
- R("현재페이지", -1)
1969
+ h.page === t.value ? j((B(), D("span", Mt, [...i[1] || (i[1] = [
1970
+ H("현재페이지", -1)
1796
1971
  ])])), [
1797
- [p]
1972
+ [b]
1798
1973
  ]) : J("", !0),
1799
- R(" " + N(f.page), 1)
1800
- ], 10, It)) : f.type === "ellipsis" ? (w(), D("span", {
1974
+ H(" " + L(h.page), 1)
1975
+ ], 10, zt)) : h.type === "ellipsis" ? (B(), D("span", {
1801
1976
  key: 1,
1802
1977
  class: "page-link link-dot",
1803
- "aria-label": f.ariaLabel
1804
- }, null, 8, zt)) : J("", !0)
1978
+ "aria-label": h.ariaLabel
1979
+ }, null, 8, $t)) : J("", !0)
1805
1980
  ], 64))), 128))
1806
1981
  ]),
1807
- (w(), W(ne(u.value ? "span" : "a"), {
1808
- href: u.value ? void 0 : S.value,
1809
- 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 }]),
1810
1985
  onClick: $
1811
1986
  }, {
1812
- default: U(() => [...n[2] || (n[2] = [
1813
- R(" 다음 ", -1)
1987
+ default: U(() => [...i[2] || (i[2] = [
1988
+ H(" 다음 ", -1)
1814
1989
  ])]),
1815
1990
  _: 1
1816
1991
  }, 8, ["href", "class"]))
1817
- ], 8, Kt);
1992
+ ], 8, Vt);
1818
1993
  };
1819
1994
  }
1820
- }), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1995
+ }), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1821
1996
  __proto__: null,
1822
- KrdsBadge: dt,
1823
- KrdsBreadcrumb: Dt,
1824
- KrdsButton: oe,
1825
- KrdsButtonGroup: Ie,
1997
+ KrdsBadge: ct,
1998
+ KrdsBreadcrumb: Kt,
1999
+ KrdsButton: de,
2000
+ KrdsButtonGroup: Ve,
1826
2001
  KrdsCheckArea: yt,
1827
2002
  KrdsCheckbox: pt,
1828
2003
  KrdsDateInput: rt,
1829
- KrdsFileUpload: ut,
1830
- KrdsFormGroup: Le,
1831
- KrdsFormHint: Pe,
2004
+ KrdsFileUpload: dt,
2005
+ KrdsFormGroup: Pe,
2006
+ KrdsFormHint: Ne,
1832
2007
  KrdsFormLabel: $e,
1833
- KrdsIcon: Ve,
1834
- KrdsInPageNavigation: Bt,
2008
+ KrdsIcon: Ie,
2009
+ KrdsInPageNavigation: xt,
1835
2010
  KrdsInput: Me,
1836
2011
  KrdsLink: ze,
1837
- KrdsMasthead: vt,
1838
- KrdsPagination: Mt,
1839
- KrdsSkipLink: kt,
1840
- KrdsSpinner: ue,
1841
- KrdsStep: bt,
1842
- KrdsStepIndicator: mt,
1843
- KrdsTag: ct,
1844
- 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,
1845
2022
  KrdsTextarea: ot,
1846
- KrdsToggleSwitch: gt
1847
- }, Symbol.toStringTag, { value: "Module" })), Q = {
1848
- mounted(e, i) {
1849
- 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");
1850
2027
  },
1851
- updated(e, i) {
1852
- 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");
1853
2030
  },
1854
2031
  unmounted(e) {
1855
2032
  e.classList.remove("sr-only");
1856
2033
  }
1857
- }, se = {
1858
- "sr-only": Q
2034
+ }, re = {
2035
+ "sr-only": Z
1859
2036
  }, fe = (e) => {
1860
- e.directive("sr-only", Q);
1861
- }, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2037
+ e.directive("sr-only", Z);
2038
+ }, oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1862
2039
  __proto__: null,
1863
- default: se,
1864
- directives: se,
2040
+ default: re,
2041
+ directives: re,
1865
2042
  installDirectives: fe,
1866
- vSrOnly: Q
1867
- }, Symbol.toStringTag, { value: "Module" })), Lt = {
1868
- install(e, i = {}) {
1869
- e.provide("krds:config", i);
1870
- const s = i.components || Object.keys(le);
1871
- s.forEach((l) => {
1872
- const o = le[l];
2043
+ vSrOnly: Z
2044
+ }, Symbol.toStringTag, { value: "Module" })), Tt = {
2045
+ install(e, s = {}) {
2046
+ e.provide("krds:config", s);
2047
+ const n = s.components || Object.keys(ie);
2048
+ n.forEach((l) => {
2049
+ const o = ie[l];
1873
2050
  o && e.component(l, o);
1874
- }), typeof ie == "object" && ie !== null && fe(e), e.config.globalProperties.$krds = {
2051
+ }), typeof oe == "object" && oe !== null && fe(e), e.config.globalProperties.$krds = {
1875
2052
  version: "__VERSION__"
1876
- }, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${s.length}개`);
2053
+ }, process.env.NODE_ENV !== "production" && console.log(`[KRDS Vue] v__VERSION__ 설치 완료 - 컴포넌트: ${n.length}개`);
1877
2054
  }
1878
- }, Nt = "__VERSION__";
2055
+ }, Et = "__VERSION__";
1879
2056
  export {
1880
- dt as KrdsBadge,
1881
- Dt as KrdsBreadcrumb,
1882
- oe as KrdsButton,
1883
- Ie as KrdsButtonGroup,
2057
+ ct as KrdsBadge,
2058
+ Kt as KrdsBreadcrumb,
2059
+ de as KrdsButton,
2060
+ Ve as KrdsButtonGroup,
1884
2061
  yt as KrdsCheckArea,
1885
2062
  pt as KrdsCheckbox,
1886
2063
  rt as KrdsDateInput,
1887
- ut as KrdsFileUpload,
1888
- Le as KrdsFormGroup,
1889
- Pe as KrdsFormHint,
2064
+ dt as KrdsFileUpload,
2065
+ Pe as KrdsFormGroup,
2066
+ Ne as KrdsFormHint,
1890
2067
  $e as KrdsFormLabel,
1891
- Ve as KrdsIcon,
1892
- Bt as KrdsInPageNavigation,
2068
+ Ie as KrdsIcon,
2069
+ xt as KrdsInPageNavigation,
1893
2070
  Me as KrdsInput,
1894
2071
  ze as KrdsLink,
1895
- vt as KrdsMasthead,
1896
- Mt as KrdsPagination,
1897
- kt as KrdsSkipLink,
1898
- ue as KrdsSpinner,
1899
- bt as KrdsStep,
1900
- mt as KrdsStepIndicator,
1901
- ct as KrdsTag,
1902
- 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,
1903
2082
  ot as KrdsTextarea,
1904
- gt as KrdsToggleSwitch,
1905
- ce as classNames,
1906
- Lt as default,
1907
- de as generateId,
1908
- Pt as generateUid,
1909
- Nt 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
1910
2089
  };
1911
2090
  //# sourceMappingURL=krds-vue.es.js.map