@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.
@@ -198,7 +198,7 @@ type AgGridTableType = AgGridReactProps & {
198
198
  *
199
199
  * 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
200
200
  * 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
201
- * 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열만 `flex: 1, minWidth: 200`(남는 폭을 가진다 — maxWidth 를 주면 표 오른쪽이 빈다), 숫자·날짜 열은 `width` 로.
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` 로. flex 열이 있으면 표가 남는 폭을 150 이상 고정 글자 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한두 열만 부풀지 않는다.
202
202
  */
203
203
  declare const AgGridTable: React.ForwardRefExoticComponent<AgGridReactProps<any> & {
204
204
  containerStyle?: CSSProperties;
@@ -224,6 +224,18 @@ declare function estimateHeaderTextWidth(label: string): number;
224
224
  * 끝나 빈 띠가 남는다(2026-10-28 홀드아웃 14: 이름 열 하나만 `flex: 2, maxWidth: 480` 이고 나머지가 고정 폭, "row dividers stop around 1330px",
225
225
  * Opus·Gemini). 상한 없는 flex 열이 하나라도 있거나 flex 열이 없으면 그대로(같은 배열). 런타임에 열을 숨겨 생기는 경우는 다루지 않는다 */
226
226
  declare function withFlexFill<T>(defs: T): T;
227
+ /** 남는 폭을 나눠 받을 고정 열의 최소 폭 — 이보다 좁은 고정 열(상태 뱃지·체크박스·동작 96~140)은 넓어지면 비어 보인다 */
228
+ declare const BALANCED_FILL_MIN_WIDTH = 150;
229
+ /**
230
+ * flex 열이 있는 표에서 남는 폭이 한두 글자 열에 몰리지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
231
+ * `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 상한 없는 flex 열이 **하나뿐**이면 그 열은 `flex` 를 최소 2 로 올린다(글자 열 2 : 나머지 1).
232
+ * 2026-11-06 홀드아웃 21: 글자 열이 엔드포인트 하나뿐인 목록에서 그 열이 590px 가 되고 숫자 열은 좁았다("endpoint column takes up too much space",
233
+ * 세 심판 → 패). 2026-11-08 홀드아웃 22(사용자 결정 ①): 글자 열이 둘(이름 `flex 2, maxWidth 480` + 데이터셋 `flex 1`)이어도 이름이 상한에 걸린 뒤 둘째
234
+ * 글자 열이 남는 폭을 다 받아 "wide empty gap"(Opus 5건) → flex 열 수와 무관하게 넓은 고정 글자 열이 나눠 받게 넓혔다. 상한 있는 flex 열은 그대로 둔다
235
+ * (분배된 열이 상한 없는 flex 가 되므로 뒤의 withFlexFill 이 상한을 떼지 않는다). flex 열이 없거나 나눠 받을 고정 열이 없으면 그대로(같은 배열).
236
+ * 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
237
+ */
238
+ declare function withBalancedFill<T>(defs: T): T;
227
239
  /** 폭을 안 준 number 열의 기본 폭. ag-grid 기본 200 은 숫자 열을 비어 보이게 한다(2026-10-27 홀드아웃 13 layout 지적 "wide empty area") */
228
240
  declare const NUMBER_COLUMN_WIDTH = 140;
229
241
  /** `type: 'number'` 열에 width·flex·minWidth·maxWidth 가 모두 없으면 `width: 140`(그룹 children 재귀). 폭을 하나라도 줬으면 그대로 */
@@ -251,4 +263,4 @@ interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<
251
263
  */
252
264
  declare function TwoLineCellRenderer<TRow = unknown>(params: TwoLineCellRendererParams<TRow>): react_jsx_runtime.JSX.Element;
253
265
 
254
- 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, NUMBER_COLUMN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withNumberColumnWidth as T, withTypeClasses as U, withHeaderMinWidth as V, type TwoLineCellRendererParams as W, TwoLineCellRenderer as X, 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 };
266
+ 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 };
@@ -198,7 +198,7 @@ type AgGridTableType = AgGridReactProps & {
198
198
  *
199
199
  * 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
200
200
  * 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
201
- * 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 이름 열만 `flex: 1, minWidth: 200`(남는 폭을 가진다 — maxWidth 를 주면 표 오른쪽이 빈다), 숫자·날짜 열은 `width` 로.
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` 로. flex 열이 있으면 표가 남는 폭을 150 이상 고정 글자 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한두 열만 부풀지 않는다.
202
202
  */
203
203
  declare const AgGridTable: React.ForwardRefExoticComponent<AgGridReactProps<any> & {
204
204
  containerStyle?: CSSProperties;
@@ -224,6 +224,18 @@ declare function estimateHeaderTextWidth(label: string): number;
224
224
  * 끝나 빈 띠가 남는다(2026-10-28 홀드아웃 14: 이름 열 하나만 `flex: 2, maxWidth: 480` 이고 나머지가 고정 폭, "row dividers stop around 1330px",
225
225
  * Opus·Gemini). 상한 없는 flex 열이 하나라도 있거나 flex 열이 없으면 그대로(같은 배열). 런타임에 열을 숨겨 생기는 경우는 다루지 않는다 */
226
226
  declare function withFlexFill<T>(defs: T): T;
227
+ /** 남는 폭을 나눠 받을 고정 열의 최소 폭 — 이보다 좁은 고정 열(상태 뱃지·체크박스·동작 96~140)은 넓어지면 비어 보인다 */
228
+ declare const BALANCED_FILL_MIN_WIDTH = 150;
229
+ /**
230
+ * flex 열이 있는 표에서 남는 폭이 한두 글자 열에 몰리지 않게 한다 — 폭 150 이상인 고정 열(ID·날짜·소유자처럼 글자가 드는 열, `number` 타입 제외)에
231
+ * `flex: 1, minWidth: 그 width` 를 붙이고(width 는 뗀다), 상한 없는 flex 열이 **하나뿐**이면 그 열은 `flex` 를 최소 2 로 올린다(글자 열 2 : 나머지 1).
232
+ * 2026-11-06 홀드아웃 21: 글자 열이 엔드포인트 하나뿐인 목록에서 그 열이 590px 가 되고 숫자 열은 좁았다("endpoint column takes up too much space",
233
+ * 세 심판 → 패). 2026-11-08 홀드아웃 22(사용자 결정 ①): 글자 열이 둘(이름 `flex 2, maxWidth 480` + 데이터셋 `flex 1`)이어도 이름이 상한에 걸린 뒤 둘째
234
+ * 글자 열이 남는 폭을 다 받아 "wide empty gap"(Opus 5건) → flex 열 수와 무관하게 넓은 고정 글자 열이 나눠 받게 넓혔다. 상한 있는 flex 열은 그대로 둔다
235
+ * (분배된 열이 상한 없는 flex 가 되므로 뒤의 withFlexFill 이 상한을 떼지 않는다). flex 열이 없거나 나눠 받을 고정 열이 없으면 그대로(같은 배열).
236
+ * 그룹 children 재귀, 숨긴 열(hide)은 세지 않는다
237
+ */
238
+ declare function withBalancedFill<T>(defs: T): T;
227
239
  /** 폭을 안 준 number 열의 기본 폭. ag-grid 기본 200 은 숫자 열을 비어 보이게 한다(2026-10-27 홀드아웃 13 layout 지적 "wide empty area") */
228
240
  declare const NUMBER_COLUMN_WIDTH = 140;
229
241
  /** `type: 'number'` 열에 width·flex·minWidth·maxWidth 가 모두 없으면 `width: 140`(그룹 children 재귀). 폭을 하나라도 줬으면 그대로 */
@@ -251,4 +263,4 @@ interface TwoLineCellRendererParams<TRow = unknown> extends ICellRendererParams<
251
263
  */
252
264
  declare function TwoLineCellRenderer<TRow = unknown>(params: TwoLineCellRendererParams<TRow>): react_jsx_runtime.JSX.Element;
253
265
 
254
- 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, NUMBER_COLUMN_WIDTH as Q, RowCheckboxRenderer as R, SORT_ICON_OFFSET_CLASS as S, withNumberColumnWidth as T, withTypeClasses as U, withHeaderMinWidth as V, type TwoLineCellRendererParams as W, TwoLineCellRenderer as X, 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 };
266
+ 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 };