@t3q-ui/design-system 1.59.2 → 1.59.3
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/CHANGELOG.md +11 -0
- package/dist/{chunk-24IZHXNG.cjs → chunk-5O3JWQP3.cjs} +59 -9
- package/dist/chunk-5O3JWQP3.cjs.map +1 -0
- package/dist/{chunk-AIMWERAR.js → chunk-GOY465GH.js} +58 -10
- package/dist/chunk-GOY465GH.js.map +1 -0
- package/dist/{index-BGBKE_7M.d.cts → index-gy-cc-DH.d.cts} +24 -3
- package/dist/{index-BGBKE_7M.d.ts → index-gy-cc-DH.d.ts} +24 -3
- package/dist/index.cjs +468 -460
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/patterns/index.cjs +70 -71
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +2 -3
- package/dist/patterns/index.js.map +1 -1
- package/dist/styles.css +31 -10
- package/package.json +1 -1
- package/skills/tds/SKILL.md +1 -1
- package/skills/tds/examples/detail-page.tsx +1 -1
- package/skills/tds/reference/components.md +5 -4
- package/dist/chunk-24IZHXNG.cjs.map +0 -1
- package/dist/chunk-AIMWERAR.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
<!-- release: v1.59.3 -->
|
|
4
|
+
## 1.59.3 (2026-11-08)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **agGridTable:** 열 폭을 내용에 맞춘 뒤 그 비율로 분배(fitColumnsToContent), 앱 width 는 하한 (홀드아웃 23 열 간격 7건, 사용자 결정 ③ A) (7aecb72)
|
|
10
|
+
* **listPage:** 페이지네이션 왼쪽 건수 라벨 제거 — 가운데 버튼만 (홀드아웃 23 "어디에도 붙어 있지 않다" 2건, 사용자 결정 ②) (3c6d0bb)
|
|
11
|
+
* **table:** 기본 table-auto — 폭 없는 열이 남는 폭을 내용 비율로 (홀드아웃 23 상세 단계 표 첫 열 과대 5건, 사용자 결정 ④ A) (82b30a1)
|
|
12
|
+
* **tokens:** Alert 배경 다섯 variant 를 새 단계 -o05(8%) 로 — 오류 배너 "무겁다" (홀드아웃 23 Opus 2건, 사용자 결정 ⑤) (846ed62), closes #ffe4e4 #fff2f2
|
|
13
|
+
|
|
3
14
|
<!-- release: v1.59.2 -->
|
|
4
15
|
## 1.59.2 (2026-11-08)
|
|
5
16
|
|
|
@@ -3098,7 +3098,7 @@ var Table = React12__namespace.forwardRef(
|
|
|
3098
3098
|
"table",
|
|
3099
3099
|
{
|
|
3100
3100
|
ref,
|
|
3101
|
-
className: cn("w-full table-
|
|
3101
|
+
className: cn("w-full table-auto border-collapse border-spacing-0 border-0", className),
|
|
3102
3102
|
...props
|
|
3103
3103
|
}
|
|
3104
3104
|
) })
|
|
@@ -4007,6 +4007,8 @@ function AgGridContent() {
|
|
|
4007
4007
|
columnTypes: userColumnTypes,
|
|
4008
4008
|
onCellKeyDown,
|
|
4009
4009
|
onRowClicked,
|
|
4010
|
+
onFirstDataRendered,
|
|
4011
|
+
fitColumnsToContent: fitToContent = true,
|
|
4010
4012
|
...restTableProps
|
|
4011
4013
|
} = tableProps;
|
|
4012
4014
|
const handleCellKeyDown = (e) => {
|
|
@@ -4017,6 +4019,10 @@ function AgGridContent() {
|
|
|
4017
4019
|
if (!target?.matches(".ag-cell, .ag-full-width-row")) return;
|
|
4018
4020
|
onRowClicked({ ...e, type: "rowClicked" });
|
|
4019
4021
|
};
|
|
4022
|
+
const handleFirstDataRendered = (e) => {
|
|
4023
|
+
onFirstDataRendered?.(e);
|
|
4024
|
+
if (fitToContent && !restTableProps.autoSizeStrategy) fitColumnsToContent(e.api);
|
|
4025
|
+
};
|
|
4020
4026
|
const mergedDefaultColDef = {
|
|
4021
4027
|
...userDefaultColDef,
|
|
4022
4028
|
cellStyle: {
|
|
@@ -4035,12 +4041,14 @@ function AgGridContent() {
|
|
|
4035
4041
|
);
|
|
4036
4042
|
const columnDefs = React12.useMemo(
|
|
4037
4043
|
() => withTypeClasses(
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
+
withWidthFloor(
|
|
4045
|
+
withHeaderMinWidth(
|
|
4046
|
+
withSortIconOffset(
|
|
4047
|
+
// 남는 폭 분배(2026-11-08 홀드아웃 21 뒤 결정 1): 글자 열이 하나뿐이면 ID·날짜 같은 넓은 고정 열도 flex 를 받는다 — 그 뒤 withFlexFill 이
|
|
4048
|
+
// 상한 있는 flex 열만 남았는지 본다(분배된 열은 상한이 없으므로 글자 열의 maxWidth 는 살아남는다)
|
|
4049
|
+
withExplicitSortIcons(
|
|
4050
|
+
withFlexFill(withBalancedFill(withNumberColumnWidth(restTableProps.columnDefs)))
|
|
4051
|
+
)
|
|
4044
4052
|
)
|
|
4045
4053
|
)
|
|
4046
4054
|
),
|
|
@@ -4060,6 +4068,7 @@ function AgGridContent() {
|
|
|
4060
4068
|
columnDefs,
|
|
4061
4069
|
onRowClicked,
|
|
4062
4070
|
onCellKeyDown: handleCellKeyDown,
|
|
4071
|
+
onFirstDataRendered: handleFirstDataRendered,
|
|
4063
4072
|
theme,
|
|
4064
4073
|
className,
|
|
4065
4074
|
domLayout: "normal"
|
|
@@ -4080,6 +4089,7 @@ function AgGridContent() {
|
|
|
4080
4089
|
columnDefs,
|
|
4081
4090
|
onRowClicked,
|
|
4082
4091
|
onCellKeyDown: handleCellKeyDown,
|
|
4092
|
+
onFirstDataRendered: handleFirstDataRendered,
|
|
4083
4093
|
theme,
|
|
4084
4094
|
className,
|
|
4085
4095
|
rowClass: `${onRowClicked ? "ag-row-clickable" : ""} ${tableProps.rowClass || ""}`,
|
|
@@ -4310,6 +4320,44 @@ function withHeaderMinWidth(defs) {
|
|
|
4310
4320
|
return { ...d, minWidth, ...raiseWidth ? { width: minWidth } : {} };
|
|
4311
4321
|
});
|
|
4312
4322
|
}
|
|
4323
|
+
function withWidthFloor(defs) {
|
|
4324
|
+
if (!Array.isArray(defs)) return defs;
|
|
4325
|
+
let changed = false;
|
|
4326
|
+
const out = defs.map((d) => {
|
|
4327
|
+
if (!d || typeof d !== "object") return d;
|
|
4328
|
+
if (Array.isArray(d.children)) {
|
|
4329
|
+
const children = withWidthFloor(d.children);
|
|
4330
|
+
if (children === d.children) return d;
|
|
4331
|
+
changed = true;
|
|
4332
|
+
return { ...d, children };
|
|
4333
|
+
}
|
|
4334
|
+
if (typeof d.width !== "number" || d.flex != null) return d;
|
|
4335
|
+
if (typeof d.minWidth === "number" && d.minWidth >= d.width) return d;
|
|
4336
|
+
changed = true;
|
|
4337
|
+
return { ...d, minWidth: d.width };
|
|
4338
|
+
});
|
|
4339
|
+
return changed ? out : defs;
|
|
4340
|
+
}
|
|
4341
|
+
function isFittable(col) {
|
|
4342
|
+
const def = col.getColDef();
|
|
4343
|
+
return col.isVisible() && !col.isPinned() && !col.getColId().startsWith("ag-Grid-") && !def.suppressAutoSize && !def.suppressSizeToFit;
|
|
4344
|
+
}
|
|
4345
|
+
function fitColumnsToContent(api) {
|
|
4346
|
+
const onAutosized = (e) => {
|
|
4347
|
+
if (e.source !== "autosizeColumns" || !e.finished) return;
|
|
4348
|
+
api.removeEventListener("columnResized", onAutosized);
|
|
4349
|
+
const cols = (api.getColumns() ?? []).filter(isFittable);
|
|
4350
|
+
if (cols.length === 0) return;
|
|
4351
|
+
api.applyColumnState({
|
|
4352
|
+
state: cols.map((c) => ({
|
|
4353
|
+
colId: c.getColId(),
|
|
4354
|
+
flex: Math.max(1, Math.round(c.getActualWidth()))
|
|
4355
|
+
}))
|
|
4356
|
+
});
|
|
4357
|
+
};
|
|
4358
|
+
api.addEventListener("columnResized", onAutosized);
|
|
4359
|
+
api.autoSizeAllColumns();
|
|
4360
|
+
}
|
|
4313
4361
|
function getByPath(data, path) {
|
|
4314
4362
|
return path.split(".").reduce((o, k) => o == null ? void 0 : o[k], data);
|
|
4315
4363
|
}
|
|
@@ -4447,6 +4495,7 @@ exports.badgeVariants = badgeVariants;
|
|
|
4447
4495
|
exports.buttonVariants = buttonVariants;
|
|
4448
4496
|
exports.cn = cn;
|
|
4449
4497
|
exports.estimateHeaderTextWidth = estimateHeaderTextWidth;
|
|
4498
|
+
exports.fitColumnsToContent = fitColumnsToContent;
|
|
4450
4499
|
exports.getPaginationRange = getPaginationRange;
|
|
4451
4500
|
exports.getSortedColumnState = getSortedColumnState;
|
|
4452
4501
|
exports.sanitizeUserText = sanitizeUserText;
|
|
@@ -4461,5 +4510,6 @@ exports.withHeaderMinWidth = withHeaderMinWidth;
|
|
|
4461
4510
|
exports.withNumberColumnWidth = withNumberColumnWidth;
|
|
4462
4511
|
exports.withSortIconOffset = withSortIconOffset;
|
|
4463
4512
|
exports.withTypeClasses = withTypeClasses;
|
|
4464
|
-
|
|
4465
|
-
//# sourceMappingURL=chunk-
|
|
4513
|
+
exports.withWidthFloor = withWidthFloor;
|
|
4514
|
+
//# sourceMappingURL=chunk-5O3JWQP3.cjs.map
|
|
4515
|
+
//# sourceMappingURL=chunk-5O3JWQP3.cjs.map
|