@t3q-ui/design-system 1.59.1 → 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.
@@ -7,7 +7,7 @@ import * as React from 'react';
7
7
  import { ReactNode, CSSProperties } from 'react';
8
8
  import { VariantProps } from 'class-variance-authority';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
- import { IHeaderParams, ICellRendererParams } from 'ag-grid-community';
10
+ import { IHeaderParams, ICellRendererParams, GridApi } from 'ag-grid-community';
11
11
  import { AgGridReactProps, AgGridReact } from 'ag-grid-react';
12
12
 
13
13
  type BadgeTone = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'etc';
@@ -192,17 +192,21 @@ declare function PageHeader({ breadcrumb, title, fallbackTitle, description, sta
192
192
  type AgGridTableType = AgGridReactProps & {
193
193
  containerStyle?: CSSProperties;
194
194
  noRowsOverlayComponentContainerStyle?: CSSProperties;
195
+ /** 첫 데이터가 그려진 뒤 열 폭을 내용(제목·값)에 맞추고 그 비율로 남는 폭을 모든 열에 나눈다(기본 true). 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한. 열 폭을 손으로 고정하려면 false. ag-grid `autoSizeStrategy` 를 주면 그쪽을 따른다 */
196
+ fitColumnsToContent?: boolean;
195
197
  };
196
198
  /**
197
199
  * ag-grid 기반 데이터 표. 목록 화면의 본 표에 쓴다.
198
200
  *
199
201
  * 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
200
202
  * 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
201
- * 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. 글자 열이 하나뿐이면 표가 남는 폭을 150 이상 고정 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한 열만 부풀지 않는다.
203
+ * 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. flex 열이 있으면 표가 남는 폭을 150 이상 고정 글자 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한두 열만 부풀지 않는다. 첫 데이터가 그려지면 열 폭을 내용(제목·값)에 맞추고 그 비율로 남는 폭을 모든 열에 나눈다(`fitColumnsToContent`, 기본 켜짐) — 값이 짧은 열(소유자·상태)은 좁게, 긴 열(이름·설명)은 넓게. 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한으로 남는다.
202
204
  */
203
205
  declare const AgGridTable: React.ForwardRefExoticComponent<AgGridReactProps<any> & {
204
206
  containerStyle?: CSSProperties;
205
207
  noRowsOverlayComponentContainerStyle?: CSSProperties;
208
+ /** 첫 데이터가 그려진 뒤 열 폭을 내용(제목·값)에 맞추고 그 비율로 남는 폭을 모든 열에 나눈다(기본 true). 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한. 열 폭을 손으로 고정하려면 false. ag-grid `autoSizeStrategy` 를 주면 그쪽을 따른다 */
209
+ fitColumnsToContent?: boolean;
206
210
  } & React.RefAttributes<AgGridReact<any>>>;
207
211
  declare function HeaderCheckboxRenderer(props: IHeaderParams): react_jsx_runtime.JSX.Element;
208
212
  declare function RowCheckboxRenderer(params: ICellRendererParams): react_jsx_runtime.JSX.Element;
@@ -227,11 +231,13 @@ declare function withFlexFill<T>(defs: T): T;
227
231
  /** 남는 폭을 나눠 받을 고정 열의 최소 폭 — 이보다 좁은 고정 열(상태 뱃지·체크박스·동작 96~140)은 넓어지면 비어 보인다 */
228
232
  declare const BALANCED_FILL_MIN_WIDTH = 150;
229
233
  /**
230
- * 보이는 flex 열이 **하나뿐**이면 남는 폭을 그 열이 혼자 받지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
231
- * `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 그 flex 열은 `flex` 를 최소 2 로 올린다. 그러면 남는 폭이 글자 열 2 : 나머지 1 로 흩어진다.
234
+ * flex 열이 있는 표에서 남는 폭이 한두 글자 열에 몰리지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
235
+ * `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 상한 없는 flex 열이 **하나뿐**이면 그 열은 `flex` 를 최소 2 로 올린다(글자 열 2 : 나머지 1).
232
236
  * 2026-11-06 홀드아웃 21: 글자 열이 엔드포인트 하나뿐인 목록에서 그 열이 590px 가 되고 숫자 열은 좁았다("endpoint column takes up too much space",
233
- * 세 심판 → 패; 세트 2 도 "large empty gap", Opus 3건). 홀드아웃 14·17 의 "이름 열 과대" 도 같은 원인. flex 열이 없거나 둘 이상이면 그대로(같은 배열).
234
- * 앱이 이미 여러 열에 flex 를 줬으면 그 분배를 존중한다. 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
237
+ * 세 심판 → 패). 2026-11-08 홀드아웃 22(사용자 결정 ①): 글자 열이 둘(이름 `flex 2, maxWidth 480` + 데이터셋 `flex 1`)이어도 이름이 상한에 걸린 뒤 둘째
238
+ * 글자 열이 남는 폭을 다 받아 "wide empty gap"(Opus 5건) → flex 열 수와 무관하게 넓은 고정 글자 열이 나눠 받게 넓혔다. 상한 있는 flex 열은 그대로 둔다
239
+ * (분배된 열이 상한 없는 flex 가 되므로 뒤의 withFlexFill 이 상한을 떼지 않는다). flex 열이 없거나 나눠 받을 고정 열이 없으면 그대로(같은 배열).
240
+ * 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
235
241
  */
236
242
  declare function withBalancedFill<T>(defs: T): T;
237
243
  /** 폭을 안 준 number 열의 기본 폭. ag-grid 기본 200 은 숫자 열을 비어 보이게 한다(2026-10-27 홀드아웃 13 layout 지적 "wide empty area") */
@@ -245,6 +251,23 @@ declare function withTypeClasses<T>(defs: T, columnTypes: Record<string, {
245
251
  headerClass?: unknown;
246
252
  }>): T;
247
253
  declare function withHeaderMinWidth<T>(defs: T): T;
254
+ /**
255
+ * 앱이 준 `width` 를 하한(`minWidth`)으로도 쓴다 — `fitColumnsToContent` 가 열 폭을 내용에 맞춘 뒤 비율 flex 로 바꾸면 `width` 는 더 이상 쓰이지 않으므로,
256
+ * "앱이 준 폭보다 좁아지지 않는다" 를 minWidth 로 남긴다(2026-11-08 홀드아웃 23 뒤 ③). flex 열·width 없는 열·minWidth 가 이미 그 이상인 열은 같은 객체 그대로.
257
+ * 그룹 children 재귀. 바뀐 열이 없으면 같은 배열
258
+ */
259
+ declare function withWidthFloor<T>(defs: T): T;
260
+ /**
261
+ * 열 폭을 내용에 맞춘 뒤 남는 폭을 모든 열에 **내용 폭의 비율**로 나눈다 — ag-grid `autoSizeAllColumns`(제목 포함)로 각 열의 내용 폭을 재고, 그 폭을 그대로
262
+ * `flex` 값으로 준다(flex 는 비율이므로 300·120·90 이면 10 : 4 : 3). 그 뒤로는 표 폭이 바뀌어도 ag-grid 의 flex 가 같은 비율로 채운다.
263
+ * 2026-11-08 홀드아웃 23 뒤 ③(사용자 결정 A): `withBalancedFill` 의 비율 분배는 열 **수**만 보므로 값이 짧은 글자 열(소유자)이 이름 열만큼 넓어졌다
264
+ * ("담당자와 날짜 열 사이에 큰 빈 공간", 21~23 목록 Opus 2·상세 5). 앱이 준 `width`·`minWidth` 는 하한(`withWidthFloor`), `maxWidth` 는 상한으로 ag-grid 가 지킨다.
265
+ * 첫 데이터가 그려질 때 한 번만 — 페이지를 넘겨도 열이 움직이지 않는다. 사용자가 열을 끌어 늘리면 그 열은 flex 가 풀려 그 폭으로 남는다(ag-grid 규칙).
266
+ * ag-grid 의 autoSize 는 비동기다(React 셀이 다 붙을 때까지 미루고 끝나면 `columnResized` 를 `source: 'autosizeColumns', finished: true` 로 쏜다) —
267
+ * 그 이벤트를 받은 뒤에 비율을 적용한다(먼저 적용하면 autoSize 가 폭을 쓰면서 flex 를 지워 내용 폭 그대로 남고 오른쪽이 빈다).
268
+ * `AgGridTable` 이 `onFirstDataRendered` 에서 부른다(`fitColumnsToContent={false}` 로 끔)
269
+ */
270
+ declare function fitColumnsToContent(api: GridApi): void;
248
271
  interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<TRow> {
249
272
  /** 보조 줄에 보일 행 필드(점 표기 가능: 'image.tag'). 값이 없거나 빈 문자열이면 한 줄만 그린다 */
250
273
  secondaryField?: string;
@@ -261,4 +284,4 @@ interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<
261
284
  */
262
285
  declare function TwoLineCellRenderer<TRow = unknown>(params: TwoLineCellRendererParams<TRow>): react_jsx_runtime.JSX.Element;
263
286
 
264
- export { DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P, BALANCED_FILL_MIN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withBalancedFill as T, NUMBER_COLUMN_WIDTH as U, withNumberColumnWidth as V, withTypeClasses as W, withHeaderMinWidth as X, type TwoLineCellRendererParams as Y, TwoLineCellRenderer as Z, Badge as a, badgeVariants as b, type BadgeTone as c, BADGE_OUTLINE_ACCENT as d, Button as e, buttonVariants as f, type ButtonProps as g, DialogPortal as h, DialogOverlay as i, DialogTrigger as j, DialogClose as k, DialogContent as l, DialogHeader as m, DialogFooter as n, DialogTitle as o, DialogDescription as p, Drawer as q, DrawerPortal as r, DrawerOverlay as s, DrawerTrigger as t, DrawerClose as u, DrawerContent as v, DrawerHeader as w, DrawerBody as x, DrawerFooter as y, DrawerTitle as z };
287
+ export { TwoLineCellRenderer as $, DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P, BALANCED_FILL_MIN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withBalancedFill as T, NUMBER_COLUMN_WIDTH as U, withNumberColumnWidth as V, withTypeClasses as W, withHeaderMinWidth as X, withWidthFloor as Y, fitColumnsToContent as Z, type TwoLineCellRendererParams as _, Badge as a, badgeVariants as b, type BadgeTone as c, BADGE_OUTLINE_ACCENT as d, Button as e, buttonVariants as f, type ButtonProps as g, DialogPortal as h, DialogOverlay as i, DialogTrigger as j, DialogClose as k, DialogContent as l, DialogHeader as m, DialogFooter as n, DialogTitle as o, DialogDescription as p, Drawer as q, DrawerPortal as r, DrawerOverlay as s, DrawerTrigger as t, DrawerClose as u, DrawerContent as v, DrawerHeader as w, DrawerBody as x, DrawerFooter as y, DrawerTitle as z };
@@ -7,7 +7,7 @@ import * as React from 'react';
7
7
  import { ReactNode, CSSProperties } from 'react';
8
8
  import { VariantProps } from 'class-variance-authority';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
- import { IHeaderParams, ICellRendererParams } from 'ag-grid-community';
10
+ import { IHeaderParams, ICellRendererParams, GridApi } from 'ag-grid-community';
11
11
  import { AgGridReactProps, AgGridReact } from 'ag-grid-react';
12
12
 
13
13
  type BadgeTone = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'etc';
@@ -192,17 +192,21 @@ declare function PageHeader({ breadcrumb, title, fallbackTitle, description, sta
192
192
  type AgGridTableType = AgGridReactProps & {
193
193
  containerStyle?: CSSProperties;
194
194
  noRowsOverlayComponentContainerStyle?: CSSProperties;
195
+ /** 첫 데이터가 그려진 뒤 열 폭을 내용(제목·값)에 맞추고 그 비율로 남는 폭을 모든 열에 나눈다(기본 true). 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한. 열 폭을 손으로 고정하려면 false. ag-grid `autoSizeStrategy` 를 주면 그쪽을 따른다 */
196
+ fitColumnsToContent?: boolean;
195
197
  };
196
198
  /**
197
199
  * ag-grid 기반 데이터 표. 목록 화면의 본 표에 쓴다.
198
200
  *
199
201
  * 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
200
202
  * 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
201
- * 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. 글자 열이 하나뿐이면 표가 남는 폭을 150 이상 고정 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한 열만 부풀지 않는다.
203
+ * 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. flex 열이 있으면 표가 남는 폭을 150 이상 고정 글자 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한두 열만 부풀지 않는다. 첫 데이터가 그려지면 열 폭을 내용(제목·값)에 맞추고 그 비율로 남는 폭을 모든 열에 나눈다(`fitColumnsToContent`, 기본 켜짐) — 값이 짧은 열(소유자·상태)은 좁게, 긴 열(이름·설명)은 넓게. 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한으로 남는다.
202
204
  */
203
205
  declare const AgGridTable: React.ForwardRefExoticComponent<AgGridReactProps<any> & {
204
206
  containerStyle?: CSSProperties;
205
207
  noRowsOverlayComponentContainerStyle?: CSSProperties;
208
+ /** 첫 데이터가 그려진 뒤 열 폭을 내용(제목·값)에 맞추고 그 비율로 남는 폭을 모든 열에 나눈다(기본 true). 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한. 열 폭을 손으로 고정하려면 false. ag-grid `autoSizeStrategy` 를 주면 그쪽을 따른다 */
209
+ fitColumnsToContent?: boolean;
206
210
  } & React.RefAttributes<AgGridReact<any>>>;
207
211
  declare function HeaderCheckboxRenderer(props: IHeaderParams): react_jsx_runtime.JSX.Element;
208
212
  declare function RowCheckboxRenderer(params: ICellRendererParams): react_jsx_runtime.JSX.Element;
@@ -227,11 +231,13 @@ declare function withFlexFill<T>(defs: T): T;
227
231
  /** 남는 폭을 나눠 받을 고정 열의 최소 폭 — 이보다 좁은 고정 열(상태 뱃지·체크박스·동작 96~140)은 넓어지면 비어 보인다 */
228
232
  declare const BALANCED_FILL_MIN_WIDTH = 150;
229
233
  /**
230
- * 보이는 flex 열이 **하나뿐**이면 남는 폭을 그 열이 혼자 받지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
231
- * `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 그 flex 열은 `flex` 를 최소 2 로 올린다. 그러면 남는 폭이 글자 열 2 : 나머지 1 로 흩어진다.
234
+ * flex 열이 있는 표에서 남는 폭이 한두 글자 열에 몰리지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
235
+ * `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 상한 없는 flex 열이 **하나뿐**이면 그 열은 `flex` 를 최소 2 로 올린다(글자 열 2 : 나머지 1).
232
236
  * 2026-11-06 홀드아웃 21: 글자 열이 엔드포인트 하나뿐인 목록에서 그 열이 590px 가 되고 숫자 열은 좁았다("endpoint column takes up too much space",
233
- * 세 심판 → 패; 세트 2 도 "large empty gap", Opus 3건). 홀드아웃 14·17 의 "이름 열 과대" 도 같은 원인. flex 열이 없거나 둘 이상이면 그대로(같은 배열).
234
- * 앱이 이미 여러 열에 flex 를 줬으면 그 분배를 존중한다. 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
237
+ * 세 심판 → 패). 2026-11-08 홀드아웃 22(사용자 결정 ①): 글자 열이 둘(이름 `flex 2, maxWidth 480` + 데이터셋 `flex 1`)이어도 이름이 상한에 걸린 뒤 둘째
238
+ * 글자 열이 남는 폭을 다 받아 "wide empty gap"(Opus 5건) → flex 열 수와 무관하게 넓은 고정 글자 열이 나눠 받게 넓혔다. 상한 있는 flex 열은 그대로 둔다
239
+ * (분배된 열이 상한 없는 flex 가 되므로 뒤의 withFlexFill 이 상한을 떼지 않는다). flex 열이 없거나 나눠 받을 고정 열이 없으면 그대로(같은 배열).
240
+ * 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
235
241
  */
236
242
  declare function withBalancedFill<T>(defs: T): T;
237
243
  /** 폭을 안 준 number 열의 기본 폭. ag-grid 기본 200 은 숫자 열을 비어 보이게 한다(2026-10-27 홀드아웃 13 layout 지적 "wide empty area") */
@@ -245,6 +251,23 @@ declare function withTypeClasses<T>(defs: T, columnTypes: Record<string, {
245
251
  headerClass?: unknown;
246
252
  }>): T;
247
253
  declare function withHeaderMinWidth<T>(defs: T): T;
254
+ /**
255
+ * 앱이 준 `width` 를 하한(`minWidth`)으로도 쓴다 — `fitColumnsToContent` 가 열 폭을 내용에 맞춘 뒤 비율 flex 로 바꾸면 `width` 는 더 이상 쓰이지 않으므로,
256
+ * "앱이 준 폭보다 좁아지지 않는다" 를 minWidth 로 남긴다(2026-11-08 홀드아웃 23 뒤 ③). flex 열·width 없는 열·minWidth 가 이미 그 이상인 열은 같은 객체 그대로.
257
+ * 그룹 children 재귀. 바뀐 열이 없으면 같은 배열
258
+ */
259
+ declare function withWidthFloor<T>(defs: T): T;
260
+ /**
261
+ * 열 폭을 내용에 맞춘 뒤 남는 폭을 모든 열에 **내용 폭의 비율**로 나눈다 — ag-grid `autoSizeAllColumns`(제목 포함)로 각 열의 내용 폭을 재고, 그 폭을 그대로
262
+ * `flex` 값으로 준다(flex 는 비율이므로 300·120·90 이면 10 : 4 : 3). 그 뒤로는 표 폭이 바뀌어도 ag-grid 의 flex 가 같은 비율로 채운다.
263
+ * 2026-11-08 홀드아웃 23 뒤 ③(사용자 결정 A): `withBalancedFill` 의 비율 분배는 열 **수**만 보므로 값이 짧은 글자 열(소유자)이 이름 열만큼 넓어졌다
264
+ * ("담당자와 날짜 열 사이에 큰 빈 공간", 21~23 목록 Opus 2·상세 5). 앱이 준 `width`·`minWidth` 는 하한(`withWidthFloor`), `maxWidth` 는 상한으로 ag-grid 가 지킨다.
265
+ * 첫 데이터가 그려질 때 한 번만 — 페이지를 넘겨도 열이 움직이지 않는다. 사용자가 열을 끌어 늘리면 그 열은 flex 가 풀려 그 폭으로 남는다(ag-grid 규칙).
266
+ * ag-grid 의 autoSize 는 비동기다(React 셀이 다 붙을 때까지 미루고 끝나면 `columnResized` 를 `source: 'autosizeColumns', finished: true` 로 쏜다) —
267
+ * 그 이벤트를 받은 뒤에 비율을 적용한다(먼저 적용하면 autoSize 가 폭을 쓰면서 flex 를 지워 내용 폭 그대로 남고 오른쪽이 빈다).
268
+ * `AgGridTable` 이 `onFirstDataRendered` 에서 부른다(`fitColumnsToContent={false}` 로 끔)
269
+ */
270
+ declare function fitColumnsToContent(api: GridApi): void;
248
271
  interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<TRow> {
249
272
  /** 보조 줄에 보일 행 필드(점 표기 가능: 'image.tag'). 값이 없거나 빈 문자열이면 한 줄만 그린다 */
250
273
  secondaryField?: string;
@@ -261,4 +284,4 @@ interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<
261
284
  */
262
285
  declare function TwoLineCellRenderer<TRow = unknown>(params: TwoLineCellRendererParams<TRow>): react_jsx_runtime.JSX.Element;
263
286
 
264
- export { DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P, BALANCED_FILL_MIN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withBalancedFill as T, NUMBER_COLUMN_WIDTH as U, withNumberColumnWidth as V, withTypeClasses as W, withHeaderMinWidth as X, type TwoLineCellRendererParams as Y, TwoLineCellRenderer as Z, Badge as a, badgeVariants as b, type BadgeTone as c, BADGE_OUTLINE_ACCENT as d, Button as e, buttonVariants as f, type ButtonProps as g, DialogPortal as h, DialogOverlay as i, DialogTrigger as j, DialogClose as k, DialogContent as l, DialogHeader as m, DialogFooter as n, DialogTitle as o, DialogDescription as p, Drawer as q, DrawerPortal as r, DrawerOverlay as s, DrawerTrigger as t, DrawerClose as u, DrawerContent as v, DrawerHeader as w, DrawerBody as x, DrawerFooter as y, DrawerTitle as z };
287
+ export { TwoLineCellRenderer as $, DrawerDescription as A, type BadgeProps as B, type PageHeaderState as C, Dialog as D, PageHeaderProvider as E, usePageHeader as F, type PageHeaderProps as G, PageHeader as H, AgGridTable as I, HeaderCheckboxRenderer as J, type AgGridTableType as K, withExplicitSortIcons as L, withSortIconOffset as M, estimateHeaderTextWidth as N, withFlexFill as O, type PageHeaderTabItem as P, BALANCED_FILL_MIN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withBalancedFill as T, NUMBER_COLUMN_WIDTH as U, withNumberColumnWidth as V, withTypeClasses as W, withHeaderMinWidth as X, withWidthFloor as Y, fitColumnsToContent as Z, type TwoLineCellRendererParams as _, Badge as a, badgeVariants as b, type BadgeTone as c, BADGE_OUTLINE_ACCENT as d, Button as e, buttonVariants as f, type ButtonProps as g, DialogPortal as h, DialogOverlay as i, DialogTrigger as j, DialogClose as k, DialogContent as l, DialogHeader as m, DialogFooter as n, DialogTitle as o, DialogDescription as p, Drawer as q, DrawerPortal as r, DrawerOverlay as s, DrawerTrigger as t, DrawerClose as u, DrawerContent as v, DrawerHeader as w, DrawerBody as x, DrawerFooter as y, DrawerTitle as z };