@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 +19 -0
- package/dist/{chunk-KT6LEYWL.cjs → chunk-24IZHXNG.cjs} +49 -12
- package/dist/{chunk-KT6LEYWL.cjs.map → chunk-24IZHXNG.cjs.map} +1 -1
- package/dist/{chunk-GQFI5K5T.js → chunk-AIMWERAR.js} +48 -13
- package/dist/chunk-AIMWERAR.js.map +1 -0
- package/dist/{index-CHnIxzU2.d.cts → index-BGBKE_7M.d.cts} +14 -2
- package/dist/{index-CHnIxzU2.d.ts → index-BGBKE_7M.d.ts} +14 -2
- package/dist/index.cjs +466 -458
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/patterns/index.cjs +69 -69
- package/dist/patterns/index.d.cts +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +1 -1
- package/package.json +1 -1
- package/skills/tds/SKILL.md +2 -2
- package/skills/tds/reference/components.md +3 -3
- package/dist/chunk-GQFI5K5T.js.map +0 -1
|
@@ -2839,15 +2839,12 @@ function Pagination({
|
|
|
2839
2839
|
const n = total.toLocaleString();
|
|
2840
2840
|
const start = total === 0 ? 0 : (page - 1) * rowsPerPage + 1;
|
|
2841
2841
|
const end = total === 0 ? 0 : Math.min(page * rowsPerPage, total);
|
|
2842
|
-
return /* @__PURE__ */ jsxs(
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
"\uAC1C \uC911",
|
|
2846
|
-
" ",
|
|
2842
|
+
return /* @__PURE__ */ jsxs("span", { className: "tabular-nums", children: [
|
|
2843
|
+
n,
|
|
2844
|
+
"\uAC1C \uC911 ",
|
|
2847
2845
|
start,
|
|
2848
|
-
"
|
|
2849
|
-
end
|
|
2850
|
-
"\uBC88\uC9F8"
|
|
2846
|
+
"\u2013",
|
|
2847
|
+
end
|
|
2851
2848
|
] });
|
|
2852
2849
|
}, [total, page, rowsPerPage]);
|
|
2853
2850
|
return /* @__PURE__ */ jsxs(PaginationWrapper, { className: "relative justify-center", ...rest, children: [
|
|
@@ -3113,7 +3110,7 @@ var TablePagination = React12.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3113
3110
|
"div",
|
|
3114
3111
|
{
|
|
3115
3112
|
ref,
|
|
3116
|
-
className: cn("mt-
|
|
3113
|
+
className: cn("mt-0 flex items-center justify-center", className),
|
|
3117
3114
|
...props
|
|
3118
3115
|
}
|
|
3119
3116
|
));
|
|
@@ -4009,7 +4006,11 @@ function AgGridContent() {
|
|
|
4009
4006
|
() => withTypeClasses(
|
|
4010
4007
|
withHeaderMinWidth(
|
|
4011
4008
|
withSortIconOffset(
|
|
4012
|
-
|
|
4009
|
+
// 남는 폭 분배(2026-11-08 홀드아웃 21 뒤 결정 1): 글자 열이 하나뿐이면 ID·날짜 같은 넓은 고정 열도 flex 를 받는다 — 그 뒤 withFlexFill 이
|
|
4010
|
+
// 상한 있는 flex 열만 남았는지 본다(분배된 열은 상한이 없으므로 글자 열의 maxWidth 는 살아남는다)
|
|
4011
|
+
withExplicitSortIcons(
|
|
4012
|
+
withFlexFill(withBalancedFill(withNumberColumnWidth(restTableProps.columnDefs)))
|
|
4013
|
+
)
|
|
4013
4014
|
)
|
|
4014
4015
|
),
|
|
4015
4016
|
mergedColumnTypes
|
|
@@ -4196,6 +4197,40 @@ function withFlexFill(defs) {
|
|
|
4196
4197
|
return strip(defs);
|
|
4197
4198
|
}
|
|
4198
4199
|
var columnTypesOf = (d) => Array.isArray(d.type) ? d.type : typeof d.type === "string" ? [d.type] : [];
|
|
4200
|
+
var BALANCED_FILL_MIN_WIDTH = 150;
|
|
4201
|
+
function withBalancedFill(defs) {
|
|
4202
|
+
if (!Array.isArray(defs)) return defs;
|
|
4203
|
+
const flexCols = [];
|
|
4204
|
+
const collect = (list) => {
|
|
4205
|
+
for (const d of list) {
|
|
4206
|
+
if (!d || typeof d !== "object") continue;
|
|
4207
|
+
if (Array.isArray(d.children)) collect(d.children);
|
|
4208
|
+
else if (!d.hide && isFlex(d)) flexCols.push(d);
|
|
4209
|
+
}
|
|
4210
|
+
};
|
|
4211
|
+
collect(defs);
|
|
4212
|
+
if (flexCols.length === 0) return defs;
|
|
4213
|
+
const uncapped = flexCols.filter((d) => d.maxWidth == null);
|
|
4214
|
+
const lone = uncapped.length === 1 ? uncapped[0] : null;
|
|
4215
|
+
const share = (d) => !d.hide && !isFlex(d) && typeof d.width === "number" && d.width >= BALANCED_FILL_MIN_WIDTH && !columnTypesOf(d).includes("number");
|
|
4216
|
+
let sharedCount = 0;
|
|
4217
|
+
const walk = (list) => list.map((d) => {
|
|
4218
|
+
if (!d || typeof d !== "object") return d;
|
|
4219
|
+
const c = d;
|
|
4220
|
+
if (Array.isArray(c.children)) return { ...c, children: walk(c.children) };
|
|
4221
|
+
if (lone && c === lone) return c.flex >= 2 ? d : { ...c, flex: 2 };
|
|
4222
|
+
if (!share(c)) return d;
|
|
4223
|
+
sharedCount += 1;
|
|
4224
|
+
const { width, ...rest } = c;
|
|
4225
|
+
return {
|
|
4226
|
+
...rest,
|
|
4227
|
+
flex: 1,
|
|
4228
|
+
minWidth: Math.max(typeof c.minWidth === "number" ? c.minWidth : 0, width)
|
|
4229
|
+
};
|
|
4230
|
+
});
|
|
4231
|
+
const out = walk(defs);
|
|
4232
|
+
return sharedCount > 0 ? out : defs;
|
|
4233
|
+
}
|
|
4199
4234
|
var NUMBER_COLUMN_WIDTH = 140;
|
|
4200
4235
|
function withNumberColumnWidth(defs) {
|
|
4201
4236
|
if (!Array.isArray(defs)) return defs;
|
|
@@ -4270,6 +4305,6 @@ function TwoLineCellRenderer(params) {
|
|
|
4270
4305
|
] });
|
|
4271
4306
|
}
|
|
4272
4307
|
|
|
4273
|
-
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, IconButton, LucideIcon, NUMBER_COLUMN_CLASS, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, SortIcon, Spinner, Stack, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, alignFromClassName, badgeVariants, buttonVariants, cn, estimateHeaderTextWidth, getPaginationRange, getSortedColumnState, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, useRestoreFocusToOpener, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses };
|
|
4274
|
-
//# sourceMappingURL=chunk-
|
|
4275
|
-
//# sourceMappingURL=chunk-
|
|
4308
|
+
export { AG_GRID_LOCALE_KR, AgGridContext, AgGridTable, Alert, AlertActions, AlertDescription, AlertTitle, BADGE_OUTLINE_ACCENT, BALANCED_FILL_MIN_WIDTH, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyBoxIllustration, Form, FormControl, FormDescription, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, HeaderCheckboxRenderer, IconButton, LucideIcon, NUMBER_COLUMN_CLASS, NUMBER_COLUMN_WIDTH, PageHeader, PageHeaderProvider, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationWrapper, Panel, RowCheckboxRenderer, SORT_ICON_OFFSET_CLASS, Separator, Skeleton, SortIcon, Spinner, Stack, Table, TableBody, TableCell, TableHead, TableHeader, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoLineCellRenderer, alignFromClassName, badgeVariants, buttonVariants, cn, estimateHeaderTextWidth, getPaginationRange, getSortedColumnState, sanitizeUserText, useFormControlContext, useFormField, usePageHeader, useRestoreFocusToOpener, withBalancedFill, withExplicitSortIcons, withFlexFill, withHeaderMinWidth, withNumberColumnWidth, withSortIconOffset, withTypeClasses };
|
|
4309
|
+
//# sourceMappingURL=chunk-AIMWERAR.js.map
|
|
4310
|
+
//# sourceMappingURL=chunk-AIMWERAR.js.map
|