@t3q-ui/design-system 1.59.0 → 1.59.2

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ <!-- release: v1.59.2 -->
4
+ ## 1.59.2 (2026-11-08)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **agGridTable:** 남는 폭 분배를 flex 열 수와 무관하게 — 넓은 고정 글자 열은 늘 나눠 받음 (홀드아웃 22 "wide empty gap" 5건) (90a6fcb)
10
+ * **pagination:** 라벨을 "N개 중 X–Y" 로 — "전체 N개 중 X - Y번째"·굵은 N 제거 (사용자 결정 2026-11-08 ③) (771e8ea)
11
+ * **table:** 표와 페이지네이션 간격 16 → 0 — 붙여 둠 (사용자 2026-11-08, 홀드아웃 22 "떠 있다" 1건 뒤) (8d708f6)
12
+
13
+ <!-- release: v1.59.1 -->
14
+ ## 1.59.1 (2026-11-08)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **agGridTable:** 글자 열이 하나뿐이면 남는 폭을 ID·날짜 열에도 나눔 (홀드아웃 21 "endpoint column takes up too much space") (29790db)
20
+ * **table:** 표와 페이지네이션 간격 38 → 16 — 한 묶음으로 붙임 (홀드아웃 21 "pagination floating") (882ef91)
21
+
3
22
  <!-- release: v1.59.0 -->
4
23
  # 1.59.0 (2026-11-06)
5
24
 
@@ -2870,15 +2870,12 @@ function Pagination({
2870
2870
  const n = total.toLocaleString();
2871
2871
  const start = total === 0 ? 0 : (page - 1) * rowsPerPage + 1;
2872
2872
  const end = total === 0 ? 0 : Math.min(page * rowsPerPage, total);
2873
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2874
- "\uC804\uCCB4 ",
2875
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-large-medium text-sys-text-main tabular-nums", children: n }),
2876
- "\uAC1C \uC911",
2877
- " ",
2873
+ return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "tabular-nums", children: [
2874
+ n,
2875
+ "\uAC1C \uC911 ",
2878
2876
  start,
2879
- " - ",
2880
- end,
2881
- "\uBC88\uC9F8"
2877
+ "\u2013",
2878
+ end
2882
2879
  ] });
2883
2880
  }, [total, page, rowsPerPage]);
2884
2881
  return /* @__PURE__ */ jsxRuntime.jsxs(PaginationWrapper, { className: "relative justify-center", ...rest, children: [
@@ -3144,7 +3141,7 @@ var TablePagination = React12__namespace.forwardRef(({ className, ...props }, re
3144
3141
  "div",
3145
3142
  {
3146
3143
  ref,
3147
- className: cn("mt-[38px] flex items-center justify-center", className),
3144
+ className: cn("mt-0 flex items-center justify-center", className),
3148
3145
  ...props
3149
3146
  }
3150
3147
  ));
@@ -4040,7 +4037,11 @@ function AgGridContent() {
4040
4037
  () => withTypeClasses(
4041
4038
  withHeaderMinWidth(
4042
4039
  withSortIconOffset(
4043
- withExplicitSortIcons(withNumberColumnWidth(withFlexFill(restTableProps.columnDefs)))
4040
+ // 남는 폭 분배(2026-11-08 홀드아웃 21 뒤 결정 1): 글자 열이 하나뿐이면 ID·날짜 같은 넓은 고정 열도 flex 를 받는다 — 그 뒤 withFlexFill 이
4041
+ // 상한 있는 flex 열만 남았는지 본다(분배된 열은 상한이 없으므로 글자 열의 maxWidth 는 살아남는다)
4042
+ withExplicitSortIcons(
4043
+ withFlexFill(withBalancedFill(withNumberColumnWidth(restTableProps.columnDefs)))
4044
+ )
4044
4045
  )
4045
4046
  ),
4046
4047
  mergedColumnTypes
@@ -4227,6 +4228,40 @@ function withFlexFill(defs) {
4227
4228
  return strip(defs);
4228
4229
  }
4229
4230
  var columnTypesOf = (d) => Array.isArray(d.type) ? d.type : typeof d.type === "string" ? [d.type] : [];
4231
+ var BALANCED_FILL_MIN_WIDTH = 150;
4232
+ function withBalancedFill(defs) {
4233
+ if (!Array.isArray(defs)) return defs;
4234
+ const flexCols = [];
4235
+ const collect = (list) => {
4236
+ for (const d of list) {
4237
+ if (!d || typeof d !== "object") continue;
4238
+ if (Array.isArray(d.children)) collect(d.children);
4239
+ else if (!d.hide && isFlex(d)) flexCols.push(d);
4240
+ }
4241
+ };
4242
+ collect(defs);
4243
+ if (flexCols.length === 0) return defs;
4244
+ const uncapped = flexCols.filter((d) => d.maxWidth == null);
4245
+ const lone = uncapped.length === 1 ? uncapped[0] : null;
4246
+ const share = (d) => !d.hide && !isFlex(d) && typeof d.width === "number" && d.width >= BALANCED_FILL_MIN_WIDTH && !columnTypesOf(d).includes("number");
4247
+ let sharedCount = 0;
4248
+ const walk = (list) => list.map((d) => {
4249
+ if (!d || typeof d !== "object") return d;
4250
+ const c = d;
4251
+ if (Array.isArray(c.children)) return { ...c, children: walk(c.children) };
4252
+ if (lone && c === lone) return c.flex >= 2 ? d : { ...c, flex: 2 };
4253
+ if (!share(c)) return d;
4254
+ sharedCount += 1;
4255
+ const { width, ...rest } = c;
4256
+ return {
4257
+ ...rest,
4258
+ flex: 1,
4259
+ minWidth: Math.max(typeof c.minWidth === "number" ? c.minWidth : 0, width)
4260
+ };
4261
+ });
4262
+ const out = walk(defs);
4263
+ return sharedCount > 0 ? out : defs;
4264
+ }
4230
4265
  var NUMBER_COLUMN_WIDTH = 140;
4231
4266
  function withNumberColumnWidth(defs) {
4232
4267
  if (!Array.isArray(defs)) return defs;
@@ -4309,6 +4344,7 @@ exports.AlertActions = AlertActions;
4309
4344
  exports.AlertDescription = AlertDescription;
4310
4345
  exports.AlertTitle = AlertTitle;
4311
4346
  exports.BADGE_OUTLINE_ACCENT = BADGE_OUTLINE_ACCENT;
4347
+ exports.BALANCED_FILL_MIN_WIDTH = BALANCED_FILL_MIN_WIDTH;
4312
4348
  exports.Badge = Badge;
4313
4349
  exports.Button = Button;
4314
4350
  exports.Card = Card;
@@ -4418,11 +4454,12 @@ exports.useFormControlContext = useFormControlContext;
4418
4454
  exports.useFormField = useFormField;
4419
4455
  exports.usePageHeader = usePageHeader;
4420
4456
  exports.useRestoreFocusToOpener = useRestoreFocusToOpener;
4457
+ exports.withBalancedFill = withBalancedFill;
4421
4458
  exports.withExplicitSortIcons = withExplicitSortIcons;
4422
4459
  exports.withFlexFill = withFlexFill;
4423
4460
  exports.withHeaderMinWidth = withHeaderMinWidth;
4424
4461
  exports.withNumberColumnWidth = withNumberColumnWidth;
4425
4462
  exports.withSortIconOffset = withSortIconOffset;
4426
4463
  exports.withTypeClasses = withTypeClasses;
4427
- //# sourceMappingURL=chunk-KT6LEYWL.cjs.map
4428
- //# sourceMappingURL=chunk-KT6LEYWL.cjs.map
4464
+ //# sourceMappingURL=chunk-24IZHXNG.cjs.map
4465
+ //# sourceMappingURL=chunk-24IZHXNG.cjs.map