@t3q-ui/design-system 1.67.3 → 1.67.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnFilterPopover.js","sources":["../../../src/components/columnFilter/ColumnFilterPopover.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Check } from 'lucide-react'\n\nimport { cn } from '../../utils/cn'\nimport {\n getTableFilterItemClassName,\n getTableFilterTextSlotClassName,\n tableFilterContentClassName,\n TableFilterLoadingItem,\n tableFilterOperatorContentClassName,\n TableFilterOperatorGlyph,\n tableFilterScrollbarClassName,\n} from '../tableFilterParts'\nimport { useColumnFilter } from './ColumnFilter'\nimport { OPERATOR_LABELS } from './types'\n\nconst FOCUS_RING_MAIN_STYLE = {\n outlineColor: 'var(--color-sys-focus-ring-main)',\n} satisfies React.CSSProperties\n\n// 공통 팝오버 컨텐츠 스타일\nconst popoverContentStyles = cn(\n 'fixed z-[var(--z-index-overlay)] rounded-medium bg-sys-background shadow-gray-small outline-none border border-sys-divider-subtler',\n 'animate-[fade-in_150ms_ease-out,zoom-in_150ms_ease-out]',\n)\n\n/** 컬럼 선택 팝오버 (2-column: 목록 + 설명) */\nexport function ColumnSelectPopover() {\n const {\n columns,\n activePopover,\n popoverTrigger,\n closePopover,\n selectColumn,\n editingFilter,\n popoverPosition,\n ids,\n columnSuggestionIndex,\n setColumnSuggestionIndex,\n autocompleteFocusMode,\n setAutocompleteFocusMode,\n } = useColumnFilter()\n const popoverRef = React.useRef<HTMLDivElement>(null)\n const columnItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n const [hoveredColumn, setHoveredColumn] = React.useState<string | null>(null)\n const [focusedColumnIndex, setFocusedColumnIndex] = React.useState(0)\n\n const hoveredColumnDef = hoveredColumn ? columns.find((c) => c.key === hoveredColumn) : null\n const hasAnyDescription = columns.some((c) => c.description)\n const isInputDriven = popoverTrigger === 'input'\n const selectedColumnIndex = Math.max(\n 0,\n editingFilter?.column ? columns.findIndex((column) => column.key === editingFilter.column) : 0,\n )\n const activeColumnIndex = isInputDriven\n ? columnSuggestionIndex >= 0\n ? columnSuggestionIndex\n : 0\n : focusedColumnIndex\n\n const focusInput = React.useCallback(() => {\n requestAnimationFrame(() => {\n document.getElementById(ids.inputId)?.focus()\n })\n }, [ids.inputId])\n\n const focusNextAfterColumn = React.useCallback(() => {\n requestAnimationFrame(() => {\n const nextElement =\n document.querySelector<HTMLInputElement>('[data-column-filter-value-input]') ??\n document.querySelector<HTMLButtonElement>('[data-operator-button]') ??\n document.getElementById(ids.inputId)\n nextElement?.focus()\n })\n }, [ids.inputId])\n\n const focusColumnItem = React.useCallback(\n (index: number) => {\n if (columns.length === 0) return\n const nextIndex = ((index % columns.length) + columns.length) % columns.length\n if (isInputDriven) {\n setAutocompleteFocusMode('option')\n setColumnSuggestionIndex(nextIndex)\n }\n setFocusedColumnIndex(nextIndex)\n setHoveredColumn(columns[nextIndex]?.key ?? null)\n requestAnimationFrame(() => {\n columnItemRefs.current[nextIndex]?.focus()\n })\n },\n [columns, isInputDriven, setAutocompleteFocusMode, setColumnSuggestionIndex],\n )\n\n const returnFocusToInput = React.useCallback(() => {\n setAutocompleteFocusMode('input')\n focusInput()\n }, [focusInput, setAutocompleteFocusMode])\n\n React.useEffect(() => {\n if (activePopover !== 'column' || columns.length === 0) return\n\n if (isInputDriven) {\n const nextIndex = columnSuggestionIndex >= 0 ? columnSuggestionIndex : 0\n setColumnSuggestionIndex(nextIndex)\n setHoveredColumn(columns[nextIndex]?.key ?? null)\n return\n }\n\n setFocusedColumnIndex(selectedColumnIndex)\n setHoveredColumn(columns[selectedColumnIndex]?.key ?? null)\n requestAnimationFrame(() => {\n columnItemRefs.current[selectedColumnIndex]?.focus()\n })\n }, [\n activePopover,\n columns,\n selectedColumnIndex,\n isInputDriven,\n columnSuggestionIndex,\n setColumnSuggestionIndex,\n ])\n\n // 열릴 때 하이라이트된 컬럼으로 스크롤 (selectContent.tsx:27-34과 같은 패턴)\n React.useEffect(() => {\n if (activePopover !== 'column') return\n requestAnimationFrame(() => {\n popoverRef.current\n ?.querySelector('[aria-selected=\"true\"]')\n ?.scrollIntoView({ block: 'nearest' })\n })\n }, [activePopover])\n\n // 외부 클릭 감지\n React.useEffect(() => {\n if (activePopover !== 'column') return\n\n const handleClickOutside = (e: MouseEvent) => {\n const target = e.target as Node | null\n if (!target) return\n if (isInputDriven && document.getElementById(ids.inputId)?.contains(target)) {\n return\n }\n if (popoverRef.current && !popoverRef.current.contains(target)) {\n closePopover()\n }\n }\n\n // 약간의 딜레이 후 이벤트 등록 (클릭으로 열린 직후 바로 닫히는 것 방지)\n const timer = setTimeout(() => {\n document.addEventListener('mousedown', handleClickOutside)\n }, 10)\n\n return () => {\n clearTimeout(timer)\n document.removeEventListener('mousedown', handleClickOutside)\n }\n }, [activePopover, closePopover, ids.inputId, isInputDriven])\n\n if (activePopover !== 'column' || !popoverPosition) return null\n\n return (\n <div\n ref={popoverRef}\n data-slot='column-select-popover'\n className={cn(popoverContentStyles, 'p-[8px]')}\n style={{\n top: popoverPosition.y + 8,\n left: popoverPosition.x,\n }}\n onMouseLeave={() => setHoveredColumn(null)}\n >\n <div className='flex gap-[4px]'>\n {/* 왼쪽: 컬럼 목록 */}\n <div\n id={ids.columnListId}\n role={isInputDriven ? 'listbox' : 'menu'}\n className={cn(\n tableFilterContentClassName,\n 'max-h-[324px] overflow-y-auto overflow-x-hidden',\n tableFilterScrollbarClassName,\n )}\n >\n {columns.map((column, index) => {\n const isSelected = editingFilter?.column === column.key\n const isActive = index === activeColumnIndex\n\n return (\n <div\n key={column.key}\n ref={(node) => {\n columnItemRefs.current[index] = node\n }}\n id={ids.getColumnOptionId(index)}\n role={isInputDriven ? 'option' : 'menuitem'}\n tabIndex={\n isInputDriven\n ? autocompleteFocusMode === 'option' && isActive\n ? 0\n : -1\n : index === focusedColumnIndex\n ? 0\n : -1\n }\n aria-selected={isInputDriven ? isActive : undefined}\n className={getTableFilterItemClassName({\n selected: isInputDriven ? isActive : isSelected,\n })}\n onMouseDown={(e) => {\n if (isInputDriven) e.preventDefault()\n }}\n onClick={() => {\n selectColumn(column.key)\n focusNextAfterColumn()\n }}\n onMouseEnter={() => {\n setHoveredColumn(column.key)\n if (isInputDriven) {\n setColumnSuggestionIndex(index)\n } else {\n setFocusedColumnIndex(index)\n }\n }}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n selectColumn(column.key)\n focusNextAfterColumn()\n return\n }\n if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {\n e.preventDefault()\n focusColumnItem(index + 1)\n return\n }\n if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {\n e.preventDefault()\n focusColumnItem(index - 1)\n return\n }\n if (e.key === 'Home') {\n e.preventDefault()\n focusColumnItem(0)\n return\n }\n if (e.key === 'End') {\n e.preventDefault()\n focusColumnItem(columns.length - 1)\n return\n }\n if (e.key === 'Escape') {\n e.preventDefault()\n closePopover()\n returnFocusToInput()\n return\n }\n if (e.key === 'Tab') {\n closePopover()\n if (e.shiftKey) {\n e.preventDefault()\n returnFocusToInput()\n }\n return\n }\n if (\n isInputDriven &&\n e.key.length === 1 &&\n !e.metaKey &&\n !e.ctrlKey &&\n !e.altKey\n ) {\n e.preventDefault()\n returnFocusToInput()\n return\n }\n if (\n isInputDriven &&\n (e.key === 'Backspace' ||\n e.key === 'Delete' ||\n e.key === 'ArrowLeft' ||\n e.key === 'ArrowRight')\n ) {\n e.preventDefault()\n returnFocusToInput()\n }\n }}\n >\n <Check size={16} className={cn(isSelected ? 'text-primary50' : 'invisible')} />\n <span className={getTableFilterTextSlotClassName({ selected: isSelected })}>\n {column.label}\n </span>\n </div>\n )\n })}\n </div>\n\n {/* 오른쪽: 호버된 컬럼 설명 (description이 있는 컬럼이 하나라도 있을 때만) */}\n {hasAnyDescription && hoveredColumnDef?.description && (\n <div className='border-l border-sys-divider-subtler px-[16px] py-[12px] min-w-[160px] max-w-[200px]'>\n <div className='text-base-semibold text-sys-text-main pb-[4px] mb-[4px] border-b border-sys-divider-subtler'>\n {hoveredColumnDef.label}\n </div>\n <div\n className={cn(\n 'text-small-regular text-sys-text-subtler',\n 'max-h-[243px] overflow-y-auto overflow-x-hidden break-keep wrap-break-word',\n tableFilterScrollbarClassName,\n )}\n >\n {hoveredColumnDef.description}\n </div>\n </div>\n )}\n </div>\n </div>\n )\n}\n\nColumnSelectPopover.displayName = 'ColumnSelectPopover'\n\n/** 연산자 선택 팝오버 */\nexport function OperatorSelectPopover() {\n const {\n activePopover,\n closePopover,\n selectOperator,\n editingFilter,\n getOperatorsForColumn,\n popoverPosition,\n ids,\n } = useColumnFilter()\n const popoverRef = React.useRef<HTMLDivElement>(null)\n const operatorItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n const [focusedOperatorIndex, setFocusedOperatorIndex] = React.useState(0)\n\n const operators = editingFilter?.column ? getOperatorsForColumn(editingFilter.column) : []\n const selectedOperatorIndex = Math.max(\n 0,\n editingFilter?.operator ? operators.indexOf(editingFilter.operator) : 0,\n )\n\n const focusOperatorButton = React.useCallback(() => {\n requestAnimationFrame(() => {\n document.querySelector<HTMLButtonElement>('[data-operator-button]')?.focus()\n })\n }, [])\n\n const focusNextAfterOperator = React.useCallback(() => {\n requestAnimationFrame(() => {\n const nextElement =\n document.querySelector<HTMLInputElement>('[data-column-filter-value-input]') ??\n document.querySelector<HTMLButtonElement>('[data-editing-cancel-button]') ??\n document.querySelector<HTMLButtonElement>('[data-column-filter-reset-button]')\n nextElement?.focus()\n })\n }, [])\n\n const focusOperatorItem = React.useCallback(\n (index: number) => {\n if (operators.length === 0) return\n const nextIndex = (index + operators.length) % operators.length\n setFocusedOperatorIndex(nextIndex)\n requestAnimationFrame(() => {\n operatorItemRefs.current[nextIndex]?.focus()\n })\n },\n [operators.length],\n )\n\n React.useEffect(() => {\n if (activePopover !== 'operator' || operators.length === 0) return\n\n setFocusedOperatorIndex(selectedOperatorIndex)\n requestAnimationFrame(() => {\n operatorItemRefs.current[selectedOperatorIndex]?.focus()\n })\n }, [activePopover, operators.length, selectedOperatorIndex])\n\n // 외부 클릭 감지\n React.useEffect(() => {\n if (activePopover !== 'operator') return\n\n const handleClickOutside = (e: MouseEvent) => {\n if (popoverRef.current && !popoverRef.current.contains(e.target as Node)) {\n closePopover()\n }\n }\n\n const timer = setTimeout(() => {\n document.addEventListener('mousedown', handleClickOutside)\n }, 10)\n\n return () => {\n clearTimeout(timer)\n document.removeEventListener('mousedown', handleClickOutside)\n }\n }, [activePopover, closePopover])\n\n if (activePopover !== 'operator' || !popoverPosition) return null\n\n return (\n <div\n ref={popoverRef}\n data-slot='operator-select-popover'\n role='menu'\n id={ids.operatorListId}\n className={cn(popoverContentStyles, 'w-[100px] p-[8px]')}\n style={{\n top: popoverPosition.y + 8,\n left: popoverPosition.x,\n }}\n >\n <div className={tableFilterOperatorContentClassName}>\n {operators.map((operator, index) => {\n const isSelected = editingFilter?.operator === operator\n\n return (\n <div\n key={operator}\n ref={(node) => {\n operatorItemRefs.current[index] = node\n }}\n role='menuitemradio'\n id={ids.getOperatorOptionId(index)}\n tabIndex={index === focusedOperatorIndex ? 0 : -1}\n aria-checked={isSelected}\n aria-label={OPERATOR_LABELS[operator]}\n className={getTableFilterItemClassName({ kind: 'operator', selected: isSelected })}\n style={FOCUS_RING_MAIN_STYLE}\n onClick={() => {\n selectOperator(operator)\n focusNextAfterOperator()\n }}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n selectOperator(operator)\n focusNextAfterOperator()\n return\n }\n if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {\n e.preventDefault()\n focusOperatorItem(index + 1)\n return\n }\n if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {\n e.preventDefault()\n focusOperatorItem(index - 1)\n return\n }\n if (e.key === 'Home') {\n e.preventDefault()\n focusOperatorItem(0)\n return\n }\n if (e.key === 'End') {\n e.preventDefault()\n focusOperatorItem(operators.length - 1)\n return\n }\n if (e.key === 'Escape') {\n e.preventDefault()\n closePopover()\n focusOperatorButton()\n return\n }\n if (e.key === 'Tab') {\n closePopover()\n if (e.shiftKey) {\n e.preventDefault()\n focusOperatorButton()\n } else {\n e.preventDefault()\n focusNextAfterOperator()\n }\n }\n }}\n >\n <Check\n size={16}\n className={cn('absolute left-[8px]', isSelected ? 'text-primary50' : 'invisible')}\n />\n <span className='flex min-w-0 flex-1 items-center justify-center px-[4px]'>\n <TableFilterOperatorGlyph operator={operator} />\n </span>\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n\nOperatorSelectPopover.displayName = 'OperatorSelectPopover'\n\n/** 검색 자동완성 팝오버 */\nexport function SearchSuggestionPopover() {\n const {\n activePopover,\n popoverPosition,\n closePopover,\n ids,\n searchSuggestions,\n searchSuggestionIndex,\n setSearchSuggestionIndex,\n selectSearchSuggestion,\n autocompleteFocusMode,\n setAutocompleteFocusMode,\n } = useColumnFilter()\n const popoverRef = React.useRef<HTMLDivElement>(null)\n const suggestionItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n\n const focusInput = React.useCallback(() => {\n requestAnimationFrame(() => {\n document.getElementById(ids.inputId)?.focus()\n })\n }, [ids.inputId])\n\n const focusSearchItem = React.useCallback(\n (index: number) => {\n if (searchSuggestions.length === 0) return\n const nextIndex =\n ((index % searchSuggestions.length) + searchSuggestions.length) % searchSuggestions.length\n setAutocompleteFocusMode('option')\n setSearchSuggestionIndex(nextIndex)\n requestAnimationFrame(() => {\n suggestionItemRefs.current[nextIndex]?.focus()\n })\n },\n [searchSuggestions.length, setAutocompleteFocusMode, setSearchSuggestionIndex],\n )\n\n const returnFocusToInput = React.useCallback(() => {\n setAutocompleteFocusMode('input')\n focusInput()\n }, [focusInput, setAutocompleteFocusMode])\n\n // 첫 제안 선점 여부는 onSearch 유무에 따라 ColumnFilter가 결정한다 (여기서 다시 손대지 않는다)\n\n // 외부 클릭 감지\n React.useEffect(() => {\n if (activePopover !== 'search') return\n\n const handleClickOutside = (e: MouseEvent) => {\n const target = e.target as Node | null\n if (!target) return\n if (document.getElementById(ids.inputId)?.contains(target)) {\n return\n }\n if (popoverRef.current && !popoverRef.current.contains(target)) {\n closePopover()\n }\n }\n\n const timer = setTimeout(() => {\n document.addEventListener('mousedown', handleClickOutside)\n }, 10)\n\n return () => {\n clearTimeout(timer)\n document.removeEventListener('mousedown', handleClickOutside)\n }\n }, [activePopover, closePopover, ids.inputId])\n\n if (activePopover !== 'search' || searchSuggestions.length === 0 || !popoverPosition) return null\n\n return (\n <div\n ref={popoverRef}\n data-slot='search-suggestion-popover'\n className={cn(popoverContentStyles, 'w-[220px] p-[8px]')}\n style={{\n top: popoverPosition.y + 8,\n left: popoverPosition.x,\n }}\n >\n <div id={ids.searchListId} role='listbox' className={tableFilterContentClassName}>\n {searchSuggestions.map((column, index) => (\n <div\n key={column.key}\n ref={(node) => {\n suggestionItemRefs.current[index] = node\n }}\n id={ids.getSearchOptionId(index)}\n role='option'\n aria-selected={index === searchSuggestionIndex}\n tabIndex={\n autocompleteFocusMode === 'option' && index === searchSuggestionIndex ? 0 : -1\n }\n className={getTableFilterItemClassName({\n selected: index === searchSuggestionIndex,\n })}\n onClick={() => selectSearchSuggestion(column.key)}\n onMouseDown={(e) => e.preventDefault()}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n selectSearchSuggestion(column.key)\n return\n }\n if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {\n e.preventDefault()\n focusSearchItem(index + 1)\n return\n }\n if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {\n e.preventDefault()\n focusSearchItem(index - 1)\n return\n }\n if (e.key === 'Home') {\n e.preventDefault()\n focusSearchItem(0)\n return\n }\n if (e.key === 'End') {\n e.preventDefault()\n focusSearchItem(searchSuggestions.length - 1)\n return\n }\n if (e.key === 'Escape') {\n e.preventDefault()\n closePopover()\n returnFocusToInput()\n return\n }\n if (e.key === 'Tab') {\n closePopover()\n if (e.shiftKey) {\n e.preventDefault()\n returnFocusToInput()\n }\n return\n }\n if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {\n e.preventDefault()\n returnFocusToInput()\n return\n }\n if (e.key === 'Backspace' || e.key === 'Delete') {\n e.preventDefault()\n returnFocusToInput()\n }\n }}\n onMouseEnter={() => setSearchSuggestionIndex(index)}\n >\n <span className={getTableFilterTextSlotClassName()}>\n <span className='truncate'>{column.label}</span>\n <span className='ml-[4px] shrink-0 text-small-regular text-sys-text-subtler'>\n 컬럼으로 필터\n </span>\n </span>\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nSearchSuggestionPopover.displayName = 'SearchSuggestionPopover'\n\n/** 값 자동완성 팝오버 */\nexport function ValueSuggestionPopover() {\n const {\n activePopover,\n popoverPosition,\n closePopover,\n ids,\n valueSuggestions,\n valueSuggestionsLoading,\n valueSuggestionIndex,\n setValueSuggestionIndex,\n selectValueSuggestion,\n autocompleteFocusMode,\n setAutocompleteFocusMode,\n } = useColumnFilter()\n const popoverRef = React.useRef<HTMLDivElement>(null)\n const suggestionItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n\n const focusInput = React.useCallback(() => {\n requestAnimationFrame(() => {\n document.getElementById(ids.inputId)?.focus()\n })\n }, [ids.inputId])\n\n const focusValueItem = React.useCallback(\n (index: number) => {\n if (valueSuggestions.length === 0) return\n const nextIndex =\n ((index % valueSuggestions.length) + valueSuggestions.length) % valueSuggestions.length\n setAutocompleteFocusMode('option')\n setValueSuggestionIndex(nextIndex)\n requestAnimationFrame(() => {\n suggestionItemRefs.current[nextIndex]?.focus()\n })\n },\n [setAutocompleteFocusMode, setValueSuggestionIndex, valueSuggestions.length],\n )\n\n const returnFocusToInput = React.useCallback(() => {\n setAutocompleteFocusMode('input')\n focusInput()\n }, [focusInput, setAutocompleteFocusMode])\n\n // 값 팝오버는 첫 제안을 선점하지 않는다 — 입력 텍스트와 대응하지 않는 제안이 선점되면\n // 사용자가 입력한 적 없는 값이 Enter로 커밋된다. 제안 선택은 ArrowDown 이후에만 일어난다.\n\n // 외부 클릭 감지\n React.useEffect(() => {\n if (activePopover !== 'value') return\n\n const handleClickOutside = (e: MouseEvent) => {\n const target = e.target as Node | null\n if (!target) return\n if (document.getElementById(ids.inputId)?.contains(target)) {\n return\n }\n if (popoverRef.current && !popoverRef.current.contains(target)) {\n closePopover()\n }\n }\n\n const timer = setTimeout(() => {\n document.addEventListener('mousedown', handleClickOutside)\n }, 10)\n\n return () => {\n clearTimeout(timer)\n document.removeEventListener('mousedown', handleClickOutside)\n }\n }, [activePopover, closePopover, ids.inputId])\n\n if (activePopover !== 'value' || !popoverPosition) return null\n\n // 로딩 중\n if (valueSuggestionsLoading && valueSuggestions.length === 0) {\n return (\n <div\n ref={popoverRef}\n data-slot='value-suggestion-popover'\n className={cn(popoverContentStyles, 'w-[220px] p-[8px]')}\n style={{ top: popoverPosition.y + 8, left: popoverPosition.x }}\n >\n <TableFilterLoadingItem />\n </div>\n )\n }\n\n // 제안 없음\n if (valueSuggestions.length === 0) return null\n\n return (\n <div\n ref={popoverRef}\n data-slot='value-suggestion-popover'\n className={cn(\n popoverContentStyles,\n 'w-[220px] max-h-[224px] overflow-y-auto p-[8px]',\n tableFilterScrollbarClassName,\n )}\n style={{ top: popoverPosition.y + 8, left: popoverPosition.x }}\n >\n <div id={ids.valueListId} role='listbox' className={tableFilterContentClassName}>\n {valueSuggestions.map((suggestion, index) => (\n <div\n key={suggestion.value}\n ref={(node) => {\n suggestionItemRefs.current[index] = node\n }}\n id={ids.getValueOptionId(index)}\n role='option'\n aria-selected={index === valueSuggestionIndex}\n tabIndex={autocompleteFocusMode === 'option' && index === valueSuggestionIndex ? 0 : -1}\n className={getTableFilterItemClassName({\n selected: index === valueSuggestionIndex,\n })}\n onClick={() => selectValueSuggestion(suggestion.value)}\n onMouseDown={(e) => e.preventDefault()}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n selectValueSuggestion(suggestion.value)\n return\n }\n if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {\n e.preventDefault()\n focusValueItem(index + 1)\n return\n }\n if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {\n e.preventDefault()\n focusValueItem(index - 1)\n return\n }\n if (e.key === 'Home') {\n e.preventDefault()\n focusValueItem(0)\n return\n }\n if (e.key === 'End') {\n e.preventDefault()\n focusValueItem(valueSuggestions.length - 1)\n return\n }\n if (e.key === 'Escape') {\n e.preventDefault()\n closePopover()\n returnFocusToInput()\n return\n }\n if (e.key === 'Tab') {\n closePopover()\n if (e.shiftKey) {\n e.preventDefault()\n returnFocusToInput()\n }\n return\n }\n if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {\n e.preventDefault()\n returnFocusToInput()\n return\n }\n if (e.key === 'Backspace' || e.key === 'Delete') {\n e.preventDefault()\n returnFocusToInput()\n }\n }}\n onMouseEnter={() => setValueSuggestionIndex(index)}\n >\n <span className={getTableFilterTextSlotClassName()}>\n <span className='truncate'>{suggestion.label}</span>\n </span>\n </div>\n ))}\n </div>\n </div>\n )\n}\n\nValueSuggestionPopover.displayName = 'ValueSuggestionPopover'\n\n/** 통합 팝오버 래퍼 - Input과 함께 사용 */\nexport interface ColumnFilterPopoverProps {\n /** 팝오버 트리거 영역 */\n children: React.ReactNode\n /** 추가 CSS 클래스 */\n className?: string\n}\n\nexport function ColumnFilterPopover({ children, className }: ColumnFilterPopoverProps) {\n return (\n <div className={cn('relative', className)}>\n {children}\n <ColumnSelectPopover />\n <OperatorSelectPopover />\n <SearchSuggestionPopover />\n <ValueSuggestionPopover />\n </div>\n )\n}\n\nColumnFilterPopover.displayName = 'ColumnFilterPopover'\n"],"names":[],"mappings":";;;;;;;;AAkBA,MAAM,wBAAwB;AAAA,EAC5B,cAAc;AAChB;AAGA,MAAM,uBAAuB;AAAA,EAC3B;AAAA,EACA;AACF;AAGO,SAAS,sBAAsB;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,oBAAoB,cAAc;"}
1
+ {"version":3,"file":"ColumnFilterPopover.js","sources":["../../../src/components/columnFilter/ColumnFilterPopover.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { Check } from 'lucide-react'\n\nimport { cn } from '../../utils/cn'\nimport { Popover, PopoverAnchor, PopoverContent } from '../popover'\nimport {\n getTableFilterItemClassName,\n getTableFilterTextSlotClassName,\n tableFilterContentClassName,\n TableFilterLoadingItem,\n tableFilterOperatorContentClassName,\n TableFilterOperatorGlyph,\n tableFilterScrollbarClassName,\n} from '../tableFilterParts'\nimport { useColumnFilter } from './ColumnFilter'\nimport { type Operator, OPERATOR_LABELS } from './types'\n\nconst FOCUS_RING_MAIN_STYLE = {\n outlineColor: 'var(--color-sys-focus-ring-main)',\n} satisfies React.CSSProperties\n\n/**\n * 네 팝오버의 공통 틀. DS Popover 로 연 요소(popoverAnchor) 아래 8px, 왼쪽 맞춤에 띄운다.\n * 닫기와 그 뒤 포커스는 여기서만 정한다.\n * - 바깥을 누르면 닫는다. 연 요소는 바깥이 아니다 — 입력을 누르면 목록이 남고, 버튼을 누르면 버튼의 토글이 닫는다.\n * - Esc 는 닫고 연 요소로 포커스를 돌린다.\n * - Tab 은 닫고 연 요소 다음 칸으로, Shift+Tab 은 연 요소로 간다. 팝오버는 body 끝에 그려져서 브라우저 기본 Tab 으로는 필터로 돌아오지 못한다.\n * - 포커스가 밖으로 나가는 것만으로는 닫지 않는다. 입력에 붙은 목록은 포커스가 입력과 항목을 오가고,\n * 컬럼을 고른 뒤 다음 프레임에 값 입력으로 보내는 포커스가 그 사이 연 메뉴를 닫으면 안 된다.\n * 열 때는 포커스를 옮기지 않는다. 입력에 붙은 목록은 입력에 포커스가 남아야 하고, 메뉴는 각자 고른 항목에 포커스를 둔다.\n */\nfunction FilterPopoverContent(props: React.ComponentPropsWithoutRef<typeof PopoverContent>) {\n const { popoverAnchor: anchor, closePopover } = useColumnFilter()\n if (!anchor) return null\n\n return (\n <Popover\n open\n onOpenChange={(open) => {\n if (!open) closePopover()\n }}\n >\n <PopoverAnchor virtualRef={{ current: anchor }} />\n <PopoverContent\n align='start'\n sideOffset={8}\n // Radix 기본 role=dialog 를 지운다 — 안의 listbox·menu 가 역할을 갖는다\n role={undefined}\n onOpenAutoFocus={(e) => e.preventDefault()}\n onPointerDownOutside={(e) => {\n if (anchor.contains(e.target as Node)) e.preventDefault()\n }}\n onFocusOutside={(e) => e.preventDefault()}\n onEscapeKeyDown={() => anchor.focus()}\n onKeyDown={(e) => {\n if (e.key !== 'Tab') return\n if (e.shiftKey) e.preventDefault()\n closePopover()\n anchor.focus()\n }}\n {...props}\n />\n </Popover>\n )\n}\n\n/** 이 필터의 입력(검색 입력, 편집 중이면 값 입력)으로 포커스를 돌린다. 다음 프레임 — 고른 항목이 사라진 뒤 */\nfunction useFocusInput() {\n const { ids, setAutocompleteFocusMode } = useColumnFilter()\n return React.useCallback(() => {\n setAutocompleteFocusMode('input')\n requestAnimationFrame(() => document.getElementById(ids.inputId)?.focus())\n }, [ids.inputId, setAutocompleteFocusMode])\n}\n\n/** 화살표·Home·End 가 옮겨 갈 항목 — 결과는 끝에서 처음으로 돌려 쓴다 */\nconst LIST_MOVES = new Map<string, (index: number, count: number) => number>([\n ['ArrowDown', (index) => index + 1],\n ['ArrowRight', (index) => index + 1],\n ['ArrowUp', (index) => index - 1],\n ['ArrowLeft', (index) => index - 1],\n ['Home', () => 0],\n ['End', (_, count) => count - 1],\n])\n\n/**\n * 목록 항목의 키 — 네 팝오버가 같다. Enter·Space 는 고르고, 화살표·Home·End 는 옮긴다(끝에서 처음으로 돈다).\n * backToInput 을 주면(입력에 붙은 목록) 글자·지우기 키는 입력으로 돌려보낸다 — 그 키 자체는 삼킨다.\n * Esc·Tab 은 FilterPopoverContent 가 받는다.\n */\nfunction handleListItemKeyDown(\n e: React.KeyboardEvent,\n {\n index,\n count,\n choose,\n moveTo,\n backToInput,\n }: {\n index: number\n count: number\n choose: () => void\n moveTo: (index: number) => void\n backToInput?: () => void\n },\n) {\n const move = LIST_MOVES.get(e.key)\n const typed =\n e.key === 'Backspace' ||\n e.key === 'Delete' ||\n (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey)\n\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault()\n choose()\n } else if (move) {\n e.preventDefault()\n moveTo((move(index, count) + count) % count)\n } else if (backToInput && typed) {\n e.preventDefault()\n backToInput()\n }\n}\n\n/** 컬럼 선택 팝오버 (2-column: 목록 + 설명) */\nexport function ColumnSelectPopover() {\n const {\n columns,\n activePopover,\n popoverTrigger,\n selectColumn,\n editingFilter,\n ids,\n columnSuggestionIndex,\n setColumnSuggestionIndex,\n autocompleteFocusMode,\n setAutocompleteFocusMode,\n } = useColumnFilter()\n const focusInput = useFocusInput()\n const listRef = React.useRef<HTMLDivElement>(null)\n const columnItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n const [hoveredColumn, setHoveredColumn] = React.useState<string | null>(null)\n const [focusedColumnIndex, setFocusedColumnIndex] = React.useState(0)\n\n const hoveredColumnDef = hoveredColumn ? columns.find((c) => c.key === hoveredColumn) : null\n const hasAnyDescription = columns.some((c) => c.description)\n const isInputDriven = popoverTrigger === 'input'\n const selectedColumnIndex = Math.max(\n 0,\n editingFilter?.column ? columns.findIndex((column) => column.key === editingFilter.column) : 0,\n )\n const activeColumnIndex = isInputDriven\n ? columnSuggestionIndex >= 0\n ? columnSuggestionIndex\n : 0\n : focusedColumnIndex\n\n const focusColumnItem = React.useCallback(\n (index: number) => {\n if (isInputDriven) {\n setAutocompleteFocusMode('option')\n setColumnSuggestionIndex(index)\n }\n setFocusedColumnIndex(index)\n setHoveredColumn(columns[index]?.key ?? null)\n requestAnimationFrame(() => {\n columnItemRefs.current[index]?.focus()\n })\n },\n [columns, isInputDriven, setAutocompleteFocusMode, setColumnSuggestionIndex],\n )\n\n const chooseColumn = (key: string) => {\n selectColumn(key)\n // 같은 컬럼을 다시 고르면 값 입력의 자동 포커스(편집 effect)가 돌지 않는다 — 여기서 보낸다\n focusInput()\n }\n\n React.useEffect(() => {\n if (activePopover !== 'column' || columns.length === 0) return\n\n if (isInputDriven) {\n const nextIndex = columnSuggestionIndex >= 0 ? columnSuggestionIndex : 0\n setColumnSuggestionIndex(nextIndex)\n setHoveredColumn(columns[nextIndex]?.key ?? null)\n return\n }\n\n setFocusedColumnIndex(selectedColumnIndex)\n setHoveredColumn(columns[selectedColumnIndex]?.key ?? null)\n requestAnimationFrame(() => {\n columnItemRefs.current[selectedColumnIndex]?.focus()\n })\n }, [\n activePopover,\n columns,\n selectedColumnIndex,\n isInputDriven,\n columnSuggestionIndex,\n setColumnSuggestionIndex,\n ])\n\n // 열릴 때 하이라이트된 컬럼으로 스크롤 (selectContent.tsx:27-34과 같은 패턴)\n React.useEffect(() => {\n if (activePopover !== 'column') return\n requestAnimationFrame(() => {\n listRef.current?.querySelector('[aria-selected=\"true\"]')?.scrollIntoView({ block: 'nearest' })\n })\n }, [activePopover])\n\n if (activePopover !== 'column') return null\n\n return (\n <FilterPopoverContent\n data-slot='column-select-popover'\n onMouseLeave={() => setHoveredColumn(null)}\n >\n <div className='flex gap-[4px]'>\n {/* 왼쪽: 컬럼 목록 */}\n <div\n ref={listRef}\n id={ids.columnListId}\n role={isInputDriven ? 'listbox' : 'menu'}\n className={cn(\n tableFilterContentClassName,\n 'max-h-[324px] overflow-y-auto overflow-x-hidden',\n tableFilterScrollbarClassName,\n )}\n >\n {columns.map((column, index) => {\n const isSelected = editingFilter?.column === column.key\n const isActive = index === activeColumnIndex\n\n return (\n <div\n key={column.key}\n ref={(node) => {\n columnItemRefs.current[index] = node\n }}\n id={ids.getColumnOptionId(index)}\n role={isInputDriven ? 'option' : 'menuitem'}\n tabIndex={\n isInputDriven\n ? autocompleteFocusMode === 'option' && isActive\n ? 0\n : -1\n : index === focusedColumnIndex\n ? 0\n : -1\n }\n aria-selected={isInputDriven ? isActive : undefined}\n className={getTableFilterItemClassName({\n selected: isInputDriven ? isActive : isSelected,\n })}\n onMouseDown={(e) => {\n if (isInputDriven) e.preventDefault()\n }}\n onClick={() => chooseColumn(column.key)}\n onMouseEnter={() => {\n setHoveredColumn(column.key)\n if (isInputDriven) {\n setColumnSuggestionIndex(index)\n } else {\n setFocusedColumnIndex(index)\n }\n }}\n onKeyDown={(e) =>\n handleListItemKeyDown(e, {\n index,\n count: columns.length,\n choose: () => chooseColumn(column.key),\n moveTo: focusColumnItem,\n backToInput: isInputDriven ? focusInput : undefined,\n })\n }\n >\n <Check size={16} className={cn(isSelected ? 'text-primary50' : 'invisible')} />\n <span className={getTableFilterTextSlotClassName({ selected: isSelected })}>\n {column.label}\n </span>\n </div>\n )\n })}\n </div>\n\n {/* 오른쪽: 호버된 컬럼 설명 (description이 있는 컬럼이 하나라도 있을 때만) */}\n {hasAnyDescription && hoveredColumnDef?.description && (\n <div className='border-l border-sys-divider-subtler px-[16px] py-[12px] min-w-[160px] max-w-[200px]'>\n <div className='text-base-semibold text-sys-text-main pb-[4px] mb-[4px] border-b border-sys-divider-subtler'>\n {hoveredColumnDef.label}\n </div>\n <div\n className={cn(\n 'text-small-regular text-sys-text-subtler',\n 'max-h-[243px] overflow-y-auto overflow-x-hidden break-keep wrap-break-word',\n tableFilterScrollbarClassName,\n )}\n >\n {hoveredColumnDef.description}\n </div>\n </div>\n )}\n </div>\n </FilterPopoverContent>\n )\n}\n\nColumnSelectPopover.displayName = 'ColumnSelectPopover'\n\n/** 연산자 선택 팝오버 */\nexport function OperatorSelectPopover() {\n const { activePopover, selectOperator, editingFilter, getOperatorsForColumn, ids } =\n useColumnFilter()\n const focusInput = useFocusInput()\n const operatorItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n const [focusedOperatorIndex, setFocusedOperatorIndex] = React.useState(0)\n\n const operators = editingFilter?.column ? getOperatorsForColumn(editingFilter.column) : []\n const selectedOperatorIndex = Math.max(\n 0,\n editingFilter?.operator ? operators.indexOf(editingFilter.operator) : 0,\n )\n\n const focusOperatorItem = React.useCallback((index: number) => {\n setFocusedOperatorIndex(index)\n requestAnimationFrame(() => {\n operatorItemRefs.current[index]?.focus()\n })\n }, [])\n\n const chooseOperator = (operator: Operator) => {\n selectOperator(operator)\n // 같은 연산자를 다시 고르면 값 입력의 자동 포커스(편집 effect)가 돌지 않는다 — 여기서 보낸다\n focusInput()\n }\n\n React.useEffect(() => {\n if (activePopover !== 'operator' || operators.length === 0) return\n\n setFocusedOperatorIndex(selectedOperatorIndex)\n requestAnimationFrame(() => {\n operatorItemRefs.current[selectedOperatorIndex]?.focus()\n })\n }, [activePopover, operators.length, selectedOperatorIndex])\n\n if (activePopover !== 'operator') return null\n\n return (\n <FilterPopoverContent\n data-slot='operator-select-popover'\n role='menu'\n id={ids.operatorListId}\n className='w-[100px]'\n >\n <div className={tableFilterOperatorContentClassName}>\n {operators.map((operator, index) => {\n const isSelected = editingFilter?.operator === operator\n\n return (\n <div\n key={operator}\n ref={(node) => {\n operatorItemRefs.current[index] = node\n }}\n role='menuitemradio'\n id={ids.getOperatorOptionId(index)}\n tabIndex={index === focusedOperatorIndex ? 0 : -1}\n aria-checked={isSelected}\n aria-label={OPERATOR_LABELS[operator]}\n className={getTableFilterItemClassName({ kind: 'operator', selected: isSelected })}\n style={FOCUS_RING_MAIN_STYLE}\n onClick={() => chooseOperator(operator)}\n onKeyDown={(e) =>\n handleListItemKeyDown(e, {\n index,\n count: operators.length,\n choose: () => chooseOperator(operator),\n moveTo: focusOperatorItem,\n })\n }\n >\n <Check\n size={16}\n className={cn('absolute left-[8px]', isSelected ? 'text-primary50' : 'invisible')}\n />\n <span className='flex min-w-0 flex-1 items-center justify-center px-[4px]'>\n <TableFilterOperatorGlyph operator={operator} />\n </span>\n </div>\n )\n })}\n </div>\n </FilterPopoverContent>\n )\n}\n\nOperatorSelectPopover.displayName = 'OperatorSelectPopover'\n\n/** 검색 자동완성 팝오버 */\nexport function SearchSuggestionPopover() {\n const {\n activePopover,\n ids,\n searchSuggestions,\n searchSuggestionIndex,\n setSearchSuggestionIndex,\n selectSearchSuggestion,\n autocompleteFocusMode,\n setAutocompleteFocusMode,\n } = useColumnFilter()\n const focusInput = useFocusInput()\n const suggestionItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n\n const focusSearchItem = React.useCallback(\n (index: number) => {\n setAutocompleteFocusMode('option')\n setSearchSuggestionIndex(index)\n requestAnimationFrame(() => {\n suggestionItemRefs.current[index]?.focus()\n })\n },\n [setAutocompleteFocusMode, setSearchSuggestionIndex],\n )\n\n // 첫 제안 선점 여부는 onSearch 유무에 따라 ColumnFilter가 결정한다 (여기서 다시 손대지 않는다)\n\n if (activePopover !== 'search' || searchSuggestions.length === 0) return null\n\n return (\n <FilterPopoverContent data-slot='search-suggestion-popover' className='w-[220px]'>\n <div id={ids.searchListId} role='listbox' className={tableFilterContentClassName}>\n {searchSuggestions.map((column, index) => (\n <div\n key={column.key}\n ref={(node) => {\n suggestionItemRefs.current[index] = node\n }}\n id={ids.getSearchOptionId(index)}\n role='option'\n aria-selected={index === searchSuggestionIndex}\n tabIndex={\n autocompleteFocusMode === 'option' && index === searchSuggestionIndex ? 0 : -1\n }\n className={getTableFilterItemClassName({\n selected: index === searchSuggestionIndex,\n })}\n onClick={() => selectSearchSuggestion(column.key)}\n onMouseDown={(e) => e.preventDefault()}\n onKeyDown={(e) =>\n handleListItemKeyDown(e, {\n index,\n count: searchSuggestions.length,\n choose: () => selectSearchSuggestion(column.key),\n moveTo: focusSearchItem,\n backToInput: focusInput,\n })\n }\n onMouseEnter={() => setSearchSuggestionIndex(index)}\n >\n <span className={getTableFilterTextSlotClassName()}>\n <span className='truncate'>{column.label}</span>\n <span className='ml-[4px] shrink-0 text-small-regular text-sys-text-subtler'>\n 컬럼으로 필터\n </span>\n </span>\n </div>\n ))}\n </div>\n </FilterPopoverContent>\n )\n}\n\nSearchSuggestionPopover.displayName = 'SearchSuggestionPopover'\n\n/** 값 자동완성 팝오버 */\nexport function ValueSuggestionPopover() {\n const {\n activePopover,\n ids,\n valueSuggestions,\n valueSuggestionsLoading,\n valueSuggestionIndex,\n setValueSuggestionIndex,\n selectValueSuggestion,\n autocompleteFocusMode,\n setAutocompleteFocusMode,\n } = useColumnFilter()\n const focusInput = useFocusInput()\n const suggestionItemRefs = React.useRef<Array<HTMLDivElement | null>>([])\n\n const focusValueItem = React.useCallback(\n (index: number) => {\n setAutocompleteFocusMode('option')\n setValueSuggestionIndex(index)\n requestAnimationFrame(() => {\n suggestionItemRefs.current[index]?.focus()\n })\n },\n [setAutocompleteFocusMode, setValueSuggestionIndex],\n )\n\n // 값 팝오버는 첫 제안을 선점하지 않는다 — 입력 텍스트와 대응하지 않는 제안이 선점되면\n // 사용자가 입력한 적 없는 값이 Enter로 커밋된다. 제안 선택은 ArrowDown 이후에만 일어난다.\n\n const loading = valueSuggestionsLoading && valueSuggestions.length === 0\n if (activePopover !== 'value' || (!loading && valueSuggestions.length === 0)) return null\n\n return (\n <FilterPopoverContent\n data-slot='value-suggestion-popover'\n className={cn('w-[220px] max-h-[224px] overflow-y-auto', tableFilterScrollbarClassName)}\n >\n {loading ? (\n <TableFilterLoadingItem />\n ) : (\n <div id={ids.valueListId} role='listbox' className={tableFilterContentClassName}>\n {valueSuggestions.map((suggestion, index) => (\n <div\n key={suggestion.value}\n ref={(node) => {\n suggestionItemRefs.current[index] = node\n }}\n id={ids.getValueOptionId(index)}\n role='option'\n aria-selected={index === valueSuggestionIndex}\n tabIndex={\n autocompleteFocusMode === 'option' && index === valueSuggestionIndex ? 0 : -1\n }\n className={getTableFilterItemClassName({\n selected: index === valueSuggestionIndex,\n })}\n onClick={() => selectValueSuggestion(suggestion.value)}\n onMouseDown={(e) => e.preventDefault()}\n onKeyDown={(e) =>\n handleListItemKeyDown(e, {\n index,\n count: valueSuggestions.length,\n choose: () => selectValueSuggestion(suggestion.value),\n moveTo: focusValueItem,\n backToInput: focusInput,\n })\n }\n onMouseEnter={() => setValueSuggestionIndex(index)}\n >\n <span className={getTableFilterTextSlotClassName()}>\n <span className='truncate'>{suggestion.label}</span>\n </span>\n </div>\n ))}\n </div>\n )}\n </FilterPopoverContent>\n )\n}\n\nValueSuggestionPopover.displayName = 'ValueSuggestionPopover'\n\n/** 통합 팝오버 래퍼 - Input과 함께 사용 */\nexport interface ColumnFilterPopoverProps {\n /** 팝오버 트리거 영역 */\n children: React.ReactNode\n /** 추가 CSS 클래스 */\n className?: string\n}\n\nexport function ColumnFilterPopover({ children, className }: ColumnFilterPopoverProps) {\n return (\n <div className={cn('relative', className)}>\n {children}\n <ColumnSelectPopover />\n <OperatorSelectPopover />\n <SearchSuggestionPopover />\n <ValueSuggestionPopover />\n </div>\n )\n}\n\nColumnFilterPopover.displayName = 'ColumnFilterPopover'\n"],"names":[],"mappings":";;;;;;;;;AAmBA,MAAM,wBAAwB;AAAA,EAC5B,cAAc;AAChB;AAYA,SAAS,qBAAqB,OAA8D;AAC1F,QAAM,EAAE,eAAe,QAAQ,aAAA,IAAiB,gBAAA;AAChD,MAAI,CAAC,OAAQ,QAAO;AAEpB,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAI;AAAA,MACJ,cAAc,CAAC,SAAS;AACtB,YAAI,CAAC,KAAM,cAAA;AAAA,MACb;AAAA,MAEA,UAAA;AAAA,QAAA,oBAAC,eAAA,EAAc,YAAY,EAAE,SAAS,UAAU;AAAA,QAChD;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,YAAY;AAAA,YAEZ,MAAM;AAAA,YACN,iBAAiB,CAAC,MAAM,EAAE,eAAA;AAAA,YAC1B,sBAAsB,CAAC,MAAM;AAC3B,kBAAI,OAAO,SAAS,EAAE,MAAc,KAAK,eAAA;AAAA,YAC3C;AAAA,YACA,gBAAgB,CAAC,MAAM,EAAE,eAAA;AAAA,YACzB,iBAAiB,MAAM,OAAO,MAAA;AAAA,YAC9B,WAAW,CAAC,MAAM;AAChB,kBAAI,EAAE,QAAQ,MAAO;AACrB,kBAAI,EAAE,SAAU,GA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B,WAAW,KAAK;AAAA,YACpD,QAAQ;AAAA,YACR,aAAa;AAAA,UAAA,CACd;AAAA,UAEH,cAAc,MAAM,wBAAwB,KAAK;AAAA,UAEjD,UAAA,oBAAC,QAAA,EAAK,WAAW,gCAAA,GACf,UAAA,oBAAC,QAAA,EAAK,WAAU,YAAY,UAAA,WAAW,MAAA,CAAM,EAAA,CAC/C;AAAA,QAAA;AAAA,QA5BK,WAAW;AAAA,MAAA,CA8BnB,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAIR;AAEA,uBAAuB,cAAc;AAU9B,SAAS,oBAAoB,EAAE,UAAU,aAAuC;AACrF,8BACG,OAAA,EAAI,WAAW,GAAG,YAAY,SAAS,GACrC,UAAA;AAAA,IAAA;AAAA,wBACA,qBAAA,EAAoB;AAAA,wBACpB,uBAAA,EAAsB;AAAA,wBACtB,yBAAA,EAAwB;AAAA,wBACxB,wBAAA,CAAA,CAAuB;AAAA,EAAA,GAC1B;AAEJ;AAEA,oBAAoB,cAAc;"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.cjs","sources":["../../../src/components/columnFilter/types.ts"],"sourcesContent":["/**\n * ColumnFilter 컴포넌트 타입 정의\n * 테이블/카드 목록 상단의 복합 검색 컴포넌트\n */\n\n// 컬럼 타입 정의\nexport type ColumnType = 'string' | 'number' | 'date' | 'select'\n\n// 문자열 연산자\nexport type StringOperator = '=' | '!=' | 'contains' | 'not_contains'\n\n// 숫자 연산자\nexport type NumberOperator = '=' | '!=' | '>' | '<' | '>=' | '<='\n\n// 통합 연산자 타입\nexport type Operator = StringOperator | NumberOperator\n\n// 컬럼 타입별 연산자 override\nexport type OperatorOverridesByType = Partial<Record<ColumnType, Operator[]>>\n\n// 컬럼 key별 연산자 override\nexport type OperatorOverridesByColumn = Partial<Record<string, Operator[]>>\n\n// 컬럼 정의\nexport interface ColumnDefinition {\n /** 컬럼 고유 키 */\n key: string\n /** 표시될 컬럼명 */\n label: string\n /** 컬럼 데이터 타입 */\n type: ColumnType\n /** select 타입일 경우 선택 옵션 */\n options?: { value: string; label: string }[]\n /** 컬럼 설명 (툴팁 등에 사용) */\n description?: string\n}\n\n// 필터 조건\nexport interface FilterCondition {\n /** 고유 ID */\n id: string\n /** 컬럼 키 */\n column: string\n /** 연산자 */\n operator: Operator\n /** 필터 값 */\n value: string | number\n}\n\n// 현재 편집 중인 필터 상태\nexport interface EditingFilter {\n /** 기존 필터 편집 시 원본 ID (신규면 undefined) */\n id?: string\n /** 선택된 컬럼 키 */\n column?: string\n /** 선택된 연산자 */\n operator?: Operator\n /** 입력 중인 값 */\n value?: string\n}\n\n// 팝오버 상태\nexport type PopoverType = 'column' | 'operator' | 'search' | 'value' | null\nexport type PopoverTrigger = 'input' | 'button' | null\nexport type AutocompleteFocusMode = 'input' | 'option'\n\n// 값 자동완성 제안 항목\nexport interface ValueSuggestion {\n /** 커밋되는 실제 값 */\n value: string\n /** 팝오버에 표시되는 텍스트 */\n label: string\n}\n\n// 팝오버 위치\nexport interface PopoverPosition {\n x: number\n y: number\n}\n\n// Context 타입\nexport interface ColumnFilterContextType {\n // 상태\n disabled?: boolean\n columns: ColumnDefinition[]\n filters: FilterCondition[]\n searchQuery: string\n\n // 현재 편집 중인 필터\n editingFilter: EditingFilter | null\n\n // 팝오버 상태\n activePopover: PopoverType\n popoverTrigger: PopoverTrigger\n popoverPosition: PopoverPosition | null\n\n // 액션\n addFilter: (filter: Omit<FilterCondition, 'id'>) => void\n removeFilter: (id: string) => void\n updateFilter: (id: string, updates: Partial<FilterCondition>) => void\n resetFilters: () => void\n setSearchQuery: (query: string) => void\n\n // 편집 액션\n selectColumn: (columnKey: string) => void\n selectOperator: (operator: Operator) => void\n setEditingValue: (value: string) => void\n commitFilter: () => void\n cancelEditing: () => void\n editExistingFilter: (id: string) => void\n\n // 편집 중인 기존 필터 ID (순서 보존용)\n editingFilterId: string | null\n\n // 팝오버 액션\n openPopover: (type: PopoverType, position?: PopoverPosition, trigger?: PopoverTrigger) => void\n closePopover: () => void\n\n // input-driven 컬럼 자동완성 상태\n columnSuggestionIndex: number\n setColumnSuggestionIndex: (index: number) => void\n autocompleteFocusMode: AutocompleteFocusMode\n setAutocompleteFocusMode: (mode: AutocompleteFocusMode) => void\n\n // 값 자동완성 상태\n valueSuggestions: ValueSuggestion[]\n valueSuggestionsLoading: boolean\n valueSuggestionIndex: number\n\n // 값 자동완성 액션\n setValueSuggestionIndex: (index: number) => void\n selectValueSuggestion: (value: string) => void\n\n // 검색 자동완성 상태\n searchSuggestions: ColumnDefinition[]\n searchSuggestionIndex: number\n\n // 검색 자동완성 액션\n setSearchSuggestionIndex: (index: number) => void\n selectSearchSuggestion: (columnKey: string) => void\n\n // 유틸리티\n getColumnByKey: (key: string) => ColumnDefinition | undefined\n getOperatorsForColumn: (columnKey: string) => Operator[]\n\n // 접근성 ID\n ids: {\n inputId: string\n columnListId: string\n operatorListId: string\n searchListId: string\n valueListId: string\n getColumnOptionId: (index: number) => string\n getOperatorOptionId: (index: number) => string\n getSearchOptionId: (index: number) => string\n getValueOptionId: (index: number) => string\n }\n}\n\n// 메인 컴포넌트 Props\nexport interface ColumnFilterProps {\n /** 필터링할 컬럼 정의 */\n columns: ColumnDefinition[]\n /** 현재 필터 조건 (controlled) */\n value?: FilterCondition[]\n /** 필터 변경 콜백 */\n onChange?: (filters: FilterCondition[]) => void\n /**\n * 통합 검색 쿼리 변경 콜백.\n *\n * 제공 여부가 검색 팝오버의 Enter 동작을 가른다.\n * - 제공: 첫 제안을 선점하지 않는다. 선택 없는 Enter는 입력 텍스트로 통합 검색을 확정한다.\n * - 미제공: 팝오버가 열리면 첫 제안이 하이라이트(`aria-activedescendant`)되어\n * ArrowDown 없는 Enter가 그 컬럼의 편집으로 진입한다. 자유 텍스트를 받을 곳이 없기 때문이다.\n */\n onSearch?: (query: string) => void\n /** 플레이스홀더 텍스트 */\n placeholder?: string\n /** 추가 CSS 클래스 */\n className?: string\n /** 비활성화 여부 */\n disabled?: boolean\n /** 값 자동완성 콜백. select 타입에 options가 있으면 무시됨 */\n getValueSuggestions?: (columnKey: string, query: string) => Promise<string[]> | string[]\n /** 컬럼 타입별 사용 가능 연산자 override. 지정하지 않으면 기본 연산자 목록을 사용한다. */\n operatorsByType?: OperatorOverridesByType\n /** 컬럼 key별 사용 가능 연산자 override. operatorsByType보다 우선한다. */\n operatorsByColumn?: OperatorOverridesByColumn\n}\n\n// 연산자 표시 라벨\nexport const OPERATOR_LABELS: Record<Operator, string> = {\n '=': '=',\n '!=': '≠',\n contains: '포함',\n not_contains: '제외',\n '>': '>',\n '<': '<',\n '>=': '≥',\n '<=': '≤',\n}\n\n// 컬럼 타입별 사용 가능 연산자\nexport const OPERATORS_BY_TYPE: Record<ColumnType, Operator[]> = {\n string: ['=', '!=', 'contains', 'not_contains'],\n number: ['=', '!=', '<', '>', '<=', '>='],\n date: ['=', '!=', '<', '>', '<=', '>='],\n select: ['=', '!='],\n}\n\n// 컬럼 타입별 기본 연산자\nexport const DEFAULT_OPERATOR_BY_TYPE: Record<ColumnType, Operator> = {\n string: 'contains',\n number: '=',\n date: '=',\n select: '=',\n}\n\nexport function isInvalidNumberFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (column?.type !== 'number' || value == null) return false\n if (typeof value === 'number') return !Number.isFinite(value)\n return value.trim().length > 0 && !Number.isFinite(Number(value))\n}\n\n/** select 컬럼에서 옵션 value 또는 label과 대소문자 무시 일치하는 옵션 */\nfunction findMatchingSelectOption(column: ColumnDefinition | undefined, value: string | number) {\n if (column?.type !== 'select' || !column.options?.length) return undefined\n const query = String(value).trim().toLowerCase()\n if (!query) return undefined\n return column.options.find(\n (option) => option.value.toLowerCase() === query || option.label.toLowerCase() === query,\n )\n}\n\n/** number 컬럼의 비숫자 값, select 컬럼의 옵션 불일치 값을 invalid로 판정한다 */\nexport function isInvalidFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (isInvalidNumberFilterValue(column, value)) return true\n if (column?.type !== 'select' || !column.options?.length || value == null) return false\n if (!String(value).trim()) return false\n return !findMatchingSelectOption(column, value)\n}\n\nexport function normalizeFilterValue(\n column: ColumnDefinition | undefined,\n value: string,\n): string | number {\n // select: 옵션 label로 입력해도 실제 value로 정규화 (불일치 값은 그대로 두고 invalid로 표시)\n if (column?.type === 'select') return findMatchingSelectOption(column, value)?.value ?? value\n if (column?.type !== 'number') return value\n const numericValue = Number(value)\n return Number.isFinite(numericValue) ? numericValue : value\n}\n"],"names":[],"mappings":";;;AA+LO,MAAM,kBAA4C;AAAA,EACvD,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AACR;AAGO,MAAM,oBAAoD;AAAA,EAC/D,QAAQ,CAAC,KAAK,MAAM,YAAY,cAAc;AAAA,EAC9C,QAAQ,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACxC,MAAM,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACtC,QAAQ,CAAC,KAAK,IAAI;AACpB;AAGO,MAAM,2BAAyD;AAAA,EACpE,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;AAEO,SAAS,2BACd,QACA,OACS;AACT,MAAI,QAAQ,SAAS,YAAY,SAAS,KAAM,QAAO;AACvD,MAAI,OAAO,UAAU,iBAAiB,CAAC,OAAO,SAAS,KAAK;AAC5D,SAAO,MAAM,KAAA,EAAO,SAAS,KAAK,CAAC,OAAO,SAAS,OAAO,KAAK,CAAC;AAClE;AAGA,SAAS,yBAAyB,QAAsC,OAAwB;AAC9F,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,OAAQ,QAAO;AACjE,QAAM,QAAQ,OAAO,KAAK,EAAE,KAAA,EAAO,YAAA;AACnC,MAAI,CAAC,MAAO,QAAO;AACnB,SAAO,OAAO,QAAQ;AAAA,IACpB,CAAC,WAAW,OAAO,MAAM,YAAA,MAAkB,SAAS,OAAO,MAAM,kBAAkB;AAAA,EAAA;AAEvF;AAGO,SAAS,qBACd,QACA,OACS;AACT,MAAI,2BAA2B,QAAQ,KAAK,EAAG,QAAO;AACtD,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,UAAU,SAAS,KAAM,QAAO;AAClF,MAAI,CAAC,OAAO,KAAK,EAAE,KAAA,EAAQ,QAAO;AAClC,SAAO,CAAC,yBAAyB,QAAQ,KAAK;AAChD;AAEO,SAAS,qBACd,QACA,OACiB;AAEjB,MAAI,QAAQ,SAAS,SAAU,QAAO,yBAAyB,QAAQ,KAAK,GAAG,SAAS;AACxF,MAAI,QAAQ,SAAS,SAAU,QAAO;AACtC,QAAM,eAAe,OAAO,KAAK;AACjC,SAAO,OAAO,SAAS,YAAY,IAAI,eAAe;AACxD;;;;;;;"}
1
+ {"version":3,"file":"types.cjs","sources":["../../../src/components/columnFilter/types.ts"],"sourcesContent":["/**\n * ColumnFilter 컴포넌트 타입 정의\n * 테이블/카드 목록 상단의 복합 검색 컴포넌트\n */\n\n// 컬럼 타입 정의\nexport type ColumnType = 'string' | 'number' | 'date' | 'select'\n\n// 문자열 연산자\nexport type StringOperator = '=' | '!=' | 'contains' | 'not_contains'\n\n// 숫자 연산자\nexport type NumberOperator = '=' | '!=' | '>' | '<' | '>=' | '<='\n\n// 통합 연산자 타입\nexport type Operator = StringOperator | NumberOperator\n\n// 컬럼 타입별 연산자 override\nexport type OperatorOverridesByType = Partial<Record<ColumnType, Operator[]>>\n\n// 컬럼 key별 연산자 override\nexport type OperatorOverridesByColumn = Partial<Record<string, Operator[]>>\n\n// 컬럼 정의\nexport interface ColumnDefinition {\n /** 컬럼 고유 키 */\n key: string\n /** 표시될 컬럼명 */\n label: string\n /** 컬럼 데이터 타입 */\n type: ColumnType\n /** select 타입일 경우 선택 옵션 */\n options?: { value: string; label: string }[]\n /** 컬럼 설명 (툴팁 등에 사용) */\n description?: string\n}\n\n// 필터 조건\nexport interface FilterCondition {\n /** 고유 ID */\n id: string\n /** 컬럼 키 */\n column: string\n /** 연산자 */\n operator: Operator\n /** 필터 값 */\n value: string | number\n}\n\n// 현재 편집 중인 필터 상태\nexport interface EditingFilter {\n /** 기존 필터 편집 시 원본 ID (신규면 undefined) */\n id?: string\n /** 선택된 컬럼 키 */\n column?: string\n /** 선택된 연산자 */\n operator?: Operator\n /** 입력 중인 값 */\n value?: string\n}\n\n// 팝오버 상태\nexport type PopoverType = 'column' | 'operator' | 'search' | 'value' | null\nexport type PopoverTrigger = 'input' | 'button' | null\nexport type AutocompleteFocusMode = 'input' | 'option'\n\n// 값 자동완성 제안 항목\nexport interface ValueSuggestion {\n /** 커밋되는 실제 값 */\n value: string\n /** 팝오버에 표시되는 텍스트 */\n label: string\n}\n\n// Context 타입\nexport interface ColumnFilterContextType {\n // 상태\n disabled?: boolean\n columns: ColumnDefinition[]\n filters: FilterCondition[]\n searchQuery: string\n\n // 현재 편집 중인 필터\n editingFilter: EditingFilter | null\n\n // 팝오버 상태\n activePopover: PopoverType\n popoverTrigger: PopoverTrigger\n /** 팝오버를 연 요소(검색·값 입력, 컬럼·연산자 버튼). 팝오버는 이 아래에 붙고, Esc·Tab 으로 닫으면 포커스가 여기로 돌아온다 */\n popoverAnchor: HTMLElement | null\n\n // 액션\n addFilter: (filter: Omit<FilterCondition, 'id'>) => void\n removeFilter: (id: string) => void\n updateFilter: (id: string, updates: Partial<FilterCondition>) => void\n resetFilters: () => void\n setSearchQuery: (query: string) => void\n\n // 편집 액션\n selectColumn: (columnKey: string) => void\n selectOperator: (operator: Operator) => void\n setEditingValue: (value: string) => void\n commitFilter: () => void\n cancelEditing: () => void\n editExistingFilter: (id: string) => void\n\n // 편집 중인 기존 필터 ID (순서 보존용)\n editingFilterId: string | null\n\n // 팝오버 액션\n openPopover: (type: PopoverType, anchor: HTMLElement, trigger?: PopoverTrigger) => void\n closePopover: () => void\n\n // input-driven 컬럼 자동완성 상태\n columnSuggestionIndex: number\n setColumnSuggestionIndex: (index: number) => void\n autocompleteFocusMode: AutocompleteFocusMode\n setAutocompleteFocusMode: (mode: AutocompleteFocusMode) => void\n\n // 값 자동완성 상태\n valueSuggestions: ValueSuggestion[]\n valueSuggestionsLoading: boolean\n valueSuggestionIndex: number\n\n // 값 자동완성 액션\n setValueSuggestionIndex: (index: number) => void\n selectValueSuggestion: (value: string) => void\n\n // 검색 자동완성 상태\n searchSuggestions: ColumnDefinition[]\n searchSuggestionIndex: number\n\n // 검색 자동완성 액션\n setSearchSuggestionIndex: (index: number) => void\n selectSearchSuggestion: (columnKey: string) => void\n\n // 유틸리티\n getColumnByKey: (key: string) => ColumnDefinition | undefined\n getOperatorsForColumn: (columnKey: string) => Operator[]\n\n // 접근성 ID\n ids: {\n inputId: string\n columnListId: string\n operatorListId: string\n searchListId: string\n valueListId: string\n getColumnOptionId: (index: number) => string\n getOperatorOptionId: (index: number) => string\n getSearchOptionId: (index: number) => string\n getValueOptionId: (index: number) => string\n }\n}\n\n// 메인 컴포넌트 Props\nexport interface ColumnFilterProps {\n /** 필터링할 컬럼 정의 */\n columns: ColumnDefinition[]\n /** 현재 필터 조건 (controlled) */\n value?: FilterCondition[]\n /** 필터 변경 콜백 */\n onChange?: (filters: FilterCondition[]) => void\n /**\n * 통합 검색 쿼리 변경 콜백.\n *\n * 제공 여부가 검색 팝오버의 Enter 동작을 가른다.\n * - 제공: 첫 제안을 선점하지 않는다. 선택 없는 Enter는 입력 텍스트로 통합 검색을 확정한다.\n * - 미제공: 팝오버가 열리면 첫 제안이 하이라이트(`aria-activedescendant`)되어\n * ArrowDown 없는 Enter가 그 컬럼의 편집으로 진입한다. 자유 텍스트를 받을 곳이 없기 때문이다.\n */\n onSearch?: (query: string) => void\n /** 플레이스홀더 텍스트 */\n placeholder?: string\n /** 추가 CSS 클래스 */\n className?: string\n /** 비활성화 여부 */\n disabled?: boolean\n /** 값 자동완성 콜백. select 타입에 options가 있으면 무시됨 */\n getValueSuggestions?: (columnKey: string, query: string) => Promise<string[]> | string[]\n /** 컬럼 타입별 사용 가능 연산자 override. 지정하지 않으면 기본 연산자 목록을 사용한다. */\n operatorsByType?: OperatorOverridesByType\n /** 컬럼 key별 사용 가능 연산자 override. operatorsByType보다 우선한다. */\n operatorsByColumn?: OperatorOverridesByColumn\n}\n\n// 연산자 표시 라벨\nexport const OPERATOR_LABELS: Record<Operator, string> = {\n '=': '=',\n '!=': '≠',\n contains: '포함',\n not_contains: '제외',\n '>': '>',\n '<': '<',\n '>=': '≥',\n '<=': '≤',\n}\n\n// 컬럼 타입별 사용 가능 연산자\nexport const OPERATORS_BY_TYPE: Record<ColumnType, Operator[]> = {\n string: ['=', '!=', 'contains', 'not_contains'],\n number: ['=', '!=', '<', '>', '<=', '>='],\n date: ['=', '!=', '<', '>', '<=', '>='],\n select: ['=', '!='],\n}\n\n// 컬럼 타입별 기본 연산자\nexport const DEFAULT_OPERATOR_BY_TYPE: Record<ColumnType, Operator> = {\n string: 'contains',\n number: '=',\n date: '=',\n select: '=',\n}\n\nexport function isInvalidNumberFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (column?.type !== 'number' || value == null) return false\n if (typeof value === 'number') return !Number.isFinite(value)\n return value.trim().length > 0 && !Number.isFinite(Number(value))\n}\n\n/** select 컬럼에서 옵션 value 또는 label과 대소문자 무시 일치하는 옵션 */\nfunction findMatchingSelectOption(column: ColumnDefinition | undefined, value: string | number) {\n if (column?.type !== 'select' || !column.options?.length) return undefined\n const query = String(value).trim().toLowerCase()\n if (!query) return undefined\n return column.options.find(\n (option) => option.value.toLowerCase() === query || option.label.toLowerCase() === query,\n )\n}\n\n/** number 컬럼의 비숫자 값, select 컬럼의 옵션 불일치 값을 invalid로 판정한다 */\nexport function isInvalidFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (isInvalidNumberFilterValue(column, value)) return true\n if (column?.type !== 'select' || !column.options?.length || value == null) return false\n if (!String(value).trim()) return false\n return !findMatchingSelectOption(column, value)\n}\n\nexport function normalizeFilterValue(\n column: ColumnDefinition | undefined,\n value: string,\n): string | number {\n // select: 옵션 label로 입력해도 실제 value로 정규화 (불일치 값은 그대로 두고 invalid로 표시)\n if (column?.type === 'select') return findMatchingSelectOption(column, value)?.value ?? value\n if (column?.type !== 'number') return value\n const numericValue = Number(value)\n return Number.isFinite(numericValue) ? numericValue : value\n}\n"],"names":[],"mappings":";;;AA0LO,MAAM,kBAA4C;AAAA,EACvD,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AACR;AAGO,MAAM,oBAAoD;AAAA,EAC/D,QAAQ,CAAC,KAAK,MAAM,YAAY,cAAc;AAAA,EAC9C,QAAQ,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACxC,MAAM,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACtC,QAAQ,CAAC,KAAK,IAAI;AACpB;AAGO,MAAM,2BAAyD;AAAA,EACpE,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;AAEO,SAAS,2BACd,QACA,OACS;AACT,MAAI,QAAQ,SAAS,YAAY,SAAS,KAAM,QAAO;AACvD,MAAI,OAAO,UAAU,iBAAiB,CAAC,OAAO,SAAS,KAAK;AAC5D,SAAO,MAAM,KAAA,EAAO,SAAS,KAAK,CAAC,OAAO,SAAS,OAAO,KAAK,CAAC;AAClE;AAGA,SAAS,yBAAyB,QAAsC,OAAwB;AAC9F,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,OAAQ,QAAO;AACjE,QAAM,QAAQ,OAAO,KAAK,EAAE,KAAA,EAAO,YAAA;AACnC,MAAI,CAAC,MAAO,QAAO;AACnB,SAAO,OAAO,QAAQ;AAAA,IACpB,CAAC,WAAW,OAAO,MAAM,YAAA,MAAkB,SAAS,OAAO,MAAM,kBAAkB;AAAA,EAAA;AAEvF;AAGO,SAAS,qBACd,QACA,OACS;AACT,MAAI,2BAA2B,QAAQ,KAAK,EAAG,QAAO;AACtD,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,UAAU,SAAS,KAAM,QAAO;AAClF,MAAI,CAAC,OAAO,KAAK,EAAE,KAAA,EAAQ,QAAO;AAClC,SAAO,CAAC,yBAAyB,QAAQ,KAAK;AAChD;AAEO,SAAS,qBACd,QACA,OACiB;AAEjB,MAAI,QAAQ,SAAS,SAAU,QAAO,yBAAyB,QAAQ,KAAK,GAAG,SAAS;AACxF,MAAI,QAAQ,SAAS,SAAU,QAAO;AACtC,QAAM,eAAe,OAAO,KAAK;AACjC,SAAO,OAAO,SAAS,YAAY,IAAI,eAAe;AACxD;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/components/columnFilter/types.ts"],"sourcesContent":["/**\n * ColumnFilter 컴포넌트 타입 정의\n * 테이블/카드 목록 상단의 복합 검색 컴포넌트\n */\n\n// 컬럼 타입 정의\nexport type ColumnType = 'string' | 'number' | 'date' | 'select'\n\n// 문자열 연산자\nexport type StringOperator = '=' | '!=' | 'contains' | 'not_contains'\n\n// 숫자 연산자\nexport type NumberOperator = '=' | '!=' | '>' | '<' | '>=' | '<='\n\n// 통합 연산자 타입\nexport type Operator = StringOperator | NumberOperator\n\n// 컬럼 타입별 연산자 override\nexport type OperatorOverridesByType = Partial<Record<ColumnType, Operator[]>>\n\n// 컬럼 key별 연산자 override\nexport type OperatorOverridesByColumn = Partial<Record<string, Operator[]>>\n\n// 컬럼 정의\nexport interface ColumnDefinition {\n /** 컬럼 고유 키 */\n key: string\n /** 표시될 컬럼명 */\n label: string\n /** 컬럼 데이터 타입 */\n type: ColumnType\n /** select 타입일 경우 선택 옵션 */\n options?: { value: string; label: string }[]\n /** 컬럼 설명 (툴팁 등에 사용) */\n description?: string\n}\n\n// 필터 조건\nexport interface FilterCondition {\n /** 고유 ID */\n id: string\n /** 컬럼 키 */\n column: string\n /** 연산자 */\n operator: Operator\n /** 필터 값 */\n value: string | number\n}\n\n// 현재 편집 중인 필터 상태\nexport interface EditingFilter {\n /** 기존 필터 편집 시 원본 ID (신규면 undefined) */\n id?: string\n /** 선택된 컬럼 키 */\n column?: string\n /** 선택된 연산자 */\n operator?: Operator\n /** 입력 중인 값 */\n value?: string\n}\n\n// 팝오버 상태\nexport type PopoverType = 'column' | 'operator' | 'search' | 'value' | null\nexport type PopoverTrigger = 'input' | 'button' | null\nexport type AutocompleteFocusMode = 'input' | 'option'\n\n// 값 자동완성 제안 항목\nexport interface ValueSuggestion {\n /** 커밋되는 실제 값 */\n value: string\n /** 팝오버에 표시되는 텍스트 */\n label: string\n}\n\n// 팝오버 위치\nexport interface PopoverPosition {\n x: number\n y: number\n}\n\n// Context 타입\nexport interface ColumnFilterContextType {\n // 상태\n disabled?: boolean\n columns: ColumnDefinition[]\n filters: FilterCondition[]\n searchQuery: string\n\n // 현재 편집 중인 필터\n editingFilter: EditingFilter | null\n\n // 팝오버 상태\n activePopover: PopoverType\n popoverTrigger: PopoverTrigger\n popoverPosition: PopoverPosition | null\n\n // 액션\n addFilter: (filter: Omit<FilterCondition, 'id'>) => void\n removeFilter: (id: string) => void\n updateFilter: (id: string, updates: Partial<FilterCondition>) => void\n resetFilters: () => void\n setSearchQuery: (query: string) => void\n\n // 편집 액션\n selectColumn: (columnKey: string) => void\n selectOperator: (operator: Operator) => void\n setEditingValue: (value: string) => void\n commitFilter: () => void\n cancelEditing: () => void\n editExistingFilter: (id: string) => void\n\n // 편집 중인 기존 필터 ID (순서 보존용)\n editingFilterId: string | null\n\n // 팝오버 액션\n openPopover: (type: PopoverType, position?: PopoverPosition, trigger?: PopoverTrigger) => void\n closePopover: () => void\n\n // input-driven 컬럼 자동완성 상태\n columnSuggestionIndex: number\n setColumnSuggestionIndex: (index: number) => void\n autocompleteFocusMode: AutocompleteFocusMode\n setAutocompleteFocusMode: (mode: AutocompleteFocusMode) => void\n\n // 값 자동완성 상태\n valueSuggestions: ValueSuggestion[]\n valueSuggestionsLoading: boolean\n valueSuggestionIndex: number\n\n // 값 자동완성 액션\n setValueSuggestionIndex: (index: number) => void\n selectValueSuggestion: (value: string) => void\n\n // 검색 자동완성 상태\n searchSuggestions: ColumnDefinition[]\n searchSuggestionIndex: number\n\n // 검색 자동완성 액션\n setSearchSuggestionIndex: (index: number) => void\n selectSearchSuggestion: (columnKey: string) => void\n\n // 유틸리티\n getColumnByKey: (key: string) => ColumnDefinition | undefined\n getOperatorsForColumn: (columnKey: string) => Operator[]\n\n // 접근성 ID\n ids: {\n inputId: string\n columnListId: string\n operatorListId: string\n searchListId: string\n valueListId: string\n getColumnOptionId: (index: number) => string\n getOperatorOptionId: (index: number) => string\n getSearchOptionId: (index: number) => string\n getValueOptionId: (index: number) => string\n }\n}\n\n// 메인 컴포넌트 Props\nexport interface ColumnFilterProps {\n /** 필터링할 컬럼 정의 */\n columns: ColumnDefinition[]\n /** 현재 필터 조건 (controlled) */\n value?: FilterCondition[]\n /** 필터 변경 콜백 */\n onChange?: (filters: FilterCondition[]) => void\n /**\n * 통합 검색 쿼리 변경 콜백.\n *\n * 제공 여부가 검색 팝오버의 Enter 동작을 가른다.\n * - 제공: 첫 제안을 선점하지 않는다. 선택 없는 Enter는 입력 텍스트로 통합 검색을 확정한다.\n * - 미제공: 팝오버가 열리면 첫 제안이 하이라이트(`aria-activedescendant`)되어\n * ArrowDown 없는 Enter가 그 컬럼의 편집으로 진입한다. 자유 텍스트를 받을 곳이 없기 때문이다.\n */\n onSearch?: (query: string) => void\n /** 플레이스홀더 텍스트 */\n placeholder?: string\n /** 추가 CSS 클래스 */\n className?: string\n /** 비활성화 여부 */\n disabled?: boolean\n /** 값 자동완성 콜백. select 타입에 options가 있으면 무시됨 */\n getValueSuggestions?: (columnKey: string, query: string) => Promise<string[]> | string[]\n /** 컬럼 타입별 사용 가능 연산자 override. 지정하지 않으면 기본 연산자 목록을 사용한다. */\n operatorsByType?: OperatorOverridesByType\n /** 컬럼 key별 사용 가능 연산자 override. operatorsByType보다 우선한다. */\n operatorsByColumn?: OperatorOverridesByColumn\n}\n\n// 연산자 표시 라벨\nexport const OPERATOR_LABELS: Record<Operator, string> = {\n '=': '=',\n '!=': '≠',\n contains: '포함',\n not_contains: '제외',\n '>': '>',\n '<': '<',\n '>=': '≥',\n '<=': '≤',\n}\n\n// 컬럼 타입별 사용 가능 연산자\nexport const OPERATORS_BY_TYPE: Record<ColumnType, Operator[]> = {\n string: ['=', '!=', 'contains', 'not_contains'],\n number: ['=', '!=', '<', '>', '<=', '>='],\n date: ['=', '!=', '<', '>', '<=', '>='],\n select: ['=', '!='],\n}\n\n// 컬럼 타입별 기본 연산자\nexport const DEFAULT_OPERATOR_BY_TYPE: Record<ColumnType, Operator> = {\n string: 'contains',\n number: '=',\n date: '=',\n select: '=',\n}\n\nexport function isInvalidNumberFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (column?.type !== 'number' || value == null) return false\n if (typeof value === 'number') return !Number.isFinite(value)\n return value.trim().length > 0 && !Number.isFinite(Number(value))\n}\n\n/** select 컬럼에서 옵션 value 또는 label과 대소문자 무시 일치하는 옵션 */\nfunction findMatchingSelectOption(column: ColumnDefinition | undefined, value: string | number) {\n if (column?.type !== 'select' || !column.options?.length) return undefined\n const query = String(value).trim().toLowerCase()\n if (!query) return undefined\n return column.options.find(\n (option) => option.value.toLowerCase() === query || option.label.toLowerCase() === query,\n )\n}\n\n/** number 컬럼의 비숫자 값, select 컬럼의 옵션 불일치 값을 invalid로 판정한다 */\nexport function isInvalidFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (isInvalidNumberFilterValue(column, value)) return true\n if (column?.type !== 'select' || !column.options?.length || value == null) return false\n if (!String(value).trim()) return false\n return !findMatchingSelectOption(column, value)\n}\n\nexport function normalizeFilterValue(\n column: ColumnDefinition | undefined,\n value: string,\n): string | number {\n // select: 옵션 label로 입력해도 실제 value로 정규화 (불일치 값은 그대로 두고 invalid로 표시)\n if (column?.type === 'select') return findMatchingSelectOption(column, value)?.value ?? value\n if (column?.type !== 'number') return value\n const numericValue = Number(value)\n return Number.isFinite(numericValue) ? numericValue : value\n}\n"],"names":[],"mappings":";AA+LO,MAAM,kBAA4C;AAAA,EACvD,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AACR;AAGO,MAAM,oBAAoD;AAAA,EAC/D,QAAQ,CAAC,KAAK,MAAM,YAAY,cAAc;AAAA,EAC9C,QAAQ,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACxC,MAAM,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACtC,QAAQ,CAAC,KAAK,IAAI;AACpB;AAGO,MAAM,2BAAyD;AAAA,EACpE,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;AAEO,SAAS,2BACd,QACA,OACS;AACT,MAAI,QAAQ,SAAS,YAAY,SAAS,KAAM,QAAO;AACvD,MAAI,OAAO,UAAU,iBAAiB,CAAC,OAAO,SAAS,KAAK;AAC5D,SAAO,MAAM,KAAA,EAAO,SAAS,KAAK,CAAC,OAAO,SAAS,OAAO,KAAK,CAAC;AAClE;AAGA,SAAS,yBAAyB,QAAsC,OAAwB;AAC9F,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,OAAQ,QAAO;AACjE,QAAM,QAAQ,OAAO,KAAK,EAAE,KAAA,EAAO,YAAA;AACnC,MAAI,CAAC,MAAO,QAAO;AACnB,SAAO,OAAO,QAAQ;AAAA,IACpB,CAAC,WAAW,OAAO,MAAM,YAAA,MAAkB,SAAS,OAAO,MAAM,kBAAkB;AAAA,EAAA;AAEvF;AAGO,SAAS,qBACd,QACA,OACS;AACT,MAAI,2BAA2B,QAAQ,KAAK,EAAG,QAAO;AACtD,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,UAAU,SAAS,KAAM,QAAO;AAClF,MAAI,CAAC,OAAO,KAAK,EAAE,KAAA,EAAQ,QAAO;AAClC,SAAO,CAAC,yBAAyB,QAAQ,KAAK;AAChD;AAEO,SAAS,qBACd,QACA,OACiB;AAEjB,MAAI,QAAQ,SAAS,SAAU,QAAO,yBAAyB,QAAQ,KAAK,GAAG,SAAS;AACxF,MAAI,QAAQ,SAAS,SAAU,QAAO;AACtC,QAAM,eAAe,OAAO,KAAK;AACjC,SAAO,OAAO,SAAS,YAAY,IAAI,eAAe;AACxD;"}
1
+ {"version":3,"file":"types.js","sources":["../../../src/components/columnFilter/types.ts"],"sourcesContent":["/**\n * ColumnFilter 컴포넌트 타입 정의\n * 테이블/카드 목록 상단의 복합 검색 컴포넌트\n */\n\n// 컬럼 타입 정의\nexport type ColumnType = 'string' | 'number' | 'date' | 'select'\n\n// 문자열 연산자\nexport type StringOperator = '=' | '!=' | 'contains' | 'not_contains'\n\n// 숫자 연산자\nexport type NumberOperator = '=' | '!=' | '>' | '<' | '>=' | '<='\n\n// 통합 연산자 타입\nexport type Operator = StringOperator | NumberOperator\n\n// 컬럼 타입별 연산자 override\nexport type OperatorOverridesByType = Partial<Record<ColumnType, Operator[]>>\n\n// 컬럼 key별 연산자 override\nexport type OperatorOverridesByColumn = Partial<Record<string, Operator[]>>\n\n// 컬럼 정의\nexport interface ColumnDefinition {\n /** 컬럼 고유 키 */\n key: string\n /** 표시될 컬럼명 */\n label: string\n /** 컬럼 데이터 타입 */\n type: ColumnType\n /** select 타입일 경우 선택 옵션 */\n options?: { value: string; label: string }[]\n /** 컬럼 설명 (툴팁 등에 사용) */\n description?: string\n}\n\n// 필터 조건\nexport interface FilterCondition {\n /** 고유 ID */\n id: string\n /** 컬럼 키 */\n column: string\n /** 연산자 */\n operator: Operator\n /** 필터 값 */\n value: string | number\n}\n\n// 현재 편집 중인 필터 상태\nexport interface EditingFilter {\n /** 기존 필터 편집 시 원본 ID (신규면 undefined) */\n id?: string\n /** 선택된 컬럼 키 */\n column?: string\n /** 선택된 연산자 */\n operator?: Operator\n /** 입력 중인 값 */\n value?: string\n}\n\n// 팝오버 상태\nexport type PopoverType = 'column' | 'operator' | 'search' | 'value' | null\nexport type PopoverTrigger = 'input' | 'button' | null\nexport type AutocompleteFocusMode = 'input' | 'option'\n\n// 값 자동완성 제안 항목\nexport interface ValueSuggestion {\n /** 커밋되는 실제 값 */\n value: string\n /** 팝오버에 표시되는 텍스트 */\n label: string\n}\n\n// Context 타입\nexport interface ColumnFilterContextType {\n // 상태\n disabled?: boolean\n columns: ColumnDefinition[]\n filters: FilterCondition[]\n searchQuery: string\n\n // 현재 편집 중인 필터\n editingFilter: EditingFilter | null\n\n // 팝오버 상태\n activePopover: PopoverType\n popoverTrigger: PopoverTrigger\n /** 팝오버를 연 요소(검색·값 입력, 컬럼·연산자 버튼). 팝오버는 이 아래에 붙고, Esc·Tab 으로 닫으면 포커스가 여기로 돌아온다 */\n popoverAnchor: HTMLElement | null\n\n // 액션\n addFilter: (filter: Omit<FilterCondition, 'id'>) => void\n removeFilter: (id: string) => void\n updateFilter: (id: string, updates: Partial<FilterCondition>) => void\n resetFilters: () => void\n setSearchQuery: (query: string) => void\n\n // 편집 액션\n selectColumn: (columnKey: string) => void\n selectOperator: (operator: Operator) => void\n setEditingValue: (value: string) => void\n commitFilter: () => void\n cancelEditing: () => void\n editExistingFilter: (id: string) => void\n\n // 편집 중인 기존 필터 ID (순서 보존용)\n editingFilterId: string | null\n\n // 팝오버 액션\n openPopover: (type: PopoverType, anchor: HTMLElement, trigger?: PopoverTrigger) => void\n closePopover: () => void\n\n // input-driven 컬럼 자동완성 상태\n columnSuggestionIndex: number\n setColumnSuggestionIndex: (index: number) => void\n autocompleteFocusMode: AutocompleteFocusMode\n setAutocompleteFocusMode: (mode: AutocompleteFocusMode) => void\n\n // 값 자동완성 상태\n valueSuggestions: ValueSuggestion[]\n valueSuggestionsLoading: boolean\n valueSuggestionIndex: number\n\n // 값 자동완성 액션\n setValueSuggestionIndex: (index: number) => void\n selectValueSuggestion: (value: string) => void\n\n // 검색 자동완성 상태\n searchSuggestions: ColumnDefinition[]\n searchSuggestionIndex: number\n\n // 검색 자동완성 액션\n setSearchSuggestionIndex: (index: number) => void\n selectSearchSuggestion: (columnKey: string) => void\n\n // 유틸리티\n getColumnByKey: (key: string) => ColumnDefinition | undefined\n getOperatorsForColumn: (columnKey: string) => Operator[]\n\n // 접근성 ID\n ids: {\n inputId: string\n columnListId: string\n operatorListId: string\n searchListId: string\n valueListId: string\n getColumnOptionId: (index: number) => string\n getOperatorOptionId: (index: number) => string\n getSearchOptionId: (index: number) => string\n getValueOptionId: (index: number) => string\n }\n}\n\n// 메인 컴포넌트 Props\nexport interface ColumnFilterProps {\n /** 필터링할 컬럼 정의 */\n columns: ColumnDefinition[]\n /** 현재 필터 조건 (controlled) */\n value?: FilterCondition[]\n /** 필터 변경 콜백 */\n onChange?: (filters: FilterCondition[]) => void\n /**\n * 통합 검색 쿼리 변경 콜백.\n *\n * 제공 여부가 검색 팝오버의 Enter 동작을 가른다.\n * - 제공: 첫 제안을 선점하지 않는다. 선택 없는 Enter는 입력 텍스트로 통합 검색을 확정한다.\n * - 미제공: 팝오버가 열리면 첫 제안이 하이라이트(`aria-activedescendant`)되어\n * ArrowDown 없는 Enter가 그 컬럼의 편집으로 진입한다. 자유 텍스트를 받을 곳이 없기 때문이다.\n */\n onSearch?: (query: string) => void\n /** 플레이스홀더 텍스트 */\n placeholder?: string\n /** 추가 CSS 클래스 */\n className?: string\n /** 비활성화 여부 */\n disabled?: boolean\n /** 값 자동완성 콜백. select 타입에 options가 있으면 무시됨 */\n getValueSuggestions?: (columnKey: string, query: string) => Promise<string[]> | string[]\n /** 컬럼 타입별 사용 가능 연산자 override. 지정하지 않으면 기본 연산자 목록을 사용한다. */\n operatorsByType?: OperatorOverridesByType\n /** 컬럼 key별 사용 가능 연산자 override. operatorsByType보다 우선한다. */\n operatorsByColumn?: OperatorOverridesByColumn\n}\n\n// 연산자 표시 라벨\nexport const OPERATOR_LABELS: Record<Operator, string> = {\n '=': '=',\n '!=': '≠',\n contains: '포함',\n not_contains: '제외',\n '>': '>',\n '<': '<',\n '>=': '≥',\n '<=': '≤',\n}\n\n// 컬럼 타입별 사용 가능 연산자\nexport const OPERATORS_BY_TYPE: Record<ColumnType, Operator[]> = {\n string: ['=', '!=', 'contains', 'not_contains'],\n number: ['=', '!=', '<', '>', '<=', '>='],\n date: ['=', '!=', '<', '>', '<=', '>='],\n select: ['=', '!='],\n}\n\n// 컬럼 타입별 기본 연산자\nexport const DEFAULT_OPERATOR_BY_TYPE: Record<ColumnType, Operator> = {\n string: 'contains',\n number: '=',\n date: '=',\n select: '=',\n}\n\nexport function isInvalidNumberFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (column?.type !== 'number' || value == null) return false\n if (typeof value === 'number') return !Number.isFinite(value)\n return value.trim().length > 0 && !Number.isFinite(Number(value))\n}\n\n/** select 컬럼에서 옵션 value 또는 label과 대소문자 무시 일치하는 옵션 */\nfunction findMatchingSelectOption(column: ColumnDefinition | undefined, value: string | number) {\n if (column?.type !== 'select' || !column.options?.length) return undefined\n const query = String(value).trim().toLowerCase()\n if (!query) return undefined\n return column.options.find(\n (option) => option.value.toLowerCase() === query || option.label.toLowerCase() === query,\n )\n}\n\n/** number 컬럼의 비숫자 값, select 컬럼의 옵션 불일치 값을 invalid로 판정한다 */\nexport function isInvalidFilterValue(\n column: ColumnDefinition | undefined,\n value: string | number | undefined,\n): boolean {\n if (isInvalidNumberFilterValue(column, value)) return true\n if (column?.type !== 'select' || !column.options?.length || value == null) return false\n if (!String(value).trim()) return false\n return !findMatchingSelectOption(column, value)\n}\n\nexport function normalizeFilterValue(\n column: ColumnDefinition | undefined,\n value: string,\n): string | number {\n // select: 옵션 label로 입력해도 실제 value로 정규화 (불일치 값은 그대로 두고 invalid로 표시)\n if (column?.type === 'select') return findMatchingSelectOption(column, value)?.value ?? value\n if (column?.type !== 'number') return value\n const numericValue = Number(value)\n return Number.isFinite(numericValue) ? numericValue : value\n}\n"],"names":[],"mappings":";AA0LO,MAAM,kBAA4C;AAAA,EACvD,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AAAA,EACN,MAAM;AACR;AAGO,MAAM,oBAAoD;AAAA,EAC/D,QAAQ,CAAC,KAAK,MAAM,YAAY,cAAc;AAAA,EAC9C,QAAQ,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACxC,MAAM,CAAC,KAAK,MAAM,KAAK,KAAK,MAAM,IAAI;AAAA,EACtC,QAAQ,CAAC,KAAK,IAAI;AACpB;AAGO,MAAM,2BAAyD;AAAA,EACpE,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AACV;AAEO,SAAS,2BACd,QACA,OACS;AACT,MAAI,QAAQ,SAAS,YAAY,SAAS,KAAM,QAAO;AACvD,MAAI,OAAO,UAAU,iBAAiB,CAAC,OAAO,SAAS,KAAK;AAC5D,SAAO,MAAM,KAAA,EAAO,SAAS,KAAK,CAAC,OAAO,SAAS,OAAO,KAAK,CAAC;AAClE;AAGA,SAAS,yBAAyB,QAAsC,OAAwB;AAC9F,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,OAAQ,QAAO;AACjE,QAAM,QAAQ,OAAO,KAAK,EAAE,KAAA,EAAO,YAAA;AACnC,MAAI,CAAC,MAAO,QAAO;AACnB,SAAO,OAAO,QAAQ;AAAA,IACpB,CAAC,WAAW,OAAO,MAAM,YAAA,MAAkB,SAAS,OAAO,MAAM,kBAAkB;AAAA,EAAA;AAEvF;AAGO,SAAS,qBACd,QACA,OACS;AACT,MAAI,2BAA2B,QAAQ,KAAK,EAAG,QAAO;AACtD,MAAI,QAAQ,SAAS,YAAY,CAAC,OAAO,SAAS,UAAU,SAAS,KAAM,QAAO;AAClF,MAAI,CAAC,OAAO,KAAK,EAAE,KAAA,EAAQ,QAAO;AAClC,SAAO,CAAC,yBAAyB,QAAQ,KAAK;AAChD;AAEO,SAAS,qBACd,QACA,OACiB;AAEjB,MAAI,QAAQ,SAAS,SAAU,QAAO,yBAAyB,QAAQ,KAAK,GAAG,SAAS;AACxF,MAAI,QAAQ,SAAS,SAAU,QAAO;AACtC,QAAM,eAAe,OAAO,KAAK;AACjC,SAAO,OAAO,SAAS,YAAY,IAAI,eAAe;AACxD;"}
package/dist/index.d.cts CHANGED
@@ -311,10 +311,6 @@ interface ValueSuggestion {
311
311
  /** 팝오버에 표시되는 텍스트 */
312
312
  label: string;
313
313
  }
314
- interface PopoverPosition {
315
- x: number;
316
- y: number;
317
- }
318
314
  interface ColumnFilterContextType {
319
315
  disabled?: boolean;
320
316
  columns: ColumnDefinition[];
@@ -323,7 +319,8 @@ interface ColumnFilterContextType {
323
319
  editingFilter: EditingFilter | null;
324
320
  activePopover: PopoverType;
325
321
  popoverTrigger: PopoverTrigger$1;
326
- popoverPosition: PopoverPosition | null;
322
+ /** 팝오버를 연 요소(검색·값 입력, 컬럼·연산자 버튼). 팝오버는 이 아래에 붙고, Esc·Tab 으로 닫으면 포커스가 여기로 돌아온다 */
323
+ popoverAnchor: HTMLElement | null;
327
324
  addFilter: (filter: Omit<FilterCondition, 'id'>) => void;
328
325
  removeFilter: (id: string) => void;
329
326
  updateFilter: (id: string, updates: Partial<FilterCondition>) => void;
@@ -336,7 +333,7 @@ interface ColumnFilterContextType {
336
333
  cancelEditing: () => void;
337
334
  editExistingFilter: (id: string) => void;
338
335
  editingFilterId: string | null;
339
- openPopover: (type: PopoverType, position?: PopoverPosition, trigger?: PopoverTrigger$1) => void;
336
+ openPopover: (type: PopoverType, anchor: HTMLElement, trigger?: PopoverTrigger$1) => void;
340
337
  closePopover: () => void;
341
338
  columnSuggestionIndex: number;
342
339
  setColumnSuggestionIndex: (index: number) => void;
@@ -2790,4 +2787,4 @@ declare function cn(...inputs: ClassValue[]): string;
2790
2787
  */
2791
2788
  declare function sanitizeUserText(node: React$1.ReactNode): React$1.ReactNode;
2792
2789
 
2793
- export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, MultiSelectContent, type MultiSelectContentProps, MultiSelectEmpty, type MultiSelectEmptyProps, MultiSelectGroup, type MultiSelectGroupProps, MultiSelectInput, type MultiSelectInputProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectLoading, type MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, MultiSelectSeparator, type MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, type PopoverPosition, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, cn, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, sanitizeUserText, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
2790
+ export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, MultiSelectContent, type MultiSelectContentProps, MultiSelectEmpty, type MultiSelectEmptyProps, MultiSelectGroup, type MultiSelectGroupProps, MultiSelectInput, type MultiSelectInputProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectLoading, type MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, MultiSelectSeparator, type MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, cn, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, sanitizeUserText, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
package/dist/index.d.ts CHANGED
@@ -311,10 +311,6 @@ interface ValueSuggestion {
311
311
  /** 팝오버에 표시되는 텍스트 */
312
312
  label: string;
313
313
  }
314
- interface PopoverPosition {
315
- x: number;
316
- y: number;
317
- }
318
314
  interface ColumnFilterContextType {
319
315
  disabled?: boolean;
320
316
  columns: ColumnDefinition[];
@@ -323,7 +319,8 @@ interface ColumnFilterContextType {
323
319
  editingFilter: EditingFilter | null;
324
320
  activePopover: PopoverType;
325
321
  popoverTrigger: PopoverTrigger$1;
326
- popoverPosition: PopoverPosition | null;
322
+ /** 팝오버를 연 요소(검색·값 입력, 컬럼·연산자 버튼). 팝오버는 이 아래에 붙고, Esc·Tab 으로 닫으면 포커스가 여기로 돌아온다 */
323
+ popoverAnchor: HTMLElement | null;
327
324
  addFilter: (filter: Omit<FilterCondition, 'id'>) => void;
328
325
  removeFilter: (id: string) => void;
329
326
  updateFilter: (id: string, updates: Partial<FilterCondition>) => void;
@@ -336,7 +333,7 @@ interface ColumnFilterContextType {
336
333
  cancelEditing: () => void;
337
334
  editExistingFilter: (id: string) => void;
338
335
  editingFilterId: string | null;
339
- openPopover: (type: PopoverType, position?: PopoverPosition, trigger?: PopoverTrigger$1) => void;
336
+ openPopover: (type: PopoverType, anchor: HTMLElement, trigger?: PopoverTrigger$1) => void;
340
337
  closePopover: () => void;
341
338
  columnSuggestionIndex: number;
342
339
  setColumnSuggestionIndex: (index: number) => void;
@@ -2790,4 +2787,4 @@ declare function cn(...inputs: ClassValue[]): string;
2790
2787
  */
2791
2788
  declare function sanitizeUserText(node: React$1.ReactNode): React$1.ReactNode;
2792
2789
 
2793
- export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, MultiSelectContent, type MultiSelectContentProps, MultiSelectEmpty, type MultiSelectEmptyProps, MultiSelectGroup, type MultiSelectGroupProps, MultiSelectInput, type MultiSelectInputProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectLoading, type MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, MultiSelectSeparator, type MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, type PopoverPosition, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, cn, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, sanitizeUserText, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
2790
+ export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, MultiSelectContent, type MultiSelectContentProps, MultiSelectEmpty, type MultiSelectEmptyProps, MultiSelectGroup, type MultiSelectGroupProps, MultiSelectInput, type MultiSelectInputProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectLoading, type MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, MultiSelectSeparator, type MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, cn, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, sanitizeUserText, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3q-ui/design-system",
3
- "version": "1.67.3",
3
+ "version": "1.67.4",
4
4
  "description": "T3Q Design System - React Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",