@lucian-seo/lucian-ui 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/{VoiceControlBar-lMPuJMcF.js → VoiceControlBar-Bx016mmz.js} +433 -429
- package/dist/lib/VoiceControlBar-Bx016mmz.js.map +1 -0
- package/dist/lib/components/extended/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/styles.css +1 -1
- package/docs/DATAGRID.md +5 -1
- package/package.json +1 -1
- package/dist/lib/VoiceControlBar-lMPuJMcF.js.map +0 -1
|
@@ -6,8 +6,8 @@ import { a as g, i as _, n as v, o as y, r as b, t as x } from "./ToggleButton-r
|
|
|
6
6
|
import { c as S, d as C, i as ee, l as te, m as w, o as T, p as E, r as ne, s as D, t as re } from "./Pagination-AWL5k5zG.js";
|
|
7
7
|
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
8
8
|
import { useCallback as ie, useEffect as j, useId as M, useLayoutEffect as ae, useMemo as oe, useRef as N, useState as P } from "react";
|
|
9
|
-
import { AlertCircle as se, ArrowDown as ce, ArrowDownRight as le, ArrowDownToLine as
|
|
10
|
-
import { aggregationFn_count as
|
|
9
|
+
import { AlertCircle as se, ArrowDown as ce, ArrowDownRight as le, ArrowDownToLine as ue, ArrowUp as de, ArrowUpRight as fe, Brain as F, Check as I, CheckCircle2 as pe, ChevronDown as me, ChevronLeft as he, ChevronRight as ge, CircleSlash as _e, CornerDownRight as ve, Eye as ye, EyeOff as be, GripVertical as L, ImageOff as xe, Keyboard as R, Mic as z, MicOff as Se, Minus as Ce, MoreHorizontal as we, PhoneOff as Te, Plus as B, RotateCcw as V, Search as Ee, ShieldAlert as H, ShieldCheck as De, ShieldX as Oe, SlidersHorizontal as ke, Square as U, Tag as W, Terminal as Ae, ThumbsDown as G, ThumbsUp as je, Trash2 as K, Upload as Me, X as q, XCircle as J } from "lucide-react";
|
|
10
|
+
import { aggregationFn_count as Ne, aggregationFn_extent as Pe, aggregationFn_first as Y, aggregationFn_last as Fe, aggregationFn_max as Ie, aggregationFn_mean as X, aggregationFn_median as Le, aggregationFn_min as Re, aggregationFn_sum as Z, aggregationFn_unique as ze, aggregationFn_uniqueCount as Q, columnVisibilityFeature as Be, constructFilterFn as Ve, createExpandedRowModel as He, createFacetedMinMaxValues as Ue, createFacetedRowModel as We, createFacetedUniqueValues as Ge, createFilteredRowModel as Ke, createGroupedRowModel as qe, createPaginatedRowModel as Je, createSortedRowModel as Ye, filterFn_equalsString as Xe, filterFn_inNumberRange as Ze, filterFn_includesString as Qe, filterFns as $e, functionalUpdate as et, rowSelectionFeature as tt, rowSortingFeature as nt, sortFn_alphanumeric as rt, sortFn_basic as it, sortFn_datetime as at, sortFns as ot, stockFeatures as st, tableFeatures as ct, useTable as lt } from "@tanstack/react-table";
|
|
11
11
|
import { defaultRangeExtractor as ut, useVirtualizer as dt } from "@tanstack/react-virtual";
|
|
12
12
|
//#region src/components/extended/ActivityList/ActivityList.tsx
|
|
13
13
|
var ft = {
|
|
@@ -41,7 +41,7 @@ function pt({ steps: t, label: n, announce: a, size: o = "md", className: s, ...
|
|
|
41
41
|
icon: se,
|
|
42
42
|
size: "xs"
|
|
43
43
|
}) : t.state === "skipped" ? /* @__PURE__ */ k(r, {
|
|
44
|
-
icon:
|
|
44
|
+
icon: Ce,
|
|
45
45
|
size: "xs"
|
|
46
46
|
}) : null
|
|
47
47
|
}),
|
|
@@ -71,7 +71,7 @@ function pt({ steps: t, label: n, announce: a, size: o = "md", className: s, ...
|
|
|
71
71
|
//#region src/components/extended/BackgroundProgress/BackgroundProgress.tsx
|
|
72
72
|
var mt = {
|
|
73
73
|
done: pe,
|
|
74
|
-
failed:
|
|
74
|
+
failed: J
|
|
75
75
|
}, ht = {
|
|
76
76
|
running: "진행 중",
|
|
77
77
|
done: "완료",
|
|
@@ -137,7 +137,7 @@ function gt({ title: e, jobs: n, value: a, open: o = !1, onOpenChange: c, onDism
|
|
|
137
137
|
children: [p > 0 ? `${p}개 실패 · ` : null, m > 0 ? `${m}개 진행 중` : "모두 끝남"]
|
|
138
138
|
}),
|
|
139
139
|
l ? /* @__PURE__ */ k(t, {
|
|
140
|
-
icon:
|
|
140
|
+
icon: q,
|
|
141
141
|
label: `${e} 닫기`,
|
|
142
142
|
size: "sm",
|
|
143
143
|
variant: "ghost",
|
|
@@ -200,7 +200,7 @@ function gt({ title: e, jobs: n, value: a, open: o = !1, onOpenChange: c, onDism
|
|
|
200
200
|
"data-part": "job-bar"
|
|
201
201
|
}) : null,
|
|
202
202
|
e.onCancel && n === "running" ? /* @__PURE__ */ k(t, {
|
|
203
|
-
icon:
|
|
203
|
+
icon: q,
|
|
204
204
|
label: `${e.label} 취소`,
|
|
205
205
|
size: "sm",
|
|
206
206
|
variant: "ghost",
|
|
@@ -423,7 +423,7 @@ function Ct({ title: e, action: t, detail: i, scopes: a, scope: o, onScopeChange
|
|
|
423
423
|
className: "approval-gate__mark",
|
|
424
424
|
"aria-hidden": "true",
|
|
425
425
|
children: /* @__PURE__ */ k(r, {
|
|
426
|
-
icon: m === "approved" ?
|
|
426
|
+
icon: m === "approved" ? De : m === "denied" ? Oe : H,
|
|
427
427
|
size: "sm"
|
|
428
428
|
})
|
|
429
429
|
}), /* @__PURE__ */ k("h3", {
|
|
@@ -732,7 +732,7 @@ function kt({ value: e, onValueChange: n, onSubmit: r, onStop: i, running: a, la
|
|
|
732
732
|
children: d
|
|
733
733
|
}) : null,
|
|
734
734
|
a ? /* @__PURE__ */ k(t, {
|
|
735
|
-
icon:
|
|
735
|
+
icon: U,
|
|
736
736
|
label: h,
|
|
737
737
|
type: "button",
|
|
738
738
|
variant: "solid",
|
|
@@ -742,7 +742,7 @@ function kt({ value: e, onValueChange: n, onSubmit: r, onStop: i, running: a, la
|
|
|
742
742
|
disabled: !i,
|
|
743
743
|
"data-part": "stop"
|
|
744
744
|
}) : /* @__PURE__ */ k(t, {
|
|
745
|
-
icon:
|
|
745
|
+
icon: de,
|
|
746
746
|
label: m,
|
|
747
747
|
type: "submit",
|
|
748
748
|
variant: "solid",
|
|
@@ -776,7 +776,7 @@ function At({ value: e, onValueChange: i, onApply: a, applied: s = [], onRemove:
|
|
|
776
776
|
className: "coupon-field__coupon",
|
|
777
777
|
children: [
|
|
778
778
|
/* @__PURE__ */ k(r, {
|
|
779
|
-
icon:
|
|
779
|
+
icon: W,
|
|
780
780
|
size: "sm",
|
|
781
781
|
tone: "success",
|
|
782
782
|
"aria-hidden": "true"
|
|
@@ -790,7 +790,7 @@ function At({ value: e, onValueChange: i, onApply: a, applied: s = [], onRemove:
|
|
|
790
790
|
children: e.effect
|
|
791
791
|
}),
|
|
792
792
|
c ? /* @__PURE__ */ k(t, {
|
|
793
|
-
icon:
|
|
793
|
+
icon: q,
|
|
794
794
|
label: `${e.code} 쿠폰 빼기`,
|
|
795
795
|
size: "sm",
|
|
796
796
|
onClick: () => c(e.code),
|
|
@@ -909,17 +909,17 @@ var It = Ve({
|
|
|
909
909
|
datetime: at
|
|
910
910
|
},
|
|
911
911
|
aggregationFns: {
|
|
912
|
-
sum:
|
|
913
|
-
min:
|
|
914
|
-
max:
|
|
915
|
-
mean:
|
|
916
|
-
median:
|
|
917
|
-
count:
|
|
918
|
-
uniqueCount:
|
|
919
|
-
first:
|
|
920
|
-
last:
|
|
921
|
-
extent:
|
|
922
|
-
unique:
|
|
912
|
+
sum: Z,
|
|
913
|
+
min: Re,
|
|
914
|
+
max: Ie,
|
|
915
|
+
mean: X,
|
|
916
|
+
median: Le,
|
|
917
|
+
count: Ne,
|
|
918
|
+
uniqueCount: Q,
|
|
919
|
+
first: Y,
|
|
920
|
+
last: Fe,
|
|
921
|
+
extent: Pe,
|
|
922
|
+
unique: ze
|
|
923
923
|
}
|
|
924
924
|
});
|
|
925
925
|
function Rt(e) {
|
|
@@ -1008,9 +1008,9 @@ function Ut(e) {
|
|
|
1008
1008
|
}, [D, ie] = P({
|
|
1009
1009
|
row: 0,
|
|
1010
1010
|
column: 0
|
|
1011
|
-
}), ae = N(!1), [se, le] = P(null), [F,
|
|
1012
|
-
|
|
1013
|
-
let [
|
|
1011
|
+
}), ae = N(!1), [se, le] = P(null), [ue, fe] = P(null), [F, I] = P(null), pe = N(F);
|
|
1012
|
+
pe.current = F;
|
|
1013
|
+
let [he, _e] = P(""), [ve, ye] = P(null), [be, L] = P(null), xe = N(/* @__PURE__ */ new Map()), R = oe(() => {
|
|
1014
1014
|
let t = (n) => n.map((n) => ({
|
|
1015
1015
|
data: n,
|
|
1016
1016
|
key: e.rowKey(n),
|
|
@@ -1021,7 +1021,7 @@ function Ut(e) {
|
|
|
1021
1021
|
e.rows,
|
|
1022
1022
|
e.rowKey,
|
|
1023
1023
|
i.getSubRows
|
|
1024
|
-
]), z = oe(() => new Map(e.columns.map((e) => [e.id, e])), [e.columns]),
|
|
1024
|
+
]), z = oe(() => new Map(e.columns.map((e) => [e.id, e])), [e.columns]), Se = a("rowSelection"), Ce = Se || a("rowPinning"), Te = oe(() => {
|
|
1025
1025
|
let t = e.columns.map((e) => ({
|
|
1026
1026
|
id: e.id,
|
|
1027
1027
|
header: e.header,
|
|
@@ -1052,7 +1052,7 @@ function Ut(e) {
|
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
|
-
return
|
|
1055
|
+
return Ce && n.unshift({
|
|
1056
1056
|
id: $,
|
|
1057
1057
|
header: "행 작업",
|
|
1058
1058
|
size: 128,
|
|
@@ -1069,13 +1069,13 @@ function Ut(e) {
|
|
|
1069
1069
|
}), n;
|
|
1070
1070
|
}, [
|
|
1071
1071
|
e.columns,
|
|
1072
|
-
|
|
1072
|
+
Ce,
|
|
1073
1073
|
i.renderDetail,
|
|
1074
1074
|
C.expanded
|
|
1075
|
-
]),
|
|
1075
|
+
]), B = lt({
|
|
1076
1076
|
features: Lt,
|
|
1077
1077
|
data: R,
|
|
1078
|
-
columns:
|
|
1078
|
+
columns: Te,
|
|
1079
1079
|
getRowId: (e) => e.key,
|
|
1080
1080
|
getSubRows: (e) => e.children,
|
|
1081
1081
|
state: {
|
|
@@ -1131,95 +1131,97 @@ function Ut(e) {
|
|
|
1131
1131
|
getRowCanExpand: (e) => a("expanding") && (e.subRows.length > 0 || !!i.renderDetail && !e.getIsGrouped()),
|
|
1132
1132
|
enableRowPinning: a("rowPinning"),
|
|
1133
1133
|
keepPinnedRows: !1,
|
|
1134
|
-
enableRowSelection:
|
|
1134
|
+
enableRowSelection: Se,
|
|
1135
1135
|
enableCellSelection: a("cellSelection"),
|
|
1136
1136
|
enableCellSpanning: a("cellSpanning"),
|
|
1137
1137
|
globalFilterFn: a("fuzzySearch") ? "fuzzy" : "includesString",
|
|
1138
1138
|
autoResetPageIndex: !1,
|
|
1139
1139
|
autoResetExpanded: !1,
|
|
1140
1140
|
autoResetCellSelection: !1
|
|
1141
|
-
}),
|
|
1142
|
-
...
|
|
1143
|
-
...
|
|
1144
|
-
...
|
|
1145
|
-
],
|
|
1146
|
-
...
|
|
1147
|
-
...
|
|
1148
|
-
...
|
|
1149
|
-
],
|
|
1141
|
+
}), V = [
|
|
1142
|
+
...B.getStartVisibleLeafColumns(),
|
|
1143
|
+
...B.getCenterVisibleLeafColumns(),
|
|
1144
|
+
...B.getEndVisibleLeafColumns()
|
|
1145
|
+
], H = B.getCenterVisibleLeafColumns(), De = B.getTopRows(), Oe = B.getBottomRows(), U = B.getCenterRows(), W = [
|
|
1146
|
+
...De,
|
|
1147
|
+
...U,
|
|
1148
|
+
...Oe
|
|
1149
|
+
], Ae = (e) => e.getIsGrouped() ? e.getLeafRows() : [e], G = new Set(C.selectedKeys), je = (e) => Ae(e).every((e) => G.has(e.id)), K = (e) => !je(e) && Ae(e).some((e) => G.has(e.id)), Me = [...new Set(B.getRowModel().rows.flatMap((e) => Ae(e).map((e) => e.id)))], q = Me.length > 0 && Me.every((e) => G.has(e)), J = Me.some((e) => G.has(e)), Ne = (e, t) => E("selectedKeys", (n) => {
|
|
1150
1150
|
let r = new Set(n);
|
|
1151
1151
|
for (let n of e) t ? r.delete(n) : r.add(n);
|
|
1152
1152
|
return [...r];
|
|
1153
|
-
}),
|
|
1154
|
-
e.getIsGrouped() ?
|
|
1155
|
-
},
|
|
1156
|
-
for (let e of
|
|
1157
|
-
let
|
|
1153
|
+
}), Pe = (e) => {
|
|
1154
|
+
e.getIsGrouped() ? Ne(Ae(e).map((e) => e.id), je(e)) : e.toggleSelected();
|
|
1155
|
+
}, Y = new Map(W.map((e, t) => [e.id, t])), Fe = B.getHeaderGroups().length, Ie = !!(i.getSubRows || i.renderDetail || C.grouping.length), X = Fe + +!!a("filtering"), Le = a("aggregation") || e.columns.some((e) => e.footer), Re = !!e.error && e.retainRowsOnError && e.rows.length > 0, Z = Re ? "rows" : Nt(!!e.error, !!e.loading, W.length), ze = Le && Z === "rows", Q = e.virtualize !== !1 && Z === "rows", Be = a("columnVirtualization") && Z === "rows", Ve = (e) => !!i.renderDetail && e.getIsExpanded() && !e.getIsGrouped() && e.subRows.length === 0, He = /* @__PURE__ */ new Map(), Ue = 0;
|
|
1156
|
+
for (let e of W) He.set(e.id, Ue), Ve(e) && Ue++;
|
|
1157
|
+
let We = a("pagination") ? C.pagination.pageIndex * C.pagination.pageSize : 0, Ge = s ? W : B.getPrePaginatedRowModel().rows, Ke = Ge.filter(Ve).length, qe = s ? 0 : Ge.slice(0, We).filter(Ve).length, Je = X + (Z === "loading" ? e.loadingRows ?? 5 : Z === "rows" ? (s ? i.rowCount ?? W.length : B.getRowCount()) + Ke : 0) + +!!ze, Ye = a("cellSpanning") ? B.getCellSpanIndex() : null, Xe = /* @__PURE__ */ new Set();
|
|
1158
1158
|
for (let e of [
|
|
1159
1159
|
F?.rowId,
|
|
1160
1160
|
se,
|
|
1161
|
-
|
|
1161
|
+
W[D.row]?.id
|
|
1162
1162
|
]) {
|
|
1163
|
-
let t =
|
|
1164
|
-
t >= 0 &&
|
|
1163
|
+
let t = U.findIndex((t) => t.id === e);
|
|
1164
|
+
t >= 0 && Xe.add(t);
|
|
1165
1165
|
}
|
|
1166
|
-
let
|
|
1167
|
-
count:
|
|
1166
|
+
let Ze = dt({
|
|
1167
|
+
count: U.length,
|
|
1168
1168
|
getScrollElement: () => u.current,
|
|
1169
|
-
getItemKey: (e) =>
|
|
1170
|
-
estimateSize: (e) =>
|
|
1171
|
-
enabled:
|
|
1169
|
+
getItemKey: (e) => U[e].id,
|
|
1170
|
+
estimateSize: (e) => Ve(U[e]) ? y.row * 3 : y.row,
|
|
1171
|
+
enabled: Q,
|
|
1172
1172
|
overscan: 5,
|
|
1173
1173
|
rangeExtractor: (e) => {
|
|
1174
|
-
let t = /* @__PURE__ */ new Set([...ut(e), ...
|
|
1175
|
-
if (
|
|
1176
|
-
let n =
|
|
1177
|
-
for (let r of Object.values(
|
|
1174
|
+
let t = /* @__PURE__ */ new Set([...ut(e), ...Xe]);
|
|
1175
|
+
if (Ye) {
|
|
1176
|
+
let n = De.length;
|
|
1177
|
+
for (let r of Object.values(Ye.rowSpans)) for (let i = 0; i <= e.endIndex + n && i < r.length; i++) if (r[i] > 1 && i + r[i] > e.startIndex + n) {
|
|
1178
1178
|
let e = i - n;
|
|
1179
|
-
e >= 0 && e <
|
|
1179
|
+
e >= 0 && e < U.length && t.add(e);
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
return [...t].filter((e) => e >= 0 && e <
|
|
1182
|
+
return [...t].filter((e) => e >= 0 && e < U.length).sort((e, t) => e - t);
|
|
1183
1183
|
},
|
|
1184
1184
|
scrollMargin: y.head + y.top,
|
|
1185
1185
|
scrollPaddingStart: y.head + y.top,
|
|
1186
1186
|
scrollPaddingEnd: y.foot + y.bottom,
|
|
1187
1187
|
measureElement: (e) => {
|
|
1188
1188
|
let t = e.getBoundingClientRect().height, n = e.getAttribute("data-row-id");
|
|
1189
|
-
return n &&
|
|
1189
|
+
return n && xe.current.set(n, t), t;
|
|
1190
1190
|
}
|
|
1191
|
-
}),
|
|
1192
|
-
if (
|
|
1193
|
-
for (let e of
|
|
1191
|
+
}), Qe = /* @__PURE__ */ new Set();
|
|
1192
|
+
if (Ye) {
|
|
1193
|
+
for (let e of Ye.colSpans) if (e) {
|
|
1194
1194
|
for (let t = 0; t < e.length; t++) if (e[t] > 1) {
|
|
1195
|
-
let e =
|
|
1196
|
-
n >= 0 &&
|
|
1195
|
+
let e = V[t]?.id, n = H.findIndex((t) => t.id === e);
|
|
1196
|
+
n >= 0 && Qe.add(n);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
let
|
|
1201
|
-
count:
|
|
1200
|
+
let $e = dt({
|
|
1201
|
+
count: H.length,
|
|
1202
1202
|
horizontal: !0,
|
|
1203
1203
|
getScrollElement: () => u.current,
|
|
1204
|
-
getItemKey: (e) =>
|
|
1205
|
-
estimateSize: (e) =>
|
|
1206
|
-
enabled:
|
|
1204
|
+
getItemKey: (e) => H[e].id,
|
|
1205
|
+
estimateSize: (e) => H[e].getSize(),
|
|
1206
|
+
enabled: Be,
|
|
1207
1207
|
overscan: 2,
|
|
1208
|
-
scrollMargin:
|
|
1209
|
-
scrollPaddingStart:
|
|
1210
|
-
scrollPaddingEnd:
|
|
1208
|
+
scrollMargin: B.getStartTotalSize(),
|
|
1209
|
+
scrollPaddingStart: B.getStartTotalSize(),
|
|
1210
|
+
scrollPaddingEnd: B.getEndTotalSize(),
|
|
1211
1211
|
rangeExtractor: (e) => [.../* @__PURE__ */ new Set([
|
|
1212
1212
|
...ut(e),
|
|
1213
|
-
...
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1213
|
+
...Qe,
|
|
1214
|
+
H.findIndex((e) => e.id === V[D.column]?.id),
|
|
1215
|
+
H.findIndex((e) => e.id === ue),
|
|
1216
|
+
H.findIndex((e) => e.id === F?.columnId)
|
|
1217
|
+
])].filter((e) => e >= 0 && e < H.length).sort((e, t) => e - t)
|
|
1218
|
+
}), tt = new Set(Be ? $e.getVirtualItems().map((e) => H[e.index].id) : H.map((e) => e.id));
|
|
1219
|
+
for (let e of V) e.getIsPinned() && tt.add(e.id);
|
|
1220
|
+
let nt = Q ? Ze.getVirtualItems().map((e) => ({
|
|
1221
|
+
row: U[e.index],
|
|
1220
1222
|
index: e.index,
|
|
1221
1223
|
offset: e.start - y.head - y.top
|
|
1222
|
-
})) :
|
|
1224
|
+
})) : U.map((e, t) => ({
|
|
1223
1225
|
row: e,
|
|
1224
1226
|
index: t,
|
|
1225
1227
|
offset: 0
|
|
@@ -1233,7 +1235,7 @@ function Ut(e) {
|
|
|
1233
1235
|
foot: v.current?.getBoundingClientRect().height ?? 0,
|
|
1234
1236
|
row: e && parseFloat(getComputedStyle(e).minBlockSize) || 36
|
|
1235
1237
|
};
|
|
1236
|
-
b((e) => Object.keys(t).every((n) => t[n] === e[n]) ? e : t),
|
|
1238
|
+
b((e) => Object.keys(t).every((n) => t[n] === e[n]) ? e : t), Ze.measure();
|
|
1237
1239
|
};
|
|
1238
1240
|
e();
|
|
1239
1241
|
let t = new ResizeObserver(e);
|
|
@@ -1248,27 +1250,27 @@ function Ut(e) {
|
|
|
1248
1250
|
e.density,
|
|
1249
1251
|
X,
|
|
1250
1252
|
C.grouping.length,
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1253
|
+
De.length,
|
|
1254
|
+
Oe.length,
|
|
1255
|
+
Le,
|
|
1256
|
+
Z,
|
|
1257
|
+
Ze
|
|
1256
1258
|
]), j(() => {
|
|
1257
|
-
|
|
1259
|
+
$e.measure();
|
|
1258
1260
|
}, [
|
|
1259
1261
|
C.columnSizes,
|
|
1260
1262
|
C.columnOrder,
|
|
1261
1263
|
C.hiddenColumns,
|
|
1262
1264
|
C.columnPinning,
|
|
1263
|
-
|
|
1265
|
+
$e
|
|
1264
1266
|
]), j(() => {
|
|
1265
1267
|
ie((e) => {
|
|
1266
1268
|
let t = jt(e, {
|
|
1267
|
-
rows:
|
|
1268
|
-
columns:
|
|
1269
|
+
rows: W.length,
|
|
1270
|
+
columns: V.length
|
|
1269
1271
|
});
|
|
1270
|
-
for (let e = 0; e <
|
|
1271
|
-
let e =
|
|
1272
|
+
for (let e = 0; e < W.length + V.length; e++) {
|
|
1273
|
+
let e = W[t.row]?.getVisibleCells().find((e) => e.column.id === V[t.column]?.id);
|
|
1272
1274
|
if (!e?.getIsCovered()) break;
|
|
1273
1275
|
if (e.getRowSpan() === 0 && t.row > 0) t.row--;
|
|
1274
1276
|
else if (t.column > 0) t.column--;
|
|
@@ -1277,10 +1279,10 @@ function Ut(e) {
|
|
|
1277
1279
|
return t.row === e.row && t.column === e.column ? e : t;
|
|
1278
1280
|
});
|
|
1279
1281
|
}, [
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
+
W.length,
|
|
1283
|
+
V.length,
|
|
1282
1284
|
R,
|
|
1283
|
-
|
|
1285
|
+
Te,
|
|
1284
1286
|
C.sorting,
|
|
1285
1287
|
C.filters,
|
|
1286
1288
|
C.grouping,
|
|
@@ -1288,8 +1290,8 @@ function Ut(e) {
|
|
|
1288
1290
|
C.columnPinning
|
|
1289
1291
|
]), j(() => {
|
|
1290
1292
|
if (!s && a("pagination")) {
|
|
1291
|
-
let e = Math.max(0,
|
|
1292
|
-
C.pagination.pageIndex > e &&
|
|
1293
|
+
let e = Math.max(0, B.getPageCount() - 1);
|
|
1294
|
+
C.pagination.pageIndex > e && B.setPageIndex(e);
|
|
1293
1295
|
}
|
|
1294
1296
|
}, [
|
|
1295
1297
|
R,
|
|
@@ -1299,90 +1301,90 @@ function Ut(e) {
|
|
|
1299
1301
|
C.pagination.pageIndex,
|
|
1300
1302
|
s,
|
|
1301
1303
|
i.pagination,
|
|
1302
|
-
|
|
1304
|
+
B
|
|
1303
1305
|
]), j(() => {
|
|
1304
|
-
F && (
|
|
1306
|
+
F && (Z !== "rows" || !W.some((e) => e.id === F.rowId) || !V.some((e) => e.id === F.columnId)) && (pe.current = null, I(null));
|
|
1305
1307
|
}, [
|
|
1306
1308
|
F,
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1309
|
+
W,
|
|
1310
|
+
V,
|
|
1311
|
+
Z
|
|
1310
1312
|
]), j(() => {
|
|
1311
1313
|
if (!ae.current) return;
|
|
1312
|
-
let e =
|
|
1314
|
+
let e = W[D.row], t = V[D.column];
|
|
1313
1315
|
if (!e || !t) return;
|
|
1314
|
-
let n =
|
|
1315
|
-
|
|
1316
|
-
let r =
|
|
1317
|
-
|
|
1316
|
+
let n = U.findIndex((t) => t.id === e.id);
|
|
1317
|
+
Q && n >= 0 && Ze.scrollToIndex(n, { align: "auto" });
|
|
1318
|
+
let r = H.findIndex((e) => e.id === t.id);
|
|
1319
|
+
Be && r >= 0 && $e.scrollToIndex(r, { align: "auto" });
|
|
1318
1320
|
let i = [...f.current?.querySelectorAll("[role=\"gridcell\"]") ?? []].find((n) => n.dataset.rowId === e.id && n.dataset.columnId === t.id);
|
|
1319
1321
|
i && (i.querySelector("[data-dg=\"editor\"]") || i.focus({ preventScroll: !0 }), ae.current = !1);
|
|
1320
1322
|
}, [
|
|
1321
1323
|
D,
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
G,
|
|
1324
|
+
nt,
|
|
1325
|
+
V,
|
|
1325
1326
|
W,
|
|
1326
1327
|
U,
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
Ze
|
|
1328
|
+
H,
|
|
1329
|
+
Q,
|
|
1330
|
+
Be,
|
|
1331
|
+
Ze,
|
|
1332
|
+
$e
|
|
1331
1333
|
]);
|
|
1332
|
-
let
|
|
1333
|
-
t.getIsGrouped() || !n.editable || !e.onCellCommit || e.cellState?.(t.original.data, n)?.pending ||
|
|
1334
|
+
let rt = (t, n) => {
|
|
1335
|
+
t.getIsGrouped() || !n.editable || !e.onCellCommit || e.cellState?.(t.original.data, n)?.pending || I({
|
|
1334
1336
|
rowId: t.id,
|
|
1335
1337
|
columnId: n.id,
|
|
1336
1338
|
draft: e.cellState?.(t.original.data, n)?.draft ?? n.value?.(t.original.data) ?? String(Ht(n, t.original.data) ?? "")
|
|
1337
1339
|
});
|
|
1338
|
-
},
|
|
1339
|
-
let r =
|
|
1340
|
+
}, it = (t, n = !1) => {
|
|
1341
|
+
let r = pe.current;
|
|
1340
1342
|
if (r) {
|
|
1341
|
-
if (
|
|
1342
|
-
let t =
|
|
1343
|
+
if (pe.current = null, I(null), t) {
|
|
1344
|
+
let t = W.find((e) => e.id === r.rowId);
|
|
1343
1345
|
t && e.onCellCommit?.(t.original.data, r.columnId, r.draft);
|
|
1344
1346
|
}
|
|
1345
1347
|
n && (ae.current = !0, ie((e) => ({ ...e })));
|
|
1346
1348
|
}
|
|
1347
1349
|
};
|
|
1348
1350
|
j(() => {
|
|
1349
|
-
if (!
|
|
1350
|
-
let e = z.get(
|
|
1351
|
-
if (!e || !
|
|
1352
|
-
let t =
|
|
1351
|
+
if (!ve) return;
|
|
1352
|
+
let e = z.get(ve.columnId);
|
|
1353
|
+
if (!e || !V.some((e) => e.id === ve.columnId)) return;
|
|
1354
|
+
let t = B.getPrePaginatedRowModel().rows.findIndex((e) => e.id === ve.rowId);
|
|
1353
1355
|
if (t < 0) {
|
|
1354
|
-
|
|
1356
|
+
_e("입력 복구 대상을 표시하려면 검색 조건을 해제하세요."), ye(null);
|
|
1355
1357
|
return;
|
|
1356
1358
|
}
|
|
1357
1359
|
let n = Math.floor(t / C.pagination.pageSize);
|
|
1358
1360
|
if (!s && a("pagination") && n !== C.pagination.pageIndex) {
|
|
1359
|
-
|
|
1361
|
+
B.setPageIndex(n);
|
|
1360
1362
|
return;
|
|
1361
1363
|
}
|
|
1362
|
-
let r =
|
|
1363
|
-
r && (
|
|
1364
|
-
row:
|
|
1365
|
-
column:
|
|
1366
|
-
}),
|
|
1364
|
+
let r = W.find((e) => e.id === ve.rowId);
|
|
1365
|
+
r && (rt(r, e), ae.current = !0, ie({
|
|
1366
|
+
row: Y.get(r.id) ?? 0,
|
|
1367
|
+
column: V.findIndex((t) => t.id === e.id)
|
|
1368
|
+
}), ye(null));
|
|
1367
1369
|
}, [
|
|
1368
|
-
|
|
1370
|
+
ve,
|
|
1369
1371
|
C.expanded,
|
|
1370
1372
|
C.pagination,
|
|
1371
|
-
H,
|
|
1372
|
-
G,
|
|
1373
1373
|
V,
|
|
1374
|
+
W,
|
|
1375
|
+
B,
|
|
1374
1376
|
s
|
|
1375
1377
|
]);
|
|
1376
|
-
let
|
|
1377
|
-
let n =
|
|
1378
|
-
n.splice(Math.max(0, n.indexOf(t)), 0, e),
|
|
1379
|
-
},
|
|
1380
|
-
let n =
|
|
1381
|
-
i < 0 || i >= n.length || n[i] === $ || ([n[r], n[i]] = [n[i], n[r]],
|
|
1382
|
-
},
|
|
1378
|
+
let at = (e, t) => {
|
|
1379
|
+
let n = V.map((e) => e.id).filter((t) => t !== e);
|
|
1380
|
+
n.splice(Math.max(0, n.indexOf(t)), 0, e), B.setColumnOrder(n);
|
|
1381
|
+
}, ot = (e, t) => {
|
|
1382
|
+
let n = V.map((e) => e.id), r = n.indexOf(e), i = r + t;
|
|
1383
|
+
i < 0 || i >= n.length || n[i] === $ || ([n[r], n[i]] = [n[i], n[r]], B.setColumnOrder(n));
|
|
1384
|
+
}, st = () => B.getSelectedCellRangesData().map((e) => e.map((e) => e.map((e) => String(e ?? "").replace(/[\t\r\n]+/g, " ")).join(" ")).join("\n")).join("\n\n"), ct = (t) => {
|
|
1383
1385
|
let n = t.target;
|
|
1384
1386
|
if (!(n instanceof HTMLElement) || !n.matches("[role=\"gridcell\"]") || n.closest(l) !== t.currentTarget || F) return;
|
|
1385
|
-
let r =
|
|
1387
|
+
let r = Y.get(n.dataset.rowId ?? "") ?? D.row, i = V.findIndex((e) => e.id === n.dataset.columnId), o = {
|
|
1386
1388
|
ArrowDown: [1, 0],
|
|
1387
1389
|
ArrowUp: [-1, 0],
|
|
1388
1390
|
ArrowLeft: [0, -1],
|
|
@@ -1402,16 +1404,16 @@ function Ut(e) {
|
|
|
1402
1404
|
column: 0
|
|
1403
1405
|
};
|
|
1404
1406
|
else if (t.key === "End") s = {
|
|
1405
|
-
row: t.ctrlKey || t.metaKey ?
|
|
1406
|
-
column:
|
|
1407
|
+
row: t.ctrlKey || t.metaKey ? W.length - 1 : r,
|
|
1408
|
+
column: V.length - 1
|
|
1407
1409
|
};
|
|
1408
1410
|
else if ((t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && a("cellSelection")) {
|
|
1409
|
-
t.preventDefault(),
|
|
1411
|
+
t.preventDefault(), B.selectAllCells();
|
|
1410
1412
|
return;
|
|
1411
1413
|
} else if ((t.ctrlKey || t.metaKey) && t.key === " " && a("cellSelection") && n.dataset.columnId !== $) {
|
|
1412
1414
|
t.preventDefault();
|
|
1413
|
-
let e =
|
|
1414
|
-
|
|
1415
|
+
let e = W[r], i = n.dataset.columnId, a = e.getVisibleCells().find((e) => e.column.id === i);
|
|
1416
|
+
B.selectCellRange({
|
|
1415
1417
|
anchorRowId: e.id,
|
|
1416
1418
|
focusRowId: e.id,
|
|
1417
1419
|
anchorColumnId: i,
|
|
@@ -1419,22 +1421,22 @@ function Ut(e) {
|
|
|
1419
1421
|
}, { mode: a?.getIsSelected() ? "exclude" : "include" });
|
|
1420
1422
|
return;
|
|
1421
1423
|
} else if (t.key === "Escape") {
|
|
1422
|
-
|
|
1424
|
+
B.resetCellSelection(!0);
|
|
1423
1425
|
return;
|
|
1424
1426
|
} else if (t.key === "Enter" || t.key === "F2") {
|
|
1425
|
-
let i =
|
|
1426
|
-
i && a?.editable && e.onCellCommit ? (t.preventDefault(),
|
|
1427
|
+
let i = W[r], a = z.get(n.dataset.columnId ?? "");
|
|
1428
|
+
i && a?.editable && e.onCellCommit ? (t.preventDefault(), rt(i, a)) : i?.getCanExpand() ? (t.preventDefault(), i.toggleExpanded()) : i && !i.getIsGrouped() && e.onRowActivate?.(i.original.data);
|
|
1427
1429
|
return;
|
|
1428
|
-
} else if (t.key === " " &&
|
|
1429
|
-
t.preventDefault(),
|
|
1430
|
+
} else if (t.key === " " && Se && W[r]) {
|
|
1431
|
+
t.preventDefault(), Pe(W[r]);
|
|
1430
1432
|
return;
|
|
1431
1433
|
} else return;
|
|
1432
1434
|
t.preventDefault(), s = jt(s, {
|
|
1433
|
-
rows:
|
|
1434
|
-
columns:
|
|
1435
|
+
rows: W.length,
|
|
1436
|
+
columns: V.length
|
|
1435
1437
|
});
|
|
1436
|
-
for (let e = 0; e <
|
|
1437
|
-
let e =
|
|
1438
|
+
for (let e = 0; e < W.length + V.length; e++) {
|
|
1439
|
+
let e = W[s.row]?.getVisibleCells().find((e) => e.column.id === V[s.column]?.id);
|
|
1438
1440
|
if (!e?.getIsCovered()) break;
|
|
1439
1441
|
let t = e.getRowSpan() === 0 ? {
|
|
1440
1442
|
row: s.row + (s.row > r ? 1 : -1),
|
|
@@ -1443,7 +1445,7 @@ function Ut(e) {
|
|
|
1443
1445
|
row: s.row,
|
|
1444
1446
|
column: s.column + (s.column > i && s.row === r ? 1 : -1)
|
|
1445
1447
|
};
|
|
1446
|
-
if (t.row < 0 || t.row >=
|
|
1448
|
+
if (t.row < 0 || t.row >= W.length || t.column < 0 || t.column >= V.length) {
|
|
1447
1449
|
s = {
|
|
1448
1450
|
row: r,
|
|
1449
1451
|
column: i
|
|
@@ -1452,28 +1454,28 @@ function Ut(e) {
|
|
|
1452
1454
|
}
|
|
1453
1455
|
s = t;
|
|
1454
1456
|
}
|
|
1455
|
-
let c =
|
|
1457
|
+
let c = W[s.row], u = V[s.column];
|
|
1456
1458
|
if (a("cellSelection") && c && u?.id !== $) {
|
|
1457
1459
|
if (t.shiftKey) {
|
|
1458
1460
|
let e = C.cellSelection.at(-1);
|
|
1459
|
-
|
|
1460
|
-
anchorRowId: e?.anchorRowId ??
|
|
1461
|
+
B.selectCellRange({
|
|
1462
|
+
anchorRowId: e?.anchorRowId ?? W[r].id,
|
|
1461
1463
|
anchorColumnId: e?.anchorColumnId ?? n.dataset.columnId,
|
|
1462
1464
|
focusRowId: c.id,
|
|
1463
1465
|
focusColumnId: u.id
|
|
1464
1466
|
});
|
|
1465
|
-
} else
|
|
1467
|
+
} else B.setFocusedCell(c.id, u.id);
|
|
1466
1468
|
}
|
|
1467
1469
|
ae.current = !0, ie(s);
|
|
1468
|
-
},
|
|
1470
|
+
}, ft = (e, t = e.getSize(), n = y.row) => ({
|
|
1469
1471
|
"--dg-cell-size": `${t}px`,
|
|
1470
1472
|
"--dg-pin-offset": `${e.getIsPinned() === "end" ? e.getAfter("end") : e.getStart("start")}px`,
|
|
1471
1473
|
"--dg-span-size": `${n}px`
|
|
1472
|
-
}),
|
|
1474
|
+
}), pt = (e) => e.getCanSort() || e.getCanHide() || a("columnPinning") || a("columnOrdering") || a("grouping") && e.getCanGroup() || a("columnResizing") && e.getCanResize() ? /* @__PURE__ */ k(ne, {
|
|
1473
1475
|
items: /* @__PURE__ */ A(O, { children: [
|
|
1474
1476
|
e.getCanSort() ? /* @__PURE__ */ A(O, { children: [
|
|
1475
1477
|
/* @__PURE__ */ k(T, {
|
|
1476
|
-
icon:
|
|
1478
|
+
icon: de,
|
|
1477
1479
|
onSelect: () => e.toggleSorting(!1, !1),
|
|
1478
1480
|
children: "오름차순"
|
|
1479
1481
|
}),
|
|
@@ -1507,10 +1509,10 @@ function Ut(e) {
|
|
|
1507
1509
|
})
|
|
1508
1510
|
] }) : null,
|
|
1509
1511
|
a("columnOrdering") ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(T, {
|
|
1510
|
-
onSelect: () =>
|
|
1512
|
+
onSelect: () => ot(e.id, -1),
|
|
1511
1513
|
children: "열을 앞으로 이동"
|
|
1512
1514
|
}), /* @__PURE__ */ k(T, {
|
|
1513
|
-
onSelect: () =>
|
|
1515
|
+
onSelect: () => ot(e.id, 1),
|
|
1514
1516
|
children: "열을 뒤로 이동"
|
|
1515
1517
|
})] }) : null,
|
|
1516
1518
|
a("grouping") && e.getCanGroup() ? /* @__PURE__ */ k(T, {
|
|
@@ -1534,39 +1536,39 @@ function Ut(e) {
|
|
|
1534
1536
|
label: `${z.get(e.id)?.header ?? e.id} 열 설정`,
|
|
1535
1537
|
"data-dg": "column-menu"
|
|
1536
1538
|
})
|
|
1537
|
-
}) : null,
|
|
1539
|
+
}) : null, mt = (e, t) => t > 0 ? /* @__PURE__ */ k("div", {
|
|
1538
1540
|
className: "dg-complete__spacer",
|
|
1539
1541
|
"aria-hidden": "true",
|
|
1540
1542
|
style: { "--dg-gap": `${t}px` }
|
|
1541
|
-
}, e) : null,
|
|
1543
|
+
}, e) : null, ht = (e, t) => {
|
|
1542
1544
|
let n = [], r = 0, i = 0, a = t ? new Map(t.getVisibleCells().map((e) => [e.column.id, e])) : null;
|
|
1543
|
-
for (let t = 0; t <
|
|
1544
|
-
let o =
|
|
1545
|
+
for (let t = 0; t < V.length; t++) {
|
|
1546
|
+
let o = V[t], s = a?.get(o.id), c = o.getSize();
|
|
1545
1547
|
if (s?.getIsCovered() && s.getColSpan() === 0 && s.getRowSpan() !== 0) {
|
|
1546
1548
|
r += c;
|
|
1547
1549
|
continue;
|
|
1548
1550
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
r > i && n.push(
|
|
1551
|
+
if (tt.has(o.id) || s && s.getColSpan() > 1) {
|
|
1552
|
+
r > i && n.push(mt(`gap-${o.id}`, r - i)), n.push(e(o, t));
|
|
1551
1553
|
let a = c;
|
|
1552
|
-
if (s && !s.getIsCovered()) for (let e = 1; e < s.getColSpan(); e++) a +=
|
|
1554
|
+
if (s && !s.getIsCovered()) for (let e = 1; e < s.getColSpan(); e++) a += V[t + e]?.getSize() ?? 0;
|
|
1553
1555
|
i = r + a;
|
|
1554
1556
|
}
|
|
1555
1557
|
r += c;
|
|
1556
1558
|
}
|
|
1557
|
-
return r > i && n.push(
|
|
1558
|
-
},
|
|
1559
|
-
let s = n.getVisibleCells().find((e) => e.column.id === r.id), l =
|
|
1560
|
-
for (let e = 1; e < g; e++) _ +=
|
|
1559
|
+
return r > i && n.push(mt("gap-end", r - i)), n;
|
|
1560
|
+
}, gt = (n, r, i) => {
|
|
1561
|
+
let s = n.getVisibleCells().find((e) => e.column.id === r.id), l = Y.get(n.id) ?? 0, u = z.get(r.id), d = D.row === l && D.column === i, f = u && !n.getIsGrouped() ? e.cellState?.(n.original.data, u) : void 0, m = F?.rowId === n.id && F.columnId === r.id, h = s.getRowSpan(), g = s.getColSpan(), _ = r.getSize();
|
|
1562
|
+
for (let e = 1; e < g; e++) _ += V[i + e]?.getSize() ?? 0;
|
|
1561
1563
|
let v = 0;
|
|
1562
1564
|
for (let e = 0; e < Math.max(1, h); e++) {
|
|
1563
|
-
let t =
|
|
1564
|
-
t && (v +=
|
|
1565
|
+
let t = W[l + e];
|
|
1566
|
+
t && (v += xe.current.get(t.id) ?? y.row);
|
|
1565
1567
|
}
|
|
1566
1568
|
return s.getIsCovered() ? /* @__PURE__ */ k("div", {
|
|
1567
1569
|
className: "dg-complete__covered",
|
|
1568
1570
|
"aria-hidden": "true",
|
|
1569
|
-
style:
|
|
1571
|
+
style: ft(r)
|
|
1570
1572
|
}, r.id) : /* @__PURE__ */ k("div", {
|
|
1571
1573
|
role: "gridcell",
|
|
1572
1574
|
className: "dg-complete__cell",
|
|
@@ -1584,7 +1586,7 @@ function Ut(e) {
|
|
|
1584
1586
|
"aria-busy": f?.pending || void 0,
|
|
1585
1587
|
"aria-describedby": f?.pending || f?.error ? `${c}-${n.id}-${r.id}` : void 0,
|
|
1586
1588
|
tabIndex: d && !m ? 0 : -1,
|
|
1587
|
-
style:
|
|
1589
|
+
style: ft(r, _, v),
|
|
1588
1590
|
onFocus: (e) => {
|
|
1589
1591
|
e.target === e.currentTarget && ie({
|
|
1590
1592
|
row: l,
|
|
@@ -1601,15 +1603,15 @@ function Ut(e) {
|
|
|
1601
1603
|
a("cellSelection") && s.getSelectionExtendHandler()(e);
|
|
1602
1604
|
},
|
|
1603
1605
|
onDoubleClick: () => {
|
|
1604
|
-
u?.editable && e.onCellCommit ?
|
|
1606
|
+
u?.editable && e.onCellCommit ? rt(n, u) : n.getIsGrouped() || e.onRowActivate?.(n.original.data);
|
|
1605
1607
|
},
|
|
1606
1608
|
children: /* @__PURE__ */ k("div", {
|
|
1607
1609
|
className: "dg-complete__value",
|
|
1608
1610
|
"data-row-span": h > 1 ? "" : void 0,
|
|
1609
|
-
children: r.id === $ ? /* @__PURE__ */ A(O, { children: [
|
|
1610
|
-
checked:
|
|
1611
|
-
indeterminate:
|
|
1612
|
-
onChange: () =>
|
|
1611
|
+
children: r.id === $ ? /* @__PURE__ */ A(O, { children: [Se ? /* @__PURE__ */ k(p, {
|
|
1612
|
+
checked: je(n),
|
|
1613
|
+
indeterminate: K(n) || n.getIsSomeSelected(),
|
|
1614
|
+
onChange: () => Pe(n),
|
|
1613
1615
|
"aria-label": `${n.getIsGrouped() ? "그룹" : e.rowLabel ? e.rowLabel(n.original.data) : n.id} 선택`,
|
|
1614
1616
|
"data-dg": "select-row"
|
|
1615
1617
|
}) : null, a("rowPinning") ? /* @__PURE__ */ k(ne, {
|
|
@@ -1628,7 +1630,7 @@ function Ut(e) {
|
|
|
1628
1630
|
})
|
|
1629
1631
|
] }),
|
|
1630
1632
|
children: /* @__PURE__ */ k(t, {
|
|
1631
|
-
icon:
|
|
1633
|
+
icon: we,
|
|
1632
1634
|
size: "sm",
|
|
1633
1635
|
variant: "ghost",
|
|
1634
1636
|
tone: "neutral",
|
|
@@ -1643,17 +1645,17 @@ function Ut(e) {
|
|
|
1643
1645
|
ref: (e) => {
|
|
1644
1646
|
e && e.ownerDocument.activeElement !== e && e.focus();
|
|
1645
1647
|
},
|
|
1646
|
-
onChange: (e) =>
|
|
1648
|
+
onChange: (e) => I((t) => t ? {
|
|
1647
1649
|
...t,
|
|
1648
1650
|
draft: e.target.value
|
|
1649
1651
|
} : null),
|
|
1650
|
-
onBlur: () =>
|
|
1652
|
+
onBlur: () => it(!0),
|
|
1651
1653
|
onKeyDown: (e) => {
|
|
1652
|
-
e.stopPropagation(), !(e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) && (e.key === "Enter" || e.key === "Escape") && (e.preventDefault(),
|
|
1654
|
+
e.stopPropagation(), !(e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229) && (e.key === "Enter" || e.key === "Escape") && (e.preventDefault(), it(e.key === "Enter", !0));
|
|
1653
1655
|
}
|
|
1654
1656
|
}) : /* @__PURE__ */ A(O, { children: [
|
|
1655
|
-
i === +!!
|
|
1656
|
-
icon: n.getIsExpanded() ? me :
|
|
1657
|
+
i === +!!Ce && n.getCanExpand() ? /* @__PURE__ */ k(t, {
|
|
1658
|
+
icon: n.getIsExpanded() ? me : ge,
|
|
1657
1659
|
label: n.getIsExpanded() ? "행 접기" : "행 펼치기",
|
|
1658
1660
|
size: "sm",
|
|
1659
1661
|
variant: "ghost",
|
|
@@ -1678,14 +1680,14 @@ function Ut(e) {
|
|
|
1678
1680
|
] })
|
|
1679
1681
|
})
|
|
1680
1682
|
}, r.id);
|
|
1681
|
-
},
|
|
1682
|
-
let r =
|
|
1683
|
+
}, _t = (e, t, n = 0) => {
|
|
1684
|
+
let r = Y.get(e.id) ?? 0, a = X + r + (He.get(e.id) ?? 0) + 1 + We + qe;
|
|
1683
1685
|
return /* @__PURE__ */ A("div", {
|
|
1684
1686
|
className: "dg-complete__entry",
|
|
1685
1687
|
"data-row-id": e.id,
|
|
1686
1688
|
"data-index": t,
|
|
1687
|
-
"data-virtual": t !== void 0 &&
|
|
1688
|
-
ref: t !== void 0 &&
|
|
1689
|
+
"data-virtual": t !== void 0 && Q ? "" : void 0,
|
|
1690
|
+
ref: t !== void 0 && Q ? Ze.measureElement : void 0,
|
|
1689
1691
|
style: { "--dg-row-offset": `${n}px` },
|
|
1690
1692
|
children: [/* @__PURE__ */ k("div", {
|
|
1691
1693
|
role: "row",
|
|
@@ -1693,13 +1695,13 @@ function Ut(e) {
|
|
|
1693
1695
|
"data-dg": "row",
|
|
1694
1696
|
"data-row-id": e.id,
|
|
1695
1697
|
"aria-rowindex": a,
|
|
1696
|
-
"aria-selected":
|
|
1698
|
+
"aria-selected": Se ? je(e) : void 0,
|
|
1697
1699
|
"aria-expanded": e.getCanExpand() ? e.getIsExpanded() : void 0,
|
|
1698
|
-
"aria-level":
|
|
1699
|
-
"data-selected":
|
|
1700
|
+
"aria-level": Ie ? e.depth + 1 : void 0,
|
|
1701
|
+
"data-selected": je(e) ? "" : void 0,
|
|
1700
1702
|
"data-grouped": e.getIsGrouped() ? "" : void 0,
|
|
1701
|
-
children:
|
|
1702
|
-
}),
|
|
1703
|
+
children: ht((t, n) => gt(e, t, n), e)
|
|
1704
|
+
}), Ve(e) ? /* @__PURE__ */ k("div", {
|
|
1703
1705
|
role: "row",
|
|
1704
1706
|
className: "dg-complete__detail",
|
|
1705
1707
|
"aria-rowindex": a + 1,
|
|
@@ -1707,7 +1709,7 @@ function Ut(e) {
|
|
|
1707
1709
|
"data-dg": "detail",
|
|
1708
1710
|
children: /* @__PURE__ */ k("div", {
|
|
1709
1711
|
role: "gridcell",
|
|
1710
|
-
"aria-colspan":
|
|
1712
|
+
"aria-colspan": V.length,
|
|
1711
1713
|
"aria-colindex": 1,
|
|
1712
1714
|
children: i.renderDetail?.(e.original.data)
|
|
1713
1715
|
})
|
|
@@ -1720,7 +1722,7 @@ function Ut(e) {
|
|
|
1720
1722
|
"data-row-density": e.density ?? "compact",
|
|
1721
1723
|
"data-height": e.height ?? "md",
|
|
1722
1724
|
style: {
|
|
1723
|
-
"--dg-grid-size": `${
|
|
1725
|
+
"--dg-grid-size": `${B.getTotalSize()}px`,
|
|
1724
1726
|
"--dg-head-size": `${y.head}px`,
|
|
1725
1727
|
"--dg-foot-size": `${y.foot}px`
|
|
1726
1728
|
},
|
|
@@ -1732,15 +1734,15 @@ function Ut(e) {
|
|
|
1732
1734
|
children: [
|
|
1733
1735
|
a("search") ? /* @__PURE__ */ k(o, {
|
|
1734
1736
|
size: "sm",
|
|
1735
|
-
iconStart:
|
|
1737
|
+
iconStart: Ee,
|
|
1736
1738
|
value: C.search,
|
|
1737
|
-
onChange: (e) =>
|
|
1739
|
+
onChange: (e) => B.setGlobalFilter(e.target.value),
|
|
1738
1740
|
"aria-label": `${e.label} 검색`,
|
|
1739
1741
|
placeholder: "전체 열 검색",
|
|
1740
1742
|
"data-dg": "search"
|
|
1741
1743
|
}) : null,
|
|
1742
1744
|
/* @__PURE__ */ k(ne, {
|
|
1743
|
-
items:
|
|
1745
|
+
items: B.getAllLeafColumns().filter((e) => e.id !== $).map((e) => /* @__PURE__ */ k(ee, {
|
|
1744
1746
|
checked: e.getIsVisible(),
|
|
1745
1747
|
disabled: !e.getCanHide(),
|
|
1746
1748
|
onCheckedChange: () => e.toggleVisibility(),
|
|
@@ -1750,11 +1752,11 @@ function Ut(e) {
|
|
|
1750
1752
|
size: "sm",
|
|
1751
1753
|
variant: "outline",
|
|
1752
1754
|
tone: "neutral",
|
|
1753
|
-
iconStart:
|
|
1755
|
+
iconStart: ke,
|
|
1754
1756
|
"data-dg": "columns",
|
|
1755
1757
|
children: [
|
|
1756
1758
|
"열 ",
|
|
1757
|
-
|
|
1759
|
+
V.length - +!!Ce,
|
|
1758
1760
|
"/",
|
|
1759
1761
|
e.columns.length
|
|
1760
1762
|
]
|
|
@@ -1763,7 +1765,7 @@ function Ut(e) {
|
|
|
1763
1765
|
a("grouping") && C.grouping.length ? /* @__PURE__ */ k(n, {
|
|
1764
1766
|
size: "sm",
|
|
1765
1767
|
variant: "outline",
|
|
1766
|
-
onClick: () =>
|
|
1768
|
+
onClick: () => B.resetGrouping(!0),
|
|
1767
1769
|
"data-dg": "ungroup",
|
|
1768
1770
|
children: "그룹 모두 해제"
|
|
1769
1771
|
}) : null,
|
|
@@ -1771,20 +1773,20 @@ function Ut(e) {
|
|
|
1771
1773
|
size: "sm",
|
|
1772
1774
|
variant: "ghost",
|
|
1773
1775
|
tone: "neutral",
|
|
1774
|
-
onClick: () =>
|
|
1776
|
+
onClick: () => B.toggleAllRowsExpanded(),
|
|
1775
1777
|
"data-dg": "expand-all",
|
|
1776
|
-
children:
|
|
1778
|
+
children: B.getIsAllRowsExpanded() ? "모두 접기" : "모두 펼치기"
|
|
1777
1779
|
}) : null,
|
|
1778
1780
|
a("cellSelection") ? /* @__PURE__ */ k(n, {
|
|
1779
1781
|
size: "sm",
|
|
1780
1782
|
variant: "outline",
|
|
1781
1783
|
tone: "neutral",
|
|
1782
|
-
disabled: !
|
|
1784
|
+
disabled: !B.getSelectedCellCount(),
|
|
1783
1785
|
onClick: async () => {
|
|
1784
1786
|
try {
|
|
1785
|
-
await navigator.clipboard.writeText(
|
|
1787
|
+
await navigator.clipboard.writeText(st()), _e("선택한 셀을 복사했습니다.");
|
|
1786
1788
|
} catch {
|
|
1787
|
-
|
|
1789
|
+
_e("복사 권한이 없습니다. 셀에서 Ctrl+C를 눌러 복사하세요.");
|
|
1788
1790
|
}
|
|
1789
1791
|
},
|
|
1790
1792
|
"data-dg": "copy",
|
|
@@ -1814,22 +1816,22 @@ function Ut(e) {
|
|
|
1814
1816
|
"data-dg": "scroll",
|
|
1815
1817
|
children: /* @__PURE__ */ A("div", {
|
|
1816
1818
|
ref: f,
|
|
1817
|
-
role:
|
|
1819
|
+
role: Ie ? "treegrid" : "grid",
|
|
1818
1820
|
className: "dg-complete__grid",
|
|
1819
1821
|
"aria-label": e.label,
|
|
1820
|
-
"aria-colcount":
|
|
1821
|
-
"aria-rowcount": s &&
|
|
1822
|
-
"aria-busy":
|
|
1823
|
-
"aria-multiselectable":
|
|
1824
|
-
onKeyDown:
|
|
1822
|
+
"aria-colcount": V.length,
|
|
1823
|
+
"aria-rowcount": s && Z === "rows" && (i.rowCount === void 0 || i.renderDetail) ? -1 : Je,
|
|
1824
|
+
"aria-busy": Z === "loading" || void 0,
|
|
1825
|
+
"aria-multiselectable": Se || a("cellSelection") || void 0,
|
|
1826
|
+
onKeyDown: ct,
|
|
1825
1827
|
onFocusCapture: (e) => {
|
|
1826
|
-
e.target.closest(l) === e.currentTarget && le(e.target.closest("[data-dg=\"row\"]")?.dataset.rowId ?? null);
|
|
1828
|
+
e.target.closest(l) === e.currentTarget && (le(e.target.closest("[data-dg=\"row\"]")?.dataset.rowId ?? null), fe(e.target.closest("[data-column-id]")?.dataset.columnId ?? null));
|
|
1827
1829
|
},
|
|
1828
1830
|
onBlurCapture: (e) => {
|
|
1829
|
-
e.currentTarget.contains(e.relatedTarget) || le(null);
|
|
1831
|
+
e.currentTarget.contains(e.relatedTarget) || (le(null), fe(null));
|
|
1830
1832
|
},
|
|
1831
1833
|
onCopy: (e) => {
|
|
1832
|
-
a("cellSelection") && !e.target.closest("input,textarea") &&
|
|
1834
|
+
a("cellSelection") && !e.target.closest("input,textarea") && B.getSelectedCellCount() && (e.clipboardData.setData("text/plain", st()), e.preventDefault());
|
|
1833
1835
|
},
|
|
1834
1836
|
children: [
|
|
1835
1837
|
/* @__PURE__ */ A("div", {
|
|
@@ -1837,7 +1839,7 @@ function Ut(e) {
|
|
|
1837
1839
|
role: "rowgroup",
|
|
1838
1840
|
className: "dg-complete__head",
|
|
1839
1841
|
children: [
|
|
1840
|
-
|
|
1842
|
+
B.getHeaderGroups().slice(0, -1).map((e, t) => /* @__PURE__ */ k("div", {
|
|
1841
1843
|
role: "row",
|
|
1842
1844
|
className: "dg-complete__row",
|
|
1843
1845
|
"aria-rowindex": t + 1,
|
|
@@ -1852,9 +1854,9 @@ function Ut(e) {
|
|
|
1852
1854
|
/* @__PURE__ */ k("div", {
|
|
1853
1855
|
role: "row",
|
|
1854
1856
|
className: "dg-complete__row",
|
|
1855
|
-
"aria-rowindex":
|
|
1856
|
-
children:
|
|
1857
|
-
let n = z.get(e.id), r = C.sorting.findIndex((t) => t.columnId === e.id), i =
|
|
1857
|
+
"aria-rowindex": Fe,
|
|
1858
|
+
children: ht((e, t) => {
|
|
1859
|
+
let n = z.get(e.id), r = C.sorting.findIndex((t) => t.columnId === e.id), i = B.getFlatHeaders().find((t) => t.column.id === e.id && t.subHeaders.length === 0);
|
|
1858
1860
|
return /* @__PURE__ */ k("div", {
|
|
1859
1861
|
role: "columnheader",
|
|
1860
1862
|
className: "dg-complete__cell dg-complete__header",
|
|
@@ -1862,21 +1864,21 @@ function Ut(e) {
|
|
|
1862
1864
|
"data-pin": e.getIsPinned() || void 0,
|
|
1863
1865
|
"aria-colindex": t + 1,
|
|
1864
1866
|
"aria-sort": e.getCanSort() ? r < 0 ? "none" : r > 0 ? "other" : C.sorting[r].direction === "asc" ? "ascending" : "descending" : void 0,
|
|
1865
|
-
style:
|
|
1867
|
+
style: ft(e),
|
|
1866
1868
|
draggable: a("columnOrdering") && e.id !== $,
|
|
1867
1869
|
onDragStart: (t) => {
|
|
1868
|
-
|
|
1870
|
+
L(e.id), t.dataTransfer.setData("text/plain", e.id);
|
|
1869
1871
|
},
|
|
1870
1872
|
onDragOver: (t) => {
|
|
1871
|
-
|
|
1873
|
+
be && e.id !== $ && t.preventDefault();
|
|
1872
1874
|
},
|
|
1873
1875
|
onDrop: (t) => {
|
|
1874
|
-
t.preventDefault(),
|
|
1876
|
+
t.preventDefault(), be && be !== e.id && e.id !== $ && at(be, e.id), L(null);
|
|
1875
1877
|
},
|
|
1876
|
-
children: e.id === $ ? /* @__PURE__ */ A(O, { children: [
|
|
1878
|
+
children: e.id === $ ? /* @__PURE__ */ A(O, { children: [Se ? /* @__PURE__ */ k(p, {
|
|
1877
1879
|
checked: q,
|
|
1878
|
-
indeterminate: !q &&
|
|
1879
|
-
onChange: () =>
|
|
1880
|
+
indeterminate: !q && J,
|
|
1881
|
+
onChange: () => Ne(Me, q),
|
|
1880
1882
|
"aria-label": "현재 페이지 전체 선택",
|
|
1881
1883
|
"data-dg": "select-all"
|
|
1882
1884
|
}) : null, /* @__PURE__ */ k("span", {
|
|
@@ -1886,13 +1888,15 @@ function Ut(e) {
|
|
|
1886
1888
|
/* @__PURE__ */ A("button", {
|
|
1887
1889
|
type: "button",
|
|
1888
1890
|
className: "dg-complete__sort",
|
|
1889
|
-
disabled: !e.getCanSort(),
|
|
1891
|
+
"aria-disabled": !e.getCanSort() || void 0,
|
|
1890
1892
|
"aria-label": `${n?.header} 정렬${r >= 0 ? `, ${r + 1}순위 ${C.sorting[r].direction === "asc" ? "오름차순" : "내림차순"}` : ""}`,
|
|
1891
|
-
onClick: (t) =>
|
|
1893
|
+
onClick: (t) => {
|
|
1894
|
+
e.getCanSort() && e.toggleSorting(void 0, t.shiftKey && a("multiSort"));
|
|
1895
|
+
},
|
|
1892
1896
|
"data-dg": "sort",
|
|
1893
1897
|
children: [n?.header, r >= 0 ? /* @__PURE__ */ A("span", { children: [C.sorting[r].direction === "asc" ? " ↑" : " ↓", C.sorting.length > 1 ? r + 1 : ""] }) : null]
|
|
1894
1898
|
}),
|
|
1895
|
-
|
|
1899
|
+
pt(e),
|
|
1896
1900
|
a("columnResizing") && i && e.getCanResize() ? /* @__PURE__ */ k("button", {
|
|
1897
1901
|
type: "button",
|
|
1898
1902
|
className: "dg-complete__resize",
|
|
@@ -1906,7 +1910,7 @@ function Ut(e) {
|
|
|
1906
1910
|
onTouchStart: i.getResizeHandler(),
|
|
1907
1911
|
onDoubleClick: () => e.resetSize(),
|
|
1908
1912
|
onKeyDown: (t) => {
|
|
1909
|
-
(t.key === "ArrowLeft" || t.key === "ArrowRight") && (t.preventDefault(), t.stopPropagation(),
|
|
1913
|
+
(t.key === "ArrowLeft" || t.key === "ArrowRight") && (t.preventDefault(), t.stopPropagation(), B.setColumnSizing((n) => ({
|
|
1910
1914
|
...n,
|
|
1911
1915
|
[e.id]: Math.max(e.columnDef.minSize ?? 72, Math.min(e.columnDef.maxSize ?? 1200, e.getSize() + (t.key === "ArrowRight" ? 16 : -16)))
|
|
1912
1916
|
})));
|
|
@@ -1922,7 +1926,7 @@ function Ut(e) {
|
|
|
1922
1926
|
className: "dg-complete__row dg-complete__filters",
|
|
1923
1927
|
"aria-label": "열 필터",
|
|
1924
1928
|
"aria-rowindex": X,
|
|
1925
|
-
children:
|
|
1929
|
+
children: ht((e, t) => {
|
|
1926
1930
|
let n = z.get(e.id), r = e.getFilterValue(), c = i.facets?.[e.id]?.map((e) => [e.value, e.count]) ?? (a("faceting") && !s && e.getCanFilter() ? [...e.getFacetedUniqueValues().entries()] : []), l = n?.filterOptions ?? i.facets?.[e.id]?.map((e) => ({
|
|
1927
1931
|
value: e.value,
|
|
1928
1932
|
label: `${e.label ?? e.value}${e.count === void 0 ? "" : ` (${e.count})`}`
|
|
@@ -1935,7 +1939,7 @@ function Ut(e) {
|
|
|
1935
1939
|
"aria-colindex": t + 1,
|
|
1936
1940
|
className: "dg-complete__cell",
|
|
1937
1941
|
"data-pin": e.getIsPinned() || void 0,
|
|
1938
|
-
style:
|
|
1942
|
+
style: ft(e),
|
|
1939
1943
|
children: !e.getCanFilter() || !n ? null : n.filter === "select" ? /* @__PURE__ */ A(d, {
|
|
1940
1944
|
size: "sm",
|
|
1941
1945
|
value: String(r ?? ""),
|
|
@@ -1978,29 +1982,29 @@ function Ut(e) {
|
|
|
1978
1982
|
}) : null
|
|
1979
1983
|
]
|
|
1980
1984
|
}),
|
|
1981
|
-
|
|
1985
|
+
Z === "rows" ? /* @__PURE__ */ A(O, { children: [
|
|
1982
1986
|
/* @__PURE__ */ k("div", {
|
|
1983
1987
|
ref: g,
|
|
1984
|
-
role:
|
|
1988
|
+
role: De.length ? "rowgroup" : void 0,
|
|
1985
1989
|
className: "dg-complete__pinned-top",
|
|
1986
1990
|
"data-dg": "pinned-top",
|
|
1987
|
-
children:
|
|
1991
|
+
children: De.map((e) => _t(e))
|
|
1988
1992
|
}),
|
|
1989
1993
|
/* @__PURE__ */ k("div", {
|
|
1990
1994
|
role: "rowgroup",
|
|
1991
1995
|
className: "dg-complete__body",
|
|
1992
|
-
"data-virtual":
|
|
1993
|
-
style: { "--dg-total": `${
|
|
1994
|
-
children:
|
|
1996
|
+
"data-virtual": Q ? "" : void 0,
|
|
1997
|
+
style: { "--dg-total": `${Q ? Ze.getTotalSize() : 0}px` },
|
|
1998
|
+
children: nt.map((e) => _t(e.row, e.index, e.offset))
|
|
1995
1999
|
}),
|
|
1996
2000
|
/* @__PURE__ */ k("div", {
|
|
1997
2001
|
ref: _,
|
|
1998
|
-
role:
|
|
2002
|
+
role: Oe.length ? "rowgroup" : void 0,
|
|
1999
2003
|
className: "dg-complete__pinned-bottom",
|
|
2000
2004
|
"data-dg": "pinned-bottom",
|
|
2001
|
-
children:
|
|
2005
|
+
children: Oe.map((e) => _t(e))
|
|
2002
2006
|
})
|
|
2003
|
-
] }) :
|
|
2007
|
+
] }) : Z === "loading" ? /* @__PURE__ */ k("div", {
|
|
2004
2008
|
role: "rowgroup",
|
|
2005
2009
|
"aria-busy": "true",
|
|
2006
2010
|
children: Array.from({ length: e.loadingRows ?? 5 }, (e, t) => /* @__PURE__ */ k("div", {
|
|
@@ -2008,11 +2012,11 @@ function Ut(e) {
|
|
|
2008
2012
|
className: "dg-complete__row",
|
|
2009
2013
|
"aria-rowindex": X + t + 1,
|
|
2010
2014
|
"data-dg": "waiting-row",
|
|
2011
|
-
children:
|
|
2015
|
+
children: ht((e, t) => /* @__PURE__ */ k("div", {
|
|
2012
2016
|
role: "gridcell",
|
|
2013
2017
|
"aria-colindex": t + 1,
|
|
2014
2018
|
className: "dg-complete__cell",
|
|
2015
|
-
style:
|
|
2019
|
+
style: ft(e),
|
|
2016
2020
|
children: /* @__PURE__ */ k(m, {
|
|
2017
2021
|
shape: "text",
|
|
2018
2022
|
lines: 1
|
|
@@ -2020,7 +2024,7 @@ function Ut(e) {
|
|
|
2020
2024
|
}, e.id))
|
|
2021
2025
|
}, t))
|
|
2022
2026
|
}) : null,
|
|
2023
|
-
|
|
2027
|
+
ze ? /* @__PURE__ */ k("div", {
|
|
2024
2028
|
ref: v,
|
|
2025
2029
|
role: "rowgroup",
|
|
2026
2030
|
className: "dg-complete__foot",
|
|
@@ -2028,13 +2032,13 @@ function Ut(e) {
|
|
|
2028
2032
|
role: "row",
|
|
2029
2033
|
className: "dg-complete__row",
|
|
2030
2034
|
"data-dg": "totals",
|
|
2031
|
-
"aria-rowindex": s && i.renderDetail ? void 0 :
|
|
2032
|
-
children:
|
|
2035
|
+
"aria-rowindex": s && i.renderDetail ? void 0 : Je,
|
|
2036
|
+
children: ht((t, n) => /* @__PURE__ */ k("div", {
|
|
2033
2037
|
role: "gridcell",
|
|
2034
2038
|
"aria-colindex": n + 1,
|
|
2035
2039
|
className: "dg-complete__cell",
|
|
2036
2040
|
"data-pin": t.getIsPinned() || void 0,
|
|
2037
|
-
style:
|
|
2041
|
+
style: ft(t),
|
|
2038
2042
|
children: t.id === $ ? "집계" : i.totals?.[t.id] ?? (s ? z.get(t.id)?.footer?.(e.rows) : z.get(t.id)?.aggregation ? Vt(t.getAggregationValue()) : z.get(t.id)?.footer?.(e.rows))
|
|
2039
2043
|
}, t.id))
|
|
2040
2044
|
})
|
|
@@ -2042,12 +2046,12 @@ function Ut(e) {
|
|
|
2042
2046
|
]
|
|
2043
2047
|
})
|
|
2044
2048
|
}),
|
|
2045
|
-
|
|
2049
|
+
Z === "error" || Re ? /* @__PURE__ */ A("p", {
|
|
2046
2050
|
role: "alert",
|
|
2047
2051
|
className: "data-grid__state",
|
|
2048
2052
|
"data-dg": "error",
|
|
2049
|
-
children: [e.error,
|
|
2050
|
-
}) :
|
|
2053
|
+
children: [e.error, Re ? /* @__PURE__ */ A(O, { children: [" 이전 결과를 표시합니다.", e.lastUpdated ? /* @__PURE__ */ A(O, { children: [" 마지막 갱신: ", e.lastUpdated] }) : null] }) : null]
|
|
2054
|
+
}) : Z === "empty" ? /* @__PURE__ */ k("p", {
|
|
2051
2055
|
className: "data-grid__empty",
|
|
2052
2056
|
"data-dg": "empty",
|
|
2053
2057
|
children: e.empty ?? "행이 없습니다."
|
|
@@ -2057,15 +2061,15 @@ function Ut(e) {
|
|
|
2057
2061
|
children: [/* @__PURE__ */ k(re, {
|
|
2058
2062
|
label: `${e.label} 페이지`,
|
|
2059
2063
|
page: C.pagination.pageIndex + 1,
|
|
2060
|
-
pageCount: s && i.rowCount === void 0 ? C.pagination.pageIndex + 1 : Math.max(1,
|
|
2061
|
-
onPageChange: (e) =>
|
|
2064
|
+
pageCount: s && i.rowCount === void 0 ? C.pagination.pageIndex + 1 : Math.max(1, B.getPageCount()),
|
|
2065
|
+
onPageChange: (e) => B.setPageIndex(e - 1),
|
|
2062
2066
|
responsive: !0,
|
|
2063
2067
|
size: "sm"
|
|
2064
2068
|
}), /* @__PURE__ */ k(d, {
|
|
2065
2069
|
className: "dg-complete__page-size",
|
|
2066
2070
|
size: "sm",
|
|
2067
2071
|
value: String(C.pagination.pageSize),
|
|
2068
|
-
onChange: (e) =>
|
|
2072
|
+
onChange: (e) => B.setPageSize(Number(e.target.value)),
|
|
2069
2073
|
"aria-label": "페이지당 행 수",
|
|
2070
2074
|
"data-dg": "page-size",
|
|
2071
2075
|
children: (i.pageSizes ?? [
|
|
@@ -2084,16 +2088,16 @@ function Ut(e) {
|
|
|
2084
2088
|
className: "dg-complete__summary",
|
|
2085
2089
|
"data-dg": "status",
|
|
2086
2090
|
children: [
|
|
2087
|
-
e.meta ?? `${s ? i.rowCount ?? e.rows.length :
|
|
2088
|
-
|
|
2089
|
-
a("cellSelection") ? ` · 선택 ${
|
|
2090
|
-
|
|
2091
|
+
e.meta ?? `${s ? i.rowCount ?? e.rows.length : B.getRowCount()}행`,
|
|
2092
|
+
Se ? ` · 선택 ${C.selectedKeys.length}행` : "",
|
|
2093
|
+
a("cellSelection") ? ` · 선택 ${B.getSelectedCellCount()}셀` : "",
|
|
2094
|
+
he ? ` · ${he}` : "",
|
|
2091
2095
|
s && i.rowCount === void 0 && a("pagination") ? " · 전체 행 수가 필요합니다." : ""
|
|
2092
2096
|
]
|
|
2093
2097
|
}),
|
|
2094
2098
|
e.cellState ? /* @__PURE__ */ k("ul", {
|
|
2095
2099
|
className: "data-grid__save-status",
|
|
2096
|
-
children:
|
|
2100
|
+
children: B.getCoreRowModel().flatRows.map((e) => e.original).flatMap((t) => e.columns.flatMap((r) => {
|
|
2097
2101
|
let i = e.cellState?.(t.data, r);
|
|
2098
2102
|
return !i?.pending && !i?.error ? [] : [/* @__PURE__ */ A("li", {
|
|
2099
2103
|
id: `${c}-${t.key}-${r.id}`,
|
|
@@ -2110,7 +2114,7 @@ function Ut(e) {
|
|
|
2110
2114
|
size: "sm",
|
|
2111
2115
|
variant: "outline",
|
|
2112
2116
|
onClick: () => {
|
|
2113
|
-
|
|
2117
|
+
B.getColumn(r.id)?.toggleVisibility(!0), B.setExpanded(!0), ye({
|
|
2114
2118
|
rowId: t.key,
|
|
2115
2119
|
columnId: r.id
|
|
2116
2120
|
});
|
|
@@ -2133,196 +2137,196 @@ var Wt = ct({
|
|
|
2133
2137
|
function Gt(e) {
|
|
2134
2138
|
return e.features ? /* @__PURE__ */ k(Ut, { ...e }) : /* @__PURE__ */ k(Kt, { ...e });
|
|
2135
2139
|
}
|
|
2136
|
-
function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s, density: c = "compact", height: l = "md", virtualize: u = !0, onRowActivate: d, empty: f = "행이 없습니다.", loading: h, loadingRows: g = 5, error: _, retainRowsOnError: v = !1, lastUpdated: y, selectedKeys: b, onSelectedChange: x, rowLabel: S, sort: C, onSortChange: w, hiddenColumns: E, onHiddenColumnsChange: D, onCellCommit: re, cellState: ae, meta: se, className: le, ...
|
|
2137
|
-
let
|
|
2140
|
+
function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s, density: c = "compact", height: l = "md", virtualize: u = !0, onRowActivate: d, empty: f = "행이 없습니다.", loading: h, loadingRows: g = 5, error: _, retainRowsOnError: v = !1, lastUpdated: y, selectedKeys: b, onSelectedChange: x, rowLabel: S, sort: C, onSortChange: w, hiddenColumns: E, onHiddenColumnsChange: D, onCellCommit: re, cellState: ae, meta: se, className: le, ...ue }) {
|
|
2141
|
+
let fe = N(null), F = N(null), I = N(null), pe = N(null), [he, ge] = P({
|
|
2138
2142
|
head: 0,
|
|
2139
2143
|
foot: 0,
|
|
2140
2144
|
row: 32
|
|
2141
|
-
}), [
|
|
2145
|
+
}), [_e, ve] = P(null), ye = M(), [L, xe] = P({
|
|
2142
2146
|
row: 0,
|
|
2143
2147
|
column: 0
|
|
2144
|
-
}), [
|
|
2148
|
+
}), [R, z] = P(null), [Se, Ce] = P(""), we = N(null), Te = N(!1), B = !!x, V = oe(() => new Set(b ?? []), [b]), Ee = oe(() => new Set(E ?? []), [E]), H = oe(() => e.map((e) => ({
|
|
2145
2149
|
data: e,
|
|
2146
2150
|
key: a(e)
|
|
2147
|
-
})), [e, a]),
|
|
2151
|
+
})), [e, a]), De = oe(() => r.map((e) => ({
|
|
2148
2152
|
id: e.id,
|
|
2149
2153
|
accessorFn: (t) => e.value?.(t.data),
|
|
2150
2154
|
enableHiding: e.hideable !== !1,
|
|
2151
2155
|
enableSorting: !!e.sortable
|
|
2152
|
-
})), [r]),
|
|
2156
|
+
})), [r]), Oe = oe(() => Object.fromEntries([...Ee].map((e) => [e, !1])), [Ee]), U = oe(() => Object.fromEntries([...V].map((e) => [e, !0])), [V]), W = oe(() => C ? [{
|
|
2153
2157
|
id: C.columnId,
|
|
2154
2158
|
desc: C.direction === "desc"
|
|
2155
|
-
}] : [], [C]),
|
|
2159
|
+
}] : [], [C]), Ae = lt({
|
|
2156
2160
|
features: Wt,
|
|
2157
|
-
data:
|
|
2158
|
-
columns:
|
|
2161
|
+
data: H,
|
|
2162
|
+
columns: De,
|
|
2159
2163
|
getRowId: (e) => e.key,
|
|
2160
2164
|
manualSorting: !0,
|
|
2161
2165
|
state: {
|
|
2162
|
-
columnVisibility:
|
|
2163
|
-
rowSelection:
|
|
2164
|
-
sorting:
|
|
2166
|
+
columnVisibility: Oe,
|
|
2167
|
+
rowSelection: U,
|
|
2168
|
+
sorting: W
|
|
2165
2169
|
},
|
|
2166
2170
|
onColumnVisibilityChange: (e) => {
|
|
2167
|
-
let t = et(e,
|
|
2171
|
+
let t = et(e, Oe);
|
|
2168
2172
|
D?.(Object.keys(t).filter((e) => t[e] === !1));
|
|
2169
2173
|
},
|
|
2170
|
-
onRowSelectionChange: (e) => x?.(Object.keys(et(e,
|
|
2174
|
+
onRowSelectionChange: (e) => x?.(Object.keys(et(e, U))),
|
|
2171
2175
|
onSortingChange: (e) => {
|
|
2172
|
-
let t = et(e,
|
|
2176
|
+
let t = et(e, W)[0];
|
|
2173
2177
|
w?.(t ? {
|
|
2174
2178
|
columnId: t.id,
|
|
2175
2179
|
direction: t.desc ? "desc" : "asc"
|
|
2176
2180
|
} : null);
|
|
2177
2181
|
}
|
|
2178
|
-
}),
|
|
2182
|
+
}), G = Ae.getRowModel().rows, je = new Map(r.map((e) => [e.id, e])), K = Ae.getVisibleLeafColumns().map((e) => ({
|
|
2179
2183
|
id: e.id,
|
|
2180
2184
|
kind: "data",
|
|
2181
|
-
column:
|
|
2185
|
+
column: je.get(e.id)
|
|
2182
2186
|
}));
|
|
2183
|
-
|
|
2187
|
+
B && K.unshift({
|
|
2184
2188
|
id: "__select",
|
|
2185
2189
|
kind: "select"
|
|
2186
2190
|
});
|
|
2187
|
-
let
|
|
2191
|
+
let Me = r.some((e) => e.footer), q = !!_ && v && e.length > 0, J = q ? "rows" : Nt(!!_, !!h, e.length), Ne = Pt(J, e.length, g), Pe = R ? G.findIndex((e) => e.id === R.key) : -1;
|
|
2188
2192
|
j(() => {
|
|
2189
|
-
|
|
2193
|
+
R && (J !== "rows" || Pe < 0 || Ee.has(R.columnId) || !r.some((e) => e.id === R.columnId)) && z(null);
|
|
2190
2194
|
}, [
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2195
|
+
R,
|
|
2196
|
+
Pe,
|
|
2197
|
+
Ee,
|
|
2194
2198
|
r,
|
|
2195
|
-
|
|
2199
|
+
J
|
|
2196
2200
|
]);
|
|
2197
|
-
let
|
|
2198
|
-
count:
|
|
2199
|
-
getScrollElement: () =>
|
|
2200
|
-
getItemKey: (e) =>
|
|
2201
|
-
estimateSize: () =>
|
|
2202
|
-
enabled:
|
|
2201
|
+
let Y = u && J === "rows", Fe = dt({
|
|
2202
|
+
count: G.length,
|
|
2203
|
+
getScrollElement: () => F.current,
|
|
2204
|
+
getItemKey: (e) => G[e].id,
|
|
2205
|
+
estimateSize: () => he.row,
|
|
2206
|
+
enabled: Y,
|
|
2203
2207
|
overscan: 5,
|
|
2204
|
-
scrollMargin:
|
|
2205
|
-
scrollPaddingStart:
|
|
2206
|
-
scrollPaddingEnd:
|
|
2208
|
+
scrollMargin: he.head,
|
|
2209
|
+
scrollPaddingStart: he.head,
|
|
2210
|
+
scrollPaddingEnd: he.foot,
|
|
2207
2211
|
rangeExtractor: (e) => [.../* @__PURE__ */ new Set([
|
|
2208
2212
|
...ut(e),
|
|
2209
|
-
Math.min(
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
])].filter((e) => e >= 0 && e <
|
|
2213
|
+
Math.min(L.row, G.length - 1),
|
|
2214
|
+
Pe,
|
|
2215
|
+
_e ?? -1
|
|
2216
|
+
])].filter((e) => e >= 0 && e < G.length).sort((e, t) => e - t)
|
|
2213
2217
|
});
|
|
2214
2218
|
j(() => {
|
|
2215
2219
|
let e = () => {
|
|
2216
|
-
let e =
|
|
2220
|
+
let e = fe.current?.querySelector("[data-part=\"row\"]"), t = {
|
|
2217
2221
|
head: I.current?.getBoundingClientRect().height ?? 0,
|
|
2218
2222
|
foot: pe.current?.getBoundingClientRect().height ?? 0,
|
|
2219
2223
|
row: e && parseFloat(getComputedStyle(e).minBlockSize) || 32
|
|
2220
2224
|
};
|
|
2221
|
-
|
|
2225
|
+
ge((e) => e.head === t.head && e.foot === t.foot && e.row === t.row ? e : t), Fe.measure();
|
|
2222
2226
|
};
|
|
2223
2227
|
e();
|
|
2224
2228
|
let t = new ResizeObserver(e);
|
|
2225
2229
|
return I.current && t.observe(I.current), pe.current && t.observe(pe.current), () => t.disconnect();
|
|
2226
2230
|
}, [
|
|
2227
2231
|
c,
|
|
2228
|
-
|
|
2232
|
+
K.length,
|
|
2229
2233
|
u,
|
|
2230
|
-
|
|
2231
|
-
|
|
2234
|
+
J,
|
|
2235
|
+
Fe
|
|
2232
2236
|
]);
|
|
2233
|
-
let
|
|
2234
|
-
modelRow:
|
|
2237
|
+
let Ie = Y ? Fe.getVirtualItems().map((e) => ({
|
|
2238
|
+
modelRow: G[e.index],
|
|
2235
2239
|
index: e.index,
|
|
2236
|
-
start: e.start -
|
|
2237
|
-
})) :
|
|
2240
|
+
start: e.start - he.head
|
|
2241
|
+
})) : G.map((e, t) => ({
|
|
2238
2242
|
modelRow: e,
|
|
2239
2243
|
index: t,
|
|
2240
2244
|
start: 0
|
|
2241
2245
|
}));
|
|
2242
2246
|
j(() => {
|
|
2243
|
-
|
|
2247
|
+
Te.current && Y && Fe.scrollToIndex(L.row, { align: "auto" }), Te.current = !1;
|
|
2244
2248
|
}, [
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
+
L.row,
|
|
2250
|
+
L.column,
|
|
2251
|
+
Y,
|
|
2252
|
+
Fe
|
|
2249
2253
|
]);
|
|
2250
|
-
let
|
|
2251
|
-
|
|
2254
|
+
let X = ie((t, n, r) => {
|
|
2255
|
+
we.current = !0, Te.current = !0, xe((i) => Mt(i, {
|
|
2252
2256
|
rows: e.length,
|
|
2253
|
-
columns:
|
|
2257
|
+
columns: K.length
|
|
2254
2258
|
}, t, n, r));
|
|
2255
|
-
}, [e.length,
|
|
2259
|
+
}, [e.length, K.length]);
|
|
2256
2260
|
j(() => {
|
|
2257
|
-
|
|
2261
|
+
xe((t) => {
|
|
2258
2262
|
let n = jt(t, {
|
|
2259
2263
|
rows: e.length,
|
|
2260
|
-
columns:
|
|
2264
|
+
columns: K.length
|
|
2261
2265
|
});
|
|
2262
2266
|
return n.row === t.row && n.column === t.column ? t : n;
|
|
2263
2267
|
});
|
|
2264
|
-
}, [e.length,
|
|
2265
|
-
let
|
|
2268
|
+
}, [e.length, K.length]);
|
|
2269
|
+
let Le = (e) => Ae.getRow(a(e)).toggleSelected(), Re = e.length > 0 && e.every((e) => V.has(a(e))), Z = e.some((e) => V.has(a(e))), ze = () => Ae.toggleAllRowsSelected(!Re), Q = (e, t) => {
|
|
2266
2270
|
if (!t.editable || !re) return;
|
|
2267
2271
|
let n = ae?.(e, t);
|
|
2268
|
-
n?.pending || (
|
|
2272
|
+
n?.pending || (Ce(n?.draft ?? t.value?.(e) ?? ""), z({
|
|
2269
2273
|
key: a(e),
|
|
2270
2274
|
columnId: t.id
|
|
2271
2275
|
}));
|
|
2272
2276
|
}, Be = (e, t, n, r = !1) => {
|
|
2273
|
-
|
|
2277
|
+
we.current = r, e && re && re(t, n.id, Se), z(null);
|
|
2274
2278
|
}, Ve = (e, t) => {
|
|
2275
|
-
|
|
2279
|
+
Ae.setSorting(t ? [{
|
|
2276
2280
|
id: e.id,
|
|
2277
2281
|
desc: t === "desc"
|
|
2278
2282
|
}] : []);
|
|
2279
|
-
}, He = (e) =>
|
|
2283
|
+
}, He = (e) => Ae.getColumn(e)?.toggleVisibility(), Ue = (t) => {
|
|
2280
2284
|
let n = t.target;
|
|
2281
|
-
if (t.defaultPrevented || !(n instanceof HTMLElement) || !n.matches(".data-grid__cell[role=\"gridcell\"]") || n.closest("[role=\"grid\"]") !== t.currentTarget ||
|
|
2285
|
+
if (t.defaultPrevented || !(n instanceof HTMLElement) || !n.matches(".data-grid__cell[role=\"gridcell\"]") || n.closest("[role=\"grid\"]") !== t.currentTarget || R) return;
|
|
2282
2286
|
let r = {
|
|
2283
|
-
ArrowDown: () =>
|
|
2284
|
-
ArrowUp: () =>
|
|
2285
|
-
ArrowRight: () =>
|
|
2286
|
-
ArrowLeft: () =>
|
|
2287
|
-
PageDown: () =>
|
|
2288
|
-
PageUp: () =>
|
|
2289
|
-
Home: () =>
|
|
2287
|
+
ArrowDown: () => X(1, 0),
|
|
2288
|
+
ArrowUp: () => X(-1, 0),
|
|
2289
|
+
ArrowRight: () => X(0, 1),
|
|
2290
|
+
ArrowLeft: () => X(0, -1),
|
|
2291
|
+
PageDown: () => X(10, 0),
|
|
2292
|
+
PageUp: () => X(-10, 0),
|
|
2293
|
+
Home: () => X(0, 0, t.ctrlKey || t.metaKey ? {
|
|
2290
2294
|
row: 0,
|
|
2291
2295
|
column: 0
|
|
2292
2296
|
} : { column: 0 }),
|
|
2293
|
-
End: () =>
|
|
2297
|
+
End: () => X(0, 0, t.ctrlKey || t.metaKey ? {
|
|
2294
2298
|
row: e.length - 1,
|
|
2295
|
-
column:
|
|
2296
|
-
} : { column:
|
|
2299
|
+
column: K.length - 1
|
|
2300
|
+
} : { column: K.length - 1 })
|
|
2297
2301
|
}[t.key];
|
|
2298
2302
|
if (r) {
|
|
2299
2303
|
t.preventDefault(), r();
|
|
2300
2304
|
return;
|
|
2301
2305
|
}
|
|
2302
|
-
let i = e[
|
|
2306
|
+
let i = e[L.row], a = K[L.column];
|
|
2303
2307
|
if (!(!i || !a)) {
|
|
2304
2308
|
if (a.kind === "select" && (t.key === "Enter" || t.key === " ")) {
|
|
2305
|
-
t.preventDefault(),
|
|
2309
|
+
t.preventDefault(), Le(i);
|
|
2306
2310
|
return;
|
|
2307
2311
|
}
|
|
2308
2312
|
if (a.kind === "data" && a.column.editable && re && t.key === "Enter") {
|
|
2309
|
-
t.preventDefault(),
|
|
2313
|
+
t.preventDefault(), Q(i, a.column);
|
|
2310
2314
|
return;
|
|
2311
2315
|
}
|
|
2312
2316
|
(t.key === "Enter" || t.key === " ") && d && (t.preventDefault(), d(i));
|
|
2313
2317
|
}
|
|
2314
2318
|
}, We = ie((e) => {
|
|
2315
2319
|
if (!e) return;
|
|
2316
|
-
let t =
|
|
2317
|
-
|
|
2320
|
+
let t = we.current ?? fe.current?.contains(document.activeElement);
|
|
2321
|
+
we.current = null, t && (e.focus({ preventScroll: !0 }), e.scrollIntoView({
|
|
2318
2322
|
block: "nearest",
|
|
2319
2323
|
inline: "nearest"
|
|
2320
2324
|
}));
|
|
2321
2325
|
}, []), Ge = (e) => e.kind === "select" ? /* @__PURE__ */ k(p, {
|
|
2322
|
-
checked:
|
|
2323
|
-
indeterminate: !
|
|
2324
|
-
onChange:
|
|
2325
|
-
"aria-label":
|
|
2326
|
+
checked: Re,
|
|
2327
|
+
indeterminate: !Re && Z,
|
|
2328
|
+
onChange: ze,
|
|
2329
|
+
"aria-label": Re ? "전부 고르기 해제" : "전부 고르기",
|
|
2326
2330
|
"data-part": "select-all"
|
|
2327
2331
|
}) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", {
|
|
2328
2332
|
className: "data-grid__header-label",
|
|
@@ -2331,7 +2335,7 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2331
2335
|
items: /* @__PURE__ */ A(O, { children: [
|
|
2332
2336
|
e.column.sortable && w ? /* @__PURE__ */ A(O, { children: [
|
|
2333
2337
|
/* @__PURE__ */ k(T, {
|
|
2334
|
-
icon:
|
|
2338
|
+
icon: de,
|
|
2335
2339
|
onSelect: () => Ve(e.column, "asc"),
|
|
2336
2340
|
children: "오름차순"
|
|
2337
2341
|
}),
|
|
@@ -2347,7 +2351,7 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2347
2351
|
] }) : null,
|
|
2348
2352
|
e.column.sortable && w && e.column.hideable !== !1 && D ? /* @__PURE__ */ k(te, {}) : null,
|
|
2349
2353
|
e.column.hideable !== !1 && D ? /* @__PURE__ */ k(T, {
|
|
2350
|
-
icon:
|
|
2354
|
+
icon: be,
|
|
2351
2355
|
onSelect: () => He(e.column.id),
|
|
2352
2356
|
children: "이 열 숨기기"
|
|
2353
2357
|
}) : null
|
|
@@ -2362,7 +2366,7 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2362
2366
|
})
|
|
2363
2367
|
}) : null] });
|
|
2364
2368
|
return /* @__PURE__ */ A("div", {
|
|
2365
|
-
...
|
|
2369
|
+
...ue,
|
|
2366
2370
|
className: `data-grid ${le ?? ""}`.trim(),
|
|
2367
2371
|
"data-row-density": c,
|
|
2368
2372
|
"data-height": l,
|
|
@@ -2372,7 +2376,7 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2372
2376
|
className: "data-grid__bar",
|
|
2373
2377
|
children: /* @__PURE__ */ k(ne, {
|
|
2374
2378
|
items: r.map((e) => /* @__PURE__ */ k(ee, {
|
|
2375
|
-
checked: !
|
|
2379
|
+
checked: !Ee.has(e.id),
|
|
2376
2380
|
onCheckedChange: () => He(e.id),
|
|
2377
2381
|
disabled: e.hideable === !1,
|
|
2378
2382
|
children: e.header
|
|
@@ -2381,11 +2385,11 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2381
2385
|
variant: "outline",
|
|
2382
2386
|
tone: "neutral",
|
|
2383
2387
|
size: "sm",
|
|
2384
|
-
iconStart:
|
|
2388
|
+
iconStart: ke,
|
|
2385
2389
|
"data-part": "columns",
|
|
2386
2390
|
children: [
|
|
2387
2391
|
"열 ",
|
|
2388
|
-
r.length -
|
|
2392
|
+
r.length - Ee.size,
|
|
2389
2393
|
"/",
|
|
2390
2394
|
r.length
|
|
2391
2395
|
]
|
|
@@ -2393,26 +2397,26 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2393
2397
|
})
|
|
2394
2398
|
}) : null,
|
|
2395
2399
|
/* @__PURE__ */ k("div", {
|
|
2396
|
-
ref:
|
|
2400
|
+
ref: F,
|
|
2397
2401
|
className: "data-grid__scroll",
|
|
2398
2402
|
"data-part": "scroll",
|
|
2399
2403
|
children: /* @__PURE__ */ A("div", {
|
|
2400
|
-
ref:
|
|
2404
|
+
ref: fe,
|
|
2401
2405
|
className: "data-grid__grid",
|
|
2402
2406
|
role: "grid",
|
|
2403
2407
|
"aria-label": o,
|
|
2404
|
-
"aria-describedby":
|
|
2405
|
-
"aria-rowcount":
|
|
2406
|
-
"aria-colcount":
|
|
2407
|
-
"aria-multiselectable":
|
|
2408
|
+
"aria-describedby": q ? `${ye}-refresh` : void 0,
|
|
2409
|
+
"aria-rowcount": Ne + 1 + +!!Me,
|
|
2410
|
+
"aria-colcount": K.length,
|
|
2411
|
+
"aria-multiselectable": B || void 0,
|
|
2408
2412
|
onKeyDown: Ue,
|
|
2409
2413
|
onFocusCapture: (e) => {
|
|
2410
2414
|
if (e.target.closest("[role=\"grid\"]") !== e.currentTarget) return;
|
|
2411
2415
|
let t = e.target.closest("[data-part=\"row\"]");
|
|
2412
|
-
|
|
2416
|
+
ve(t ? Number(t.dataset.index) : null);
|
|
2413
2417
|
},
|
|
2414
2418
|
onBlurCapture: (e) => {
|
|
2415
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
2419
|
+
e.currentTarget.contains(e.relatedTarget) || ve(null);
|
|
2416
2420
|
},
|
|
2417
2421
|
children: [
|
|
2418
2422
|
/* @__PURE__ */ k("div", {
|
|
@@ -2423,7 +2427,7 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2423
2427
|
role: "row",
|
|
2424
2428
|
className: "data-grid__row",
|
|
2425
2429
|
"aria-rowindex": 1,
|
|
2426
|
-
children:
|
|
2430
|
+
children: K.map((e, t) => /* @__PURE__ */ k("div", {
|
|
2427
2431
|
role: "columnheader",
|
|
2428
2432
|
className: "data-grid__cell",
|
|
2429
2433
|
"aria-colindex": t + 1,
|
|
@@ -2439,15 +2443,15 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2439
2443
|
/* @__PURE__ */ A("div", {
|
|
2440
2444
|
role: "rowgroup",
|
|
2441
2445
|
className: "data-grid__body",
|
|
2442
|
-
"aria-busy":
|
|
2443
|
-
"data-virtualized":
|
|
2444
|
-
style: { "--data-grid-total": `${
|
|
2445
|
-
children: [
|
|
2446
|
+
"aria-busy": J === "loading" || void 0,
|
|
2447
|
+
"data-virtualized": Y ? "" : void 0,
|
|
2448
|
+
style: { "--data-grid-total": `${Y ? Fe.getTotalSize() : 0}px` },
|
|
2449
|
+
children: [J === "loading" ? Array.from({ length: g }, (e, t) => /* @__PURE__ */ k("div", {
|
|
2446
2450
|
role: "row",
|
|
2447
2451
|
className: "data-grid__row",
|
|
2448
2452
|
"aria-rowindex": t + 2,
|
|
2449
2453
|
"data-part": "waiting-row",
|
|
2450
|
-
children:
|
|
2454
|
+
children: K.map((e, t) => /* @__PURE__ */ k("div", {
|
|
2451
2455
|
role: "gridcell",
|
|
2452
2456
|
className: "data-grid__cell",
|
|
2453
2457
|
"aria-colindex": t + 1,
|
|
@@ -2458,27 +2462,27 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2458
2462
|
lines: 1
|
|
2459
2463
|
})
|
|
2460
2464
|
}, e.id))
|
|
2461
|
-
}, `waiting-${t}`)) : null,
|
|
2465
|
+
}, `waiting-${t}`)) : null, J === "rows" ? Ie.map(({ modelRow: e, index: t, start: n }) => {
|
|
2462
2466
|
let r = e.original.data, a = e.id, o = e.getIsSelected();
|
|
2463
2467
|
return /* @__PURE__ */ k("div", {
|
|
2464
2468
|
role: "row",
|
|
2465
2469
|
className: "data-grid__row",
|
|
2466
2470
|
"aria-rowindex": t + 2,
|
|
2467
|
-
"aria-selected":
|
|
2471
|
+
"aria-selected": B ? o : void 0,
|
|
2468
2472
|
"data-part": "row",
|
|
2469
2473
|
"data-index": t,
|
|
2470
|
-
ref:
|
|
2474
|
+
ref: Y ? Fe.measureElement : void 0,
|
|
2471
2475
|
style: { "--data-grid-offset": `${n}px` },
|
|
2472
2476
|
"data-selected": o ? "" : void 0,
|
|
2473
|
-
children:
|
|
2474
|
-
let c =
|
|
2477
|
+
children: K.map((e, n) => {
|
|
2478
|
+
let c = L.row === t && L.column === n, l = e.kind === "data" && R?.key === a && R.columnId === e.column.id, u = e.kind === "data" ? ae?.(r, e.column) : void 0;
|
|
2475
2479
|
return /* @__PURE__ */ k("div", {
|
|
2476
2480
|
ref: c && !l ? We : void 0,
|
|
2477
2481
|
role: "gridcell",
|
|
2478
2482
|
className: "data-grid__cell",
|
|
2479
2483
|
"aria-colindex": n + 1,
|
|
2480
2484
|
"aria-busy": u?.pending || void 0,
|
|
2481
|
-
"aria-describedby": u?.pending || u?.error ? `${
|
|
2485
|
+
"aria-describedby": u?.pending || u?.error ? `${ye}-${t}-${n}` : void 0,
|
|
2482
2486
|
"data-save-error": u?.error ? "" : void 0,
|
|
2483
2487
|
"data-width": e.kind === "select" ? "select" : e.column.width ?? "md",
|
|
2484
2488
|
"data-align": e.kind === "select" ? "start" : e.column.align ?? "start",
|
|
@@ -2488,24 +2492,24 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2488
2492
|
"data-editable": e.kind === "data" && e.column.editable && re ? "" : void 0,
|
|
2489
2493
|
tabIndex: c && !l ? 0 : -1,
|
|
2490
2494
|
onFocus: (e) => {
|
|
2491
|
-
e.target === e.currentTarget &&
|
|
2495
|
+
e.target === e.currentTarget && xe({
|
|
2492
2496
|
row: t,
|
|
2493
2497
|
column: n
|
|
2494
2498
|
});
|
|
2495
2499
|
},
|
|
2496
|
-
onDoubleClick: e.kind === "data" && e.column.editable && re ? () =>
|
|
2500
|
+
onDoubleClick: e.kind === "data" && e.column.editable && re ? () => Q(r, e.column) : d ? () => d(r) : void 0,
|
|
2497
2501
|
children: e.kind === "select" ? /* @__PURE__ */ k(p, {
|
|
2498
2502
|
checked: o,
|
|
2499
|
-
onChange: () =>
|
|
2503
|
+
onChange: () => Le(r),
|
|
2500
2504
|
"aria-label": S ? S(r) : `${a} 고르기`,
|
|
2501
2505
|
"data-part": "select-row"
|
|
2502
2506
|
}) : l ? /* @__PURE__ */ k("input", {
|
|
2503
2507
|
className: "data-grid__editor",
|
|
2504
2508
|
ref: (e) => e?.focus(),
|
|
2505
|
-
value:
|
|
2509
|
+
value: Se,
|
|
2506
2510
|
"aria-label": `${e.column.header} 고치기`,
|
|
2507
2511
|
"data-part": "editor",
|
|
2508
|
-
onChange: (e) =>
|
|
2512
|
+
onChange: (e) => Ce(e.target.value),
|
|
2509
2513
|
onBlur: () => Be(!0, r, e.column),
|
|
2510
2514
|
onKeyDown: (t) => {
|
|
2511
2515
|
t.stopPropagation(), !(t.nativeEvent.isComposing || t.nativeEvent.keyCode === 229) && (t.key === "Enter" ? (t.preventDefault(), Be(!0, r, e.column, !0)) : t.key === "Escape" && (t.preventDefault(), Be(!1, r, e.column, !0)));
|
|
@@ -2523,15 +2527,15 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2523
2527
|
}, a);
|
|
2524
2528
|
}) : null]
|
|
2525
2529
|
}),
|
|
2526
|
-
|
|
2530
|
+
Me ? /* @__PURE__ */ k("div", {
|
|
2527
2531
|
ref: pe,
|
|
2528
2532
|
role: "rowgroup",
|
|
2529
2533
|
className: "data-grid__foot",
|
|
2530
2534
|
children: /* @__PURE__ */ k("div", {
|
|
2531
2535
|
role: "row",
|
|
2532
2536
|
className: "data-grid__row",
|
|
2533
|
-
"aria-rowindex":
|
|
2534
|
-
children:
|
|
2537
|
+
"aria-rowindex": Ne + 2,
|
|
2538
|
+
children: K.map((t, n) => /* @__PURE__ */ k("div", {
|
|
2535
2539
|
role: "gridcell",
|
|
2536
2540
|
className: "data-grid__cell",
|
|
2537
2541
|
"aria-colindex": n + 1,
|
|
@@ -2546,26 +2550,26 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2546
2550
|
]
|
|
2547
2551
|
})
|
|
2548
2552
|
}),
|
|
2549
|
-
|
|
2553
|
+
J === "error" || q ? /* @__PURE__ */ A("p", {
|
|
2550
2554
|
className: "data-grid__state",
|
|
2551
2555
|
role: "alert",
|
|
2552
2556
|
"data-part": "error",
|
|
2553
|
-
id: `${
|
|
2554
|
-
"data-retained":
|
|
2555
|
-
children: [_,
|
|
2556
|
-
}) :
|
|
2557
|
+
id: `${ye}-refresh`,
|
|
2558
|
+
"data-retained": q ? "" : void 0,
|
|
2559
|
+
children: [_, q ? /* @__PURE__ */ A(O, { children: [" 이전 결과를 표시합니다.", y ? /* @__PURE__ */ A(O, { children: [" 마지막 갱신: ", y] }) : null] }) : null]
|
|
2560
|
+
}) : J === "empty" ? /* @__PURE__ */ k("p", {
|
|
2557
2561
|
className: "data-grid__empty",
|
|
2558
2562
|
"data-part": "empty",
|
|
2559
2563
|
children: f
|
|
2560
2564
|
}) : null,
|
|
2561
|
-
ae &&
|
|
2565
|
+
ae && J === "rows" ? /* @__PURE__ */ k("ul", {
|
|
2562
2566
|
className: "data-grid__save-status",
|
|
2563
2567
|
"data-part": "save-status",
|
|
2564
|
-
children: e.flatMap((e, t) =>
|
|
2568
|
+
children: e.flatMap((e, t) => K.flatMap((r, i) => {
|
|
2565
2569
|
if (r.kind !== "data") return [];
|
|
2566
2570
|
let o = ae(e, r.column);
|
|
2567
2571
|
return !o?.pending && !o?.error ? [] : [/* @__PURE__ */ A("li", {
|
|
2568
|
-
id: `${
|
|
2572
|
+
id: `${ye}-${t}-${i}`,
|
|
2569
2573
|
children: [/* @__PURE__ */ A("span", {
|
|
2570
2574
|
role: o.pending ? "status" : "alert",
|
|
2571
2575
|
children: [
|
|
@@ -2578,7 +2582,7 @@ function Kt({ rows: e, columns: r, changed: i, rowKey: a, label: o, pinFirst: s,
|
|
|
2578
2582
|
}), !o.pending && o.error && r.column.editable && re ? /* @__PURE__ */ k(n, {
|
|
2579
2583
|
size: "sm",
|
|
2580
2584
|
variant: "outline",
|
|
2581
|
-
onClick: () =>
|
|
2585
|
+
onClick: () => Q(e, r.column),
|
|
2582
2586
|
"data-part": "recover-draft",
|
|
2583
2587
|
children: "입력 복구"
|
|
2584
2588
|
}) : null]
|
|
@@ -2604,7 +2608,7 @@ function qt(e, t) {
|
|
|
2604
2608
|
}
|
|
2605
2609
|
var Jt = {
|
|
2606
2610
|
done: pe,
|
|
2607
|
-
failed:
|
|
2611
|
+
failed: J
|
|
2608
2612
|
}, Yt = {
|
|
2609
2613
|
queued: "대기 중",
|
|
2610
2614
|
uploading: "올리는 중",
|
|
@@ -2649,7 +2653,7 @@ function Xt({ label: e, hint: n, illustration: i, accept: a, multiple: o = !0, n
|
|
|
2649
2653
|
},
|
|
2650
2654
|
children: [
|
|
2651
2655
|
i === void 0 ? /* @__PURE__ */ k(r, {
|
|
2652
|
-
icon:
|
|
2656
|
+
icon: Me,
|
|
2653
2657
|
size: "md",
|
|
2654
2658
|
className: "dropzone__glyph",
|
|
2655
2659
|
"aria-hidden": "true"
|
|
@@ -2732,7 +2736,7 @@ function Xt({ label: e, hint: n, illustration: i, accept: a, multiple: o = !0, n
|
|
|
2732
2736
|
/* @__PURE__ */ A("div", {
|
|
2733
2737
|
className: "dropzone__file-actions",
|
|
2734
2738
|
children: [n === "failed" && e.onRetry ? /* @__PURE__ */ k(t, {
|
|
2735
|
-
icon:
|
|
2739
|
+
icon: V,
|
|
2736
2740
|
label: `${e.name} 다시 올리기`,
|
|
2737
2741
|
size: "sm",
|
|
2738
2742
|
variant: "ghost",
|
|
@@ -2740,7 +2744,7 @@ function Xt({ label: e, hint: n, illustration: i, accept: a, multiple: o = !0, n
|
|
|
2740
2744
|
onClick: e.onRetry,
|
|
2741
2745
|
"data-part": "retry"
|
|
2742
2746
|
}) : null, e.onCancel ? /* @__PURE__ */ k(t, {
|
|
2743
|
-
icon:
|
|
2747
|
+
icon: q,
|
|
2744
2748
|
label: n === "done" ? `${e.name} 지우기` : `${e.name} 취소`,
|
|
2745
2749
|
size: "sm",
|
|
2746
2750
|
variant: "ghost",
|
|
@@ -2785,7 +2789,7 @@ function Zt({ value: e, onRate: t, reasons: r = [], onReasons: i, askOn: a = "do
|
|
|
2785
2789
|
children: o
|
|
2786
2790
|
}),
|
|
2787
2791
|
/* @__PURE__ */ k(x, {
|
|
2788
|
-
icon:
|
|
2792
|
+
icon: je,
|
|
2789
2793
|
pressed: e === "up",
|
|
2790
2794
|
onPressedChange: () => b("up"),
|
|
2791
2795
|
variant: "ghost",
|
|
@@ -2796,7 +2800,7 @@ function Zt({ value: e, onRate: t, reasons: r = [], onReasons: i, askOn: a = "do
|
|
|
2796
2800
|
children: "도움이 됐어요"
|
|
2797
2801
|
}),
|
|
2798
2802
|
/* @__PURE__ */ k(x, {
|
|
2799
|
-
icon:
|
|
2803
|
+
icon: G,
|
|
2800
2804
|
pressed: e === "down",
|
|
2801
2805
|
onPressedChange: () => b("down"),
|
|
2802
2806
|
variant: "ghost",
|
|
@@ -3047,7 +3051,7 @@ function tn({ fields: e, rules: r, onRulesChange: i, join: a, onJoinChange: s, l
|
|
|
3047
3051
|
})
|
|
3048
3052
|
}),
|
|
3049
3053
|
/* @__PURE__ */ k(t, {
|
|
3050
|
-
icon:
|
|
3054
|
+
icon: q,
|
|
3051
3055
|
label: `${h} 조건 지우기`,
|
|
3052
3056
|
size: "sm",
|
|
3053
3057
|
onClick: () => {
|
|
@@ -3081,7 +3085,7 @@ function nn({ items: e, onAsk: t, label: n = "이어서 물어볼 것", collapsi
|
|
|
3081
3085
|
onClick: () => t(e),
|
|
3082
3086
|
"data-part": "ask",
|
|
3083
3087
|
children: [/* @__PURE__ */ k(r, {
|
|
3084
|
-
icon:
|
|
3088
|
+
icon: ve,
|
|
3085
3089
|
size: "sm",
|
|
3086
3090
|
tone: "muted",
|
|
3087
3091
|
"aria-hidden": "true"
|
|
@@ -3189,7 +3193,7 @@ function cn({ title: e, cards: n, limit: a, onMove: o, onDropCard: s, onAdd: c,
|
|
|
3189
3193
|
children: a === void 0 ? n.length : `${n.length} / ${a}`
|
|
3190
3194
|
}),
|
|
3191
3195
|
c ? /* @__PURE__ */ k(t, {
|
|
3192
|
-
icon:
|
|
3196
|
+
icon: B,
|
|
3193
3197
|
label: `${e}에 카드 추가`,
|
|
3194
3198
|
size: "sm",
|
|
3195
3199
|
onClick: c,
|
|
@@ -3215,7 +3219,7 @@ function cn({ title: e, cards: n, limit: a, onMove: o, onDropCard: s, onAdd: c,
|
|
|
3215
3219
|
"aria-hidden": "true",
|
|
3216
3220
|
"data-part": "grip",
|
|
3217
3221
|
children: /* @__PURE__ */ k(r, {
|
|
3218
|
-
icon:
|
|
3222
|
+
icon: L,
|
|
3219
3223
|
size: "xs"
|
|
3220
3224
|
})
|
|
3221
3225
|
}) : null,
|
|
@@ -3235,14 +3239,14 @@ function cn({ title: e, cards: n, limit: a, onMove: o, onDropCard: s, onAdd: c,
|
|
|
3235
3239
|
className: "kanban-column__move",
|
|
3236
3240
|
"data-part": "move",
|
|
3237
3241
|
children: [/* @__PURE__ */ k(t, {
|
|
3238
|
-
icon:
|
|
3242
|
+
icon: he,
|
|
3239
3243
|
label: p?.back ? `${on(e.title, "을/를")} ${on(p.back, "으로/로")} 옮기기` : `${e.title} 앞으로 옮기기`,
|
|
3240
3244
|
size: "sm",
|
|
3241
3245
|
disabled: !p?.back,
|
|
3242
3246
|
onClick: () => w(e, n, -1),
|
|
3243
3247
|
"data-part": "back"
|
|
3244
3248
|
}), /* @__PURE__ */ k(t, {
|
|
3245
|
-
icon:
|
|
3249
|
+
icon: ge,
|
|
3246
3250
|
label: p?.forward ? `${on(e.title, "을/를")} ${on(p.forward, "으로/로")} 옮기기` : `${e.title} 뒤로 옮기기`,
|
|
3247
3251
|
size: "sm",
|
|
3248
3252
|
disabled: !p?.forward,
|
|
@@ -3270,7 +3274,7 @@ function cn({ title: e, cards: n, limit: a, onMove: o, onDropCard: s, onAdd: c,
|
|
|
3270
3274
|
className: "kanban-column__empty",
|
|
3271
3275
|
"data-part": "empty",
|
|
3272
3276
|
children: [/* @__PURE__ */ k(r, {
|
|
3273
|
-
icon:
|
|
3277
|
+
icon: B,
|
|
3274
3278
|
size: "sm",
|
|
3275
3279
|
"aria-hidden": "true"
|
|
3276
3280
|
}), d ?? "비어 있습니다"]
|
|
@@ -3456,9 +3460,9 @@ function dn({ children: e, loading: t, loadingMessages: n = 3, empty: i, error:
|
|
|
3456
3460
|
//#endregion
|
|
3457
3461
|
//#region src/components/extended/MetricCard/MetricCard.tsx
|
|
3458
3462
|
var fn = {
|
|
3459
|
-
up:
|
|
3463
|
+
up: fe,
|
|
3460
3464
|
down: le,
|
|
3461
|
-
flat:
|
|
3465
|
+
flat: Ce
|
|
3462
3466
|
}, pn = {
|
|
3463
3467
|
up: "증가",
|
|
3464
3468
|
down: "감소",
|
|
@@ -3759,7 +3763,7 @@ function bn({ people: e, label: t, max: r = 5, size: i = "sm", following: a, onF
|
|
|
3759
3763
|
}),
|
|
3760
3764
|
/* @__PURE__ */ k(te, {}),
|
|
3761
3765
|
/* @__PURE__ */ k(T, {
|
|
3762
|
-
icon:
|
|
3766
|
+
icon: be,
|
|
3763
3767
|
disabled: !a,
|
|
3764
3768
|
onSelect: () => o(null),
|
|
3765
3769
|
"data-part": "unfollow",
|
|
@@ -3770,7 +3774,7 @@ function bn({ people: e, label: t, max: r = 5, size: i = "sm", following: a, onF
|
|
|
3770
3774
|
size: "sm",
|
|
3771
3775
|
variant: f ? "solid" : "outline",
|
|
3772
3776
|
tone: f ? "accent" : "neutral",
|
|
3773
|
-
iconStart:
|
|
3777
|
+
iconStart: ye,
|
|
3774
3778
|
"data-part": "follow",
|
|
3775
3779
|
children: f ? `${f.name} 따라가는 중` : s
|
|
3776
3780
|
})
|
|
@@ -3802,7 +3806,7 @@ function xn({ name: e, href: t, price: n, was: i, currency: a = "KRW", locale: o
|
|
|
3802
3806
|
className: "product-card__blank",
|
|
3803
3807
|
"aria-hidden": "true",
|
|
3804
3808
|
children: /* @__PURE__ */ k(r, {
|
|
3805
|
-
icon:
|
|
3809
|
+
icon: xe,
|
|
3806
3810
|
size: "md"
|
|
3807
3811
|
})
|
|
3808
3812
|
}),
|
|
@@ -3906,7 +3910,7 @@ function Sn({ value: t, onValueChange: n, label: r, stock: i, onRemove: a, remov
|
|
|
3906
3910
|
size: l,
|
|
3907
3911
|
disabled: u,
|
|
3908
3912
|
atFloor: _ ? {
|
|
3909
|
-
icon:
|
|
3913
|
+
icon: K,
|
|
3910
3914
|
label: o ?? `${r} 빼기`,
|
|
3911
3915
|
onPress: _,
|
|
3912
3916
|
tone: "danger"
|
|
@@ -3936,7 +3940,7 @@ function Cn({ children: e, state: t = "done", duration: n, summary: r, defaultOp
|
|
|
3936
3940
|
...o,
|
|
3937
3941
|
className: `reasoning-disclosure ${a ?? ""}`.trim(),
|
|
3938
3942
|
"data-state": t,
|
|
3939
|
-
icon:
|
|
3943
|
+
icon: F,
|
|
3940
3944
|
plain: !0,
|
|
3941
3945
|
defaultOpen: i,
|
|
3942
3946
|
summary: /* @__PURE__ */ k("span", {
|
|
@@ -3991,7 +3995,7 @@ function Tn({ reason: e, carried: t, detail: i, onRetry: a, onType: o, onDiscard
|
|
|
3991
3995
|
onClick: () => o(u),
|
|
3992
3996
|
"data-part": "type",
|
|
3993
3997
|
children: [/* @__PURE__ */ k(r, {
|
|
3994
|
-
icon:
|
|
3998
|
+
icon: R,
|
|
3995
3999
|
size: "sm",
|
|
3996
4000
|
"aria-hidden": "true"
|
|
3997
4001
|
}), u ? "이어서 입력하기" : "입력으로 하기"]
|
|
@@ -4003,7 +4007,7 @@ function Tn({ reason: e, carried: t, detail: i, onRetry: a, onType: o, onDiscard
|
|
|
4003
4007
|
onClick: a,
|
|
4004
4008
|
"data-part": "retry",
|
|
4005
4009
|
children: [/* @__PURE__ */ k(r, {
|
|
4006
|
-
icon:
|
|
4010
|
+
icon: V,
|
|
4007
4011
|
size: "sm",
|
|
4008
4012
|
"aria-hidden": "true"
|
|
4009
4013
|
}), "다시 말하기"]
|
|
@@ -4015,7 +4019,7 @@ function Tn({ reason: e, carried: t, detail: i, onRetry: a, onType: o, onDiscard
|
|
|
4015
4019
|
onClick: s,
|
|
4016
4020
|
"data-part": "discard",
|
|
4017
4021
|
children: [/* @__PURE__ */ k(r, {
|
|
4018
|
-
icon:
|
|
4022
|
+
icon: K,
|
|
4019
4023
|
size: "sm",
|
|
4020
4024
|
"aria-hidden": "true"
|
|
4021
4025
|
}), "버리기"]
|
|
@@ -4081,7 +4085,7 @@ function Dn({ title: t, state: r, elapsed: a, progress: o, detail: c, onCancel:
|
|
|
4081
4085
|
className: "run-status-card__mark",
|
|
4082
4086
|
"aria-hidden": "true",
|
|
4083
4087
|
children: [m ? /* @__PURE__ */ k(e, { size: "sm" }) : null, /* @__PURE__ */ k(_, {
|
|
4084
|
-
icon: m ? void 0 : r === "done" ? I : r === "failed" ?
|
|
4088
|
+
icon: m ? void 0 : r === "done" ? I : r === "failed" ? J : _e,
|
|
4085
4089
|
tone: r === "done" ? "success" : r === "failed" ? "danger" : "neutral",
|
|
4086
4090
|
size: "sm",
|
|
4087
4091
|
"data-part": "glyph"
|
|
@@ -4160,13 +4164,13 @@ function Dn({ title: t, state: r, elapsed: a, progress: o, detail: c, onCancel:
|
|
|
4160
4164
|
function On({ views: e, value: t, onValueChange: n, label: i, panelId: a, menu: o, onAdd: s, addLabel: c = "보기 추가", className: l, ...u }) {
|
|
4161
4165
|
let d = N(null), f = (e) => d.current?.querySelector(`[data-value="${CSS.escape(e)}"]`) ?? null;
|
|
4162
4166
|
j(() => {
|
|
4163
|
-
f(t)
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
+
let e = d.current, n = f(t);
|
|
4168
|
+
if (!e || !n) return;
|
|
4169
|
+
let r = e.getBoundingClientRect(), i = n.getBoundingClientRect();
|
|
4170
|
+
i.left < r.left ? e.scrollLeft += i.left - r.left : i.right > r.right && (e.scrollLeft += i.right - r.right);
|
|
4167
4171
|
}, [t]);
|
|
4168
4172
|
let p = (e) => {
|
|
4169
|
-
e && (f(e.id)?.focus(), n(e.id));
|
|
4173
|
+
e && (f(e.id)?.focus({ preventScroll: !0 }), n(e.id));
|
|
4170
4174
|
}, m = (t) => {
|
|
4171
4175
|
let n = t.target.dataset.value;
|
|
4172
4176
|
if (n === void 0) return;
|
|
@@ -4235,7 +4239,7 @@ function On({ views: e, value: t, onValueChange: n, label: i, panelId: a, menu:
|
|
|
4235
4239
|
onClick: s,
|
|
4236
4240
|
"data-part": "add",
|
|
4237
4241
|
children: [/* @__PURE__ */ k(r, {
|
|
4238
|
-
icon:
|
|
4242
|
+
icon: B,
|
|
4239
4243
|
size: "sm",
|
|
4240
4244
|
"aria-hidden": "true"
|
|
4241
4245
|
}), c]
|
|
@@ -4565,7 +4569,7 @@ function Ln({ name: t, state: n, args: i, result: a, error: o, duration: s, summ
|
|
|
4565
4569
|
icon: se,
|
|
4566
4570
|
size: "xs"
|
|
4567
4571
|
}) : /* @__PURE__ */ k(r, {
|
|
4568
|
-
icon:
|
|
4572
|
+
icon: Ae,
|
|
4569
4573
|
size: "xs"
|
|
4570
4574
|
})
|
|
4571
4575
|
}),
|
|
@@ -4728,7 +4732,7 @@ function Rn({ segments: e, currentTime: t, onSeek: i, label: a, loading: o, empt
|
|
|
4728
4732
|
onClick: () => p(!0),
|
|
4729
4733
|
"data-part": "follow",
|
|
4730
4734
|
children: [/* @__PURE__ */ k(r, {
|
|
4731
|
-
icon:
|
|
4735
|
+
icon: ue,
|
|
4732
4736
|
size: "sm",
|
|
4733
4737
|
"aria-hidden": "true"
|
|
4734
4738
|
}), "지금 말하는 곳으로"]
|
|
@@ -4813,7 +4817,7 @@ function Bn({ label: e, state: i, levels: a, elapsed: o, muted: s, onMuteChange:
|
|
|
4813
4817
|
children: [
|
|
4814
4818
|
m,
|
|
4815
4819
|
c ? /* @__PURE__ */ k(t, {
|
|
4816
|
-
icon: s ?
|
|
4820
|
+
icon: s ? Se : z,
|
|
4817
4821
|
label: "마이크 음소거",
|
|
4818
4822
|
variant: s ? "solid" : "outline",
|
|
4819
4823
|
tone: s ? "danger" : "neutral",
|
|
@@ -4829,7 +4833,7 @@ function Bn({ label: e, state: i, levels: a, elapsed: o, muted: s, onMuteChange:
|
|
|
4829
4833
|
onClick: l,
|
|
4830
4834
|
"data-part": "end",
|
|
4831
4835
|
children: [/* @__PURE__ */ k(r, {
|
|
4832
|
-
icon:
|
|
4836
|
+
icon: Te,
|
|
4833
4837
|
size: "sm",
|
|
4834
4838
|
"aria-hidden": "true"
|
|
4835
4839
|
}), "통화 끝내기"]
|
|
@@ -4842,4 +4846,4 @@ function Bn({ label: e, state: i, levels: a, elapsed: o, muted: s, onMuteChange:
|
|
|
4842
4846
|
//#endregion
|
|
4843
4847
|
export { Xt as A, pt as B, un as C, Qt as D, tn as E, Dt as F, wt as I, Ct as L, Rt as M, At as N, en as O, kt as P, St as R, dn as S, nn as T, yn as _, Fn as a, gn as b, jn as c, Dn as d, Tn as f, bn as g, xn as h, Ln as i, Gt as j, Zt as k, kn as l, Sn as m, zn as n, Pn as o, Cn as p, Rn as r, An as s, Bn as t, On as u, vn as v, cn as w, mn as x, _n as y, gt as z };
|
|
4844
4848
|
|
|
4845
|
-
//# sourceMappingURL=VoiceControlBar-
|
|
4849
|
+
//# sourceMappingURL=VoiceControlBar-Bx016mmz.js.map
|