@gilav21/shadcn-angular-data-table 0.1.1

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gilav21-shadcn-angular-data-table.mjs","sources":["../../../packages/data-table-package/src/ui/data-table/data-table.types.ts","../../../packages/data-table-package/src/lib/utils.ts","../../../packages/data-table-package/src/ui/data-table/data-table.utils.ts","../../../packages/data-table-package/src/ui/data-table/data-table.locales.ts","../../../packages/data-table-package/src/lib/addon-slots.ts","../../../packages/data-table-package/src/ui/data-table/data-table.host.ts","../../../packages/data-table-package/src/ui/ripple.directive.ts","../../../packages/data-table-package/src/ui/spinner/spinner.component.ts","../../../packages/data-table-package/src/ui/spinner/spinner.component.html","../../../packages/data-table-package/src/ui/spinner/sub/page-spinner.component.ts","../../../packages/data-table-package/src/ui/spinner/sub/page-spinner.component.html","../../../packages/data-table-package/src/ui/skeleton/skeleton.component.ts","../../../packages/data-table-package/src/ui/button/button.component.ts","../../../packages/data-table-package/src/ui/button/button.component.html","../../../packages/data-table-package/src/lib/i18n/i18n.token.ts","../../../packages/data-table-package/src/lib/i18n/i18n.utils.ts","../../../packages/data-table-package/src/lib/i18n/index.ts","../../../packages/data-table-package/src/lib/i18n/common.locales.ts","../../../packages/data-table-package/src/ui/alert-dialog/alert-dialog.component.ts","../../../packages/data-table-package/src/lib/a11y.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-trigger.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-header.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-title.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-description.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-footer.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-action.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-cancel.component.ts","../../../packages/data-table-package/src/ui/alert-dialog/sub/alert-dialog-content.component.ts","../../../packages/data-table-package/src/ui/button/confirm-dialog.component.ts","../../../packages/data-table-package/src/ui/button/confirm.directive.ts","../../../packages/data-table-package/src/ui/icon/icon.token.ts","../../../packages/data-table-package/src/ui/icon/icon.component.ts","../../../packages/data-table-package/src/ui/icon/icon.component.html","../../../packages/data-table-package/src/ui/data-table/sub/data-table-column-header.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-column-header.component.html","../../../packages/data-table-package/src/ui/select/select.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-trigger.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-value.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-content.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-item.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-group.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-label.component.ts","../../../packages/data-table-package/src/ui/select/sub/select-separator.component.ts","../../../packages/data-table-package/src/ui/pagination/pagination.locales.ts","../../../packages/data-table-package/src/ui/pagination/pagination.component.ts","../../../packages/data-table-package/src/ui/pagination/sub/pagination-content.component.ts","../../../packages/data-table-package/src/ui/pagination/sub/pagination-item.component.ts","../../../packages/data-table-package/src/ui/pagination/sub/pagination-link.component.ts","../../../packages/data-table-package/src/ui/pagination/sub/pagination-previous.component.ts","../../../packages/data-table-package/src/ui/pagination/sub/pagination-next.component.ts","../../../packages/data-table-package/src/ui/pagination/sub/pagination-ellipsis.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-pagination.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-pagination.component.html","../../../packages/data-table-package/src/lib/touch.ts","../../../packages/data-table-package/src/ui/table/table.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-header-directive.ts","../../../packages/data-table-package/src/ui/table/sub/table-header.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-row.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-cell.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-body.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-footer.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-head.component.ts","../../../packages/data-table-package/src/ui/table/sub/table-caption.component.ts","../../../packages/data-table-package/src/lib/input-group.token.ts","../../../packages/data-table-package/src/ui/input/input.component.ts","../../../packages/data-table-package/src/ui/input/input.component.html","../../../packages/data-table-package/src/ui/checkbox/checkbox.component.ts","../../../packages/data-table-package/src/ui/checkbox/checkbox.component.html","../../../packages/data-table-package/src/lib/top-layer.ts","../../../packages/data-table-package/src/lib/i18n/calendar.locales.ts","../../../packages/data-table-package/src/ui/calendar/calendar.component.ts","../../../packages/data-table-package/src/ui/calendar/calendar.component.html","../../../packages/data-table-package/src/ui/date-picker/sub/date-range-picker.component.ts","../../../packages/data-table-package/src/ui/date-picker/sub/date-range-picker.component.html","../../../packages/data-table-package/src/ui/date-picker/date-picker.component.ts","../../../packages/data-table-package/src/ui/date-picker/date-picker.component.html","../../../packages/data-table-package/src/lib/overlay-stack.service.ts","../../../packages/data-table-package/src/ui/popover/popover.component.ts","../../../packages/data-table-package/src/ui/popover/sub/popover-trigger.component.ts","../../../packages/data-table-package/src/ui/popover/sub/popover-content.component.ts","../../../packages/data-table-package/src/ui/popover/sub/popover-close.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-filter-builder.component.ts","../../../packages/data-table-package/src/lib/component-pool.service.ts","../../../packages/data-table-package/src/ui/component-outlet.directive.ts","../../../packages/data-table-package/src/lib/ai.ts","../../../packages/data-table-package/src/ui/data-table/data-table.component.ts","../../../packages/data-table-package/src/ui/data-table/data-table.component.html","../../../packages/data-table-package/src/ui/command/command.utils.ts","../../../packages/data-table-package/src/ui/command/command.component.ts","../../../packages/data-table-package/src/ui/command/command.types.ts","../../../packages/data-table-package/src/ui/command/sub/command-input.component.ts","../../../packages/data-table-package/src/ui/command/sub/command-list.component.ts","../../../packages/data-table-package/src/ui/command/sub/command-empty.component.ts","../../../packages/data-table-package/src/ui/command/sub/command-group.component.ts","../../../packages/data-table-package/src/ui/command/sub/command-item.component.ts","../../../packages/data-table-package/src/ui/command/sub/command-separator.component.ts","../../../packages/data-table-package/src/ui/command/sub/command-shortcut.component.ts","../../../packages/data-table-package/src/ui/dialog/dialog.component.ts","../../../packages/data-table-package/src/ui/dialog/sub/dialog-trigger.component.ts","../../../packages/data-table-package/src/ui/dialog/sub/dialog-header.component.ts","../../../packages/data-table-package/src/ui/dialog/sub/dialog-title.component.ts","../../../packages/data-table-package/src/ui/dialog/sub/dialog-description.component.ts","../../../packages/data-table-package/src/ui/dialog/sub/dialog-content.component.ts","../../../packages/data-table-package/src/ui/dialog/sub/dialog-content.component.html","../../../packages/data-table-package/src/ui/dialog/sub/dialog-footer.component.ts","../../../packages/data-table-package/src/lib/shortcut-binding.service.ts","../../../packages/data-table-package/src/ui/command/sub/command-dialog.component.ts","../../../packages/data-table-package/src/ui/badge/badge.component.ts","../../../packages/data-table-package/src/ui/badge/badge.component.html","../../../packages/data-table-package/src/ui/data-table/sub/data-table-multiselect-filter.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-multiselect-filter.component.html","../../../packages/data-table-package/src/ui/data-table/sub/data-table-date-utils.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-date-filter.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-date-filter.component.html","../../../packages/data-table-package/src/ui/data-table/sub/data-table-date-range-filter.component.ts","../../../packages/data-table-package/src/ui/data-table/sub/data-table-date-range-filter.component.html","../../../packages/data-table-package/src/ui/data-table/data-table-column-builder.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-content.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-item.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-label.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-separator.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-sub.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-sub-trigger.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-sub-content.component.ts","../../../packages/data-table-package/src/ui/context-menu/context-menu.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-trigger.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-shortcut.component.ts","../../../packages/data-table-package/src/ui/context-menu/sub/context-menu-trigger.directive.ts","../../../packages/data-table-package/src/ui/data-table/addons/context-menu/context-menu.directive.ts","../../../packages/data-table-package/src/lib/parsers/xlsx.ts","../../../packages/data-table-package/src/ui/data-table/addons/export/export.locales.ts","../../../packages/data-table-package/src/ui/data-table/addons/export/export.directive.ts","../../../packages/data-table-package/src/ui/data-table/addons/pivot/pivot.utils.ts","../../../packages/data-table-package/src/ui/data-table/addons/pivot/pivot.directive.ts","../../../packages/data-table-package/src/public-api.ts","../../../packages/data-table-package/src/gilav21-shadcn-angular-data-table.ts"],"sourcesContent":["import { TemplateRef, Type } from '@angular/core';\n\nexport type SortDirection = 'asc' | 'desc' | '' | null;\n\nexport interface SortState {\n column: string;\n direction: SortDirection;\n}\n\nexport interface PaginationState {\n pageIndex: number;\n pageSize: number;\n}\n\nexport interface ColumnResizeEvent {\n columnKey: string;\n oldWidth: string;\n newWidth: string;\n}\n\nexport interface ColumnDef<T> {\n accessorKey: keyof T | string;\n accessorFn?: (row: T) => unknown;\n header: string;\n cell?: (row: T) => string;\n template?: TemplateRef<unknown>;\n headerTemplate?: TemplateRef<unknown>;\n component?: Type<unknown>;\n componentInputs?: (row: T) => Record<string, unknown>;\n componentOutputs?: (row: T) => Record<string, (event: unknown) => void>;\n enableSorting?: boolean;\n sortFn?: (a: T, b: T) => number;\n enableFiltering?: boolean;\n enableGlobalFilter?: boolean;\n filterFn?: (row: T, filterValue: unknown) => boolean;\n filterComponent?: Type<unknown>;\n filterComponentInputs?: Record<string, unknown> | (() => Record<string, unknown>);\n filterComponentOutputs?: Record<string, (event: unknown) => void>;\n sticky?: boolean;\n pin?: 'left' | 'right';\n width?: string;\n minWidth?: string;\n enableHiding?: boolean;\n enableReordering?: boolean;\n treeExpander?: boolean;\n _isTreeExpanderHost?: boolean;\n editable?: boolean;\n editComponent?: Type<unknown>;\n editTemplate?: TemplateRef<unknown>;\n /**\n * Which editor an inline edit opens. `date` uses the library's own\n * `ui-date-picker`, and writes back in whatever shape the cell already\n * held — an ISO string stays an ISO string.\n */\n editType?: 'text' | 'number' | 'select' | 'checkbox' | 'date';\n editOptions?: Array<{ label: string; value: unknown }>;\n valueSetter?: (row: T, newValue: unknown) => T;\n editValidator?: (value: unknown, row: T) => boolean | string;\n footer?: string | ((rows: T[]) => string);\n footerTemplate?: TemplateRef<unknown>;\n footerComponent?: Type<unknown>;\n aggregateFn?: AggregateFn;\n floatingFilter?: boolean;\n floatingFilterComponent?: Type<unknown>;\n floatingFilterTemplate?: TemplateRef<unknown>;\n enableCellFlash?: boolean;\n /** Conditional formatting: CSS classes applied when a predicate matches the cell value. */\n cellClassRules?: CellClassRule<T>[];\n /** Conditional formatting: inline styles derived from the cell value (e.g. text color). */\n cellStyleRules?: (value: unknown, row: T) => Record<string, string> | undefined;\n /** Heat-map background that interpolates `from`→`to` by where the value sits in `[min, max]`. */\n colorScale?: ColorScale;\n /** Inline horizontal bar whose width is the value's position in `[min, max]` (Excel data bars). */\n dataBar?: DataBar;\n /** Returns an icon to prefix the cell value, or `undefined` for none (Excel icon sets). */\n iconSet?: (value: unknown, row: T) => CellIcon | undefined;\n}\n\nexport type AggregateFn = 'sum' | 'avg' | 'count' | 'min' | 'max' | ((values: unknown[]) => string);\n\nexport interface CellClassRule<T> {\n when: (value: unknown, row: T) => boolean;\n class: string;\n}\n\nexport interface ColorScale {\n min: number;\n max: number;\n /** Color at `min` (CSS color). */\n from: string;\n /** Color at `max` (CSS color). */\n to: string;\n}\n\nexport interface DataBar {\n min: number;\n max: number;\n /** Bar fill color (CSS color). */\n color: string;\n /** Track color behind the bar; defaults to transparent. */\n track?: string;\n}\n\nexport interface CellIcon {\n /** A named icon from the `ui-icon` set (e.g. `'chevron-up'`). Takes precedence over `glyph`. */\n name?: string;\n /** A literal glyph/emoji string (e.g. `'▲'`, `'🏆'`). Used when `name` is not set. */\n glyph?: string;\n /** Extra CSS classes for the icon (e.g. color). */\n class?: string;\n}\n\n/** Resolved, value-aware formatting for a single cell. `null` when the column declares none. */\nexport interface ResolvedCellFormatting {\n class: string;\n style: Record<string, string>;\n /** `track` is `null` when the column declares no track (groove is not rendered). */\n dataBar: { width: string; color: string; track: string | null } | null;\n icon: CellIcon | null;\n}\n\nexport interface EnhancedColumnDef<T> extends ColumnDef<T> {\n _stickyLeft?: number;\n _stickyRight?: number;\n _pin?: string;\n _width: string;\n _minWidth: string;\n}\n\nexport interface CellStyleColumn {\n accessorKey?: string | number | symbol;\n sticky?: boolean;\n _stickyLeft?: number;\n _stickyRight?: number;\n _pin?: string;\n _width: string;\n _minWidth?: string;\n}\n\nexport interface CellEditEvent<T> {\n row: T;\n column: ColumnDef<T>;\n oldValue: unknown;\n newValue: unknown;\n rowIndex: number;\n}\n\n/** Emitted when an inline cell edit is rejected by the column's `editValidator`. */\nexport interface CellEditErrorEvent<T> {\n row: T;\n column: ColumnDef<T>;\n /** The rejected value the user attempted to commit. */\n value: unknown;\n rowIndex: number;\n /** Human-readable reason — the validator's returned string, or a default. */\n message: string;\n}\n\nexport interface EditingCell {\n rowIndex: number;\n columnKey: string;\n}\n\n/** Inline validation error state for the cell currently being edited. */\nexport interface CellEditError {\n rowIndex: number;\n columnKey: string;\n /** The rejected value — used to suppress duplicate error emissions. */\n value: unknown;\n message: string;\n}\n\nexport interface DataTableRowEvent<T> {\n row: T;\n index: number;\n event: MouseEvent;\n}\n\nexport interface DataTableColumnState {\n columnKey: string;\n width?: string;\n visible?: boolean;\n pin?: 'left' | 'right';\n order?: number;\n}\n\nexport type DataTableLoadingTrigger = 'initial' | 'pagination' | 'sorting' | 'filtering';\n\nexport interface DataTableLoadingVisibility {\n initial?: boolean;\n pagination?: boolean;\n sorting?: boolean;\n filtering?: boolean;\n}\n\nexport interface DataTableState<T> {\n data: T[];\n sorting: SortState;\n pagination: PaginationState;\n globalFilter: string;\n}\n\nexport interface DataTableExportOptions {\n includeHeaders?: boolean;\n onlyVisible?: boolean;\n onlyFiltered?: boolean;\n}\n\n/**\n * The current query state passed to a server-side `exportDataProvider` so it can\n * fetch ALL rows matching what the user sees — filtered and sorted, across every\n * page (not just the loaded page). Pagination is intentionally omitted: an\n * export returns the whole result set.\n */\nexport interface DataTableExportQuery {\n /** Global (search box) filter value. */\n globalFilter: string;\n /** Per-column filter values, keyed by `accessorKey`. */\n columnFilters: Record<string, unknown>;\n /** Primary sort. */\n sort: SortState;\n /** Full multi-column sort state (highest priority first); empty when unused. */\n sortStates: SortState[];\n}\n\n/**\n * Everything a server needs to answer one page of a data table.\n *\n * The mechanism for server-side mode has always been here — set `localSorting`,\n * `localPagination` and `localFiltering` to `false`, feed `data` and `total`,\n * and listen to `sortChange` / `pageChange` / `filterChange`. What was missing\n * was the *shape*: every consumer re-derived a request from six separate\n * inputs. This is that request, published once.\n *\n * It is deliberately the same vocabulary as {@link DataTableExportQuery}, which\n * is the same question asked without a page — an export returns the whole\n * result set.\n */\nexport interface DataTableQuery {\n /** Global (search box) filter value. */\n readonly globalFilter: string;\n /** Per-column filter values, keyed by `accessorKey`. */\n readonly columnFilters: Record<string, unknown>;\n /** Primary sort. */\n readonly sort: SortState;\n /** Full multi-column sort state (highest priority first); empty when unused. */\n readonly sortStates: readonly SortState[];\n /** The advanced filter tree, or `null` when the builder is unused. */\n readonly advancedFilter: FilterGroup | null;\n /** Which page, and how big. */\n readonly page: PaginationState;\n}\n\n/**\n * What a server answers a {@link DataTableQuery} with.\n *\n * `total` is the count of rows matching the filters across **every** page, not\n * the length of `rows` — it is what the pager needs to know how many pages\n * there are, and it is the single most common thing to get wrong when wiring\n * server-side mode by hand.\n */\nexport interface DataTableResult<T> {\n /** The rows for the requested page. */\n readonly rows: readonly T[];\n /** Total matching rows across all pages. */\n readonly total: number;\n}\n\n/** The schema version {@link DataTableViewState} is written at. */\nexport const DATA_TABLE_VIEW_STATE_VERSION = 1;\n\n/**\n * Everything needed to restore what a user set up — a saved view.\n *\n * `DataTableColumnState` covers width, visibility, pinning and order, which is\n * the *layout*. A named view is more than a layout: someone who saved \"My open\n * invoices\" expects the sort and the filters back too, and the page they were\n * on.\n *\n * Versioned because the consumer persists this — localStorage, a preferences\n * row — so it outlives the build that wrote it by a long way. A bare array can\n * get away without a version; a growing object cannot, because a field added\n * later would otherwise be silently absent rather than detected.\n */\nexport interface DataTableViewState {\n /** Schema version; {@link DATA_TABLE_VIEW_STATE_VERSION} at the time of writing. */\n readonly version: number;\n /** Column layout — the same shape {@link DataTableColumnState} has always had. */\n readonly columns: DataTableColumnState[];\n /** Primary sort. */\n readonly sort: SortState;\n /** Multi-column sort chain, highest priority first. */\n readonly sortStates: SortState[];\n /** Per-column filter values, keyed by `accessorKey`. */\n readonly columnFilters: Record<string, unknown>;\n /** The advanced filter tree, or `null`. */\n readonly advancedFilter: FilterGroup | null;\n /** Global (search box) filter value. */\n readonly globalFilter: string;\n /** Which page, and how big. */\n readonly pagination: PaginationState;\n}\n\nexport type FilterOperator =\n | 'equals'\n | 'notEquals'\n | 'contains'\n | 'notContains'\n | 'startsWith'\n | 'endsWith'\n | 'gt'\n | 'gte'\n | 'lt'\n | 'lte'\n | 'isEmpty'\n | 'isNotEmpty';\n\n/** A single leaf condition in an advanced-filter tree. */\nexport interface FilterCondition {\n type: 'condition';\n column: string;\n operator: FilterOperator;\n value?: unknown;\n}\n\n/** An AND/OR group of conditions and nested groups. */\nexport interface FilterGroup {\n type: 'group';\n combinator: 'and' | 'or';\n rules: FilterRule[];\n}\n\nexport type FilterRule = FilterCondition | FilterGroup;\n\nexport type SubRowSelectionMode = 'self' | 'descendants' | 'filteredDescendants';\n\nexport type SubRowFilterMode = 'includeChildren' | 'excludeChildren' | 'includeParentOnChildMatch';\n\nexport interface SubRowContext<T> {\n row: T;\n parentRow: T | null;\n parentId: string | null;\n depth: number;\n path: string[];\n isLeaf: boolean;\n childCount: number;\n}\n\nexport interface FlattenedTreeRow<T> {\n row: T;\n depth: number;\n parentId: string | null;\n parentRow: T | null;\n path: string[];\n isLeaf: boolean;\n childCount: number;\n isExpanded: boolean;\n}\n\nexport interface RowActionContext<T> {\n row: T;\n index: number;\n selected: boolean;\n depth?: number;\n isLeaf?: boolean;\n parentRow?: T | null;\n isExpanded?: boolean;\n}\n\nexport type CellFlashDirection = 'up' | 'down' | 'changed';\n\nexport interface CellRange {\n startRow: number;\n startCol: string;\n endRow: number;\n endCol: string;\n}\n\n/** Live aggregate readout for the currently selected cell range. */\nexport interface RangeAggregateStats {\n /** Total cells in the range (all columns × rows). */\n count: number;\n /** How many of those cells held a finite number. */\n numericCount: number;\n sum: string;\n avg: string;\n min: string;\n max: string;\n}\n\n/** One numeric column of a range, as a chart series. */\nexport interface RangeChartSeries {\n name: string;\n values: number[];\n}\n\n/** The selected range reshaped for charting: row labels + one series per numeric column. */\nexport interface RangeChartPayload {\n categories: string[];\n series: RangeChartSeries[];\n}\n\n/** Emitted after a clipboard grid is pasted into cells. */\nexport interface CellsPasteEvent {\n /** Top-left target of the paste. */\n startRow: number;\n startColumn: string;\n /** Rows the paste spanned (some may have been out of range). */\n rowsAffected: number;\n /** Cells successfully written. */\n cellsApplied: number;\n /** Cells rejected by a column's `editValidator`. */\n cellsRejected: number;\n}\n\n/** Emitted after an Excel-style fill-handle drag applies values to new rows. */\nexport interface FillSeriesEvent {\n /** Source range the fill pattern was read from. */\n source: { minRow: number; maxRow: number };\n /** Rows that received filled values (inclusive). */\n filled: { startRow: number; endRow: number };\n /** Column keys that were filled (only those with a `valueSetter`). */\n columnKeys: string[];\n}\n\nexport type RowDragPosition = 'above' | 'below' | 'on';\n\nexport interface RowReorderEvent<T> {\n row: T;\n targetRow: T;\n position: RowDragPosition;\n previousId: string | null;\n nextId: string | null;\n parentId?: string | null;\n fromIndex: number;\n toIndex: number;\n}\n\nexport interface VirtualRenderRange {\n rowStart: number;\n rowEnd: number;\n colStart: number;\n colEnd: number;\n}\n\nexport interface VirtualAutoThreshold {\n rows: number;\n columns: number;\n}\n\nexport interface VirtualScrollState2D {\n rowStart: number;\n rowEnd: number;\n columnStart: number;\n columnEnd: number;\n totalRows: number;\n totalColumns: number;\n scrollTop: number;\n scrollLeft: number;\n}\n\nexport interface GroupRow {\n kind: 'group';\n groupKey: string;\n groupValue: unknown;\n count: number;\n aggregates: Map<string, string>;\n collapsed: boolean;\n}\n\nexport type DataTableDisplayRow<T> =\n | GroupRow\n | { kind: 'data'; row: T };\n","import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Utility function for merging Tailwind CSS classes with proper precedence\n */\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n\n/**\n * Coerce an arbitrary value to a display string without ever emitting the\n * `[object Object]` default object stringification: primitives use their own\n * `toString`, objects are JSON-serialized. Avoids `String(unknown)` so it\n * satisfies SonarQube S6551 (no base-to-string) without a type assertion.\n */\nexport function stringifyValue(value: unknown): string {\n switch (typeof value) {\n case 'string':\n return value;\n case 'number':\n case 'boolean':\n case 'bigint':\n case 'symbol':\n return value.toString();\n default:\n return value == null ? '' : JSON.stringify(value);\n }\n}\n\n/**\n * Check if the current direction is RTL by reading the computed style of the element.\n * This allows components to detect RTL without needing an explicit input.\n */\nexport function isRtl(el: HTMLElement): boolean {\n return getComputedStyle(el).direction === 'rtl';\n}\n\n/**\n * Returns the bounding rect of the nearest ancestor that clips overflow\n * (overflow: hidden | auto | scroll | clip on either axis).\n * Falls back to the full viewport rect when no such ancestor exists.\n *\n * Use this instead of `window.innerWidth/innerHeight` when calculating\n * popup collision boundaries so that containers like sidebars or\n * fixed-height scroll panes are respected.\n */\nexport function getClippingRect(element: HTMLElement): DOMRect {\n let parent = element.parentElement;\n while (parent && parent !== document.documentElement) {\n const style = globalThis.window?.getComputedStyle(parent);\n if (\n style &&\n (/^(hidden|auto|scroll|clip)$/.test(style.overflowX) ||\n /^(hidden|auto|scroll|clip)$/.test(style.overflowY))\n ) {\n return parent.getBoundingClientRect();\n }\n parent = parent.parentElement;\n }\n return new DOMRect(0, 0, globalThis.window?.innerWidth ?? 0, globalThis.window?.innerHeight ?? 0);\n}\n\n/**\n * Check if the user prefers reduced motion via the OS-level accessibility setting.\n */\nexport function prefersReducedMotion(): boolean {\n return globalThis.window?.matchMedia('(prefers-reduced-motion: reduce)').matches ?? false;\n}\n","import { stringifyValue } from '../../lib/utils';\nimport type {\n AggregateFn,\n FilterGroup,\n FilterOperator,\n FilterRule,\n} from './data-table.types';\n\nexport interface RowRange {\n readonly start: number;\n readonly end: number;\n}\n\n/** A filter spec compiled from a natural-language query by an AI provider. */\nexport interface NlFilterSpec {\n globalFilter?: string;\n columnFilters?: Record<string, unknown>;\n}\n\n/**\n * Parse an AI provider's natural-language-filter JSON into a safe {@link NlFilterSpec}:\n * keeps a string `globalFilter` and only `columnFilters` whose keys are known\n * columns. Returns an empty spec for malformed input — the provider's output is\n * never trusted to address unknown columns.\n */\nexport function parseNlFilterSpec(raw: string, validColumnKeys: string[]): NlFilterSpec {\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch {\n return {};\n }\n if (!parsed || typeof parsed !== 'object') return {};\n const obj = parsed as Record<string, unknown>;\n const spec: NlFilterSpec = {};\n if (typeof obj['globalFilter'] === 'string') {\n spec.globalFilter = obj['globalFilter'];\n }\n const columnFilters = obj['columnFilters'];\n if (columnFilters && typeof columnFilters === 'object') {\n const valid = new Set(validColumnKeys);\n const out: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(columnFilters as Record<string, unknown>)) {\n if (valid.has(key)) out[key] = value;\n }\n if (Object.keys(out).length > 0) spec.columnFilters = out;\n }\n return spec;\n}\n\nexport interface ColumnRange {\n readonly start: number;\n readonly end: number;\n readonly paddingLeft: number;\n readonly paddingRight: number;\n}\n\nexport interface VariableRowRange {\n readonly start: number;\n readonly end: number;\n readonly paddingTop: number;\n readonly paddingBottom: number;\n}\n\nexport function computeRowRange(\n scrollTop: number,\n viewportHeight: number,\n rowHeight: number,\n totalRows: number,\n buffer: number\n): RowRange {\n if (totalRows === 0 || rowHeight <= 0) {\n return { start: 0, end: 0 };\n }\n const startRow = Math.floor(scrollTop / rowHeight);\n const visibleCount = Math.ceil(viewportHeight / rowHeight);\n const endRow = startRow + visibleCount;\n\n return {\n start: Math.max(0, startRow - buffer),\n end: Math.min(totalRows, endRow + buffer),\n };\n}\n\nexport function computeColumnRange(\n scrollLeft: number,\n viewportWidth: number,\n columnWidths: readonly number[],\n buffer: number\n): ColumnRange {\n if (columnWidths.length === 0) {\n return { start: 0, end: 0, paddingLeft: 0, paddingRight: 0 };\n }\n\n let offset = 0;\n let startCol = 0;\n for (let i = 0; i < columnWidths.length; i++) {\n if (offset + columnWidths[i] > scrollLeft) {\n startCol = i;\n break;\n }\n offset += columnWidths[i];\n if (i === columnWidths.length - 1) {\n startCol = columnWidths.length;\n }\n }\n\n let endCol = startCol;\n let widthAccum = 0;\n for (let i = startCol; i < columnWidths.length; i++) {\n widthAccum += columnWidths[i];\n endCol = i + 1;\n if (widthAccum >= viewportWidth) {\n break;\n }\n }\n\n const bufferedStart = Math.max(0, startCol - buffer);\n const bufferedEnd = Math.min(columnWidths.length, endCol + buffer);\n\n let paddingLeft = 0;\n for (let i = 0; i < bufferedStart; i++) {\n paddingLeft += columnWidths[i];\n }\n\n let paddingRight = 0;\n for (let i = bufferedEnd; i < columnWidths.length; i++) {\n paddingRight += columnWidths[i];\n }\n\n return {\n start: bufferedStart,\n end: bufferedEnd,\n paddingLeft,\n paddingRight,\n };\n}\n\nexport function buildPrefixSums(\n getRowHeight: (index: number) => number,\n totalRows: number\n): Float64Array {\n const sums = new Float64Array(totalRows + 1);\n for (let i = 0; i < totalRows; i++) {\n sums[i + 1] = sums[i] + getRowHeight(i);\n }\n return sums;\n}\n\nfunction binarySearchPrefix(prefixSums: Float64Array, target: number, totalRows: number): number {\n let lo = 0;\n let hi = totalRows;\n while (lo < hi) {\n const mid = (lo + hi) >>> 1;\n if (prefixSums[mid + 1] <= target) {\n lo = mid + 1;\n } else {\n hi = mid;\n }\n }\n return Math.min(lo, totalRows);\n}\n\nexport function computeVariableRowRange(\n scrollTop: number,\n viewportHeight: number,\n getRowHeight: (index: number) => number,\n totalRows: number,\n buffer: number,\n prefixSums?: Float64Array\n): VariableRowRange {\n if (totalRows === 0) {\n return { start: 0, end: 0, paddingTop: 0, paddingBottom: 0 };\n }\n\n if (prefixSums?.length === totalRows + 1) {\n return computeVariableRowRangeFromPrefixSums(scrollTop, viewportHeight, prefixSums, totalRows, buffer);\n }\n\n return computeVariableRowRangeLinear(scrollTop, viewportHeight, getRowHeight, totalRows, buffer);\n}\n\nfunction computeVariableRowRangeFromPrefixSums(\n scrollTop: number,\n viewportHeight: number,\n prefixSums: Float64Array,\n totalRows: number,\n buffer: number\n): VariableRowRange {\n const startRow = binarySearchPrefix(prefixSums, scrollTop, totalRows);\n\n let endRow = startRow;\n const scrollBottom = scrollTop + viewportHeight;\n if (startRow < totalRows) {\n endRow = binarySearchPrefix(prefixSums, scrollBottom, totalRows);\n if (prefixSums[endRow] < scrollBottom && endRow < totalRows) {\n endRow++;\n }\n }\n\n const bufferedStart = Math.max(0, startRow - buffer);\n const bufferedEnd = Math.min(totalRows, endRow + buffer);\n\n return {\n start: bufferedStart,\n end: bufferedEnd,\n paddingTop: prefixSums[bufferedStart],\n paddingBottom: prefixSums[totalRows] - prefixSums[bufferedEnd],\n };\n}\n\nfunction computeVariableRowRangeLinear(\n scrollTop: number,\n viewportHeight: number,\n getRowHeight: (index: number) => number,\n totalRows: number,\n buffer: number\n): VariableRowRange {\n let offset = 0;\n let startRow = 0;\n for (let i = 0; i < totalRows; i++) {\n const h = getRowHeight(i);\n if (offset + h > scrollTop) {\n startRow = i;\n break;\n }\n offset += h;\n if (i === totalRows - 1) {\n startRow = totalRows;\n }\n }\n\n let endRow = startRow;\n let viewAccum = 0;\n for (let i = startRow; i < totalRows; i++) {\n viewAccum += getRowHeight(i);\n endRow = i + 1;\n if (viewAccum >= viewportHeight) {\n break;\n }\n }\n\n const bufferedStart = Math.max(0, startRow - buffer);\n const bufferedEnd = Math.min(totalRows, endRow + buffer);\n\n let paddingTop = 0;\n for (let i = 0; i < bufferedStart; i++) {\n paddingTop += getRowHeight(i);\n }\n\n let paddingBottom = 0;\n for (let i = bufferedEnd; i < totalRows; i++) {\n paddingBottom += getRowHeight(i);\n }\n\n return {\n start: bufferedStart,\n end: bufferedEnd,\n paddingTop,\n paddingBottom,\n };\n}\n\nexport function buildTreeFromFlat<T>(\n rows: T[],\n getId: (row: T) => string,\n getParentId: (row: T) => string | null,\n setChildren: (row: T, children: T[]) => T\n): T[] {\n const childrenMap = new Map<string | null, T[]>();\n\n for (const row of rows) {\n const parentId = getParentId(row);\n const siblings = childrenMap.get(parentId);\n if (siblings) {\n siblings.push(row);\n } else {\n childrenMap.set(parentId, [row]);\n }\n }\n\n function attachChildren(row: T): T {\n const id = getId(row);\n const children = childrenMap.get(id);\n if (!children || children.length === 0) {\n return row;\n }\n return setChildren(row, children.map(attachChildren));\n }\n\n const roots = childrenMap.get(null) ?? [];\n return roots.map(attachChildren);\n}\n\ninterface TrailingNumbers {\n prefix: string;\n numbers: { value: number; width: number }[];\n}\n\nfunction toNumberSeries(source: unknown[]): number[] | null {\n const nums: number[] = [];\n for (const v of source) {\n if (typeof v !== 'number' || !Number.isFinite(v)) return null;\n nums.push(v);\n }\n return nums;\n}\n\nfunction fillNumericSeries(nums: number[], count: number): number[] {\n const last = nums.at(-1) ?? 0;\n const prev = nums.at(-2) ?? last;\n const step = nums.length >= 2 ? last - prev : 0;\n return Array.from({ length: count }, (_, i) => last + step * (i + 1));\n}\n\nfunction splitTrailingDigits(v: string): { prefix: string; digits: string } | null {\n let end = v.length;\n while (end > 0) {\n const ch = v[end - 1];\n if (ch < '0' || ch > '9') break;\n end--;\n }\n return end === v.length ? null : { prefix: v.slice(0, end), digits: v.slice(end) };\n}\n\nfunction detectTrailingNumbers(source: unknown[]): TrailingNumbers | null {\n let prefix: string | null = null;\n const numbers: { value: number; width: number }[] = [];\n for (const v of source) {\n if (typeof v !== 'string') return null;\n const split = splitTrailingDigits(v);\n if (!split) return null;\n if (prefix === null) prefix = split.prefix;\n else if (prefix !== split.prefix) return null;\n numbers.push({ value: Number.parseInt(split.digits, 10), width: split.digits.length });\n }\n return prefix === null ? null : { prefix, numbers };\n}\n\nfunction padNumber(n: number, width: number): string {\n const body = Math.abs(n).toString().padStart(width, '0');\n return n < 0 ? `-${body}` : body;\n}\n\nfunction fillTrailingNumbers(info: TrailingNumbers, count: number): string[] {\n const { prefix, numbers } = info;\n const last = numbers.at(-1);\n if (!last) return [];\n const prev = numbers.at(-2) ?? last;\n const step = numbers.length >= 2 ? last.value - prev.value : 1;\n return Array.from({ length: count }, (_, i) =>\n prefix + padNumber(last.value + step * (i + 1), last.width),\n );\n}\n\nfunction cycleValues(source: unknown[], count: number): unknown[] {\n return Array.from({ length: count }, (_, i) => source[i % source.length]);\n}\n\nconst MS_PER_DAY = 86_400_000;\n\ninterface Ymd {\n y: number;\n m: number;\n d: number;\n}\n\ninterface DateSeries {\n last: Ymd;\n kind: 'date' | 'iso';\n mode: 'day' | 'month';\n step: number;\n}\n\nfunction mod(n: number, m: number): number {\n return ((n % m) + m) % m;\n}\n\nfunction parseDateCell(v: unknown): { ymd: Ymd; kind: 'date' | 'iso' } | null {\n if (v instanceof Date) {\n return Number.isNaN(v.getTime())\n ? null\n : { ymd: { y: v.getFullYear(), m: v.getMonth() + 1, d: v.getDate() }, kind: 'date' };\n }\n if (typeof v === 'string') {\n const match = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(v);\n if (match) {\n return { ymd: { y: +match[1], m: +match[2], d: +match[3] }, kind: 'iso' };\n }\n }\n return null;\n}\n\nfunction dayIndex(ymd: Ymd): number {\n return Math.round(Date.UTC(ymd.y, ymd.m - 1, ymd.d) / MS_PER_DAY);\n}\n\nfunction fromDayIndex(index: number): Ymd {\n const dt = new Date(index * MS_PER_DAY);\n return { y: dt.getUTCFullYear(), m: dt.getUTCMonth() + 1, d: dt.getUTCDate() };\n}\n\nfunction daysInMonth(y: number, m: number): number {\n return new Date(Date.UTC(y, m, 0)).getUTCDate();\n}\n\nfunction addMonths(ymd: Ymd, k: number): Ymd {\n const total = ymd.y * 12 + (ymd.m - 1) + k;\n const y = Math.floor(total / 12);\n const m = mod(total, 12) + 1;\n return { y, m, d: Math.min(ymd.d, daysInMonth(y, m)) };\n}\n\nfunction ymdToIso(ymd: Ymd): string {\n return `${ymd.y}-${String(ymd.m).padStart(2, '0')}-${String(ymd.d).padStart(2, '0')}`;\n}\n\nfunction ymdToDate(ymd: Ymd): Date {\n return new Date(ymd.y, ymd.m - 1, ymd.d);\n}\n\nfunction constantStep(values: number[]): number | null {\n const step = values[1] - values[0];\n for (let i = 1; i < values.length; i++) {\n if (values[i] - values[i - 1] !== step) return null;\n }\n return step;\n}\n\nfunction detectDateSeries(source: unknown[]): DateSeries | null {\n const items: Ymd[] = [];\n let kind: 'date' | 'iso' | null = null;\n for (const v of source) {\n const parsed = parseDateCell(v);\n if (!parsed) return null;\n kind ??= parsed.kind;\n items.push(parsed.ymd);\n }\n if (kind === null) return null;\n const last = items.at(-1);\n if (!last) return null;\n if (items.length === 1) return { last, kind, mode: 'day', step: 1 };\n\n const sameDom = items.every((it) => it.d === items[0].d);\n const monthStep = sameDom ? constantStep(items.map((it) => it.y * 12 + (it.m - 1))) : null;\n if (monthStep) return { last, kind, mode: 'month', step: monthStep };\n\n const dayStep = constantStep(items.map(dayIndex));\n return dayStep === null ? null : { last, kind, mode: 'day', step: dayStep };\n}\n\nfunction nextYmd(series: DateSeries, i: number): Ymd {\n const k = series.step * (i + 1);\n return series.mode === 'month'\n ? addMonths(series.last, k)\n : fromDayIndex(dayIndex(series.last) + k);\n}\n\nfunction fillDateSeries(series: DateSeries, count: number): (Date | string)[] {\n if (series.kind === 'date') {\n return Array.from({ length: count }, (_, i) => ymdToDate(nextYmd(series, i)));\n }\n return Array.from({ length: count }, (_, i) => ymdToIso(nextYmd(series, i)));\n}\n\nconst WEEKDAY_NAMES = {\n full: ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'],\n abbr: ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'],\n};\n\nconst MONTH_NAMES = {\n full: [\n 'january', 'february', 'march', 'april', 'may', 'june',\n 'july', 'august', 'september', 'october', 'november', 'december',\n ],\n abbr: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'],\n};\n\ntype NameCasing = 'upper' | 'lower' | 'title';\ninterface NameTable { full: string[]; abbr: string[] }\ninterface NameMatch { index: number; form: 'full' | 'abbr'; casing: NameCasing }\ninterface NameSeries { lastIndex: number; form: 'full' | 'abbr'; casing: NameCasing; step: number; table: NameTable }\n\nfunction detectCasing(s: string): NameCasing {\n if (s === s.toUpperCase()) return 'upper';\n if (s === s.toLowerCase()) return 'lower';\n return 'title';\n}\n\nfunction matchName(s: string, table: NameTable): NameMatch | null {\n const lower = s.toLowerCase();\n const fullIndex = table.full.indexOf(lower);\n if (fullIndex !== -1) return { index: fullIndex, form: 'full', casing: detectCasing(s) };\n const abbrIndex = table.abbr.indexOf(lower);\n if (abbrIndex !== -1) return { index: abbrIndex, form: 'abbr', casing: detectCasing(s) };\n return null;\n}\n\nfunction detectNameSeries(source: unknown[], table: NameTable): NameSeries | null {\n const matches: NameMatch[] = [];\n for (const v of source) {\n if (typeof v !== 'string') return null;\n const match = matchName(v, table);\n if (!match) return null;\n matches.push(match);\n }\n const len = table.full.length;\n const last = matches.at(-1);\n if (!last) return null;\n const base = { lastIndex: last.index, form: last.form, casing: last.casing, table };\n if (matches.length === 1) return { ...base, step: 1 };\n\n const step = mod(matches[1].index - matches[0].index, len);\n if (step === 0) return null;\n for (let i = 1; i < matches.length; i++) {\n if (mod(matches[i].index - matches[i - 1].index, len) !== step) return null;\n }\n return { ...base, step };\n}\n\nfunction applyCasing(base: string, casing: NameCasing): string {\n if (casing === 'upper') return base.toUpperCase();\n if (casing === 'lower') return base;\n return base.charAt(0).toUpperCase() + base.slice(1);\n}\n\nfunction fillNameSeries(series: NameSeries, count: number): string[] {\n const len = series.table.full.length;\n return Array.from({ length: count }, (_, i) => {\n const index = mod(series.lastIndex + series.step * (i + 1), len);\n const base = series.form === 'abbr' ? series.table.abbr[index] : series.table.full[index];\n return applyCasing(base, series.casing);\n });\n}\n\n/**\n * Extrapolate `count` more values from a fill source (Excel-style drag-to-fill).\n * Detection order (per column): arithmetic numbers → dates (day or month step,\n * ISO strings or `Date` objects) → weekday names → month names →\n * trailing-number text (padding preserved) → cycle the source pattern.\n * Names and date formats preserve the source's style/casing.\n */\nexport function buildFillValues(source: unknown[], count: number): unknown[] {\n if (count <= 0) return [];\n if (source.length === 0) return new Array(count).fill('');\n\n const numeric = toNumberSeries(source);\n if (numeric) return fillNumericSeries(numeric, count);\n\n const dates = detectDateSeries(source);\n if (dates) return fillDateSeries(dates, count);\n\n const weekdays = detectNameSeries(source, WEEKDAY_NAMES);\n if (weekdays) return fillNameSeries(weekdays, count);\n\n const months = detectNameSeries(source, MONTH_NAMES);\n if (months) return fillNameSeries(months, count);\n\n const trailing = detectTrailingNumbers(source);\n if (trailing) return fillTrailingNumbers(trailing, count);\n\n return cycleValues(source, count);\n}\n\nfunction parseCsvLine(line: string): string[] {\n const cells: string[] = [];\n let current = '';\n let inQuotes = false;\n let i = 0;\n while (i < line.length) {\n const ch = line[i];\n if (ch === '\"') {\n if (inQuotes && line[i + 1] === '\"') {\n current += '\"';\n i++;\n } else {\n inQuotes = !inQuotes;\n }\n } else if (ch === ',' && !inQuotes) {\n cells.push(current);\n current = '';\n } else {\n current += ch;\n }\n i++;\n }\n cells.push(current);\n return cells;\n}\n\n/**\n * Parse clipboard text into a grid of cell strings. Tab-separated when any tab\n * is present (Excel / the table's own copy-out), otherwise comma-separated with\n * quoted-cell support. A single trailing newline is dropped.\n */\nexport function parseClipboardGrid(text: string): string[][] {\n if (text === '') return [];\n const normalized = text.replaceAll(/\\r\\n?/g, '\\n');\n const body = normalized.endsWith('\\n') ? normalized.slice(0, -1) : normalized;\n const lines = body.split('\\n');\n if (lines.some((line) => line.includes('\\t'))) {\n return lines.map((line) => line.split('\\t'));\n }\n return lines.map(parseCsvLine);\n}\n\n/**\n * Reduce a list of cell values to a single aggregate string. Shared by column\n * footers and the range-selection readout so both compute identically.\n * `count` counts all values; the numeric aggregates ignore non-finite values.\n */\nexport function computeAggregateValue(values: unknown[], fn: AggregateFn): string {\n if (typeof fn === 'function') return fn(values);\n\n const nums = values.map(Number).filter(Number.isFinite);\n if (nums.length === 0 && fn !== 'count') return '';\n\n switch (fn) {\n case 'sum':\n return String(nums.reduce((a, b) => a + b, 0));\n case 'avg':\n return String(Math.round((nums.reduce((a, b) => a + b, 0) / nums.length) * 100) / 100);\n case 'count':\n return String(values.length);\n case 'min':\n return String(Math.min(...nums));\n case 'max':\n return String(Math.max(...nums));\n default:\n return '';\n }\n}\n\nexport interface RowGroup<T> {\n readonly groupKey: string;\n readonly groupValue: unknown;\n readonly rows: T[];\n}\n\n/**\n * Partitions a flat row list into insertion-ordered groups keyed by the\n * stringified value returned by `getGroupValue`. The first time a group key is\n * seen determines that group's position in the result.\n */\nexport function partitionIntoGroups<T>(\n rows: readonly T[],\n getGroupValue: (row: T) => unknown\n): RowGroup<T>[] {\n const groups = new Map<string, { groupValue: unknown; rows: T[] }>();\n for (const row of rows) {\n const groupValue = getGroupValue(row);\n const groupKey = String(groupValue);\n const existing = groups.get(groupKey);\n if (existing) {\n existing.rows.push(row);\n } else {\n groups.set(groupKey, { groupValue, rows: [row] });\n }\n }\n return Array.from(groups, ([groupKey, value]) => ({\n groupKey,\n groupValue: value.groupValue,\n rows: value.rows,\n }));\n}\n\n// ── Advanced filter evaluation (A5) ──\nfunction asString(value: unknown): string {\n return stringifyValue(value);\n}\n\nfunction looseEquals(cell: unknown, value: unknown): boolean {\n const a = Number(cell);\n const b = Number(value);\n if (Number.isFinite(a) && Number.isFinite(b)) return a === b;\n return asString(cell).toLowerCase() === asString(value).toLowerCase();\n}\n\nconst FILTER_OPS: Record<FilterOperator, (cell: unknown, value: unknown) => boolean> = {\n isEmpty: (cell) => asString(cell).trim() === '',\n isNotEmpty: (cell) => asString(cell).trim() !== '',\n equals: (cell, value) => looseEquals(cell, value),\n notEquals: (cell, value) => !looseEquals(cell, value),\n contains: (cell, value) => asString(cell).toLowerCase().includes(asString(value).toLowerCase()),\n notContains: (cell, value) => !asString(cell).toLowerCase().includes(asString(value).toLowerCase()),\n startsWith: (cell, value) => asString(cell).toLowerCase().startsWith(asString(value).toLowerCase()),\n endsWith: (cell, value) => asString(cell).toLowerCase().endsWith(asString(value).toLowerCase()),\n gt: (cell, value) => Number(cell) > Number(value),\n gte: (cell, value) => Number(cell) >= Number(value),\n lt: (cell, value) => Number(cell) < Number(value),\n lte: (cell, value) => Number(cell) <= Number(value),\n};\n\n/** Test a single cell value against an advanced-filter operator. */\nexport function matchesCondition(cell: unknown, operator: FilterOperator, value: unknown): boolean {\n return (FILTER_OPS[operator] ?? (() => true))(cell, value);\n}\n\nfunction evaluateRule(rule: FilterRule, getValue: (column: string) => unknown): boolean {\n if (rule.type === 'group') {\n return evaluateAdvancedFilter(rule, getValue);\n }\n return matchesCondition(getValue(rule.column), rule.operator, rule.value);\n}\n\n/**\n * Evaluate an advanced-filter group tree against a row. An empty group matches\n * everything; `and` requires every rule, `or` requires any. Nested groups recurse.\n */\nexport function evaluateAdvancedFilter(\n group: FilterGroup,\n getValue: (column: string) => unknown,\n): boolean {\n if (group.rules.length === 0) return true;\n const results = group.rules.map((rule) => evaluateRule(rule, getValue));\n return group.combinator === 'and' ? results.every(Boolean) : results.some(Boolean);\n}\n\n/**\n * Read a cell value as a date, whatever shape the column keeps it in.\n *\n * Columns hold dates as `Date`, as an ISO string, or as an epoch number, and\n * an editor that insisted on one of those would be unusable on the other two.\n * Anything that is not a real date reads as `null` rather than as\n * `Invalid Date`, which renders as the string \"Invalid Date\" if it escapes.\n */\nexport function asEditableDate(value: unknown): Date | null {\n if (value instanceof Date) return Number.isNaN(value.getTime()) ? null : value;\n if (typeof value === 'string' || typeof value === 'number') {\n const parsed = new Date(value);\n return Number.isNaN(parsed.getTime()) ? null : parsed;\n }\n return null;\n}\n\n/**\n * A date as `YYYY-MM-DD`, in the **local** calendar.\n *\n * Deliberately not `toISOString().slice(0, 10)`: that converts to UTC first, so\n * a date picked in the evening anywhere east of Greenwich comes back as the\n * previous day. The cell shows one date and the value holds another, and the\n * bug is invisible until someone in the wrong timezone looks.\n */\nexport function toLocalDateString(date: Date): string {\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n return `${date.getFullYear()}-${month}-${day}`;\n}\n\n/**\n * Write a picked date back in the shape the cell already held.\n *\n * A column storing ISO strings must keep storing ISO strings — the editor's\n * job is to change the value, not its type. With nothing to go on (the cell was\n * empty), a `Date` is returned, which is what `date` columns usually hold.\n */\nexport function toEditedDateValue(picked: Date | null, previous: unknown): unknown {\n if (picked === null) return null;\n return typeof previous === 'string' ? toLocalDateString(picked) : picked;\n}\n","import type { LocaleMeta } from '../../lib/i18n';\nimport type { FilterBuilderLabels } from './sub/data-table-filter-builder.component';\n\n/**\n * Locale dictionary for `<ui-data-table>` and its filter / pagination\n * sub-components.\n *\n * `toggleColumnAriaLabel` carries a `{column}` placeholder that the\n * component interpolates with the column header text.\n */\nexport interface DataTableLocale extends LocaleMeta {\n filterPlaceholder: string;\n columnsLabel: string;\n noResultsLabel: string;\n rowsPerPageLabel: string;\n pageLabel: string;\n ofLabel: string;\n sortAscending: string;\n sortDescending: string;\n clearSort: string;\n pinLeft: string;\n pinRight: string;\n unpin: string;\n hideColumn: string;\n showAllColumns: string;\n /** `aria-label` on the per-column visibility checkbox. Interpolates `{column}`. */\n toggleColumnAriaLabel: string;\n /** `aria-label` on the column-visibility popover trigger. */\n toggleColumns: string;\n searchPlaceholder: string;\n /** Multiselect-filter \"Select all\" button label. */\n selectAllRows: string;\n /** Multiselect-filter \"Clear\" button label (clears the multiselect selection — distinct from `clearSort`). */\n clearAll: string;\n /** Range-selection readout labels. Optional — fall back to English when a locale omits them. */\n rangeCount?: string;\n rangeSum?: string;\n rangeAvg?: string;\n rangeMin?: string;\n rangeMax?: string;\n /** Label/aria for the \"Chart\" action in the range readout. */\n rangeChart?: string;\n /** Placeholder for the AI natural-language filter box (optional — falls back to English). */\n nlFilterPlaceholder?: string;\n /** Localized strings for the advanced AND/OR filter builder (A5). Falls back to English when absent. */\n advancedFilter?: FilterBuilderLabels;\n}\n\nexport const DATA_TABLE_LOCALES: Record<string, DataTableLocale> = {\n en: {\n code: 'en',\n filterPlaceholder: 'Filter...',\n columnsLabel: 'Columns',\n noResultsLabel: 'No results found.',\n rowsPerPageLabel: 'Rows per page',\n pageLabel: 'Page',\n ofLabel: 'of',\n sortAscending: 'Sort Ascending',\n sortDescending: 'Sort Descending',\n clearSort: 'Clear Sort',\n pinLeft: 'Pin Left',\n pinRight: 'Pin Right',\n unpin: 'Unpin',\n hideColumn: 'Hide Column',\n showAllColumns: 'Show All Columns',\n toggleColumnAriaLabel: 'Toggle {column} column',\n toggleColumns: 'Toggle columns',\n searchPlaceholder: 'Search...',\n selectAllRows: 'Select all',\n clearAll: 'Clear',\n rangeCount: 'Count',\n rangeSum: 'Sum',\n rangeAvg: 'Avg',\n rangeMin: 'Min',\n rangeMax: 'Max',\n rangeChart: 'Chart',\n nlFilterPlaceholder: 'Ask in plain English…',\n advancedFilter: {\n and: 'AND',\n or: 'OR',\n matchAll: 'match all of the rules below',\n matchAny: 'match any of the rules below',\n addCondition: '+ Condition',\n addGroup: '+ Group',\n removeGroup: 'Remove group',\n removeCondition: 'Remove condition',\n valuePlaceholder: 'value',\n filterButton: 'Filter',\n clearFilters: 'Clear all filters',\n operators: {\n contains: 'contains',\n notContains: 'does not contain',\n equals: 'equals',\n notEquals: 'not equals',\n startsWith: 'starts with',\n endsWith: 'ends with',\n gt: 'greater than',\n gte: 'greater or equal',\n lt: 'less than',\n lte: 'less or equal',\n isEmpty: 'is empty',\n isNotEmpty: 'is not empty',\n },\n },\n },\n he: {\n code: 'he',\n rtl: true,\n filterPlaceholder: '...סינון',\n columnsLabel: 'עמודות',\n noResultsLabel: 'לא נמצאו תוצאות.',\n rowsPerPageLabel: 'שורות בעמוד',\n pageLabel: 'עמוד',\n ofLabel: 'מתוך',\n sortAscending: 'מיון עולה',\n sortDescending: 'מיון יורד',\n clearSort: 'נקה מיון',\n pinLeft: 'הצמד לשמאל',\n pinRight: 'הצמד לימין',\n unpin: 'בטל הצמדה',\n hideColumn: 'הסתר עמודה',\n showAllColumns: 'הצג את כל העמודות',\n toggleColumnAriaLabel: 'החלף תצוגה של עמודת {column}',\n toggleColumns: 'החלף תצוגת עמודות',\n searchPlaceholder: '...חיפוש',\n selectAllRows: 'בחר הכל',\n clearAll: 'נקה',\n rangeCount: 'כמות',\n rangeSum: 'סכום',\n rangeAvg: 'ממוצע',\n rangeMin: 'מינימום',\n rangeMax: 'מקסימום',\n rangeChart: 'תרשים',\n nlFilterPlaceholder: '…שאל בשפה חופשית',\n advancedFilter: {\n and: 'וגם',\n or: 'או',\n matchAll: 'התאמה לכל הכללים הבאים',\n matchAny: 'התאמה לאחד מהכללים הבאים',\n addCondition: '+ תנאי',\n addGroup: '+ קבוצה',\n removeGroup: 'הסר קבוצה',\n removeCondition: 'הסר תנאי',\n valuePlaceholder: 'ערך',\n filterButton: 'סינון',\n clearFilters: 'נקה את כל הסינונים',\n operators: {\n contains: 'מכיל',\n notContains: 'לא מכיל',\n equals: 'שווה',\n notEquals: 'לא שווה',\n startsWith: 'מתחיל ב־',\n endsWith: 'מסתיים ב־',\n gt: 'גדול מ־',\n gte: 'גדול או שווה',\n lt: 'קטן מ־',\n lte: 'קטן או שווה',\n isEmpty: 'ריק',\n isNotEmpty: 'לא ריק',\n },\n },\n },\n ar: {\n code: 'ar',\n rtl: true,\n filterPlaceholder: '...تصفية',\n columnsLabel: 'الأعمدة',\n noResultsLabel: 'لم يتم العثور على نتائج.',\n rowsPerPageLabel: 'صفوف في الصفحة',\n pageLabel: 'صفحة',\n ofLabel: 'من',\n sortAscending: 'ترتيب تصاعدي',\n sortDescending: 'ترتيب تنازلي',\n clearSort: 'إلغاء الترتيب',\n pinLeft: 'تثبيت لليسار',\n pinRight: 'تثبيت لليمين',\n unpin: 'إلغاء التثبيت',\n hideColumn: 'إخفاء العمود',\n showAllColumns: 'إظهار جميع الأعمدة',\n toggleColumnAriaLabel: 'تبديل عمود {column}',\n toggleColumns: 'تبديل الأعمدة',\n searchPlaceholder: '...بحث',\n selectAllRows: 'تحديد الكل',\n clearAll: 'مسح',\n },\n de: {\n code: 'de',\n filterPlaceholder: 'Filtern...',\n columnsLabel: 'Spalten',\n noResultsLabel: 'Keine Ergebnisse gefunden.',\n rowsPerPageLabel: 'Zeilen pro Seite',\n pageLabel: 'Seite',\n ofLabel: 'von',\n sortAscending: 'Aufsteigend sortieren',\n sortDescending: 'Absteigend sortieren',\n clearSort: 'Sortierung löschen',\n pinLeft: 'Links anheften',\n pinRight: 'Rechts anheften',\n unpin: 'Lösen',\n hideColumn: 'Spalte ausblenden',\n showAllColumns: 'Alle Spalten anzeigen',\n toggleColumnAriaLabel: 'Spalte {column} umschalten',\n toggleColumns: 'Spalten umschalten',\n searchPlaceholder: 'Suchen...',\n selectAllRows: 'Alle auswählen',\n clearAll: 'Löschen',\n },\n fr: {\n code: 'fr',\n filterPlaceholder: 'Filtrer...',\n columnsLabel: 'Colonnes',\n noResultsLabel: 'Aucun résultat trouvé.',\n rowsPerPageLabel: 'Lignes par page',\n pageLabel: 'Page',\n ofLabel: 'sur',\n sortAscending: 'Tri croissant',\n sortDescending: 'Tri décroissant',\n clearSort: 'Effacer le tri',\n pinLeft: 'Épingler à gauche',\n pinRight: 'Épingler à droite',\n unpin: 'Détacher',\n hideColumn: 'Masquer la colonne',\n showAllColumns: 'Afficher toutes les colonnes',\n toggleColumnAriaLabel: 'Basculer la colonne {column}',\n toggleColumns: 'Basculer les colonnes',\n searchPlaceholder: 'Rechercher...',\n selectAllRows: 'Tout sélectionner',\n clearAll: 'Effacer',\n },\n es: {\n code: 'es',\n filterPlaceholder: 'Filtrar...',\n columnsLabel: 'Columnas',\n noResultsLabel: 'No se encontraron resultados.',\n rowsPerPageLabel: 'Filas por página',\n pageLabel: 'Página',\n ofLabel: 'de',\n sortAscending: 'Orden ascendente',\n sortDescending: 'Orden descendente',\n clearSort: 'Borrar orden',\n pinLeft: 'Anclar a la izquierda',\n pinRight: 'Anclar a la derecha',\n unpin: 'Desanclar',\n hideColumn: 'Ocultar columna',\n showAllColumns: 'Mostrar todas las columnas',\n toggleColumnAriaLabel: 'Alternar columna {column}',\n toggleColumns: 'Alternar columnas',\n searchPlaceholder: 'Buscar...',\n selectAllRows: 'Seleccionar todo',\n clearAll: 'Borrar',\n },\n ja: {\n code: 'ja',\n filterPlaceholder: 'フィルター...',\n columnsLabel: '列',\n noResultsLabel: '結果が見つかりません。',\n rowsPerPageLabel: 'ページあたりの行数',\n pageLabel: 'ページ',\n ofLabel: '/',\n sortAscending: '昇順で並べ替え',\n sortDescending: '降順で並べ替え',\n clearSort: '並べ替えを解除',\n pinLeft: '左に固定',\n pinRight: '右に固定',\n unpin: '固定を解除',\n hideColumn: '列を非表示',\n showAllColumns: 'すべての列を表示',\n toggleColumnAriaLabel: '{column} 列の表示切替',\n toggleColumns: '列の表示切替',\n searchPlaceholder: '検索...',\n selectAllRows: 'すべて選択',\n clearAll: 'クリア',\n },\n zh: {\n code: 'zh',\n filterPlaceholder: '筛选...',\n columnsLabel: '列',\n noResultsLabel: '未找到结果。',\n rowsPerPageLabel: '每页行数',\n pageLabel: '第',\n ofLabel: '/ 共',\n sortAscending: '升序排序',\n sortDescending: '降序排序',\n clearSort: '清除排序',\n pinLeft: '固定到左侧',\n pinRight: '固定到右侧',\n unpin: '取消固定',\n hideColumn: '隐藏列',\n showAllColumns: '显示所有列',\n toggleColumnAriaLabel: '切换 {column} 列',\n toggleColumns: '切换列',\n searchPlaceholder: '搜索...',\n selectAllRows: '全选',\n clearAll: '清除',\n },\n ru: {\n code: 'ru',\n filterPlaceholder: 'Фильтр...',\n columnsLabel: 'Столбцы',\n noResultsLabel: 'Результаты не найдены.',\n rowsPerPageLabel: 'Строк на странице',\n pageLabel: 'Страница',\n ofLabel: 'из',\n sortAscending: 'Сортировать по возрастанию',\n sortDescending: 'Сортировать по убыванию',\n clearSort: 'Сбросить сортировку',\n pinLeft: 'Закрепить слева',\n pinRight: 'Закрепить справа',\n unpin: 'Открепить',\n hideColumn: 'Скрыть столбец',\n showAllColumns: 'Показать все столбцы',\n toggleColumnAriaLabel: 'Переключить столбец {column}',\n toggleColumns: 'Переключить столбцы',\n searchPlaceholder: 'Поиск...',\n selectAllRows: 'Выбрать все',\n clearAll: 'Очистить',\n },\n pt: {\n code: 'pt',\n filterPlaceholder: 'Filtrar...',\n columnsLabel: 'Colunas',\n noResultsLabel: 'Nenhum resultado encontrado.',\n rowsPerPageLabel: 'Linhas por página',\n pageLabel: 'Página',\n ofLabel: 'de',\n sortAscending: 'Ordem crescente',\n sortDescending: 'Ordem decrescente',\n clearSort: 'Limpar ordenação',\n pinLeft: 'Fixar à esquerda',\n pinRight: 'Fixar à direita',\n unpin: 'Desfixar',\n hideColumn: 'Ocultar coluna',\n showAllColumns: 'Mostrar todas as colunas',\n toggleColumnAriaLabel: 'Alternar coluna {column}',\n toggleColumns: 'Alternar colunas',\n searchPlaceholder: 'Pesquisar...',\n selectAllRows: 'Selecionar tudo',\n clearAll: 'Limpar',\n },\n};\n","import { signal, type Signal } from '@angular/core';\n\n/**\n * A generic, addon-agnostic registry of slot contributions. Registration is\n * reactive (host templates re-render when a slot is added/removed) and returns\n * a teardown function, mirroring the `RichTextCommandRegistry` pattern. Shared\n * by every addon host (data-table, rich-text-editor).\n */\nexport class AddonSlotRegistry<S> {\n private readonly _slots = signal<readonly S[]>([]);\n /** Reactive view of the registered slots, read by a host template. */\n readonly slots: Signal<readonly S[]> = this._slots.asReadonly();\n\n /** Register a slot; returns a teardown that removes exactly this slot. */\n register(slot: S): () => void {\n this._slots.update((list) => [...list, slot]);\n return () => this._slots.update((list) => list.filter((s) => s !== slot));\n }\n}\n","import type {\n ColumnDef,\n DataTableExportOptions,\n DataTableExportQuery,\n RowActionContext,\n SortDirection,\n} from './data-table.types';\nimport type { DataTableLocale } from './data-table.locales';\n\nexport { AddonSlotRegistry } from '../../lib/addon-slots';\n\n/** A column pin position, or undefined for unpinned. */\nexport type ColumnPin = 'left' | 'right' | undefined;\n\n/**\n * An addon-contributed ⋮ button rendered by the base in each data row's\n * action cell. The base renders the button (icon + aria-label) and invokes\n * `onClick` with the row's context; it never knows which addon registered it.\n */\nexport interface CellActionSlot<T = unknown> {\n /** Stable id (the registering addon's key, e.g. `context-menu`). */\n readonly id: string;\n readonly icon?: string;\n readonly ariaLabel?: string;\n readonly onClick: (event: Event, context: RowActionContext<T>) => void;\n}\n\n/**\n * An addon-contributed ⋮ button rendered by the base in each column header.\n */\nexport interface HeaderActionSlot<T = unknown> {\n readonly id: string;\n readonly icon?: string;\n readonly ariaLabel?: string;\n readonly onClick: (event: Event, column: ColumnDef<T>) => void;\n}\n\n/**\n * The stable extension surface a data-table addon directive reaches through DI\n * (`inject(DataTableAddonHost)`). `DataTableComponent` provides itself as this\n * token; the base never imports any addon. This is the one boundary that lets\n * the base's internals change without breaking installed addons.\n */\nexport abstract class DataTableAddonHost<T = unknown> {\n /** The resolved, ordered columns currently driving the table. */\n abstract enhancedColumns(): readonly ColumnDef<T>[];\n /** The row rendered at a visible row index, or undefined. */\n abstract getRenderedRowAt(index: number): T | undefined;\n /** Generic per-row metadata (selection + tree state) for an action context. */\n abstract getRowContext(row: T, index: number): RowActionContext<T>;\n /** Current sort direction for a column key. */\n abstract getSortDirection(columnKey: string | keyof T): SortDirection;\n /** Apply a sort to a column (`multi` extends a multi-sort). */\n abstract onSortChange(columnKey: string | keyof T, direction: SortDirection, multi?: boolean): void;\n /** Pin/unpin a column. */\n abstract pinColumn(columnKey: string, pin: ColumnPin): void;\n /** Current pin position for a column key. */\n abstract getColumnPin(columnKey: string): ColumnPin;\n /** Show/hide a column. */\n abstract setColumnVisibility(columnKey: string | keyof T, visible: boolean): void;\n /** Make every column visible. */\n abstract showAllColumns(): void;\n /** The active locale strings (for addon-rendered labels). */\n abstract getLocale(): DataTableLocale;\n\n /** Register a row-action ⋮ button; returns a teardown. */\n abstract registerCellAction(slot: CellActionSlot<T>): () => void;\n /** Register a header ⋮ button; returns a teardown. */\n abstract registerHeaderAction(slot: HeaderActionSlot<T>): () => void;\n /** The registered row-action slots (read by the base template). */\n abstract cellActionSlots(): readonly CellActionSlot<T>[];\n /** The registered header-action slots (read by the base template). */\n abstract headerActionSlots(): readonly HeaderActionSlot<T>[];\n\n /**\n * Shape the current rows into a `string[][]` grid (header row + cells), the\n * same view the base uses for copy. `rows` overrides the default source\n * (filtered + sorted). Consumed by the export addon and clipboard features.\n */\n abstract getExportData(options?: DataTableExportOptions, rows?: readonly T[]): string[][];\n /** The filtered + sorted rows across every page (not just the current page). */\n abstract getSortedRows(): readonly T[];\n /** The raw, unfiltered input rows (the `data` input), for transforms like pivot. */\n abstract getRawRows(): readonly T[];\n /** Resolve a cell's raw value for a row + column key (accessor or valueGetter). */\n abstract getCellValue(row: T, key: string | keyof T, column?: ColumnDef<T>): unknown;\n /** The active filter + sort query, for a server-side export provider. */\n abstract queryState(): DataTableExportQuery;\n /**\n * Show or clear the base's generic busy overlay. An addon passes its own\n * (localized) label to show it and `null` to hide it; the base owns no label.\n */\n abstract setBusy(label: string | null): void;\n /** The active busy-overlay label, or null when idle (read by the base template). */\n abstract busyLabel(): string | null;\n}\n","import {\n Directive,\n ElementRef,\n OnDestroy,\n inject,\n input,\n Renderer2,\n} from '@angular/core';\nimport { prefersReducedMotion } from '../lib/utils';\n\n@Directive({\n selector: '[uiRipple]',\n host: {\n '[style.position]': 'uiRippleDisabled() ? null : \"relative\"',\n '[style.overflow]': 'uiRippleDisabled() ? null : \"hidden\"',\n '(click)': 'onRipple($event)',\n },\n})\nexport class UiRippleDirective implements OnDestroy {\n private readonly el = inject(ElementRef);\n private readonly renderer = inject(Renderer2);\n\n /** Ripple colour. Defaults to a translucent tint of the current text colour, so it works on any background. */\n uiRippleColor = input('color-mix(in srgb, currentColor 35%, transparent)');\n /** How long one ripple takes to finish, in milliseconds. */\n uiRippleDuration = input(600);\n /** Stops the host from rippling. */\n uiRippleDisabled = input(false);\n\n private activeRipples: HTMLSpanElement[] = [];\n\n onRipple(event: MouseEvent): void {\n if (this.uiRippleDisabled() || prefersReducedMotion()) return;\n\n const host = this.el.nativeElement as HTMLElement;\n const rect = host.getBoundingClientRect();\n const x = event.clientX - rect.left;\n const y = event.clientY - rect.top;\n const diameter = Math.max(rect.width, rect.height) * 2;\n\n const ripple = this.renderer.createElement('span') as HTMLSpanElement;\n this.renderer.setStyle(ripple, 'position', 'absolute');\n this.renderer.setStyle(ripple, 'width', `${diameter}px`);\n this.renderer.setStyle(ripple, 'height', `${diameter}px`);\n this.renderer.setStyle(ripple, 'left', `${x - diameter / 2}px`);\n this.renderer.setStyle(ripple, 'top', `${y - diameter / 2}px`);\n this.renderer.setStyle(ripple, 'borderRadius', '50%');\n this.renderer.setStyle(ripple, 'pointerEvents', 'none');\n this.renderer.setStyle(ripple, 'backgroundColor', this.uiRippleColor());\n this.renderer.appendChild(host, ripple);\n this.activeRipples.push(ripple);\n\n ripple.animate(\n [\n { transform: 'scale(0)', opacity: '1' },\n { transform: 'scale(1)', opacity: '0' },\n ],\n {\n duration: this.uiRippleDuration(),\n easing: 'cubic-bezier(0.2, 0.6, 0.35, 1)',\n fill: 'forwards',\n }\n ).onfinish = () => {\n ripple.remove();\n const idx = this.activeRipples.indexOf(ripple);\n if (idx >= 0) this.activeRipples.splice(idx, 1);\n };\n }\n\n ngOnDestroy(): void {\n this.activeRipples.forEach(r => r.remove());\n this.activeRipples = [];\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n signal,\n viewChild,\n AfterViewInit,\n ElementRef,\n} from '@angular/core';\nimport { cn } from '../../lib/utils';\n\ntype SpinnerSize = 'xs' | 'sm' | 'default' | 'lg' | 'xl' | 'page';\ntype SpinnerVariant = 'ring' | 'dots' | 'bars' | 'pulse';\n\nconst DOT_SIZE_MAP: Record<SpinnerSize, string> = {\n xs: 'h-1 w-1',\n sm: 'h-1.5 w-1.5',\n default: 'h-2 w-2',\n lg: 'h-2.5 w-2.5',\n xl: 'h-3 w-3',\n page: 'h-4 w-4',\n};\n\nconst BAR_SIZE_MAP: Record<SpinnerSize, string> = {\n xs: 'w-0.5 h-3',\n sm: 'w-1 h-4',\n default: 'w-1 h-5',\n lg: 'w-1.5 h-6',\n xl: 'w-2 h-8',\n page: 'w-2.5 h-10',\n};\n\nconst PULSE_SIZE_MAP: Record<SpinnerSize, string> = {\n xs: 'h-3 w-3',\n sm: 'h-4 w-4',\n default: 'h-5 w-5',\n lg: 'h-6 w-6',\n xl: 'h-8 w-8',\n page: 'h-12 w-12',\n};\n\nconst RING_SIZE_MAP: Record<SpinnerSize, string> = {\n xs: 'h-3 w-3',\n sm: 'h-4 w-4',\n default: 'h-5 w-5',\n lg: 'h-6 w-6',\n xl: 'h-8 w-8',\n page: 'h-12 w-12',\n};\n\n/**\n * Spinner - Loading indicator with animated spinning icon\n *\n * Usage:\n * <ui-spinner />\n * <ui-spinner size=\"lg\" />\n * <ui-spinner variant=\"dots\" />\n * <ui-spinner variant=\"bars\" size=\"xl\" />\n * <ui-spinner variant=\"pulse\" />\n * <ui-spinner [customSize]=\"48\" />\n *\n * Custom loader via content projection:\n * <ui-spinner><my-custom-loader /></ui-spinner>\n *\n * Full page spinner:\n * <div class=\"fixed inset-0 flex items-center justify-center bg-background/80\">\n * <ui-spinner size=\"page\" />\n * </div>\n */\n@Component({\n selector: 'ui-spinner',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './spinner.component.html',\n host: { class: 'contents' },\n})\nexport class SpinnerComponent implements AfterViewInit {\n /** Extra classes merged onto the spinner element — `text-*` is the usual one, since every variant paints itself in `currentColor`. */\n readonly class = input('');\n /**\n * Preset scale. Each {@link variant} has its own size table, so `'lg'` means\n * a bigger ring, fatter bars or larger dots as appropriate. `'page'` is the\n * oversized step intended for a full-screen overlay (see\n * {@link PageSpinnerComponent}). Overridden by {@link customSize}.\n */\n readonly size = input<SpinnerSize>('default');\n /** Exact pixel size, applied inline and taking precedence over {@link size}. Use it when the spinner must match a specific control's height. `null` keeps the preset. */\n readonly customSize = input<number | null>(null);\n /**\n * Animation style: `'ring'` a spinning arc, `'dots'` three bouncing dots,\n * `'bars'` five staggered bars, `'pulse'` a single pulsing disc. Ignored\n * entirely when custom content is projected — the projected loader is then\n * rendered instead.\n */\n readonly variant = input<SpinnerVariant>('ring');\n\n readonly contentWrapper = viewChild<ElementRef>('contentWrapper');\n\n private readonly _hasCustomContent = signal(false);\n readonly hasCustomContent = this._hasCustomContent.asReadonly();\n\n readonly barDelays = ['0s', '0.1s', '0.2s', '0.3s', '0.4s'];\n\n protected readonly cn = cn;\n\n ngAfterViewInit(): void {\n this._hasCustomContent.set(\n (this.contentWrapper()?.nativeElement?.children?.length ?? 0) > 0\n );\n }\n\n readonly classes = computed(() => {\n const customSizeValue = this.customSize();\n\n if (customSizeValue) {\n return cn('animate-spin', this.class());\n }\n\n return cn('animate-spin', RING_SIZE_MAP[this.size()], this.class());\n });\n\n readonly customStyles = computed(() => {\n const customSizeValue = this.customSize();\n if (customSizeValue) {\n return `width: ${customSizeValue}px; height: ${customSizeValue}px;`;\n }\n return '';\n });\n\n readonly dotClass = computed(() => DOT_SIZE_MAP[this.size()]);\n\n readonly barClass = computed(() => BAR_SIZE_MAP[this.size()]);\n\n readonly pulseClass = computed(() => PULSE_SIZE_MAP[this.size()]);\n}\n","<div #contentWrapper>\n <ng-content />\n</div>\n@if (!hasCustomContent()) {\n @if (variant() === 'ring') {\n <output class=\"inline-flex\" aria-label=\"Loading\" [attr.data-slot]=\"'spinner'\">\n <svg\n [class]=\"classes()\"\n [style]=\"customStyles()\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 12a9 9 0 1 1-6.219-8.56\"/>\n </svg>\n </output>\n } @else if (variant() === 'dots') {\n <output class=\"flex items-center gap-1\" aria-label=\"Loading\" [attr.data-slot]=\"'spinner'\">\n <div [class]=\"cn(dotClass(), 'rounded-full bg-current animate-bounce [animation-delay:-0.3s]')\"></div>\n <div [class]=\"cn(dotClass(), 'rounded-full bg-current animate-bounce [animation-delay:-0.15s]')\"></div>\n <div [class]=\"cn(dotClass(), 'rounded-full bg-current animate-bounce')\"></div>\n </output>\n } @else if (variant() === 'bars') {\n <output class=\"flex items-center gap-0.5\" aria-label=\"Loading\" [attr.data-slot]=\"'spinner'\">\n @for (delay of barDelays; track delay) {\n <div\n [class]=\"cn(barClass(), 'bg-current rounded-sm animate-pulse')\"\n [style.animation-delay]=\"delay\"\n ></div>\n }\n </output>\n } @else if (variant() === 'pulse') {\n <output\n [class]=\"cn(pulseClass(), 'block rounded-full bg-current animate-pulse')\"\n aria-label=\"Loading\"\n [attr.data-slot]=\"'spinner'\"\n ></output>\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { SpinnerComponent } from '../spinner.component';\n\n/**\n * PageSpinner - Full page loading overlay\n *\n * Usage:\n * <ui-page-spinner />\n * <ui-page-spinner message=\"Loading your data...\" />\n */\n@Component({\n selector: 'ui-page-spinner',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SpinnerComponent],\n templateUrl: './page-spinner.component.html',\n host: { class: 'contents' },\n})\nexport class PageSpinnerComponent {\n /**\n * Extra classes merged onto the fixed backdrop. Override `z-50` here when the\n * overlay must sit above (or below) dialogs, and the `bg-background/80\n * backdrop-blur-sm` utilities to change how much of the page shows through.\n */\n class = input('');\n /** Optional caption shown under the spinner. Omit it for a bare spinner — no empty line is reserved when it is blank. */\n message = input('');\n\n classes = computed(() => cn(\n 'fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm',\n this.class()\n ));\n}\n","<div [class]=\"classes()\" [attr.data-slot]=\"'page-spinner'\">\n <div class=\"flex flex-col items-center gap-4\">\n <ui-spinner size=\"page\" />\n @if (message()) {\n <p class=\"text-sm text-muted-foreground animate-pulse motion-reduce:animate-none\">{{ message() }}</p>\n }\n </div>\n</div>\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../lib/utils';\n\n@Component({\n selector: 'ui-skeleton',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: ``,\n styleUrl: './skeleton.component.css',\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"skeleton\"',\n },\n})\nexport class SkeletonComponent {\n /**\n * Extra classes merged onto the host. The component ships no size of its own,\n * so a width/height (or `size-*`) here is what gives the placeholder its\n * shape — without one it collapses to zero height.\n */\n class = input('');\n /**\n * Placeholder animation. `'pulse'` fades a translucent primary fill in and\n * out; `'shimmer'` sweeps a highlight across it using a hard-coded grey\n * gradient (with a `.dark` variant) rather than theme tokens, and stops\n * entirely under `prefers-reduced-motion: reduce`.\n */\n variant = input<'pulse' | 'shimmer'>('pulse');\n\n classes = computed(() =>\n cn(\n 'rounded-md',\n this.variant() === 'pulse' && 'animate-pulse bg-primary/10',\n this.variant() === 'shimmer' && 'animate-shimmer',\n this.class()\n )\n );\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n inject,\n input,\n output,\n computed,\n} from '@angular/core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../lib/utils';\nimport { UiRippleDirective } from '../ripple.directive';\nimport { SpinnerComponent } from '../spinner';\nimport { SkeletonComponent } from '../skeleton';\n\nconst buttonVariants = cva(\n 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive rounded-lg border border-transparent text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 shrink-0 outline-none select-none cursor-pointer',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive/10 hover:bg-destructive/20 text-destructive focus-visible:ring-destructive/20',\n outline: 'border-input bg-background hover:bg-muted hover:text-foreground',\n secondary: 'border-border bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-muted hover:text-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n default: 'py-2',\n sm: 'rounded-md text-xs',\n lg: 'rounded-md',\n icon: '',\n 'icon-sm': '',\n 'icon-lg': '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];\nexport type ButtonSize = VariantProps<typeof buttonVariants>['size'];\n\n@Component({\n selector: 'ui-button',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [UiRippleDirective, SpinnerComponent, SkeletonComponent],\n templateUrl: './button.component.html',\n styleUrl: './button.component.css',\n host: {\n '[class]': '\"contents\"',\n '[attr.data-size]': 'size()',\n // The host is a `display: contents` generic element: an aria-label left on\n // it names nothing (axe `aria-prohibited-attr`) and, worse, never reaches\n // the inner <button>, leaving it nameless (axe `button-name`). Consume it\n // via the `aria-label` aliased input below and strip it from the host.\n '[attr.aria-label]': 'null',\n },\n})\n/**\n * Primary button primitive. Supports the variant / size matrix declared\n * above and forwards the click event via the `(clicked)` output.\n *\n * `host: { '[class]': '\"contents\"' }` keeps the wrapping `<ui-button>`\n * element transparent in the layout — the inner `<button>` is the real\n * focus / hit target.\n */\nexport class ButtonComponent {\n /** Visual style. `link` renders as inline text; `destructive` is tinted, not solid. */\n readonly variant = input<ButtonVariant>('default');\n /**\n * Size preset. The three `icon*` sizes drop the horizontal padding for a\n * square button holding a single glyph.\n */\n readonly size = input<ButtonSize>('default');\n /** Disables the inner `<button>`. Also forced while {@link loading} is true. */\n readonly disabled = input(false);\n /** Native `type` of the inner `<button>`. Defaults to `'button'` so it never submits a form by accident. */\n readonly type = input<'button' | 'submit' | 'reset'>('button');\n /** Extra classes merged onto the inner `<button>` (not the host). */\n readonly class = input('');\n /** Accessible name, camelCase form: `[ariaLabel]=\"'Copy'\"`. */\n ariaLabel = input<string | undefined>(undefined);\n /**\n * An accessible name written the native way — `aria-label=\"Copy\"` on\n * `<ui-button>`. Read off the host here and moved to the inner `<button>`,\n * instead of being stranded on the `display: contents` host where it named\n * nothing (the host binding above strips it).\n */\n private readonly hostAriaLabel =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.getAttribute('aria-label') ?? undefined;\n /** The name actually applied to the inner `<button>`, from either spelling. */\n readonly resolvedAriaLabel = computed(() => this.ariaLabel() ?? this.hostAriaLabel);\n /**\n * Convenience text label. When set it replaces projected content — pass\n * either this or `<ng-content>`, not both.\n */\n readonly label = input<string>('');\n /** Enable the material-style ripple on press. */\n readonly ripple = input(false);\n /** Ripple colour, any CSS colour. Defaults to a translucent tint of the current text colour. */\n readonly rippleColor = input('color-mix(in srgb, currentColor 35%, transparent)');\n /**\n * Show a centred spinner over the button's content and disable it. The label\n * stays in the DOM, so the button keeps its width and the layout doesn't jump.\n */\n readonly loading = input(false);\n /** Replace the button entirely with a skeleton placeholder while content loads. */\n readonly skeleton = input(false);\n\n /** Emits the native click. Never fires while disabled, loading, or in skeleton mode. */\n readonly clicked = output<MouseEvent>();\n\n readonly classes = computed(() =>\n cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.loading() && 'relative', this.class())\n );\n}\n\nexport { buttonVariants };\n","@if (skeleton()) {\n <ui-skeleton class=\"h-9 w-24 rounded-md\" />\n} @else {\n <button\n uiRipple\n [uiRippleDisabled]=\"!ripple()\"\n [uiRippleColor]=\"rippleColor()\"\n [class]=\"classes()\"\n [disabled]=\"disabled() || loading()\"\n [type]=\"type()\"\n [attr.data-slot]=\"'button'\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n (click)=\"clicked.emit($event)\"\n >\n @if (loading()) {\n <div class=\"absolute inset-0 flex items-center justify-center\" aria-hidden=\"true\">\n <ui-spinner size=\"xs\" />\n </div>\n }\n @if (label()) {\n {{ label() }}\n } @else {\n <ng-content />\n }\n </button>\n}\n","import { InjectionToken, Injector, Type, computed, inject, signal, type Provider, type Signal } from '@angular/core';\n\n/**\n * App-wide UI locale id (BCP-47 string) exposed as a **readonly** `Signal`.\n *\n * Components that accept a `locale` input fall back to this token when no\n * explicit input is provided, so consumers can wire one global signal at\n * the application root and have every shadcn-angular component pick it up.\n *\n * Defaults to a constant `'en'` signal so the library works out of the box\n * with no provider configuration.\n *\n * The token's type is intentionally `Signal<string>` (not `WritableSignal`)\n * — to switch the active locale at runtime, hold the writable handle in\n * your own code and pass it to `provideUiLocale(myWritableSignal)`.\n */\nexport const UI_LOCALE_ID = new InjectionToken<Signal<string>>('UI_LOCALE_ID', {\n providedIn: 'root',\n factory: () => signal('en').asReadonly(),\n});\n\n/**\n * Provide the app-wide UI locale.\n *\n * - A string sets a constant locale at bootstrap time.\n * - A `Signal<string>` (or `WritableSignal<string>`) enables runtime locale\n * switching across the entire UI; mutate the original handle and every\n * component that depends on `UI_LOCALE_ID` re-renders.\n *\n * The injected value is always exposed as a readonly `Signal<string>` —\n * caller-supplied writable signals are wrapped in a `computed()` so that\n * other code that injects the token cannot downcast and mutate it.\n *\n * ```ts\n * bootstrapApplication(App, {\n * providers: [provideUiLocale(myLocaleSignal)],\n * });\n * ```\n */\nexport function provideUiLocale(locale: Signal<string> | string): Provider {\n const sig: Signal<string> =\n typeof locale === 'string' ? signal(locale).asReadonly() : computed(() => locale());\n return { provide: UI_LOCALE_ID, useValue: sig };\n}\n\n/**\n * Make a compound component re-broadcast its `locale` input as the\n * `UI_LOCALE_ID` for everything resolving beneath it.\n *\n * Put it in **`providers`**, which is what every component in the library\n * does (`breadcrumb`, `data-table`, `kanban`, `pagination`,\n * `rich-text-editor`). That reaches both the template's children and any\n * directive sitting on the component's own element — the second of which is\n * what lets `<ui-rich-text-editor locale=\"he\" uiRteFull>` localize fourteen\n * addon directives from one binding.\n *\n * `viewProviders` also works, and scopes the re-broadcast to the template\n * only, but nothing in the library needs that narrower reach today.\n *\n * Neither placement cycles: the component lookup happens lazily inside the\n * `computed` below, not while the parent is still constructing.\n *\n * ```ts\n * @Component({\n * selector: 'ui-pagination',\n * providers: [provideComponentLocale(() => PaginationComponent)],\n * })\n * export class PaginationComponent {\n * readonly locale = input<LocaleInput<PaginationLocale>>();\n * }\n * ```\n *\n * Projected sub-components (`<ui-pagination-previous>`, etc.) that inject\n * `UI_LOCALE_ID` now see the parent's locale instead of the app-wide token,\n * so `<ui-pagination locale=\"he\">` localises every child without each child\n * needing its own `[locale]` binding.\n *\n * Falls through to the upstream `UI_LOCALE_ID` (skipSelf) when the parent's\n * `locale` input is unset / empty.\n */\nexport function provideComponentLocale<T extends { locale: Signal<unknown> }>(\n forwardCmp: () => Type<T>,\n): Provider {\n return {\n provide: UI_LOCALE_ID,\n useFactory: (): Signal<string> => {\n // Capture the upstream UI_LOCALE_ID and an Injector handle EAGERLY\n // (these don't cycle); defer the component lookup to computed-time\n // so it doesn't recurse into the still-constructing parent.\n const upstream = inject(UI_LOCALE_ID, { skipSelf: true });\n const injector = inject(Injector);\n return computed(() => {\n const cmp = injector.get(forwardCmp(), null);\n if (!cmp) return upstream();\n const input = cmp.locale();\n if (input && typeof input === 'object' && 'code' in input) {\n return (input as { code: string }).code;\n }\n if (typeof input === 'string' && input.length > 0) {\n return input;\n }\n return upstream();\n });\n },\n };\n}\n","import { computed, inject, type Signal } from '@angular/core';\nimport { UI_LOCALE_ID } from './i18n.token';\nimport type { LocaleInput, LocaleMeta } from './i18n.types';\n\n/**\n * Pure locale resolver — resolve a per-component input + a global locale key\n * to a concrete dictionary.\n *\n * Resolution order:\n * 1. `input` is a non-null object → use it as-is (consumer-supplied custom\n * locale).\n * 2. `input` is a non-empty string → look up `registry[input]`.\n * 3. If step 2 missed (or `input` was `undefined`/`''`) → look up\n * `registry[globalKey]`.\n * 4. If that also missed → `registry[fallback]` (default `'en'`).\n * 5. If even the fallback is absent the registry is malformed; throw a\n * descriptive error so the failure mode is loud, not a silent\n * `undefined` reaching a template.\n *\n * Treating `''` the same as `undefined` means components binding `locale`\n * to a form control / query param that hasn't been set yet still inherit\n * the app-wide global locale.\n */\nexport function resolveLocale<T extends LocaleMeta>(\n input: LocaleInput<T> | undefined,\n registry: Record<string, T>,\n globalKey: string,\n fallback = 'en',\n): T {\n if (input && typeof input === 'object') return input;\n const explicit =\n typeof input === 'string' && input.length > 0 ? registry[input] : undefined;\n const resolved = explicit ?? registry[globalKey] ?? registry[fallback];\n if (!resolved) {\n throw new Error(\n `[shadcn-angular i18n] Locale registry is missing the \"${fallback}\" fallback entry. ` +\n `Every registry must define at least the fallback locale.`,\n );\n }\n return resolved;\n}\n\n/**\n * Component helper — build a `Signal<T>` that resolves the active locale,\n * reacting to both the per-instance `locale` input and the global\n * `UI_LOCALE_ID` signal.\n *\n * Must be called in an injection context (component constructor or field\n * initializer).\n *\n * ```ts\n * readonly locale = input<LocaleInput<PaginationLocale>>();\n * protected readonly t = createLocaleSelector(this.locale, PAGINATION_LOCALES);\n * ```\n */\nexport function createLocaleSelector<T extends LocaleMeta>(\n localeInput: Signal<LocaleInput<T> | undefined>,\n registry: Record<string, T>,\n fallback = 'en',\n): Signal<T> {\n if (typeof localeInput !== 'function') {\n throw new TypeError(\n '[shadcn-angular i18n] createLocaleSelector received a non-Signal `localeInput`. ' +\n 'Common cause: the `locale = input(...)` field is declared AFTER the field that ' +\n 'calls createLocaleSelector / createLocaleBindings. Declare `locale` BEFORE ' +\n 'any field that depends on `this.locale` so its initializer has already run.',\n );\n }\n const globalLocale = inject(UI_LOCALE_ID);\n return computed(() => resolveLocale(localeInput(), registry, globalLocale(), fallback));\n}\n\n/**\n * Convenience bundle: the resolved locale, an `isRtl` signal, and a `dir`\n * signal ready to bind to `[attr.dir]`. Use this in components to avoid\n * duplicating the same three computed signals across the library.\n *\n * ```ts\n * private readonly i18n = createLocaleBindings(this.locale, PAGINATION_LOCALES);\n * protected readonly t = this.i18n.t;\n * protected readonly dir = this.i18n.dir;\n * ```\n *\n * `dir` resolves to `'rtl'` when the active locale is RTL and to `null`\n * otherwise. Binding `[attr.dir]=\"dir()\"` therefore emits `dir=\"rtl\"`\n * only when needed — and crucially never `dir=\"ltr\"`, so an ancestor\n * `<html dir=\"rtl\">` continues to apply for LTR-base locales the\n * component doesn't recognise as explicitly RTL.\n *\n * Must be called in an injection context.\n */\nexport interface LocaleBindings<T extends LocaleMeta> {\n readonly t: Signal<T>;\n readonly isRtl: Signal<boolean>;\n readonly dir: Signal<'rtl' | null>;\n}\n\nexport function createLocaleBindings<T extends LocaleMeta>(\n localeInput: Signal<LocaleInput<T> | undefined>,\n registry: Record<string, T>,\n fallback = 'en',\n): LocaleBindings<T> {\n const t = createLocaleSelector(localeInput, registry, fallback);\n const isRtl = computed(() => t().rtl === true);\n const dir = computed<'rtl' | null>(() => (isRtl() ? 'rtl' : null));\n return { t, isRtl, dir };\n}\n\n/**\n * Replace `{placeholder}` tokens in a template with values from `values`.\n *\n * Placeholder names may contain any character except `}` — so `{user.name}`,\n * `{count-total}`, and `{0}` are all valid.\n *\n * ```ts\n * interpolate('Page {n} of {total}', { n: 3, total: 7 }); // 'Page 3 of 7'\n * ```\n *\n * Unknown placeholders are left as-is (e.g. `{unknown}`) so missing values\n * surface at runtime instead of silently rendering `undefined` or an empty\n * string.\n *\n * Note: the JS template-literal form `${name}` is NOT a special case — only\n * the bare `{name}` braces are recognised. A template like `'$${x}'` with\n * `{ x: 'v' }` yields `'$$v'`, which is rarely what a translator intends.\n */\nexport function interpolate(\n template: string,\n values: Record<string, string | number>,\n): string {\n return template.replaceAll(/\\{([^}]{1,256})\\}/g, (match, k: string) =>\n Object.hasOwn(values, k) ? String(values[k]) : match,\n );\n}\n\n/** Thin wrapper around `Intl.DateTimeFormat`. */\nexport function formatDate(\n date: Date,\n locale: string,\n options?: Intl.DateTimeFormatOptions,\n): string {\n return new Intl.DateTimeFormat(locale, options).format(date);\n}\n\n/** Thin wrapper around `Intl.NumberFormat`. */\nexport function formatNumber(\n value: number,\n locale: string,\n options?: Intl.NumberFormatOptions,\n): string {\n return new Intl.NumberFormat(locale, options).format(value);\n}\n\n/** Thin wrapper around `Intl.ListFormat`. */\nexport function formatList(\n items: readonly string[],\n locale: string,\n options?: Intl.ListFormatOptions,\n): string {\n return new Intl.ListFormat(locale, options).format(items);\n}\n\n/** Thin wrapper around `Intl.RelativeTimeFormat`. */\nexport function formatRelativeTime(\n value: number,\n unit: Intl.RelativeTimeFormatUnit,\n locale: string,\n options?: Intl.RelativeTimeFormatOptions,\n): string {\n return new Intl.RelativeTimeFormat(locale, options).format(value, unit);\n}\n\n/**\n * This locale's glyphs for 0–9, in order.\n *\n * A locale's digits are not necessarily ASCII: `ar-EG` writes `١٢٣`, `fa-IR`\n * writes `۱۲۳`. A field that formats with `Intl` and then parses with a\n * `[0-9]` class does not merely mishandle foreign input — it rejects the exact\n * string it just produced.\n */\nexport function localeDigits(locale: string): readonly string[] {\n const formatter = new Intl.NumberFormat(locale, { useGrouping: false });\n return Array.from({ length: 10 }, (_, digit) => formatter.format(digit));\n}\n\n/**\n * Rewrite a locale's digits as ASCII so the result can be parsed as a number.\n *\n * Pass the locale's own `digits` when they are already to hand; otherwise this\n * asks for them. Characters that are not digits are left exactly as they are —\n * separators and symbols are the caller's problem, not this function's.\n */\nexport function toAsciiDigits(text: string, digits: readonly string[]): string {\n let result = '';\n for (const char of text) {\n const value = digits.indexOf(char);\n result += value === -1 ? char : String(value);\n }\n return result;\n}\n","export type { LocaleMeta, LocaleInput } from './i18n.types';\nexport { UI_LOCALE_ID, provideUiLocale, provideComponentLocale } from './i18n.token';\nexport {\n resolveLocale,\n createLocaleSelector,\n createLocaleBindings,\n interpolate,\n formatDate,\n formatNumber,\n formatList,\n formatRelativeTime,\n localeDigits,\n toAsciiDigits,\n type LocaleBindings,\n} from './i18n.utils';\n// Locale string bundles are intentionally NOT re-exported by this barrel:\n// re-exporting them would drag every locale file into any consumer that imports\n// the barrel. Import CALENDAR_LOCALES / COMMON_LOCALES straight from their own\n// sibling modules where they are actually needed.\n","import type { LocaleMeta } from './i18n.types';\n\n/**\n * Cross-cutting UI strings shared by many components (Close buttons, Cancel\n * defaults, Search placeholders, etc.).\n *\n * Components are free to extend their own locale interface with additional\n * keys; this file just guarantees a common vocabulary for the smallest\n * label set. Most component-level locale files re-export the keys they need\n * rather than depending on `CommonLocale` directly — that keeps each\n * component's locale shape self-contained.\n */\nexport interface CommonLocale extends LocaleMeta {\n close: string;\n cancel: string;\n confirm: string;\n continue: string;\n save: string;\n delete: string;\n edit: string;\n search: string;\n searchPlaceholder: string;\n selectPlaceholder: string;\n noResults: string;\n previous: string;\n next: string;\n finish: string;\n skip: string;\n loading: string;\n copied: string;\n}\n\nexport const COMMON_LOCALES: Record<string, CommonLocale> = {\n en: {\n code: 'en',\n close: 'Close',\n cancel: 'Cancel',\n confirm: 'Confirm',\n continue: 'Continue',\n save: 'Save',\n delete: 'Delete',\n edit: 'Edit',\n search: 'Search',\n searchPlaceholder: 'Search...',\n selectPlaceholder: 'Select...',\n noResults: 'No results found.',\n previous: 'Previous',\n next: 'Next',\n finish: 'Done',\n skip: 'Skip',\n loading: 'Loading...',\n copied: 'Copied!',\n },\n he: {\n code: 'he',\n rtl: true,\n close: 'סגור',\n cancel: 'ביטול',\n confirm: 'אישור',\n continue: 'המשך',\n save: 'שמור',\n delete: 'מחק',\n edit: 'ערוך',\n search: 'חיפוש',\n searchPlaceholder: '...חיפוש',\n selectPlaceholder: '...בחר',\n noResults: 'לא נמצאו תוצאות.',\n previous: 'הקודם',\n next: 'הבא',\n finish: 'סיום',\n skip: 'דלג',\n loading: '...טוען',\n copied: '!הועתק',\n },\n ar: {\n code: 'ar',\n rtl: true,\n close: 'إغلاق',\n cancel: 'إلغاء',\n confirm: 'تأكيد',\n continue: 'متابعة',\n save: 'حفظ',\n delete: 'حذف',\n edit: 'تحرير',\n search: 'بحث',\n searchPlaceholder: '...بحث',\n selectPlaceholder: '...اختر',\n noResults: 'لم يتم العثور على نتائج.',\n previous: 'السابق',\n next: 'التالي',\n finish: 'إنهاء',\n skip: 'تخطي',\n loading: '...جاري التحميل',\n copied: '!تم النسخ',\n },\n de: {\n code: 'de',\n close: 'Schließen',\n cancel: 'Abbrechen',\n confirm: 'Bestätigen',\n continue: 'Weiter',\n save: 'Speichern',\n delete: 'Löschen',\n edit: 'Bearbeiten',\n search: 'Suche',\n searchPlaceholder: 'Suchen...',\n selectPlaceholder: 'Auswählen...',\n noResults: 'Keine Ergebnisse gefunden.',\n previous: 'Zurück',\n next: 'Weiter',\n finish: 'Fertig',\n skip: 'Überspringen',\n loading: 'Wird geladen...',\n copied: 'Kopiert!',\n },\n fr: {\n code: 'fr',\n close: 'Fermer',\n cancel: 'Annuler',\n confirm: 'Confirmer',\n continue: 'Continuer',\n save: 'Enregistrer',\n delete: 'Supprimer',\n edit: 'Modifier',\n search: 'Rechercher',\n searchPlaceholder: 'Rechercher...',\n selectPlaceholder: 'Sélectionner...',\n noResults: 'Aucun résultat trouvé.',\n previous: 'Précédent',\n next: 'Suivant',\n finish: 'Terminé',\n skip: 'Passer',\n loading: 'Chargement...',\n copied: 'Copié !',\n },\n es: {\n code: 'es',\n close: 'Cerrar',\n cancel: 'Cancelar',\n confirm: 'Confirmar',\n continue: 'Continuar',\n save: 'Guardar',\n delete: 'Eliminar',\n edit: 'Editar',\n search: 'Buscar',\n searchPlaceholder: 'Buscar...',\n selectPlaceholder: 'Seleccionar...',\n noResults: 'No se encontraron resultados.',\n previous: 'Anterior',\n next: 'Siguiente',\n finish: 'Listo',\n skip: 'Omitir',\n loading: 'Cargando...',\n copied: '¡Copiado!',\n },\n ja: {\n code: 'ja',\n close: '閉じる',\n cancel: 'キャンセル',\n confirm: '確認',\n continue: '続行',\n save: '保存',\n delete: '削除',\n edit: '編集',\n search: '検索',\n searchPlaceholder: '検索...',\n selectPlaceholder: '選択...',\n noResults: '結果が見つかりません。',\n previous: '前へ',\n next: '次へ',\n finish: '完了',\n skip: 'スキップ',\n loading: '読み込み中...',\n copied: 'コピーしました!',\n },\n zh: {\n code: 'zh',\n close: '关闭',\n cancel: '取消',\n confirm: '确认',\n continue: '继续',\n save: '保存',\n delete: '删除',\n edit: '编辑',\n search: '搜索',\n searchPlaceholder: '搜索...',\n selectPlaceholder: '选择...',\n noResults: '未找到结果。',\n previous: '上一页',\n next: '下一页',\n finish: '完成',\n skip: '跳过',\n loading: '加载中...',\n copied: '已复制!',\n },\n ru: {\n code: 'ru',\n close: 'Закрыть',\n cancel: 'Отмена',\n confirm: 'Подтвердить',\n continue: 'Продолжить',\n save: 'Сохранить',\n delete: 'Удалить',\n edit: 'Редактировать',\n search: 'Поиск',\n searchPlaceholder: 'Поиск...',\n selectPlaceholder: 'Выбрать...',\n noResults: 'Результаты не найдены.',\n previous: 'Назад',\n next: 'Далее',\n finish: 'Готово',\n skip: 'Пропустить',\n loading: 'Загрузка...',\n copied: 'Скопировано!',\n },\n pt: {\n code: 'pt',\n close: 'Fechar',\n cancel: 'Cancelar',\n confirm: 'Confirmar',\n continue: 'Continuar',\n save: 'Salvar',\n delete: 'Excluir',\n edit: 'Editar',\n search: 'Pesquisar',\n searchPlaceholder: 'Pesquisar...',\n selectPlaceholder: 'Selecionar...',\n noResults: 'Nenhum resultado encontrado.',\n previous: 'Anterior',\n next: 'Próximo',\n finish: 'Concluído',\n skip: 'Pular',\n loading: 'Carregando...',\n copied: 'Copiado!',\n },\n};\n","import {\n Component,\n ChangeDetectionStrategy,\n model,\n InjectionToken,\n forwardRef,\n} from '@angular/core';\n\nexport const ALERT_DIALOG = new InjectionToken<AlertDialogComponent>('ALERT_DIALOG');\n\n@Component({\n selector: 'ui-alert-dialog',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: ALERT_DIALOG, useExisting: forwardRef(() => AlertDialogComponent) }],\n template: `<ng-content />`,\n host: { class: 'contents' },\n})\nexport class AlertDialogComponent {\n /**\n * Two-way bound visibility. Nothing inside `ui-alert-dialog-content` exists\n * in the DOM while this is `false`. Unlike `ui-dialog`, clicking the\n * backdrop does not clear it — only Escape, the action/cancel buttons or\n * your own code can.\n */\n open = model(false);\n\n /** Opens the alert dialog. Equivalent to setting {@link open} to `true`. */\n show(): void {\n this.open.set(true);\n }\n\n /**\n * Closes the alert dialog. Called by `ui-alert-dialog-action` and\n * `ui-alert-dialog-cancel` and by Escape; focus returns to whatever was\n * focused before opening.\n */\n hide(): void {\n this.open.set(false);\n }\n\n /** Flips {@link open}. This is what `ui-alert-dialog-trigger` calls on activation. */\n toggle(): void {\n this.open.update(v => !v);\n }\n}\n","/**\n * Accessibility helpers shared by the trigger/close wrapper components.\n *\n * The wrappers (`ui-popover-trigger`, `ui-dialog-trigger`, `ui-sheet-close`, …)\n * project arbitrary content and must stay keyboard-operable. Historically they\n * always rendered `role=\"button\" tabindex=\"0\"` on their own `<span>`, which is\n * correct when the consumer projects inert content (plain text, an icon) but\n * produces a nested interactive control — a real WCAG 4.1.2 failure, flagged by\n * axe's `nested-interactive` — as soon as the consumer projects a `<ui-button>`\n * or any other focusable element, which is by far the common case.\n *\n * `hasInteractiveContent()` lets a wrapper decide at runtime which of the two it\n * is: if the projected content already carries the button semantics and focus,\n * the wrapper stays a transparent, non-focusable event delegate; if it does not,\n * the wrapper supplies them itself. Same public API, correct semantics in both\n * modes.\n */\n\n/**\n * Elements that are focusable / expose a widget role, and therefore already\n * provide the interaction semantics a trigger wrapper would otherwise add.\n */\nconst INTERACTIVE_SELECTOR = [\n 'a[href]',\n 'button',\n 'input',\n 'select',\n 'textarea',\n 'summary',\n '[tabindex]',\n '[role=\"button\"]',\n '[role=\"link\"]',\n '[role=\"checkbox\"]',\n '[role=\"combobox\"]',\n '[role=\"menuitem\"]',\n '[role=\"switch\"]',\n '[role=\"tab\"]',\n].join(',');\n\n/**\n * True when the *projected* content contains at least one interactive element —\n * i.e. it is already operable and the wrapper must not add a competing\n * `role=\"button\"` / `tabindex` of its own.\n *\n * Pass the wrapper component's HOST element. The search starts from the host's\n * first element child — the wrapper's own `<span>` — and therefore looks only at\n * what the consumer projected inside it.\n *\n * Searching from the host itself would match the wrapper's own `<span>`, which\n * carries `role=\"button\"` and `tabindex=\"0\"` on the first render: every wrapper\n * would detect itself as \"wrapping interactive content\" and strip the very\n * semantics it had just applied, leaving a text-only trigger unfocusable\n * (WCAG 2.1.1). `querySelector` never matches the element it is called on, so\n * descending one level first is what makes the check see only projected content.\n */\nexport function hasInteractiveContent(host: Element | null | undefined): boolean {\n const projectionRoot = host?.firstElementChild ?? host;\n return !!projectionRoot?.querySelector(INTERACTIVE_SELECTOR);\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n afterNextRender,\n inject,\n signal,\n} from '@angular/core';\nimport { ALERT_DIALOG } from '../alert-dialog.component';\nimport { hasInteractiveContent } from '../../../lib/a11y';\n\n@Component({\n selector: 'ui-alert-dialog-trigger',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span\n (click)=\"onClick()\"\n (keydown.enter)=\"onKeydown($event)\"\n (keydown.space)=\"onKeydown($event)\"\n [attr.data-slot]=\"'alert-dialog-trigger'\"\n [attr.tabindex]=\"wrapsInteractive() ? null : 0\"\n [attr.role]=\"wrapsInteractive() ? null : 'button'\"\n >\n <ng-content />\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class AlertDialogTriggerComponent {\n private readonly alertDialog = inject(ALERT_DIALOG, { optional: true });\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** See `lib/a11y.ts` — stays transparent when the projected content is already a control. */\n readonly wrapsInteractive = signal(false);\n\n constructor() {\n afterNextRender(() => {\n this.wrapsInteractive.set(hasInteractiveContent(this.host.nativeElement));\n });\n }\n\n /** Toggles the owning `ui-alert-dialog`; a no-op when rendered outside one. */\n onClick(): void {\n this.alertDialog?.toggle();\n }\n\n /**\n * Only toggles from the wrapper's own keyboard activation. When the\n * projected content is itself focusable (e.g. a native `<button>`), its\n * Enter/Space already fires a click that bubbles here — handling the keydown\n * too would toggle twice (open then immediately close).\n */\n onKeydown(event: Event): void {\n if (event.target !== event.currentTarget) return;\n event.preventDefault();\n this.onClick();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-alert-dialog-header',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'flex flex-col space-y-2 text-center sm:text-left rtl:text-right',\n '[attr.data-slot]': '\"alert-dialog-header\"',\n },\n})\nexport class AlertDialogHeaderComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-alert-dialog-title',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'text-lg font-semibold',\n '[attr.data-slot]': '\"alert-dialog-title\"',\n },\n})\nexport class AlertDialogTitleComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-alert-dialog-description',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'text-sm text-muted-foreground',\n '[attr.data-slot]': '\"alert-dialog-description\"',\n },\n})\nexport class AlertDialogDescriptionComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-alert-dialog-footer',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 gap-[10px]',\n '[attr.data-slot]': '\"alert-dialog-footer\"',\n },\n})\nexport class AlertDialogFooterComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n inject,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { ALERT_DIALOG } from '../alert-dialog.component';\n\n@Component({\n selector: 'ui-alert-dialog-action',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button\n [class]=\"classes()\"\n (click)=\"onClick()\"\n [attr.data-slot]=\"'alert-dialog-action'\"\n >\n <ng-content />\n </button>\n `,\n styleUrl: './alert-dialog-action.component.css',\n host: { class: 'contents' },\n})\nexport class AlertDialogActionComponent {\n private readonly alertDialog = inject(ALERT_DIALOG, { optional: true });\n /**\n * Extra classes merged onto the inner `<button>`, after the primary-button\n * defaults — pass e.g. `bg-destructive hover:bg-destructive/90` to style a\n * destructive confirmation.\n */\n class = input('');\n\n classes = computed(() =>\n cn(\n 'inline-flex items-center justify-center rounded-md bg-primary text-sm font-medium text-primary-foreground ring-offset-background transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',\n this.class()\n )\n );\n\n /**\n * Closes the owning `ui-alert-dialog` — the button always dismisses, so bind\n * your own `(click)` on this element for the confirm side effect rather than\n * calling `hide()` again.\n */\n onClick(): void {\n this.alertDialog?.hide();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n inject,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { ALERT_DIALOG } from '../alert-dialog.component';\n\n@Component({\n selector: 'ui-alert-dialog-cancel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button\n [class]=\"classes()\"\n (click)=\"onClick()\"\n [attr.data-slot]=\"'alert-dialog-cancel'\"\n >\n <ng-content />\n </button>\n `,\n styleUrl: './alert-dialog-cancel.component.css',\n host: { class: 'contents' },\n})\nexport class AlertDialogCancelComponent {\n private readonly alertDialog = inject(ALERT_DIALOG, { optional: true });\n /**\n * Extra classes merged onto the inner `<button>`, after the outline-button\n * defaults (which include the `mt-2 sm:mt-0` offset for the footer's\n * stacked-on-mobile layout).\n */\n class = input('');\n\n classes = computed(() =>\n cn(\n 'inline-flex items-center justify-center rounded-md border border-input bg-background text-sm font-medium ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 mt-2 sm:mt-0',\n this.class()\n )\n );\n\n /**\n * Closes the owning `ui-alert-dialog` without confirming; a no-op when\n * rendered outside one. Bind your own `(click)` for any extra dismissal\n * side effect.\n */\n onClick(): void {\n this.alertDialog?.hide();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n inject,\n AfterViewInit,\n ElementRef,\n effect,\n afterRenderEffect,\n signal,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleBindings, type LocaleInput } from '../../../lib/i18n';\nimport { COMMON_LOCALES, type CommonLocale } from '../../../lib/i18n/common.locales';\nimport { ALERT_DIALOG } from '../alert-dialog.component';\nimport { AlertDialogHeaderComponent } from './alert-dialog-header.component';\nimport { AlertDialogTitleComponent } from './alert-dialog-title.component';\nimport { AlertDialogDescriptionComponent } from './alert-dialog-description.component';\nimport { AlertDialogFooterComponent } from './alert-dialog-footer.component';\nimport { AlertDialogActionComponent } from './alert-dialog-action.component';\nimport { AlertDialogCancelComponent } from './alert-dialog-cancel.component';\n\n@Component({\n selector: 'ui-alert-dialog-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n AlertDialogHeaderComponent,\n AlertDialogTitleComponent,\n AlertDialogDescriptionComponent,\n AlertDialogFooterComponent,\n AlertDialogActionComponent,\n AlertDialogCancelComponent,\n ],\n template: `\n @if (alertDialog?.open()) {\n <div\n class=\"fixed inset-0 z-50 flex items-center justify-center\"\n [attr.dir]=\"dir()\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"-1\"\n >\n <!-- Overlay - no click to close for alert dialogs -->\n <div class=\"fixed inset-0 bg-black/80 animate-in fade-in-0\"></div>\n <!-- Content -->\n <div\n #contentEl\n [class]=\"classes()\"\n role=\"alertdialog\"\n [attr.data-slot]=\"'alert-dialog-content'\"\n [attr.aria-labelledby]=\"titleId()\"\n tabindex=\"-1\"\n >\n @if (title()) {\n <ui-alert-dialog-header>\n <ui-alert-dialog-title>{{ title() }}</ui-alert-dialog-title>\n @if (description()) {\n <ui-alert-dialog-description>{{ description() }}</ui-alert-dialog-description>\n }\n </ui-alert-dialog-header>\n }\n <ng-content />\n @if (title()) {\n <ui-alert-dialog-footer>\n <ui-alert-dialog-cancel (click)=\"cancelClick.emit()\">{{ cancelText() ?? t().cancel }}</ui-alert-dialog-cancel>\n <ui-alert-dialog-action (click)=\"actionClick.emit()\">{{ actionText() ?? t().continue }}</ui-alert-dialog-action>\n </ui-alert-dialog-footer>\n }\n </div>\n </div>\n }\n `,\n host: { class: 'contents' },\n})\nexport class AlertDialogContentComponent implements AfterViewInit {\n readonly alertDialog = inject(ALERT_DIALOG, { optional: true });\n private readonly el = inject(ElementRef);\n /**\n * Extra classes merged onto the centred panel (not the backdrop). Overrides\n * the default `max-w-[calc(100vw-2rem)] sm:max-w-lg` sizing when you pass a\n * width utility.\n */\n readonly class = input('');\n /**\n * Simple mode: renders the header **and** a footer with ready-made cancel /\n * action buttons wired to {@link cancelClick} and {@link actionClick}.\n * Leave it unset to project your own header and footer — with no title\n * neither the header nor the default buttons are rendered, and\n * {@link description}, {@link actionText} and {@link cancelText} have no\n * effect.\n */\n readonly title = input<string>();\n /** Simple-mode sub-heading. Only rendered when {@link title} is also set. */\n readonly description = input<string>();\n\n /**\n * `id` of the element naming the dialog. `role=\"alertdialog\"` requires an\n * accessible name (axe `aria-dialog-name`) and it must come from the author.\n * The title is rendered either from the `title` input or projected as a\n * `<ui-alert-dialog-title>`, so it is located in the DOM after render and\n * given an id to point `aria-labelledby` at — which covers both modes.\n */\n readonly titleId = signal<string | null>(null);\n\n /** Override for the action button text. When unset, falls back to the locale's `continue` string. */\n readonly actionText = input<string>();\n /** Override for the cancel button text. When unset, falls back to the locale's `cancel` string. */\n readonly cancelText = input<string>();\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<CommonLocale>>();\n\n private readonly i18n = createLocaleBindings(this.locale, COMMON_LOCALES);\n protected readonly t = this.i18n.t;\n protected readonly dir = this.i18n.dir;\n\n /**\n * The confirm button was pressed. Only emitted by the simple-mode footer\n * (i.e. when {@link title} is set) — project your own\n * `ui-alert-dialog-action` and you handle its click yourself. The dialog\n * closes itself either way, so do not also call `hide()`.\n */\n readonly actionClick = output<void>();\n /** The cancel button was pressed. Same simple-mode-only rules as {@link actionClick}. */\n readonly cancelClick = output<void>();\n\n readonly classes = computed(() =>\n cn(\n 'fixed z-50 grid w-full max-w-[calc(100vw-2rem)] sm:max-w-lg gap-3 sm:gap-4 border bg-background p-4 sm:p-6 shadow-lg duration-200 sm:rounded-lg',\n this.class()\n )\n );\n\n private contentEl?: HTMLElement;\n private previousActiveElement?: Element | null;\n\n constructor() {\n effect(() => {\n if (this.alertDialog?.open()) {\n this.previousActiveElement = document.activeElement;\n setTimeout(() => this.focusFirstElement(), 0);\n } else if (this.previousActiveElement instanceof HTMLElement) {\n this.previousActiveElement.focus();\n }\n });\n\n afterRenderEffect(() => {\n if (!this.alertDialog?.open()) return;\n const host = this.el.nativeElement as HTMLElement;\n const titleEl = host.querySelector<HTMLElement>('[data-slot=\"alert-dialog-title\"]');\n if (!titleEl) return;\n titleEl.id ||= `alert-dialog-title-${++AlertDialogContentComponent.titleSeq}`;\n this.titleId.set(titleEl.id);\n });\n }\n\n private static titleSeq = 0;\n\n ngAfterViewInit(): void {\n if (this.alertDialog?.open()) {\n this.focusFirstElement();\n }\n }\n\n private focusFirstElement(): void {\n const content = this.el.nativeElement.querySelector('[data-slot=\"alert-dialog-content\"]');\n if (content) {\n this.contentEl = content;\n const focusable = content.querySelector(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n ) as HTMLElement;\n if (focusable) {\n focusable.focus();\n } else {\n content.focus();\n }\n }\n }\n\n /**\n * Key handler on the modal wrapper: Escape closes the dialog, Tab/Shift+Tab\n * wrap focus so it stays trapped inside the panel. There is deliberately no\n * backdrop-click dismissal — an alert dialog demands an explicit choice. The\n * panel renders inline at `z-50`, not in the native top layer.\n */\n onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.alertDialog?.hide();\n return;\n }\n\n if (event.key === 'Tab' && this.contentEl) {\n const focusableElements = this.contentEl.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (focusableElements.length === 0) return;\n\n const firstElement = focusableElements[0] as HTMLElement;\n const lastElement = Array.from(focusableElements).at(-1) as HTMLElement;\n\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement?.focus();\n }\n } else if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement?.focus();\n }\n }\n }\n}\n","import { Component, ChangeDetectionStrategy, output, signal, effect } from '@angular/core';\nimport { AlertDialogComponent, AlertDialogContentComponent } from '../alert-dialog';\n\n@Component({\n selector: 'ui-confirm-dialog',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AlertDialogComponent, AlertDialogContentComponent],\n template: `\n <ui-alert-dialog [open]=\"open()\">\n <ui-alert-dialog-content\n [title]=\"title()\"\n [description]=\"description()\"\n [actionText]=\"confirmLabel()\"\n [cancelText]=\"cancelLabel()\"\n (actionClick)=\"onConfirm()\"\n (cancelClick)=\"onCancel()\"\n />\n </ui-alert-dialog>\n `,\n})\nexport class ConfirmDialogComponent {\n readonly open = signal(false);\n readonly title = signal('Confirm');\n readonly description = signal('Are you sure?');\n readonly confirmLabel = signal('Confirm');\n readonly cancelLabel = signal('Cancel');\n\n /** Emits when the user accepts. Always followed by the dialog closing. */\n readonly confirmed = output<void>();\n /**\n * Emits on every non-accepting close — the Cancel button, Escape, or a\n * backdrop dismiss — so a caller can rely on exactly one of\n * {@link confirmed} / {@link cancelled} firing per open.\n */\n readonly cancelled = output<void>();\n\n private wasOpen = false;\n\n /**\n * Bridges dismissals that bypass the buttons. Escape (and any other route\n * that calls the alert dialog's own `hide()`) flips `open` to false without\n * going through {@link onCancel}, so a true → false transition is treated as\n * a cancel. {@link onConfirm} and {@link onCancel} clear `wasOpen` first, so\n * they never double-emit through this path.\n */\n constructor() {\n effect(() => {\n const isOpen = this.open();\n if (this.wasOpen && !isOpen) {\n this.cancelled.emit();\n }\n this.wasOpen = isOpen;\n });\n }\n\n /** Open the dialog. */\n show(): void {\n this.open.set(true);\n }\n\n /** Close the dialog without emitting an outcome. */\n hide(): void {\n this.open.set(false);\n }\n\n /** Accept: close and emit {@link confirmed}. */\n onConfirm(): void {\n this.wasOpen = false;\n this.open.set(false);\n this.confirmed.emit();\n }\n\n /** Reject: close and emit {@link cancelled}. */\n onCancel(): void {\n this.wasOpen = false;\n this.open.set(false);\n this.cancelled.emit();\n }\n}\n","import {\n Directive,\n computed,\n input,\n output,\n inject,\n ApplicationRef,\n EnvironmentInjector,\n Injector,\n createComponent,\n HostListener,\n} from '@angular/core';\nimport { createLocaleSelector, type LocaleInput } from '../../lib/i18n';\nimport { COMMON_LOCALES, type CommonLocale } from '../../lib/i18n/common.locales';\nimport { ConfirmDialogComponent } from './confirm-dialog.component';\n\n@Directive({\n selector: '[uiConfirm]',\n standalone: true,\n})\nexport class ConfirmDirective {\n /** Locale for the default dialog strings: a registry key (`'en'`/`'he'`/…) or a full dictionary. */\n readonly locale = input<LocaleInput<CommonLocale>>();\n /**\n * The confirmation prompt, and the directive's own selector — applying\n * `uiConfirm=\"Delete this file?\"` is what enables the guard. The text\n * becomes the dialog's description; an empty value shows title only.\n */\n readonly uiConfirm = input<string>();\n /** Dialog heading. Defaults to the locale's \"Confirm\". */\n readonly confirmTitle = input<string>();\n /** Confirm button text. Defaults to the locale's \"Confirm\". */\n readonly confirmLabel = input<string>();\n /** Cancel button text. Defaults to the locale's \"Cancel\". */\n readonly cancelLabel = input<string>();\n\n /**\n * Emits only after the user confirms. The host's own click is stopped, so\n * this — not `(click)` — is where the guarded action belongs.\n */\n readonly confirmed = output<void>();\n\n private readonly t = createLocaleSelector(this.locale, COMMON_LOCALES);\n private readonly resolvedTitle = computed(() => this.confirmTitle() ?? this.t().confirm);\n private readonly resolvedConfirmLabel = computed(() => this.confirmLabel() ?? this.t().confirm);\n private readonly resolvedCancelLabel = computed(() => this.cancelLabel() ?? this.t().cancel);\n private readonly resolvedDescription = computed(() => this.uiConfirm() ?? '');\n\n private readonly appRef = inject(ApplicationRef);\n private readonly injector = inject(EnvironmentInjector);\n private readonly elementInjector = inject(Injector);\n\n /**\n * Intercept the host click and open the confirmation dialog instead.\n * Propagation is stopped so the host's own `(click)` never runs unguarded;\n * the dialog is created outside the view and torn down on either outcome.\n */\n @HostListener('click', ['$event'])\n onClick(event: MouseEvent): void {\n event.stopPropagation();\n\n const ref = createComponent(ConfirmDialogComponent, {\n environmentInjector: this.injector,\n elementInjector: this.elementInjector,\n });\n\n ref.instance.title.set(this.resolvedTitle());\n ref.instance.description.set(this.resolvedDescription());\n ref.instance.confirmLabel.set(this.resolvedConfirmLabel());\n ref.instance.cancelLabel.set(this.resolvedCancelLabel());\n\n this.appRef.attachView(ref.hostView);\n document.body.appendChild(ref.location.nativeElement);\n\n ref.instance.show();\n\n const confirmSub = ref.instance.confirmed.subscribe(() => {\n this.confirmed.emit();\n cleanup();\n });\n\n const cancelSub = ref.instance.cancelled.subscribe(() => {\n cleanup();\n });\n\n function cleanup(): void {\n confirmSub.unsubscribe();\n cancelSub.unsubscribe();\n ref.destroy();\n }\n }\n}\n","import { InjectionToken, Provider } from '@angular/core';\n\nexport const UI_CUSTOM_ICONS = new InjectionToken<Record<string, string>>('UI_CUSTOM_ICONS');\n\nexport function provideIcons(icons: Record<string, string>): Provider {\n return {\n provide: UI_CUSTOM_ICONS,\n useValue: icons,\n };\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n inject,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { cn } from '../../lib/utils';\nimport { UI_CUSTOM_ICONS } from './icon.token';\n\nexport const DEFAULT_ICONS = {\n // Arrows & Navigation\n 'arrow-up': '<path d=\"m5 12 7-7 7 7\" /><path d=\"M12 19V5\" />',\n 'arrow-down': '<path d=\"M12 5v14\" /><path d=\"m19 12-7 7-7-7\" />',\n 'arrow-left': '<path d=\"m12 19-7-7 7-7\" /><path d=\"M19 12H5\" />',\n 'arrow-right': '<path d=\"M5 12h14\" /><path d=\"m12 5 7 7-7 7\" />',\n 'arrow-up-right': '<path d=\"M7 7h10v10\" /><path d=\"M7 17 17 7\" />',\n 'arrow-down-left': '<path d=\"M17 7 7 17\" /><path d=\"M17 17H7V7\" />',\n 'arrow-up-left': '<path d=\"M7 7h10\" /><path d=\"M17 17 7 7\" /><path d=\"M7 17V7\" />',\n 'arrow-down-right': '<path d=\"m7 7 10 10\" /><path d=\"M17 7v10H7\" />',\n 'move-up': '<path d=\"M8 6L12 2L16 6\" /><path d=\"M12 2V22\" />',\n 'move-down': '<path d=\"M8 18L12 22L16 18\" /><path d=\"M12 2V22\" />',\n 'move-left': '<path d=\"M6 8L2 12L6 16\" /><path d=\"M2 12H22\" />',\n 'move-right': '<path d=\"M18 8L22 12L18 16\" /><path d=\"M2 12H22\" />',\n\n // Chevrons\n 'chevron-up': '<path d=\"m18 15-6-6-6 6\" />',\n 'chevron-down': '<path d=\"m6 9 6 6 6-6\" />',\n 'chevron-left': '<path d=\"m15 18-6-6 6-6\" />',\n 'chevron-right': '<path d=\"m9 18 6-6-6-6\" />',\n 'chevrons-up': '<path d=\"m17 11-5-5-5 5\" /><path d=\"m17 18-5-5-5 5\" />',\n 'chevrons-down': '<path d=\"m7 6 5 5 5-5\" /><path d=\"m7 13 5 5 5-5\" />',\n 'chevrons-left': '<path d=\"m11 17-5-5 5-5\" /><path d=\"m18 17-5-5 5-5\" />',\n 'chevrons-right': '<path d=\"m6 17 5-5-5-5\" /><path d=\"m13 17 5-5-5-5\" />',\n 'chevrons-up-down': '<path d=\"m7 15 5 5 5-5\" /><path d=\"m7 9 5-5 5 5\" />',\n\n // Actions\n 'check': '<path d=\"M20 6 9 17l-5-5\" />',\n 'x': '<path d=\"M18 6 6 18\" /><path d=\"m6 6 12 12\" />',\n 'plus': '<path d=\"M5 12h14\" /><path d=\"M12 5v14\" />',\n 'minus': '<path d=\"M5 12h14\" />',\n 'search': '<circle cx=\"11\" cy=\"11\" r=\"8\" /><path d=\"m21 21-4.3-4.3\" />',\n 'filter': '<polygon points=\"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3\" />',\n 'list-filter': '<path d=\"M3 6h18\" /><path d=\"M7 12h10\" /><path d=\"M10 18h4\" />',\n 'sort-asc': '<path d=\"m3 8 4-4 4 4\" /><path d=\"M7 4v16\" /><path d=\"M11 12h4\" /><path d=\"M11 16h7\" /><path d=\"M11 20h10\" />',\n 'sort-desc': '<path d=\"m3 16 4 4 4-4\" /><path d=\"M7 20V4\" /><path d=\"M11 4h10\" /><path d=\"M11 8h7\" /><path d=\"M11 12h4\" />',\n 'more-horizontal': '<circle cx=\"12\" cy=\"12\" r=\"1\" /><circle cx=\"19\" cy=\"12\" r=\"1\" /><circle cx=\"5\" cy=\"12\" r=\"1\" />',\n 'more-vertical': '<circle cx=\"12\" cy=\"12\" r=\"1\" /><circle cx=\"12\" cy=\"5\" r=\"1\" /><circle cx=\"12\" cy=\"19\" r=\"1\" />',\n 'ellipsis': '<circle cx=\"12\" cy=\"12\" r=\"1\" /><circle cx=\"19\" cy=\"12\" r=\"1\" /><circle cx=\"5\" cy=\"12\" r=\"1\" />',\n 'grip-vertical': '<circle cx=\"9\" cy=\"12\" r=\"1\" /><circle cx=\"9\" cy=\"5\" r=\"1\" /><circle cx=\"9\" cy=\"19\" r=\"1\" /><circle cx=\"15\" cy=\"12\" r=\"1\" /><circle cx=\"15\" cy=\"5\" r=\"1\" /><circle cx=\"15\" cy=\"19\" r=\"1\" />',\n 'grip-horizontal': '<circle cx=\"12\" cy=\"9\" r=\"1\" /><circle cx=\"19\" cy=\"9\" r=\"1\" /><circle cx=\"5\" cy=\"9\" r=\"1\" /><circle cx=\"12\" cy=\"15\" r=\"1\" /><circle cx=\"19\" cy=\"15\" r=\"1\" /><circle cx=\"5\" cy=\"15\" r=\"1\" />',\n\n // Common UI\n 'menu': '<line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" /><line x1=\"4\" x2=\"20\" y1=\"6\" y2=\"6\" /><line x1=\"4\" x2=\"20\" y1=\"18\" y2=\"18\" />',\n 'sidebar': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M9 3.5v17\" />',\n 'panel-left': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M9 3.5v17\" />',\n 'panel-right': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M15 3.5v17\" />',\n 'panel-top': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 9h17\" />',\n 'panel-bottom': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 15h17\" />',\n 'maximize': '<polyline points=\"15 3 21 3 21 9\" /><polyline points=\"9 21 3 21 3 15\" /><line x1=\"21\" x2=\"14\" y1=\"3\" y2=\"10\" /><line x1=\"3\" x2=\"10\" y1=\"21\" y2=\"14\" />',\n 'minimize': '<polyline points=\"4 14 10 14 10 20\" /><polyline points=\"20 10 14 10 14 4\" /><line x1=\"14\" x2=\"21\" y1=\"10\" y2=\"3\" /><line x1=\"3\" x2=\"10\" y1=\"21\" y2=\"14\" />',\n 'external-link': '<path d=\"M15 3h6v6\" /><path d=\"M10 14 21 3\" /><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" />',\n 'copy': '<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />',\n 'clipboard': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" />',\n 'clipboard-check': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" /><path d=\"m9 14 2 2 4-4\" />',\n\n // File & Document\n 'file': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" />',\n 'file-plus': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M12 18v-6\" /><path d=\"M9 15h6\" />',\n 'folder-open': '<path d=\"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\" />',\n 'image': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\" />',\n\n // Communication\n 'mail': '<rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" />',\n 'message-circle': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" />',\n 'send': '<path d=\"m22 2-7 20-4-9-9-4Z\" /><path d=\"M22 2 11 13\" />',\n 'phone': '<path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\" />',\n\n // User & People\n 'user': '<path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\" /><circle cx=\"12\" cy=\"7\" r=\"4\" />',\n 'users': '<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" /><path d=\"M16 3.128a4 4 0 0 1 0 7.744\" /><path d=\"M22 21v-2a4 4 0 0 0-3-3.87\" /><circle cx=\"9\" cy=\"7\" r=\"4\" />',\n 'user-plus': '<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" /><circle cx=\"9\" cy=\"7\" r=\"4\" /><line x1=\"19\" x2=\"19\" y1=\"8\" y2=\"14\" /><line x1=\"22\" x2=\"16\" y1=\"11\" y2=\"11\" />',\n 'user-minus': '<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" /><circle cx=\"9\" cy=\"7\" r=\"4\" /><line x1=\"22\" x2=\"16\" y1=\"11\" y2=\"11\" />',\n 'user-check': '<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" /><circle cx=\"9\" cy=\"7\" r=\"4\" /><polyline points=\"16 11 18 13 22 9\" />',\n\n // Media & Content\n 'play': '<polygon points=\"6 3 20 12 6 21 6 3\" />',\n 'pause': '<rect width=\"4\" height=\"16\" x=\"6\" y=\"4\" /><rect width=\"4\" height=\"16\" x=\"14\" y=\"4\" />',\n 'volume-2': '<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\" /><path d=\"M15.54 8.46a5 5 0 0 1 0 7.07\" /><path d=\"M19.07 4.93a10 10 0 0 1 0 14.14\" />',\n 'volume-x': '<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\" /><line x1=\"22\" x2=\"16\" y1=\"9\" y2=\"15\" /><line x1=\"16\" x2=\"22\" y1=\"9\" y2=\"15\" />',\n 'mic': '<path d=\"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z\" /><path d=\"M19 10v2a7 7 0 0 1-14 0v-2\" /><line x1=\"12\" x2=\"12\" y1=\"19\" y2=\"22\" />',\n 'camera': '<path d=\"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z\" /><circle cx=\"12\" cy=\"13\" r=\"3\" />',\n\n // Status & Feedback\n 'alert-circle': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"12\" /><line x1=\"12\" x2=\"12.01\" y1=\"16\" y2=\"16\" />',\n 'info': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 16v-4\" /><path d=\"M12 8h.01\" />',\n 'help-circle': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" /><path d=\"M12 17h.01\" />',\n 'check-circle': '<path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\" /><path d=\"m9 11 3 3L22 4\" />',\n 'x-circle': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m15 9-6 6\" /><path d=\"m9 9 6 6\" />',\n 'circle-off': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"4.93\" x2=\"19.07\" y1=\"4.93\" y2=\"19.07\" />',\n 'ban': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m4.9 4.9 14.2 14.2\" />',\n 'circle': '<circle cx=\"12\" cy=\"12\" r=\"10\" />',\n 'circle-dot': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><circle cx=\"12\" cy=\"12\" r=\"1\" />',\n\n // Edit & Tools\n 'pencil': '<path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\" /><path d=\"m15 5 4 4\" />',\n 'pencil-line': '<path d=\"M12 20h9\" /><path d=\"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z\" />',\n 'trash': '<path d=\"M3 6h18\" /><path d=\"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\" /><path d=\"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\" />',\n 'trash-2': '<path d=\"M10 11v6\" /><path d=\"M14 11v6\" /><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" /><path d=\"M3 6h18\" /><path d=\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" />',\n 'settings': '<path d=\"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />',\n 'settings-2': '<path d=\"M14 17H5\" /><path d=\"M19 7h-9\" /><circle cx=\"17\" cy=\"17\" r=\"3\" /><circle cx=\"7\" cy=\"7\" r=\"3\" />',\n 'wrench': '<path d=\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z\" />',\n 'key': '<path d=\"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4\" /><path d=\"m21 2-9.6 9.6\" /><circle cx=\"7.5\" cy=\"15.5\" r=\"5.5\" />',\n 'pipette': '<path d=\"m2 22 1-1h3l9-9\" /><path d=\"M3 21v-3l9-9\" /><path d=\"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z\" />',\n 'pipette-image': '<rect width=\"13\" height=\"13\" x=\"2\" y=\"9\" rx=\"2\" /><circle cx=\"6\" cy=\"13\" r=\"1.5\" /><path d=\"m2 19 4-4 3 3 3-3 3 3\" /><g transform=\"translate(11 1) scale(0.5)\" stroke-width=\"3.2\"><path d=\"m2 22 1-1h3l9-9\" /><path d=\"M3 21v-3l9-9\" /><path d=\"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z\" /></g>',\n\n // Data & Content\n 'calendar': '<path d=\"M8 2v4\" /><path d=\"M16 2v4\" /><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" /><path d=\"M3.5 10h17\" />',\n 'clock': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12 16 14\" />',\n 'credit-card': '<rect width=\"20\" height=\"14\" x=\"2\" y=\"5\" rx=\"2\" /><line x1=\"2.5\" x2=\"21.5\" y1=\"10\" y2=\"10\" />',\n 'dollar-sign': '<line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"22\" /><path d=\"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6\" />',\n 'tag': '<path d=\"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z\" /><circle cx=\"7.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\" />',\n 'hash': '<line x1=\"4\" x2=\"20\" y1=\"9\" y2=\"9\" /><line x1=\"4\" x2=\"20\" y1=\"15\" y2=\"15\" /><line x1=\"10\" x2=\"8\" y1=\"3\" y2=\"21\" /><line x1=\"16\" x2=\"14\" y1=\"3\" y2=\"21\" />',\n 'database': '<ellipse cx=\"12\" cy=\"5\" rx=\"9\" ry=\"3\" /><path d=\"M3 5V19A9 3 0 0 0 21 19V5\" /><path d=\"M3 12A9 3 0 0 0 21 12\" />',\n 'table': '<path d=\"M12 3.5v17\" /><rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 9h17\" /><path d=\"M3.5 15h17\" />',\n\n // Charts & Analytics\n 'activity': '<path d=\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\" />',\n 'bar-chart': '<line x1=\"12\" x2=\"12\" y1=\"20\" y2=\"10\" /><line x1=\"18\" x2=\"18\" y1=\"20\" y2=\"4\" /><line x1=\"6\" x2=\"6\" y1=\"20\" y2=\"16\" />',\n 'bar-chart-2': '<line x1=\"18\" x2=\"18\" y1=\"20\" y2=\"10\" /><line x1=\"12\" x2=\"12\" y1=\"20\" y2=\"4\" /><line x1=\"6\" x2=\"6\" y1=\"20\" y2=\"14\" />',\n 'pie-chart': '<path d=\"M21.21 15.89A10 10 0 1 1 8 2.83\" /><path d=\"M22 12A10 10 0 0 0 12 2v10z\" />',\n 'trending-up': '<polyline points=\"22 7 13.5 15.5 8.5 10.5 2 17\" /><polyline points=\"16 7 22 7 22 13\" />',\n 'trending-down': '<polyline points=\"22 17 13.5 8.5 8.5 13.5 2 7\" /><polyline points=\"16 17 22 17 22 11\" />',\n\n // Transfer & IO\n 'download': '<path d=\"M12 15V3\" /><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" /><path d=\"m7 10 5 5 5-5\" />',\n 'upload': '<path d=\"M12 3v12\" /><path d=\"m17 8-5-5-5 5\" /><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" />',\n 'share': '<circle cx=\"18\" cy=\"5\" r=\"3\" /><circle cx=\"6\" cy=\"12\" r=\"3\" /><circle cx=\"18\" cy=\"19\" r=\"3\" /><line x1=\"8.59\" x2=\"15.42\" y1=\"13.51\" y2=\"17.49\" /><line x1=\"15.41\" x2=\"8.59\" y1=\"6.51\" y2=\"10.49\" />',\n 'share-2': '<path d=\"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8\" /><polyline points=\"16 6 12 2 8 6\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"15\" />',\n 'link': '<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\" /><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\" />',\n 'unlink': '<path d=\"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71\" /><path d=\"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71\" /><line x1=\"8\" x2=\"8\" y1=\"2\" y2=\"5\" /><line x1=\"2\" x2=\"5\" y1=\"8\" y2=\"8\" /><line x1=\"16\" x2=\"16\" y1=\"19\" y2=\"22\" /><line x1=\"19\" x2=\"22\" y1=\"16\" y2=\"16\" />',\n\n // Layout & Grid\n 'layout-template': '<rect width=\"18\" height=\"7\" x=\"3\" y=\"3\" rx=\"1\" /><rect width=\"9\" height=\"7\" x=\"3\" y=\"14\" rx=\"1\" /><rect width=\"5\" height=\"7\" x=\"16\" y=\"14\" rx=\"1\" />',\n 'layout-dashboard': '<rect width=\"7\" height=\"9\" x=\"3\" y=\"3\" rx=\"1\" /><rect width=\"7\" height=\"5\" x=\"14\" y=\"3\" rx=\"1\" /><rect width=\"7\" height=\"9\" x=\"14\" y=\"12\" rx=\"1\" /><rect width=\"7\" height=\"5\" x=\"3\" y=\"16\" rx=\"1\" />',\n 'grid-3x3': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M9 3.5v17\" /><path d=\"M15 3.5v17\" /><path d=\"M3.5 9h17\" /><path d=\"M3.5 15h17\" />',\n 'grid-2x2': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M12 3.5v17\" /><path d=\"M3.5 12h17\" />',\n 'columns-2': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M12 3.5v17\" />',\n 'columns-3': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M9 3.5v17\" /><path d=\"M15 3.5v17\" />',\n 'rows-2': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 12h17\" />',\n 'rows-3': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 9h17\" /><path d=\"M3.5 15h17\" />',\n\n // Shapes & Objects\n 'box': '<path d=\"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z\" /><path d=\"m3.3 7 8.7 5 8.7-5\" /><path d=\"M12 22V12\" />',\n 'box-select': '<path d=\"M5 3a2 2 0 0 0-2 2\" /><path d=\"M19 3a2 2 0 0 1 2 2\" /><path d=\"M21 19a2 2 0 0 1-2 2\" /><path d=\"M5 21a2 2 0 0 1-2-2\" /><path d=\"M9 3h1\" /><path d=\"M9 21h1\" /><path d=\"M14 3h1\" /><path d=\"M14 21h1\" /><path d=\"M3 9v1\" /><path d=\"M21 9v1\" /><path d=\"M3 14v1\" /><path d=\"M21 14v1\" />',\n 'layers': '<path d=\"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\" /><path d=\"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\" /><path d=\"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\" />',\n 'star': '<polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\" />',\n 'bookmark': '<path d=\"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z\" />',\n 'flag': '<path d=\"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z\" /><line x1=\"4\" x2=\"4\" y1=\"22\" y2=\"15\" />',\n\n // Security\n 'lock': '<rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\" /><path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />',\n 'unlock': '<rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\" /><path d=\"M7 11V7a5 5 0 0 1 9.9-1\" />',\n 'shield-check': '<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\" /><path d=\"m9 12 2 2 4-4\" />',\n 'eye': '<path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />',\n 'eye-off': '<path d=\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\" /><path d=\"M14.084 14.158a3 3 0 0 1-4.242-4.242\" /><path d=\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\" /><path d=\"m2 2 20 20\" />',\n\n // Loading & Progress\n 'loader': '<path d=\"M12 2v4\" /><path d=\"m16.2 7.8 2.9-2.9\" /><path d=\"M18 12h4\" /><path d=\"m16.2 16.2 2.9 2.9\" /><path d=\"M12 18v4\" /><path d=\"m4.9 19.1 2.9-2.9\" /><path d=\"M2 12h4\" /><path d=\"m4.9 4.9 2.9 2.9\" />',\n 'loader-2': '<path d=\"M21 12a9 9 0 1 1-6.219-8.56\" />',\n 'refresh-cw': '<path d=\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" /><path d=\"M21 3v5h-5\" /><path d=\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" /><path d=\"M8 16H3v5\" />',\n 'rotate-cw': '<path d=\"M21 12a9 9 0 1 1-3-6.706L21 8\" /><path d=\"M21 3v5h-5\" />',\n\n // Weather & Nature\n 'sun': '<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2\" /><path d=\"M12 20v2\" /><path d=\"m4.93 4.93 1.41 1.41\" /><path d=\"m17.66 17.66 1.41 1.41\" /><path d=\"M2 12h2\" /><path d=\"M20 12h2\" /><path d=\"m6.34 17.66-1.41 1.41\" /><path d=\"m19.07 4.93-1.41 1.41\" />',\n 'moon': '<path d=\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\" />',\n 'cloud': '<path d=\"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z\" />',\n 'zap': '<path d=\"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\" />',\n\n // Misc\n 'home': '<path d=\"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" /><polyline points=\"9 22 9 12 15 12 15 22\" />',\n 'globe': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\" /><path d=\"M2 12h20\" />',\n 'map-pin': '<path d=\"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z\" /><circle cx=\"12\" cy=\"10\" r=\"3\" />',\n 'compass': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polygon points=\"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76\" />',\n 'terminal': '<polyline points=\"4 17 10 11 4 5\" /><line x1=\"12\" x2=\"20\" y1=\"19\" y2=\"19\" />',\n 'code': '<polyline points=\"16 18 22 12 16 6\" /><polyline points=\"8 6 2 12 8 18\" />',\n 'mouse-pointer-click': '<path d=\"M14 4.1 12 6\" /><path d=\"m5.1 8-2.9-.8\" /><path d=\"m6 12-1.9 2\" /><path d=\"M7.2 2.2 8 5.1\" /><path d=\"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z\" />',\n 'pointer': '<path d=\"M22 14a8 8 0 0 1-8 8\" /><path d=\"M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2\" /><path d=\"M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1\" /><path d=\"M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10\" /><path d=\"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\" />',\n 'shuffle': '<path d=\"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22\" /><path d=\"m18 2 4 4-4 4\" /><path d=\"M2 6h1.9c1.5 0 2.9.9 3.6 2.2\" /><path d=\"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8\" /><path d=\"m18 14 4 4-4 4\" />',\n 'log-in': '<path d=\"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4\" /><polyline points=\"10 17 15 12 10 7\" /><line x1=\"15\" x2=\"3\" y1=\"12\" y2=\"12\" />',\n 'log-out': '<path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" /><polyline points=\"16 17 21 12 16 7\" /><line x1=\"21\" x2=\"9\" y1=\"12\" y2=\"12\" />',\n 'power': '<path d=\"M18.36 6.64a9 9 0 1 1-12.73 0\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"12\" />',\n 'save': '<path d=\"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z\" /><path d=\"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7\" /><path d=\"M7 3v4a1 1 0 0 0 1 1h7\" />',\n 'printer': '<polyline points=\"6 9 6 2 18 2 18 9\" /><path d=\"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2\" /><rect width=\"12\" height=\"8\" x=\"6\" y=\"14\" />',\n 'palette': '<circle cx=\"13.5\" cy=\"6.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"17.5\" cy=\"10.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"8.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"6.5\" cy=\"12.5\" r=\".5\" fill=\"currentColor\" /><path d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z\" />',\n 'sparkles': '<path d=\"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\" /><path d=\"M20 3v4\" /><path d=\"M22 5h-4\" /><path d=\"M4 17v2\" /><path d=\"M5 18H3\" />',\n 'wand': '<path d=\"M15 4V2\" /><path d=\"M15 16v-2\" /><path d=\"M8 9h2\" /><path d=\"M20 9h2\" /><path d=\"M17.8 11.8 19 13\" /><path d=\"M15 9h.01\" /><path d=\"M17.8 6.2 19 5\" /><path d=\"m3 21 9-9\" /><path d=\"M12.2 6.2 11 5\" />',\n 'rocket': '<path d=\"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z\" /><path d=\"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z\" /><path d=\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0\" /><path d=\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5\" />',\n 'trophy': '<path d=\"M6 9H4.5a2.5 2.5 0 0 1 0-5H6\" /><path d=\"M18 9h1.5a2.5 2.5 0 0 0 0-5H18\" /><path d=\"M4 22h16\" /><path d=\"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22\" /><path d=\"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22\" /><path d=\"M18 2H6v7a6 6 0 0 0 12 0V2Z\" />',\n 'gift': '<rect x=\"3\" y=\"8\" width=\"18\" height=\"4\" rx=\"1\" /><path d=\"M12 8.5v12.5\" /><path d=\"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7\" /><path d=\"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5\" />',\n 'thumbs-up': '<path d=\"M7 10v12\" /><path d=\"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z\" />',\n 'thumbs-down': '<path d=\"M17 14V2\" /><path d=\"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22h0a3.13 3.13 0 0 1-3-3.88Z\" />',\n 'smile': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M8 14s1.5 2 4 2 4-2 4-2\" /><line x1=\"9\" x2=\"9.01\" y1=\"9\" y2=\"9\" /><line x1=\"15\" x2=\"15.01\" y1=\"9\" y2=\"9\" />',\n 'frown': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M16 16s-1.5-2-4-2-4 2-4 2\" /><line x1=\"9\" x2=\"9.01\" y1=\"9\" y2=\"9\" /><line x1=\"15\" x2=\"15.01\" y1=\"9\" y2=\"9\" />',\n\n // Undo / Redo / Corner arrows\n 'undo': '<path d=\"M3 7v6h6\" /><path d=\"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13\" />',\n 'redo': '<path d=\"M21 7v6h-6\" /><path d=\"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3L21 13\" />',\n 'corner-up-left': '<polyline points=\"9 14 4 9 9 4\" /><path d=\"M20 20v-7a4 4 0 0 0-4-4H4\" />',\n 'corner-up-right': '<polyline points=\"15 14 20 9 15 4\" /><path d=\"M4 20v-7a4 4 0 0 1 4-4h12\" />',\n\n // Actions extended\n 'scissors': '<circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M8.12 8.12 12 12\" /><path d=\"M20 4 8.12 15.88\" /><circle cx=\"6\" cy=\"18\" r=\"3\" /><path d=\"M14.8 14.8 20 20\" />',\n 'clipboard-paste': '<path d=\"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z\" /><path d=\"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 14H11\" /><path d=\"m15 10-4 4 4 4\" />',\n 'scan': '<path d=\"M3 7V5a2 2 0 0 1 2-2h2\" /><path d=\"M17 3h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 17v2a2 2 0 0 1-2 2h-2\" /><path d=\"M7 21H5a2 2 0 0 1-2-2v-2\" />',\n 'qr-code': '<rect width=\"5\" height=\"5\" x=\"3\" y=\"3\" rx=\"1\" /><rect width=\"5\" height=\"5\" x=\"16\" y=\"3\" rx=\"1\" /><rect width=\"5\" height=\"5\" x=\"3\" y=\"16\" rx=\"1\" /><path d=\"M21 16h-3a2 2 0 0 0-2 2v3\" /><path d=\"M21 21v.01\" /><path d=\"M12 7v3a2 2 0 0 1-2 2H7\" /><path d=\"M3 12h.01\" /><path d=\"M12 3h.01\" /><path d=\"M12 16v.01\" /><path d=\"M16 12h1\" /><path d=\"M21 12v.01\" /><path d=\"M12 21v-1\" />',\n\n // Communication extended\n 'at-sign': '<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8\" />',\n 'inbox': '<polyline points=\"22 12 16 12 14 15 10 15 8 12 2 12\" /><path d=\"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\" />',\n 'mail-open': '<path d=\"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z\" /><path d=\"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10\" />',\n 'reply': '<polyline points=\"9 17 4 12 9 7\" /><path d=\"M20 18v-2a4 4 0 0 0-4-4H4\" />',\n 'forward': '<polyline points=\"15 17 20 12 15 7\" /><path d=\"M4 18v-2a4 4 0 0 1 4-4h12\" />',\n 'video': '<path d=\"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5\" /><rect x=\"2\" y=\"6\" width=\"14\" height=\"12\" rx=\"2\" />',\n 'message-square-plus': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"M12 7v6\" /><path d=\"M9 10h6\" />',\n\n // Media extended\n 'skip-forward': '<polygon points=\"5 4 15 12 5 20 5 4\" /><line x1=\"19\" x2=\"19\" y1=\"5\" y2=\"19\" />',\n 'skip-back': '<polygon points=\"19 20 9 12 19 4 19 20\" /><line x1=\"5\" x2=\"5\" y1=\"19\" y2=\"5\" />',\n 'fast-forward': '<polygon points=\"13 19 22 12 13 5 13 19\" /><polygon points=\"2 19 11 12 2 5 2 19\" />',\n 'rewind': '<polygon points=\"11 19 2 12 11 5 11 19\" /><polygon points=\"22 19 13 12 22 5 22 19\" />',\n 'radio': '<path d=\"M4.9 19.1C1 15.2 1 8.8 4.9 4.9\" /><path d=\"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5\" /><circle cx=\"12\" cy=\"12\" r=\"2\" /><path d=\"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5\" /><path d=\"M19.1 4.9C23 8.8 23 15.1 19.1 19\" />',\n 'headphones': '<path d=\"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3\" />',\n 'music': '<path d=\"M9 18V5l12-2v13\" /><circle cx=\"6\" cy=\"18\" r=\"3\" /><circle cx=\"18\" cy=\"16\" r=\"3\" />',\n\n // Files extended\n 'file-code': '<path d=\"M10 12.5 8 15l2 2.5\" /><path d=\"m14 12.5 2 2.5-2 2.5\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z\" />',\n 'file-image': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><circle cx=\"10\" cy=\"12\" r=\"2\" /><path d=\"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22\" />',\n 'file-archive': '<path d=\"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v18\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><circle cx=\"10\" cy=\"20\" r=\"2\" /><path d=\"M10 7V6\" /><path d=\"M10 12v-1\" /><path d=\"M10 18v-2\" />',\n 'folder-plus': '<path d=\"M12 10v6\" /><path d=\"M9 13h6\" /><path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" />',\n 'hard-drive': '<line x1=\"22\" x2=\"2\" y1=\"12\" y2=\"12\" /><path d=\"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\" /><line x1=\"6\" x2=\"6.01\" y1=\"16\" y2=\"16\" /><line x1=\"10\" x2=\"10.01\" y1=\"16\" y2=\"16\" />',\n\n // Status extended\n 'shield-alert': '<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\" /><path d=\"M12 9v4\" /><path d=\"M12 17h.01\" />',\n 'badge-check': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><path d=\"m9 12 2 2 4-4\" />',\n 'hourglass': '<path d=\"M5 22h14\" /><path d=\"M5 2h14\" /><path d=\"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22\" /><path d=\"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2\" />',\n 'timer': '<line x1=\"10\" x2=\"14\" y1=\"2\" y2=\"2\" /><line x1=\"12\" x2=\"15\" y1=\"14\" y2=\"11\" /><circle cx=\"12\" cy=\"14\" r=\"8\" />',\n 'alarm-clock': '<circle cx=\"12\" cy=\"13\" r=\"8\" /><path d=\"M12 9v4l2 2\" /><path d=\"M5 3 2 6\" /><path d=\"m22 6-3-3\" /><path d=\"M6.38 18.7 4 21\" /><path d=\"M17.64 18.67 20 21\" />',\n\n // Dev & Infrastructure\n 'git-branch': '<line x1=\"6\" x2=\"6\" y1=\"3\" y2=\"15\" /><circle cx=\"18\" cy=\"6\" r=\"3\" /><circle cx=\"6\" cy=\"18\" r=\"3\" /><path d=\"M18 9a9 9 0 0 1-9 9\" />',\n 'git-commit': '<circle cx=\"12\" cy=\"12\" r=\"3\" /><line x1=\"3\" x2=\"9\" y1=\"12\" y2=\"12\" /><line x1=\"15\" x2=\"21\" y1=\"12\" y2=\"12\" />',\n 'git-merge': '<circle cx=\"18\" cy=\"18\" r=\"3\" /><circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M6 21V9a9 9 0 0 0 9 9\" />',\n 'git-pull-request': '<circle cx=\"18\" cy=\"18\" r=\"3\" /><circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M13 6h3a2 2 0 0 1 2 2v7\" /><line x1=\"6\" x2=\"6\" y1=\"9\" y2=\"21\" />',\n 'bug': '<path d=\"m8 2 1.88 1.88\" /><path d=\"M14.12 3.88 16 2\" /><path d=\"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1\" /><path d=\"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6\" /><path d=\"M12 20v-9\" /><path d=\"M6.53 9C4.6 8.8 3 7.1 3 5\" /><path d=\"M6 13H2\" /><path d=\"M3 21c0-2.1 1.7-3.9 3.8-4\" /><path d=\"M20.97 5c0 2.1-1.6 3.8-3.5 4\" /><path d=\"M22 13h-4\" /><path d=\"M17.2 17c2.1.1 3.8 1.9 3.8 4\" />',\n 'test-tube': '<path d=\"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2\" /><path d=\"M8.5 2h7\" /><path d=\"M14.5 16h-5\" />',\n 'flask': '<path d=\"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2\" /><path d=\"M8.5 2h7\" /><path d=\"M7 16h10\" />',\n 'cpu': '<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\" /><rect x=\"9\" y=\"9\" width=\"6\" height=\"6\" /><path d=\"M15 2v2\" /><path d=\"M15 20v2\" /><path d=\"M2 15h2\" /><path d=\"M2 9h2\" /><path d=\"M20 15h2\" /><path d=\"M20 9h2\" /><path d=\"M9 2v2\" /><path d=\"M9 20v2\" />',\n 'server': '<rect width=\"20\" height=\"8\" x=\"2\" y=\"2\" rx=\"2\" ry=\"2\" /><rect width=\"20\" height=\"8\" x=\"2\" y=\"14\" rx=\"2\" ry=\"2\" /><line x1=\"6\" x2=\"6.01\" y1=\"6\" y2=\"6\" /><line x1=\"6\" x2=\"6.01\" y1=\"18\" y2=\"18\" />',\n 'wifi': '<path d=\"M12 20h.01\" /><path d=\"M2 8.82a15 15 0 0 1 20 0\" /><path d=\"M5 12.859a10 10 0 0 1 14 0\" /><path d=\"M8.5 16.429a5 5 0 0 1 7 0\" />',\n 'wifi-off': '<path d=\"M12 20h.01\" /><path d=\"M8.5 16.429a5 5 0 0 1 7 0\" /><path d=\"M5 12.859a10 10 0 0 1 5.17-2.69\" /><path d=\"M13.41 10.25a10 10 0 0 1 5.59 2.61\" /><path d=\"M2 8.82a15 15 0 0 1 4.17-2.65\" /><path d=\"M10.66 5c4.01-.36 8.14.9 11.34 3.76\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'bluetooth': '<path d=\"m7 7 10 10-5 5V2l5 5L7 17\" />',\n 'signal': '<path d=\"M2 20h.01\" /><path d=\"M7 20v-4\" /><path d=\"M12 20v-8\" /><path d=\"M17 20V8\" /><path d=\"M22 4v16\" />',\n\n // Commerce & Finance\n 'shopping-cart': '<circle cx=\"8\" cy=\"21\" r=\"1\" /><circle cx=\"19\" cy=\"21\" r=\"1\" /><path d=\"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12\" />',\n 'shopping-bag': '<path d=\"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z\" /><path d=\"M3 6h18\" /><path d=\"M16 10a4 4 0 0 1-8 0\" />',\n 'receipt': '<path d=\"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z\" /><path d=\"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8\" /><path d=\"M12 17.5v-11\" />',\n 'wallet': '<path d=\"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1\" /><path d=\"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4\" />',\n 'coins': '<circle cx=\"8\" cy=\"8\" r=\"6\" /><path d=\"M18.09 10.37A6 6 0 1 1 10.34 18\" /><path d=\"M7 6h1v4\" /><path d=\"m16.71 13.88.7.71-2.82 2.82\" />',\n 'banknote': '<rect width=\"20\" height=\"12\" x=\"2\" y=\"6\" rx=\"2\" /><circle cx=\"12\" cy=\"12\" r=\"2\" /><path d=\"M6 12h.01M18 12h.01\" />',\n 'percent': '<line x1=\"19\" x2=\"5\" y1=\"5\" y2=\"19\" /><circle cx=\"6.5\" cy=\"6.5\" r=\"2.5\" /><circle cx=\"17.5\" cy=\"17.5\" r=\"2.5\" />',\n 'package': '<path d=\"m7.5 4.27 9 5.15\" /><path d=\"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z\" /><path d=\"m3.3 7 8.7 5 8.7-5\" /><path d=\"M12 22V12\" />',\n\n // Rich Text / Typography\n 'bold': '<path d=\"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8\" />',\n 'italic': '<line x1=\"19\" x2=\"10\" y1=\"4\" y2=\"4\" /><line x1=\"14\" x2=\"5\" y1=\"20\" y2=\"20\" /><line x1=\"15\" x2=\"9\" y1=\"4\" y2=\"20\" />',\n 'underline': '<path d=\"M6 4v6a6 6 0 0 0 12 0V4\" /><line x1=\"4\" x2=\"20\" y1=\"20\" y2=\"20\" />',\n 'strikethrough': '<path d=\"M16 4H9a3 3 0 0 0-2.83 4\" /><path d=\"M14 12a4 4 0 0 1 0 8H6\" /><line x1=\"4\" x2=\"20\" y1=\"12\" y2=\"12\" />',\n 'type': '<polyline points=\"4 7 4 4 20 4 20 7\" /><line x1=\"9\" x2=\"15\" y1=\"20\" y2=\"20\" /><line x1=\"12\" x2=\"12\" y1=\"4\" y2=\"20\" />',\n 'heading': '<path d=\"M6 12h12\" /><path d=\"M6 20V4\" /><path d=\"M18 20V4\" />',\n 'list': '<line x1=\"8\" x2=\"21\" y1=\"6\" y2=\"6\" /><line x1=\"8\" x2=\"21\" y1=\"12\" y2=\"12\" /><line x1=\"8\" x2=\"21\" y1=\"18\" y2=\"18\" /><line x1=\"3\" x2=\"3.01\" y1=\"6\" y2=\"6\" /><line x1=\"3\" x2=\"3.01\" y1=\"12\" y2=\"12\" /><line x1=\"3\" x2=\"3.01\" y1=\"18\" y2=\"18\" />',\n 'list-ordered': '<line x1=\"10\" x2=\"21\" y1=\"6\" y2=\"6\" /><line x1=\"10\" x2=\"21\" y1=\"12\" y2=\"12\" /><line x1=\"10\" x2=\"21\" y1=\"18\" y2=\"18\" /><path d=\"M4 6h1v4\" /><path d=\"M4 10h2\" /><path d=\"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1\" />',\n 'align-left': '<line x1=\"21\" x2=\"3\" y1=\"6\" y2=\"6\" /><line x1=\"15\" x2=\"3\" y1=\"12\" y2=\"12\" /><line x1=\"17\" x2=\"3\" y1=\"18\" y2=\"18\" />',\n 'align-center': '<line x1=\"21\" x2=\"3\" y1=\"6\" y2=\"6\" /><line x1=\"17\" x2=\"7\" y1=\"12\" y2=\"12\" /><line x1=\"19\" x2=\"5\" y1=\"18\" y2=\"18\" />',\n 'align-right': '<line x1=\"21\" x2=\"3\" y1=\"6\" y2=\"6\" /><line x1=\"21\" x2=\"9\" y1=\"12\" y2=\"12\" /><line x1=\"21\" x2=\"7\" y1=\"18\" y2=\"18\" />',\n 'align-justify': '<line x1=\"3\" x2=\"21\" y1=\"6\" y2=\"6\" /><line x1=\"3\" x2=\"21\" y1=\"12\" y2=\"12\" /><line x1=\"3\" x2=\"21\" y1=\"18\" y2=\"18\" />',\n 'indent-increase': '<polyline points=\"3 8 7 12 3 16\" /><line x1=\"21\" x2=\"11\" y1=\"12\" y2=\"12\" /><line x1=\"21\" x2=\"11\" y1=\"6\" y2=\"6\" /><line x1=\"21\" x2=\"11\" y1=\"18\" y2=\"18\" />',\n 'indent-decrease': '<polyline points=\"7 8 3 12 7 16\" /><line x1=\"21\" x2=\"11\" y1=\"12\" y2=\"12\" /><line x1=\"21\" x2=\"11\" y1=\"6\" y2=\"6\" /><line x1=\"21\" x2=\"11\" y1=\"18\" y2=\"18\" />',\n 'quote': '<path d=\"M17 6H3\" /><path d=\"M21 12H8\" /><path d=\"M21 18H8\" /><path d=\"M3 12v6\" />',\n\n // Misc extended\n 'lightbulb': '<path d=\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\" /><path d=\"M9 18h6\" /><path d=\"M10 22h4\" />',\n 'fingerprint': '<path d=\"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4\" /><path d=\"M14 13.12c0 2.38 0 6.38-1 8.88\" /><path d=\"M17.29 21.02c.12-.6.43-2.3.5-3.02\" /><path d=\"M2 12a10 10 0 0 1 18-6\" /><path d=\"M2 16h.01\" /><path d=\"M21.8 16c.2-2 .131-5.354 0-6\" /><path d=\"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2\" /><path d=\"M8.65 22c.21-.66.45-1.32.57-2\" /><path d=\"M9 6.8a6 6 0 0 1 9 5.2v2\" />',\n 'languages': '<path d=\"m5 8 6 6\" /><path d=\"m4 14 6-6 2-3\" /><path d=\"M2 5h12\" /><path d=\"M7 2h1\" /><path d=\"m22 22-5-10-5 10\" /><path d=\"M14 18h6\" />',\n 'newspaper': '<path d=\"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2\" /><path d=\"M18 14h-8\" /><path d=\"M15 18h-5\" /><path d=\"M10 6h8v4h-8V6Z\" />',\n 'megaphone': '<path d=\"m3 11 18-5v12L3 13v-2z\" /><path d=\"M11.6 16.8a3 3 0 1 1-5.8-1.6\" />',\n 'pin': '<line x1=\"12\" x2=\"12\" y1=\"17\" y2=\"22\" /><path d=\"M5 17h14v-1.76a2 2 0 0 0-1.11-1.789l-1.78-.89A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.789l-1.78.894A2 2 0 0 0 5 15.24Z\" />',\n 'map': '<path d=\"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z\" /><path d=\"M15 5.764v15\" /><path d=\"M9 3.236v15\" />',\n 'navigation': '<polygon points=\"3 11 22 2 13 21 11 13 3 11\" />',\n 'plane': '<path d=\"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z\" />',\n\n // Shapes extended\n 'triangle': '<path d=\"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z\" />',\n 'hexagon': '<path d=\"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z\" />',\n 'diamond': '<path d=\"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z\" />',\n 'octagon': '<path d=\"M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86z\" />',\n\n // Weather extended\n 'cloud-rain': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M16 14v6\" /><path d=\"M8 14v6\" /><path d=\"M12 16v6\" />',\n 'cloud-snow': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M8 15h.01\" /><path d=\"M8 19h.01\" /><path d=\"M12 17h.01\" /><path d=\"M12 21h.01\" /><path d=\"M16 15h.01\" /><path d=\"M16 19h.01\" />',\n 'cloud-lightning': '<path d=\"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973\" /><path d=\"m13 12-3 5h4l-3 5\" />',\n 'wind': '<path d=\"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2\" /><path d=\"M9.6 4.6A2 2 0 1 1 11 8H2\" /><path d=\"M12.6 19.4A2 2 0 1 0 14 16H2\" />',\n 'thermometer': '<path d=\"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z\" />',\n 'umbrella': '<path d=\"M22 12a10.06 10.06 0 0 0-20 0Z\" /><path d=\"M12 12v8a2 2 0 0 0 4 0\" /><path d=\"M12 2v1\" />',\n 'snowflake': '<line x1=\"2\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"22\" /><path d=\"m20 16-4-4 4-4\" /><path d=\"m4 8 4 4-4 4\" /><path d=\"m16 4-4 4-4-4\" /><path d=\"m8 20 4-4 4 4\" />',\n 'droplet': '<path d=\"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z\" />',\n\n // Calendar extended\n 'calendar-days': '<path d=\"M8 2v4\" /><path d=\"M16 2v4\" /><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" /><path d=\"M3.5 10h17\" /><path d=\"M8 14h.01\" /><path d=\"M12 14h.01\" /><path d=\"M16 14h.01\" /><path d=\"M8 18h.01\" /><path d=\"M12 18h.01\" /><path d=\"M16 18h.01\" />',\n 'calendar-check': '<path d=\"M8 2v4\" /><path d=\"M16 2v4\" /><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" /><path d=\"M3.5 10h17\" /><path d=\"m9 16 2 2 4-4\" />',\n\n // Misc remaining\n 'notebook': '<path d=\"M2 6h4\" /><path d=\"M2 10h4\" /><path d=\"M2 14h4\" /><path d=\"M2 18h4\" /><rect width=\"16\" height=\"20\" x=\"4\" y=\"2\" rx=\"2\" /><path d=\"M16 2.5v19\" />',\n 'book-open': '<path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" /><path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" />',\n 'bookmark-plus': '<path d=\"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z\" /><path d=\"M12 7v6\" /><path d=\"M9 10h6\" />',\n 'bell-ring': '<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\" /><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\" /><path d=\"M4 2C2.8 3.7 2 5.7 2 8\" /><path d=\"M22 8c0-2.3-.8-4.3-2-6\" />',\n 'bell-off': '<path d=\"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5\" /><path d=\"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7\" /><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\" /><path d=\"m2 2 20 20\" />',\n 'archive': '<rect width=\"20\" height=\"5\" x=\"2\" y=\"3\" rx=\"1\" /><path d=\"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\" /><path d=\"M10 12h4\" />',\n 'anchor': '<circle cx=\"12\" cy=\"5\" r=\"3\" /><line x1=\"12\" x2=\"12\" y1=\"22\" y2=\"8\" /><path d=\"M5 12H2a10 10 0 0 0 20 0h-3\" />',\n 'crown': '<path d=\"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z\" /><path d=\"M5 21h14\" />',\n 'target': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><circle cx=\"12\" cy=\"12\" r=\"6\" /><circle cx=\"12\" cy=\"12\" r=\"2\" />',\n 'crosshair': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"22\" x2=\"18\" y1=\"12\" y2=\"12\" /><line x1=\"6\" x2=\"2\" y1=\"12\" y2=\"12\" /><line x1=\"12\" x2=\"12\" y1=\"6\" y2=\"2\" /><line x1=\"12\" x2=\"12\" y1=\"22\" y2=\"18\" />',\n 'siren': '<path d=\"M7 18v-6a5 5 0 1 1 10 0v6\" /><path d=\"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z\" /><path d=\"M21 12h1\" /><path d=\"M18.5 4.5 18 5\" /><path d=\"M2 12h1\" /><path d=\"M12 2v1\" /><path d=\"m4.929 4.929.707.707\" /><path d=\"M12 12v6\" />',\n 'telescope': '<path d=\"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44\" /><path d=\"m13.56 11.747 4.332-.924\" /><path d=\"m16 21-3.105-6.21\" /><path d=\"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z\" /><path d=\"m6.158 8.633 1.114 4.456\" /><path d=\"m8 21 3.105-6.21\" />',\n 'earth': '<path d=\"M21.54 15H17a2 2 0 0 0-2 2v4.54\" /><path d=\"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17\" /><path d=\"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05\" /><circle cx=\"12\" cy=\"12\" r=\"10\" />',\n 'hand': '<path d=\"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2\" /><path d=\"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2\" /><path d=\"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8\" /><path d=\"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\" />',\n\n // Transport\n 'car': '<path d=\"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2\" /><circle cx=\"7\" cy=\"17\" r=\"2\" /><path d=\"M9 17h6\" /><circle cx=\"17\" cy=\"17\" r=\"2\" />',\n 'truck': '<path d=\"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2\" /><path d=\"M15 18H9\" /><path d=\"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14\" /><circle cx=\"17\" cy=\"18\" r=\"2\" /><circle cx=\"7\" cy=\"18\" r=\"2\" />',\n 'bus': '<path d=\"M8 6v6\" /><path d=\"M15 6v6\" /><path d=\"M2.5 12h19\" /><path d=\"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3\" /><circle cx=\"7\" cy=\"18\" r=\"2\" /><path d=\"M9 18h5\" /><circle cx=\"16\" cy=\"18\" r=\"2\" />',\n 'train': '<path d=\"M8 3.1V7a4 4 0 0 0 8 0V3.1\" /><path d=\"m9 15-1-1\" /><path d=\"m15 15 1-1\" /><rect x=\"4\" y=\"3\" width=\"16\" height=\"16\" rx=\"2\" /><path d=\"M4.5 11h15\" /><path d=\"m10 21 2-2 2 2\" />',\n 'bike': '<circle cx=\"18.5\" cy=\"17.5\" r=\"3.5\" /><circle cx=\"5.5\" cy=\"17.5\" r=\"3.5\" /><circle cx=\"15\" cy=\"5\" r=\"1\" /><path d=\"M12 17.5V14l-3-3 4-3 2 3h2\" />',\n 'ship': '<path d=\"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1\" /><path d=\"M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76\" /><path d=\"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6\" /><path d=\"M12 10v4\" /><path d=\"M12 2v3\" />',\n 'fuel': '<line x1=\"3\" x2=\"15\" y1=\"22\" y2=\"22\" /><line x1=\"4.5\" x2=\"13.5\" y1=\"9\" y2=\"9\" /><path d=\"M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18\" /><path d=\"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5\" />',\n\n // Animals\n 'cat': '<path d=\"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z\" /><path d=\"M8 14v.5\" /><path d=\"M16 14v.5\" /><path d=\"M11.25 16.25h1.5L12 17l-.75-.75Z\" />',\n 'dog': '<path d=\"M10 5.172C10 3.782 8.423 2.679 6.5 3c-2.823.47-4.113 6.006-4 7 .08.703 1.725 1.722 3.656 1 1.261-.472 1.96-1.45 2.344-2.5\" /><path d=\"M14.267 5.172c0-1.39 1.577-2.493 3.5-2.172 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5\" /><path d=\"M8 14v.5\" /><path d=\"M16 14v.5\" /><path d=\"M11.25 16.25h1.5L12 17l-.75-.75Z\" /><path d=\"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444c0-1.061-.162-2.2-.493-3.309m-9.243-6.082A8.801 8.801 0 0 1 12 5c.78 0 1.5.108 2.161.306\" />',\n 'bird': '<path d=\"M16 7h.01\" /><path d=\"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20\" /><path d=\"m20 7 2 .5-2 .5\" /><path d=\"M10 18v3\" /><path d=\"M14 17.75V21\" /><path d=\"M7 18a6 6 0 0 0 3.84-10.61\" />',\n 'fish': '<path d=\"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z\" /><path d=\"M18 12v.5\" /><path d=\"M16 17.93a9.77 9.77 0 0 1 0-11.86\" /><path d=\"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33\" />',\n 'rabbit': '<path d=\"M13 16a3 3 0 0 1 2.24 5\" /><path d=\"M18 12h.01\" /><path d=\"M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1.93 1.93 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3\" /><path d=\"M13 22H4a2 2 0 1 1 0-4h12\" /><path d=\"M16 9h.01\" />',\n 'turtle': '<path d=\"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z\" /><path d=\"M4.82 7.9 8 10\" /><path d=\"M15.18 7.9 12 10\" /><path d=\"M16.93 10H20a2 2 0 0 1 0 4H2\" />',\n\n // Food & Drink\n 'coffee': '<path d=\"M10 2v2\" /><path d=\"M14 2v2\" /><path d=\"M16 8a1 1 0 0 1 1 1v3a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a2 2 0 1 1 0 4\" /><path d=\"M6 2v2\" /><path d=\"M6 18h8\" /><path d=\"M6 22h8\" />',\n 'wine': '<path d=\"M8 22h8\" /><path d=\"M7 10h10\" /><path d=\"M12 15v7\" /><path d=\"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z\" />',\n 'beer': '<path d=\"M17 11h1a3 3 0 0 1 0 6h-1\" /><path d=\"M9 12v6\" /><path d=\"M13 12v6\" /><path d=\"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z\" /><path d=\"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8\" />',\n 'pizza': '<path d=\"M15 11h.01\" /><path d=\"M11 15h.01\" /><path d=\"M16 16h.01\" /><path d=\"m2 16 20 6-6-20A20 20 0 0 0 2 16\" /><path d=\"M5.71 17.11a17.04 17.04 0 0 1 11.4-11.4\" />',\n 'cherry': '<path d=\"M2 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z\" /><path d=\"M12 17a5 5 0 0 0 10 0c0-2.76-2.5-5-5-3-2.5-2-5 .24-5 3Z\" /><path d=\"M7 14c3.22-2.91 4.29-8.75 5-12 1.66 2.38 4.94 9 5 12\" /><path d=\"M22 9c-4.29 0-7.14-2.33-10-7\" />',\n 'cake': '<path d=\"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8\" /><path d=\"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1\" /><path d=\"M2 21h20\" /><path d=\"M7 8v3\" /><path d=\"M12 8v3\" /><path d=\"M17 8v3\" /><path d=\"M7 4h0.01\" /><path d=\"M12 4h0.01\" /><path d=\"M17 4h0.01\" />',\n 'utensils': '<path d=\"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2\" /><path d=\"M7 2v20\" /><path d=\"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7\" />',\n\n // Health\n 'stethoscope': '<path d=\"M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 6 6 6 6 0 0 0 6-6V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3\" /><path d=\"M8 15v1a6 6 0 0 0 6 6 6 6 0 0 0 6-6v-4\" /><circle cx=\"20\" cy=\"10\" r=\"2\" />',\n 'pill': '<path d=\"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z\" /><path d=\"m8.5 8.5 7 7\" />',\n 'syringe': '<path d=\"m18 2 4 4\" /><path d=\"m17 7 3-3\" /><path d=\"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5\" /><path d=\"m9 11 4 4\" /><path d=\"m5 19-3 3\" /><path d=\"m14 4 6 6\" />',\n\n // Battery & Power\n 'battery': '<rect width=\"16\" height=\"10\" x=\"2\" y=\"7\" rx=\"2\" ry=\"2\" /><line x1=\"22\" x2=\"22\" y1=\"11\" y2=\"13\" />',\n 'battery-charging': '<path d=\"M15 7h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2\" /><path d=\"M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1\" /><line x1=\"22\" x2=\"22\" y1=\"11\" y2=\"13\" /><path d=\"M7.5 7 12 12H8l4.5 5\" />',\n 'battery-low': '<rect width=\"16\" height=\"10\" x=\"2\" y=\"7\" rx=\"2\" ry=\"2\" /><line x1=\"22\" x2=\"22\" y1=\"11\" y2=\"13\" /><line x1=\"6\" x2=\"6\" y1=\"11\" y2=\"13\" />',\n 'plug': '<path d=\"M12 22v-5\" /><path d=\"M9 8V2\" /><path d=\"M15 8V2\" /><path d=\"M18 8v5a6 6 0 0 1-6 6a6 6 0 0 1-6-6V8Z\" />',\n 'cable': '<path d=\"M17 21v-2a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1\" /><path d=\"M19 15V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V9\" /><path d=\"M21 21v-2h-4\" /><path d=\"M3 5h4V3\" /><path d=\"M7 5a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1V3\" />',\n\n // More loading/progress\n 'gauge': '<path d=\"m12 14 4-4\" /><path d=\"M3.34 19a10 10 0 1 1 17.32 0\" />',\n 'infinity': '<path d=\"M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z\" />',\n 'repeat': '<path d=\"m17 2 4 4-4 4\" /><path d=\"M3 11v-1a4 4 0 0 1 4-4h14\" /><path d=\"m7 22-4-4 4-4\" /><path d=\"M21 13v1a4 4 0 0 1-4 4H3\" />',\n 'repeat-1': '<path d=\"m17 2 4 4-4 4\" /><path d=\"M3 11v-1a4 4 0 0 1 4-4h14\" /><path d=\"m7 22-4-4 4-4\" /><path d=\"M21 13v1a4 4 0 0 1-4 4H3\" /><path d=\"M11 10h1v4\" />',\n\n // Rotation/Flip\n 'flip-horizontal': '<path d=\"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3\" /><path d=\"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3\" /><path d=\"M12 20v2\" /><path d=\"M12 14v2\" /><path d=\"M12 8v2\" /><path d=\"M12 2v2\" />',\n 'flip-vertical': '<path d=\"M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3\" /><path d=\"M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3\" /><path d=\"M2 12h2\" /><path d=\"M8 12h2\" /><path d=\"M14 12h2\" /><path d=\"M20 12h2\" />',\n 'rotate-ccw': '<path d=\"M3 12a9 9 0 1 0 3-6.706L3 8\" /><path d=\"M3 3v5h5\" />',\n\n // Education & Books\n 'graduation-cap': '<path d=\"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z\" /><path d=\"M22 10v6\" /><path d=\"M6 12.5V16c0 1 2 3 6 3s6-2 6-3v-3.5\" />',\n 'book': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20\" />',\n 'book-marked': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><polyline points=\"10 2 10 10 13 7 16 10 16 2\" />',\n\n // Photography\n 'aperture': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m14.31 8 5.74 9.94\" /><path d=\"M9.69 8h11.48\" /><path d=\"m7.38 12 5.74-9.94\" /><path d=\"M9.69 16 3.95 6.06\" /><path d=\"M14.31 16H2.83\" /><path d=\"m16.62 12-5.74 9.94\" />',\n 'image-plus': '<path d=\"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7\" /><line x1=\"16\" x2=\"22\" y1=\"5\" y2=\"5\" /><line x1=\"19\" x2=\"19\" y1=\"2\" y2=\"8\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\" />',\n 'focus': '<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M3 7V5a2 2 0 0 1 2-2h2\" /><path d=\"M17 3h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 17v2a2 2 0 0 1-2 2h-2\" /><path d=\"M7 21H5a2 2 0 0 1-2-2v-2\" />',\n\n // Social\n 'rss': '<path d=\"M4 11a9 9 0 0 1 9 9\" /><path d=\"M4 4a16 16 0 0 1 16 16\" /><circle cx=\"5\" cy=\"19\" r=\"1\" />',\n 'podcast': '<path d=\"M16.85 18.58a9 9 0 1 0-9.7 0\" /><path d=\"M8 14a5 5 0 1 1 8 0\" /><circle cx=\"12\" cy=\"11\" r=\"1\" /><path d=\"M13 17a1 1 0 1 0-2 0l.5 4.5a.5.5 0 1 0 1 0Z\" />',\n\n // More shapes\n 'pentagon': '<path d=\"M3.5 8.7c-.7.5-1 1.4-.7 2.2l2.8 8.7c.3.8 1 1.4 1.9 1.4h9c.9 0 1.6-.6 1.9-1.4l2.8-8.7c.3-.8 0-1.7-.7-2.2l-7.4-5.3a2.1 2.1 0 0 0-2.2 0z\" />',\n 'circle-dashed': '<path d=\"M10.1 2.182a10 10 0 0 1 3.8 0\" /><path d=\"M13.9 21.818a10 10 0 0 1-3.8 0\" /><path d=\"M17.609 3.721a10 10 0 0 1 2.69 2.7\" /><path d=\"M2.182 13.9a10 10 0 0 1 0-3.8\" /><path d=\"M20.279 17.609a10 10 0 0 1-2.7 2.69\" /><path d=\"M21.818 10.1a10 10 0 0 1 0 3.8\" /><path d=\"M3.721 6.391a10 10 0 0 1 2.7-2.69\" /><path d=\"M6.391 20.279a10 10 0 0 1-2.69-2.7\" />',\n 'square-dashed': '<path d=\"M5 3a2 2 0 0 0-2 2\" /><path d=\"M19 3a2 2 0 0 1 2 2\" /><path d=\"M21 19a2 2 0 0 1-2 2\" /><path d=\"M5 21a2 2 0 0 1-2-2\" /><path d=\"M9 3h1\" /><path d=\"M9 21h1\" /><path d=\"M14 3h1\" /><path d=\"M14 21h1\" /><path d=\"M3 9v1\" /><path d=\"M21 9v1\" /><path d=\"M3 14v1\" /><path d=\"M21 14v1\" />',\n\n // Accessibility\n 'accessibility': '<circle cx=\"16\" cy=\"4\" r=\"1\" /><path d=\"m18 19 1-7-6 1\" /><path d=\"m5 8 3-3 5.5 3-2.36 3.5\" /><path d=\"M4.24 14.5a5 5 0 0 0 6.88 6\" /><path d=\"M13.76 17.5a5 5 0 0 0-6.88-6\" />',\n\n // More misc\n 'award': '<circle cx=\"12\" cy=\"8\" r=\"6\" /><path d=\"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11\" />',\n 'medal': '<path d=\"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15\" /><path d=\"M11 12 5.12 2.2\" /><path d=\"m13 12 5.88-9.8\" /><path d=\"M8 7h8\" /><circle cx=\"12\" cy=\"17\" r=\"5\" /><path d=\"M12 18v-2h-.5\" />',\n 'dumbbell': '<path d=\"M14.4 14.4 9.6 9.6\" /><path d=\"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z\" /><path d=\"m21.5 21.5-1.4-1.4\" /><path d=\"M3.9 3.9 2.5 2.5\" /><path d=\"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z\" />',\n 'clapperboard': '<path d=\"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z\" /><path d=\"m6.2 5.3 3.1 3.9\" /><path d=\"m12.4 3.4 3.1 4\" /><path d=\"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z\" />',\n 'tent': '<path d=\"M3.5 21 14 3\" /><path d=\"M20.5 21 10 3\" /><path d=\"M15.5 21 12 15l-3.5 6\" /><path d=\"M2 21h20\" />',\n 'mountain': '<path d=\"m8 3 4 8 5-5 5 15H2z\" />',\n 'sunrise': '<path d=\"M12 10V2\" /><path d=\"m4.93 10.93 1.41 1.41\" /><path d=\"M2 18h2\" /><path d=\"M20 18h2\" /><path d=\"m19.07 10.93-1.41 1.41\" /><path d=\"M22 22H2\" /><path d=\"m8 6 4-4 4 4\" /><path d=\"M16 18a4 4 0 0 0-8 0\" />',\n 'sunset': '<path d=\"M12 2v8\" /><path d=\"m4.93 10.93 1.41 1.41\" /><path d=\"M2 18h2\" /><path d=\"M20 18h2\" /><path d=\"m19.07 10.93-1.41 1.41\" /><path d=\"M22 22H2\" /><path d=\"m16 6-4 4-4-4\" /><path d=\"M16 18a4 4 0 0 0-8 0\" />',\n 'flame': '<path d=\"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z\" />',\n 'bone': '<path d=\"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z\" />',\n 'paw-print': '<circle cx=\"11\" cy=\"4\" r=\"2\" /><circle cx=\"18\" cy=\"8\" r=\"2\" /><circle cx=\"20\" cy=\"16\" r=\"2\" /><path d=\"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z\" />',\n 'leaf': '<path d=\"M11 20A7 7 0 0 1 9.8 6.9C15.5 4.9 17 3.5 19 2c1 2 2 4.5 2 8 0 5.5-4.78 10-10 10Z\" /><path d=\"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12\" />',\n 'sprout': '<path d=\"M7 20h10\" /><path d=\"M10 20c5.5-2.5.8-6.4 3-10\" /><path d=\"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z\" /><path d=\"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z\" />',\n\n // Arrows extended\n 'arrow-big-down': '<path d=\"M15 6v6h4l-7 7-7-7h4V6h6z\" />',\n 'arrow-big-left': '<path d=\"M18 15h-6v4l-7-7 7-7v4h6v6z\" />',\n 'arrow-big-right': '<path d=\"M6 9h6V5l7 7-7 7v-4H6V9z\" />',\n 'arrow-up-down': '<path d=\"m21 16-4 4-4-4\" /><path d=\"M17 20V4\" /><path d=\"m3 8 4-4 4 4\" /><path d=\"M7 4v16\" />',\n 'arrow-left-right': '<path d=\"M8 3 4 7l4 4\" /><path d=\"M4 7h16\" /><path d=\"m16 21 4-4-4-4\" /><path d=\"M20 17H4\" />',\n 'corner-down-left': '<polyline points=\"9 10 4 15 9 20\" /><path d=\"M20 4v7a4 4 0 0 1-4 4H4\" />',\n 'corner-down-right': '<polyline points=\"15 10 20 15 15 20\" /><path d=\"M4 4v7a4 4 0 0 0 4 4h12\" />',\n 'move-diagonal': '<polyline points=\"13 5 19 5 19 11\" /><polyline points=\"11 19 5 19 5 13\" /><line x1=\"19\" x2=\"5\" y1=\"5\" y2=\"19\" />',\n\n\n // Text & Formatting extended\n 'subscript': '<path d=\"m4 5 8 8\" /><path d=\"m12 5-8 8\" /><path d=\"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07\" />',\n 'superscript': '<path d=\"m4 19 8-8\" /><path d=\"m12 19-8-8\" /><path d=\"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06\" />',\n 'spell-check': '<path d=\"m6 16 6-12 6 12\" /><path d=\"M8 12h8\" /><path d=\"m16 20 2 2 4-4\" />',\n 'case-upper': '<path d=\"m3 15 4-8 4 8\" /><path d=\"M4 13h6\" /><path d=\"M15 11h4.5a2 2 0 0 1 0 4H15V7h4a2 2 0 0 1 0 4\" />',\n 'case-lower': '<circle cx=\"7\" cy=\"12\" r=\"3\" /><path d=\"M10 9v6\" /><circle cx=\"17\" cy=\"12\" r=\"3\" /><path d=\"M14 7v8\" />',\n 'wrap-text': '<line x1=\"3\" x2=\"21\" y1=\"6\" y2=\"6\" /><path d=\"M3 12h15a3 3 0 1 1 0 6h-4\" /><polyline points=\"16 16 14 18 16 20\" /><line x1=\"3\" x2=\"10\" y1=\"18\" y2=\"18\" />',\n 'pilcrow': '<path d=\"M13 4v16\" /><path d=\"M17 4v16\" /><path d=\"M19 4H9.5a4.5 4.5 0 0 0 0 9H13\" />',\n 'text-cursor': '<path d=\"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1\" /><path d=\"M7 22h1a4 4 0 0 0 4-4v-1\" /><path d=\"M7 2h1a4 4 0 0 1 4 4v1\" />',\n 'list-checks': '<path d=\"m3 17 2 2 4-4\" /><path d=\"m3 7 2 2 4-4\" /><path d=\"M13 6h8\" /><path d=\"M13 12h8\" /><path d=\"M13 18h8\" />',\n 'list-tree': '<path d=\"M21 12h-8\" /><path d=\"M21 6H8\" /><path d=\"M21 18h-8\" /><path d=\"M3 6v4c0 1.1.9 2 2 2h3\" /><path d=\"M3 10v6c0 1.1.9 2 2 2h3\" />',\n 'list-collapse': '<path d=\"m3 10 2.5-2.5L3 5\" /><path d=\"m3 19 2.5-2.5L3 14\" /><path d=\"M10 6h11\" /><path d=\"M10 12h11\" /><path d=\"M10 18h11\" />',\n\n // Shapes extended\n 'heart-crack': '<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\" /><path d=\"m12 13-1-1 2-2-3-3 2-2\" />',\n 'heart-handshake': '<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\" /><path d=\"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66\" /><path d=\"m18 15-2-2\" /><path d=\"m15 18-2-2\" />',\n 'star-half': '<path d=\"M12 17.8 5.8 21 7 14.1 2 9.3l7-1L12 2\" />',\n 'star-off': '<path d=\"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43\" /><path d=\"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'circle-check': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m9 12 2 2 4-4\" />',\n 'circle-x': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m15 9-6 6\" /><path d=\"m9 9 6 6\" />',\n 'circle-alert': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"12\" /><line x1=\"12\" x2=\"12.01\" y1=\"16\" y2=\"16\" />',\n 'circle-plus': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M8 12h8\" /><path d=\"M12 8v8\" />',\n 'circle-pause': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><line x1=\"10\" x2=\"10\" y1=\"15\" y2=\"9\" /><line x1=\"14\" x2=\"14\" y1=\"15\" y2=\"9\" />',\n 'circle-play': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polygon points=\"10 8 16 12 10 16 10 8\" />',\n 'circle-stop': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><rect x=\"9\" y=\"9\" width=\"6\" height=\"6\" />',\n 'circle-arrow-up': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m16 12-4-4-4 4\" /><path d=\"M12 16V8\" />',\n 'circle-arrow-down': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m8 12 4 4 4-4\" /><path d=\"M12 8v8\" />',\n 'circle-arrow-left': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m12 8-4 4 4 4\" /><path d=\"M16 12H8\" />',\n 'circle-arrow-right': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m12 16 4-4-4-4\" /><path d=\"M8 12h8\" />',\n 'circle-ellipsis': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M17 12h.01\" /><path d=\"M12 12h.01\" /><path d=\"M7 12h.01\" />',\n 'circle-user': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><circle cx=\"12\" cy=\"10\" r=\"3\" /><path d=\"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662\" />',\n 'circle-help': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" /><path d=\"M12 17h.01\" />',\n 'square-check': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"m9 12 2 2 4-4\" />',\n 'square-x': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"m15 9-6 6\" /><path d=\"m9 9 6 6\" />',\n 'square-plus': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M8 12h8\" /><path d=\"M12 8v8\" />',\n 'square-minus': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M8 12h8\" />',\n 'square-arrow-up-right': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M8 16 16 8\" /><path d=\"M16 16V8H8\" />',\n 'square-pen': '<path d=\"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\" /><path d=\"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z\" />',\n\n // Media extended\n 'volume': '<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\" />',\n 'volume-1': '<polygon points=\"11 5 6 9 2 9 2 15 6 15 11 19 11 5\" /><path d=\"M15.54 8.46a5 5 0 0 1 0 7.07\" />',\n 'music-2': '<circle cx=\"8\" cy=\"18\" r=\"4\" /><path d=\"M12 18V2l7 4\" />',\n 'music-3': '<circle cx=\"12\" cy=\"18\" r=\"4\" /><path d=\"M16 18V2\" />',\n 'headset': '<path d=\"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z\" /><path d=\"M21 16v2a4 4 0 0 1-4 4h-5\" />',\n 'radio-tower': '<path d=\"M4.9 16.1C1 12.2 1 5.8 4.9 1.9\" /><path d=\"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5\" /><circle cx=\"12\" cy=\"9\" r=\"2\" /><path d=\"M16.2 4.7a6.14 6.14 0 0 1 .8 7.5\" /><path d=\"M19.1 1.9a10.14 10.14 0 0 1 0 14.2\" /><path d=\"M9.56 13.56a10 10 0 0 1 4.88 0\" /><path d=\"m12 17-2 5\" /><path d=\"m14 22-2-5\" />',\n 'tv': '<rect width=\"20\" height=\"15\" x=\"2\" y=\"7\" rx=\"2\" ry=\"2\" /><polyline points=\"17 2 12 7 7 2\" />',\n 'monitor': '<rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><line x1=\"8\" x2=\"16\" y1=\"21\" y2=\"21\" /><line x1=\"12\" x2=\"12\" y1=\"17\" y2=\"21\" />',\n 'smartphone': '<rect width=\"14\" height=\"20\" x=\"5\" y=\"2\" rx=\"2\" ry=\"2\" /><path d=\"M12 18h.01\" />',\n 'tablet': '<rect width=\"16\" height=\"20\" x=\"4\" y=\"2\" rx=\"2\" ry=\"2\" /><line x1=\"12\" x2=\"12.01\" y1=\"18\" y2=\"18\" />',\n 'laptop': '<path d=\"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16\" />',\n 'projector': '<path d=\"M5 7 3 5\" /><path d=\"M9 6V3\" /><path d=\"m13 7 2-2\" /><circle cx=\"9\" cy=\"13\" r=\"3\" /><path d=\"M11.83 12H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h2.17\" /><path d=\"M16 16h2\" />',\n\n // Devices & Hardware\n 'watch': '<circle cx=\"12\" cy=\"12\" r=\"6\" /><polyline points=\"12 10 12 12 13 13\" /><path d=\"m16.51 17.35-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83\" />',\n 'printer-check': '<path d=\"M13.5 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v.5\" /><path d=\"m16 19 2 2 4-4\" /><path d=\"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2\" /><path d=\"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6\" />',\n 'mouse': '<rect x=\"5\" y=\"2\" width=\"14\" height=\"20\" rx=\"7\" /><path d=\"M12 6v4\" />',\n 'keyboard': '<rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\" ry=\"2\" /><path d=\"M6 8h.001\" /><path d=\"M10 8h.001\" /><path d=\"M14 8h.001\" /><path d=\"M18 8h.001\" /><path d=\"M8 12h.001\" /><path d=\"M12 12h.001\" /><path d=\"M16 12h.001\" /><path d=\"M7 16h10\" />',\n 'gamepad-2': '<line x1=\"6\" x2=\"10\" y1=\"11\" y2=\"11\" /><line x1=\"8\" x2=\"8\" y1=\"9\" y2=\"13\" /><line x1=\"15\" x2=\"15.01\" y1=\"12\" y2=\"12\" /><line x1=\"18\" x2=\"18.01\" y1=\"10\" y2=\"10\" /><path d=\"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z\" />',\n\n // People & Gestures\n 'user-round': '<circle cx=\"12\" cy=\"8\" r=\"5\" /><path d=\"M20 21a8 8 0 0 0-16 0\" />',\n 'user-cog': '<circle cx=\"18\" cy=\"15\" r=\"3\" /><circle cx=\"9\" cy=\"7\" r=\"4\" /><path d=\"M10 15H6a4 4 0 0 0-4 4v2\" /><path d=\"m21.7 16.4-.9-.3\" /><path d=\"m15.2 13.9-.9-.3\" /><path d=\"m16.6 18.7.3-.9\" /><path d=\"m19.1 12.2.3-.9\" /><path d=\"m19.6 18.7-.4-1\" /><path d=\"m16.8 12.3-.4-1\" /><path d=\"m14.3 16.6 1-.4\" /><path d=\"m20.7 13.8 1-.4\" />',\n 'user-x': '<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" /><circle cx=\"9\" cy=\"7\" r=\"4\" /><line x1=\"17\" x2=\"22\" y1=\"8\" y2=\"13\" /><line x1=\"22\" x2=\"17\" y1=\"8\" y2=\"13\" />',\n 'users-round': '<path d=\"M18 21a8 8 0 0 0-16 0\" /><circle cx=\"10\" cy=\"8\" r=\"5\" /><path d=\"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3\" />',\n 'contact': '<path d=\"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2\" /><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" /><circle cx=\"12\" cy=\"10\" r=\"2\" /><line x1=\"8\" x2=\"8\" y1=\"2\" y2=\"4\" /><line x1=\"16\" x2=\"16\" y1=\"2\" y2=\"4\" />',\n 'baby': '<path d=\"M9 12h.01\" /><path d=\"M15 12h.01\" /><path d=\"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5\" /><path d=\"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1\" />',\n 'person-standing': '<circle cx=\"12\" cy=\"5\" r=\"1\" /><path d=\"m9 20 3-6 3 6\" /><path d=\"m6 8 6 2 6-2\" /><path d=\"M12 10v4\" />',\n\n // Building & Architecture\n 'building': '<rect width=\"16\" height=\"20\" x=\"4\" y=\"2\" rx=\"2\" ry=\"2\" /><path d=\"M9 22v-4h6v4\" /><path d=\"M8 6h.01\" /><path d=\"M16 6h.01\" /><path d=\"M12 6h.01\" /><path d=\"M12 10h.01\" /><path d=\"M12 14h.01\" /><path d=\"M16 10h.01\" /><path d=\"M16 14h.01\" /><path d=\"M8 10h.01\" /><path d=\"M8 14h.01\" />',\n 'building-2': '<path d=\"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z\" /><path d=\"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2\" /><path d=\"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2\" /><path d=\"M10 6h4\" /><path d=\"M10 10h4\" /><path d=\"M10 14h4\" /><path d=\"M10 18h4\" />',\n 'church': '<path d=\"m18 7 4 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9l4-2\" /><path d=\"M14 22v-4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v4\" /><path d=\"M18 22V5l-6-3-6 3v17\" /><path d=\"M12 7v5\" /><path d=\"M10 9h4\" />',\n 'factory': '<path d=\"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z\" /><path d=\"M17 18h1\" /><path d=\"M12 18h1\" /><path d=\"M7 18h1\" />',\n 'landmark': '<line x1=\"3\" x2=\"21\" y1=\"22\" y2=\"22\" /><line x1=\"6\" x2=\"6\" y1=\"18\" y2=\"11\" /><line x1=\"10\" x2=\"10\" y1=\"18\" y2=\"11\" /><line x1=\"14\" x2=\"14\" y1=\"18\" y2=\"11\" /><line x1=\"18\" x2=\"18\" y1=\"18\" y2=\"11\" /><polygon points=\"12 2 20 7 4 7\" />',\n 'hotel': '<path d=\"M10 22v-6.57\" /><path d=\"M12 11h.01\" /><path d=\"M12 7h.01\" /><path d=\"M14 15.43V22\" /><path d=\"M15 16a5 5 0 0 0-6 0\" /><path d=\"M16 11h.01\" /><path d=\"M16 7h.01\" /><path d=\"M8 11h.01\" /><path d=\"M8 7h.01\" /><rect x=\"4\" y=\"2\" width=\"16\" height=\"20\" rx=\"2\" />',\n 'warehouse': '<path d=\"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z\" /><path d=\"M6 18h12\" /><path d=\"M6 14h12\" /><rect width=\"12\" height=\"12\" x=\"6\" y=\"10\" />',\n 'store': '<path d=\"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7\" /><path d=\"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8\" /><path d=\"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4\" /><path d=\"M2 7h20\" /><path d=\"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7\" />',\n\n // Science & Math\n 'atom': '<circle cx=\"12\" cy=\"12\" r=\"1\" /><path d=\"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z\" /><path d=\"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z\" />',\n 'beaker': '<path d=\"M4.5 3h15\" /><path d=\"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3\" /><path d=\"M6 14h12\" />',\n 'microscope': '<path d=\"M6 18h8\" /><path d=\"M3 22h18\" /><path d=\"M14 22a7 7 0 1 0 0-14h-1\" /><path d=\"M9 14h2\" /><path d=\"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z\" /><path d=\"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3\" />',\n 'dna': '<path d=\"M2 15c6.667-6 13.333 0 20-6\" /><path d=\"M9 22c1.798-1.998 2.518-3.995 2.807-5.993\" /><path d=\"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993\" /><path d=\"m17 6-2.5-2.5\" /><path d=\"m14 8-1-1\" /><path d=\"m7 18 2.5 2.5\" /><path d=\"m3.5 14.5.5.5\" /><path d=\"m20 9 .5.5\" /><path d=\"m6.5 12.5 1 1\" /><path d=\"m16.5 10.5 1 1\" /><path d=\"m10 16 1.5 1.5\" />',\n 'sigma': '<path d=\"M18 7V4H6l6 8-6 8h12v-3\" />',\n 'omega': '<path d=\"M3 20h4.5a.5.5 0 0 0 .5-.5v-.282a.52.52 0 0 0-.247-.437C5.962 17.61 5 15.634 5 12a7 7 0 1 1 14 0c0 3.634-.962 5.61-2.753 6.781a.52.52 0 0 0-.247.437v.282a.5.5 0 0 0 .5.5H21\" />',\n 'calculator': '<rect width=\"16\" height=\"20\" x=\"4\" y=\"2\" rx=\"2\" /><line x1=\"8\" x2=\"16\" y1=\"6\" y2=\"6\" /><line x1=\"16\" x2=\"16\" y1=\"14\" y2=\"18\" /><path d=\"M16 10h.01\" /><path d=\"M12 10h.01\" /><path d=\"M8 10h.01\" /><path d=\"M12 14h.01\" /><path d=\"M8 14h.01\" /><path d=\"M12 18h.01\" /><path d=\"M8 18h.01\" />',\n 'binary': '<rect x=\"14\" y=\"14\" width=\"4\" height=\"6\" rx=\"2\" /><rect x=\"6\" y=\"4\" width=\"4\" height=\"6\" rx=\"2\" /><path d=\"M6 20h4\" /><path d=\"M14 10h4\" /><path d=\"M6 14h2v6\" /><path d=\"M14 4h2v6\" />',\n\n // Commerce extended\n 'shopping-basket': '<path d=\"m15 11-1 9\" /><path d=\"m19 11-4-7\" /><path d=\"M2 11h20\" /><path d=\"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4\" /><path d=\"m9 11 1 9\" /><path d=\"M4.5 15.5h15\" /><path d=\"m5 11 4-7\" />',\n 'badge-dollar-sign': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><path d=\"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8\" /><path d=\"M12 18V6\" />',\n 'badge-percent': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><path d=\"m15 9-6 6\" /><path d=\"M9 9h.01\" /><path d=\"M15 15h.01\" />',\n 'receipt-text': '<path d=\"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z\" /><path d=\"M14 8H8\" /><path d=\"M16 12H8\" /><path d=\"M13 16H8\" />',\n 'ticket': '<path d=\"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z\" /><path d=\"M13 5v2\" /><path d=\"M13 17v2\" /><path d=\"M13 11v2\" />',\n 'barcode': '<path d=\"M3 5v14\" /><path d=\"M8 5v14\" /><path d=\"M12 5v14\" /><path d=\"M17 5v14\" /><path d=\"M21 5v14\" />',\n\n // Weather extended\n 'cloud-sun': '<path d=\"M12 2v2\" /><path d=\"m4.93 4.93 1.41 1.41\" /><path d=\"M20 12h2\" /><path d=\"m19.07 4.93-1.41 1.41\" /><path d=\"M15.947 12.65a4 4 0 0 0-5.925-4.128\" /><path d=\"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z\" />',\n 'cloud-fog': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M16 17H7\" /><path d=\"M17 21H9\" />',\n 'cloud-drizzle': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M8 19v1\" /><path d=\"M8 14v1\" /><path d=\"M16 19v1\" /><path d=\"M16 14v1\" /><path d=\"M12 21v1\" /><path d=\"M12 16v1\" />',\n 'rainbow': '<path d=\"M22 17a10 10 0 0 0-20 0\" /><path d=\"M6 17a6 6 0 0 1 12 0\" /><path d=\"M10 17a2 2 0 0 1 4 0\" />',\n 'tornado': '<path d=\"M21 4H3\" /><path d=\"M18 8H6\" /><path d=\"M19 12H9\" /><path d=\"M16 16h-6\" /><path d=\"M11 20H9\" />',\n 'thermometer-sun': '<path d=\"M12 9a4 4 0 0 0-2 7.5\" /><path d=\"M12 3v2\" /><path d=\"m6.6 18.4-1.4 1.4\" /><path d=\"M20 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z\" /><path d=\"M4 13H2\" /><path d=\"M6.34 7.34 4.93 5.93\" />',\n 'umbrella-off': '<path d=\"M12 2v1\" /><path d=\"M2 12h1\" /><path d=\"m5 5 1.8 1.8\" /><path d=\"M17.2 17.2 22 22\" /><path d=\"m2 2 20 20\" /><path d=\"M12 12v9\" /><path d=\"M9.7 21.3A6 6 0 0 0 12 21\" /><path d=\"M22 12c0-5.5-4.5-10-10-10-.7 0-1.4.1-2.1.2\" /><path d=\"M2.06 11.2A10 10 0 0 1 5 4.8\" /><path d=\"M12 2a10 10 0 0 1 10 10c0 .88-.12 1.73-.33 2.54\" />',\n\n // Travel & Maps\n 'map-pinned': '<path d=\"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0\" /><circle cx=\"12\" cy=\"8\" r=\"2\" /><path d=\"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712\" />',\n 'milestone': '<path d=\"M18 6H5a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h13l4-3.5L18 6Z\" /><path d=\"M12 13v8\" /><path d=\"M12 3v3\" />',\n 'signpost': '<path d=\"M12 3v3\" /><path d=\"M18.5 13h-13L2 9.5 5.5 6h13L22 9.5Z\" /><path d=\"M12 13v8\" />',\n 'route': '<circle cx=\"6\" cy=\"19\" r=\"3\" /><path d=\"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15\" /><circle cx=\"18\" cy=\"5\" r=\"3\" />',\n 'plane-takeoff': '<path d=\"M2 22h20\" /><path d=\"M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2L22 4.5\" />',\n 'plane-landing': '<path d=\"M2 22h20\" /><path d=\"M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8l-1.5 4.5 1-.5a2.55 2.55 0 0 1 2.94.53l2.49 2.38A2 2 0 0 1 11.5 19H4.5\" />',\n\n // Security & Privacy\n 'shield-off': '<path d=\"m2 2 20 20\" /><path d=\"M5 5a1 1 0 0 0-1 .5C4 6 4 7 4 7s0 9.34 8 12.64c1.47-.59 2.7-1.38 3.7-2.3\" /><path d=\"M20 7s0-.5-1-1.5S16 3 12 3c-1.39 0-2.58.22-3.58.56\" />',\n 'shield-question': '<path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 .5.1 1 .2 1.5\" /><path d=\"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3\" /><path d=\"M12 17h.01\" />',\n 'lock-keyhole': '<circle cx=\"12\" cy=\"16\" r=\"1\" /><rect x=\"3\" y=\"10\" width=\"18\" height=\"12\" rx=\"2\" /><path d=\"M7 10V7a5 5 0 0 1 10 0v3\" />',\n 'key-round': '<path d=\"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\" /><circle cx=\"16.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\" />',\n 'scan-face': '<path d=\"M3 7V5a2 2 0 0 1 2-2h2\" /><path d=\"M17 3h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 17v2a2 2 0 0 1-2 2h-2\" /><path d=\"M7 21H5a2 2 0 0 1-2-2v-2\" /><path d=\"M8 14s1.5 2 4 2 4-2 4-2\" /><path d=\"M9 9h.01\" /><path d=\"M15 9h.01\" />',\n 'scan-eye': '<path d=\"M3 7V5a2 2 0 0 1 2-2h2\" /><path d=\"M17 3h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 17v2a2 2 0 0 1-2 2h-2\" /><path d=\"M7 21H5a2 2 0 0 1-2-2v-2\" /><circle cx=\"12\" cy=\"12\" r=\"1\" /><path d=\"M5 12s2.5-5 7-5 7 5 7 5-2.5 5-7 5-7-5-7-5\" />',\n\n // Alignment & Spacing\n 'align-start-vertical': '<rect width=\"9\" height=\"6\" x=\"6\" y=\"14\" rx=\"2\" /><rect width=\"16\" height=\"6\" x=\"6\" y=\"4\" rx=\"2\" /><path d=\"M2 2v20\" />',\n 'align-end-vertical': '<rect width=\"9\" height=\"6\" x=\"9\" y=\"14\" rx=\"2\" /><rect width=\"16\" height=\"6\" x=\"2\" y=\"4\" rx=\"2\" /><path d=\"M22 2v20\" />',\n 'align-start-horizontal': '<rect width=\"6\" height=\"16\" x=\"4\" y=\"6\" rx=\"2\" /><rect width=\"6\" height=\"9\" x=\"14\" y=\"6\" rx=\"2\" /><path d=\"M22 2H2\" />',\n 'align-end-horizontal': '<rect width=\"6\" height=\"16\" x=\"4\" y=\"2\" rx=\"2\" /><rect width=\"6\" height=\"9\" x=\"14\" y=\"9\" rx=\"2\" /><path d=\"M22 22H2\" />',\n 'align-center-vertical': '<path d=\"M12 2v20\" /><rect width=\"8\" height=\"6\" x=\"1\" y=\"14\" rx=\"2\" /><rect width=\"12\" height=\"6\" x=\"3\" y=\"4\" rx=\"2\" />',\n 'align-center-horizontal': '<path d=\"M2 12h20\" /><rect width=\"6\" height=\"8\" x=\"14\" y=\"1\" rx=\"2\" /><rect width=\"6\" height=\"12\" x=\"4\" y=\"3\" rx=\"2\" />',\n 'space-between': '<rect width=\"6\" height=\"14\" x=\"9\" y=\"5\" rx=\"2\" /><path d=\"M22 2H2\" /><path d=\"M22 22H2\" />',\n 'distribute-vertical': '<line x1=\"2\" x2=\"22\" y1=\"4\" y2=\"4\" /><line x1=\"2\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"2\" x2=\"22\" y1=\"20\" y2=\"20\" /><rect x=\"6\" y=\"8\" width=\"12\" height=\"8\" rx=\"2\" />',\n 'distribute-horizontal': '<line x1=\"4\" x2=\"4\" y1=\"2\" y2=\"22\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"22\" /><line x1=\"20\" x2=\"20\" y1=\"2\" y2=\"22\" /><rect x=\"8\" y=\"6\" width=\"8\" height=\"12\" rx=\"2\" />',\n\n // Coding & Dev\n 'code-xml': '<path d=\"m18 16 4-4-4-4\" /><path d=\"m6 8-4 4 4 4\" /><path d=\"m14.5 4-5 16\" />',\n 'braces': '<path d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1\" /><path d=\"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1\" />',\n 'brackets': '<path d=\"M16 3h3v18h-3\" /><path d=\"M8 21H5V3h3\" />',\n 'regex': '<path d=\"M17 3v10\" /><path d=\"m12.67 5.5 8.66 5\" /><path d=\"m12.67 10.5 8.66-5\" /><path d=\"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z\" />',\n 'variable': '<path d=\"M8 21s-4-3-4-9 4-9 4-9\" /><path d=\"M16 3s4 3 4 9-4 9-4 9\" /><line x1=\"15\" x2=\"9\" y1=\"9\" y2=\"15\" /><line x1=\"9\" x2=\"15\" y1=\"9\" y2=\"15\" />',\n 'file-json': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1\" /><path d=\"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1\" />',\n 'file-terminal': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"m8 16 2-2-2-2\" /><path d=\"M13 16h3\" />',\n 'git-compare': '<circle cx=\"18\" cy=\"18\" r=\"3\" /><circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M13 6h3a2 2 0 0 1 2 2v7\" /><path d=\"M11 18H8a2 2 0 0 1-2-2V9\" />',\n 'git-fork': '<circle cx=\"12\" cy=\"18\" r=\"3\" /><circle cx=\"6\" cy=\"6\" r=\"3\" /><circle cx=\"18\" cy=\"6\" r=\"3\" /><path d=\"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9\" /><path d=\"M12 12v3\" />',\n 'webhook': '<path d=\"M18 16.98h1a2 2 0 0 0 1.22-3.58L13 9l.01-.01A6.5 6.5 0 0 0 6 3.08\" /><path d=\"M9.63 8.13a6.5 6.5 0 1 0 9.12 7.23\" /><path d=\"M12 16.98a6.5 6.5 0 0 0-5.7 3.97\" /><circle cx=\"12\" cy=\"17\" r=\"1\" />',\n 'container': '<path d=\"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-.8.9-1.5Z\" /><path d=\"M10 21.9V14L2.1 9.1\" /><path d=\"m10 14 11.9-6.9\" /><path d=\"M14 19.8v-8.1\" /><path d=\"M18 17.5V9.4\" />',\n\n // Misc Symbols\n 'crown-simple': '<path d=\"m2 4 3 12h14l3-12-6 7-4-7-4 7-6-7z\" /><path d=\"M5 21h14\" />',\n 'lamp': '<path d=\"M8 2h8l4 10H4L8 2Z\" /><path d=\"M12 12v6\" /><path d=\"M8 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H8Z\" />',\n 'lamp-desk': '<path d=\"m14 5-3 3 2 7 8-8-7-2Z\" /><path d=\"m14 5-3 3-3-3 3-3 3 3Z\" /><path d=\"M9.5 6.5 4 12l3 6\" /><path d=\"M3 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H3Z\" />',\n 'paintbrush': '<path d=\"M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3Z\" /><path d=\"M9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7\" /><path d=\"M14.5 17.5 4.5 15\" />',\n 'brush': '<path d=\"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08\" /><path d=\"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z\" />',\n 'eraser': '<path d=\"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21\" /><path d=\"M22 21H7\" /><path d=\"m5 11 9 9\" />',\n 'stamp': '<path d=\"M5 22h14\" /><path d=\"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z\" /><path d=\"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13\" />',\n 'sticker': '<path d=\"M15.5 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V8.5L15.5 3Z\" /><path d=\"M14 3v4a2 2 0 0 0 2 2h4\" /><path d=\"M8 13h.01\" /><path d=\"M16 13h.01\" /><path d=\"M10 17c.5.3 1.2.5 2 .5s1.5-.2 2-.5\" />',\n\n 'at-sign-2': '<path d=\"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm0 0v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-5.5 8.28\" />',\n 'message-circle-more': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"M8 12h.01\" /><path d=\"M12 12h.01\" /><path d=\"M16 12h.01\" />',\n 'messages-square': '<path d=\"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2z\" /><path d=\"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1\" />',\n 'bell-plus': '<path d=\"M19.3 14.8C20.1 16.4 21 17 21 17H3s3-2 3-9c0-3.3 2.7-6 6-6 .7 0 1.3.1 1.9.3\" /><path d=\"M13.73 21a2 2 0 0 1-3.46 0\" /><path d=\"M18 8V2\" /><path d=\"M21 5h-6\" />',\n 'bell-minus': '<path d=\"M19.3 14.8C20.1 16.4 21 17 21 17H3s3-2 3-9c0-3.3 2.7-6 6-6 .7 0 1.3.1 1.9.3\" /><path d=\"M13.73 21a2 2 0 0 1-3.46 0\" /><path d=\"M15 5h6\" />',\n 'folder-search': '<circle cx=\"17\" cy=\"17\" r=\"3\" /><path d=\"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1\" /><path d=\"m21 21-1.5-1.5\" />',\n 'folder-lock': '<rect width=\"8\" height=\"5\" x=\"14\" y=\"17\" rx=\"1\" /><path d=\"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5\" /><path d=\"M20 17v-2a2 2 0 1 0-4 0v2\" />',\n 'folder-tree': '<path d=\"M20 10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2.5a2 2 0 0 1-1.69-.9L15 2H9L8.2 3.1A2 2 0 0 1 6.5 4H4a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2Z\" /><path d=\"M20 22a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-2.5a2 2 0 0 1-1.69-.9L15 14H9l-.81 1.1A2 2 0 0 1 6.5 16H4a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2Z\" /><path d=\"M2 10v4\" />',\n\n // Notifications & Status\n 'badge-info': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><line x1=\"12\" x2=\"12\" y1=\"16\" y2=\"12\" /><line x1=\"12\" x2=\"12.01\" y1=\"8\" y2=\"8\" />',\n 'badge-alert': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"12\" /><line x1=\"12\" x2=\"12.01\" y1=\"16\" y2=\"16\" />',\n 'badge-x': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><line x1=\"15\" x2=\"9\" y1=\"9\" y2=\"15\" /><line x1=\"9\" x2=\"15\" y1=\"9\" y2=\"15\" />',\n 'badge-plus': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"16\" /><line x1=\"8\" x2=\"16\" y1=\"12\" y2=\"12\" />',\n 'badge-minus': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" /><line x1=\"8\" x2=\"16\" y1=\"12\" y2=\"12\" />',\n 'siren-alert': '<path d=\"M7 12a5 5 0 0 1 10 0v6H7v-6z\" /><path d=\"M12 7V3\" /><path d=\"m4.4 10-1.8-1\" /><path d=\"m21.4 9-1.8 1\" /><path d=\"M5 18h14\" /><path d=\"M3 22h18\" />',\n 'megaphone-off': '<path d=\"M9.26 9.26 3 11v3l14.14 3.14\" /><path d=\"M21 15.34V6l-7.31 2.03\" /><path d=\"M11.6 16.8a3 3 0 1 1-5.8-1.6\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n\n // ──── Batch 2: Expanding to 1000 icons ────\n\n // Arrows & Pointers extended\n 'arrow-up-from-line': '<path d=\"m18 9-6-6-6 6\" /><path d=\"M12 3v14\" /><path d=\"M5 21h14\" />',\n 'arrow-down-to-line': '<path d=\"M12 7v10\" /><path d=\"m6 13 6 6 6-6\" /><path d=\"M5 3h14\" />',\n 'arrow-left-from-line': '<path d=\"m9 6-6 6 6 6\" /><path d=\"M3 12h14\" /><path d=\"M21 19V5\" />',\n 'arrow-right-from-line': '<path d=\"m15 18 6-6-6-6\" /><path d=\"M3 5v14\" /><path d=\"M7 12h14\" />',\n 'arrow-up-to-line': '<path d=\"M5 3h14\" /><path d=\"m18 13-6-6-6 6\" /><path d=\"M12 7v14\" />',\n 'arrow-down-from-line': '<path d=\"M19 3H5\" /><path d=\"m6 11 6 6 6-6\" /><path d=\"M12 17V3\" />',\n 'arrow-left-to-line': '<path d=\"M3 5v14\" /><path d=\"m13 18-6-6 6-6\" /><path d=\"M7 12h14\" />',\n 'arrow-right-to-line': '<path d=\"M17 12H3\" /><path d=\"m11 18 6-6-6-6\" /><path d=\"M21 5v14\" />',\n 'undo-2': '<path d=\"M9 14 4 9l5-5\" /><path d=\"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11\" />',\n 'redo-2': '<path d=\"m15 14 5-5-5-5\" /><path d=\"M20 9H9.5A5.5 5.5 0 0 0 4 14.5 5.5 5.5 0 0 0 9.5 20H13\" />',\n 'iteration-cw': '<path d=\"M4 10a8 8 0 1 1 8 8H4\" /><path d=\"m8 22-4-4 4-4\" />',\n 'iteration-ccw': '<path d=\"m16 14 4 4-4 4\" /><path d=\"M20 10a8 8 0 1 0-8 8h8\" />',\n\n // More UI elements\n 'panel-left-close': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M9 3.5v17\" /><path d=\"m16 15-3-3 3-3\" />',\n 'panel-left-open': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M9 3.5v17\" /><path d=\"m14 9 3 3-3 3\" />',\n 'panel-right-close': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M15 3.5v17\" /><path d=\"m8 9 3 3-3 3\" />',\n 'panel-right-open': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M15 3.5v17\" /><path d=\"m10 15-3-3 3-3\" />',\n 'panel-top-close': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 9h17\" /><path d=\"m9 16 3-3 3 3\" />',\n 'panel-top-open': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 9h17\" /><path d=\"m15 14-3 3-3-3\" />',\n 'panel-bottom-close': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 15h17\" /><path d=\"m15 8-3 3-3-3\" />',\n 'panel-bottom-open': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3.5 15h17\" /><path d=\"m9 10 3-3 3 3\" />',\n 'picture-in-picture': '<path d=\"M8 4.5v5H3m-1-6 6 6m13 0v-3c0-1.16-.84-2-2-2h-7m-6 10 .72-.72a2 2 0 0 1 2.28-.36l.72.36a2 2 0 0 0 2.28-.36L12 10l6 5h1a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h1\" />',\n 'app-window': '<rect x=\"2\" y=\"4\" width=\"20\" height=\"16\" rx=\"2\" /><path d=\"M10 4v4\" /><path d=\"M2 8h20\" /><path d=\"M6 4v4\" />',\n 'app-window-mac': '<rect x=\"2\" y=\"4\" width=\"20\" height=\"16\" rx=\"2\" /><path d=\"M2 8h20\" /><circle cx=\"8\" cy=\"6\" r=\".5\" fill=\"currentColor\" /><circle cx=\"6\" cy=\"6\" r=\".5\" fill=\"currentColor\" /><circle cx=\"10\" cy=\"6\" r=\".5\" fill=\"currentColor\" />',\n 'gallery-horizontal': '<path d=\"M2 3v18\" /><rect width=\"12\" height=\"18\" x=\"6\" y=\"3\" rx=\"2\" /><path d=\"M22 3v18\" />',\n 'gallery-vertical': '<path d=\"M3 2h18\" /><rect width=\"18\" height=\"12\" x=\"3\" y=\"6\" rx=\"2\" /><path d=\"M3 22h18\" />',\n 'dock': '<path d=\"M2 8h20\" /><rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\" /><path d=\"M6 16h12\" />',\n 'ratio': '<rect width=\"12\" height=\"20\" x=\"6\" y=\"2\" rx=\"2\" />',\n 'scaling': '<path d=\"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\" /><path d=\"M14 15H9v-5\" /><path d=\"M16 3h5v5\" /><path d=\"M21 3 9 15\" />',\n 'move': '<polyline points=\"5 9 2 12 5 15\" /><polyline points=\"9 5 12 2 15 5\" /><polyline points=\"15 19 12 22 9 19\" /><polyline points=\"19 9 22 12 19 15\" /><line x1=\"2\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"22\" />',\n 'grab': '<path d=\"M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4\" /><path d=\"M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2\" /><path d=\"M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5\" /><path d=\"M6 14a2 2 0 0 0-2 2c0 1.7.83 2.97 1.54 4.12.36.6.77 1.31 1.07 2.1a.5.5 0 0 0 .47.33h8.96a.48.48 0 0 0 .48-.36c.3-1.09.72-2 1.12-2.85C18.4 17.55 20 15.75 20 14V9a2 2 0 0 0-2-2 2 2 0 0 0-2 2\" />',\n\n // Files extended\n 'file-check': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"m9 15 2 2 4-4\" />',\n 'file-x': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"m14.5 12.5-5 5\" /><path d=\"m9.5 12.5 5 5\" />',\n 'file-minus': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M9 15h6\" />',\n 'file-search': '<path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3\" /><path d=\"m9 18-1.5-1.5\" /><circle cx=\"5\" cy=\"14\" r=\"3\" />',\n 'file-lock': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><rect width=\"8\" height=\"6\" x=\"8\" y=\"12\" rx=\"1\" /><path d=\"M10 12v-2a2 2 0 1 1 4 0v2\" />',\n 'file-warning': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M12 9v4\" /><path d=\"M12 17h.01\" />',\n 'file-heart': '<path d=\"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M10.29 10.7a2.43 2.43 0 0 0-2.66-.52c-.29.12-.56.3-.78.53l-.35.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L6.5 18l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z\" />',\n 'file-spreadsheet': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M8 13h2\" /><path d=\"M14 13h2\" /><path d=\"M8 17h2\" /><path d=\"M14 17h2\" />',\n 'file-video': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"m10 11 5 3-5 3v-6Z\" />',\n 'file-audio': '<path d=\"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0\" />',\n 'file-type': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M9 13v-1h6v1\" /><path d=\"M12 12v6\" /><path d=\"M11 18h2\" />',\n 'file-pen': '<path d=\"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z\" />',\n 'file-symlink': '<path d=\"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v7\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"m5 17-3 3 3 3\" /><path d=\"M2 20h9.5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5H8\" />',\n 'file-output': '<path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M4 7V4a2 2 0 0 1 2-2 2 2 0 0 0-2 2\" /><path d=\"M4.063 20.999a2 2 0 0 0 2 1L18 22a2 2 0 0 0 2-2V7l-5-5H6\" /><path d=\"m5 11-3 3\" /><path d=\"m5 17-3-3h10\" />',\n 'file-input': '<path d=\"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M2 15h10\" /><path d=\"m9 18 3-3-3-3\" />',\n 'file-up': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M12 12v6\" /><path d=\"m15 15-3-3-3 3\" />',\n 'file-down': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M12 18v-6\" /><path d=\"m9 15 3 3 3-3\" />',\n 'files': '<path d=\"M20 7h-3a2 2 0 0 1-2-2V2\" /><path d=\"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z\" /><path d=\"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8\" />',\n 'folder-check': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"m9 13 2 2 4-4\" />',\n 'folder-x': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"m9.5 10.5 5 5\" /><path d=\"m14.5 10.5-5 5\" />',\n 'folder-minus': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"M9 13h6\" />',\n 'folder-up': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"M12 10v6\" /><path d=\"m9 13 3-3 3 3\" />',\n 'folder-down': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"M12 10v6\" /><path d=\"m15 13-3 3-3-3\" />',\n 'folder-input': '<path d=\"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1\" /><path d=\"M2 13h10\" /><path d=\"m9 16 3-3-3-3\" />',\n 'folder-output': '<path d=\"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1\" /><path d=\"M2 13h10\" /><path d=\"m5 10-3 3 3 3\" />',\n 'folder-sync': '<path d=\"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5\" /><path d=\"M12 10v4h4\" /><path d=\"m12 14 1.535-1.605a5 5 0 0 1 8 1.5\" /><path d=\"M22 22v-4h-4\" /><path d=\"m22 18-1.535 1.605a5 5 0 0 1-8-1.5\" />',\n 'folder-heart': '<path d=\"M11 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.5\" /><path d=\"M13.9 17.45c-1.2-1.2-1.14-2.8-.2-3.73a2.43 2.43 0 0 1 3.44 0l.36.34.34-.34a2.43 2.43 0 0 1 3.45-.01v0c.95.95 1 2.53-.2 3.74L17.5 21Z\" />',\n\n // Calendar & Time extended\n 'calendar-clock': '<path d=\"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5\" /><path d=\"M16 2v4\" /><path d=\"M8 2v4\" /><path d=\"M3 10h5\" /><circle cx=\"18\" cy=\"17\" r=\"5\" /><path d=\"M18 14v3l2 1\" />',\n 'calendar-x': '<path d=\"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8\" /><path d=\"M16 2v4\" /><path d=\"M8 2v4\" /><path d=\"M3 10h18\" /><path d=\"m17 17 5 5\" /><path d=\"m22 17-5 5\" />',\n 'calendar-plus': '<path d=\"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8\" /><path d=\"M16 2v4\" /><path d=\"M8 2v4\" /><path d=\"M3 10h18\" /><path d=\"M16 19h6\" /><path d=\"M19 16v6\" />',\n 'calendar-minus': '<path d=\"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8\" /><path d=\"M16 2v4\" /><path d=\"M8 2v4\" /><path d=\"M3 10h18\" /><path d=\"M16 19h6\" />',\n 'calendar-heart': '<path d=\"M21 10V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6\" /><path d=\"M16 2v4\" /><path d=\"M8 2v4\" /><path d=\"M3 10h18\" /><path d=\"M21.07 16.22c-.39-.4-1.03-.4-1.42 0l-.35.35-.35-.35a1.008 1.008 0 0 0-1.42 0c-.39.39-.39 1.03 0 1.42l1.42 1.42.35.35 1.42-1.42c.39-.39.59-1.03.35-1.77z\" />',\n 'calendar-range': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" /><path d=\"M16 2v4\" /><path d=\"M3 10h18\" /><path d=\"M8 2v4\" /><path d=\"M8 14h.01\" /><path d=\"M12 14h.01\" /><path d=\"M16 14h.01\" /><path d=\"M8 18h.01\" /><path d=\"M12 18h.01\" />',\n 'calendar-search': '<path d=\"M21 12V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6.5\" /><path d=\"M16 2v4\" /><path d=\"M8 2v4\" /><path d=\"M3 10h18\" /><path d=\"M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z\" /><path d=\"m22 22-1.5-1.5\" />',\n 'timer-off': '<path d=\"M10 2h4\" /><path d=\"M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7\" /><path d=\"M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2\" /><path d=\"m2 2 20 20\" /><path d=\"M12 12v-2\" />',\n 'timer-reset': '<path d=\"M10 2h4\" /><path d=\"M12 14v-4\" /><path d=\"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6\" /><path d=\"M9 17H4v5\" />',\n 'clock-1': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12 14.5 8\" />',\n 'clock-2': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12 16 10\" />',\n 'clock-3': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12 16.5 12\" />',\n 'clock-4': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12 15 15\" />',\n 'clock-12': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><polyline points=\"12 6 12 12\" />',\n 'stopwatch': '<circle cx=\"12\" cy=\"13\" r=\"8\" /><path d=\"M12 9v4l2 2\" /><path d=\"M5 3 2 6\" /><path d=\"m22 6-3-3\" /><path d=\"M6.38 18.7 4 21\" /><path d=\"M17.64 18.67 20 21\" /><path d=\"M12 2v3\" />',\n\n // Chart & Data Viz\n 'bar-chart-3': '<path d=\"M3 3v16a2 2 0 0 0 2 2h16\" /><path d=\"M7 16h8\" /><path d=\"M7 11h12\" /><path d=\"M7 6h3\" />',\n 'bar-chart-4': '<path d=\"M3 3v16a2 2 0 0 0 2 2h16\" /><path d=\"M7 17.5V14\" /><path d=\"M11 17.5V8\" /><path d=\"M15 17.5V4\" /><path d=\"M19 17.5v-6\" />',\n 'line-chart': '<path d=\"M3 3v16a2 2 0 0 0 2 2h16\" /><path d=\"m19 9-5 5-4-4-3 3\" />',\n 'area-chart': '<path d=\"M3 3v16a2 2 0 0 0 2 2h16\" /><path d=\"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z\" />',\n 'candlestick-chart': '<path d=\"M9 5v4\" /><rect width=\"4\" height=\"6\" x=\"7\" y=\"9\" rx=\"1\" /><path d=\"M9 15v2\" /><path d=\"M17 3v2\" /><rect width=\"4\" height=\"6\" x=\"15\" y=\"5\" rx=\"1\" /><path d=\"M17 11v2\" /><path d=\"M3 3v16a2 2 0 0 0 2 2h16\" />',\n 'scatter-chart': '<circle cx=\"7.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"18.5\" cy=\"5.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"11.5\" cy=\"11.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"7.5\" cy=\"16.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"13.5\" cy=\"14.5\" r=\".5\" fill=\"currentColor\" /><circle cx=\"18\" cy=\"13\" r=\".5\" fill=\"currentColor\" /><path d=\"M3 3v16a2 2 0 0 0 2 2h16\" />',\n 'chart-no-axes-column': '<line x1=\"18\" x2=\"18\" y1=\"20\" y2=\"10\" /><line x1=\"12\" x2=\"12\" y1=\"20\" y2=\"4\" /><line x1=\"6\" x2=\"6\" y1=\"20\" y2=\"16\" />',\n 'chart-no-axes-combined': '<path d=\"M12 16v5\" /><path d=\"M16 14v7\" /><path d=\"M20 10v11\" /><path d=\"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15\" /><path d=\"M4 18v3\" /><path d=\"M8 14v7\" />',\n 'chart-pie': '<path d=\"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.949v8a1 1 0 0 0 1 1z\" /><path d=\"M21.21 15.89A10 10 0 1 1 8 2.83\" />',\n 'chart-spline': '<path d=\"M3 3v16a2 2 0 0 0 2 2h16\" /><path d=\"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7\" />',\n 'chart-column-stacked': '<path d=\"M11 13H7\" /><path d=\"M19 9h-4\" /><path d=\"M3 3v16a2 2 0 0 0 2 2h16\" /><rect x=\"15\" y=\"5\" width=\"4\" height=\"12\" rx=\"1\" /><rect x=\"7\" y=\"8\" width=\"4\" height=\"9\" rx=\"1\" />',\n\n // Users & Contacts extended\n 'contact-round': '<circle cx=\"12\" cy=\"6\" r=\"4\" /><path d=\"M17.2 13.7A7.93 7.93 0 0 0 12 12a7.93 7.93 0 0 0-5.2 1.7\" /><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\" />',\n 'users-2': '<path d=\"M14 19a6 6 0 0 0-12 0\" /><circle cx=\"8\" cy=\"9\" r=\"4\" /><path d=\"M22 19a6 6 0 0 0-6-6 4 4 0 1 0 0-8\" />',\n 'user-search': '<circle cx=\"10\" cy=\"7\" r=\"4\" /><path d=\"M10.3 15H7a4 4 0 0 0-4 4v2\" /><circle cx=\"17\" cy=\"17\" r=\"3\" /><path d=\"m21 21-1.9-1.9\" />',\n 'user-pen': '<path d=\"M11.5 15H7a4 4 0 0 0-4 4v2\" /><path d=\"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z\" /><circle cx=\"10\" cy=\"7\" r=\"4\" />',\n 'circle-user-round': '<path d=\"M18 20a6 6 0 0 0-12 0\" /><circle cx=\"12\" cy=\"10\" r=\"4\" /><circle cx=\"12\" cy=\"12\" r=\"10\" />',\n\n // Lock & Key extended\n 'key-square': '<path d=\"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z\" /><path d=\"m14 7 3 3\" /><path d=\"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814\" />',\n\n // Communication extended\n 'phone-call': '<path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\" /><path d=\"M14.05 2a9 9 0 0 1 8 7.94\" /><path d=\"M14.05 6A5 5 0 0 1 18 10\" />',\n 'phone-incoming': '<polyline points=\"16 2 16 8 22 8\" /><line x1=\"22\" x2=\"16\" y1=\"2\" y2=\"8\" /><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\" />',\n 'phone-outgoing': '<polyline points=\"22 8 22 2 16 2\" /><line x1=\"16\" x2=\"22\" y1=\"8\" y2=\"2\" /><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\" />',\n 'phone-missed': '<line x1=\"22\" x2=\"16\" y1=\"2\" y2=\"8\" /><line x1=\"16\" x2=\"22\" y1=\"2\" y2=\"8\" /><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\" />',\n 'phone-off': '<path d=\"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91\" /><line x1=\"22\" x2=\"2\" y1=\"2\" y2=\"22\" />',\n 'phone-forwarded': '<polyline points=\"18 2 22 6 18 10\" /><line x1=\"14\" x2=\"22\" y1=\"6\" y2=\"6\" /><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\" />',\n 'voicemail': '<circle cx=\"6\" cy=\"12\" r=\"4\" /><circle cx=\"18\" cy=\"12\" r=\"4\" /><line x1=\"6\" x2=\"18\" y1=\"16\" y2=\"16\" />',\n 'mail-check': '<path d=\"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" /><path d=\"m16 19 2 2 4-4\" />',\n 'mail-x': '<path d=\"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" /><path d=\"m17 17 4 4\" /><path d=\"m21 17-4 4\" />',\n 'mail-plus': '<path d=\"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" /><path d=\"M19 16v6\" /><path d=\"M16 19h6\" />',\n 'mail-minus': '<path d=\"M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" /><path d=\"M16 19h6\" />',\n 'mail-search': '<path d=\"M22 12.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h7.5\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" /><path d=\"M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z\" /><circle cx=\"18\" cy=\"18\" r=\"3\" /><path d=\"m22 22-1.5-1.5\" />',\n 'mail-warning': '<path d=\"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5\" /><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" /><path d=\"M20 14v4\" /><path d=\"M20 22v.01\" />',\n\n // Ecommerce & Payment\n 'credit-card-off': '<path d=\"m2 2 20 20\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"5\" rx=\"2\" /><path d=\"M2 10h20\" />',\n 'wallet-cards': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2\" /><path d=\"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21\" />',\n 'hand-coins': '<path d=\"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17\" /><path d=\"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9\" /><path d=\"m2 16 6 6\" /><circle cx=\"16\" cy=\"9\" r=\"2.9\" /><circle cx=\"6\" cy=\"5\" r=\"3\" />',\n 'piggy-bank': '<path d=\"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2\" /><path d=\"M2 9v1c0 1.1.9 2 2 2h1\" /><path d=\"M16 11h.01\" />',\n 'store-front': '<path d=\"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5\" /><path d=\"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244\" /><path d=\"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05\" />',\n 'shopping-cart-off': '<circle cx=\"8\" cy=\"21\" r=\"1\" /><circle cx=\"19\" cy=\"21\" r=\"1\" /><path d=\"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12\" /><path d=\"m2 2 20 20\" />',\n 'tag-x': '<path d=\"M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z\" /><path d=\"M7 7h.01\" /><path d=\"m13.5 10.5-5 5\" /><path d=\"m8.5 10.5 5 5\" />',\n 'tags': '<path d=\"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z\" /><path d=\"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193\" /><circle cx=\"10.5\" cy=\"6.5\" r=\".5\" fill=\"currentColor\" />',\n\n // Nature & Ecology\n 'tree-pine': '<path d=\"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14l-3-3.3a1 1 0 0 1 .7-1.7h3.6L6 6.3a1 1 0 0 1 .7-1.7h10.6a1 1 0 0 1 .7 1.7L16 9h3.6a1 1 0 0 1 .7 1.7L17 14Z\" /><path d=\"M12 22v-3\" />',\n 'tree-deciduous': '<path d=\"M8 19a4 4 0 0 1-2.24-7.32A3.5 3.5 0 0 1 9 6.03V6a3 3 0 1 1 6 0v.04a3.5 3.5 0 0 1 3.24 5.65A4 4 0 0 1 16 19Z\" /><path d=\"M12 19v3\" />',\n 'tree-palm': '<path d=\"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4\" /><path d=\"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3\" /><path d=\"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 4.24-4.24c1.96 1.96 1.8 5.29-.35 7.43\" /><path d=\"M12 20v-9.5\" />',\n 'flower': '<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5\" /><path d=\"M12 7.5V9\" /><path d=\"M7.5 12H9\" /><path d=\"M16.5 12H15\" /><path d=\"M12 16.5V15\" /><path d=\"m8 8 1.88 1.88\" /><path d=\"M14.12 9.88 16 8\" /><path d=\"m8 16 1.88-1.88\" /><path d=\"M14.12 14.12 16 16\" />',\n 'flower-2': '<path d=\"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1\" /><circle cx=\"12\" cy=\"8\" r=\"2\" /><path d=\"M12 10v12\" /><path d=\"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z\" /><path d=\"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z\" />',\n 'clover': '<path d=\"M16.17 7.83 2 22\" /><path d=\"M4.02 12a2.827 2.827 0 1 1 3.81-4.17A2.827 2.827 0 1 1 12 4.02a2.827 2.827 0 1 1 4.17 3.81A2.827 2.827 0 1 1 19.98 12a2.827 2.827 0 1 1-3.81 4.17A2.827 2.827 0 1 1 12 19.98a2.827 2.827 0 1 1-4.17-3.81A2.827 2.827 0 1 1 4.02 12Z\" />',\n 'mushroom': '<path d=\"M2 22a1 1 0 0 1-1-1v-2a5 5 0 0 1 5-5h12a5 5 0 0 1 5 5v2a1 1 0 0 1-1 1H2Z\" /><path d=\"M12 14V9\" /><path d=\"M5.07 14.12A7 7 0 0 1 12 2a7 7 0 0 1 6.93 12.12\" />',\n 'waves': '<path d=\"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1\" /><path d=\"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1\" /><path d=\"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1\" />',\n 'cloud-off': '<path d=\"m2 2 20 20\" /><path d=\"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193\" /><path d=\"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07\" />',\n 'haze': '<path d=\"m5.2 6.2 1.4 1.4\" /><path d=\"M2 13h2\" /><path d=\"M20 13h2\" /><path d=\"m17.4 7.6 1.4-1.4\" /><path d=\"M22 17H2\" /><path d=\"M22 21H2\" /><path d=\"M16 13a4 4 0 0 0-8 0\" /><path d=\"M12 5V2.5\" />',\n 'sun-moon': '<path d=\"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4\" /><path d=\"M12 2v2\" /><path d=\"M12 20v2\" /><path d=\"m4.9 4.9 1.4 1.4\" /><path d=\"m17.7 17.7 1.4 1.4\" /><path d=\"M2 12h2\" /><path d=\"M20 12h2\" /><path d=\"m6.3 17.7-1.4 1.4\" /><path d=\"m19.1 4.9-1.4 1.4\" />',\n 'sun-dim': '<circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 4h.01\" /><path d=\"M20 12h.01\" /><path d=\"M12 20h.01\" /><path d=\"M4 12h.01\" /><path d=\"M17.657 6.343h.01\" /><path d=\"M17.657 17.657h.01\" /><path d=\"M6.343 17.657h.01\" /><path d=\"M6.343 6.343h.01\" />',\n 'cloud-hail': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M16 14v2\" /><path d=\"M8 14v2\" /><path d=\"M16 20h.01\" /><path d=\"M8 20h.01\" /><path d=\"M12 16v2\" /><path d=\"M12 22h.01\" />',\n\n // Transport & Vehicles extended\n 'car-front': '<path d=\"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8\" /><path d=\"M7 14h.01\" /><path d=\"M17 14h.01\" /><rect width=\"18\" height=\"8\" x=\"3\" y=\"10\" rx=\"2\" /><path d=\"M5 18v2\" /><path d=\"M19 18v2\" />',\n 'car-taxi-front': '<path d=\"M10 2h4\" /><path d=\"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8\" /><path d=\"M7 14h.01\" /><path d=\"M17 14h.01\" /><rect width=\"18\" height=\"8\" x=\"3\" y=\"10\" rx=\"2\" /><path d=\"M5 18v2\" /><path d=\"M19 18v2\" />',\n 'ambulance': '<path d=\"M10 10H6\" /><path d=\"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2\" /><path d=\"M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14\" /><path d=\"M8 8v4\" /><circle cx=\"7\" cy=\"18\" r=\"2\" /><path d=\"M9 18h5\" /><circle cx=\"16\" cy=\"18\" r=\"2\" />',\n 'tractor': '<path d=\"m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20\" /><path d=\"M16 18h-5\" /><path d=\"M18 5a1 1 0 0 0-1 1v5.573\" /><path d=\"M3 4h8.129a1 1 0 0 1 .99.863L13 11.246\" /><path d=\"M4 11V4\" /><circle cx=\"18\" cy=\"18\" r=\"2\" /><circle cx=\"7\" cy=\"15\" r=\"5\" />',\n 'sailboat': '<path d=\"M22 18H2a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z\" /><path d=\"M21 14 10 2 3 14h18Z\" /><path d=\"M10 2v16\" />',\n 'ferry': '<path d=\"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1\" /><path d=\"M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76\" /><path d=\"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6\" /><path d=\"M12 1v4\" />',\n 'rocket-launch': '<path d=\"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09Z\" /><path d=\"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2Z\" /><path d=\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0\" /><path d=\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5\" />',\n 'cable-car': '<path d=\"M10 3h.01\" /><path d=\"M14 2h.01\" /><path d=\"m2 9 20-5\" /><path d=\"M12 12V6.5\" /><rect width=\"16\" height=\"10\" x=\"4\" y=\"12\" rx=\"3\" />',\n 'bike-electric': '<circle cx=\"18.5\" cy=\"17.5\" r=\"3.5\" /><circle cx=\"5.5\" cy=\"17.5\" r=\"3.5\" /><circle cx=\"15\" cy=\"5\" r=\"1\" /><path d=\"M12 17.5V14l-3-3 4-3 2 3h2\" /><path d=\"M10 3h2.5\" />',\n 'forklift': '<path d=\"M5 11V8a2 2 0 0 0-2-2h0\" /><path d=\"M10 22V8\" /><path d=\"M3 22h2\" /><path d=\"M10 22h4a2 2 0 0 0 2-2v-2\" /><path d=\"M14 13V6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v7\" /><path d=\"M8 22h.01\" /><circle cx=\"18\" cy=\"18\" r=\"3\" />',\n\n // Sport & Fitness\n 'goal': '<path d=\"M12 13V2l8 4-8 4\" /><path d=\"M20.55 10.23A9 9 0 1 1 8 2.94\" /><path d=\"M8 10a5 5 0 1 0 8.9 2.02\" />',\n 'tennis-ball': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M18.09 5.91A5.987 5.987 0 0 0 12 14a5.987 5.987 0 0 0-6.09 4.09\" /><path d=\"M5.91 5.91A5.987 5.987 0 0 1 12 10a5.987 5.987 0 0 1 6.09-4.09\" />',\n 'dribbble': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M19.13 5.09C15.22 9.14 10 10.44 2.25 10.94\" /><path d=\"M21.75 12.84c-6.62-1.41-12.14 1-16.38 6.32\" /><path d=\"M8.56 2.75c4.37 6 6 9.42 8 17.72\" />',\n 'swords': '<polyline points=\"14.5 17.5 3 6 3 3 6 3 17.5 14.5\" /><line x1=\"13\" x2=\"19\" y1=\"19\" y2=\"13\" /><line x1=\"16\" x2=\"20\" y1=\"16\" y2=\"20\" /><line x1=\"19\" x2=\"21\" y1=\"21\" y2=\"19\" /><polyline points=\"14.5 6.5 18 3 21 3 21 6 17.5 9.5\" /><line x1=\"5\" x2=\"9\" y1=\"14\" y2=\"18\" /><line x1=\"7\" x2=\"4\" y1=\"17\" y2=\"20\" /><line x1=\"3\" x2=\"5\" y1=\"19\" y2=\"21\" />',\n 'footprints': '<path d=\"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z\" /><path d=\"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z\" /><path d=\"M16 17h4\" /><path d=\"M4 13h4\" />',\n 'bike-mountain': '<path d=\"M12 18V2\" /><path d=\"m7 8 5-6\" /><path d=\"m17 8-5-6\" /><circle cx=\"5\" cy=\"17\" r=\"3\" /><circle cx=\"19\" cy=\"17\" r=\"3\" /><path d=\"m12 12-4 5h8Z\" />',\n\n // Home & Furniture\n 'sofa': '<path d=\"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3\" /><path d=\"M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z\" /><path d=\"M4 18v2\" /><path d=\"M20 18v2\" /><path d=\"M12 4v9\" />',\n 'bed': '<path d=\"M2 4v16\" /><path d=\"M2 8h18a2 2 0 0 1 2 2v10\" /><path d=\"M2 17h20\" /><path d=\"M6 8v9\" />',\n 'door-open': '<path d=\"M13 4h3a2 2 0 0 1 2 2v14\" /><path d=\"M2 20h3\" /><path d=\"M13 20h9\" /><path d=\"M10 12v.01\" /><path d=\"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z\" />',\n 'door-closed': '<path d=\"M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14\" /><path d=\"M2 20h20\" /><path d=\"M14 12v.01\" />',\n 'bath': '<path d=\"M9 6 6.5 3.5a1.5 1.5 0 0 0-1-.5C4.683 3 4 3.683 4 4.5V17a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5\" /><line x1=\"10\" x2=\"8\" y1=\"5\" y2=\"7\" /><line x1=\"2\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"7\" x2=\"7\" y1=\"19\" y2=\"21\" /><line x1=\"17\" x2=\"17\" y1=\"19\" y2=\"21\" />',\n 'lamp-ceiling': '<path d=\"M12 2v5\" /><path d=\"M6 7h12l4 9H2l4-9Z\" /><path d=\"M9.17 16a3 3 0 1 0 5.66 0\" />',\n 'lamp-floor': '<path d=\"M9 2h6l3 7H6l3-7Z\" /><path d=\"M12 9v13\" /><path d=\"M9 22h6\" />',\n 'armchair': '<path d=\"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3\" /><path d=\"M3 16h18\" /><path d=\"M2 11v5a2 2 0 0 0 2 2\" /><path d=\"M20 18a2 2 0 0 0 2-2v-5\" /><path d=\"M4 11a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5H4v-5Z\" /><path d=\"M4 18v2\" /><path d=\"M20 18v2\" />',\n 'cooking-pot': '<path d=\"M2 12h20\" /><path d=\"M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8\" /><path d=\"m4 8 16-4\" /><path d=\"m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8\" />',\n 'washing-machine': '<path d=\"M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Z\" /><path d=\"M12 15a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z\" /><path d=\"M8 5h.01\" /><path d=\"M11 5h2\" />',\n 'microwave': '<rect width=\"20\" height=\"15\" x=\"2\" y=\"4\" rx=\"2\" /><rect width=\"8\" height=\"7\" x=\"6\" y=\"8\" rx=\"1\" /><path d=\"M18 8v7\" /><path d=\"M6 19v2\" /><path d=\"M18 19v2\" />',\n\n // Medical & Health extended\n 'ambulance-siren': '<path d=\"M10 10H6\" /><path d=\"M8 8v4\" /><path d=\"M12 2v2\" /><path d=\"M7 4h10\" /><path d=\"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2\" /><path d=\"M19 18h2a1 1 0 0 0 1-1v-3.28a1 1 0 0 0-.684-.948l-1.923-.641a1 1 0 0 1-.578-.502l-1.539-3.076A1 1 0 0 0 16.382 8H14\" /><circle cx=\"7\" cy=\"18\" r=\"2\" /><path d=\"M9 18h5\" /><circle cx=\"16\" cy=\"18\" r=\"2\" />',\n 'brain': '<path d=\"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z\" /><path d=\"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z\" /><path d=\"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4\" /><path d=\"M17.599 6.5a3 3 0 0 0 .399-1.375\" /><path d=\"M6.003 5.125A3 3 0 0 0 6.401 6.5\" /><path d=\"M3.477 10.896a4 4 0 0 1 .585-.396\" /><path d=\"M19.938 10.5a4 4 0 0 1 .585.396\" /><path d=\"M6 18a4 4 0 0 1-1.967-.516\" /><path d=\"M19.967 17.484A4 4 0 0 1 18 18\" />',\n 'heart-off': '<line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" /><path d=\"M16.5 16.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5a5.5 5.5 0 0 1 2.14-4.35\" /><path d=\"M8.76 3.1c1.15.22 2.13.78 3.24 1.9 1.5-1.5 2.74-2 4.5-2A5.5 5.5 0 0 1 22 8.5c0 2.12-1.3 3.78-2.67 5.17\" />',\n 'activity-square': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M17 12h-2l-2 5-2-10-2 5H7\" />',\n 'scan-heart': '<path d=\"M3 7V5a2 2 0 0 1 2-2h2\" /><path d=\"M17 3h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 17v2a2 2 0 0 1-2 2h-2\" /><path d=\"M7 21H5a2 2 0 0 1-2-2v-2\" /><path d=\"M12 16.438c-1.312-1.312-2.876-2.104-2.876-3.876a2.632 2.632 0 0 1 5.251 0c0 1.772-1.563 2.564-2.876 3.876Z\" />',\n 'stethoscope-alt': '<path d=\"M11 2v2\" /><path d=\"M5 2v2\" /><path d=\"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1\" /><path d=\"M8 15a6 6 0 0 0 12 0v-3\" /><circle cx=\"20\" cy=\"10\" r=\"2\" />',\n 'hospital': '<path d=\"M12 6v4\" /><path d=\"M14 14h-4\" /><path d=\"M14 18h-4\" /><path d=\"M14 8h-4\" /><path d=\"M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2\" /><path d=\"M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18\" />',\n 'band-aid': '<path d=\"M18 2 2 18\" /><path d=\"m22 6-4-4\" /><path d=\"m6 22-4-4\" /><path d=\"m2 2 20 20\" /><path d=\"M22 18 18 22\" /><path d=\"M6 2 2 6\" /><path d=\"M10 10h.01\" /><path d=\"M14 14h.01\" />',\n\n // Education extended\n 'school': '<path d=\"M14 22v-4a2 2 0 1 0-4 0v4\" /><path d=\"m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2\" /><path d=\"M18 5v17\" /><path d=\"m4 6 8-4 8 4\" /><path d=\"M6 5v17\" /><circle cx=\"12\" cy=\"9\" r=\"2\" />',\n 'backpack': '<path d=\"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z\" /><path d=\"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2\" /><path d=\"M8 21v-5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v5\" /><path d=\"M8 10h8\" /><path d=\"M8 18h8\" />',\n 'pen-tool': '<path d=\"m12 19 7-7 3 3-7 7-3-3z\" /><path d=\"m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z\" /><path d=\"m2 2 7.586 7.586\" /><circle cx=\"11\" cy=\"11\" r=\"2\" />',\n 'pencil-ruler': '<path d=\"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13\" /><path d=\"m8 6 2-2\" /><path d=\"m18 16 2-2\" /><path d=\"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17\" /><path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\" /><path d=\"m15 5 4 4\" />',\n 'presentation': '<path d=\"M2 3h20\" /><path d=\"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3\" /><path d=\"m7 21 5-5 5 5\" />',\n 'library': '<path d=\"m16 6 4 14\" /><path d=\"M12 6v14\" /><path d=\"M8 8v12\" /><path d=\"M4 4v16\" />',\n\n // Gaming & Fun\n 'dice-1': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><path d=\"M12 12h.01\" />',\n 'dice-2': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><path d=\"M15 9h.01\" /><path d=\"M9 15h.01\" />',\n 'dice-3': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><path d=\"M16 8h.01\" /><path d=\"M12 12h.01\" /><path d=\"M8 16h.01\" />',\n 'dice-4': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><path d=\"M16 8h.01\" /><path d=\"M8 8h.01\" /><path d=\"M8 16h.01\" /><path d=\"M16 16h.01\" />',\n 'dice-5': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><path d=\"M16 8h.01\" /><path d=\"M8 8h.01\" /><path d=\"M8 16h.01\" /><path d=\"M16 16h.01\" /><path d=\"M12 12h.01\" />',\n 'dice-6': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\" /><path d=\"M16 8h.01\" /><path d=\"M16 12h.01\" /><path d=\"M16 16h.01\" /><path d=\"M8 8h.01\" /><path d=\"M8 12h.01\" /><path d=\"M8 16h.01\" />',\n 'puzzle': '<path d=\"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.315 8.685a.98.98 0 0 1 .837-.276c.47.07.802.48.968.925a2.501 2.501 0 1 0 3.214-3.214c-.446-.166-.855-.497-.925-.968a.979.979 0 0 1 .276-.837l1.61-1.61a2.404 2.404 0 0 1 1.705-.707 2.402 2.402 0 0 1 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z\" />',\n 'joystick': '<path d=\"M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z\" /><path d=\"M6 15v-2\" /><path d=\"M12 15V9\" /><circle cx=\"12\" cy=\"6\" r=\"3\" />',\n 'ghost': '<path d=\"M9 10h.01\" /><path d=\"M15 10h.01\" /><path d=\"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z\" />',\n 'worm': '<path d=\"m19 12-1.5 3\" /><path d=\"M19.63 18.81 22 20\" /><path d=\"M6.47 8.23a1.68 1.68 0 0 1 2.44-1.93l.64.42a.97.97 0 0 0 1.26-.13L12 5.4a2 2 0 0 1 3 .53l.26.53a2 2 0 0 0 2.26 1.06L21 6.4\" /><path d=\"M5.2 16.3A3.34 3.34 0 0 0 2 19.5 3.34 3.34 0 0 0 5.5 22a3.33 3.33 0 0 0 3-2.7\" /><path d=\"m10.2 14.5 3.3-2.5\" />',\n 'candy': '<path d=\"m9.5 7.5-2 2a4.95 4.95 0 1 0 7 7l2-2a4.95 4.95 0 1 0-7-7Z\" /><path d=\"M14 6.5v10\" /><path d=\"M10 7.5v10\" /><path d=\"m16 7 1-5 1.37.68A3 3 0 0 0 19.7 3H21v1.3c0 .46.1.92.32 1.33L22 7l-5 1\" /><path d=\"m8 17-1 5-1.37-.68A3 3 0 0 0 4.3 21H3v-1.3a3 3 0 0 0-.32-1.33L2 17l5-1\" />',\n\n // Accessibility & Identity\n 'ear': '<path d=\"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0\" /><path d=\"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4\" />',\n 'ear-off': '<path d=\"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46\" /><path d=\"M6 8.5c0-.75.13-1.47.36-2.14\" /><path d=\"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76\" /><path d=\"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'eye-closed': '<path d=\"m15 18-.722-3.25\" /><path d=\"M2 8a10.645 10.645 0 0 0 20 0\" /><path d=\"m20 15-1.726-2.05\" /><path d=\"m4 15 1.726-2.05\" /><path d=\"m9 18 .722-3.25\" />',\n 'glasses': '<circle cx=\"6\" cy=\"15\" r=\"4\" /><circle cx=\"18\" cy=\"15\" r=\"4\" /><path d=\"M14 15a2 2 0 0 0-4 0\" /><path d=\"M2.5 13 5 7c.7-1.3 1.4-2 3-2\" /><path d=\"M21.5 13 19 7c-.7-1.3-1.5-2-3-2\" />',\n 'wheelchair': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><circle cx=\"9\" cy=\"9\" r=\"1.5\" /><path d=\"M9 13a4 4 0 0 0 7.47 2\" /><path d=\"m7.5 10.5 3 1.5 2-2\" />',\n 'speech': '<path d=\"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-1.063l.634-.951A2.3 2.3 0 0 1 15.4 13H17\" /><path d=\"M19 13a4 4 0 0 0-4-4H9a4 4 0 0 0 0 8h.2\" /><path d=\"M2 16a3 3 0 0 1 2.83-3\" />',\n\n // Misc Utilities\n 'copy-check': '<path d=\"m12 15 2 2 4-4\" /><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />',\n 'copy-minus': '<line x1=\"12\" x2=\"18\" y1=\"15\" y2=\"15\" /><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />',\n 'copy-plus': '<line x1=\"15\" x2=\"15\" y1=\"12\" y2=\"18\" /><line x1=\"12\" x2=\"18\" y1=\"15\" y2=\"15\" /><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />',\n 'copy-x': '<line x1=\"12\" x2=\"18\" y1=\"12\" y2=\"18\" /><line x1=\"12\" x2=\"18\" y1=\"18\" y2=\"12\" /><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />',\n 'clipboard-list': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" /><path d=\"M12 11h4\" /><path d=\"M12 16h4\" /><path d=\"M8 11h.01\" /><path d=\"M8 16h.01\" />',\n 'clipboard-copy': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v4\" /><path d=\"M21 14H11\" /><path d=\"m15 10-4 4 4 4\" />',\n 'trash-x': '<path d=\"M3 6h18\" /><path d=\"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\" /><path d=\"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\" /><line x1=\"10\" x2=\"14\" y1=\"11\" y2=\"17\" /><line x1=\"14\" x2=\"10\" y1=\"11\" y2=\"17\" />',\n 'archive-x': '<rect width=\"20\" height=\"5\" x=\"2\" y=\"3\" rx=\"1\" /><path d=\"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\" /><path d=\"m9.5 17 2.5-2.5 2.5 2.5\" /><path d=\"m9.5 12 2.5 2.5 2.5-2.5\" />',\n 'archive-restore': '<rect width=\"20\" height=\"5\" x=\"2\" y=\"3\" rx=\"1\" /><path d=\"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\" /><path d=\"m9.5 17 2.5-2.5 2.5 2.5\" /><path d=\"M12 14.5V12\" />',\n 'save-all': '<path d=\"M10 2v3a1 1 0 0 0 1 1h5\" /><path d=\"M18 18v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6\" /><path d=\"M18 22H4a2 2 0 0 1-2-2V6\" /><path d=\"M8 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 22 6.828V16a2 2 0 0 1-2 2\" />',\n 'bookmark-check': '<path d=\"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z\" /><path d=\"m9 10 2 2 4-4\" />',\n 'bookmark-minus': '<path d=\"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v11\" /><line x1=\"15\" x2=\"9\" y1=\"10\" y2=\"10\" />',\n 'bookmark-x': '<path d=\"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v11\" /><path d=\"m14.5 7.5-5 5\" /><path d=\"m9.5 7.5 5 5\" />',\n 'link-2': '<path d=\"M9 17H7A5 5 0 0 1 7 7h2\" /><path d=\"M15 7h2a5 5 0 1 1 0 10h-2\" /><line x1=\"8\" x2=\"16\" y1=\"12\" y2=\"12\" />',\n 'link-2-off': '<path d=\"M9 17H7A5 5 0 0 1 7 7\" /><path d=\"M15 7h2a5 5 0 0 1 4 8\" /><line x1=\"8\" x2=\"12\" y1=\"12\" y2=\"12\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'parentheses': '<path d=\"M8 21s-4-3-4-9 4-9 4-9\" /><path d=\"M16 3s4 3 4 9-4 9-4 9\" />',\n 'sigma-square': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M16 8H8l4 4-4 4h8\" />',\n 'pi': '<line x1=\"9\" x2=\"9\" y1=\"4\" y2=\"20\" /><path d=\"M4 7c0-1.7 1.3-3 3-3h13\" /><path d=\"M18 20c-1.7 0-3-1.3-3-3V4\" />',\n 'whole-word': '<circle cx=\"7\" cy=\"12\" r=\"3\" /><path d=\"M10 9v6\" /><circle cx=\"17\" cy=\"12\" r=\"3\" /><path d=\"M14 7v8\" /><path d=\"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1\" />',\n 'spell-check-2': '<path d=\"m6 16 6-12 6 12\" /><path d=\"M8 12h8\" /><path d=\"M4 21c1.1 0 1.1-1 2.3-1s1.1 1 2.3 1c1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1 1.1 0 1.1-1 2.3-1 1.1 0 1.1 1 2.3 1\" />',\n 'text-select': '<path d=\"M5 3a2 2 0 0 0-2 2\" /><path d=\"M19 3a2 2 0 0 1 2 2\" /><path d=\"M21 19a2 2 0 0 1-2 2\" /><path d=\"M5 21a2 2 0 0 1-2-2\" /><path d=\"M9 3h1\" /><path d=\"M9 21h1\" /><path d=\"M14 3h1\" /><path d=\"M14 21h1\" /><path d=\"M3 9v1\" /><path d=\"M21 9v1\" /><path d=\"M3 14v1\" /><path d=\"M21 14v1\" /><line x1=\"7\" x2=\"15\" y1=\"8\" y2=\"8\" /><line x1=\"7\" x2=\"17\" y1=\"12\" y2=\"12\" /><line x1=\"7\" x2=\"13\" y1=\"16\" y2=\"16\" />',\n 'text-cursor-input': '<path d=\"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1\" /><path d=\"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5\" /><path d=\"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1\" /><path d=\"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7\" /><path d=\"M9 7v10\" />',\n 'between-horizontal-start': '<rect width=\"13\" height=\"7\" x=\"8\" y=\"3\" rx=\"1\" /><rect width=\"13\" height=\"7\" x=\"8\" y=\"14\" rx=\"1\" /><path d=\"M4 7h3\" /><path d=\"M4 17h3\" /><path d=\"M2 12h6\" />',\n 'between-horizontal-end': '<rect width=\"13\" height=\"7\" x=\"3\" y=\"3\" rx=\"1\" /><rect width=\"13\" height=\"7\" x=\"3\" y=\"14\" rx=\"1\" /><path d=\"M17 7h3\" /><path d=\"M17 17h3\" /><path d=\"M16 12h6\" />',\n 'split': '<path d=\"M16 3h5v5\" /><path d=\"M8 3H3v5\" /><path d=\"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3\" /><path d=\"m15 9 6-6\" />',\n 'merge': '<path d=\"m8 6 4-4 4 4\" /><path d=\"M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22\" /><path d=\"m20 22-5-5\" />',\n 'workflow': '<rect width=\"8\" height=\"8\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M7 11v4a2 2 0 0 0 2 2h4\" /><rect width=\"8\" height=\"8\" x=\"13\" y=\"13\" rx=\"2\" />',\n 'orbit': '<circle cx=\"12\" cy=\"12\" r=\"3\" /><circle cx=\"19\" cy=\"5\" r=\"2\" /><circle cx=\"5\" cy=\"19\" r=\"2\" /><path d=\"M10.4 21.9a10 10 0 0 0 9.941-15.416\" /><path d=\"M13.5 2.1a10 10 0 0 0-9.841 15.416\" />',\n 'waypoints': '<circle cx=\"12\" cy=\"4.5\" r=\"2.5\" /><path d=\"m10.2 6.3-3.9 3.9\" /><circle cx=\"4.5\" cy=\"12\" r=\"2.5\" /><path d=\"M7 12h10\" /><circle cx=\"19.5\" cy=\"12\" r=\"2.5\" /><path d=\"m13.8 17.7 3.9-3.9\" /><circle cx=\"12\" cy=\"19.5\" r=\"2.5\" />',\n 'network': '<rect x=\"16\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\" /><rect x=\"2\" y=\"16\" width=\"6\" height=\"6\" rx=\"1\" /><rect x=\"9\" y=\"2\" width=\"6\" height=\"6\" rx=\"1\" /><path d=\"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3\" /><path d=\"M12 12V8\" />',\n 'screen-share': '<path d=\"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3\" /><path d=\"M8 21h8\" /><path d=\"M12 17v4\" /><path d=\"m17 8 5-5\" /><path d=\"M17 3h5v5\" />',\n 'screen-share-off': '<path d=\"M13 3H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-3\" /><path d=\"M8 21h8\" /><path d=\"M12 17v4\" /><path d=\"m22 3-5 5\" /><path d=\"m17 3 5 5\" />',\n 'qr-code-scan': '<path d=\"M3 7V5a2 2 0 0 1 2-2h2\" /><path d=\"M17 3h2a2 2 0 0 1 2 2v2\" /><path d=\"M21 17v2a2 2 0 0 1-2 2h-2\" /><path d=\"M7 21H5a2 2 0 0 1-2-2v-2\" /><rect width=\"5\" height=\"5\" x=\"7\" y=\"7\" rx=\"1\" /><rect width=\"5\" height=\"5\" x=\"12\" y=\"12\" rx=\"1\" /><path d=\"M12 7h5v5\" />',\n 'nfc': '<path d=\"M6 8.32a7.43 7.43 0 0 1 0 7.36\" /><path d=\"M9.46 6.21a11.76 11.76 0 0 1 0 11.58\" /><path d=\"M12.91 4.1a15.91 15.91 0 0 1 .01 15.8\" /><path d=\"M16.37 2a20.16 20.16 0 0 1 0 20\" />',\n 'bug-off': '<path d=\"M15 7.13V6a3 3 0 0 0-5.14-2.1L8 2\" /><path d=\"M14.12 3.88 16 2\" /><path d=\"M22 13h-4v-2a4 4 0 0 0-4-4h-1.3\" /><path d=\"M20.97 5c0 2.1-1.6 3.8-3.5 4\" /><path d=\"m2 2 20 20\" /><path d=\"M7.7 7.7A4 4 0 0 0 6 11v3a6 6 0 0 0 11.13 3.13\" /><path d=\"M12 20v-8\" /><path d=\"M6 13H2\" /><path d=\"M3 21c0-2.1 1.7-3.9 3.8-4\" />',\n 'bug-play': '<path d=\"M16 2c.97 1.04 1 3.08 0 4l-2 .83V8\" /><path d=\"M8 2c-.97 1.04-1 3.08 0 4l2 .83V8\" /><path d=\"M2 13h4\" /><path d=\"M22 13h-4\" /><path d=\"M12 20v-4\" /><path d=\"M3.27 18.54C5.15 20.82 8.1 22 12 22c3.9 0 6.85-1.18 8.73-3.46\" /><path d=\"M6 12v-2a6 6 0 0 1 12 0v2\" /><path d=\"m10 15 2 2 2-2\" />',\n 'test-tubes': '<path d=\"M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2\" /><path d=\"M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5A2.5 2.5 0 0 1 15 19.5V2\" /><path d=\"M3 2h7\" /><path d=\"M14 2h7\" /><path d=\"M9 16H4\" /><path d=\"M20 16h-5\" />',\n 'construction': '<rect x=\"2\" y=\"6\" width=\"20\" height=\"8\" rx=\"1\" /><path d=\"M17 14v7\" /><path d=\"M7 14v7\" /><path d=\"M17 3v3\" /><path d=\"M7 3v3\" /><path d=\"M10 14 2.3 6.3\" /><path d=\"m14 6 7.7 7.7\" /><path d=\"m8 6 8 8\" />',\n 'hard-hat': '<path d=\"M2 18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v2z\" /><path d=\"M10 15V7a2 2 0 0 1 4 0v8\" /><path d=\"M5 15V9a7 7 0 0 1 14 0v6\" />',\n 'cone': '<path d=\"m20.9 18.55-8-15.98a1 1 0 0 0-1.8 0l-8 15.98\" /><ellipse cx=\"12\" cy=\"19\" rx=\"9\" ry=\"3\" />',\n 'shovel': '<path d=\"M2 22v-5l5-5 5 5-5 5z\" /><path d=\"M9.5 14.5 16 8\" /><path d=\"m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 0a3.53 3.53 0 0 1 0-5L17 2\" />',\n 'brick-wall': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M12 9v6\" /><path d=\"M16 15v6\" /><path d=\"M16 3v6\" /><path d=\"M3 15h18\" /><path d=\"M3 9h18\" /><path d=\"M8 15v6\" /><path d=\"M8 3v6\" />',\n 'blocks': '<rect width=\"7\" height=\"7\" x=\"14\" y=\"3\" rx=\"1\" /><path d=\"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3\" />',\n 'component': '<path d=\"M5.5 8.5 9 12l-3.5 3.5L2 12l3.5-3.5Z\" /><path d=\"m12 2 3.5 3.5L12 9 8.5 5.5 12 2Z\" /><path d=\"M18.5 8.5 22 12l-3.5 3.5L15 12l3.5-3.5Z\" /><path d=\"m12 15 3.5 3.5L12 22l-3.5-3.5L12 15Z\" />',\n 'shapes': '<path d=\"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z\" /><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\" /><circle cx=\"17.5\" cy=\"17.5\" r=\"3.5\" />',\n 'anvil': '<path d=\"M7 10H6a4 4 0 0 1-4-4 1 1 0 0 1 1-1h4\" /><path d=\"M7 5a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0\" /><path d=\"m7 10 5 8h-3l-2 4\" /><path d=\"m17 10-5 8h3l2 4\" />',\n 'axe': '<path d=\"m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9\" /><path d=\"M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 4Z\" />',\n 'citrus': '<path d=\"M21.66 17.67a1.08 1.08 0 0 1-.04 1.6A12 12 0 0 1 4.73 2.38a1.1 1.1 0 0 1 1.61-.04Z\" /><path d=\"M19.65 15.66A8 8 0 0 1 8.35 4.34\" /><path d=\"m14 10-5.5 5.5\" /><path d=\"M14 17.85V10H6.15\" />',\n 'cookie': '<path d=\"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5\" /><path d=\"M8.5 8.5v.01\" /><path d=\"M16 15.5v.01\" /><path d=\"M12 12v.01\" /><path d=\"M11 17v.01\" /><path d=\"M7 14v.01\" />',\n 'croissant': '<path d=\"m4.6 13.11 5.79-3.21c1.89-1.05 4.79 1.78 3.71 3.71l-3.22 5.81C8.8 23.16.79 15.23 4.6 13.11Z\" /><path d=\"m10.5 9.5-1-2.29C9.2 6.48 8.8 6 8 6H4.5C2.79 6 2 6.5 2 8.5a7.71 7.71 0 0 0 2 4.83\" /><path d=\"M8 6c0-1.55.24-4-2-4-2 0-2.5 2.17-2.5 4\" /><path d=\"m14.5 13.5 2.29 1c.73.3 1.21.7 1.21 1.5v3.5c0 1.71-.5 2.5-2.5 2.5a7.71 7.71 0 0 1-4.83-2\" /><path d=\"M18 16c1.55 0 4-.24 4 2 0 2-2.17 2.5-4 2.5\" />',\n 'cup-soda': '<path d=\"m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8\" /><path d=\"M5 8h14\" /><path d=\"M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0\" /><path d=\"m12 8 1-6h2\" />',\n 'dessert': '<circle cx=\"12\" cy=\"4\" r=\"2\" /><path d=\"M10.2 3.2C5.5 4 2 8.1 2 13a2 2 0 0 0 4 0v-1a2 2 0 0 1 4 0v4a2 2 0 0 0 4 0v-4a2 2 0 0 1 4 0v1a2 2 0 0 0 4 0c0-4.9-3.5-9-8.2-9.8\" /><path d=\"M3.2 14.8a9 9 0 0 0 17.6 0\" />',\n 'drum': '<path d=\"m2 2 8 8\" /><path d=\"m22 2-8 8\" /><ellipse cx=\"12\" cy=\"9\" rx=\"10\" ry=\"5\" /><path d=\"M7 13.4v7.9\" /><path d=\"M12 14v8\" /><path d=\"M17 13.4v7.9\" /><path d=\"M2 9v8a10 5 0 0 0 20 0V9\" />',\n 'drumstick': '<path d=\"M15.45 15.4c-2.13.65-4.3.32-5.7-1.1-2.29-2.27-1.76-6.5 1.17-9.42 2.93-2.93 7.15-3.46 9.43-1.18 1.41 1.41 1.74 3.57 1.1 5.71-1.4-.51-3.26-.02-4.64 1.36-1.38 1.38-1.87 3.23-1.36 4.63Z\" /><path d=\"m11.25 15.6-2.16 2.16a2.5 2.5 0 1 1-4.56 1.73 2.49 2.49 0 0 1-1.41-4.24 2.5 2.5 0 0 1 3.14-.32l2.16-2.16\" />',\n 'egg': '<path d=\"M12 22c6.23-.05 7.87-5.57 7.5-10-.36-4.34-3.95-9.96-7.5-10-3.55.04-7.14 5.66-7.5 10-.37 4.43 1.27 9.95 7.5 10z\" />',\n 'grape': '<path d=\"M22 5V2l-5.89 5.89\" /><circle cx=\"16.6\" cy=\"15.89\" r=\"3\" /><circle cx=\"8.11\" cy=\"7.4\" r=\"3\" /><circle cx=\"12.35\" cy=\"11.65\" r=\"3\" /><circle cx=\"13.91\" cy=\"5.85\" r=\"3\" /><circle cx=\"18.15\" cy=\"10.09\" r=\"3\" /><circle cx=\"6.56\" cy=\"13.2\" r=\"3\" /><circle cx=\"10.8\" cy=\"17.44\" r=\"3\" /><circle cx=\"5\" cy=\"19\" r=\"3\" />',\n 'ham': '<path d=\"M13.144 21.144A7.274 10.445 45 1 0 2.856 10.856\" /><path d=\"M13.144 21.144A7.274 4.365 45 0 0 2.856 10.856a7.274 4.365 45 0 0 10.288 10.288\" /><path d=\"M16.565 10.435 18.6 8.4a2.501 2.501 0 1 0 1.65-4.65 2.5 2.5 0 1 0-4.66 1.66l-2.024 2.025\" /><path d=\"m8.5 16.5-1-1\" />',\n 'hop': '<path d=\"M10.82 16.12c1.69.6 3.91.79 5.18.85.55.03 1-.42.97-.97-.06-1.27-.26-3.5-.85-5.18\" /><path d=\"M11.5 6.5c1.64 0 5-.38 6.71-1.07.52-.2.55-.82.12-1.17A10 10 0 0 0 4.26 18.33c.35.43.96.4 1.17-.12.69-1.71 1.07-5.07 1.07-6.71 1.34.45 3.1.9 4.88.62a.88.88 0 0 0 .73-.74c.3-2.14-.15-3.5-.61-4.88\" /><path d=\"M15.62 16.95c.2.85.62 2.76.5 4.28a.77.77 0 0 1-.9.7 16.64 16.64 0 0 1-4.08-1.36\" /><path d=\"M16.13 21.05c1.65.63 3.68.84 4.87.91a.9.9 0 0 0 .96-.96 17.68 17.68 0 0 0-.9-4.87\" /><path d=\"M16.94 15.62c.86.2 2.77.62 4.29.5a.77.77 0 0 0 .7-.9 16.64 16.64 0 0 0-1.36-4.08\" /><path d=\"M17.99 5.52a20.82 20.82 0 0 1 3.15 4.5.8.8 0 0 1-.68 1.13c-2.33.2-5.3-.32-8.27-1.57\" /><path d=\"M4.93 4.93 3 3a.7.7 0 0 1 0-1\" /><path d=\"M9.58 12.18c1.24 2.98 1.77 5.95 1.57 8.28a.8.8 0 0 1-1.13.68 20.82 20.82 0 0 1-4.5-3.15\" />',\n 'ice-cream-bowl': '<path d=\"M12 17c5 0 8-2.69 8-6H4c0 3.31 3 6 8 6Z\" /><path d=\"m4 11 .5 3\" /><path d=\"m20 11-.5 3\" /><path d=\"M2 20h20\" /><path d=\"M7 17v1a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-1\" /><path d=\"M12 4a4 4 0 0 0-4 4\" /><path d=\"M12 4a4 4 0 0 1 4 4\" /><path d=\"M12 4V2\" /><path d=\"M8 8h8\" />',\n 'ice-cream-cone': '<path d=\"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11\" /><path d=\"M17 7A5 5 0 0 0 7 7\" /><path d=\"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4\" />',\n 'lollipop': '<circle cx=\"11\" cy=\"9\" r=\"8\" /><path d=\"m21 15-3.086-3.086A2 2 0 0 0 16.5 11.5H11.5a.5.5 0 0 1-.5-.5v-5a2 2 0 0 0-.586-1.414L7 1\" /><path d=\"m21 21-6-6\" />',\n 'milk': '<path d=\"M8 2h8\" /><path d=\"M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2\" /><path d=\"M7 15h10\" />',\n 'nut': '<path d=\"M12 4V2\" /><path d=\"M5 10v4a7.004 7.004 0 0 0 5.277 6.787c.412.104.802.292 1.102.592L12 22l.621-.621c.3-.3.69-.488 1.102-.592A7.003 7.003 0 0 0 19 14v-4\" /><path d=\"M12 4C8 4 4.5 6 4 8c-.243.97-.919 1.952-2 3 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2 .595.995 1.151 1.427 2.5 2 1.31-.082 1.972-.29 3-1 .54.92.982 1.356 2 2 1.452-.647 1.954-1.098 2.5-2C21.921 9.952 21.243 8.97 21 8c-.5-2-4-4-8-4z\" />',\n 'popcorn': '<path d=\"M18 8a2 2 0 0 0 0-4 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0 0 4\" /><path d=\"M10 22 9 8\" /><path d=\"m14 22 1-14\" /><path d=\"M20 8c.5 0 1 .5 1 1v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9c0-.5.5-1 1-1\" /><path d=\"M6 14v2c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2\" /><path d=\"M6 18v2c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2\" />',\n 'salad': '<path d=\"M7 21h10\" /><path d=\"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z\" /><path d=\"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1\" /><path d=\"m13 12 4-4\" /><path d=\"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2\" />',\n 'sandwich': '<path d=\"M3 11v3a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-3\" /><path d=\"M12 19H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3.83\" /><path d=\"m3 11 7.77-6.04a2 2 0 0 1 2.46 0L21 11H3Z\" /><path d=\"M12.97 19.77 7 15h12.5l-3.75 4.5a2 2 0 0 1-2.78.27Z\" />',\n 'soup': '<path d=\"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z\" /><path d=\"M7 21h10\" /><path d=\"M19.5 12 22 6\" /><path d=\"M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62\" /><path d=\"M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62\" /><path d=\"M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62\" />',\n 'vegan': '<path d=\"M2 2a26.6 26.6 0 0 1 10 20c.9-6.82 1.5-9.5 4-14\" /><path d=\"M16 8c4 0 6-2 6-6-4 0-6 2-6 6\" />',\n 'wheat': '<path d=\"M2 22 16 8\" /><path d=\"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z\" /><path d=\"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z\" /><path d=\"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z\" /><path d=\"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z\" /><path d=\"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z\" /><path d=\"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z\" /><path d=\"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z\" />',\n 'martini': '<path d=\"M8 22h8\" /><path d=\"M12 11v11\" /><path d=\"m19 3-7 8-7-8Z\" />',\n 'wine-off': '<path d=\"M8 22h8\" /><path d=\"M7 10h3m7 0h-1.343\" /><path d=\"M12 15v7\" /><path d=\"M7.307 7.307A12.33 12.33 0 0 0 7 10a5 5 0 0 0 7.391 4.391M8.638 2.981C8.75 2.668 8.872 2.34 9 2h6c1.5 4 2 6 2 8 0 .407-.05.809-.145 1.198\" /><path d=\"m2 2 20 20\" />',\n 'bed-double': '<path d=\"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8\" /><path d=\"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4\" /><path d=\"M12 4v6\" /><path d=\"M2 18h20\" />',\n 'bed-single': '<path d=\"M3 20v-8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8\" /><path d=\"M5 10V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4\" /><path d=\"M3 18h18\" />',\n 'briefcase-business': '<path d=\"M12 12h.01\" /><path d=\"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2\" /><path d=\"M22 13a18.15 18.15 0 0 1-20 0\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"6\" rx=\"2\" />',\n 'briefcase-medical': '<path d=\"M12 11v4\" /><path d=\"M14 13h-4\" /><path d=\"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"6\" rx=\"2\" />',\n 'caravan': '<rect width=\"4\" height=\"4\" x=\"2\" y=\"9\" /><rect width=\"12\" height=\"10\" x=\"10\" y=\"9\" rx=\"2\" /><circle cx=\"18\" cy=\"19\" r=\"2\" /><path d=\"M18 13h4\" /><path d=\"M2 9V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v4H2Z\" />',\n 'castle': '<path d=\"M22 20v-9H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2Z\" /><path d=\"M18 11V4H6v7\" /><path d=\"M15 22v-4a3 3 0 0 0-6 0v4\" /><path d=\"M22 11V9\" /><path d=\"M2 11V9\" /><path d=\"M6 4V2\" /><path d=\"M18 4V2\" /><path d=\"M10 4V2\" /><path d=\"M14 4V2\" />',\n 'circus': '<path d=\"M2 20h20\" /><path d=\"M3.85 17.1a10 10 0 1 1 16.3 0\" /><path d=\"M12 2v8\" /><path d=\"m4.93 10.93 2.83 2.83\" /><path d=\"m16.24 13.76 2.83-2.83\" />',\n 'fence': '<path d=\"M4 3v18\" /><path d=\"M12 3v18\" /><path d=\"M20 3v18\" /><path d=\"M8 3v3l-4 3v4l4 3v5\" /><path d=\"M16 3v3l4 3v4l-4 3v5\" /><path d=\"M8 14h8\" /><path d=\"M8 7h8\" />',\n 'ferris-wheel': '<circle cx=\"12\" cy=\"12\" r=\"2\" /><path d=\"M12 2v4\" /><path d=\"m6.8 15-3.5 2\" /><path d=\"m20.7 17-3.5-2\" /><path d=\"M6.8 9 3.3 7\" /><path d=\"m20.7 7-3.5 2\" /><path d=\"m9 22 3-8 3 8\" /><path d=\"M8 22h8\" /><path d=\"M18 18.7a9 9 0 1 0-12 0\" />',\n 'lamp-wall-down': '<path d=\"M11 13h6l3 7H8l3-7Z\" /><path d=\"M14 13V8a2 2 0 0 0-2-2H8\" /><path d=\"M4 9h2a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4v6Z\" />',\n 'lamp-wall-up': '<path d=\"M11 4h6l3 7H8l3-7Z\" /><path d=\"M14 11v5a2 2 0 0 1-2 2H8\" /><path d=\"M4 15h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H4v-6Z\" />',\n 'ligature': '<path d=\"M8 20V8c0-2.2 1.8-4 4-4 1.5 0 2.8.8 3.5 2\" /><path d=\"M6 12h4\" /><path d=\"M14 12h2v8\" /><path d=\"M6 20h4\" /><path d=\"M14 20h4\" />',\n 'mailbox': '<path d=\"M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.5 0 4 2 4 4.5V17Z\" /><polyline points=\"15,9 18,9 18,11\" /><path d=\"M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2\" /><line x1=\"6\" x2=\"7\" y1=\"10\" y2=\"10\" />',\n 'palm-tree': '<path d=\"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4\" /><path d=\"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3\" /><path d=\"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35\" /><path d=\"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14\" />',\n 'parking-meter': '<path d=\"M9 9a3 3 0 1 1 6 0\" /><path d=\"M12 12H5.83a2 2 0 0 1-1.992-1.752l-.022-.17A2 2 0 0 1 5.807 8H12\" /><path d=\"M12 8V4.5a2.5 2.5 0 0 1 5 0V8\" /><path d=\"M12 12v9\" /><path d=\"M8 21h8\" />',\n 'party-popper': '<path d=\"M5.8 11.3 2 22l10.7-3.79\" /><path d=\"M4 3h.01\" /><path d=\"M22 8h.01\" /><path d=\"M15 2h.01\" /><path d=\"M22 20h.01\" /><path d=\"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10\" /><path d=\"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.63-.69 1.1-1.32 1.12h-.29c-.78 0-1.42.63-1.42 1.42 0 .47-.23.9-.62 1.16L15 17\" /><path d=\"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98-.63.11-1.1.69-1.12 1.32v.29c0 .78-.63 1.42-1.42 1.42-.47 0-.9.23-1.16.62L6 9\" />',\n 'pilcrow-left': '<path d=\"M14 3v11\" /><path d=\"M14 9H9.5a4.5 4.5 0 0 1 0-9H14\" /><path d=\"M5 12V3\" /><path d=\"M5 18l4-4-4-4\" />',\n 'pilcrow-right': '<path d=\"M10 3v11\" /><path d=\"M10 9h4.5a4.5 4.5 0 1 0 0-9H10\" /><path d=\"M19 12V3\" /><path d=\"M19 18l-4-4 4-4\" />',\n 'ribbon': '<path d=\"M12 11.22C11 9.997 10 9 10 6c0-4 4-4 4 0 0 3-1 3.997-2 5.22Z\" /><path d=\"m12 18-8 4V13.5c0-.56.45-1.01 1-1.04a3.49 3.49 0 0 0 3-2.13\" /><path d=\"m12 18 8 4V13.5c0-.56-.45-1.01-1-1.04a3.49 3.49 0 0 1-3-2.13\" />',\n 'ruler': '<path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\" /><path d=\"m15 5 4 4\" /><path d=\"M13.5 6.5 12 8\" /><path d=\"m8 11.5-1.5 1.5\" /><path d=\"M10.5 9 9 10.5\" /><path d=\"M5.5 14 4 15.5\" />',\n 'scale': '<path d=\"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z\" /><path d=\"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z\" /><path d=\"M7 21h10\" /><path d=\"M12 3v18\" /><path d=\"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2\" />',\n 'scissors-line-dashed': '<path d=\"M5.42 9.42 8 12\" /><circle cx=\"4\" cy=\"8\" r=\"2\" /><path d=\"m14 6-8.58 8.58\" /><circle cx=\"4\" cy=\"16\" r=\"2\" /><path d=\"M10.8 14.8 14 18\" /><path d=\"M16 12h-2\" /><path d=\"M22 12h-2\" />',\n 'shirt': '<path d=\"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23Z\" />',\n 'skull': '<circle cx=\"9\" cy=\"12\" r=\"1\" /><circle cx=\"15\" cy=\"12\" r=\"1\" /><path d=\"M8 20v2h8v-2\" /><path d=\"m12.5 17-.5-1-.5 1h1z\" /><path d=\"M16 20a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20\" />',\n 'sparkle': '<path d=\"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z\" />',\n 'spray-can': '<path d=\"M3 3h.01\" /><path d=\"M7 5h.01\" /><path d=\"M11 7h.01\" /><path d=\"M3 7h.01\" /><path d=\"M7 9h.01\" /><path d=\"M3 11h.01\" /><rect width=\"4\" height=\"4\" x=\"15\" y=\"5\" /><path d=\"m19 9 2 2v10c0 .6-.4 1-1 1h-6c-.6 0-1-.4-1-1V11l2-2\" /><path d=\"M16 13.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1.5Z\" />',\n 'tent-tree': '<circle cx=\"4\" cy=\"4\" r=\"2\" /><path d=\"m14 5 3-3 3 3\" /><path d=\"m14 10 3-3 3 3\" /><path d=\"M17 14V2\" /><path d=\"M17 14H7l-5 8h20Z\" /><path d=\"M8 14v8\" /><path d=\"m9 14 5 8\" />',\n 'thermometer-snowflake': '<path d=\"M2 12h10\" /><path d=\"M9 4v16\" /><path d=\"m3 9 3 3-3 3\" /><path d=\"M12 6 9 9 6 6\" /><path d=\"m6 18 3-3 1.5 1.5\" /><path d=\"M20 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z\" />',\n 'torch': '<path d=\"M3 22h1a2.67 2.67 0 0 0 2.67-2.67c0-1.09-.67-2.06-1.67-2.48\" /><path d=\"m5 16.9.94-3.77a3 3 0 0 1 .1-.4l4.67-10.34a1 1 0 0 1 1.78 0L17 12.73a3 3 0 0 1 .1.4l.94 3.77\" /><path d=\"M5 17h14\" /><path d=\"M9.62 4h4.76\" />',\n 'weight': '<circle cx=\"12\" cy=\"5\" r=\"3\" /><path d=\"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.23A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.46A2 2 0 0 0 17.48 8Z\" />',\n 'wrench-2': '<path d=\"M12 2a10 10 0 0 1 10 10 4 4 0 0 1-4 4H6a4 4 0 0 1-4-4 10 10 0 0 1 10-10Z\" /><path d=\"M12 12V2\" /><path d=\"M6 16a4 4 0 0 0 4 4h4a4 4 0 0 0 4-4\" />',\n 'album': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><polyline points=\"11,3 11,11 14,8 17,11 17,3\" />',\n 'amphora': '<path d=\"M10 2v5.632c0 .424-.272.795-.653.982A6 6 0 0 0 6 14c.006 4 3 7 5 8\" /><path d=\"M14 2v5.632c0 .424.272.795.652.982A6 6 0 0 1 18 14c0 4-3 7-5 8\" /><path d=\"M8 2h8\" /><path d=\"M7 15h10\" />',\n 'antenna': '<path d=\"M2 12 7 2\" /><path d=\"m7 12 5-10\" /><path d=\"m12 12 5-10\" /><path d=\"m17 12 5-10\" /><path d=\"M4.5 7h15\" /><path d=\"M12 16v6\" />',\n 'audio-lines': '<path d=\"M2 10v3\" /><path d=\"M6 6v11\" /><path d=\"M10 3v18\" /><path d=\"M14 8v7\" /><path d=\"M18 5v13\" /><path d=\"M22 10v3\" />',\n 'audio-waveform': '<path d=\"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2\" />',\n 'badge': '<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" />',\n 'banana': '<path d=\"M4 13c3.5-2 8-2 10 1a5.5 5.5 0 0 1 8 5\" /><path d=\"M5.15 17.89c5.52-1.52 8.65-6.89 7-12C11.55 4 11.5 2 13 2c3.22 0 5 5.5 5 8 0 5-4.22 12-13.36 12-1.11 0-1.64-.5-1.49-1.61Z\" />',\n 'binoculars': '<path d=\"M10 10h4\" /><path d=\"M8.5 8.5 10 10\" /><path d=\"M15.5 8.5 14 10\" /><path d=\"m9.5 12.5-2 4.5H4a2 2 0 0 1-2-2v-3.34a2 2 0 0 1 .33-1.1L6 5\" /><path d=\"m14.5 12.5 2 4.5H20a2 2 0 0 0 2-2v-3.34a2 2 0 0 0-.33-1.1L18 5\" /><circle cx=\"7\" cy=\"17\" r=\"3\" /><circle cx=\"17\" cy=\"17\" r=\"3\" />',\n 'blend': '<circle cx=\"9\" cy=\"9\" r=\"7\" /><circle cx=\"15\" cy=\"15\" r=\"7\" />',\n 'blinds': '<path d=\"M3 3h18\" /><path d=\"M20 7H8\" /><path d=\"M20 11H8\" /><path d=\"M10 19h10\" /><path d=\"M8 15h12\" /><path d=\"M4 3v14\" /><circle cx=\"4\" cy=\"19\" r=\"2\" />',\n 'blocks-2': '<rect width=\"7\" height=\"7\" x=\"14\" y=\"3\" rx=\"1\" /><path d=\"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3\" /><rect width=\"7\" height=\"7\" x=\"14\" y=\"14\" rx=\"1\" />',\n 'bluetooth-connected': '<path d=\"m7 7 10 10-5 5V2l5 5L7 17\" /><line x1=\"18\" x2=\"21\" y1=\"12\" y2=\"12\" /><line x1=\"3\" x2=\"6\" y1=\"12\" y2=\"12\" />',\n 'bluetooth-off': '<path d=\"m17 17-5 5V12l-5 5\" /><path d=\"m2 2 20 20\" /><path d=\"M14.5 9.5 17 7l-5-5v4.5\" />',\n 'bluetooth-searching': '<path d=\"m7 7 10 10-5 5V2l5 5L7 17\" /><path d=\"M20.83 14.83a4 4 0 0 0 0-5.66\" /><path d=\"M18 12h.01\" />',\n 'book-audio': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M8 8v3\" /><path d=\"M12 6v7\" /><path d=\"M16 8v3\" />',\n 'book-check': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"m9 9.5 2 2 4-4\" />',\n 'book-copy': '<path d=\"M2 16V4a2 2 0 0 1 2-2h11\" /><path d=\"M21 11V6.5C21 4.01 19 2 16.5 2\" /><path d=\"M5 14H4a2 2 0 1 0 0 4h1\" /><path d=\"M22 18H12a2 2 0 1 0 0 4h10\" /><path d=\"M8 22V18a2 2 0 0 1 2-2h12V8a2 2 0 0 0-2-2H10a2 2 0 0 0-2 2Z\" />',\n 'book-dashed': '<path d=\"M20 22h-2\" /><path d=\"M20 15v2h-2\" /><path d=\"M4 19.5V15\" /><path d=\"M20 8v3\" /><path d=\"M18 2h2v2\" /><path d=\"M4 11V9\" /><path d=\"M12 2h2\" /><path d=\"M12 22h2\" /><path d=\"M12 17h2\" /><path d=\"M8 22H6.5a1 1 0 0 1 0-5H8\" /><path d=\"M4 5v-.5A2.5 2.5 0 0 1 6.5 2H8\" />',\n 'book-headphones': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><circle cx=\"9\" cy=\"12\" r=\"1\" /><path d=\"M8 12v-2a4 4 0 0 1 8 0v2\" /><circle cx=\"15\" cy=\"12\" r=\"1\" />',\n 'book-heart': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M16 8.2C16 7 15 6 13.8 6c-.8 0-1.4.3-1.8.9-.4-.6-1-.9-1.8-.9C9 6 8 7 8 8.2c0 2.4 3.97 4.8 4 4.8s4-2.4 4-4.8Z\" />',\n 'book-key': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H14\" /><path d=\"M20 20H6.5a2.5 2.5 0 0 1 0-5H20\" /><circle cx=\"14\" cy=\"8\" r=\"2\" /><path d=\"m20 2-4.5 4.5\" /><path d=\"m19 3 1 1\" />',\n 'book-lock': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H10\" /><path d=\"M20 15v7H6.5a2.5 2.5 0 0 1 0-5H20\" /><rect width=\"8\" height=\"5\" x=\"12\" y=\"6\" rx=\"1\" /><path d=\"M18 6V4a2 2 0 1 0-4 0v2\" />',\n 'book-minus': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M9 10h6\" />',\n 'book-open-check': '<path d=\"M8 3H2v15h7c1.7 0 3 1.3 3 3V7c0-2.2-1.8-4-4-4Z\" /><path d=\"m16 12 2 2 4-4\" /><path d=\"M22 6V3h-6c-2.2 0-4 1.8-4 4v14c0-1.7 1.3-3 3-3h7v-2.3\" />',\n 'book-open-text': '<path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\" /><path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\" /><path d=\"M6 8h2\" /><path d=\"M6 12h2\" /><path d=\"M16 8h2\" /><path d=\"M16 12h2\" />',\n 'book-plus': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M9 10h6\" /><path d=\"M12 7v6\" />',\n 'book-text': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M8 7h6\" /><path d=\"M8 11h8\" />',\n 'book-type': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M16 8V6H8v2\" /><path d=\"M12 6v7\" /><path d=\"M10 13h4\" />',\n 'book-up': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"M12 13V7\" /><path d=\"m9 10 3-3 3 3\" />',\n 'book-user': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><circle cx=\"12\" cy=\"8\" r=\"2\" /><path d=\"M15 13a3 3 0 1 0-6 0\" />',\n 'book-x': '<path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" /><path d=\"m14.5 7-5 5\" /><path d=\"m9.5 7 5 5\" />',\n 'boom-box': '<path d=\"M4 9V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4\" /><path d=\"M8 8v1\" /><path d=\"M12 8v1\" /><path d=\"M16 8v1\" /><rect width=\"20\" height=\"12\" x=\"2\" y=\"9\" rx=\"2\" /><circle cx=\"8\" cy=\"15\" r=\"2\" /><circle cx=\"16\" cy=\"15\" r=\"2\" />',\n 'bot-message-square': '<path d=\"M12 6V2H8\" /><path d=\"m8 18-4 4V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2Z\" /><path d=\"M2 12h2\" /><path d=\"M9 11v2\" /><path d=\"M15 11v2\" /><path d=\"M20 12h2\" />',\n 'brain-circuit': '<path d=\"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z\" /><path d=\"M9 13a4.5 4.5 0 0 0 3-4\" /><path d=\"M6.003 5.125A3 3 0 0 0 6.401 6.5\" /><path d=\"M3.477 10.896a4 4 0 0 1 .585-.396\" /><path d=\"M6 18a4 4 0 0 1-1.967-.516\" /><path d=\"M12 13h4\" /><path d=\"M12 18h6a2 2 0 0 1 2 2v1\" /><path d=\"M12 8h8\" /><path d=\"M16 8V5a2 2 0 0 1 2-2\" /><circle cx=\"16\" cy=\"13\" r=\".5\" /><circle cx=\"18\" cy=\"3\" r=\".5\" /><circle cx=\"20\" cy=\"21\" r=\".5\" /><circle cx=\"20\" cy=\"8\" r=\".5\" />',\n 'brain-cog': '<circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z\" /><path d=\"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z\" /><path d=\"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4\" /><path d=\"M17.599 6.5a3 3 0 0 0 .399-1.375\" /><path d=\"M6.003 5.125A3 3 0 0 0 6.401 6.5\" /><path d=\"M3.477 10.896a4 4 0 0 1 .585-.396\" /><path d=\"M19.938 10.5a4 4 0 0 1 .585.396\" /><path d=\"M6 18a4 4 0 0 1-1.967-.516\" /><path d=\"M19.967 17.484A4 4 0 0 1 18 18\" />',\n 'broom': '<path d=\"m13 11 9-9\" /><path d=\"m15 13-2.5 6.5a1.21 1.21 0 0 1-1.72.55L4.73 16a1.21 1.21 0 0 1-.55-1.72L10.73 8\" /><path d=\"m14 14-7 3\" />',\n 'calendar-cog': '<path d=\"m15.2 16.9-.9-.4\" /><path d=\"m15.2 19.1-.9.4\" /><path d=\"m16.9 15.2-.4-.9\" /><path d=\"m16.9 20.8-.4.9\" /><path d=\"m19.5 14.3-.4.9\" /><path d=\"m19.5 21.7-.4-.9\" /><path d=\"m21.7 16.5-.9.4\" /><path d=\"m21.7 19.5-.9-.4\" /><path d=\"M16 2v4\" /><path d=\"M3 10h4\" /><path d=\"M8 2v4\" /><path d=\"M21 13.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3\" /><circle cx=\"18\" cy=\"18\" r=\"3\" />',\n 'calendar-fold': '<path d=\"M8 2v4\" /><path d=\"M16 2v4\" /><path d=\"M21 17V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11Z\" /><path d=\"M3 10h18\" /><path d=\"M15 22v-4a2 2 0 0 1 2-2h4\" />',\n 'calendar-off': '<path d=\"M4.18 4.18A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18\" /><path d=\"M21 15.5V6a2 2 0 0 0-2-2H9.5\" /><path d=\"M16 2v4\" /><path d=\"M3 10h7\" /><path d=\"M21 10h-5.5\" /><path d=\"m2 2 20 20\" />',\n 'cigarette': '<path d=\"M18 12H2v4h16\" /><path d=\"M22 12v4\" /><path d=\"M7 12v4\" /><path d=\"M18 8c0-2.5-2-2.5-2-5\" /><path d=\"M22 8c0-2.5-2-2.5-2-5\" />',\n 'cigarette-off': '<path d=\"M18 12H2v4h16\" /><path d=\"M22 12v4\" /><path d=\"M7 12v4\" /><path d=\"M18 8c0-2.5-2-2.5-2-5\" /><path d=\"M22 8c0-2.5-2-2.5-2-5\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'clipboard-pen': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" /><path d=\"M10.4 12.6a2 2 0 0 1 3 3L8 21l-4 1 1-4Z\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5\" /><path d=\"M4 13.5V6a2 2 0 0 1 2-2h2\" />',\n 'clipboard-pen-line': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" /><path d=\"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-.5\" /><path d=\"M16 4h2a2 2 0 0 1 1.73 1\" /><path d=\"M18.42 9.61a2.1 2.1 0 1 1 2.97 2.97L16.95 17 13 18l.99-3.95 4.43-4.44Z\" /><path d=\"M8 18h1\" />',\n 'clipboard-plus': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" /><path d=\"M9 14h6\" /><path d=\"M12 17v-6\" />',\n 'clipboard-type': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" /><path d=\"M9 12v-1h6v1\" /><path d=\"M11 17h2\" /><path d=\"M12 11v6\" />',\n 'clipboard-x': '<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\" /><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" /><path d=\"m15 11-6 6\" /><path d=\"m9 11 6 6\" />',\n 'cloud-cog': '<circle cx=\"12\" cy=\"17\" r=\"3\" /><path d=\"M4.2 15.1A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2\" /><path d=\"m15.7 18.4-.9-.3\" /><path d=\"m9.2 15.9-.9-.3\" /><path d=\"m10.6 20.7.3-.9\" /><path d=\"m13.1 14.2.3-.9\" /><path d=\"m13.6 20.7-.4-1\" /><path d=\"m10.8 14.3-.4-1\" /><path d=\"m8.3 18.6 1-.4\" /><path d=\"m14.7 15.8 1-.4\" />',\n 'cloud-download': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M12 12v9\" /><path d=\"m8 17 4 4 4-4\" />',\n 'cloud-moon': '<path d=\"M13 16a3 3 0 1 1 0 6H7a5 5 0 1 1 4.9-6Z\" /><path d=\"M10.1 9A6 6 0 0 1 14 4.1\" /><path d=\"M17.7 3.3a4 4 0 0 0-4-1.5\" /><path d=\"M17.7 3.3A4 4 0 0 1 21 7c0 1.1-.4 2.1-1.1 2.9\" />',\n 'cloud-moon-rain': '<path d=\"M10.083 9A6.002 6.002 0 0 1 14 4.056\" /><path d=\"M17.7 3.338a4 4 0 0 0-4-1.497\" /><path d=\"M17.7 3.338A4 4 0 0 1 21 7c0 1.097-.44 2.09-1.154 2.814\" /><path d=\"M13 16a3 3 0 1 1 0 6H7a5 5 0 1 1 4.9-6Z\" /><path d=\"M15 14v4\" /><path d=\"M17 18v2\" />',\n 'cloud-rain-wind': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"m9.2 22 3-7\" /><path d=\"m9 13-3 7\" /><path d=\"m17 13-3 7\" />',\n 'cloud-sun-rain': '<path d=\"M12 2v2\" /><path d=\"m4.93 4.93 1.41 1.41\" /><path d=\"M20 12h2\" /><path d=\"m19.07 4.93-1.41 1.41\" /><path d=\"M15.947 12.65a4 4 0 0 0-5.925-4.128\" /><path d=\"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z\" /><path d=\"M8 19v2\" /><path d=\"M12 19v2\" />',\n 'cloud-upload': '<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242\" /><path d=\"M12 12v9\" /><path d=\"m16 16-4-4-4 4\" />',\n 'combine': '<rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\" /><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\" /><path d=\"m7 15 3 3\" /><path d=\"m7 21 3-3H5a2 2 0 0 1-2-2v-2\" />',\n 'concierge-bell': '<path d=\"M3 20a1 1 0 0 1-1-1v-1a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1Z\" /><path d=\"M20 16a8 8 0 1 0-16 0\" /><path d=\"M12 4v4\" /><path d=\"M10 4h4\" />',\n 'copyleft': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M9.17 14.83a4 4 0 1 0 0-5.66\" />',\n 'copyright': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M14.83 14.83a4 4 0 1 1 0-5.66\" />',\n 'corner-left-down': '<polyline points=\"14 15 9 20 4 15\" /><path d=\"M20 4h-7a4 4 0 0 0-4 4v12\" />',\n 'corner-left-up': '<polyline points=\"14 9 9 4 4 9\" /><path d=\"M20 20h-7a4 4 0 0 1-4-4V4\" />',\n 'corner-right-down': '<polyline points=\"10 15 15 20 20 15\" /><path d=\"M4 4h7a4 4 0 0 1 4 4v12\" />',\n 'corner-right-up': '<polyline points=\"10 9 15 4 20 9\" /><path d=\"M4 20h7a4 4 0 0 0 4-4V4\" />',\n 'creative-commons': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M10 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1\" /><path d=\"M17 9.3a2.8 2.8 0 0 0-3.5 1 3.1 3.1 0 0 0 0 3.4 2.7 2.7 0 0 0 3.5 1\" />',\n 'cuboid': '<path d=\"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a.5.5 0 0 0-.07.84L12 16l9.05-6.17a.5.5 0 0 0 .15-.69l-.08-.13Z\" /><path d=\"M3.96 8.64a.5.5 0 0 0-.88.43L12 22l8.9-12.93a.5.5 0 0 0-.87-.43L12 16\" />',\n 'cylinder': '<ellipse cx=\"12\" cy=\"5\" rx=\"9\" ry=\"3\" /><path d=\"M3 5v14a9 3 0 0 0 18 0V5\" />',\n 'dam': '<path d=\"M11 11.31c1.17.56 1.54 1.69 3.5 1.69 2.5 0 2.5-2 5-2 .88 0 1.57.25 2 .56\" /><path d=\"M11.5 7c.31.06 1.22.56 1.22.56a2.21 2.21 0 0 0 2.78-.07c.41-.34.83-.52 1.3-.56\" /><path d=\"M3 19.78c.55-.47 1.47-.8 2.5-.8 2.5 0 2.5 2 5 2 2.29 0 2.47-1.66 4.5-1.95\" /><path d=\"M7 3v18\" /><path d=\"M11 3v18\" /><path d=\"M22 3v18\" /><path d=\"M11 15.5c1.09.53 2 1.5 3.5 1.5 2.5 0 2.5-2 5-2 .88 0 1.57.25 2 .56\" />',\n 'disc': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><circle cx=\"12\" cy=\"12\" r=\"2\" />',\n 'disc-2': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 12h.01\" />',\n 'disc-3': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M6 12c0-1.7.7-3.2 1.8-4.2\" /><circle cx=\"12\" cy=\"12\" r=\"2\" /><path d=\"M18 12c0 1.7-.7 3.2-1.8 4.2\" />',\n 'disc-album': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><circle cx=\"12\" cy=\"12\" r=\"5\" /><path d=\"M12 12h.01\" />',\n 'donut': '<path d=\"M20.5 10.22A9 9 0 0 0 13 3a9 9 0 0 0 0 18c2.8 0 5.3-1.28 6.95-3.28\" /><path d=\"M12 12a3 3 0 1 1 3-3\" /><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 21a9 9 0 0 0 9-9\" />',\n 'drafting-compass': '<circle cx=\"12\" cy=\"5\" r=\"2\" /><path d=\"m3 21 8.02-14.26\" /><path d=\"m12.99 6.74 1.93 3.44\" /><path d=\"M19 12c-3.87 4-10.13 4-14 0\" /><path d=\"m21 21-2.16-3.84\" />',\n 'drama': '<path d=\"M10 11h.01\" /><path d=\"M14 6h.01\" /><path d=\"M18 6h.01\" /><path d=\"M6.5 13.1h.01\" /><path d=\"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3\" /><path d=\"M17.4 12.9c-.76 6.51-1.83 7.31-2.4 7.6\" /><path d=\"M2 19c0-9 4-12 6-12s6 3 6 12c0 2-2 3-6 3s-6-1-6-3\" />',\n 'drill': '<path d=\"M14 9c0 .6-.4 1-1 1H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9c.6 0 1 .4 1 1Z\" /><path d=\"M18 6h4\" /><path d=\"M14 4h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-3\" /><path d=\"m5 10-2 8\" /><path d=\"M12 10v3c0 .6-.4 1-1 1H8\" /><path d=\"m7 18 2-8\" /><path d=\"M5 22c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3Z\" />',\n 'droplets': '<path d=\"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z\" /><path d=\"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97\" />',\n 'earth-lock': '<path d=\"M7 3.34V5a3 3 0 0 0 3 3\" /><path d=\"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05\" /><circle cx=\"12\" cy=\"12\" r=\"10\" /><rect width=\"8\" height=\"5\" x=\"14\" y=\"17\" rx=\"1\" /><path d=\"M20 17v-2a2 2 0 1 0-4 0v2\" />',\n 'eclipse': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 2a7 7 0 1 0 10 10\" />',\n 'equal': '<line x1=\"5\" x2=\"19\" y1=\"9\" y2=\"9\" /><line x1=\"5\" x2=\"19\" y1=\"15\" y2=\"15\" />',\n 'equal-not': '<line x1=\"5\" x2=\"19\" y1=\"9\" y2=\"9\" /><line x1=\"5\" x2=\"19\" y1=\"15\" y2=\"15\" /><line x1=\"19\" x2=\"5\" y1=\"5\" y2=\"19\" />',\n 'ethernet': '<rect width=\"13\" height=\"7\" x=\"2\" y=\"2\" rx=\"2\" /><path d=\"M8.5 9v4a1.5 1.5 0 0 0 3 0V9\" /><path d=\"M2 12h6.5\" /><path d=\"M15.5 12H22\" /><rect width=\"13\" height=\"7\" x=\"9\" y=\"15\" rx=\"2\" />',\n 'euro': '<path d=\"M4 10h12\" /><path d=\"M4 14h9\" /><path d=\"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2\" />',\n 'expand': '<path d=\"m21 21-6-6m6 6v-4.8m0 4.8h-4.8\" /><path d=\"M3 16.2V21m0 0h4.8M3 21l6-6\" /><path d=\"M21 7.8V3m0 0h-4.8M21 3l-6 6\" /><path d=\"M3 7.8V3m0 0h4.8M3 3l6 6\" />',\n 'fan': '<path d=\"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z\" /><path d=\"M12 12v.01\" />',\n 'file-badge': '<path d=\"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M5 17a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z\" /><path d=\"M7 16.5 8 22l-3-1-3 1 1-5.5\" />',\n 'file-clock': '<path d=\"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><circle cx=\"8\" cy=\"16\" r=\"6\" /><path d=\"M9.5 17.5 8 16.25V14\" />',\n 'file-cog': '<path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"m3.2 12.9-.9-.4\" /><path d=\"m3.2 15.1-.9.4\" /><path d=\"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5\" /><circle cx=\"6\" cy=\"14\" r=\"3\" /><path d=\"m4.7 10.4-.9-.3\" /><path d=\"m4.7 17.6-.9.3\" /><path d=\"m7.3 10.4.9-.3\" /><path d=\"m7.3 17.6.9.3\" /><path d=\"m8.8 12.9.9-.4\" /><path d=\"m8.8 15.1.9.4\" />',\n 'file-diff': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M9 10h6\" /><path d=\"M12 7v6\" /><path d=\"M9 17h6\" />',\n 'file-key': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><circle cx=\"10\" cy=\"16\" r=\"2\" /><path d=\"m16 10-4.5 4.5\" /><path d=\"m15 11 1 1\" />',\n 'file-music': '<circle cx=\"14\" cy=\"16\" r=\"2\" /><circle cx=\"6\" cy=\"18\" r=\"2\" /><path d=\"M4 12.4V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2h-7.5\" /><path d=\"M14 2v6h6\" /><path d=\"M8 18v-7.7L16 9v7\" />',\n 'file-pen-line': '<path d=\"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2\" /><path d=\"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z\" /><path d=\"M8 18h1\" />',\n 'file-pie-chart': '<path d=\"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M4.04 11.71a5.84 5.84 0 1 0 8.2 8.29\" /><path d=\"M13.83 16A5.83 5.83 0 0 0 8 10.17V16h5.83Z\" />',\n 'file-question': '<path d=\"M12 17h.01\" /><path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z\" /><path d=\"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3\" />',\n 'file-scan': '<path d=\"M20 10V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M16 14a2 2 0 0 0-2 2\" /><path d=\"M20 14a2 2 0 0 1 2 2\" /><path d=\"M20 22a2 2 0 0 0 2-2\" /><path d=\"M16 22a2 2 0 0 1-2-2\" />',\n 'file-sliders': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M8 12h8\" /><path d=\"M10 11v2\" /><path d=\"M8 17h8\" /><path d=\"M14 16v2\" />',\n 'file-stack': '<path d=\"M21 7h-3a2 2 0 0 1-2-2V2\" /><path d=\"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z\" /><path d=\"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15\" /><path d=\"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11\" />',\n 'file-volume': '<path d=\"M11 11a5 5 0 0 1 0 6\" /><path d=\"M15.54 8.46a10 10 0 0 1 0 11.08\" /><path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7l-5-5Z\" />',\n 'film': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M7 3v18\" /><path d=\"M3 7.5h4\" /><path d=\"M3 12h18\" /><path d=\"M3 16.5h4\" /><path d=\"M17 3v18\" /><path d=\"M17 7.5h4\" /><path d=\"M17 16.5h4\" />',\n 'fire-extinguisher': '<path d=\"M15 6.5V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v3.5\" /><path d=\"M9 18h8\" /><path d=\"M18 3h-3\" /><path d=\"M11 3.5V7\" /><path d=\"M15 3.5V7\" /><path d=\"m9 14 1.2-4.8a2 2 0 0 1 2-1.6h1.6a2 2 0 0 1 2 1.6L17 14\" /><rect width=\"12\" height=\"4\" x=\"7\" y=\"14\" rx=\"1\" /><path d=\"M8 18v4a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-4\" />',\n 'flame-kindling': '<path d=\"M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 5.1 8.2 2.5 12 2\" /><path d=\"M5 22v-2a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v2\" />',\n 'flashlight': '<path d=\"M18 6c0 2-2 2-2 4v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4V2h12z\" /><line x1=\"6\" x2=\"18\" y1=\"6\" y2=\"6\" /><line x1=\"12\" x2=\"12\" y1=\"12\" y2=\"12\" />',\n 'flashlight-off': '<path d=\"M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V10c0-2-2-2-2-4\" /><path d=\"M7 2h11v4c0 .5-.5 1-1 1.5s-1.5 1-1.5 1.5\" /><line x1=\"1\" x2=\"22\" y1=\"1\" y2=\"22\" />',\n 'flask-conical-off': '<path d=\"M10 10 4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-1.272-2.542\" /><path d=\"M10 2v2.343\" /><path d=\"M14 2v6.343\" /><path d=\"M8.5 2h7\" /><path d=\"M7 16h9\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'flask-round': '<path d=\"M10 2v7.31\" /><path d=\"M14 9.3V2\" /><path d=\"M8.5 2h7\" /><path d=\"M14 9.3a6.5 6.5 0 1 1-4 0\" /><path d=\"M5.52 16h12.96\" />',\n 'fold-horizontal': '<path d=\"M2 12h6\" /><path d=\"M22 12h-6\" /><path d=\"M12 2v2\" /><path d=\"M12 8v2\" /><path d=\"M12 14v2\" /><path d=\"M12 20v2\" /><path d=\"m19 9-3 3 3 3\" /><path d=\"m5 15 3-3-3-3\" />',\n 'fold-vertical': '<path d=\"M12 22v-6\" /><path d=\"M12 8V2\" /><path d=\"M4 12H2\" /><path d=\"M10 12H8\" /><path d=\"M16 12h-2\" /><path d=\"M22 12h-2\" /><path d=\"m15 19-3-3-3 3\" /><path d=\"m15 5-3 3-3-3\" />',\n 'folder-archive': '<circle cx=\"15\" cy=\"19\" r=\"2\" /><path d=\"M20.9 19.8A2 2 0 0 0 22 18V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h5.1\" /><path d=\"M15 11v-1\" /><path d=\"M15 17v-2\" />',\n 'folder-clock': '<circle cx=\"16\" cy=\"16\" r=\"6\" /><path d=\"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2\" /><path d=\"M16 14v2l1 1\" />',\n 'folder-closed': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"M2 10h20\" />',\n 'folder-cog': '<circle cx=\"18\" cy=\"18\" r=\"3\" /><path d=\"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.3\" /><path d=\"m21.7 19.4-.9-.3\" /><path d=\"m15.2 16.9-.9-.3\" /><path d=\"m16.6 21.7.3-.9\" /><path d=\"m19.1 15.2.3-.9\" /><path d=\"m19.6 21.7-.4-1\" /><path d=\"m16.8 15.3-.4-1\" /><path d=\"m14.3 19.6 1-.4\" /><path d=\"m20.7 16.8 1-.4\" />',\n 'folder-dot': '<path d=\"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><circle cx=\"12\" cy=\"13\" r=\"1\" />',\n 'folder-git': '<circle cx=\"12\" cy=\"13\" r=\"2\" /><path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"M14 13h3\" /><path d=\"M7 13h3\" />',\n 'folder-kanban': '<path d=\"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><path d=\"M8 10v4\" /><path d=\"M12 10v2\" /><path d=\"M16 10v6\" />',\n 'folder-key': '<circle cx=\"16\" cy=\"20\" r=\"2\" /><path d=\"M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2\" /><path d=\"m22 14-4.5 4.5\" /><path d=\"m21 15 1 1\" />',\n 'folder-open-dot': '<path d=\"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2\" /><circle cx=\"14\" cy=\"15\" r=\"1\" />',\n 'folder-pen': '<path d=\"M8.4 10.6a2 2 0 0 1 3 3L6 19l-4 1 1-4Z\" /><path d=\"M2 11.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.5\" />',\n 'folder-root': '<path d=\"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" /><circle cx=\"12\" cy=\"13\" r=\"2\" /><path d=\"M12 15v5\" />',\n 'folder-symlink': '<path d=\"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7\" /><path d=\"m8 16 3-3-3-3\" />',\n 'frame': '<line x1=\"22\" x2=\"2\" y1=\"6\" y2=\"6\" /><line x1=\"22\" x2=\"2\" y1=\"18\" y2=\"18\" /><line x1=\"6\" x2=\"6\" y1=\"2\" y2=\"22\" /><line x1=\"18\" x2=\"18\" y1=\"2\" y2=\"22\" />',\n 'framer': '<path d=\"M5 16V9h14V2H5l14 14h-7m-7 0 7 7v-7m-7 0h7\" />',\n 'gallery-horizontal-end': '<path d=\"M2 7v10\" /><path d=\"M6 5v14\" /><rect width=\"12\" height=\"18\" x=\"10\" y=\"3\" rx=\"2\" />',\n 'gallery-thumbnails': '<rect width=\"18\" height=\"14\" x=\"3\" y=\"3\" rx=\"2\" /><path d=\"M4 21h1\" /><path d=\"M9 21h1\" /><path d=\"M14 21h1\" /><path d=\"M19 21h1\" />',\n 'gallery-vertical-end': '<path d=\"M7 2h10\" /><path d=\"M5 6h14\" /><rect width=\"18\" height=\"12\" x=\"3\" y=\"10\" rx=\"2\" />',\n 'gavel': '<path d=\"m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8\" /><path d=\"m16 16 6-6\" /><path d=\"m8 8 6-6\" /><path d=\"m9 7 8 8\" /><path d=\"m21 11-8-8\" />',\n 'git-branch-plus': '<path d=\"M6 3v12\" /><path d=\"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z\" /><path d=\"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z\" /><path d=\"M15 6a9 9 0 0 0-9 9\" /><path d=\"M18 15v6\" /><path d=\"M21 18h-6\" />',\n 'git-commit-vertical': '<circle cx=\"12\" cy=\"12\" r=\"3\" /><line x1=\"12\" x2=\"12\" y1=\"3\" y2=\"9\" /><line x1=\"12\" x2=\"12\" y1=\"15\" y2=\"21\" />',\n 'git-compare-arrows': '<circle cx=\"5\" cy=\"6\" r=\"3\" /><path d=\"M12 6h5a2 2 0 0 1 2 2v7\" /><path d=\"m15 9-3-3 3-3\" /><circle cx=\"19\" cy=\"18\" r=\"3\" /><path d=\"M12 18H7a2 2 0 0 1-2-2V9\" /><path d=\"m9 15 3 3-3 3\" />',\n 'git-graph': '<circle cx=\"5\" cy=\"6\" r=\"3\" /><path d=\"M5 9v6\" /><circle cx=\"5\" cy=\"18\" r=\"3\" /><path d=\"M12 3v18\" /><circle cx=\"19\" cy=\"6\" r=\"3\" /><path d=\"M16 15.7A9 9 0 0 0 19 9\" />',\n 'git-pull-request-arrow': '<circle cx=\"5\" cy=\"6\" r=\"3\" /><path d=\"M5 9v12\" /><circle cx=\"19\" cy=\"18\" r=\"3\" /><path d=\"m15 9-3-3 3-3\" /><path d=\"M12 6h5a2 2 0 0 1 2 2v7\" />',\n 'git-pull-request-closed': '<circle cx=\"18\" cy=\"18\" r=\"3\" /><circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M18 11.5V15\" /><path d=\"m21 3-6 6\" /><path d=\"m21 9-6-6\" /><line x1=\"6\" x2=\"6\" y1=\"9\" y2=\"21\" />',\n 'git-pull-request-create': '<circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M6 9v12\" /><path d=\"M13 6h3a2 2 0 0 1 2 2v3\" /><path d=\"M18 15v6\" /><path d=\"M21 18h-6\" />',\n 'git-pull-request-draft': '<circle cx=\"18\" cy=\"18\" r=\"3\" /><circle cx=\"6\" cy=\"6\" r=\"3\" /><path d=\"M18 6V5\" /><path d=\"M18 11v-1\" /><line x1=\"6\" x2=\"6\" y1=\"9\" y2=\"21\" />',\n 'globe-lock': '<path d=\"M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 1 9.542 13\" /><path d=\"M2 12h8.5\" /><rect width=\"8\" height=\"5\" x=\"14\" y=\"17\" rx=\"1\" /><path d=\"M20 17v-2a2 2 0 1 0-4 0v2\" />',\n 'group': '<path d=\"M3 7V5c0-1.1.9-2 2-2h2\" /><path d=\"M17 3h2c1.1 0 2 .9 2 2v2\" /><path d=\"M21 17v2c0 1.1-.9 2-2 2h-2\" /><path d=\"M7 21H5c-1.1 0-2-.9-2-2v-2\" /><rect width=\"7\" height=\"5\" x=\"7\" y=\"7\" rx=\"1\" /><rect width=\"7\" height=\"5\" x=\"10\" y=\"12\" rx=\"1\" />',\n 'hammer': '<path d=\"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9\" /><path d=\"m18 15 4-4\" /><path d=\"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5\" />',\n 'hand-heart': '<path d=\"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16\" /><path d=\"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9\" /><path d=\"m2 15 6 6\" /><path d=\"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z\" />',\n 'hand-helping': '<path d=\"M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14\" /><path d=\"m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9\" /><path d=\"m2 13 6 6\" />',\n 'hand-metal': '<path d=\"M18 12.5V10a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4\" /><path d=\"M14 11V9a2 2 0 1 0-4 0v2\" /><path d=\"M10 10.5V5a2 2 0 1 0-4 0v9\" /><path d=\"m7 15-1.76-1.76a2 2 0 0 0-2.83 2.82l3.6 3.6C7.5 21.14 9.2 22 12 22h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v5\" />',\n 'hand-platter': '<path d=\"M12 3V2\" /><path d=\"M5 10a7.1 7.1 0 0 1 14 0\" /><path d=\"M4 10h16\" /><path d=\"M2 14h12a2 2 0 1 1 0 4h-2\" /><path d=\"m15.4 17.4 3.2-2.8a2 2 0 0 1 2.8 2.9l-3.6 3.3c-.7.8-1.7 1.2-2.8 1.2h-4c-1.1 0-2.1-.4-2.8-1.2L5 18\" /><path d=\"M5 14v7H2\" />',\n 'handshake': '<path d=\"m11 17 2 2a1 1 0 1 0 3-3\" /><path d=\"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4\" /><path d=\"m21 3 1 11h-2\" /><path d=\"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3\" /><path d=\"M3 4h8\" />',\n 'hdmi-port': '<path d=\"M22 9a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1l2 4h12l2-4h1a1 1 0 0 0 1-1Z\" /><path d=\"M7.5 12h9\" />',\n 'heading-1': '<path d=\"M4 12h8\" /><path d=\"M4 18V6\" /><path d=\"M12 18V6\" /><path d=\"m17 12 3-2v8\" />',\n 'heading-2': '<path d=\"M4 12h8\" /><path d=\"M4 18V6\" /><path d=\"M12 18V6\" /><path d=\"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1\" />',\n 'heading-3': '<path d=\"M4 12h8\" /><path d=\"M4 18V6\" /><path d=\"M12 18V6\" /><path d=\"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2\" /><path d=\"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2\" />',\n 'heading-4': '<path d=\"M4 12h8\" /><path d=\"M4 18V6\" /><path d=\"M12 18V6\" /><path d=\"M17 10v4h4\" /><path d=\"M21 10v8\" />',\n 'heading-5': '<path d=\"M4 12h8\" /><path d=\"M4 18V6\" /><path d=\"M12 18V6\" /><path d=\"M17 13v-3h4\" /><path d=\"M17.7 17.7c.5.8 1.7 1.5 2.8 1.3a2.5 2.5 0 0 0 .5-5\" />',\n 'heading-6': '<path d=\"M4 12h8\" /><path d=\"M4 18V6\" /><path d=\"M12 18V6\" /><circle cx=\"19\" cy=\"16\" r=\"2\" /><path d=\"M20 10c-2 2-3 3.5-3 6\" />',\n 'heater': '<path d=\"M11 8c2-3-2-3 0-6\" /><path d=\"M15.5 8c2-3-2-3 0-6\" /><path d=\"M6 10h.01\" /><path d=\"M6 14h.01\" /><path d=\"M10 16v-4\" /><path d=\"M14 16v-4\" /><path d=\"M18 16v-4\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"6\" rx=\"2\" />',\n 'highlighter': '<path d=\"m9 11-6 6v3h9l3-3\" /><path d=\"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4\" />',\n 'history': '<path d=\"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\" /><path d=\"M3 3v5h5\" /><path d=\"M12 7v5l4 2\" />',\n 'ice-cream': '<path d=\"M12 17c5 0 8-2.69 8-6H4c0 3.31 3 6 8 6Z\" /><path d=\"m4 11 .21 1.24c.14.84.82 1.47 1.67 1.54C7.03 13.88 9 14.19 12 14.19s4.97-.31 6.12-.41a1.73 1.73 0 0 0 1.67-1.54L20 11\" /><path d=\"M12 4a4 4 0 0 0-4 4\" /><path d=\"M12 4a4 4 0 0 1 4 4\" /><path d=\"M12 4V2\" /><path d=\"M8 8h8\" /><path d=\"m10 17 2 5 2-5\" />',\n 'id-card': '<path d=\"M16 10h2\" /><path d=\"M16 14h2\" /><path d=\"M6.17 15a3 3 0 0 1 5.66 0\" /><circle cx=\"9\" cy=\"11\" r=\"2\" /><rect x=\"2\" y=\"5\" width=\"20\" height=\"14\" rx=\"2\" />',\n 'image-down': '<path d=\"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21\" /><path d=\"m14 19.5 3 3v-6\" /><path d=\"m17 22.5 3-3\" /><circle cx=\"9\" cy=\"9\" r=\"2\" />',\n 'image-minus': '<path d=\"M21 9v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7\" /><line x1=\"16\" x2=\"22\" y1=\"5\" y2=\"5\" /><circle cx=\"9\" cy=\"9\" r=\"2\" /><path d=\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\" />',\n 'image-off': '<line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" /><path d=\"M10.41 10.41a2 2 0 1 1-2.83-2.83\" /><line x1=\"13.5\" x2=\"6\" y1=\"13.5\" y2=\"21\" /><line x1=\"18\" x2=\"21\" y1=\"12\" y2=\"15\" /><path d=\"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59\" /><path d=\"M21 15V5a2 2 0 0 0-2-2H9\" />',\n 'image-up': '<path d=\"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21\" /><path d=\"m14 19.5 3-3 3 3\" /><path d=\"M17 22v-5.5\" /><circle cx=\"9\" cy=\"9\" r=\"2\" />',\n 'inspect': '<path d=\"M21 12h-8\" /><path d=\"M21 6H8\" /><path d=\"M21 18h-8\" /><path d=\"M3 6v4c0 1.1.9 2 2 2h4\" /><path d=\"M3 10v6c0 1.1.9 2 2 2h4\" />',\n 'iteration': '<path d=\"m17 2 4 4-4 4\" /><path d=\"M3 11v-1a4 4 0 0 1 4-4h14\" /><path d=\"m7 22-4-4 4-4\" /><path d=\"M21 13v1a4 4 0 0 1-4 4H3\" />',\n 'japanese-yen': '<path d=\"M12 9.5V21m0-11.5L6 3m6 6.5L18 3\" /><path d=\"M6 15h12\" /><path d=\"M6 11h12\" />',\n 'kanban': '<path d=\"M6 5v11\" /><path d=\"M12 5v6\" /><path d=\"M18 5v14\" />',\n 'keyboard-music': '<rect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\" /><path d=\"M6 8h4\" /><path d=\"M14 8h.01\" /><path d=\"M18 8h.01\" /><path d=\"M2 12h20\" /><path d=\"M6 12v4\" /><path d=\"M10 12v4\" /><path d=\"M14 12v4\" /><path d=\"M18 12v4\" />',\n 'keyboard-off': '<path d=\"M 20 4 A2 2 0 0 1 22 6\" /><path d=\"M22 6v6.5\" /><path d=\"M2 12V6a2 2 0 0 1 2-2h12\" /><path d=\"M2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2.5\" /><path d=\"M6 8h.01\" /><path d=\"M10 8h.01\" /><path d=\"M6 12h.01\" /><path d=\"M10 12h.01\" /><path d=\"M14 12h.01\" /><path d=\"M7 16h10\" /><path d=\"m2 2 20 20\" />',\n 'lasso': '<path d=\"M7 22a5 5 0 0 1-2-4\" /><path d=\"M3.3 14A6.8 6.8 0 0 1 2 10c0-4.4 4.5-8 10-8s10 3.6 10 8-4.5 8-10 8a12 12 0 0 1-5-1\" /><circle cx=\"12\" cy=\"10\" r=\"3\" />',\n 'lasso-select': '<path d=\"M7 22a5 5 0 0 1-2-4\" /><path d=\"M7 16.93c.96.43 1.96.74 2.99.91\" /><path d=\"M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2\" /><path d=\"M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z\" /><path d=\"M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14\" />',\n 'life-buoy': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m4.93 4.93 4.24 4.24\" /><path d=\"m14.83 9.17 4.24-4.24\" /><path d=\"m14.83 14.83 4.24 4.24\" /><path d=\"m9.17 14.83-4.24 4.24\" /><circle cx=\"12\" cy=\"12\" r=\"4\" />',\n 'lightbulb-off': '<path d=\"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5\" /><path d=\"m2 2 20 20\" /><path d=\"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5\" /><path d=\"M9 18h6\" /><path d=\"M10 22h4\" /><path d=\"M15 14c.2-1 .7-1.7 1.5-2.5\" />',\n 'list-check': '<path d=\"M11 18H3\" /><path d=\"m15 18 2 2 4-4\" /><path d=\"M16 12H3\" /><path d=\"M16 6H3\" />',\n 'list-end': '<path d=\"M16 12H3\" /><path d=\"M16 6H3\" /><path d=\"M10 18H3\" /><path d=\"M21 6v10a2 2 0 0 1-2 2h-5\" /><path d=\"m16 16-2 2 2 2\" />',\n 'list-minus': '<path d=\"M11 12H3\" /><path d=\"M16 6H3\" /><path d=\"M16 18H3\" /><path d=\"M21 12h-6\" />',\n 'list-music': '<path d=\"M21 15V6\" /><path d=\"M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z\" /><path d=\"M12 12H3\" /><path d=\"M16 6H3\" /><path d=\"M12 18H3\" />',\n 'list-plus': '<path d=\"M11 12H3\" /><path d=\"M16 6H3\" /><path d=\"M16 18H3\" /><path d=\"M18 9v6\" /><path d=\"M21 12h-6\" />',\n 'list-restart': '<path d=\"M21 6H3\" /><path d=\"M7 12H3\" /><path d=\"M7 18H3\" /><path d=\"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14\" /><path d=\"M11 10v4h4\" />',\n 'list-start': '<path d=\"M16 12H3\" /><path d=\"M16 18H3\" /><path d=\"M10 6H3\" /><path d=\"M21 18V8a2 2 0 0 0-2-2h-5\" /><path d=\"m16 8-2-2 2-2\" />',\n 'list-todo': '<rect x=\"3\" y=\"5\" width=\"6\" height=\"6\" rx=\"1\" /><path d=\"m3 17 2 2 4-4\" /><path d=\"M13 6h8\" /><path d=\"M13 12h8\" /><path d=\"M13 18h8\" />',\n 'list-video': '<path d=\"M12 12H3\" /><path d=\"M16 6H3\" /><path d=\"M12 18H3\" /><path d=\"m16 12 5 3-5 3v-6Z\" />',\n 'list-x': '<path d=\"M11 12H3\" /><path d=\"M16 6H3\" /><path d=\"M16 18H3\" /><path d=\"m19 10-4 4\" /><path d=\"m15 10 4 4\" />',\n 'locate': '<line x1=\"2\" x2=\"5\" y1=\"12\" y2=\"12\" /><line x1=\"19\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"5\" /><line x1=\"12\" x2=\"12\" y1=\"19\" y2=\"22\" /><circle cx=\"12\" cy=\"12\" r=\"7\" />',\n 'locate-fixed': '<line x1=\"2\" x2=\"5\" y1=\"12\" y2=\"12\" /><line x1=\"19\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"5\" /><line x1=\"12\" x2=\"12\" y1=\"19\" y2=\"22\" /><circle cx=\"12\" cy=\"12\" r=\"7\" /><circle cx=\"12\" cy=\"12\" r=\"3\" />',\n 'locate-off': '<line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" /><path d=\"M8.64 8.64A7 7 0 0 0 19 12\" /><path d=\"M12 5A7 7 0 0 1 19 12\" /><line x1=\"2\" x2=\"5\" y1=\"12\" y2=\"12\" /><line x1=\"19\" x2=\"22\" y1=\"12\" y2=\"12\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"5\" /><line x1=\"12\" x2=\"12\" y1=\"19\" y2=\"22\" />',\n 'magnet': '<path d=\"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15\" /><path d=\"m5 8 4 4\" /><path d=\"m12 15 4 4\" />',\n 'memory-stick': '<path d=\"M6 19v-3\" /><path d=\"M10 19v-3\" /><path d=\"M14 19v-3\" /><path d=\"M18 19v-3\" /><path d=\"M8 11V9\" /><path d=\"M16 11V9\" /><path d=\"M12 11V9\" /><path d=\"M2 15h20\" /><path d=\"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V15H2v-3.063a2 2 0 0 0 0-3.837Z\" />',\n 'message-circle-code': '<path d=\"M10 9.5 8 12l2 2.5\" /><path d=\"m14 9.5 2 2.5-2 2.5\" /><path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" />',\n 'message-circle-dashed': '<path d=\"M13.5 3.1c-.5 0-1-.1-1.5-.1s-1 .1-1.5.1\" /><path d=\"M19.3 6.8a10.45 10.45 0 0 0-2.1-2.1\" /><path d=\"M20.9 13.5c.1-.5.1-1 .1-1.5s-.1-1-.1-1.5\" /><path d=\"M17.2 19.3a10.45 10.45 0 0 0 2.1-2.1\" /><path d=\"M13.5 20.9c.5-.1 1-.1 1.5-.1\" /><path d=\"M7.9 20A9 9 0 0 1 2 22l1.89-5.7\" /><path d=\"M3.1 13.5c-.1.5-.1 1-.1 1.5\" /><path d=\"M4.8 8.8c-.4.6-.7 1.3-1 2\" />',\n 'message-circle-heart': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"M15.8 9.2a2.5 2.5 0 0 0-3.5 0l-.3.4-.35-.3a2.42 2.42 0 1 0-3.2 3.6l3.6 3.5 3.6-3.5c1.2-1.2 1.1-2.7.15-3.7Z\" />',\n 'message-circle-off': '<path d=\"M20.5 14.9A9 9 0 0 0 9.1 3.5\" /><path d=\"m2 2 20 20\" /><path d=\"M5.6 5.6C3 8.3 2.2 12.5 4 16l-2 6 6-2c3.4 1.8 7.6 1.1 10.3-1.7\" />',\n 'message-circle-plus': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"M15 10h-6\" /><path d=\"M12 7v6\" />',\n 'message-circle-question': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" /><path d=\"M12 17h.01\" />',\n 'message-circle-reply': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"m10 15-3-3 3-3\" /><path d=\"M7 12h7a2 2 0 0 1 2 2v1\" />',\n 'message-circle-warning': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"M12 8v4\" /><path d=\"M12 16h.01\" />',\n 'message-circle-x': '<path d=\"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\" /><path d=\"m15 9-6 6\" /><path d=\"m9 9 6 6\" />',\n 'message-square-code': '<path d=\"M10 7.5 8 10l2 2.5\" /><path d=\"m14 7.5 2 2.5-2 2.5\" /><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" />',\n 'message-square-dashed': '<path d=\"M3 6V5c0-1.1.9-2 2-2h2\" /><path d=\"M11 3h3\" /><path d=\"M18 3h1c1.1 0 2 .9 2 2\" /><path d=\"M21 9v2\" /><path d=\"M21 15c0 1.1-.9 2-2 2h-1\" /><path d=\"M14 17H7l-4 4v-5\" /><path d=\"M3 12v-2\" />',\n 'message-square-diff': '<path d=\"m5 19-2 2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2\" /><path d=\"M9 10h6\" /><path d=\"M12 7v6\" /><path d=\"M9 17h6\" />',\n 'message-square-dot': '<path d=\"M11.7 3H5a2 2 0 0 0-2 2v16l4-4h12a2 2 0 0 0 2-2V7.5\" /><circle cx=\"20\" cy=\"3.5\" r=\"2.5\" fill=\"currentColor\" />',\n 'message-square-heart': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"M14.8 7.5a1.84 1.84 0 0 0-2.6 0l-.2.3-.3-.3A1.84 1.84 0 1 0 9.1 10l2.9 3 2.9-3c.8-.8.7-2 .1-2.7Z\" />',\n 'message-square-more': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"M8 10h.01\" /><path d=\"M12 10h.01\" /><path d=\"M16 10h.01\" />',\n 'message-square-off': '<path d=\"M21 15V5a2 2 0 0 0-2-2H9\" /><path d=\"m2 2 20 20\" /><path d=\"M3.6 3.6c-.4.3-.6.8-.6 1.4v16l4-4h10\" />',\n 'message-square-quote': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"M7.5 8.5c0-.28.22-.5.5-.5 2 0 2 2 2 2v1a.5.5 0 0 1-.5.5H8.5a.5.5 0 0 1-.5-.5v-1\" /><path d=\"M13.5 8.5c0-.28.22-.5.5-.5 2 0 2 2 2 2v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1\" />',\n 'message-square-reply': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"m10 7-3 3 3 3\" /><path d=\"M17 13v-1a2 2 0 0 0-2-2H7\" />',\n 'message-square-share': '<path d=\"M21 12v3a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h7\" /><path d=\"M16 3h5v5\" /><path d=\"m16 8 5-5\" />',\n 'message-square-text': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"M13 8H7\" /><path d=\"M17 12H7\" />',\n 'message-square-warning': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"M12 7v2\" /><path d=\"M12 13h.01\" />',\n 'message-square-x': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" /><path d=\"m14.5 7.5-5 5\" /><path d=\"m9.5 7.5 5 5\" />',\n 'milk-off': '<path d=\"M8 2h8\" /><path d=\"M9 2v1.343M15 2v2.789a4 4 0 0 0 .672 2.219l.656.984a4 4 0 0 1 .672 2.22v1.131\" /><path d=\"M7 15.8V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-1\" /><path d=\"m2 2 20 20\" /><path d=\"M7 10.7V6h4\" />',\n 'monitor-check': '<path d=\"m9 10 2 2 4-4\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'monitor-cog': '<path d=\"M12 17v4\" /><path d=\"M8 21h8\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><circle cx=\"12\" cy=\"10\" r=\"1\" /><path d=\"M12 7v1\" /><path d=\"M12 12v1\" /><path d=\"M15 10h-1\" /><path d=\"M10 10H9\" /><path d=\"m14.1 8.2-.6.4\" /><path d=\"m10.5 11.4-.6.4\" /><path d=\"m14.1 11.8-.6-.4\" /><path d=\"m10.5 8.6-.6-.4\" />',\n 'monitor-down': '<path d=\"M12 13V7\" /><path d=\"m15 10-3 3-3-3\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'monitor-off': '<path d=\"M17 17H4a2 2 0 0 1-2-2V5c0-1.5 1-2 1-2\" /><path d=\"M22 15V5a2 2 0 0 0-2-2H9\" /><path d=\"M8 21h8\" /><path d=\"M12 17v4\" /><path d=\"m2 2 20 20\" />',\n 'monitor-pause': '<path d=\"M10 13V7\" /><path d=\"M14 13V7\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'monitor-play': '<path d=\"m10 7 5 3-5 3Z\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'monitor-smartphone': '<path d=\"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8\" /><path d=\"M10 19v-3.96 3.15\" /><path d=\"M7 19h5\" /><rect width=\"6\" height=\"10\" x=\"16\" y=\"12\" rx=\"2\" />',\n 'monitor-stop': '<rect x=\"9\" y=\"7\" width=\"6\" height=\"6\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'monitor-up': '<path d=\"m9 10 3-3 3 3\" /><path d=\"M12 13V7\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'monitor-x': '<path d=\"m14.5 12.5-5-5\" /><path d=\"m9.5 12.5 5-5\" /><rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" /><path d=\"M12 17v4\" /><path d=\"M8 21h8\" />',\n 'moon-star': '<path d=\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9\" /><path d=\"M20 3v4\" /><path d=\"M22 5h-4\" />',\n 'move-3d': '<path d=\"M5 3v16h16\" /><path d=\"m5 19 6-6\" /><path d=\"m2 6 3-3 3 3\" /><path d=\"m18 16 3 3-3 3\" />',\n 'move-diagonal-2': '<polyline points=\"5 11 5 5 11 5\" /><polyline points=\"19 13 19 19 13 19\" /><line x1=\"5\" x2=\"19\" y1=\"5\" y2=\"19\" />',\n 'move-down-left': '<path d=\"M11 19H5V13\" /><path d=\"M19 5L5 19\" />',\n 'move-down-right': '<path d=\"M19 13V19H13\" /><path d=\"M5 5L19 19\" />',\n 'move-horizontal': '<polyline points=\"18 8 22 12 18 16\" /><polyline points=\"6 8 2 12 6 16\" /><line x1=\"2\" x2=\"22\" y1=\"12\" y2=\"12\" />',\n 'move-up-left': '<path d=\"M5 11V5H11\" /><path d=\"M5 5L19 19\" />',\n 'move-up-right': '<path d=\"M13 5H19V11\" /><path d=\"M19 5L5 19\" />',\n 'move-vertical': '<polyline points=\"8 18 12 22 16 18\" /><polyline points=\"8 6 12 2 16 6\" /><line x1=\"12\" x2=\"12\" y1=\"2\" y2=\"22\" />',\n 'navigation-2': '<polygon points=\"12 2 19 21 12 17 5 21 12 2\" />',\n 'navigation-off': '<path d=\"M8.43 8.43 3 11l8 2 2 8 2.57-5.43\" /><path d=\"M17.39 11.73 22 2l-9.73 5.39\" /><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\" />',\n 'notebook-pen': '<path d=\"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4\" /><path d=\"M2 6h4\" /><path d=\"M2 10h4\" /><path d=\"M2 14h4\" /><path d=\"M2 18h4\" /><path d=\"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z\" />',\n 'notebook-tabs': '<path d=\"M2 6h4\" /><path d=\"M2 10h4\" /><path d=\"M2 14h4\" /><path d=\"M2 18h4\" /><rect width=\"16\" height=\"20\" x=\"4\" y=\"2\" rx=\"2\" /><path d=\"M18 2v4\" /><path d=\"M18 8v4\" /><path d=\"M18 14v4\" />',\n 'notebook-text': '<path d=\"M2 6h4\" /><path d=\"M2 10h4\" /><path d=\"M2 14h4\" /><path d=\"M2 18h4\" /><rect width=\"16\" height=\"20\" x=\"4\" y=\"2\" rx=\"2\" /><path d=\"M9.5 8h5\" /><path d=\"M9.5 12H16\" /><path d=\"M9.5 16H14\" />',\n 'octagon-alert': '<path d=\"M12 16h.01\" /><path d=\"M12 8v4\" /><path d=\"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z\" />',\n 'package-check': '<path d=\"m16 16 2 2 4-4\" /><path d=\"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4\" /><path d=\"m7.5 4.27 9 5.15\" /><path d=\"m3.3 7 8.7 5 8.7-5\" /><path d=\"M12 22V12\" />',\n 'package-open': '<path d=\"M12 22v-9\" /><path d=\"M15.35 7.8 12 12V2.8l6.15 3.45a1 1 0 0 1 .4 1.35Z\" /><path d=\"M5.45 6.25 12 2.8V12L2.5 6.8a1 1 0 0 1 .3-1.7Z\" /><path d=\"m21 12.83-9 5.27-9-5.27\" /><path d=\"M21 17a2 2 0 0 1-1 1.73l-7 4a2 2 0 0 1-2 0l-7-4A2 2 0 0 1 3 17\" />',\n 'package-plus': '<path d=\"M16 16h6\" /><path d=\"M19 13v6\" /><path d=\"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4\" /><path d=\"m7.5 4.27 9 5.15\" /><path d=\"m3.3 7 8.7 5 8.7-5\" /><path d=\"M12 22V12\" />',\n 'package-search': '<path d=\"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4\" /><path d=\"m7.5 4.27 9 5.15\" /><path d=\"m3.3 7 8.7 5 8.7-5\" /><path d=\"M12 22V12\" /><circle cx=\"18.5\" cy=\"15.5\" r=\"2.5\" /><path d=\"M20.27 17.27 22 19\" />',\n 'paperclip': '<path d=\"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48\" />',\n 'pen': '<path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\" />',\n 'heart': '<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\" />',\n 'heart-pulse': '<path d=\"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z\" /><path d=\"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27\" />',\n 'bell': '<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\" /><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\" />',\n 'shield': '<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\" />',\n 'folder': '<path d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\" />',\n 'file-text': '<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\" /><path d=\"M14 2v4a2 2 0 0 0 2 2h4\" /><path d=\"M10 9H8\" /><path d=\"M16 13H8\" /><path d=\"M16 17H8\" />',\n 'message-square': '<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" />',\n 'square': '<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" />',\n 'circle-minus': '<circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M8 12h8\" />',\n 'apple': '<path d=\"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z\" /><path d=\"M10 2c1 .5 2 2 2 5\" />',\n 'arrow-big-up': '<path d=\"M9 18v-6H5l7-7 7 7h-4v6H9z\" />',\n 'alert-triangle': '<path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" /><path d=\"M12 9v4\" /><path d=\"M12 17h.01\" />',\n 'gem': '<path d=\"M6 3h12l4 6-10 13L2 9Z\" /><path d=\"M11 3 8 9l4 13 4-13-3-6\" /><path d=\"M2 9h20\" />',\n 'gamepad': '<line x1=\"6\" x2=\"10\" y1=\"11\" y2=\"11\" /><line x1=\"8\" x2=\"8\" y1=\"9\" y2=\"13\" /><line x1=\"15\" x2=\"15.01\" y1=\"12\" y2=\"12\" /><line x1=\"18\" x2=\"18.01\" y1=\"10\" y2=\"10\" /><path d=\"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z\" />',\n} as const;\n\n/** @deprecated Use DEFAULT_ICONS instead */\nexport const ICONS = DEFAULT_ICONS;\n\nexport type DefaultIconName = keyof typeof DEFAULT_ICONS;\n\nexport type IconName = DefaultIconName | (string & Record<never, never>);\n\nexport type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & Record<never, never>);\n\nexport type IconWeight = 'light' | 'regular' | 'thick' | 'solid';\n\nexport const SOLID_SUPPORTED_ICONS: ReadonlySet<string> = new Set([\n 'heart', 'heart-crack', 'star', 'bookmark', 'bookmark-plus', 'flag', 'circle', 'circle-dot',\n 'shield', 'shield-check', 'shield-alert', 'moon', 'cloud', 'zap',\n 'message-square', 'message-circle', 'message-square-plus', 'play', 'filter',\n 'folder', 'folder-plus', 'map-pin', 'tag', 'thumbs-up', 'thumbs-down',\n 'bell', 'bell-ring', 'home', 'lock', 'unlock', 'mail', 'mail-open', 'file',\n 'file-text', 'file-plus', 'camera', 'credit-card',\n 'alert-triangle', 'gift', 'box', 'compass', 'navigation',\n 'shopping-bag', 'droplet', 'hexagon', 'diamond', 'octagon',\n 'square', 'triangle', 'pentagon', 'crown', 'badge-check', 'thermometer',\n 'heart-pulse', 'flame', 'leaf', 'mountain', 'tent',\n 'apple', 'cherry', 'fish',\n 'arrow-big-up', 'arrow-big-down', 'arrow-big-left', 'arrow-big-right',\n 'gem', 'stamp', 'circle-check', 'circle-x', 'circle-alert', 'circle-plus',\n 'circle-minus', 'circle-pause', 'circle-play', 'circle-stop',\n]);\n\nconst SIZE_MAP: Record<string, string> = {\n xs: '12',\n sm: '16',\n md: '24',\n lg: '32',\n xl: '48',\n};\n\n@Component({\n selector: 'ui-icon',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './icon.component.html',\n styleUrl: './icon.component.css',\n})\nexport class IconComponent {\n /**\n * Icon key, looked up in the built-in set merged with anything registered\n * through the `UI_CUSTOM_ICONS` token (custom entries win on a name clash).\n * An unknown name renders an empty `<svg>` rather than throwing, so typos\n * fail silently.\n */\n readonly name = input<IconName>('');\n /** Extra classes merged onto the `<svg>`, which already carries `ui-icon` and a per-name `ui-icon-<name>` hook for targeting a single icon from outside. */\n readonly class = input('');\n /** Preset key (`xs` 12px … `xl` 48px) or any raw SVG length passed straight through. Sets both width and height; the `viewBox` is fixed at 24, so the glyph scales. */\n readonly size = input<IconSize>('md');\n /**\n * Visual weight. `'light'`/`'regular'`/`'thick'` map to stroke widths;\n * `'solid'` switches to a filled glyph with no stroke, but only for icons\n * that have a solid form — the rest silently fall back to `'regular'`.\n */\n readonly weight = input<IconWeight>('regular');\n /** Explicit SVG `stroke-width`, overriding whatever {@link weight} would imply. Ignored in practice for `'solid'` glyphs, which have no visible stroke. */\n readonly strokeWidth = input<number | undefined>(undefined);\n /** Inline `color` on the `<svg>`. Since strokes and solid fills use `currentColor`, this tints the whole glyph; leave it unset to inherit from the surrounding text. */\n readonly color = input<string>();\n /** Explicit SVG `fill`, independent of {@link color}. Use it to fill an outline icon — otherwise the fill is `currentColor` for `'solid'` and `none` for every other {@link weight}. */\n readonly fillColor = input<string>();\n\n private readonly sanitizer = inject(DomSanitizer);\n private readonly customIcons = inject(UI_CUSTOM_ICONS, { optional: true });\n\n private readonly mergedIcons: Record<string, string> = this.customIcons\n ? { ...DEFAULT_ICONS, ...this.customIcons }\n : { ...DEFAULT_ICONS };\n\n readonly resolvedSize = computed(() => {\n const s = this.size();\n return SIZE_MAP[s] ?? s;\n });\n\n readonly resolvedWeight = computed(() => {\n const w = this.weight();\n if (w === 'solid' && !SOLID_SUPPORTED_ICONS.has(this.name())) {\n return 'regular';\n }\n return w;\n });\n\n readonly resolvedStrokeWidth = computed(() => {\n const custom = this.strokeWidth();\n if (custom !== undefined) return String(custom);\n const w = this.resolvedWeight();\n if (w === 'light') return '1.5';\n if (w === 'thick') return '2.5';\n if (w === 'solid') return '0';\n return '2';\n });\n\n readonly resolvedFill = computed(() => {\n const fc = this.fillColor();\n if (fc) return fc;\n return this.resolvedWeight() === 'solid' ? 'currentColor' : 'none';\n });\n\n readonly resolvedStroke = computed(() =>\n this.resolvedWeight() === 'solid' ? 'none' : 'currentColor',\n );\n\n readonly svgContent = computed(() => {\n const iconName = this.name();\n const rawHtml = this.mergedIcons[iconName] ?? '';\n return this.sanitizer.bypassSecurityTrustHtml(rawHtml);\n });\n\n readonly classes = computed(() =>\n cn(\n 'ui-icon',\n this.name() ? `ui-icon-${this.name()}` : 'ui-icon-icon',\n this.class(),\n ),\n );\n}\n","<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n [attr.width]=\"resolvedSize()\"\n [attr.height]=\"resolvedSize()\"\n viewBox=\"0 0 24 24\"\n [attr.fill]=\"resolvedFill()\"\n [attr.stroke]=\"resolvedStroke()\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [class]=\"classes()\"\n [innerHTML]=\"svgContent()\"\n [attr.data-slot]=\"'icon'\"\n [style.color]=\"color() || null\"\n></svg>\n","import {\n Component,\n computed,\n input,\n output,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SortDirection } from '../data-table.types';\nimport { ButtonComponent } from '../../button';\nimport { IconComponent } from '../../icon';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-data-table-column-header',\n imports: [\n CommonModule,\n ButtonComponent,\n IconComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './data-table-column-header.component.html',\n})\nexport class DataTableColumnHeaderComponent {\n /** Header text rendered in the button, and the prefix of {@link sortAriaLabel}. */\n title = input('');\n /**\n * The column key this header sorts. Purely informational for consumers that\n * host the header themselves — the component never resolves it against data\n * and emits only a direction; the parent table maps it back to a column.\n */\n column = input('');\n /**\n * Current sort direction, rendered as the arrow icon. This is a *controlled*\n * input: {@link toggleSort} does not change it, it only emits the next\n * direction, so the parent must feed the new value back in.\n */\n direction = input<SortDirection>(null);\n /**\n * When false the header renders plain text instead of a button — no sort\n * affordance, no keyboard target, and {@link sort} never fires.\n */\n enableSorting = input(true);\n /** Extra classes merged onto the flex container (not onto the button). */\n class = input('');\n /**\n * Zero-based position of this column in a multi-sort chain; rendered as a\n * 1-based badge next to the arrow. `null` (the default) hides the badge —\n * pass it only while the table is in multi-sort mode.\n */\n sortIndex = input<number | null>(null);\n\n /**\n * The next direction in the asc → desc → null cycle. Emitted on every\n * activation; carries no modifier information — use {@link sortMeta} when\n * you need to distinguish a shift-click multi-sort.\n */\n sort = output<SortDirection>();\n /**\n * Same direction as {@link sort}, plus `multi: true` when the activating\n * event carried the shift key (a request to *add* to the sort chain rather\n * than replace it). Both outputs fire on every activation, in this order.\n */\n sortMeta = output<{ direction: SortDirection; multi: boolean }>();\n\n containerClasses = computed(() => cn('flex items-center gap-x-2', this.class()));\n\n /** Accessible label for the sort button — conveys current state and next action. */\n readonly sortAriaLabel = computed(() => {\n const title = this.title();\n const index = this.sortIndex();\n const priority = index === null ? '' : `, sort priority ${index + 1}`;\n const direction = this.direction();\n if (direction === 'asc') {\n return `${title}, sorted ascending${priority}. Activate to sort descending.`;\n }\n if (direction === 'desc') {\n return `${title}, sorted descending${priority}. Activate to remove sort.`;\n }\n return `${title}, not sorted. Activate to sort ascending.`;\n });\n\n /**\n * Advances the asc → desc → unsorted cycle and emits {@link sort} and\n * {@link sortMeta}. Bound to click, Enter and Space. Holding shift sets\n * `multi` on {@link sortMeta} only — the emitted direction is identical\n * either way, and no local state changes (see {@link direction}).\n */\n toggleSort(event: Event): void {\n const current = this.direction();\n const multi = 'shiftKey' in event && (event as MouseEvent).shiftKey;\n if (current === 'asc') {\n this.sort.emit('desc');\n this.sortMeta.emit({ direction: 'desc', multi });\n } else if (current === 'desc') {\n this.sort.emit(null);\n this.sortMeta.emit({ direction: null, multi });\n } else {\n this.sort.emit('asc');\n this.sortMeta.emit({ direction: 'asc', multi });\n }\n }\n}\n","<div [class]=\"containerClasses()\">\n @if (!enableSorting()) {\n <div>{{ title() }}</div>\n } @else {\n <ui-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"-ms-3 h-8 data-[state=open]:bg-accent\"\n [ariaLabel]=\"sortAriaLabel()\"\n (click)=\"toggleSort($event)\"\n (keydown.enter)=\"toggleSort($event)\"\n (keydown.space)=\"toggleSort($event)\"\n >\n <span>{{ title() }}</span>\n @if (direction() === 'desc') {\n <ui-icon name=\"arrow-down\" class=\"ms-2 h-4 w-4\" />\n } @else if (direction() === 'asc') {\n <ui-icon name=\"arrow-up\" class=\"ms-2 h-4 w-4\" />\n } @else {\n <ui-icon name=\"chevrons-up-down\" class=\"ms-2 h-4 w-4\" />\n }\n @if (sortIndex() !== null) {\n <span\n class=\"ms-1 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-muted px-1 text-[10px] leading-none\"\n aria-hidden=\"true\"\n >\n {{ (sortIndex() ?? 0) + 1 }}\n </span>\n }\n </ui-button>\n }\n</div>\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n ElementRef,\n forwardRef,\n inject,\n InjectionToken,\n input,\n model,\n OnDestroy,\n computed,\n signal,\n ViewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn, isRtl } from '../../lib/utils';\nimport { createLocaleBindings, type LocaleInput } from '../../lib/i18n';\nimport { COMMON_LOCALES, type CommonLocale } from '../../lib/i18n/common.locales';\n\nexport const SELECT = new InjectionToken<SelectComponent<unknown>>('SELECT');\n\n@Component({\n selector: 'ui-select',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './select.component.css',\n template: `\n @if (isDataDriven()) {\n <div class=\"relative inline-block w-full\">\n <button\n type=\"button\"\n role=\"combobox\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"resolvedAriaLabelledby()\"\n [attr.data-state]=\"open() ? 'open' : 'closed'\"\n [attr.aria-controls]=\"listId\"\n [attr.data-slot]=\"'select-trigger'\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeyDown($event)\"\n >\n <span class=\"flex-1 truncate ltr:text-left rtl:text-right\">\n @if (hasValue()) {\n {{ selectedDisplayValue() }}\n } @else {\n <span class=\"text-muted-foreground\">{{ resolvedPlaceholder() }}</span>\n }\n </span>\n <svg\n class=\"size-4 opacity-50 shrink-0\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n >\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M19 9l-7 7-7-7\" />\n </svg>\n </button>\n\n @if (open()) {\n <div\n #contentEl\n [attr.id]=\"listId\"\n [class]=\"contentClasses()\"\n role=\"listbox\"\n tabindex=\"-1\"\n (keydown)=\"onContentKeydown($event)\"\n >\n <div class=\"p-1\">\n @for (option of options(); track getTrackBy(option); let i = $index) {\n <div\n #itemEl\n role=\"option\"\n tabindex=\"-1\"\n [class]=\"itemClasses(option)\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.data-state]=\"isSelected(option) ? 'checked' : 'unchecked'\"\n [attr.data-index]=\"i\"\n (click)=\"selectOption(option)\"\n (keydown.enter)=\"selectOption(option)\"\n (mouseenter)=\"focusedIndex.set(i)\"\n >\n <span class=\"flex-1\">{{ getDisplayValue(option) }}</span>\n <span class=\"absolute flex size-3.5 items-center justify-center ltr:right-2 rtl:left-2\">\n @if (isSelected(option)) {\n <svg class=\"size-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M5 13l4 4L19 7\" />\n </svg>\n }\n </span>\n </div>\n }\n </div>\n </div>\n }\n </div>\n } @else {\n <ng-content />\n }\n `,\n host: { class: 'relative inline-block', '[attr.dir]': 'dir()' },\n providers: [\n { provide: SELECT, useExisting: forwardRef(() => SelectComponent) },\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SelectComponent), multi: true }\n ],\n})\nexport class SelectComponent<T = string> implements OnDestroy, ControlValueAccessor {\n private readonly el = inject(ElementRef);\n private readonly document = inject(DOCUMENT);\n\n /**\n * Disables the trigger and blocks {@link toggle}. OR-ed with the disabled\n * state pushed by a reactive form via {@link setDisabledState} — see\n * {@link isDisabled}; clearing this input will not re-enable a control the\n * form has disabled.\n */\n readonly disabled = input(false);\n /** Override for the placeholder. Falls back to the locale's `selectPlaceholder`. */\n readonly placeholder = input<string>();\n /** Forwarded to the trigger button's `aria-label` for an accessible name. */\n readonly ariaLabel = input<string | undefined>(undefined);\n /**\n * Forwarded to the trigger button's `aria-labelledby` to associate the\n * combobox with an external visible label (e.g. a `<span id>` caption).\n */\n readonly ariaLabelledby = input<string | undefined>(undefined);\n /**\n * Initial selection, applied once while the value is still `undefined` — a\n * later change is ignored, and it never overwrites a user pick. Use\n * {@link value} instead to keep the selection driven from the outside.\n */\n readonly defaultValue = input<T | undefined>(undefined);\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<CommonLocale>>();\n private readonly i18n = createLocaleBindings(this.locale, COMMON_LOCALES);\n protected readonly t = this.i18n.t;\n protected readonly dir = this.i18n.dir;\n /** Effective placeholder — explicit input wins; otherwise falls back to the locale. */\n readonly resolvedPlaceholder = computed(() => this.placeholder() ?? this.t().selectPlaceholder);\n\n /**\n * `aria-labelledby` for the trigger, treating an empty string as absent — an\n * `aria-labelledby=\"\"` references nothing and leaves the combobox unnamed.\n */\n protected readonly resolvedAriaLabelledby = computed(() => this.ariaLabelledby() || undefined);\n\n /**\n * Accessible name for the data-driven trigger. `role=\"combobox\"` takes its\n * name from the author, not from its contents, so the visible placeholder\n * text inside the button does not name it (axe `button-name`). Fall back to\n * that same placeholder string unless the consumer names the control itself.\n */\n protected readonly resolvedAriaLabel = computed(() => {\n const explicit = this.ariaLabel();\n if (explicit) return explicit;\n if (this.resolvedAriaLabelledby()) return undefined;\n return this.resolvedPlaceholder();\n });\n /**\n * How a projected `<ui-select-content>` anchors itself: `item-aligned`\n * overlays the popup so the selected row sits on the trigger, `popper`\n * drops it below (or flips above when there is no room). Read by the\n * content, which falls back to its own `position` input when no select is\n * present, and downgrades to `popper` anyway if item-aligned would clip.\n * Has no effect in data-driven mode, which always renders below.\n */\n readonly position = input<'popper' | 'item-aligned'>('item-aligned');\n /**\n * Options for data-driven mode. Passing a non-empty array switches the\n * component to render its own trigger and listbox instead of projected\n * `<ui-select-trigger>` / `<ui-select-content>` content — see\n * {@link isDataDriven}. Pair with {@link displayWith},\n * {@link valueAttribute} and {@link disabledWith}.\n */\n readonly options = input<T[]>([]);\n /**\n * Maps an option to its visible label in data-driven mode. Defaults to\n * `String`, so object options need this to avoid rendering `[object\n * Object]`.\n */\n readonly displayWith = input<(option: T) => string>(String);\n /**\n * The selection, as a two-way `model()`. Any defined value written from\n * outside is pushed into the internal signal; `undefined` is ignored, so it\n * cannot be used to clear the selection. A write from outside does not emit\n * {@link valueChange} — only a user pick does.\n *\n * Being a `ModelSignal` is what makes this component a valid Signal Forms\n * `FormValueControl`, and it is also the `valueChange` output: Angular\n * derives the output from the model, so there is no separate declaration.\n */\n readonly value = model<T | undefined>(undefined);\n /**\n * Property name to read the option's value from when options are objects\n * (e.g. `'id'`). When unset the whole option object is the value, and\n * matching relies on referential equality.\n */\n readonly valueAttribute = input<string | undefined>(undefined);\n /**\n * Predicate marking individual data-driven options unselectable. Disabled\n * options are dimmed, skipped by arrow-key navigation and ignored by\n * {@link selectOption}.\n */\n readonly disabledWith = input<(option: T) => boolean>(() => false);\n\n /**\n * The rendered selection. Held separately from {@link value} so that\n * programmatic writes — a `writeValue` from a reactive form, or the\n * {@link defaultValue} seed — can move the selection without emitting, which\n * is the behaviour every consumer of this component was written against.\n * User picks write both, so `value` is the one that emits, exactly once.\n */\n internalValue = signal<T | undefined>(undefined);\n open = signal(false);\n focusedIndex = signal(0);\n\n private static nextId = 0;\n readonly listId = `select-list-${++SelectComponent.nextId}`;\n\n private _onChange: (value: T) => void = () => { };\n private _onTouched: () => void = () => { };\n private readonly _disabled = signal(false);\n\n readonly isDisabled = computed(() => this.disabled() || this._disabled());\n readonly isDataDriven = computed(() => this.options().length > 0);\n readonly hasValue = computed(() => this.internalValue() != null);\n\n readonly selectedDisplayValue = computed(() => {\n const val = this.internalValue();\n if (val == null) return '';\n\n if (this.isDataDriven()) {\n const option = this.options().find(opt => this.getValue(opt) === val);\n return option ? this.getDisplayValue(option) : String(val);\n }\n return String(val);\n });\n\n private readonly itemElements = new Map<string, HTMLElement>();\n\n @ViewChild('contentEl') contentEl?: ElementRef<HTMLElement>;\n\n private readonly clickListener = (event: MouseEvent): void => {\n if (!this.el.nativeElement.contains(event.target)) {\n this.close();\n }\n };\n\n private readonly keydownListener = (event: KeyboardEvent): void => {\n if (event.key === 'Escape' && this.open()) {\n this.close();\n }\n };\n\n readonly triggerClasses = computed(() => cn(\n 'border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50',\n 'flex w-full items-center justify-between rounded-md border bg-transparent text-sm',\n 'whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]',\n 'disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4',\n 'dark:bg-input/50 dark:hover:bg-input/70'\n ));\n\n readonly contentClasses = computed(() => cn(\n 'absolute z-50 max-h-60 min-w-[8rem] w-full max-w-[calc(100vw-2rem)] overflow-y-auto rounded-md border bg-popover p-0 text-popover-foreground shadow-md',\n 'animate-in fade-in-0 zoom-in-95',\n 'top-full mt-1 ltr:left-0 rtl:right-0'\n ));\n\n constructor() {\n this.document.addEventListener('click', this.clickListener);\n this.document.addEventListener('keydown', this.keydownListener);\n\n effect(() => {\n const defaultVal = this.defaultValue();\n if (defaultVal !== undefined && this.internalValue() === undefined) {\n this.internalValue.set(defaultVal);\n }\n });\n\n effect(() => {\n const val = this.value();\n if (val !== undefined) {\n this.internalValue.set(val);\n }\n });\n\n effect(() => {\n if (this.open()) {\n const currentVal = this.internalValue();\n if (currentVal === undefined) {\n this.focusedIndex.set(0);\n } else {\n const index = this.options().findIndex(opt => this.getValue(opt) === currentVal);\n this.focusedIndex.set(Math.max(index, 0));\n }\n\n if (this.isDataDriven()) {\n setTimeout(() => {\n this.focusDataDrivenContent();\n }, 0);\n }\n }\n });\n }\n\n private focusDataDrivenContent(): void {\n const contentEl = this.contentEl?.nativeElement;\n if (!contentEl) return;\n const selectedItem = contentEl.querySelector<HTMLElement>('[data-state=\"checked\"]');\n const firstItem = contentEl.querySelector<HTMLElement>('[role=\"option\"]');\n\n if (selectedItem) {\n selectedItem.focus({ preventScroll: true });\n } else if (firstItem) {\n firstItem.focus({ preventScroll: true });\n } else {\n contentEl.focus({ preventScroll: true });\n }\n }\n\n ngOnDestroy(): void {\n this.document.removeEventListener('click', this.clickListener);\n this.document.removeEventListener('keydown', this.keydownListener);\n }\n\n /** Label shown for an option, via {@link displayWith}. */\n getDisplayValue(option: T): string {\n return this.displayWith()(option);\n }\n\n /**\n * Value an option contributes to the selection: the option's\n * {@link valueAttribute} property, or the option itself when unset.\n */\n getValue(option: T): unknown {\n const attr = this.valueAttribute();\n if (attr) {\n return (option as Record<string, unknown>)[attr];\n }\n return option;\n }\n\n /**\n * `@for` track key for the option list — the stringified\n * {@link getValue}, so object options must have a {@link valueAttribute}\n * that is unique across the list.\n */\n getTrackBy(option: T): string {\n return String(this.getValue(option));\n }\n\n /**\n * Whether an option's {@link getValue} strictly equals the current\n * selection. Object values without a {@link valueAttribute} therefore only\n * match by reference.\n */\n isSelected(option: T): boolean {\n return this.getValue(option) === this.internalValue();\n }\n\n /** Whether {@link disabledWith} rejects this option. */\n isOptionDisabled(option: T): boolean {\n return this.disabledWith()(option);\n }\n\n /**\n * Classes for one data-driven option row, folding in its disabled state and\n * whether it is the keyboard/hover-focused row.\n */\n itemClasses(option: T): string {\n const index = this.options().indexOf(option);\n const isDisabled = this.isOptionDisabled(option);\n return cn(\n 'relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 text-sm outline-none select-none',\n 'ltr:pr-8 ltr:pl-2 rtl:pl-8 rtl:pr-2',\n isDisabled\n ? 'text-muted-foreground cursor-not-allowed opacity-50'\n : 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground',\n !isDisabled && index === this.focusedIndex() && 'bg-accent text-accent-foreground'\n );\n }\n\n /**\n * Commits a data-driven option: stores its {@link getValue}, emits\n * {@link valueChange}, notifies the form, and closes the popup. A no-op for\n * options rejected by {@link disabledWith}.\n */\n selectOption(option: T): void {\n if (this.isOptionDisabled(option)) return;\n const val = this.getValue(option) as T;\n this.commit(val);\n }\n\n /** Opens or closes the popup; ignored while {@link isDisabled}. */\n toggle(): void {\n if (!this.isDisabled()) {\n this.open.update(v => !v);\n }\n }\n\n /**\n * Closes the popup and marks the control touched — so calling it also\n * triggers a reactive form's touched-state validation display.\n */\n close(): void {\n this.open.set(false);\n this._onTouched();\n }\n\n /**\n * Commits a raw value (used by projected `<ui-select-item>`, which has no\n * option object): stores it, emits {@link valueChange}, notifies the form\n * and closes. Unlike {@link selectOption} it applies no disabled check —\n * the caller is responsible for that.\n */\n select(val: T): void {\n this.commit(val);\n }\n\n /**\n * The one path a user-driven selection takes: store it, publish it through\n * the {@link value} model (which emits `valueChange` once), notify the form,\n * and close.\n */\n private commit(val: T): void {\n this.internalValue.set(val);\n this.value.set(val);\n this._onChange(val);\n this.close();\n }\n\n /**\n * Called by a projected `<ui-select-item>` on init so item-aligned\n * positioning can measure it. Keyed by value, so duplicate values overwrite\n * each other.\n */\n registerItem(value: string, element: HTMLElement): void {\n this.itemElements.set(value, element);\n }\n\n /** Undoes {@link registerItem} when a projected item is destroyed. */\n unregisterItem(value: string): void {\n this.itemElements.delete(value);\n }\n\n /**\n * `offsetTop` of the selected item inside the content, used to shift an\n * item-aligned popup so that row lands on the trigger. Falls back to the\n * first registered item, then `0`.\n */\n getSelectedItemOffset(): number {\n const currentValue = this.internalValue();\n if (currentValue !== undefined) {\n const element = this.itemElements.get(String(currentValue));\n if (element) {\n return element.offsetTop;\n }\n }\n const firstItem = this.itemElements.values().next().value;\n return firstItem ? firstItem.offsetTop : 0;\n }\n\n /**\n * The trigger button, whether rendered internally or projected as\n * `<ui-select-trigger>`; `null` before it exists. Used as the positioning\n * anchor for the content.\n */\n getTriggerElement(): HTMLElement | null {\n return this.el.nativeElement.querySelector('[data-slot=\"select-trigger\"]')\n ?? this.el.nativeElement.querySelector('button[role=\"combobox\"]');\n }\n\n /**\n * Resolved text direction from the computed style of the host, so it\n * reflects an inherited `dir` rather than only the {@link locale} input.\n */\n isRtl(): boolean {\n return isRtl(this.el.nativeElement);\n }\n\n /**\n * Trigger key handler: Enter, Space, ArrowUp and ArrowDown open the popup\n * (never close it — use {@link toggle} or Escape for that). Ignored while\n * {@link isDisabled}.\n */\n onTriggerKeyDown(event: KeyboardEvent): void {\n if (this.isDisabled()) return;\n\n switch (event.key) {\n case 'Enter':\n case ' ':\n case 'ArrowDown':\n case 'ArrowUp':\n event.preventDefault();\n if (!this.open()) {\n this.open.set(true);\n }\n break;\n }\n }\n\n private findNextEnabledIndex(startIndex: number, direction: 1 | -1): number {\n const opts = this.options();\n let index = startIndex + direction;\n while (index >= 0 && index < opts.length) {\n if (!this.isOptionDisabled(opts[index])) {\n return index;\n }\n index += direction;\n }\n return startIndex; // No enabled option found, stay at current\n }\n\n /**\n * Listbox key handler for data-driven mode: arrows move the focused row\n * (skipping {@link disabledWith} options and stopping at the ends rather\n * than wrapping), Enter/Space commit it, Escape and Tab close. A no-op when\n * {@link options} is empty.\n */\n onContentKeydown(event: KeyboardEvent): void {\n const opts = this.options();\n if (!opts.length) return;\n\n const currentIndex = this.focusedIndex();\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusedIndex.set(this.findNextEnabledIndex(currentIndex, 1));\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusedIndex.set(this.findNextEnabledIndex(currentIndex, -1));\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n if (opts[currentIndex] && !this.isOptionDisabled(opts[currentIndex])) {\n this.selectOption(opts[currentIndex]);\n }\n break;\n case 'Escape':\n event.preventDefault();\n this.close();\n break;\n case 'Tab':\n this.close();\n break;\n }\n }\n\n /**\n * `ControlValueAccessor` — accepts the form's value without emitting\n * {@link valueChange}. Note a non-`undefined` {@link value} input keeps\n * winning, since its effect re-applies on every change detection.\n */\n writeValue(value: T): void {\n this.internalValue.set(value);\n }\n\n /** `ControlValueAccessor` — stores the form's change callback. */\n registerOnChange(fn: (value: T) => void): void {\n this._onChange = fn;\n }\n\n /** `ControlValueAccessor` — stores the touched callback, fired by {@link close}. */\n registerOnTouched(fn: () => void): void {\n this._onTouched = fn;\n }\n\n /**\n * `ControlValueAccessor` — the form's disabled state, kept separate from\n * the {@link disabled} input and OR-ed with it in {@link isDisabled}.\n */\n setDisabledState(isDisabled: boolean): void {\n this._disabled.set(isDisabled);\n }\n}\n\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n inject,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { SELECT } from '../select.component';\nimport { SpinnerComponent } from '../../spinner';\nimport { SkeletonComponent } from '../../skeleton';\n\n@Component({\n selector: 'ui-select-trigger',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SpinnerComponent, SkeletonComponent],\n styleUrl: './select-trigger.component.css',\n template: `\n @if (skeleton()) {\n <ui-skeleton class=\"h-9 w-full rounded-md\" />\n } @else {\n <button\n type=\"button\"\n role=\"combobox\"\n [class]=\"classes()\"\n [disabled]=\"(select?.isDisabled() ?? false) || loading()\"\n [attr.aria-expanded]=\"select?.open()\"\n [attr.data-state]=\"select?.open() ? 'open' : 'closed'\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n aria-controls=\"select-content\"\n [attr.data-slot]=\"'select-trigger'\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n >\n <ng-content />\n @if (loading()) {\n <ui-spinner size=\"xs\" />\n } @else {\n <svg\n [class]=\"chevronClasses()\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n >\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M19 9l-7 7-7-7\" />\n </svg>\n }\n </button>\n }\n `,\n host: { class: 'contents' },\n})\nexport class SelectTriggerComponent {\n readonly select = inject(SELECT, { optional: true });\n /** Extra classes merged onto the trigger button, after the defaults so they can override them. */\n class = input('');\n /** Explicit accessible name; overrides the placeholder fallback in {@link resolvedAriaLabel}. */\n ariaLabel = input<string | undefined>(undefined);\n /**\n * Swaps the chevron for a spinner and disables the button, e.g. while\n * options are being fetched. The popup can still be opened\n * programmatically — only the trigger is blocked.\n */\n readonly loading = input(false);\n /**\n * Replaces the whole trigger with a fixed-height skeleton placeholder. Wins\n * over {@link loading}: nothing interactive is rendered at all, so use it\n * for initial page load and {@link loading} for a refresh.\n */\n readonly skeleton = input(false);\n\n /**\n * Accessible name for the trigger. `role=\"combobox\"` takes its name from the\n * author, *not* from its contents — so the visible `<ui-select-value>` text\n * does not name it and the control was reaching screen readers anonymous\n * (axe `button-name`). Fall back to the select's resolved placeholder, which\n * is the same string the user sees, unless the consumer supplies a name.\n */\n readonly resolvedAriaLabel = computed(\n () => this.ariaLabel() ?? this.select?.resolvedPlaceholder() ?? 'Select',\n );\n\n readonly classes = computed(() =>\n cn(\n 'border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 flex w-fit items-center justify-between rounded-md border bg-transparent text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4 dark:bg-input/50 dark:hover:bg-input/70',\n this.class()\n )\n );\n\n readonly chevronClasses = computed(() =>\n cn(\n 'size-4 opacity-50 shrink-0'\n )\n );\n\n /**\n * Toggles the parent select and stops propagation, so the select's\n * document-level outside-click listener does not immediately close what\n * this click just opened.\n */\n onClick(event: MouseEvent): void {\n event.stopPropagation();\n this.select?.toggle();\n }\n\n /**\n * Enter, Space and ArrowDown open the parent select — they never close it,\n * so the popup's own handler owns Escape/Tab. Ignored while the select is\n * disabled.\n */\n onKeyDown(event: KeyboardEvent): void {\n if (this.select?.isDisabled()) return;\n\n switch (event.key) {\n case 'Enter':\n case ' ':\n case 'ArrowDown':\n event.preventDefault();\n if (!this.select?.open()) {\n this.select?.open.set(true);\n }\n break;\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n inject,\n} from '@angular/core';\nimport { cn, stringifyValue } from '../../../lib/utils';\nimport { SELECT } from '../select.component';\n\n@Component({\n selector: 'ui-select-value',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (hasValue()) {\n <span class=\"truncate\">{{ shownValue() }}</span>\n } @else {\n <span class=\"text-muted-foreground truncate\">{{ effectivePlaceholder() }}</span>\n }\n `,\n host: {\n '[class]': 'hostClasses()',\n '[attr.data-slot]': '\"select-value\"'\n },\n})\nexport class SelectValueComponent {\n private readonly select = inject(SELECT, { optional: true });\n /**\n * Override for the empty-state placeholder. When unset, falls back to the\n * parent `<ui-select>`'s resolved placeholder (which itself falls back to\n * the locale's `selectPlaceholder` string).\n */\n placeholder = input<string>();\n /**\n * Renders this text instead of the parent select's raw value — use it to\n * show a label for a value that stringifies badly (an id, an object).\n * Overrides the value but not the empty state: when nothing is selected the\n * placeholder still shows.\n */\n displayValue = input<string | undefined>(undefined);\n\n /** Effective placeholder text: explicit input → parent select's placeholder/locale. */\n readonly effectivePlaceholder = computed(\n () => this.placeholder() ?? this.select?.resolvedPlaceholder() ?? 'Select...',\n );\n\n hasValue = computed(() => this.select?.internalValue() !== undefined && this.select?.internalValue() !== null);\n shownValue = computed(() => {\n const dv = this.displayValue();\n if (dv !== undefined) return dv;\n const val = this.select?.internalValue();\n if (val === undefined || val === null) return '';\n return stringifyValue(val);\n });\n\n hostClasses = computed(() =>\n cn(\n 'flex-1 truncate ltr:text-left rtl:text-right'\n )\n );\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n signal,\n ViewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { cn, getClippingRect } from '../../../lib/utils';\nimport { SELECT } from '../select.component';\n\n@Component({\n selector: 'ui-select-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (select?.open()) {\n <div\n #contentEl\n [class]=\"classes()\"\n [style]=\"positionStyles()\"\n role=\"listbox\"\n tabindex=\"-1\"\n [attr.data-slot]=\"'select-content'\"\n [attr.data-position]=\"position()\"\n (keydown)=\"onKeydown($event)\">\n <ng-content />\n </div>\n }\n `,\n host: { class: 'contents' },\n})\nexport class SelectContentComponent implements AfterViewInit {\n readonly select = inject(SELECT, { optional: true });\n private readonly el = inject(ElementRef);\n private readonly document = inject(DOCUMENT);\n\n /** Extra classes merged onto the popup panel, after the positioning classes so they can override them. */\n class = input('');\n /**\n * Fallback anchoring strategy, used only when there is no parent\n * `<ui-select>` — the parent's own `position` input wins. `item-aligned`\n * overlays the popup so the selected row sits on the trigger, `popper`\n * drops it beside the trigger; item-aligned silently degrades to popper\n * when it would clip the scroll boundary.\n */\n position = input<'popper' | 'item-aligned'>('item-aligned');\n /**\n * Preferred popper side. Only a preference: the side flips when the\n * opposite one has more room for the content, so a popup can still open\n * downward with `side=\"top\"`. Ignored while positioning stays item-aligned.\n */\n side = input<'top' | 'bottom'>('bottom');\n\n @ViewChild('contentEl') contentEl?: ElementRef<HTMLElement>;\n\n private readonly offsetY = signal(0);\n private readonly effectivePosition = signal<'popper' | 'item-aligned'>('item-aligned');\n private readonly effectiveSide = signal<'top' | 'bottom'>('bottom');\n private previousActiveElement: HTMLElement | null = null;\n\n constructor() {\n effect(() => {\n if (this.select?.open()) {\n this.previousActiveElement = this.document.activeElement as HTMLElement;\n\n setTimeout(() => {\n this.calculatePosition();\n this.focusContent();\n }, 0);\n } else {\n if (this.previousActiveElement && this.document.body.contains(this.previousActiveElement)) {\n this.previousActiveElement.focus();\n }\n this.previousActiveElement = null;\n this.effectivePosition.set(this.select?.position() ?? this.position());\n this.effectiveSide.set(this.side());\n }\n });\n }\n\n ngAfterViewInit(): void {\n if (this.select?.open()) {\n this.calculatePosition();\n this.focusContent();\n }\n }\n\n private calculatePosition(): void {\n const requestedPos = this.select?.position() ?? this.position();\n const contentEl = this.contentEl?.nativeElement;\n\n if (requestedPos === 'item-aligned' && contentEl) {\n const selectedOffset = this.select?.getSelectedItemOffset() ?? 0;\n const triggerEl = this.select?.getTriggerElement();\n\n if (triggerEl) {\n const triggerRect = triggerEl.getBoundingClientRect();\n const contentHeight = contentEl.scrollHeight;\n const boundary = getClippingRect(contentEl);\n const viewportPadding = 8;\n\n const proposedTop = triggerRect.top - selectedOffset - 4;\n const proposedBottom = proposedTop + contentHeight;\n\n const wouldOverflowTop = proposedTop < boundary.top + viewportPadding;\n const wouldOverflowBottom = proposedBottom > boundary.bottom - viewportPadding;\n\n if (wouldOverflowTop || wouldOverflowBottom) {\n this.effectivePosition.set('popper');\n this.offsetY.set(0);\n this.resolvePopperSide(triggerRect, contentHeight, boundary, viewportPadding);\n } else {\n this.effectivePosition.set('item-aligned');\n this.offsetY.set(-(selectedOffset + 4));\n this.effectiveSide.set('bottom');\n }\n } else {\n this.effectivePosition.set('item-aligned');\n this.offsetY.set(-(selectedOffset + 4));\n this.effectiveSide.set('bottom');\n }\n } else {\n this.effectivePosition.set('popper');\n this.offsetY.set(0);\n const triggerEl = this.select?.getTriggerElement();\n if (contentEl && triggerEl) {\n const triggerRect = triggerEl.getBoundingClientRect();\n const contentHeight = contentEl.scrollHeight;\n const boundary = getClippingRect(contentEl);\n this.resolvePopperSide(triggerRect, contentHeight, boundary, 8);\n } else {\n this.effectiveSide.set(this.side());\n }\n }\n }\n\n private resolvePopperSide(\n triggerRect: DOMRect,\n contentHeight: number,\n boundary: DOMRect,\n padding: number,\n ): void {\n const preferredSide = this.side();\n const spaceBelow = boundary.bottom - triggerRect.bottom - padding;\n const spaceAbove = triggerRect.top - boundary.top - padding;\n\n if (preferredSide === 'top') {\n this.effectiveSide.set(contentHeight <= spaceAbove || spaceAbove >= spaceBelow ? 'top' : 'bottom');\n } else {\n this.effectiveSide.set(contentHeight <= spaceBelow || spaceBelow >= spaceAbove ? 'bottom' : 'top');\n }\n }\n\n private focusContent(): void {\n if (!this.contentEl?.nativeElement) return;\n\n const content = this.contentEl.nativeElement;\n const selectedItem = content.querySelector<HTMLElement>('[data-state=\"checked\"]');\n\n if (selectedItem) {\n selectedItem.focus({ preventScroll: true });\n } else {\n content.focus({ preventScroll: true });\n }\n }\n\n /**\n * Roving-focus key handler over the projected `<ui-select-item>` elements:\n * arrows move focus and wrap around the ends, Enter/Space click the focused\n * item. Items marked `data-disabled` are excluded from the ring.\n */\n onKeydown(event: KeyboardEvent): void {\n if (!this.contentEl?.nativeElement) return;\n\n const items = Array.from(this.contentEl.nativeElement.querySelectorAll<HTMLElement>('[data-slot=\"select-item\"]:not([data-disabled])'));\n\n if (!items.length) return;\n\n const currentFocus = this.document.activeElement as HTMLElement;\n const currentIndex = items.indexOf(currentFocus);\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n const nextIndex = (currentIndex + 1) % items.length;\n items[nextIndex]?.focus();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n const prevIndex = (currentIndex - 1 + items.length) % items.length;\n items[prevIndex]?.focus();\n } else if (event.key === 'Enter' || event.key === ' ') {\n if (currentIndex >= 0) {\n items[currentIndex].click();\n event.preventDefault();\n }\n }\n }\n\n positionStyles = computed(() => {\n const pos = this.effectivePosition();\n if (pos === 'item-aligned') {\n const offset = this.offsetY();\n return `top: ${offset}px; margin-top: 0;`;\n }\n return '';\n });\n\n classes = computed(() => {\n const pos = this.effectivePosition();\n const isItemAligned = pos === 'item-aligned';\n const side = this.effectiveSide();\n\n const popperSideClass = side === 'top' ? 'bottom-full mb-1' : 'top-full mt-1';\n\n return cn(\n 'absolute z-50 max-h-96 min-w-[8rem] w-full max-w-[calc(100vw-2rem)] overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n 'animate-in fade-in-0 zoom-in-95',\n isItemAligned ? 'top-0' : popperSideClass,\n 'ltr:left-0 rtl:right-0',\n this.class()\n );\n });\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n OnDestroy,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { SELECT } from '../select.component';\n\n@Component({\n selector: 'ui-select-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-content />\n <span [class]=\"checkmarkClasses()\">\n @if (isSelected()) {\n <svg class=\"size-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M5 13l4 4L19 7\" />\n </svg>\n }\n </span>\n `,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"option\"',\n '[attr.aria-selected]': 'isSelected()',\n '[attr.data-state]': 'isSelected() ? \"checked\" : \"unchecked\"',\n '[attr.data-disabled]': 'disabled() || null',\n '[attr.aria-disabled]': 'disabled() || null',\n '[attr.data-slot]': '\"select-item\"',\n '[attr.tabindex]': '\"-1\"',\n '(click)': 'onClick()',\n },\n})\nexport class SelectItemComponent implements AfterViewInit, OnDestroy {\n private readonly select = inject(SELECT, { optional: true });\n private readonly el = inject(ElementRef);\n\n /**\n * Value committed to the parent select when this row is chosen, and\n * compared against the current selection to show the checkmark. Also the\n * key the item registers itself under for item-aligned positioning, so it\n * must be unique within one content.\n */\n value = input.required<string>();\n /**\n * Dims the row, marks it `pointer-events-none` and makes {@link onClick} a\n * no-op. It also sets the `data-disabled` and `aria-disabled` attributes, so\n * the row drops out of the content's arrow-key ring (which filters on\n * `:not([data-disabled])`) and is announced as disabled.\n */\n disabled = input(false);\n /** Extra classes merged onto the host row, after the defaults so they can override them. */\n class = input('');\n\n isSelected = computed(() => this.select?.internalValue() === this.value());\n\n classes = computed(() => {\n return cn(\n 'focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:size-4',\n 'ltr:pr-8 ltr:pl-2 rtl:pl-8 rtl:pr-2',\n this.disabled() && 'pointer-events-none opacity-50',\n this.class()\n );\n });\n\n checkmarkClasses = computed(() => {\n return cn(\n 'absolute flex size-3.5 items-center justify-center ltr:right-2 rtl:left-2'\n );\n });\n\n ngAfterViewInit(): void {\n this.select?.registerItem(this.value(), this.el.nativeElement);\n }\n\n ngOnDestroy(): void {\n this.select?.unregisterItem(this.value());\n }\n\n /**\n * Host click handler — commits {@link value} to the parent select and\n * closes it. Skipped when {@link disabled}.\n */\n onClick(): void {\n if (!this.disabled()) {\n this.select?.select(this.value());\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-select-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n '[class]': '\"p-1 contents\"',\n '[attr.role]': '\"group\"',\n '[attr.data-slot]': '\"select-group\"',\n },\n})\nexport class SelectGroupComponent { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-select-label',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'text-muted-foreground px-2 py-1.5 text-xs',\n '[attr.data-slot]': '\"select-label\"',\n },\n})\nexport class SelectLabelComponent { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-select-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: ``,\n host: {\n class: 'bg-border pointer-events-none -mx-1 my-1 h-px',\n '[attr.data-slot]': '\"select-separator\"',\n },\n})\nexport class SelectSeparatorComponent { }\n","import type { LocaleMeta } from '../../lib/i18n';\n\n/**\n * Locale dictionary for `<ui-pagination>` and its sub-components (previous,\n * next, ellipsis).\n *\n * The default English strings exactly match the previously-hardcoded values\n * so consumers who don't wire a locale see no behavior change.\n */\nexport interface PaginationLocale extends LocaleMeta {\n /** Text for the \"Previous page\" button. */\n previous: string;\n /** Text for the \"Next page\" button. */\n next: string;\n /** `sr-only` text inside the ellipsis indicator. */\n morePages: string;\n /** `aria-label` value for the root `<nav>`. */\n pagination: string;\n}\n\nexport const PAGINATION_LOCALES: Record<string, PaginationLocale> = {\n en: {\n code: 'en',\n previous: 'Previous',\n next: 'Next',\n morePages: 'More pages',\n pagination: 'pagination',\n },\n he: {\n code: 'he',\n rtl: true,\n previous: 'הקודם',\n next: 'הבא',\n morePages: 'עוד עמודים',\n pagination: 'ניווט עמודים',\n },\n ar: {\n code: 'ar',\n rtl: true,\n previous: 'السابق',\n next: 'التالي',\n morePages: 'المزيد من الصفحات',\n pagination: 'ترقيم الصفحات',\n },\n de: {\n code: 'de',\n previous: 'Zurück',\n next: 'Weiter',\n morePages: 'Mehr Seiten',\n pagination: 'Seitennummerierung',\n },\n fr: {\n code: 'fr',\n previous: 'Précédent',\n next: 'Suivant',\n morePages: 'Plus de pages',\n pagination: 'pagination',\n },\n es: {\n code: 'es',\n previous: 'Anterior',\n next: 'Siguiente',\n morePages: 'Más páginas',\n pagination: 'paginación',\n },\n ja: {\n code: 'ja',\n previous: '前へ',\n next: '次へ',\n morePages: 'その他のページ',\n pagination: 'ページネーション',\n },\n zh: {\n code: 'zh',\n previous: '上一页',\n next: '下一页',\n morePages: '更多页',\n pagination: '分页',\n },\n ru: {\n code: 'ru',\n previous: 'Назад',\n next: 'Далее',\n morePages: 'Больше страниц',\n pagination: 'Пагинация',\n },\n pt: {\n code: 'pt',\n previous: 'Anterior',\n next: 'Próximo',\n morePages: 'Mais páginas',\n pagination: 'Paginação',\n },\n};\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n} from '@angular/core';\nimport { cn } from '../../lib/utils';\nimport { createLocaleBindings, provideComponentLocale, type LocaleInput } from '../../lib/i18n';\nimport { PAGINATION_LOCALES, type PaginationLocale } from './pagination.locales';\n\n@Component({\n selector: 'ui-pagination',\n providers: [provideComponentLocale(() => PaginationComponent)],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <nav\n role=\"navigation\"\n [attr.aria-label]=\"t().pagination\"\n [attr.dir]=\"dir()\"\n [class]=\"classes()\"\n [attr.data-slot]=\"'pagination'\">\n @if (totalPages() > 0) {\n <!-- Simple mode: auto-generate pagination -->\n <ul class=\"flex flex-row flex-wrap items-center gap-1\" data-slot=\"pagination-content\">\n <!-- Previous button -->\n <li>\n <button\n type=\"button\"\n [class]=\"navButtonClasses()\"\n [disabled]=\"currentPage() <= 1\"\n data-slot=\"pagination-previous\"\n (click)=\"onPageChange(currentPage() - 1)\">\n <svg class=\"h-4 w-4 rtl:rotate-180\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 19l-7-7 7-7\" />\n </svg>\n <span>{{ t().previous }}</span>\n </button>\n </li>\n\n <!-- Page numbers -->\n @for (page of pageNumbers(); track $index) {\n <li>\n @if (page === -1) {\n <span class=\"flex h-9 w-9 items-center justify-center\" data-slot=\"pagination-ellipsis\" aria-hidden=\"true\">\n <svg class=\"h-4 w-4\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <circle cx=\"12\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"19\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"5\" cy=\"12\" r=\"1.5\" />\n </svg>\n <span class=\"sr-only\">{{ t().morePages }}</span>\n </span>\n } @else {\n <button\n type=\"button\"\n [class]=\"pageLinkClasses(page === currentPage())\"\n [attr.aria-current]=\"page === currentPage() ? 'page' : null\"\n data-slot=\"pagination-link\"\n (click)=\"onPageChange(page)\">\n {{ page }}\n </button>\n }\n </li>\n }\n\n <!-- Next button -->\n <li>\n <button\n type=\"button\"\n [class]=\"navButtonClasses()\"\n [disabled]=\"currentPage() >= totalPages()\"\n data-slot=\"pagination-next\"\n (click)=\"onPageChange(currentPage() + 1)\">\n <span>{{ t().next }}</span>\n <svg class=\"h-4 w-4 rtl:rotate-180\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n </li>\n </ul>\n } @else {\n <!-- Template mode: project content -->\n <ng-content />\n }\n </nav>\n `,\n host: { class: 'contents' },\n})\nexport class PaginationComponent {\n /** Extra classes merged onto the `<nav>`. The bar centres itself and wraps its rows, so it survives narrow viewports without help. */\n readonly class = input('');\n\n // Simple mode inputs\n /**\n * The active page, **1-based**. Purely presentational input — the component\n * holds no state and re-renders only when you feed the value from\n * {@link pageChange} back in. Values outside 1..{@link totalPages} simply mean\n * no page is highlighted.\n */\n readonly currentPage = input(0);\n /**\n * Total number of pages, and the switch between the component's two modes:\n * greater than 0 renders the built-in bar from these inputs, and 0 (the\n * default) renders projected content instead. Also the upper bound\n * {@link onPageChange} validates against.\n */\n readonly totalPages = input(0);\n /**\n * How many pages to show on each side of {@link currentPage} between the\n * ellipses. The bar shows at most `siblingCount * 2 + 5` numbers (siblings,\n * first, last, current and two ellipsis slots) before it starts collapsing;\n * below that threshold every page is listed and no ellipsis appears.\n */\n readonly siblingCount = input(1);\n\n /**\n * Locale dictionary or registry key (`'en'`, `'he'`, …). Falls back to the\n * app-wide `UI_LOCALE_ID` token when not set.\n */\n readonly locale = input<LocaleInput<PaginationLocale>>();\n\n // Output for page changes\n /** The 1-based page the user asked for. Nothing moves until you write it back into {@link currentPage}. Already filtered: never out of range and never the page already shown. */\n readonly pageChange = output<number>();\n\n private readonly i18n = createLocaleBindings(this.locale, PAGINATION_LOCALES);\n protected readonly t = this.i18n.t;\n protected readonly dir = this.i18n.dir;\n\n readonly classes = computed(() => cn('mx-auto flex w-full justify-center', this.class()));\n\n readonly navButtonClasses = computed(() => cn(\n 'inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium h-9 px-4 py-2 cursor-pointer',\n 'hover:bg-accent hover:text-accent-foreground transition-colors',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50'\n ));\n\n readonly pageLinkClasses = (isActive: boolean): string => cn(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer h-9 w-9',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n isActive\n ? 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground'\n : 'hover:bg-accent hover:text-accent-foreground'\n );\n\n /**\n * The page buttons to render, in order, with `-1` standing in for an ellipsis.\n * A collapsed bar contains two of those, so the template tracks this list by\n * index rather than by value — tracking by value would give the two ellipses\n * the same key and trip Angular's duplicate-key check (NG0955).\n */\n readonly pageNumbers = computed(() => {\n const total = this.totalPages();\n const current = this.currentPage();\n const siblings = this.siblingCount();\n\n if (total <= 0) return [];\n\n const range = (start: number, end: number): number[] =>\n Array.from({ length: end - start + 1 }, (_, i) => start + i);\n\n const totalPageNumbers = siblings * 2 + 5; // siblings + first + last + current + 2 ellipsis\n\n if (total <= totalPageNumbers) {\n return range(1, total);\n }\n\n const leftSiblingIndex = Math.max(current - siblings, 1);\n const rightSiblingIndex = Math.min(current + siblings, total);\n\n const showLeftEllipsis = leftSiblingIndex > 2;\n const showRightEllipsis = rightSiblingIndex < total - 1;\n\n if (!showLeftEllipsis && showRightEllipsis) {\n const leftCount = 3 + 2 * siblings;\n return [...range(1, leftCount), -1, total];\n }\n\n if (showLeftEllipsis && !showRightEllipsis) {\n const rightCount = 3 + 2 * siblings;\n return [1, -1, ...range(total - rightCount + 1, total)];\n }\n\n return [1, -1, ...range(leftSiblingIndex, rightSiblingIndex), -1, total];\n });\n\n /** Requests a page. Emits {@link pageChange} only for an in-range page that differs from {@link currentPage}, so it is safe to call from prev/next arithmetic that may run off either end. */\n onPageChange(page: number): void {\n if (page >= 1 && page <= this.totalPages() && page !== this.currentPage()) {\n this.pageChange.emit(page);\n }\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-pagination-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"pagination-content\"',\n },\n})\nexport class PaginationContentComponent {\n /** Extra classes merged onto the row of pagination items. Only needed in template mode; the built-in bar renders its own row (and, unlike this one, lets it wrap). */\n class = input('');\n\n classes = computed(() => cn('flex flex-row items-center gap-1', this.class()));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-pagination-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"pagination-item\"',\n },\n})\nexport class PaginationItemComponent {\n /** Extra classes merged onto the item wrapper, which carries no styling of its own — it exists as a slot for one link, ellipsis or nav button in template mode. */\n class = input('');\n classes = computed(() => cn('', this.class()));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-pagination-link',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button\n type=\"button\"\n [class]=\"classes()\"\n [attr.aria-current]=\"isActive() ? 'page' : null\"\n [attr.data-slot]=\"'pagination-link'\"\n [attr.data-size]=\"size()\"\n [disabled]=\"disabled()\"\n >\n <ng-content />\n </button>\n `,\n styleUrl: './pagination-link.component.css',\n host: { class: 'contents' },\n})\nexport class PaginationLinkComponent {\n /** Marks this as the current page: applies the outlined style and sets `aria-current=\"page\"`, which is what assistive tech reads. Set it on exactly one link in the row. */\n isActive = input(false);\n /** Size token, published as `data-size` and resolved by the component's density CSS into height and inline padding (`icon`, the default, is the square 36×36 page box). It scales with `--density-button`/`--density`. */\n size = input<'default' | 'sm' | 'lg' | 'icon'>('icon');\n /** Extra classes merged onto the button. Because the size rules live in a `@layer components` block, a `h-*`/`w-*` utility passed here wins over them. */\n class = input('');\n /** Disables the button, dimming it and removing it from the tab order. Note it is a `<button>`, not an anchor, so there is no href to fall back to; wire navigation to its click. */\n disabled = input(false);\n\n classes = computed(() => {\n const sizeClasses = {\n default: '',\n sm: 'text-xs',\n lg: '',\n icon: '',\n };\n return cn(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50',\n this.isActive()\n ? 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground'\n : 'hover:bg-accent hover:text-accent-foreground',\n sizeClasses[this.size()],\n this.class()\n );\n });\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleSelector, type LocaleInput } from '../../../lib/i18n';\nimport { PAGINATION_LOCALES, type PaginationLocale } from '../pagination.locales';\n\n@Component({\n selector: 'ui-pagination-previous',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button type=\"button\" [class]=\"classes()\" [attr.data-slot]=\"'pagination-previous'\" [disabled]=\"disabled()\">\n <svg class=\"h-4 w-4 rtl:rotate-180\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 19l-7-7 7-7\" />\n </svg>\n <span>{{ t().previous }}</span>\n </button>\n `,\n host: { class: 'contents' },\n})\nexport class PaginationPreviousComponent {\n /** Extra classes merged onto the \"previous\" button. Its chevron is flipped automatically in RTL. */\n readonly class = input('');\n /** Disables the button — set it on page 1. Nothing computes this for you in template mode, and the component emits no event of its own; bind your own click handler. */\n readonly disabled = input(false);\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<PaginationLocale>>();\n\n protected readonly t = createLocaleSelector(this.locale, PAGINATION_LOCALES);\n\n readonly classes = computed(() => cn(\n 'inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium h-9 px-4 py-2 cursor-pointer',\n 'hover:bg-accent hover:text-accent-foreground transition-colors',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleSelector, type LocaleInput } from '../../../lib/i18n';\nimport { PAGINATION_LOCALES, type PaginationLocale } from '../pagination.locales';\n\n@Component({\n selector: 'ui-pagination-next',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <button type=\"button\" [class]=\"classes()\" [attr.data-slot]=\"'pagination-next'\" [disabled]=\"disabled()\">\n <span>{{ t().next }}</span>\n <svg class=\"h-4 w-4 rtl:rotate-180\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5l7 7-7 7\" />\n </svg>\n </button>\n `,\n host: { class: 'contents' },\n})\nexport class PaginationNextComponent {\n /** Extra classes merged onto the \"next\" button. Its chevron is flipped automatically in RTL. */\n readonly class = input('');\n /** Disables the button — set it on the last page. Nothing computes this for you in template mode, and the component emits no event of its own; bind your own click handler. */\n readonly disabled = input(false);\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<PaginationLocale>>();\n\n protected readonly t = createLocaleSelector(this.locale, PAGINATION_LOCALES);\n\n readonly classes = computed(() => cn(\n 'inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md text-sm font-medium h-9 px-4 py-2 cursor-pointer',\n 'hover:bg-accent hover:text-accent-foreground transition-colors',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleSelector, type LocaleInput } from '../../../lib/i18n';\nimport { PAGINATION_LOCALES, type PaginationLocale } from '../pagination.locales';\n\n@Component({\n selector: 'ui-pagination-ellipsis',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span [class]=\"classes()\" [attr.data-slot]=\"'pagination-ellipsis'\" aria-hidden=\"true\">\n <svg class=\"h-4 w-4\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <circle cx=\"12\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"19\" cy=\"12\" r=\"1.5\" />\n <circle cx=\"5\" cy=\"12\" r=\"1.5\" />\n </svg>\n <span class=\"sr-only\">{{ t().morePages }}</span>\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class PaginationEllipsisComponent {\n /** Extra classes merged onto the gap marker. It matches a page link's 36×36 box so the row stays evenly spaced, is `aria-hidden`, and carries a localized \"more pages\" label for screen readers. */\n readonly class = input('');\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<PaginationLocale>>();\n\n protected readonly t = createLocaleSelector(this.locale, PAGINATION_LOCALES);\n\n readonly classes = computed(() => cn(\n 'flex h-9 w-9 items-center justify-center',\n this.class()\n ));\n}\n","import {\n Component,\n computed,\n input,\n output,\n ChangeDetectionStrategy,\n ElementRef,\n inject,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport {\n SelectComponent,\n SelectTriggerComponent,\n SelectValueComponent,\n SelectContentComponent,\n SelectItemComponent\n} from '../../select';\nimport {\n PaginationComponent,\n PaginationContentComponent,\n PaginationItemComponent,\n PaginationLinkComponent\n} from '../../pagination';\nimport { IconComponent } from '../../icon';\nimport { PaginationState } from '../data-table.types';\nimport { isRtl } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-data-table-pagination',\n imports: [\n CommonModule,\n FormsModule,\n\n SelectComponent,\n SelectTriggerComponent,\n SelectValueComponent,\n SelectContentComponent,\n SelectItemComponent,\n PaginationComponent,\n PaginationContentComponent,\n PaginationItemComponent,\n PaginationLinkComponent,\n IconComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './data-table-pagination.component.html',\n})\nexport class DataTablePaginationComponent {\n private readonly _el = inject(ElementRef);\n\n /**\n * True when the host's resolved writing direction is RTL. Used only to mirror\n * the chevron icons — the button order itself is left to the flex layout.\n * Read from the live DOM, so it is not reactive to a `dir` change.\n */\n isRtl(): boolean {\n return isRtl(this._el.nativeElement);\n }\n\n /**\n * Total row count across all pages (not the current page's length). Drives the\n * page count and therefore the next/last disabled state; leave it at 0 and the\n * control collapses to a single page.\n */\n total = input(0);\n /**\n * The controlled page index + size. Nothing is stored locally: the buttons\n * only emit a new state on {@link paginationChange}, so the display does not\n * move until you feed the value back in.\n */\n state = input.required<PaginationState>();\n /** Choices in the page-size select. A size not in this list still displays, as the placeholder. */\n pageSizeOptions = input<number[]>([10, 20, 30, 40, 50]);\n /** Hides the page-size select when false; the page buttons remain. */\n showPageSizeSelector = input(true);\n /** Label beside the page-size select; hidden below the `sm` breakpoint. */\n rowsPerPageLabel = input('Rows per page');\n /** Prefix of the \"Page X of Y\" indicator. */\n pageLabel = input('Page');\n /** The word between current page and total pages in \"Page X of Y\". */\n ofLabel = input('of');\n\n /**\n * The requested next state, already clamped to `[0, totalPages - 1]`. Changing\n * the page size resets `pageIndex` to 0. The component never paginates data\n * itself — slice your rows from this.\n */\n paginationChange = output<PaginationState>();\n\n pageSizeString = computed(() => this.state().pageSize.toString());\n currentPage = computed(() => this.state().pageIndex + 1);\n totalPages = computed(() => {\n const pageSize = this.state().pageSize > 0 ? this.state().pageSize : 10;\n return Math.max(1, Math.ceil(this.total() / pageSize));\n });\n\n canPrevious = computed(() => this.state().pageIndex > 0);\n canNext = computed(() => this.state().pageIndex < this.totalPages() - 1);\n\n /**\n * Emits the new page size and jumps back to the first page. A non-numeric or\n * non-positive `value` keeps the current size (but still resets to page 0).\n */\n onPageSizeChange(value: string): void {\n const pageSize = Number(value);\n this.paginationChange.emit({\n pageIndex: 0,\n pageSize: pageSize > 0 ? pageSize : this.state().pageSize,\n });\n }\n\n /** Emits page 0, keeping the page size. The button is hidden below the `lg` breakpoint. */\n onFirstPage(): void {\n this.paginationChange.emit({ ...this.state(), pageIndex: 0 });\n }\n\n /**\n * Emits the last page index derived from {@link total} and the current page\n * size. Hidden below the `lg` breakpoint, so it is not the only way to reach\n * the end on mobile.\n */\n onLastPage(): void {\n this.paginationChange.emit({\n ...this.state(),\n pageIndex: Math.max(0, this.totalPages() - 1),\n });\n }\n\n /** Emits the next page, clamped to the last page; the button is disabled there anyway. */\n onNextPage(): void {\n this.paginationChange.emit({\n ...this.state(),\n pageIndex: Math.min(this.totalPages() - 1, this.state().pageIndex + 1),\n });\n }\n\n /** Emits the previous page, clamped at 0; the button is disabled on the first page. */\n onPreviousPage(): void {\n this.paginationChange.emit({\n ...this.state(),\n pageIndex: Math.max(0, this.state().pageIndex - 1),\n });\n }\n}\n","<div class=\"flex flex-wrap items-center justify-between gap-y-2 px-2\">\n <div class=\"flex-1 text-sm text-muted-foreground\">\n </div>\n <div class=\"flex items-center space-x-2 sm:space-x-6 lg:space-x-8\">\n @if (showPageSizeSelector()) {\n <div class=\"flex items-center space-x-2\">\n <p class=\"hidden sm:inline text-sm font-medium\">{{ rowsPerPageLabel() }}</p>\n <ui-select\n [ngModel]=\"pageSizeString()\"\n (ngModelChange)=\"onPageSizeChange($event)\">\n <ui-select-trigger class=\"h-8 w-[70px]\">\n <ui-select-value [placeholder]=\"pageSizeString()\" />\n </ui-select-trigger>\n <ui-select-content side=\"top\">\n @for (size of pageSizeOptions(); track size) {\n <ui-select-item [value]=\"size.toString()\">\n {{ size }}\n </ui-select-item>\n }\n </ui-select-content>\n </ui-select>\n </div>\n }\n <div class=\"flex items-center space-x-2\">\n <ui-pagination [class]=\"'mx-0 w-auto'\">\n <ui-pagination-content>\n <ui-pagination-item>\n <ui-pagination-link\n class=\"hidden lg:flex border border-input rounded-md bg-background shadow-sm\"\n size=\"icon\"\n [disabled]=\"!canPrevious()\"\n (click)=\"onFirstPage()\"\n (keydown.enter)=\"onFirstPage()\"\n (keydown.space)=\"onFirstPage()\"\n >\n <span class=\"sr-only\">Go to first page</span>\n <ui-icon [name]=\"isRtl() ? 'chevrons-right' : 'chevrons-left'\" class=\"h-4 w-4\" />\n </ui-pagination-link>\n </ui-pagination-item>\n <ui-pagination-item>\n <ui-pagination-link\n class=\"border border-input rounded-md bg-background shadow-sm\"\n size=\"icon\"\n [disabled]=\"!canPrevious()\"\n (click)=\"onPreviousPage()\"\n (keydown.enter)=\"onPreviousPage()\"\n (keydown.space)=\"onPreviousPage()\"\n >\n <span class=\"sr-only\">Go to previous page</span>\n <ui-icon [name]=\"isRtl() ? 'chevron-right' : 'chevron-left'\" class=\"h-4 w-4\" />\n </ui-pagination-link>\n </ui-pagination-item>\n \n <div class=\"flex w-auto min-w-[80px] sm:min-w-[100px] items-center justify-center text-sm font-medium\">\n {{ pageLabel() }} {{ currentPage() }} {{ ofLabel() }} {{ totalPages() }}\n </div>\n\n <ui-pagination-item>\n <ui-pagination-link\n class=\"border border-input rounded-md bg-background shadow-sm\"\n size=\"icon\"\n [disabled]=\"!canNext()\"\n (click)=\"onNextPage()\"\n (keydown.enter)=\"onNextPage()\"\n (keydown.space)=\"onNextPage()\"\n >\n <span class=\"sr-only\">Go to next page</span>\n <ui-icon [name]=\"isRtl() ? 'chevron-left' : 'chevron-right'\" class=\"h-4 w-4\" />\n </ui-pagination-link>\n </ui-pagination-item>\n <ui-pagination-item>\n <ui-pagination-link\n class=\"hidden lg:flex border border-input rounded-md bg-background shadow-sm\"\n size=\"icon\"\n [disabled]=\"!canNext()\"\n (click)=\"onLastPage()\"\n (keydown.enter)=\"onLastPage()\"\n (keydown.space)=\"onLastPage()\"\n >\n <span class=\"sr-only\">Go to last page</span>\n <ui-icon [name]=\"isRtl() ? 'chevrons-left' : 'chevrons-right'\" class=\"h-4 w-4\" />\n </ui-pagination-link>\n </ui-pagination-item>\n </ui-pagination-content>\n </ui-pagination>\n </div>\n </div>\n</div>\n","/**\n * Touch device detection and gesture utilities.\n *\n * Provides helpers for long-press, double-tap, and touch detection\n * so components can support touch-only devices alongside mouse input.\n *\n * ### The rule every gesture here obeys\n *\n * **More than one finger means pan and zoom, and nothing else.** Not a press,\n * not a tap, not a drag — whatever a first finger had begun is given up the\n * moment a second arrives, and no gesture may start while more than one finger\n * is down.\n *\n * It reads as an obvious thing to remember and it is not, because a browser\n * will not tell you a gesture has changed meaning. It re-fires `touchstart`\n * for the new finger and leaves you to notice, and every one of these helpers\n * has been caught not noticing:\n *\n * - `onLongPress` assigned a fresh timer over a pending one, so the first was\n * unreachable and fired regardless — two fingers did not merely fail to\n * suppress a context menu, they guaranteed one.\n * - `onDoubleTap` counted any two `touchend` events in 300ms, including a\n * finger lifting out of a pinch.\n *\n * So when adding a gesture here, or a surface that owns a drag: check the\n * finger count on every event, not only the first. `touches.length` on a\n * `touchend` counts the fingers still down; for pointer events the same\n * question is {@link isSecondaryTouch}.\n *\n * `onPointerDrag` is the one helper below that does NOT yet enforce this — it\n * keeps following `touches[0]` through a pinch. It is used by sliders and\n * pickers rather than by a pannable canvas, where the answer may legitimately\n * differ, so it is left as it is deliberately rather than by omission.\n */\n\n/** Detect if the device has a coarse pointer (touch screen) */\n/**\n * Whether this pointer is an additional finger in a multi-touch gesture.\n *\n * Two fingers mean pan and zoom in every canvas application, so anything a\n * first finger had started — dragging a node, drawing a connection, moving a\n * frame — has to be given up when a second arrives. Each surface that owns a\n * drag has to ask this; it was missed once per surface until it lived in one\n * place.\n *\n * Narrowed to touch on purpose. A synthetic `PointerEvent` reports\n * `isPrimary: false` by default, so an unqualified check treats every\n * dispatched event in every test as a second finger.\n */\nexport function isSecondaryTouch(event: PointerEvent): boolean {\n return event.pointerType === 'touch' && !event.isPrimary;\n}\n\nexport function isTouchDevice(): boolean {\n return globalThis.window?.matchMedia('(pointer: coarse)').matches ?? false;\n}\n\n/** Detect if the device supports hover (mouse/trackpad) */\nexport function hasHover(): boolean {\n return globalThis.window?.matchMedia('(hover: hover)').matches ?? true;\n}\n\n/**\n * Long-press detection — calls `callback` after the user holds a touch\n * for `duration` ms without moving more than 10px.\n *\n * @returns A cleanup function to remove all listeners.\n */\nexport function onLongPress(\n element: HTMLElement,\n callback: (event: TouchEvent) => void,\n duration = 500\n): () => void {\n let timer: ReturnType<typeof setTimeout> | null = null;\n /** A copy, not the live `Touch`: only the point the finger started at matters. */\n let startTouch: { clientX: number; clientY: number } | null = null;\n\n const cancel = (): void => {\n if (timer) clearTimeout(timer);\n timer = null;\n startTouch = null;\n };\n\n const onTouchStart = (e: TouchEvent): void => {\n /*\n * Clear FIRST, because `touchstart` fires again for every finger that\n * joins.\n *\n * Assigning a fresh timer over a pending one leaked the original: the\n * variable pointed at the new timer, so the move handler, the lift and\n * every later finger all cancelled the wrong one. The first simply\n * fired on schedule, whatever the hand was doing by then — which is\n * how a two-finger pan opened a context menu.\n */\n cancel();\n\n // Two fingers mean pan and zoom, in this and every canvas application.\n // There is no press to wait for, so none is started.\n if (e.touches.length !== 1) return;\n\n const touch = e.touches[0];\n startTouch = { clientX: touch.clientX, clientY: touch.clientY };\n timer = setTimeout(() => {\n timer = null;\n callback(e);\n }, duration);\n };\n\n const onTouchMove = (e: TouchEvent): void => {\n if (!startTouch || !timer) return;\n\n // A finger arriving mid-press is handled by `onTouchStart`; this is the\n // belt to that braces, for a platform that reports the extra contact\n // only on the move.\n if (e.touches.length !== 1) {\n cancel();\n return;\n }\n\n const dx = e.touches[0].clientX - startTouch.clientX;\n const dy = e.touches[0].clientY - startTouch.clientY;\n if (Math.hypot(dx, dy) > 10) cancel();\n };\n\n const onTouchEnd = (): void => {\n cancel();\n };\n\n element.addEventListener('touchstart', onTouchStart, { passive: true });\n element.addEventListener('touchmove', onTouchMove, { passive: true });\n element.addEventListener('touchend', onTouchEnd);\n element.addEventListener('touchcancel', onTouchEnd);\n\n return () => {\n if (timer) clearTimeout(timer);\n element.removeEventListener('touchstart', onTouchStart);\n element.removeEventListener('touchmove', onTouchMove);\n element.removeEventListener('touchend', onTouchEnd);\n element.removeEventListener('touchcancel', onTouchEnd);\n };\n}\n\n/**\n * How far a finger may travel and still have been a tap rather than a drag.\n *\n * The same 10px the long press allows, plus a little: a tap is a poke, and a\n * thumb on glass never lands and leaves at exactly one point.\n */\nconst TAP_SLOP_PX = 12;\n\n/**\n * How far apart two taps may land and still be one double tap.\n *\n * Generous, because a double tap is aimed at a thing rather than a pixel, but\n * nothing like the whole screen — which is what \"anywhere\" amounted to before.\n */\nconst DOUBLE_TAP_RADIUS_PX = 40;\n\n/** Where a gesture began, and whether it has moved far enough to be a drag. */\ninterface TapTracker {\n readonly onStart: (event: TouchEvent) => void;\n readonly onMove: (event: TouchEvent) => void;\n readonly startX: number;\n readonly startY: number;\n readonly travelled: boolean;\n}\n\n/**\n * Follow one gesture's origin and travel.\n *\n * Separate from the detector that uses it because \"did this finger stay put\"\n * is the question every touch gesture has to answer, and answering it inline\n * is how it came to be answered differently in each place.\n */\nfunction trackTap(): TapTracker {\n let startX = 0;\n let startY = 0;\n let travelled = false;\n\n return {\n onStart: (event: TouchEvent): void => {\n const touch = event.touches[0];\n if (!touch) return;\n startX = touch.clientX;\n startY = touch.clientY;\n travelled = false;\n },\n onMove: (event: TouchEvent): void => {\n const touch = event.touches[0];\n if (!touch) return;\n if (Math.hypot(touch.clientX - startX, touch.clientY - startY) > TAP_SLOP_PX) {\n travelled = true;\n }\n },\n get startX() {\n return startX;\n },\n get startY() {\n return startY;\n },\n get travelled() {\n return travelled;\n },\n };\n}\n\n/**\n * Whether this `touchend` is the last finger leaving.\n *\n * `touches` on a `touchend` counts the fingers STILL down — the one that just\n * left reports in `changedTouches`. So anything above zero means a finger\n * lifted out of a multi-touch gesture, which is a pinch ending, never a tap.\n */\nfunction endsATap(event: TouchEvent): boolean {\n return event.touches.length === 0;\n}\n\n/**\n * Double-tap detection — calls `callback` when two taps occur within\n * `maxDelay` ms of each other, close together, with neither one a drag.\n *\n * ### Why position and movement matter, and not just time\n *\n * Time alone was the whole test once, and on a phone that reads far too much\n * as a double tap. Dragging a node on the canvas: press, move, lift — a tap.\n * Try again a moment later — a second tap, and the palette opens on top of the\n * context menu the same hold had already triggered. Two attempts to move\n * something became \"add a node\", in a different place from either attempt.\n *\n * So a tap now has to be a tap: one finger, barely moved, landing near where\n * the last one did.\n *\n * @returns A cleanup function to remove all listeners.\n */\nexport function onDoubleTap(\n element: HTMLElement,\n callback: (event: TouchEvent) => void,\n maxDelay = 300\n): () => void {\n const gesture = trackTap();\n let lastTap = 0;\n let lastX = 0;\n let lastY = 0;\n\n const onTouchEnd = (e: TouchEvent): void => {\n // Not a tap: it cannot be half of a double tap, and must not leave one\n // behind either — hence resetting rather than merely returning.\n if (gesture.travelled || !endsATap(e)) {\n lastTap = 0;\n return;\n }\n\n const touch = e.changedTouches?.[0];\n const x = touch?.clientX ?? gesture.startX;\n const y = touch?.clientY ?? gesture.startY;\n const now = Date.now();\n const nearLast = Math.hypot(x - lastX, y - lastY) <= DOUBLE_TAP_RADIUS_PX;\n\n if (now - lastTap < maxDelay && nearLast) {\n e.preventDefault();\n callback(e);\n lastTap = 0;\n return;\n }\n\n lastTap = now;\n lastX = x;\n lastY = y;\n };\n\n element.addEventListener('touchstart', gesture.onStart, { passive: true });\n element.addEventListener('touchmove', gesture.onMove, { passive: true });\n element.addEventListener('touchend', onTouchEnd);\n\n return (): void => {\n element.removeEventListener('touchstart', gesture.onStart);\n element.removeEventListener('touchmove', gesture.onMove);\n element.removeEventListener('touchend', onTouchEnd);\n };\n}\n\n/**\n * Unified pointer tracking — handles both mouse and touch move/up events\n * for drag operations. Attaches to `window` so the pointer can leave\n * the element during a drag.\n *\n * @returns A cleanup function to remove all listeners.\n */\nexport function onPointerDrag(\n onMove: (clientX: number, clientY: number, event: MouseEvent | TouchEvent) => void,\n onEnd: (event: MouseEvent | TouchEvent) => void,\n): () => void {\n const handleMouseMove = (e: MouseEvent): void => onMove(e.clientX, e.clientY, e);\n const handleTouchMove = (e: TouchEvent): void => {\n if (e.touches.length > 0) {\n onMove(e.touches[0].clientX, e.touches[0].clientY, e);\n }\n };\n const handleMouseUp = (e: MouseEvent): void => {\n cleanup();\n onEnd(e);\n };\n const handleTouchEnd = (e: TouchEvent): void => {\n cleanup();\n onEnd(e);\n };\n\n globalThis.window?.addEventListener('mousemove', handleMouseMove);\n globalThis.window?.addEventListener('mouseup', handleMouseUp);\n globalThis.window?.addEventListener('touchmove', handleTouchMove, { passive: false });\n globalThis.window?.addEventListener('touchend', handleTouchEnd);\n globalThis.window?.addEventListener('touchcancel', handleTouchEnd);\n\n const cleanup = (): void => {\n globalThis.window?.removeEventListener('mousemove', handleMouseMove);\n globalThis.window?.removeEventListener('mouseup', handleMouseUp);\n globalThis.window?.removeEventListener('touchmove', handleTouchMove);\n globalThis.window?.removeEventListener('touchend', handleTouchEnd);\n globalThis.window?.removeEventListener('touchcancel', handleTouchEnd);\n };\n\n return cleanup;\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n InjectionToken,\n Signal,\n inject,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../lib/utils';\n\n/** The ARIA role a `ui-table` declares for itself. */\nexport type TableRole = 'table' | 'grid' | 'treegrid';\n\n/**\n * The enclosing table's role, published to its descendants.\n *\n * A cell's correct role depends on the table it is in — `cell` in a plain\n * table, `gridcell` in a `grid` or `treegrid` — and that is not something a\n * consumer should have to restate on every cell. The table announces it once\n * and the cells read it.\n */\nexport const UI_TABLE_ROLE = new InjectionToken<Signal<TableRole>>('UI_TABLE_ROLE');\n\n@Component({\n selector: 'ui-table',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div [class]=\"classes()\" [attr.data-slot]=\"'table'\" [attr.role]=\"role()\">\n <ng-content />\n </div>\n `,\n host: { class: 'contents' },\n providers: [\n { provide: UI_TABLE_ROLE, useFactory: () => inject(TableComponent).role },\n ],\n})\nexport class TableComponent {\n /** Extra classes merged onto the table wrapper. It is a flex column that scrolls horizontally, so give it a bounded height here when the body should scroll rather than the page. */\n class = input('');\n\n /**\n * ARIA role of the table.\n *\n * `table` is a static, read-only grid of data. Use `grid` when the widget\n * is *interactive* — arrow-key navigation between cells, cell selection,\n * in-place editing — because that is what tells assistive tech to switch\n * out of document reading mode and let the arrow keys through.\n *\n * `treegrid` is `grid` plus hierarchy. Rows that expose `aria-expanded` /\n * `aria-level` — as the data table's sub-rows mode produces — are only\n * valid inside a `treegrid`; on a plain `table` those attributes are\n * ignored by assistive tech, so the hierarchy is lost.\n */\n readonly role = input<TableRole>('table');\n\n classes = computed(() => cn('flex flex-col w-full min-h-0 overflow-x-auto', this.class()));\n}\n","import {\n Directive,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Directive({\n selector: 'thead[uiTableHeader], ui-table-header',\n})\nexport class TableHeaderDirective {\n /** Extra classes for a header applied via the `uiTableHeader` attribute on a native `<thead>` — the escape hatch for consumers keeping real table markup instead of the flex-based `ui-table-header`. */\n class = input('');\n\n classes = computed(() => cn('', this.class()));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-table-header',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'sticky top-0 z-20 bg-background flex-shrink-0',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-header\"',\n 'role': 'rowgroup'\n },\n})\nexport class TableHeaderComponent {\n /** Extra classes merged onto the header row group. It is `sticky top-0` with an opaque background, so it stays visible while the body scrolls — raise `z-20` if it is overlapped by other layers. */\n class = input('');\n\n classes = computed(() => cn('', this.class()));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-table-row',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'flex w-full min-w-max flex-shrink-0',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-row\"',\n '[attr.data-state]': 'selected() ? \"selected\" : null',\n 'role': 'row'\n },\n})\nexport class TableRowComponent {\n /** Extra classes merged onto the row. It is `min-w-max`, so a row wider than the table drives the wrapper's horizontal scroll rather than squashing its cells. */\n class = input('');\n /** Marks the row as selected, applying `data-state=\"selected\"` and its muted background. Purely visual — it does not manage a selection model or set `aria-selected`. */\n selected = input(false);\n\n classes = computed(() => cn(\n 'hover:bg-muted/50 data-[state=selected]:bg-muted transition-colors',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n inject,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { UI_TABLE_ROLE } from '../table.component';\n\n@Component({\n selector: 'ui-table-cell',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n styleUrl: './table-cell.component.css',\n host: {\n class: 'flex items-center flex-shrink-0',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-cell\"',\n '[attr.role]': 'role()',\n },\n})\nexport class TableCellComponent {\n private readonly tableRole = inject(UI_TABLE_ROLE, { optional: true });\n\n /**\n * `gridcell` inside a `grid` or `treegrid`, `cell` inside a plain table.\n *\n * `role=\"cell\"` is not valid in a grid — the two describe different\n * widgets, and assistive tech that sees a grid full of `cell`s cannot\n * navigate it. Taken from the enclosing table so no consumer has to know,\n * and defaulting to `cell` for a cell used outside one.\n */\n readonly role = computed<'cell' | 'gridcell'>(() =>\n this.tableRole?.() === 'table' || !this.tableRole ? 'cell' : 'gridcell',\n );\n\n /**\n * Extra classes merged onto the cell. Cells are `flex-1` by default, so all\n * columns share the width evenly — set an explicit `w-*`/`basis-*` here (and\n * the same on the matching `ui-table-head`) to size a column. A projected\n * `role=\"checkbox\"` control already gets its padding and alignment trimmed.\n */\n class = input('');\n\n classes = computed(() => cn(\n 'flex-1 [&:has([role=checkbox])]:ltr:pr-0 [&:has([role=checkbox])]:rtl:pl-0 [&>[role=checkbox]]:translate-y-[2px]',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { SkeletonComponent } from '../../skeleton';\nimport { TableRowComponent } from './table-row.component';\nimport { TableCellComponent } from './table-cell.component';\n\n@Component({\n selector: 'ui-table-body',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SkeletonComponent, TableRowComponent, TableCellComponent],\n template: `\n @if (skeleton()) {\n @for (row of skeletonRowItems(); track row) {\n <ui-table-row>\n <ui-table-cell>\n <ui-skeleton class=\"h-4 w-full rounded-md\" />\n </ui-table-cell>\n </ui-table-row>\n }\n } @else {\n <ng-content />\n }\n `,\n host: {\n class: 'flex flex-col flex-1',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-body\"',\n 'role': 'rowgroup'\n },\n})\nexport class TableBodyComponent {\n /** Extra classes merged onto the body row group. */\n class = input('');\n /** Replaces the projected rows with {@link skeletonRows} single-cell placeholder rows while data loads. The header and footer keep rendering, so the table's chrome stays put. */\n readonly skeleton = input(false);\n /** How many placeholder rows the skeleton shows — match your usual page size so the table does not resize when the data lands. */\n readonly skeletonRows = input(5);\n\n readonly skeletonRowItems = computed(() =>\n Array.from({ length: this.skeletonRows() }, (_, i) => i)\n );\n\n classes = computed(() => cn('', this.class()));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-table-footer',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'flex flex-col flex-shrink-0 bg-muted/50 border-t font-medium',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-footer\"',\n 'role': 'rowgroup'\n },\n})\nexport class TableFooterComponent {\n /** Extra classes merged onto the footer row group, which already carries a muted background and top border for totals rows. */\n class = input('');\n\n classes = computed(() => cn('', this.class()));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-table-head',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n styleUrl: './table-head.component.css',\n host: {\n class: 'flex items-center flex-shrink-0',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-head\"',\n '[attr.role]': 'role()',\n },\n})\nexport class TableHeadComponent {\n /**\n * Extra classes merged onto the header cell. Must match the width utilities\n * on the corresponding {@link TableCellComponent}, since the flex layout does\n * not align columns for you.\n */\n class = input('');\n\n /**\n * `presentation` for a purely decorative cell — the flex filler that pads the\n * header row out to full width carries no column, and announcing it as an\n * empty `columnheader` is noise for screen-reader users (axe\n * `empty-table-header`).\n */\n readonly role = input<'columnheader' | 'presentation'>('columnheader');\n\n classes = computed(() => cn(\n 'text-foreground ltr:text-left rtl:text-right font-medium flex-1 [&:has([role=checkbox])]:ltr:pr-0 [&:has([role=checkbox])]:rtl:pl-0 [&>[role=checkbox]]:translate-y-[2px]',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-table-caption',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'flex',\n '[class]': 'classes()',\n '[attr.data-slot]': '\"table-caption\"'\n },\n})\nexport class TableCaptionComponent {\n /** Extra classes merged onto the caption. It is a flex sibling of the row groups, not a native `<caption>`, so its position in the markup is where it renders. */\n class = input('');\n\n classes = computed(() => cn('text-muted-foreground mt-4 text-sm', this.class()));\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * The contract an input group exposes to the controls it contains. Controls read\n * `disabled` so that disabling the group genuinely disables them — dimming the\n * wrapper alone left the inputs focusable and editable.\n */\nexport interface UiInputGroupContext {\n readonly disabled: Signal<boolean>;\n}\n\nexport const UI_INPUT_GROUP = new InjectionToken<UiInputGroupContext>('UI_INPUT_GROUP');\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n forwardRef,\n model,\n signal,\n inject,\n viewChild,\n ElementRef,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../lib/utils';\nimport { SpinnerComponent } from '../spinner';\nimport { SkeletonComponent } from '../skeleton';\nimport { IconComponent } from '../icon';\n\nconst inputVariants = cva(\n 'border-input aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-transparent text-base transition-colors md:text-sm placeholder:text-muted-foreground w-full min-w-0 outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n {\n variants: {\n variant: {\n outline: 'dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 rounded-lg border focus-visible:ring-[3px] aria-invalid:ring-[3px]',\n underline: 'rounded-none border-b focus-visible:border-ring px-0 shadow-none',\n ghost: 'border-none shadow-none focus-visible:ring-0 px-0',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n }\n);\n\nexport type InputVariant = VariantProps<typeof inputVariants>['variant'];\n\nimport { UI_INPUT_GROUP } from '../../lib/input-group.token';\n\nlet nextInputId = 0;\n\n@Component({\n selector: 'ui-input',\n imports: [FormsModule, SpinnerComponent, SkeletonComponent, IconComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './input.component.css',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputComponent),\n multi: true,\n },\n ],\n templateUrl: './input.component.html',\n host: {\n '[class]': '\"contents\"',\n '[attr.id]': 'null',\n },\n})\nexport class InputComponent implements ControlValueAccessor {\n /** Native `type` of the inner `<input>` (`'text'`, `'email'`, `'password'`, …). */\n readonly type = input<string>('text');\n /**\n * Placeholder text. Not a substitute for a label — it disappears on typing\n * and does not name the control for assistive tech; use `label`,\n * `ariaLabel`, or an external `<label for>` via `elementId`.\n */\n readonly placeholder = input<string>('');\n /** Disables the control. OR-ed with the form's disabled state and any enclosing input group's. */\n readonly disabled = input(false);\n /**\n * Extra classes. Applied to the inner `<input>` normally, or to the wrapping\n * container when one is rendered (see {@link needsContainer}).\n */\n readonly class = input('');\n\n /**\n * Forwarded to the inner <input>'s id so `<label for=\"x\">` outside the\n * component correctly associates. Without this, putting `id` on the\n * `<ui-input>` host (which has class=\"contents\") doesn't reach the\n * real form control and screen readers / axe report no label.\n */\n readonly elementId = input<string | undefined>(undefined);\n /** Forwarded to the inner <input>'s name (for form submission). */\n readonly name = input<string | undefined>(undefined);\n\n private readonly autoId = `ui-input-${++nextInputId}`;\n\n /**\n * An `id` written the native way — `<ui-input id=\"email\">`. The host is a\n * `display: contents` wrapper, so an `id` left on it is not a labelable control\n * and `<label for=\"email\">` associates with nothing: the input reached screen\n * readers unlabeled (axe `label`), which a non-empty `placeholder` was quietly\n * masking. Read off the host here and moved to the real control instead (the\n * host binding below strips it, so the id is never duplicated).\n */\n private readonly hostId =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.getAttribute('id') ?? undefined;\n\n /**\n * The id actually applied to the inner `<input>`, from either spelling. Falls\n * back to a generated id so the floating variant's own `<label for>` always\n * has something to bind to.\n */\n readonly resolvedId = computed(() => this.elementId() ?? this.hostId ?? this.autoId);\n /** Forwarded to the inner <input>'s aria-label. */\n readonly ariaLabel = input<string | undefined>(undefined);\n /** Forwarded to the inner <input>'s aria-labelledby. */\n readonly ariaLabelledby = input<string | undefined>(undefined);\n /** Forwarded to the inner <input>'s aria-describedby. */\n readonly ariaDescribedby = input<string | undefined>(undefined);\n\n /**\n * Border treatment. Inside a `ui-input-group` an `outline` input is\n * automatically downgraded to `ghost` so the group draws the single border.\n */\n readonly variant = input<InputVariant>('outline');\n /** Show a trailing spinner (e.g. while validating or fetching suggestions). */\n readonly loading = input(false);\n /** Replace the control with a skeleton placeholder while content loads. */\n readonly skeleton = input(false);\n\n /** Focus the inner `<input>` on first render. */\n readonly autofocus = input(false);\n /** Show a clear (✕) button once the field has a value. */\n readonly clearable = input(false);\n /** Float {@link label} above the field on focus/value. Requires `label`; ignored without it. */\n readonly floating = input(false);\n /** Label text. Rendered as a floating label when {@link floating} is set. */\n readonly label = input<string>();\n /** Extra classes for the floating label, e.g. `text-base font-semibold\n * text-foreground` — merged last so they override the defaults. */\n readonly labelClass = input('');\n /** Icon name shown before the field. Presence forces the bordered container layout. */\n /**\n * Which on-screen keyboard a touch device should offer.\n *\n * Separate from {@link type} because the two answer different questions.\n * A currency or duration field cannot use `type=\"number\"` — a number field\n * refuses the comma that most of Europe uses as a decimal separator, and\n * strips any formatting — but it still wants a numeric keypad. Without\n * this the only way to get one is to reach past the component to the\n * native element.\n */\n readonly inputMode = input<string | undefined>(undefined);\n /**\n * BCP-47 tag on the field itself, so a browser offers the right keypad\n * layout and assistive tech reads digits in the right language.\n */\n readonly lang = input<string | undefined>(undefined);\n /** Text shown before the field, such as a currency symbol or `https://`. Presence forces the bordered container layout. */\n readonly prefix = input<string>();\n /** Icon name shown after the field. Presence forces the bordered container layout. */\n readonly suffix = input<string>();\n\n private readonly group = inject(UI_INPUT_GROUP, { optional: true });\n\n protected readonly effectiveVariant = computed(() => {\n const v = this.variant();\n return v === 'outline' && this.group ? 'ghost' : v;\n });\n\n /**\n * The text, as a two-way `model()`. Written by user typing, by\n * {@link writeValue} when a form pushes a value in, and by a `[(value)]`\n * binding.\n *\n * Being a `ModelSignal` is what makes this component a valid Signal Forms\n * `FormValueControl`. Unlike the controls that already had a hand-written\n * `valueChange` output, this one never promised silence on a programmatic\n * write — the output is new here — so there is no second signal and no\n * suppression: the model is the single source of truth, and a form write\n * keeps a `[(value)]` binding in sync instead of letting it drift.\n */\n readonly value = model('');\n\n private onChange: (value: string) => void = () => { };\n onTouched: () => void = () => { };\n\n private readonly formDisabled = signal(false);\n private readonly isFocused = signal(false);\n\n readonly isDisabled = computed(() =>\n this.disabled() || this.formDisabled() || (this.group?.disabled() ?? false)\n );\n\n readonly needsContainer = computed(() =>\n !!this.prefix() ||\n !!this.suffix() ||\n this.clearable() ||\n this.loading()\n );\n\n /** Floating-label mode: the label animates from a placeholder position to\n * above the input, which keeps its variant styling and normal height. */\n readonly isFloating = computed(() => this.floating() && !!this.label());\n\n readonly labelIsActive = computed(() =>\n this.isFocused() || !!this.value()\n );\n\n readonly classes = computed(() =>\n cn(inputVariants({ variant: this.effectiveVariant() }), this.class())\n );\n\n readonly containerClasses = computed(() => cn(\n 'relative flex w-full items-center rounded-lg border border-input shadow-xs',\n 'transition-[color,box-shadow]',\n 'has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-[3px] has-[input:focus-visible]:ring-ring/50',\n 'dark:bg-input/30 bg-transparent',\n this.isDisabled() && 'opacity-50 pointer-events-none cursor-not-allowed',\n this.class()\n ));\n\n readonly innerClasses = computed(() => cn(\n inputVariants({ variant: 'ghost' }),\n 'flex-1 h-full',\n ));\n\n readonly floatingLabelClasses = computed(() => cn(\n 'pointer-events-none absolute select-none text-muted-foreground transition-all duration-150',\n // Resting = uniform placeholder; on float it transforms to the (optionally\n // dev-customized via labelClass) heading font.\n this.labelIsActive() ? cn('text-xs', this.labelClass()) : 'text-sm'\n ));\n\n /** Commit a new value from the inner `<input>` and notify the form. */\n onValueChange(value: string): void {\n this.value.set(value);\n this.onChange(value);\n }\n\n /** Track focus so the floating label can rise. */\n onFocus(): void {\n this.isFocused.set(true);\n }\n\n /** Drop focus state and mark the control touched. */\n onBlur(): void {\n this.isFocused.set(false);\n this.onTouched();\n }\n\n /** Clear the value and return focus to the field, so typing can continue immediately. */\n clearValue(): void {\n this.onValueChange('');\n this.focus();\n }\n\n /** `ControlValueAccessor`: adopt a value from the form. Null/undefined become `''`. */\n writeValue(value: string): void {\n this.value.set(value ?? '');\n }\n\n /** `ControlValueAccessor`: register the form's change callback. */\n registerOnChange(fn: (value: string) => void): void {\n this.onChange = fn;\n }\n\n /** `ControlValueAccessor`: register the form's touched callback. */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n /**\n * `ControlValueAccessor`: adopt the form's disabled state. Kept separate\n * from the {@link disabled} input so neither overrides the other — see\n * {@link isDisabled}.\n */\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n /** The inner `<input>` element. */\n readonly inputRef = viewChild<ElementRef<HTMLInputElement>>('inputRef');\n\n /** Focus the inner `<input>`. */\n focus(): void {\n this.inputRef()?.nativeElement.focus();\n }\n\n /** The current value, so the component interpolates as its text in a template. */\n toString(): string {\n return this.value();\n }\n}\n","@if (skeleton()) {\n <ui-skeleton class=\"h-9 w-full rounded-md\" />\n} @else if (isFloating()) {\n <div class=\"relative\" [attr.data-slot]=\"'input-floating'\" [attr.data-variant]=\"effectiveVariant()\">\n <input\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"labelIsActive() ? placeholder() : ''\"\n [attr.id]=\"resolvedId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.lang]=\"lang()\"\n [attr.data-slot]=\"'input'\"\n #inputRef\n [ngModel]=\"value()\"\n (ngModelChange)=\"onValueChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n <label [for]=\"resolvedId()\" [class]=\"floatingLabelClasses()\" [attr.data-active]=\"labelIsActive() ? '' : null\">{{ label() }}</label>\n </div>\n} @else if (needsContainer()) {\n <div [class]=\"containerClasses()\" [attr.data-slot]=\"'input-container'\">\n @if (prefix()) {\n <span class=\"text-muted-foreground flex shrink-0 items-center ps-3 pe-1 text-sm select-none\">{{ prefix() }}</span>\n }\n <input\n [class]=\"innerClasses()\"\n [type]=\"type()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"placeholder()\"\n [attr.id]=\"resolvedId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.lang]=\"lang()\"\n [attr.data-slot]=\"'input'\"\n #inputRef\n [ngModel]=\"value()\"\n (ngModelChange)=\"onValueChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n @if (clearable() && value()) {\n <button\n type=\"button\"\n (click)=\"clearValue()\"\n tabindex=\"-1\"\n class=\"flex shrink-0 items-center justify-center pe-2 text-muted-foreground hover:text-foreground\"\n aria-label=\"Clear\"\n >\n <ui-icon name=\"x\" class=\"size-3.5\" />\n </button>\n }\n @if (loading()) {\n <div class=\"flex shrink-0 items-center pe-2 pointer-events-none\">\n <ui-spinner size=\"xs\" />\n </div>\n }\n @if (suffix() && !loading()) {\n <span class=\"text-muted-foreground flex shrink-0 items-center ps-1 pe-3 text-sm select-none\">{{ suffix() }}</span>\n }\n </div>\n} @else {\n <input\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"isDisabled()\"\n [placeholder]=\"placeholder()\"\n [attr.id]=\"resolvedId()\"\n [attr.name]=\"name()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.lang]=\"lang()\"\n [attr.data-slot]=\"'input'\"\n #inputRef\n [ngModel]=\"value()\"\n (ngModelChange)=\"onValueChange($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n forwardRef,\n model,\n signal,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn } from '../../lib/utils';\nimport { SkeletonComponent } from '../skeleton';\n\n@Component({\n selector: 'ui-checkbox',\n imports: [SkeletonComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './checkbox.component.css',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxComponent),\n multi: true,\n },\n ],\n templateUrl: './checkbox.component.html',\n host: {\n '[class]': '\"contents\"',\n },\n})\nexport class CheckboxComponent implements ControlValueAccessor {\n private static idCounter = 0;\n\n readonly _disabled = signal(false);\n /**\n * Disables the checkbox. OR-ed with the state pushed by\n * {@link setDisabledState}, so a reactive-forms `disable()` also wins even\n * when this input stays `false`.\n */\n disabled = input(false);\n\n protected readonly isDisabled = computed(() => this.disabled() || this._disabled());\n /** Extra classes merged onto the visual box (not the host or the label). */\n class = input('');\n /** Renders placeholder blocks instead of the control; the label slot gets its own placeholder when {@link label} is set. */\n readonly skeleton = input(false);\n /** `id` for the native input. When {@link label} is set an auto-generated id is used instead so the label's `for` can bind. */\n elementId = input<string | undefined>(undefined);\n /** `aria-label` for the native input. Ignored when {@link label} is set, since the rendered label labels the control. */\n ariaLabel = input<string | undefined>(undefined);\n /** `aria-labelledby` for the native input. Ignored when {@link label} is set — the generated label element is referenced instead. */\n ariaLabelledby = input<string | undefined>(undefined);\n /** `aria-describedby` for the native input, e.g. pointing at a hint or error message. */\n ariaDescribedby = input<string | undefined>(undefined);\n /** `aria-invalid` for the native input; leave undefined to omit the attribute entirely. */\n ariaInvalid = input<boolean | undefined>(undefined);\n /** Two-way checked state. Also written by {@link writeValue} and emitted through the registered `onChange`. */\n checked = model<boolean>(false);\n /** Renders the dash glyph and sets `data-state=\"indeterminate\"`; purely visual — it does not change {@link checked}, and toggling clears it only if the consumer does. */\n indeterminate = input(false);\n\n /** Simple mode: renders an associated `<label>` next to the box, wired to the auto-generated id. */\n label = input<string | undefined>(undefined);\n\n // Auto-generate ID when label is used\n private readonly _generatedId = `checkbox-${++CheckboxComponent.idCounter}`;\n readonly computedId = computed(() => this.elementId() ?? this._generatedId);\n\n private onChange: (value: boolean) => void = () => { };\n private onTouched: () => void = () => { };\n\n readonly classes = computed(() =>\n cn(\n 'shrink-0 rounded-sm border border-primary shadow outline-none peer-focus-visible:ring-1 peer-focus-visible:ring-ring peer-disabled:cursor-not-allowed peer-disabled:opacity-50 flex items-center justify-center',\n this.checked() || this.indeterminate()\n ? 'bg-primary text-primary-foreground'\n : 'bg-background',\n this.class()\n )\n );\n\n readonly dataState = computed(() => {\n if (this.indeterminate()) return 'indeterminate';\n return this.checked() ? 'checked' : 'unchecked';\n });\n\n /** Flips {@link checked} and notifies the form (change + touched). No-op while disabled. */\n toggle(): void {\n if (this.isDisabled()) return;\n const newValue = !this.checked();\n this.checked.set(newValue);\n this.onChange(newValue);\n this.onTouched();\n }\n\n protected onNativeChange(event: Event): void {\n const value = (event.target as HTMLInputElement).checked;\n this.checked.set(value);\n this.onChange(value);\n this.onTouched();\n }\n\n protected markTouched(): void {\n this.onTouched();\n }\n\n /** Pushes a form value into {@link checked}, coercing `null`/`undefined` to `false`. Does not emit back to the form. */\n writeValue(value: boolean): void {\n this.checked.set(value ?? false);\n }\n\n /** Stores the form's change callback, invoked by {@link toggle} and by native input changes. */\n registerOnChange(fn: (value: boolean) => void): void {\n this.onChange = fn;\n }\n\n /** Stores the form's touched callback, invoked on blur and on every toggle. */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n /** Records the form's disabled state separately from the {@link disabled} input; either one disables the control. */\n setDisabledState(isDisabled: boolean): void {\n this._disabled.set(isDisabled);\n }\n\n /** String form of the current {@link checked} value (`\"true\"`/`\"false\"`), handy in templates and test assertions. */\n toString(): string {\n return String(this.checked());\n }\n}\n","@if (skeleton()) {\n @if (label()) {\n <div class=\"flex items-center gap-2\">\n <ui-skeleton class=\"h-4 w-4 rounded-sm\" />\n <ui-skeleton class=\"h-4 w-20 rounded-md\" />\n </div>\n } @else {\n <ui-skeleton class=\"h-4 w-4 rounded-sm\" />\n }\n} @else {\n <div [class]=\"label() ? 'flex items-center gap-2' : 'contents'\">\n <span class=\"relative inline-flex shrink-0\">\n <input\n type=\"checkbox\"\n class=\"peer absolute inset-0 z-10 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed\"\n [attr.id]=\"label() ? computedId() : elementId()\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"label() ? null : ariaLabel()\"\n [attr.aria-labelledby]=\"label() ? computedId() + '-label' : ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n (change)=\"onNativeChange($event)\"\n (blur)=\"markTouched()\"\n />\n <span\n [class]=\"classes()\"\n [attr.data-state]=\"dataState()\"\n [attr.data-slot]=\"'checkbox'\"\n aria-hidden=\"true\"\n >\n @if (indeterminate()) {\n <svg class=\"h-3 w-3\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"3\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M5 12h14\" />\n </svg>\n } @else if (checked()) {\n <svg class=\"h-3 w-3\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"3\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M5 13l4 4L19 7\" />\n </svg>\n }\n </span>\n </span>\n @if (label()) {\n <label\n [id]=\"computedId() + '-label'\"\n [attr.for]=\"computedId()\"\n class=\"text-sm font-medium leading-none\"\n [class.cursor-pointer]=\"!isDisabled()\"\n [class.cursor-not-allowed]=\"isDisabled()\"\n [class.opacity-70]=\"isDisabled()\"\n >\n {{ label() }}\n </label>\n }\n </div>\n}\n","/**\n * Promote a popup panel into the browser's top layer so it escapes every\n * `overflow: hidden` ancestor.\n *\n * A `z-index` cannot do this. Stacking order only decides what paints in front\n * of what *within* the same clipping context — an ancestor with clipped overflow\n * cuts the panel off no matter how high its `z-index` is. That is why a picker\n * placed inside a card, an accordion panel, a scroll area or a dialog body\n * appears chopped in half.\n *\n * The native Popover API moves the element to the top layer, outside the normal\n * box tree, where nothing clips it and nothing can stack above it. The trade-off\n * is that a top-layer element resolves `position: fixed` against the viewport,\n * so the panel can no longer be laid out with `absolute` + `top-full` relative\n * to its trigger — it has to be given explicit viewport coordinates, which is\n * what {@link anchorToTopLayer} computes and keeps up to date.\n *\n * Engines without the API (and any element that is not connected when the call\n * is made) fall back to leaving the panel exactly where it was, so the previous\n * `absolute` behaviour still applies rather than the panel vanishing.\n */\n\n/** Which edge of the anchor the panel sits against. */\nexport type TopLayerSide = 'top' | 'bottom';\n\n/** How the panel lines up with the anchor along the inline axis. */\nexport type TopLayerAlign = 'start' | 'end';\n\nexport interface TopLayerOptions {\n /** Gap in pixels between the anchor and the panel. Defaults to 4. */\n readonly gap?: number;\n /** Preferred side; flips automatically when there is not enough room. */\n readonly side?: TopLayerSide;\n /** Inline alignment against the anchor. Defaults to `'start'`. */\n readonly align?: TopLayerAlign;\n}\n\n/** Controls a panel that has been promoted to the top layer. */\nexport interface TopLayerHandle {\n /** Recompute the panel's viewport position. Safe to call repeatedly. */\n reposition(): void;\n /** Return the panel to normal flow and detach the scroll/resize listeners. */\n release(): void;\n /** Whether the panel actually reached the top layer (false on a fallback). */\n readonly promoted: boolean;\n}\n\n/**\n * The Popover API surface, declared as optional because the lib types assume it\n * is always present while older engines do not ship it at all.\n */\ntype PopoverCapable = HTMLElement & {\n showPopover?: () => void;\n hidePopover?: () => void;\n};\n\nconst supportsPopover = (el: HTMLElement): el is PopoverCapable =>\n typeof (el as PopoverCapable).showPopover === 'function';\n\n/**\n * Keep the preferred side unless the panel does not fit there and genuinely\n * fits better on the other one, so a panel does not flip on a few pixels.\n */\nfunction resolveSide(\n preferred: TopLayerSide,\n panelHeight: number,\n roomAbove: number,\n roomBelow: number,\n): TopLayerSide {\n if (preferred === 'bottom') {\n const cramped = roomBelow < panelHeight && roomAbove > roomBelow;\n return cramped ? 'top' : 'bottom';\n }\n const cramped = roomAbove < panelHeight && roomBelow > roomAbove;\n return cramped ? 'bottom' : 'top';\n}\n\n/**\n * Write the panel's viewport coordinates, flipping side and clamping inline so\n * it stays on screen. Separate from {@link anchorToTopLayer} so the geometry can\n * be re-run on scroll and resize without re-promoting the element.\n */\nfunction place(panel: HTMLElement, anchor: HTMLElement, opts: Required<TopLayerOptions>): void {\n const a = anchor.getBoundingClientRect();\n const p = panel.getBoundingClientRect();\n const side = resolveSide(opts.side, p.height, a.top, globalThis.innerHeight - a.bottom);\n\n const top = side === 'bottom' ? a.bottom + opts.gap : a.top - p.height - opts.gap;\n const rawLeft = opts.align === 'start' ? a.left : a.right - p.width;\n const left = Math.max(opts.gap, Math.min(rawLeft, globalThis.innerWidth - p.width - opts.gap));\n\n panel.style.position = 'fixed';\n panel.style.inset = 'auto';\n panel.style.margin = '0';\n panel.style.left = `${Math.round(left)}px`;\n panel.style.top = `${Math.round(Math.max(opts.gap, top))}px`;\n}\n\n/**\n * Place `panel` against `anchor` in the top layer and keep it there.\n *\n * Returns a handle whose `release()` MUST be called when the panel closes —\n * otherwise the element stays in the top layer and the listeners leak.\n *\n * When the panel cannot be promoted (no Popover API, or the element is not yet\n * connected — `showPopover` throws `InvalidStateError` in that case) the panel\n * is left untouched and `promoted` is false, so the caller's existing\n * `absolute` positioning continues to apply.\n */\nexport function anchorToTopLayer(\n panel: HTMLElement,\n anchor: HTMLElement,\n options: TopLayerOptions = {},\n): TopLayerHandle {\n const gap = options.gap ?? 4;\n const align = options.align ?? 'start';\n const preferred = options.side ?? 'bottom';\n\n if (!supportsPopover(panel) || !panel.isConnected) {\n return { reposition: () => undefined, release: () => undefined, promoted: false };\n }\n\n const previousPosition = panel.style.position;\n const previousInset = panel.style.inset;\n const previousMargin = panel.style.margin;\n\n try {\n panel.setAttribute('popover', 'manual');\n panel.showPopover();\n } catch {\n panel.removeAttribute('popover');\n return { reposition: () => undefined, release: () => undefined, promoted: false };\n }\n\n const reposition = (): void => place(panel, anchor, { gap, side: preferred, align });\n\n reposition();\n\n // Capture phase so a scroll inside any ancestor keeps the panel on its\n // anchor, not just a scroll of the document.\n globalThis.addEventListener('scroll', reposition, true);\n globalThis.addEventListener('resize', reposition);\n\n return {\n reposition,\n promoted: true,\n release: () => {\n globalThis.removeEventListener('scroll', reposition, true);\n globalThis.removeEventListener('resize', reposition);\n try {\n panel.hidePopover?.();\n } catch {\n // Already disconnected — the element left the top layer with its subtree.\n }\n panel.removeAttribute('popover');\n panel.style.position = previousPosition;\n panel.style.inset = previousInset;\n panel.style.margin = previousMargin;\n panel.style.left = '';\n panel.style.top = '';\n },\n };\n}\n","import type { LocaleMeta } from './i18n.types';\n\n/**\n * Locale dictionary for `<ui-calendar>` and its date-filter sub-components\n * (date-picker, date-range-picker, data-table date filters).\n *\n * Only date-related strings live here. Data-table chrome (column-menu\n * actions, pagination labels, etc.) moved to `DataTableLocale` in\n * `ui/data-table/data-table.locales.ts` — Task 9 of the i18n migration.\n */\nexport interface CalendarLocale extends LocaleMeta {\n monthNames: string[];\n dayNames: string[];\n timeLabel?: string;\n startTimeLabel?: string;\n endTimeLabel?: string;\n prevMonthLabel?: string;\n nextMonthLabel?: string;\n todayLabel?: string;\n clearLabel?: string;\n last7DaysLabel?: string;\n last30DaysLabel?: string;\n thisMonthLabel?: string;\n}\n\nexport const CALENDAR_LOCALES: Record<string, CalendarLocale> = {\n en: {\n code: 'en',\n monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n dayNames: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n timeLabel: 'Time',\n startTimeLabel: 'Start time',\n endTimeLabel: 'End time',\n prevMonthLabel: 'Previous month',\n nextMonthLabel: 'Next month',\n rtl: false,\n todayLabel: 'Today',\n clearLabel: 'Clear',\n last7DaysLabel: 'Last 7 days',\n last30DaysLabel: 'Last 30 days',\n thisMonthLabel: 'This month',\n },\n he: {\n code: 'he',\n rtl: true,\n monthNames: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'],\n dayNames: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],\n timeLabel: 'זמן',\n startTimeLabel: 'שעת התחלה',\n endTimeLabel: 'שעת סיום',\n prevMonthLabel: 'החודש הקודם',\n nextMonthLabel: 'החודש הבא',\n todayLabel: 'היום',\n clearLabel: 'נקה',\n last7DaysLabel: '7 ימים אחרונים',\n last30DaysLabel: '30 ימים אחרונים',\n thisMonthLabel: 'החודש הנוכחי',\n },\n ar: {\n code: 'ar',\n rtl: true,\n monthNames: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],\n dayNames: ['أح', 'إث', 'ثل', 'أر', 'خم', 'جم', 'سب'],\n timeLabel: 'الوقت',\n startTimeLabel: 'وقت البداية',\n endTimeLabel: 'وقت النهاية',\n prevMonthLabel: 'الشهر السابق',\n nextMonthLabel: 'الشهر التالي',\n todayLabel: 'اليوم',\n clearLabel: 'مسح',\n last7DaysLabel: 'آخر 7 أيام',\n last30DaysLabel: 'آخر 30 يومًا',\n thisMonthLabel: 'هذا الشهر',\n },\n de: {\n code: 'de',\n monthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],\n dayNames: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],\n timeLabel: 'Zeit',\n startTimeLabel: 'Startzeit',\n endTimeLabel: 'Endzeit',\n prevMonthLabel: 'Vorheriger Monat',\n nextMonthLabel: 'Nächster Monat',\n rtl: false,\n todayLabel: 'Heute',\n clearLabel: 'Löschen',\n last7DaysLabel: 'Letzte 7 Tage',\n last30DaysLabel: 'Letzte 30 Tage',\n thisMonthLabel: 'Dieser Monat',\n },\n fr: {\n code: 'fr',\n monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],\n dayNames: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'],\n timeLabel: 'Heure',\n startTimeLabel: 'Heure de début',\n endTimeLabel: 'Heure de fin',\n prevMonthLabel: 'Mois précédent',\n nextMonthLabel: 'Mois suivant',\n rtl: false,\n todayLabel: 'Aujourd\\'hui',\n clearLabel: 'Effacer',\n last7DaysLabel: '7 derniers jours',\n last30DaysLabel: '30 derniers jours',\n thisMonthLabel: 'Ce mois-ci',\n },\n es: {\n code: 'es',\n monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],\n dayNames: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sá'],\n timeLabel: 'Hora',\n startTimeLabel: 'Hora de inicio',\n endTimeLabel: 'Hora de fin',\n prevMonthLabel: 'Mes anterior',\n nextMonthLabel: 'Mes siguiente',\n rtl: false,\n todayLabel: 'Hoy',\n clearLabel: 'Borrar',\n last7DaysLabel: 'Últimos 7 días',\n last30DaysLabel: 'Últimos 30 días',\n thisMonthLabel: 'Este mes',\n },\n ja: {\n code: 'ja',\n monthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],\n dayNames: ['日', '月', '火', '水', '木', '金', '土'],\n timeLabel: '時間',\n startTimeLabel: '開始時間',\n endTimeLabel: '終了時間',\n prevMonthLabel: '前月',\n nextMonthLabel: '翌月',\n rtl: false,\n todayLabel: '今日',\n clearLabel: 'クリア',\n last7DaysLabel: '過去7日間',\n last30DaysLabel: '過去30日間',\n thisMonthLabel: '今月',\n },\n zh: {\n code: 'zh',\n monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],\n dayNames: ['日', '一', '二', '三', '四', '五', '六'],\n timeLabel: '时间',\n startTimeLabel: '开始时间',\n endTimeLabel: '结束时间',\n prevMonthLabel: '上个月',\n nextMonthLabel: '下个月',\n rtl: false,\n todayLabel: '今天',\n clearLabel: '清除',\n last7DaysLabel: '最近7天',\n last30DaysLabel: '最近30天',\n thisMonthLabel: '本月',\n },\n ru: {\n code: 'ru',\n monthNames: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],\n dayNames: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],\n timeLabel: 'Время',\n startTimeLabel: 'Время начала',\n endTimeLabel: 'Время окончания',\n prevMonthLabel: 'Предыдущий месяц',\n nextMonthLabel: 'Следующий месяц',\n rtl: false,\n todayLabel: 'Сегодня',\n clearLabel: 'Очистить',\n last7DaysLabel: 'Последние 7 дней',\n last30DaysLabel: 'Последние 30 дней',\n thisMonthLabel: 'Этот месяц',\n },\n pt: {\n code: 'pt',\n monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],\n dayNames: ['Do', 'Se', 'Te', 'Qu', 'Qu', 'Se', 'Sá'],\n timeLabel: 'Hora',\n startTimeLabel: 'Hora de início',\n endTimeLabel: 'Hora de fim',\n prevMonthLabel: 'Mês anterior',\n nextMonthLabel: 'Próximo mês',\n rtl: false,\n todayLabel: 'Hoje',\n clearLabel: 'Limpar',\n last7DaysLabel: 'Últimos 7 dias',\n last30DaysLabel: 'Últimos 30 dias',\n thisMonthLabel: 'Este mês',\n },\n};\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n signal,\n effect,\n model,\n untracked,\n} from '@angular/core';\nimport { cn } from '../../lib/utils';\nimport { createLocaleBindings, type LocaleInput } from '../../lib/i18n';\nimport { CALENDAR_LOCALES, type CalendarLocale } from '../../lib/i18n/calendar.locales';\nimport { ButtonComponent } from '../button';\nimport {\n SelectComponent,\n SelectTriggerComponent,\n SelectValueComponent,\n SelectContentComponent,\n SelectItemComponent,\n} from '../select';\n\nexport type CalendarMode = 'single' | 'range' | 'multi';\nexport type CalendarTimeMode = 'single' | 'range';\n/** A single selectable date value: a `Date`, an ISO date string, or null. */\nexport type CalendarDateValue = Date | string | null;\n\nexport interface DateRange {\n start: Date | null;\n end: Date | null;\n}\n\nexport interface TimeRange {\n start: string;\n end: string;\n}\n\n@Component({\n selector: 'ui-calendar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ButtonComponent,\n SelectComponent,\n SelectTriggerComponent,\n SelectValueComponent,\n SelectContentComponent,\n SelectItemComponent,\n ],\n templateUrl: './calendar.component.html',\n styleUrl: './calendar.component.css',\n host: { class: 'contents' },\n})\nexport class CalendarComponent {\n /** Extra classes merged onto the calendar's bordered container (`p-3 … inline-block`). */\n class = input('');\n /**\n * Selection behaviour, which also dictates the shape carried by {@link selected}:\n * `'single'` → `Date`, `'range'` → {@link DateRange}, `'multi'` → `Date[]`.\n * Changing it at runtime does not convert an already-set value, so reset\n * {@link selected} alongside it.\n */\n mode = input<CalendarMode>('single');\n /** Replaces the static month caption with a `ui-select` month picker. Off by default. */\n showMonthSelect = input(false);\n /**\n * Replaces the static year caption with a `ui-select` year picker listing the\n * current year back 100 years — years beyond that range are unreachable from\n * the UI (navigate with {@link previousMonth} or set {@link selected} instead).\n */\n showYearSelect = input(false);\n /** Renders the `<input type=\"time\">` footer below the day grid; see {@link timeMode}. */\n showTimeSelect = input(false);\n /**\n * Shape of the time footer when {@link showTimeSelect} is on: `'single'` shows one\n * time field bound to {@link updateTime}, `'range'` shows start/end fields whose\n * values are mirrored into {@link selectedTimeRange}. Ignored while\n * {@link showTimeSelect} is `false`.\n */\n timeMode = input<CalendarTimeMode>('single');\n /**\n * First column of the week as a `Date.getDay()` index — `0` = Sunday (default),\n * `1` = Monday, … `6` = Saturday. Rotates both the weekday header and the\n * leading blank cells of the grid.\n */\n weekStartsOn = input<0 | 1 | 2 | 3 | 4 | 5 | 6>(0);\n /**\n * Mirrors the direction of the arrow icons. Set automatically from the active\n * {@link locale} whenever that locale declares `rtl`, so an explicit binding is\n * overwritten on locale change.\n */\n rtl = model<boolean>(false);\n /** Locale id or inline {@link CalendarLocale} overrides for day/month names and control labels. */\n locale = input<LocaleInput<CalendarLocale>>();\n /**\n * Two-way selection. Accepts `Date`s, `'YYYY-MM-DD'` strings, or arrays of either\n * on the way in; always emits parsed `Date`s (or a {@link DateRange}) on the way\n * out. The first non-null value also scrolls the calendar to that month — later\n * changes do not move the view.\n */\n selected = model<Date | DateRange | Date[] | string | string[] | null>(null);\n /**\n * Two-way `HH:mm` pair backing the `timeMode: 'range'` footer. Acts as the\n * time-of-day applied to days picked afterwards; days already in\n * {@link selected} keep the time they were stored with.\n */\n selectedTimeRange = model<TimeRange>({ start: '', end: '' });\n\n private readonly viewDate = signal(new Date());\n\n private readonly i18n = createLocaleBindings(this.locale, CALENDAR_LOCALES);\n private readonly activeLocale = this.i18n.t;\n /** `'rtl'` when the active locale is RTL, otherwise `null` — bind to `[attr.dir]`. */\n protected readonly dir = this.i18n.dir;\n\n constructor() {\n effect(() => {\n const val = this.selected();\n if (val && !this.viewDateInitialized) {\n let d: Date | null = null;\n if (typeof val === 'string') d = this.parseDate(val);\n else if (val instanceof Date) d = val;\n else if (Array.isArray(val) && val.length > 0) d = this.parseDate(val[0]);\n else if (typeof val === 'object' && val !== null && 'start' in val) d = (val).start;\n\n if (d) {\n this.viewDate.set(new Date(d));\n this.viewDateInitialized = true;\n }\n }\n }, { allowSignalWrites: true });\n\n effect(() => {\n const localeRtl = this.activeLocale().rtl;\n if (localeRtl === undefined) return;\n untracked(() => this.rtl.set(localeRtl));\n });\n }\n\n private viewDateInitialized = false;\n\n readonly dayNames = computed(() => this.activeLocale().dayNames);\n readonly monthNames = computed(() => this.activeLocale().monthNames);\n readonly timeLabel = computed(() => this.activeLocale().timeLabel ?? 'Time');\n readonly startTimeLabel = computed(() => this.activeLocale().startTimeLabel ?? 'Start time');\n readonly endTimeLabel = computed(() => this.activeLocale().endTimeLabel ?? 'End time');\n readonly prevMonthLabel = computed(() => this.activeLocale().prevMonthLabel ?? 'Previous month');\n readonly nextMonthLabel = computed(() => this.activeLocale().nextMonthLabel ?? 'Next month');\n\n orderedDayNames = computed(() => {\n const start = this.weekStartsOn();\n const names = this.dayNames();\n if (start === 0) return names;\n return [...names.slice(start), ...names.slice(0, start)];\n });\n\n classes = computed(() => cn(\n 'p-3 bg-background rounded-md border inline-block',\n this.class()\n ));\n\n currentMonth = computed(() => this.viewDate().getMonth());\n currentYear = computed(() => this.viewDate().getFullYear());\n currentMonthName = computed(() => this.monthNames()[this.currentMonth()]);\n\n years = computed(() => {\n const current = new Date().getFullYear();\n const start = current - 100;\n const years: number[] = [];\n for (let i = current; i >= start; i--) {\n years.push(i);\n }\n return years;\n });\n\n calendarDays = computed(() => {\n const year = this.currentYear();\n const month = this.currentMonth();\n const firstDay = new Date(year, month, 1);\n const lastDay = new Date(year, month + 1, 0);\n\n const startOffset = this.weekStartsOn();\n const startingDay = (firstDay.getDay() - startOffset + 7) % 7;\n const totalDays = lastDay.getDate();\n\n const days: (Date | null)[] = [];\n\n for (let i = 0; i < startingDay; i++) {\n days.push(null);\n }\n\n for (let i = 1; i <= totalDays; i++) {\n days.push(new Date(year, month, i));\n }\n\n return days;\n });\n\n selectedTimeString = computed(() => {\n const val = this.selected();\n if (!val) return '';\n\n const parsed = this.parseDate(val as CalendarDateValue);\n if (!parsed) return '';\n\n return this.formatTimeFromDate(parsed);\n });\n\n readonly startTimeString = computed(() => {\n const val = this.selected();\n const mode = this.mode();\n\n if (mode === 'range') {\n const range = val as DateRange | null;\n return this.formatTimeFromDate(range?.start ?? null) || this.selectedTimeRange().start;\n }\n\n if (mode === 'single') {\n const parsed = this.parseDate(val as CalendarDateValue);\n return this.formatTimeFromDate(parsed) || this.selectedTimeRange().start;\n }\n\n return this.selectedTimeRange().start;\n });\n\n readonly endTimeString = computed(() => {\n const val = this.selected();\n const mode = this.mode();\n\n if (mode === 'range') {\n const range = val as DateRange | null;\n return this.formatTimeFromDate(range?.end ?? null) || this.selectedTimeRange().end;\n }\n\n return this.selectedTimeRange().end;\n });\n\n /**\n * Class list for one day button — merges today/selected/in-range states plus the\n * squared-off corners that make a range read as one bar. Called per cell on every\n * change detection pass, so keep it side-effect free.\n */\n getDayClasses(day: Date): string {\n const isToday = this.isSameDay(day, new Date());\n const isSelected = this.isSelected(day);\n const isInRange = this.isInRange(day);\n\n return cn(\n 'inline-flex h-9 w-9 items-center justify-center rounded-md text-sm',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n\n isToday && !isSelected && 'bg-accent text-accent-foreground',\n isSelected && 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground z-10',\n isInRange && !isSelected && 'bg-accent/80 text-accent-foreground rounded-none',\n\n this.isRangeStart(day) && 'rounded-e-none',\n this.isRangeEnd(day) && 'rounded-s-none',\n\n day.getMonth() !== this.currentMonth() && 'opacity-50 pointer-events-none'\n );\n }\n\n private parseDate(val: CalendarDateValue): Date | null {\n if (!val) return null;\n if (val instanceof Date) return val;\n if (typeof val === 'string' && /^\\d{4}-\\d{2}-\\d{2}$/.test(val)) {\n const [y, m, d] = val.split('-').map(Number);\n return new Date(y, m - 1, d);\n }\n const d = new Date(val);\n return Number.isNaN(d.getTime()) ? null : d;\n }\n\n /**\n * Whether `day` is a selected date — compared by calendar day only, so the\n * time-of-day carried by {@link selected} is ignored. In `'range'` mode only the\n * two endpoints count; interior days report through {@link isInRange}.\n */\n isSelected(day: Date): boolean {\n const val = this.selected();\n const mode = this.mode();\n\n if (!val) return false;\n\n if (mode === 'single') {\n const d = this.parseDate(val as Date | string);\n return d ? this.isSameDay(day, d) : false;\n }\n\n if (mode === 'multi') {\n const arr = (val as (Date | string)[]);\n return arr.some(v => {\n const d = this.parseDate(v);\n return d ? this.isSameDay(d, day) : false;\n });\n }\n\n if (mode === 'range') {\n const range = val as DateRange;\n if (range.start && this.isSameDay(day, range.start)) return true;\n if (range.end && this.isSameDay(day, range.end)) return true;\n return false;\n }\n\n return false;\n }\n\n /**\n * Whether `day` falls strictly between the range endpoints (endpoints themselves\n * return `false` — see {@link isSelected}). Always `false` outside `'range'` mode\n * or while the range is half-open. Endpoints stored out of order are tolerated.\n */\n isInRange(day: Date): boolean {\n if (this.mode() !== 'range') return false;\n const val = this.selected() as DateRange | null;\n if (!val?.start || !val.end) return false;\n\n const time = day.getTime();\n const start = val.start.getTime();\n const end = val.end.getTime();\n\n return time > Math.min(start, end) && time < Math.max(start, end);\n }\n\n /**\n * Whether `day` is the opening endpoint of a *complete* range — used only to flatten\n * the trailing corners. Stays `false` while the user has picked a start but no end,\n * so a half-open range still renders as a lone rounded pill.\n */\n isRangeStart(day: Date): boolean {\n if (this.mode() !== 'range') return false;\n const val = this.selected() as DateRange | null;\n return !!(val?.start && this.isSameDay(day, val.start) && val.end);\n }\n\n /**\n * Mirror of {@link isRangeStart} for the closing endpoint — flattens the leading\n * corners, and likewise requires both endpoints to be set.\n */\n isRangeEnd(day: Date): boolean {\n if (this.mode() !== 'range') return false;\n const val = this.selected() as DateRange | null;\n return !!(val?.end && this.isSameDay(day, val.end) && val.start);\n }\n\n private isSameDay(a: Date, b: Date): boolean {\n return a.getFullYear() === b.getFullYear() &&\n a.getMonth() === b.getMonth() &&\n a.getDate() === b.getDate();\n }\n\n /**\n * Applies a day click for the active {@link mode} and writes the result to\n * {@link selected}: single replaces, multi toggles, range fills start → end and\n * restarts once both ends are set (a click before the current start swaps the two).\n * The argument is never mutated: the stored value is a copy carrying the chosen\n * time-of-day, so passing a `Date` you still hold a reference to — such as a cell\n * of the `calendarDays()` grid — is safe.\n */\n selectDay(date: Date): void {\n const day = new Date(date);\n const mode = this.mode();\n const isTimeRange = this.showTimeSelect() && this.timeMode() === 'range';\n let newVal: Date | DateRange | Date[];\n\n if (mode === 'single') {\n newVal = this.selectSingleDay(day, isTimeRange);\n } else if (mode === 'multi') {\n newVal = this.selectMultiDay(day, isTimeRange);\n } else {\n newVal = this.selectRangeDay(day, isTimeRange);\n }\n\n this.selected.set(newVal);\n }\n\n private selectSingleDay(day: Date, isTimeRange: boolean): Date {\n if (isTimeRange) {\n this.applyTimeStringToDate(day, this.selectedTimeRange().start);\n } else {\n const currentSelected = this.selected();\n if (currentSelected) {\n const currentD = this.parseDate(currentSelected as Date | string);\n if (currentD) {\n day.setHours(currentD.getHours(), currentD.getMinutes());\n }\n }\n }\n return day;\n }\n\n private selectMultiDay(day: Date, isTimeRange: boolean): Date[] {\n const currentSelected = this.selected();\n const current = (currentSelected as (Date | string)[]) ?? [];\n const parsedCurrent = current.map(v => this.parseDate(v)).filter(Boolean) as Date[];\n const exists = parsedCurrent.some(d => this.isSameDay(d, day));\n\n if (exists) {\n return parsedCurrent.filter(d => !this.isSameDay(d, day));\n }\n if (isTimeRange) {\n this.applyTimeStringToDate(day, this.selectedTimeRange().start);\n }\n return [...parsedCurrent, day];\n }\n\n private selectRangeDay(day: Date, isTimeRange: boolean): DateRange {\n const currentSelected = this.selected();\n const current = (currentSelected as DateRange) ?? { start: null, end: null };\n\n if (!current.start || (current.start && current.end)) {\n if (isTimeRange) {\n this.applyTimeStringToDate(day, this.selectedTimeRange().start);\n }\n return { start: day, end: null };\n }\n if (day < current.start) {\n if (isTimeRange) {\n this.applyTimeStringToDate(day, this.selectedTimeRange().start);\n this.applyTimeStringToDate(current.start, this.selectedTimeRange().end);\n }\n return { start: day, end: current.start };\n }\n if (isTimeRange) {\n this.applyTimeStringToDate(day, this.selectedTimeRange().end);\n }\n return { start: current.start, end: day };\n }\n\n /**\n * `(change)` handler for the single time field. Stamps the `HH:mm` value onto the\n * currently selected date — or onto the month being viewed when nothing is selected\n * yet, which turns a bare time edit into a selection. A cleared field is ignored.\n */\n updateTime(event: Event): void {\n const input = event.target as HTMLInputElement;\n const val = input.value;\n if (!val) return;\n\n const [hours, minutes] = val.split(':').map(Number);\n\n const currentSel = this.selected();\n let date: Date;\n\n if (currentSel) {\n const parsed = this.parseDate(currentSel as CalendarDateValue);\n if (parsed) {\n date = new Date(parsed);\n } else {\n date = new Date(this.viewDate());\n }\n } else {\n date = new Date(this.viewDate());\n }\n\n date.setHours(hours);\n date.setMinutes(minutes);\n\n this.selected.set(new Date(date));\n }\n\n /**\n * `(change)` handler for the start field of the range time footer. Always records the\n * raw `HH:mm` in {@link selectedTimeRange}, then stamps it onto the range start in\n * `'range'` mode or onto the selected date in `'single'` mode; in `'multi'` mode it\n * only affects days picked afterwards. A cleared field is ignored.\n */\n updateStartTime(event: Event): void {\n const input = event.target as HTMLInputElement;\n const val = input.value;\n if (!val) return;\n\n const currentRange = this.selectedTimeRange();\n this.selectedTimeRange.set({ ...currentRange, start: val });\n\n const [hours, minutes] = val.split(':').map(Number);\n const mode = this.mode();\n const currentSel = this.selected();\n\n if (mode === 'range') {\n const range = (currentSel as DateRange) ?? { start: null, end: null };\n if (range.start) {\n const newStart = new Date(range.start);\n newStart.setHours(hours, minutes);\n const newRange = { ...range, start: newStart };\n this.selected.set(newRange);\n }\n return;\n }\n\n if (mode === 'single') {\n const parsed = this.parseDate(currentSel as CalendarDateValue);\n const date = parsed ? new Date(parsed) : new Date(this.viewDate());\n date.setHours(hours, minutes);\n this.selected.set(new Date(date));\n }\n }\n\n /**\n * `(change)` handler for the end field of the range time footer. Counterpart to\n * {@link updateStartTime}: records the `HH:mm` in {@link selectedTimeRange}, and\n * stamps it onto the range end only in `'range'` mode with an end already picked.\n *\n * In `'single'` and `'multi'` mode it deliberately leaves {@link selected}\n * alone: those selections are single `Date`s, which carry one time-of-day each\n * — already claimed by the start field — so writing the end time onto them\n * would overwrite the start time rather than record an end. The end of a\n * single-day span lives in `selectedTimeRange().end`, which is what\n * {@link endTimeString} reads back outside `'range'` mode.\n */\n updateEndTime(event: Event): void {\n const input = event.target as HTMLInputElement;\n const val = input.value;\n if (!val) return;\n\n const currentRange = this.selectedTimeRange();\n this.selectedTimeRange.set({ ...currentRange, end: val });\n\n const [hours, minutes] = val.split(':').map(Number);\n const mode = this.mode();\n const currentSel = this.selected();\n\n if (mode === 'range') {\n const range = (currentSel as DateRange) ?? { start: null, end: null };\n if (range.end) {\n const newEnd = new Date(range.end);\n newEnd.setHours(hours, minutes);\n const newRange = { ...range, end: newEnd };\n this.selected.set(newRange);\n }\n }\n }\n\n private formatTimeFromDate(date: Date | null): string {\n if (!date) return '';\n const hours = date.getHours().toString().padStart(2, '0');\n const minutes = date.getMinutes().toString().padStart(2, '0');\n return `${hours}:${minutes}`;\n }\n\n private applyTimeStringToDate(date: Date, timeStr: string): void {\n if (!timeStr) return;\n const [hours, minutes] = timeStr.split(':').map(Number);\n date.setHours(hours, minutes);\n }\n\n /** Moves the visible month back one, without touching {@link selected}. */\n previousMonth(): void {\n const current = this.viewDate();\n this.viewDate.set(new Date(current.getFullYear(), current.getMonth() - 1, 1));\n }\n\n /** Moves the visible month forward one, without touching {@link selected}. */\n nextMonth(): void {\n const current = this.viewDate();\n this.viewDate.set(new Date(current.getFullYear(), current.getMonth() + 1, 1));\n }\n\n /**\n * `(valueChange)` handler for the {@link showMonthSelect} picker; `month` is the\n * zero-based month index as a string. Jumps the view to the 1st of that month in\n * the current year.\n */\n onMonthChange(month: string): void {\n const monthNum = Number.parseInt(month, 10);\n const current = this.viewDate();\n this.viewDate.set(new Date(current.getFullYear(), monthNum, 1));\n }\n\n /**\n * `(valueChange)` handler for the {@link showYearSelect} picker; `year` is the\n * four-digit year as a string. Keeps the visible month and jumps to its 1st.\n */\n onYearChange(year: string): void {\n const yearNum = Number.parseInt(year, 10);\n const current = this.viewDate();\n this.viewDate.set(new Date(yearNum, current.getMonth(), 1));\n }\n}\n","<div [class]=\"classes()\" [attr.data-slot]=\"'calendar'\" [attr.dir]=\"dir()\">\n <!-- Header -->\n <div class=\"flex items-center justify-between px-1 relative mb-4\">\n <ui-button\n variant=\"outline\"\n size=\"icon-sm\"\n (click)=\"previousMonth()\"\n (keydown.enter)=\"previousMonth()\"\n (keydown.space)=\"previousMonth()\"\n [ariaLabel]=\"prevMonthLabel()\"\n >\n <svg class=\"h-4 w-4\" [class.rotate-180]=\"rtl()\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 19l-7-7 7-7\" />\n </svg>\n </ui-button>\n\n <div class=\"flex items-center gap-1 font-medium text-sm\">\n @if (showMonthSelect()) {\n <ui-select\n [defaultValue]=\"currentMonth().toString()\"\n position=\"popper\"\n (valueChange)=\"onMonthChange($event)\"\n >\n <ui-select-trigger class=\"h-7 w-[110px]\" ariaLabel=\"Month\">\n <ui-select-value [placeholder]=\"currentMonthName()\" [displayValue]=\"currentMonthName()\" />\n </ui-select-trigger>\n <ui-select-content>\n @for (month of monthNames(); track $index) {\n <ui-select-item [value]=\"$index.toString()\">{{ month }}</ui-select-item>\n }\n </ui-select-content>\n </ui-select>\n } @else {\n <span>{{ currentMonthName() }}</span>\n }\n\n @if (showYearSelect()) {\n <ui-select\n [defaultValue]=\"currentYear().toString()\"\n position=\"popper\"\n (valueChange)=\"onYearChange($event)\"\n >\n <ui-select-trigger class=\"h-7 w-[80px]\" ariaLabel=\"Year\">\n <ui-select-value [placeholder]=\"currentYear().toString()\" />\n </ui-select-trigger>\n <ui-select-content class=\"max-h-60\">\n @for (year of years(); track year) {\n <ui-select-item [value]=\"year.toString()\">{{ year }}</ui-select-item>\n }\n </ui-select-content>\n </ui-select>\n } @else {\n <span>{{ currentYear() }}</span>\n }\n </div>\n\n <ui-button\n variant=\"outline\"\n size=\"icon-sm\"\n (click)=\"nextMonth()\"\n (keydown.enter)=\"nextMonth()\"\n (keydown.space)=\"nextMonth()\"\n [ariaLabel]=\"nextMonthLabel()\"\n >\n <svg class=\"h-4 w-4\" [class.rotate-180]=\"rtl()\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5l7 7-7 7\" />\n </svg>\n </ui-button>\n </div>\n\n <!-- Day names -->\n <div class=\"mt-4 grid grid-cols-7 text-center text-xs text-muted-foreground\">\n @for (day of orderedDayNames(); track day) {\n <div class=\"py-2\">{{ day }}</div>\n }\n </div>\n\n <!-- Days grid -->\n <div class=\"grid grid-cols-7 gap-1\">\n @for (day of calendarDays(); track $index) {\n @if (day) {\n <ui-button\n [class]=\"getDayClasses(day)\"\n (click)=\"selectDay(day)\"\n (keydown.enter)=\"selectDay(day)\"\n (keydown.space)=\"selectDay(day)\"\n [disabled]=\"day.getMonth() !== currentMonth()\"\n [variant]=\"'ghost'\"\n [ariaLabel]=\"day.getDate().toString()\"\n >\n {{ day.getDate() }}\n </ui-button>\n } @else {\n <div data-slot=\"calendar-filler\"></div>\n }\n }\n </div>\n\n @if (showTimeSelect()) {\n <div class=\"mt-4 border-t pt-4\">\n @if (timeMode() === 'range') {\n <div class=\"grid grid-cols-2 gap-3\">\n <div class=\"flex flex-col gap-2\">\n <label class=\"text-sm font-medium\" for=\"start-time\">{{ startTimeLabel() }}</label>\n <div class=\"flex items-center rounded-md border border-input focus-within:ring-1 focus-within:ring-ring\">\n <input\n type=\"time\"\n [attr.dir]=\"dir()\"\n class=\"flex-1 w-full bg-transparent px-3 py-1 text-sm outline-none placeholder:text-muted-foreground rtl:pr-0 [&::-webkit-calendar-picker-indicator]:hidden flex rtl:justify-end\"\n [value]=\"startTimeString()\"\n (change)=\"updateStartTime($event)\"\n id=\"start-time\"\n />\n <div class=\"flex items-center justify-center px-3 py-2 ltr:border-l rtl:border-r border-input bg-muted/50 text-muted-foreground\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"h-4 w-4\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/></svg>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col gap-2\">\n <label class=\"text-sm font-medium\" for=\"end-time\">{{ endTimeLabel() }}</label>\n <div class=\"flex items-center rounded-md border border-input focus-within:ring-1 focus-within:ring-ring\">\n <input\n type=\"time\"\n [attr.dir]=\"dir()\"\n class=\"flex-1 w-full bg-transparent px-3 py-1 text-sm outline-none placeholder:text-muted-foreground rtl:pr-0 [&::-webkit-calendar-picker-indicator]:hidden flex rtl:justify-end\"\n [value]=\"endTimeString()\"\n (change)=\"updateEndTime($event)\"\n id=\"end-time\"\n />\n <div class=\"flex items-center justify-center px-3 py-2 ltr:border-l rtl:border-r border-input bg-muted/50 text-muted-foreground\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"h-4 w-4\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/></svg>\n </div>\n </div>\n </div>\n </div>\n } @else {\n <div class=\"flex flex-col gap-2\">\n <label class=\"text-sm font-medium\" for=\"time\">{{ timeLabel() }}</label>\n <div class=\"flex items-center rounded-md border border-input focus-within:ring-1 focus-within:ring-ring\">\n <input\n type=\"time\"\n [attr.dir]=\"dir()\"\n class=\"flex-1 w-full bg-transparent px-3 py-1 text-sm outline-none placeholder:text-muted-foreground rtl:pr-0 [&::-webkit-calendar-picker-indicator]:hidden flex rtl:justify-end\"\n [value]=\"selectedTimeString()\"\n (change)=\"updateTime($event)\"\n id=\"time\"\n />\n <div class=\"flex items-center justify-center px-3 py-2 ltr:border-l rtl:border-r border-input bg-muted/50 text-muted-foreground\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"h-4 w-4\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/></svg>\n </div>\n </div>\n </div>\n }\n </div>\n }\n</div>\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n signal,\n forwardRef,\n effect,\n ElementRef,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn } from '../../../lib/utils';\nimport type { TopLayerHandle } from '../../../lib/top-layer';\nimport { CalendarComponent, DateRange, TimeRange } from '../../calendar';\nimport { DEFAULT_POPUP_POSITION, calculatePopupPosition, computePopupClasses, computePopupStyles, promotePopup, PopupPosition } from '../date-picker.component';\n\n/**\n * DateRangePickerComponent - For selecting a date range\n *\n * Usage:\n * <ui-date-range-picker (rangeChange)=\"onRangeChange($event)\" />\n */\n@Component({\n selector: 'ui-date-range-picker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CalendarComponent],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DateRangePickerComponent),\n multi: true,\n },\n ],\n templateUrl: './date-range-picker.component.html',\n styleUrl: './date-range-picker.component.css',\n host: {\n class: 'contents',\n '(document:click)': 'onDocumentClick($event)',\n },\n})\nexport class DateRangePickerComponent implements ControlValueAccessor, OnDestroy {\n /** Merged onto the trigger button, whose default width is `w-full sm:w-[300px]` (wider than the single picker, to fit two formatted dates). The popup is unaffected. */\n readonly class = input('');\n /** Muted text on the trigger while no start date is chosen. Once only a start exists the label becomes `<start> - ...`; with both it is `<start> - <end>`. */\n readonly placeholder = input('Pick a date range');\n /** Disables the trigger and makes {@link toggleOpen} a no-op. Driven only by this input — {@link setDisabledState} ignores `control.disable()`. */\n readonly disabled = input(false);\n /**\n * Adds the calendar's start/end time selectors (reported through\n * {@link timeRangeChange}, kept separate from the dates) and appends 2-digit\n * hours and minutes to both trigger labels. It also suppresses the\n * auto-close once both ends are picked, so the times can still be set.\n */\n readonly showTime = input(false);\n /** BCP 47 tag passed to the calendar and to `toLocaleDateString` for both trigger labels — it selects month/day names and field order, not a timezone. */\n readonly locale = input('en');\n\n readonly isOpen = signal(false);\n readonly rangeValue = signal<DateRange>({ start: null, end: null });\n readonly timeRange = signal<TimeRange>({ start: '', end: '' });\n /**\n * Emits the range on every calendar click — including the half-finished\n * `{ start, end: null }` state after the first click — so a consumer must\n * check `end` before treating it as a complete range. Fires alongside the\n * `ControlValueAccessor` change callback.\n */\n readonly rangeChange = output<DateRange>();\n /** Emits the `HH:mm` start/end times when {@link showTime} is on. Times are tracked separately from {@link rangeChange} and are never merged into the `Date` objects. */\n readonly timeRangeChange = output<TimeRange>();\n\n private onChange: (value: DateRange) => void = () => { };\n private onTouched: () => void = () => { };\n\n @ViewChild('popupEl') popupEl?: ElementRef<HTMLElement>;\n @ViewChild('triggerEl') triggerEl?: ElementRef<HTMLElement>;\n\n private readonly adjustedPosition = signal<PopupPosition>({ ...DEFAULT_POPUP_POSITION });\n\n private topLayer: TopLayerHandle | null = null;\n\n constructor() {\n effect(() => {\n if (!this.isOpen()) {\n this.releasePopup();\n return;\n }\n this.adjustedPosition.set({ offsetX: 0, actualSide: 'bottom' });\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.positionPopup();\n });\n });\n });\n }\n\n /** Releases the top-layer promotion when the component is torn down while open. */\n ngOnDestroy(): void {\n this.releasePopup();\n }\n\n readonly buttonClasses = computed(() => cn(\n 'inline-flex w-full sm:w-[300px] items-center justify-start rounded-md border border-input bg-background text-sm font-normal ring-offset-background',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n this.class()\n ));\n\n readonly popupClasses = computed(() => computePopupClasses(this.adjustedPosition()));\n\n readonly popupStyles = computed(() => computePopupStyles(this.adjustedPosition()));\n\n /**\n * Promotes the open panel into the top layer, where the helper's own\n * flip/clamp logic positions it, and only falls back to\n * {@link calculatePopupPosition} when the promotion did not happen.\n */\n private positionPopup(): void {\n const panel = this.popupEl?.nativeElement;\n const anchor = this.triggerEl?.nativeElement;\n if (!panel) return;\n this.releasePopup();\n if (anchor) {\n const handle = promotePopup(panel, anchor);\n if (handle.promoted) {\n this.topLayer = handle;\n return;\n }\n }\n this.adjustedPosition.set(calculatePopupPosition(panel));\n }\n\n private releasePopup(): void {\n this.topLayer?.release();\n this.topLayer = null;\n }\n\n /** Opens or closes the calendar popup (the trigger's click handler); ignored while {@link disabled}. Opening re-runs the flip/shift positioning against the viewport. */\n toggleOpen(): void {\n if (this.disabled()) return;\n this.isOpen.update(v => !v);\n }\n\n /**\n * Calendar `selectedChange` handler: stores the range, emits\n * {@link rangeChange}, notifies the form control and marks it touched. Values\n * that are not a `{ start, end }` object are ignored outright — the existing\n * range is kept rather than cleared. The popup closes only once both ends are\n * set and {@link showTime} is off.\n */\n onRangeSelect(value: unknown): void {\n if (value && typeof value === 'object' && 'start' in value) {\n const range = value as DateRange;\n this.rangeValue.set(range);\n this.rangeChange.emit(range);\n this.onChange(range);\n this.onTouched();\n\n if (range.start && range.end && !this.showTime()) {\n this.isOpen.set(false);\n }\n }\n }\n\n /** Calendar time-selector handler: stores the times and re-emits them via {@link timeRangeChange}. It does not touch the dates, the form value, or the popup's open state. */\n onTimeRangeChange(range: TimeRange): void {\n this.timeRange.set(range);\n this.timeRangeChange.emit(range);\n }\n\n /**\n * Document-level click-outside dismissal, bound on the host. Any click whose\n * target is not inside `[data-slot=\"date-range-picker\"]` closes the popup;\n * clicks within the calendar stop propagating first. A half-picked range\n * survives the close and can be finished on reopen.\n */\n onDocumentClick(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n if (!target.closest('[data-slot=\"date-range-picker\"]')) {\n this.isOpen.set(false);\n }\n }\n\n /**\n * Renders one end of the trigger label: short month, numeric day and year in\n * {@link locale}, plus 2-digit hour and minute when {@link showTime} is on.\n * The abbreviated month keeps both dates on one line; the single-date picker\n * uses the long month instead.\n */\n formatDate(date: Date): string {\n const options: Intl.DateTimeFormatOptions = {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n ...(this.showTime() ? { hour: '2-digit', minute: '2-digit' } : {})\n };\n return date.toLocaleDateString(this.locale(), options);\n }\n\n /** `ControlValueAccessor`: sets both ends of the range; `null` resets to `{ start: null, end: null }` and restores the {@link placeholder}. Any times held for {@link timeRangeChange} are left as they were. */\n writeValue(value: DateRange | null): void {\n if (value) {\n this.rangeValue.set(value);\n } else {\n this.rangeValue.set({ start: null, end: null });\n }\n }\n\n /** `ControlValueAccessor`: the form value is the `DateRange` object only — never the times. It also fires for the intermediate `end: null` state, so validate completeness in the form. */\n registerOnChange(fn: (value: DateRange) => void): void {\n this.onChange = fn;\n }\n\n /** `ControlValueAccessor`: marked touched on the first date click, not on opening or blurring the trigger. */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n /** `ControlValueAccessor` no-op — bind the {@link disabled} input instead; `control.disable()` alone will not disable the trigger. */\n setDisabledState(_isDisabled: boolean): void {\n // Disabled state is managed via the disabled input binding\n }\n}\n","<div class=\"relative\" [attr.data-slot]=\"'date-range-picker'\">\n <button\n #triggerEl\n type=\"button\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled()\"\n (click)=\"toggleOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-haspopup]=\"'dialog'\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"me-2 h-4 w-4\">\n <path d=\"M8 2v4\"/><path d=\"M16 2v4\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\"/><path d=\"M3 10h18\"/>\n </svg>\n @if (rangeValue().start && rangeValue().end) {\n <span>{{ formatDate(rangeValue().start!) }} - {{ formatDate(rangeValue().end!) }}</span>\n } @else if (rangeValue().start) {\n <span>{{ formatDate(rangeValue().start!) }} - ...</span>\n } @else {\n <span class=\"text-muted-foreground\">{{ placeholder() }}</span>\n }\n </button>\n\n @if (isOpen()) {\n <div\n #popupEl\n [class]=\"popupClasses()\"\n [style]=\"popupStyles()\"\n tabindex=\"-1\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"$event.stopPropagation()\"\n >\n <ui-calendar\n mode=\"range\"\n [selected]=\"rangeValue()\"\n [showTimeSelect]=\"showTime()\"\n timeMode=\"range\"\n [selectedTimeRange]=\"timeRange()\"\n [showMonthSelect]=\"true\"\n [showYearSelect]=\"true\"\n [locale]=\"locale()\"\n (selectedChange)=\"onRangeSelect($event)\"\n (selectedTimeRangeChange)=\"onTimeRangeChange($event)\"\n />\n </div>\n }\n</div>\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n signal,\n forwardRef,\n effect,\n ElementRef,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { cn, getClippingRect } from '../../lib/utils';\nimport { anchorToTopLayer, type TopLayerAlign, type TopLayerHandle } from '../../lib/top-layer';\nimport { CalendarComponent } from '../calendar';\nexport { DateRangePickerComponent } from './sub/date-range-picker.component';\n\nexport type PopupPosition = { offsetX: number; actualSide: 'top' | 'bottom' };\n\nexport const DEFAULT_POPUP_POSITION: PopupPosition = { offsetX: 0, actualSide: 'bottom' };\n\nexport function calculatePopupPosition(element: HTMLElement): PopupPosition {\n const rect = element.getBoundingClientRect();\n const boundary = getClippingRect(element);\n\n let offsetX = 0;\n let actualSide: 'top' | 'bottom' = 'bottom';\n\n if (rect.right > boundary.right) {\n offsetX = boundary.right - rect.right - 8;\n } else if (rect.left < boundary.left) {\n offsetX = boundary.left - rect.left + 8;\n }\n\n const overflowBottom = rect.bottom - boundary.bottom;\n const parentEl = element.parentElement;\n const parentRect = parentEl?.getBoundingClientRect();\n const spaceAbove = parentRect ? parentRect.top - boundary.top : 0;\n const spaceBelow = parentRect ? boundary.bottom - parentRect.bottom : 0;\n\n if (overflowBottom > 0) {\n actualSide = spaceAbove > spaceBelow ? 'top' : 'bottom';\n }\n\n return { offsetX, actualSide };\n}\n\nexport function computePopupClasses(position: PopupPosition): string {\n const sideClasses = {\n top: 'bottom-full mb-1',\n bottom: 'top-full mt-1',\n };\n return cn(\n 'absolute ltr:left-0 rtl:right-0 z-50 max-w-[calc(100vw-2rem)] rounded-md border bg-popover p-0 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95',\n sideClasses[position.actualSide]\n );\n}\n\nexport function computePopupStyles(position: PopupPosition): string {\n if (position.offsetX !== 0) {\n return `transform: translateX(${position.offsetX}px);`;\n }\n return '';\n}\n\n/**\n * Which edge of the trigger the popup lines up with, honouring the writing\n * direction: the panel is start-aligned, which is the trigger's right edge in\n * RTL — the same thing the `ltr:left-0 rtl:right-0` fallback classes do.\n */\nexport function popupAlign(anchor: HTMLElement): TopLayerAlign {\n return getComputedStyle(anchor).direction === 'rtl' ? 'end' : 'start';\n}\n\n/**\n * Promote the calendar panel into the top layer so it escapes any\n * `overflow: hidden` ancestor (a card, an accordion panel, a scroll area).\n * A `z-index` cannot do this. The returned handle's `release()` must be called\n * when the popup closes; a handle with `promoted: false` means the panel was\n * left alone and the `absolute` fallback positioning still applies.\n */\nexport function promotePopup(panel: HTMLElement, anchor: HTMLElement): TopLayerHandle {\n return anchorToTopLayer(panel, anchor, { gap: 4, side: 'bottom', align: popupAlign(anchor) });\n}\n\n/**\n * DatePickerComponent - A date selection component combining Popover and Calendar\n * \n * Usage:\n * <ui-date-picker [(date)]=\"selectedDate\" placeholder=\"Select a date\" />\n * <ui-date-picker [showTime]=\"true\" placeholder=\"Pick date & time\" />\n * \n * Or with reactive forms:\n * <ui-date-picker formControlName=\"birthDate\" />\n */\n@Component({\n selector: 'ui-date-picker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CalendarComponent],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DatePickerComponent),\n multi: true,\n },\n ],\n templateUrl: './date-picker.component.html',\n styleUrl: './date-picker.component.css',\n host: {\n class: 'contents',\n '(document:click)': 'onDocumentClick($event)',\n },\n})\nexport class DatePickerComponent implements ControlValueAccessor, OnDestroy {\n /** Merged onto the trigger button, whose default width is `w-full sm:w-[240px]` — use it to widen/narrow the field or restyle the border. The popup is unaffected. */\n readonly class = input('');\n /** Muted text shown on the trigger while no date is selected; replaced by {@link formatDate} output once there is one. */\n readonly placeholder = input('Pick a date');\n /** Disables the trigger button and makes {@link toggleOpen} a no-op. Driven only by this input — {@link setDisabledState} ignores `control.disable()`. */\n readonly disabled = input(false);\n /**\n * Adds the calendar's time-of-day selector and includes 2-digit hours and\n * minutes in the trigger label. Also changes dismissal: with time on, picking\n * a day keeps the popup open so the time can still be set, instead of closing\n * on selection (see {@link onDateSelect}).\n */\n readonly showTime = input(false);\n /** BCP 47 tag passed to the calendar and to `toLocaleDateString` for the trigger label — it selects month/day names and field order, not a timezone. */\n readonly locale = input('en');\n /**\n * Initial/externally-set date, for `[(date)]` two-way binding with\n * {@link dateChange}. Pushing `null` clears the selection back to the\n * {@link placeholder}; only the initial `null` default is ignored, so a\n * date written through a form control is not clobbered on first render.\n */\n readonly date = input<Date | null>(null);\n /** Emits on every calendar selection (the `[(date)]` half). Fires alongside the `ControlValueAccessor` change callback, so forms and two-way binding stay in sync. */\n readonly dateChange = output<Date | null>();\n\n readonly isOpen = signal(false);\n readonly internalValue = signal<Date | null>(null);\n private onChange: (value: Date | null) => void = () => { };\n private onTouched: () => void = () => { };\n\n @ViewChild('popupEl') popupEl?: ElementRef<HTMLElement>;\n @ViewChild('triggerEl') triggerEl?: ElementRef<HTMLElement>;\n\n private readonly adjustedPosition = signal<PopupPosition>({ ...DEFAULT_POPUP_POSITION });\n\n private topLayer: TopLayerHandle | null = null;\n\n private isFirstDateInput = true;\n\n constructor() {\n effect(() => {\n const dateInput = this.date();\n const isInitialRun = this.isFirstDateInput;\n this.isFirstDateInput = false;\n if (dateInput === null && isInitialRun) return;\n this.internalValue.set(dateInput);\n });\n effect(() => {\n if (!this.isOpen()) {\n this.releasePopup();\n return;\n }\n this.adjustedPosition.set({ offsetX: 0, actualSide: 'bottom' });\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.positionPopup();\n });\n });\n });\n }\n\n /** Releases the top-layer promotion when the component is torn down while open. */\n ngOnDestroy(): void {\n this.releasePopup();\n }\n\n readonly buttonClasses = computed(() => cn(\n 'inline-flex w-full sm:w-[240px] items-center justify-start rounded-md border border-input bg-background text-sm font-normal ring-offset-background',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n this.class()\n ));\n\n readonly popupClasses = computed(() => computePopupClasses(this.adjustedPosition()));\n\n readonly popupStyles = computed(() => computePopupStyles(this.adjustedPosition()));\n\n /**\n * Promotes the open panel into the top layer, where the helper's own\n * flip/clamp logic positions it, and only falls back to\n * {@link calculatePopupPosition} when the promotion did not happen.\n */\n private positionPopup(): void {\n const panel = this.popupEl?.nativeElement;\n const anchor = this.triggerEl?.nativeElement;\n if (!panel) return;\n this.releasePopup();\n if (anchor) {\n const handle = promotePopup(panel, anchor);\n if (handle.promoted) {\n this.topLayer = handle;\n return;\n }\n }\n this.adjustedPosition.set(calculatePopupPosition(panel));\n }\n\n private releasePopup(): void {\n this.topLayer?.release();\n this.topLayer = null;\n }\n\n /** Opens or closes the calendar popup (the trigger's click handler); ignored while {@link disabled}. Opening re-runs the flip/shift positioning against the viewport. */\n toggleOpen(): void {\n if (!this.disabled()) {\n this.isOpen.update(v => !v);\n }\n }\n\n /**\n * Calendar `selectedChange` handler: stores the date, emits\n * {@link dateChange}, notifies the form control, and marks it touched.\n * Anything that is not a `Date` is normalised to `null` (a cleared\n * selection). The popup closes here unless {@link showTime} is set.\n */\n onDateSelect(value: unknown): void {\n let selectedDate: Date | null = null;\n if (value instanceof Date) {\n selectedDate = value;\n }\n this.internalValue.set(selectedDate);\n this.dateChange.emit(selectedDate);\n this.onChange(selectedDate);\n this.onTouched();\n if (!this.showTime()) {\n this.isOpen.set(false);\n }\n }\n\n /**\n * Document-level click-outside dismissal, bound on the host. Any click whose\n * target is not inside `[data-slot=\"date-picker\"]` closes the popup; clicks\n * within the calendar stop propagating before they reach here. Closing this\n * way does not touch the selected value.\n */\n onDocumentClick(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n if (!target.closest('[data-slot=\"date-picker\"]')) {\n this.isOpen.set(false);\n }\n }\n\n /**\n * Renders the trigger label: long month, numeric day and year in\n * {@link locale}, plus 2-digit hour and minute when {@link showTime} is on.\n * Exposed so a host template can reuse the exact same label formatting.\n */\n formatDate(date: Date): string {\n const options: Intl.DateTimeFormatOptions = {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n ...(this.showTime() ? { hour: '2-digit', minute: '2-digit' } : {})\n };\n return date.toLocaleDateString(this.locale(), options);\n }\n\n /** `ControlValueAccessor`: sets the displayed date. Unlike the {@link date} input this *does* accept `null`, which clears the selection back to the {@link placeholder}. */\n writeValue(value: Date | null): void {\n this.internalValue.set(value);\n }\n\n /** `ControlValueAccessor`: the callback fires on each calendar selection, with the same value as {@link dateChange}. */\n registerOnChange(fn: (value: Date | null) => void): void {\n this.onChange = fn;\n }\n\n /** `ControlValueAccessor`: marked touched on the first selection, not on opening or blurring the trigger. */\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n /** `ControlValueAccessor` no-op — bind the {@link disabled} input instead; `control.disable()` alone will not disable the trigger. */\n setDisabledState(_isDisabled: boolean): void {\n // Disabled state is managed via the disabled input binding\n }\n}\n\n","<div class=\"relative\" [attr.data-slot]=\"'date-picker'\">\n <button\n #triggerEl\n type=\"button\"\n [class]=\"buttonClasses()\"\n [disabled]=\"disabled()\"\n (click)=\"toggleOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-haspopup]=\"'dialog'\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"ltr:mr-2 rtl:ml-2 h-4 w-4\">\n <path d=\"M8 2v4\"/><path d=\"M16 2v4\"/><rect width=\"18\" height=\"18\" x=\"3\" y=\"4\" rx=\"2\"/><path d=\"M3 10h18\"/>\n </svg>\n @if (internalValue()) {\n <span>{{ formatDate(internalValue()!) }}</span>\n } @else {\n <span class=\"text-muted-foreground\">{{ placeholder() }}</span>\n }\n </button>\n\n @if (isOpen()) {\n <div\n #popupEl\n [class]=\"popupClasses()\"\n [style]=\"popupStyles()\"\n tabindex=\"-1\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"$event.stopPropagation()\"\n >\n <ui-calendar\n mode=\"single\"\n [selected]=\"internalValue()\"\n [showTimeSelect]=\"showTime()\"\n [showMonthSelect]=\"true\"\n [showYearSelect]=\"true\"\n [locale]=\"locale()\"\n (selectedChange)=\"onDateSelect($event)\"\n />\n </div>\n }\n</div>\n","import { Injectable } from '@angular/core';\n\n/**\n * The stack of open overlays -- dialogs, sheets, drawers, popovers -- in the\n * order they opened, so Escape can be given to exactly one of them: the\n * innermost.\n *\n * Every overlay used to handle Escape on its own (a panel keydown here, a\n * document listener there), and one keypress closed whatever heard it: a\n * popover AND the dialog it sat in, or every open popover at once. Each\n * overlay now registers while open and asks whether anything opened after it;\n * only an overlay with nothing above it acts on the key. An overlay that never\n * registered is treated as the outermost layer, so a component used outside\n * the stack keeps its old behaviour.\n */\n@Injectable({ providedIn: 'root' })\nexport class OverlayStackService {\n private readonly stack: object[] = [];\n\n /** Put `overlay` on top, moving it there if it is already registered. */\n push(overlay: object): void {\n this.remove(overlay);\n this.stack.push(overlay);\n }\n\n remove(overlay: object): void {\n const index = this.stack.indexOf(overlay);\n if (index !== -1) this.stack.splice(index, 1);\n }\n\n /**\n * Whether another open overlay sits above `overlay`. False when nothing is\n * open above it -- including when `overlay` never registered and the stack\n * is empty, which is the standalone case.\n */\n hasOverlayAbove(overlay: object | null | undefined): boolean {\n if (this.stack.length === 0) return false;\n const index = overlay ? this.stack.indexOf(overlay) : -1;\n return index === -1 ? true : index < this.stack.length - 1;\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n inject,\n ElementRef,\n InjectionToken,\n forwardRef,\n OnDestroy,\n effect,\n model,\n DestroyRef,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { OverlayStackService } from '../../lib/overlay-stack.service';\nexport type PopoverSide = 'top' | 'right' | 'bottom' | 'left';\nexport type PopoverAlign = 'start' | 'center' | 'end';\n\nexport const POPOVER = new InjectionToken<PopoverComponent>('POPOVER');\n\n@Component({\n selector: 'ui-popover',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: POPOVER, useExisting: forwardRef(() => PopoverComponent) }],\n template: `<ng-content />`,\n host: { class: 'relative inline-block' },\n})\nexport class PopoverComponent implements OnDestroy {\n private readonly el = inject(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n /** Registers this popover as an overlay layer while open, so Escape reaches only the innermost one. */\n private readonly layers = inject(OverlayStackService);\n\n /**\n * Two-way open state, shared with the trigger and content through DI. Clicking\n * outside the popover (and outside its portal) closes it and writes `false`\n * back, so a consumer binding stays in sync with user dismissals.\n */\n open = model<boolean>(false);\n /**\n * Dismisses the popover when anything outside it scrolls, in any ancestor\n * (the listener is registered in the capture phase). Off by default because\n * the content follows the trigger anyway; turn it on inside long scrolling\n * pages where a detached panel would look wrong.\n */\n closeOnScroll = input(false);\n\n private portalEl: HTMLElement | null = null;\n\n /**\n * Called by the content component to declare the element it renders into when\n * it escapes the host's DOM subtree. Clicks and scrolls inside that element\n * are then treated as \"inside\" the popover and do not dismiss it. Pass `null`\n * to unregister.\n */\n registerPortal(el: HTMLElement | null): void {\n this.portalEl = el;\n }\n\n private readonly clickListener = (event: MouseEvent): void => {\n const target = event.target as Node;\n if (this.el.nativeElement.contains(target)) return;\n if (this.portalEl?.contains(target)) return;\n this.hide();\n };\n\n /**\n * Escape closes the popover, as the class doc has always claimed and no\n * handler ever did. Bound on the document rather than the host because\n * focus is often inside a portalled panel — or, for the editor's pickers,\n * still in the editable behind it — so a host-level listener would never\n * see the key. Ignored while closed so it cannot swallow an Escape another\n * layer wants.\n */\n private readonly escapeListener = (event: KeyboardEvent): void => {\n if (event.key !== 'Escape' || !this.open()) return;\n // Bubble phase on the document, so every handler on the way up -- the\n // focused control's own, an autocomplete's list -- has already run.\n // The overlay stack keeps one Escape to one layer: a popover opened\n // after this one (an autocomplete's list inside it) owns the key, and\n // a dialog beneath it defers to it.\n if (this.layers.hasOverlayAbove(this)) return;\n this.hide();\n };\n\n private scrollCleanup: (() => void) | null = null;\n\n constructor() {\n this.document.addEventListener('click', this.clickListener);\n this.document.addEventListener('keydown', this.escapeListener);\n\n effect(() => {\n if (this.open()) this.layers.push(this);\n else this.layers.remove(this);\n });\n\n effect(() => {\n const isOpen = this.open();\n const shouldClose = this.closeOnScroll();\n\n this.removeScrollListener();\n\n if (isOpen && shouldClose) {\n setTimeout(() => {\n const el = this.el.nativeElement;\n const handler = (e: Event): void => {\n if (!(e.target instanceof Node)) return;\n if (el.contains(e.target)) return;\n if (this.portalEl?.contains(e.target)) return;\n this.hide();\n };\n globalThis.window.addEventListener('scroll', handler, { capture: true, passive: true });\n this.scrollCleanup = () => globalThis.window.removeEventListener('scroll', handler, { capture: true });\n }, 0);\n }\n });\n\n this.destroyRef.onDestroy(() => this.removeScrollListener());\n }\n\n private removeScrollListener(): void {\n if (this.scrollCleanup) {\n this.scrollCleanup();\n this.scrollCleanup = null;\n }\n }\n\n ngOnDestroy(): void {\n this.document.removeEventListener('click', this.clickListener);\n this.document.removeEventListener('keydown', this.escapeListener);\n this.removeScrollListener();\n this.layers.remove(this);\n }\n\n /** Flips the open state. This is what the trigger calls, and the usual entry point for a custom trigger of your own. */\n toggle(): void {\n const newState = !this.open();\n this.open.set(newState);\n }\n\n /** Opens the popover programmatically — e.g. on focus or after an async action. Idempotent. */\n show(): void {\n this.open.set(true);\n }\n\n /** Closes the popover. Also called internally on an outside click, on Escape, and by `ui-popover-close`. */\n hide(): void {\n this.open.set(false);\n }\n\n /**\n * Live viewport rectangle of the trigger element, which the content uses as\n * its positioning anchor. Returns `null` when no `data-slot=\"popover-trigger\"`\n * element is present — the content then has nothing to anchor to.\n */\n getTriggerRect(): DOMRect | null {\n return this.queryTrigger()?.getBoundingClientRect() ?? null;\n }\n\n /**\n * The element focus returns to when the content closes with `restoreFocus`\n * on: the trigger's first focusable descendant — a projected `<ui-button>`\n * or `<button>` — or the trigger wrapper itself, which carries `tabindex=\"0\"`\n * only while it wraps non-interactive content. `null` when there is no\n * trigger to return to.\n */\n getTriggerFocusTarget(): HTMLElement | null {\n const trigger = this.queryTrigger();\n if (!trigger) return null;\n const focusable = trigger.querySelector<HTMLElement>(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n return focusable ?? trigger;\n }\n\n private queryTrigger(): HTMLElement | null {\n return this.el.nativeElement.querySelector('[data-slot=\"popover-trigger\"]');\n }\n}\n\n\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n afterNextRender,\n inject,\n signal,\n} from '@angular/core';\nimport { POPOVER } from '../popover.component';\nimport { hasInteractiveContent } from '../../../lib/a11y';\n\n@Component({\n selector: 'ui-popover-trigger',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span\n [attr.role]=\"wrapsInteractive() ? null : 'button'\"\n [attr.tabindex]=\"wrapsInteractive() ? null : 0\"\n (click)=\"onClick($event)\"\n (keydown.enter)=\"onKeydown($event)\"\n (keydown.space)=\"onKeydown($event)\"\n [attr.data-slot]=\"'popover-trigger'\"\n >\n <ng-content />\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class PopoverTriggerComponent {\n private readonly popover = inject(POPOVER, { optional: true });\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * True when the projected content is already an interactive control (a\n * `<ui-button>`, a native `<button>`, …). The wrapper then stays a\n * transparent event delegate instead of adding a second, nested\n * `role=\"button\"` — see `lib/a11y.ts`.\n */\n readonly wrapsInteractive = signal(false);\n\n constructor() {\n afterNextRender(() => {\n this.wrapsInteractive.set(hasInteractiveContent(this.host.nativeElement));\n });\n }\n\n /** Toggles the popover and stops the click propagating, which is what keeps the document-level outside-click listener from immediately closing what this click just opened. */\n onClick(event: MouseEvent): void {\n event.stopPropagation();\n this.popover?.toggle();\n }\n\n /**\n * Only act on the wrapper's own keyboard activation. When the projected\n * content is focusable it already turns Enter/Space into a click that\n * bubbles here, and handling the keydown too would toggle twice.\n */\n onKeydown(event: Event): void {\n if (event.target !== event.currentTarget) return;\n event.preventDefault();\n event.stopPropagation();\n this.popover?.toggle();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n signal,\n inject,\n AfterViewInit,\n OnDestroy,\n effect,\n ViewChild,\n ElementRef,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { cn, getClippingRect } from '../../../lib/utils';\nimport { POPOVER } from '../popover.component';\n\ntype PopoverSide = 'top' | 'right' | 'bottom' | 'left';\ntype PopoverAlign = 'start' | 'center' | 'end';\n\n@Component({\n selector: 'ui-popover-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './popover-content.component.css',\n template: `\n @if (popover?.open()) {\n <div\n #contentEl\n [class]=\"classes()\"\n [style]=\"positionStyles()\"\n [style.visibility]=\"strategy() === 'fixed' && !portalReady() ? 'hidden' : null\"\n [attr.data-state]=\"popover?.open() ? 'open' : 'closed'\"\n [attr.data-slot]=\"'popover-content'\"\n >\n <ng-content />\n </div>\n }\n `,\n host: { class: 'contents' },\n})\nexport class PopoverContentComponent implements AfterViewInit, OnDestroy {\n readonly popover = inject(POPOVER, { optional: true });\n private readonly document = inject(DOCUMENT);\n\n /** Extra classes merged onto the panel. Keep a width constraint viewport-aware (`max-w-[calc(100vw-2rem)]`), since the panel is positioned, not laid out by its parent. */\n class = input('');\n /** Alignment along the chosen {@link side}'s edge: `'start'`, `'center'` or `'end'`. May be flipped at runtime when {@link avoidCollisions} is on. */\n align = input<PopoverAlign>('center');\n /** Preferred edge of the trigger to open from. Treated as a preference — collision handling can move the panel to the opposite side when there is no room. */\n side = input<PopoverSide>('bottom');\n /** Gap in pixels between the trigger and the panel, measured along {@link side}. */\n sideOffset = input(4);\n /** Lets the panel flip and shift to stay inside the nearest clipping rectangle. Turn it off to pin it strictly to {@link side} / {@link align}, accepting clipping. */\n avoidCollisions = input(true);\n /**\n * Returns focus to the trigger when the popover closes, so a keyboard user\n * carries on from where they opened it. Only applies when focus was still\n * inside the panel (or nowhere) at close time — dismissing the popover by\n * clicking or tabbing to something else leaves that new focus alone. Set\n * `false` to never move focus.\n */\n restoreFocus = input(true);\n /**\n * Positioning mode. `'absolute'` keeps the panel inside the popover's own\n * subtree — simplest, but it can be clipped by an `overflow: hidden`\n * ancestor. `'fixed'` portals the panel out and promotes it to the browser's\n * top layer via the native Popover API, so it renders above dialogs and any\n * z-index; the panel is kept hidden for the frame it takes to portal, to\n * avoid a flash at the wrong position.\n */\n strategy = input<'absolute' | 'fixed'>('absolute');\n\n @ViewChild('contentEl') contentEl?: ElementRef<HTMLElement>;\n\n private portalHost: HTMLElement | null = null;\n private usedPopoverApi = false;\n private wasOpen = false;\n public readonly portalReady = signal(false);\n\n /**\n * Trigger geometry captured on a settled frame. `positionStyles` reads this\n * signal so it recomputes once the surrounding layout (e.g. a dialog that is\n * still reflowing when the popover opens) has stabilised — reading the rect\n * imperatively would memoise a stale position.\n */\n private readonly triggerRectSig = signal<DOMRect | null>(null);\n\n private readonly adjustedPosition = signal<{\n side: PopoverSide;\n align: PopoverAlign;\n offsetX: number;\n offsetY: number;\n }>({ side: 'bottom', align: 'center', offsetX: 0, offsetY: 0 });\n\n constructor() {\n effect(() => {\n if (this.popover?.open()) {\n if (this.strategy() === 'fixed') {\n this.portalReady.set(false);\n this.usedPopoverApi = false;\n }\n this.adjustedPosition.set({\n side: this.side(),\n align: this.align(),\n offsetX: 0,\n offsetY: 0,\n });\n requestAnimationFrame(() => this.portalAndPosition(0));\n this.wasOpen = true;\n } else {\n const shouldRestoreFocus = this.wasOpen && this.restoreFocus() && this.isFocusRestorable();\n this.wasOpen = false;\n this.portalReady.set(false);\n this.removeContent();\n if (shouldRestoreFocus) {\n this.popover?.getTriggerFocusTarget()?.focus();\n }\n }\n });\n }\n\n /**\n * Whether closing should move focus back to the trigger. Restoring is only\n * right while focus is still inside the panel — or already lost to the body,\n * which is where it lands when the panel element is torn down. Focus that\n * has moved to another control belongs to the user, and stealing it back\n * would fight them.\n */\n private isFocusRestorable(): boolean {\n const active = this.document.activeElement;\n if (!active || active === this.document.body) return true;\n const el = this.contentEl?.nativeElement;\n return !!el && el.contains(active);\n }\n\n ngAfterViewInit(): void {\n const placed = this.placeContent();\n if (this.strategy() === 'fixed') {\n if (placed) this.finalizeFixedPosition();\n return;\n }\n this.calculatePosition();\n }\n\n private portalAndPosition(attempt: number): void {\n if (!this.popover?.open()) return;\n const placed = this.placeContent();\n if (!placed && this.strategy() === 'fixed' && attempt < 10) {\n requestAnimationFrame(() => this.portalAndPosition(attempt + 1));\n return;\n }\n if (this.strategy() === 'fixed') {\n if (placed) this.finalizeFixedPosition();\n else this.fallbackToPortal();\n return;\n }\n this.calculatePosition();\n this.portalReady.set(true);\n }\n\n /**\n * Position a fixed/top-layer popover once layout has settled. The trigger\n * rect is captured into a signal (so `positionStyles` recomputes with the\n * final geometry) across two frames — covering a dialog or toolbar that is\n * still reflowing when the popover opens — then a width-aware collision\n * adjustment runs and the content is revealed.\n */\n private finalizeFixedPosition(): void {\n if (!this.popover?.open()) return;\n this.triggerRectSig.set(this.popover.getTriggerRect());\n requestAnimationFrame(() => {\n if (!this.popover?.open()) return;\n this.triggerRectSig.set(this.popover.getTriggerRect());\n const el = this.contentEl?.nativeElement;\n if (el) this.adjustFixedPosition(el);\n this.portalReady.set(true);\n });\n }\n\n ngOnDestroy(): void {\n this.removeContent();\n }\n\n /**\n * Place a fixed popover so it renders above any modal. Prefers the native\n * Popover API, which promotes the element to the browser top layer — above a\n * native `<dialog>`, our `ui-dialog`, or a high z-index modal — regardless of\n * ancestor stacking contexts, while keeping the element in its DOM position\n * (so outside-click detection still works). Top-layer elements also resolve\n * `position:fixed` against the viewport, so the trigger-relative coordinates\n * stay correct even inside transformed/overflow ancestors. `showPopover`\n * throws on engines without the Popover API, so we fall back to a\n * `document.body` portal there.\n *\n * Returns `false` while the API exists but the element is not yet attached,\n * so the caller retries on the next frame. `showPopover` throws\n * `InvalidStateError` on a disconnected element, and treating that like an\n * unsupported engine would permanently downgrade a top-layer popover to the\n * portal whenever the open raced the element's attachment — silently losing\n * the above-any-modal guarantee. Only a genuine lack of the API falls back.\n */\n private placeContent(): boolean {\n if (this.strategy() !== 'fixed') return false;\n const el = this.contentEl?.nativeElement;\n if (!el) return false;\n if (this.usedPopoverApi) return true;\n if (typeof el.showPopover === 'function' && !el.isConnected) return false;\n try {\n el.setAttribute('popover', 'manual');\n el.showPopover();\n this.usedPopoverApi = true;\n return true;\n } catch {\n el.removeAttribute('popover');\n }\n return this.portalToBody();\n }\n\n /**\n * Last-resort placement once the retry budget is spent: the element never\n * attached, or the engine has no Popover API. Portals to `document.body` so\n * a fixed popover still escapes `overflow`/stacking ancestors, then runs the\n * normal fixed-position finalisation.\n */\n private fallbackToPortal(): void {\n if (this.portalToBody()) this.finalizeFixedPosition();\n }\n\n private removeContent(): void {\n const el = this.contentEl?.nativeElement;\n if (this.usedPopoverApi && el) {\n try {\n el.hidePopover();\n } catch {\n // The element may already be disconnected from the DOM — nothing to hide.\n }\n el.removeAttribute('popover');\n }\n this.usedPopoverApi = false;\n this.removePortal();\n }\n\n private portalToBody(): boolean {\n if (this.strategy() !== 'fixed') return false;\n const el = this.contentEl?.nativeElement;\n if (!el) return false;\n if (!this.portalHost) {\n this.portalHost = this.document.createElement('div');\n this.portalHost.dataset['popoverPortal'] = 'true';\n this.portalHost.style.cssText = 'display:contents';\n this.document.body.appendChild(this.portalHost);\n this.popover?.registerPortal(this.portalHost);\n }\n this.portalHost.appendChild(el);\n return true;\n }\n\n private removePortal(): void {\n this.popover?.registerPortal(null);\n this.portalHost?.remove();\n this.portalHost = null;\n }\n\n private calculatePosition(): void {\n if (this.strategy() === 'fixed' && this.contentEl?.nativeElement) {\n this.adjustFixedPosition(this.contentEl.nativeElement);\n return;\n }\n if (!this.avoidCollisions() || !this.contentEl?.nativeElement) {\n this.adjustedPosition.set({\n side: this.side(),\n align: this.align(),\n offsetX: 0,\n offsetY: 0,\n });\n return;\n }\n\n this.adjustCollisionPosition(this.contentEl.nativeElement);\n }\n\n private adjustFixedPosition(el: HTMLElement): void {\n const rect = el.getBoundingClientRect();\n const vw = globalThis.window.innerWidth;\n const vh = globalThis.window.innerHeight;\n const needsHorizontalFix = rect.right > vw || rect.left < 0;\n const needsVerticalFix = rect.bottom > vh || rect.top < 0;\n\n if (needsHorizontalFix) {\n const clampedLeft = Math.max(8, Math.min(rect.left, vw - rect.width - 8));\n el.style.left = `${clampedLeft}px`;\n el.style.transform = 'none';\n }\n if (needsVerticalFix) {\n const clampedTop = Math.max(8, Math.min(rect.top, vh - rect.height - 8));\n el.style.top = `${clampedTop}px`;\n }\n }\n\n private adjustCollisionPosition(content: HTMLElement): void {\n const contentRect = content.getBoundingClientRect();\n const boundary = getClippingRect(content);\n\n const offsetX = this.computeHorizontalOffset(contentRect, boundary);\n const { side, offsetY } = this.computeVerticalAdjustment(contentRect, boundary);\n\n this.adjustedPosition.set({\n side,\n align: this.align(),\n offsetX,\n offsetY,\n });\n }\n\n private computeHorizontalOffset(contentRect: DOMRect, boundary: { left: number; right: number }): number {\n if (contentRect.right > boundary.right) {\n return -(contentRect.right - boundary.right + 8);\n }\n if (contentRect.left < boundary.left) {\n return boundary.left - contentRect.left + 8;\n }\n return 0;\n }\n\n private computeVerticalAdjustment(\n contentRect: DOMRect,\n boundary: { top: number; bottom: number }\n ): { side: PopoverSide; offsetY: number } {\n const overflowBottom = contentRect.bottom - boundary.bottom;\n const overflowTop = boundary.top - contentRect.top;\n const currentSide = this.side();\n\n if (overflowBottom > 0) {\n return this.resolveVerticalOverflow(currentSide, 'bottom', 'top', overflowBottom, contentRect.height, boundary);\n }\n if (overflowTop > 0) {\n return this.resolveVerticalOverflow(currentSide, 'top', 'bottom', -overflowTop, contentRect.height, boundary);\n }\n return { side: currentSide, offsetY: 0 };\n }\n\n private resolveVerticalOverflow(\n currentSide: PopoverSide,\n overflowSide: PopoverSide,\n flipSide: PopoverSide,\n overflow: number,\n contentHeight: number,\n boundary: { top: number; bottom: number }\n ): { side: PopoverSide; offsetY: number } {\n if (currentSide !== overflowSide) {\n return { side: currentSide, offsetY: -(overflow + 8) };\n }\n const triggerRect = this.popover?.getTriggerRect();\n const availableSpace = this.getAvailableSpace(flipSide, triggerRect, boundary);\n\n if (availableSpace >= contentHeight) {\n return { side: flipSide, offsetY: 0 };\n }\n return { side: currentSide, offsetY: -(overflow + 8) };\n }\n\n private getAvailableSpace(\n flipSide: PopoverSide,\n triggerRect: DOMRect | null | undefined,\n boundary: { top: number; bottom: number }\n ): number {\n if (!triggerRect) return 0;\n if (flipSide === 'top') return triggerRect.top - boundary.top;\n return boundary.bottom - triggerRect.bottom;\n }\n\n positionStyles = computed(() => {\n const pos = this.adjustedPosition();\n\n if (this.strategy() === 'fixed') {\n return this.computeFixedStyles(pos);\n }\n\n if (pos.offsetX !== 0) {\n return `transform: translateX(${pos.offsetX}px);`;\n }\n\n return '';\n });\n\n private computeFixedStyles(pos: { side: PopoverSide; align: PopoverAlign; offsetX: number; offsetY: number }): string {\n const triggerRect = this.triggerRectSig() ?? this.popover?.getTriggerRect();\n if (!triggerRect) return '';\n\n const currentSide = this.avoidCollisions() ? pos.side : this.side();\n const currentAlign = this.avoidCollisions() ? pos.align : this.align();\n\n const top = currentSide === 'bottom' ? triggerRect.bottom + 4 : triggerRect.top - 4;\n let left = this.computeFixedLeft(currentAlign, triggerRect);\n\n left = Math.max(8, Math.min(left, globalThis.window.innerWidth - 8));\n const clampedTop = Math.max(8, Math.min(top, globalThis.window.innerHeight - 8));\n\n // `inset:auto;margin:0;overflow:visible` neutralize the UA `[popover]`\n // defaults (centered via inset:0 + margin:auto, overflow:auto) so our\n // own fixed coordinates and layout apply when promoted to the top layer.\n let styles = `position:fixed;inset:auto;margin:0;overflow:visible;top:${clampedTop}px;left:${left}px;`;\n if (currentAlign === 'center') {\n styles += 'transform:translateX(-50%);';\n } else if (currentAlign === 'end') {\n styles += 'transform:translateX(-100%);';\n }\n return styles;\n }\n\n private computeFixedLeft(align: PopoverAlign, triggerRect: DOMRect): number {\n if (align === 'start') return triggerRect.left;\n if (align === 'end') return triggerRect.right;\n return triggerRect.left + triggerRect.width / 2;\n }\n\n classes = computed(() => {\n const pos = this.adjustedPosition();\n const currentSide = this.avoidCollisions() ? pos.side : this.side();\n const currentAlign = this.avoidCollisions() ? pos.align : this.align();\n\n const alignClasses = {\n start: 'left-0',\n center: 'left-1/2 -translate-x-1/2',\n end: 'right-0',\n };\n const sideClasses = {\n top: 'bottom-full mb-1',\n bottom: 'top-full mt-1',\n left: 'right-full me-1 top-0',\n right: 'left-full ms-1 top-0',\n };\n const isFixed = this.strategy() === 'fixed';\n return cn(\n isFixed ? 'z-50 w-72 max-w-[calc(100vw-16px)] rounded-md border bg-popover text-popover-foreground shadow-md outline-none' :\n 'absolute z-50 w-72 max-w-[calc(100vw-16px)] rounded-md border bg-popover text-popover-foreground shadow-md outline-none',\n 'animate-in fade-in-0 zoom-in-95',\n !isFixed && sideClasses[currentSide],\n !isFixed && (currentSide === 'top' || currentSide === 'bottom') ? alignClasses[currentAlign] : '',\n this.class()\n );\n });\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n afterNextRender,\n inject,\n signal,\n} from '@angular/core';\nimport { POPOVER } from '../popover.component';\nimport { hasInteractiveContent } from '../../../lib/a11y';\n\n@Component({\n selector: 'ui-popover-close',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span\n [attr.role]=\"wrapsInteractive() ? null : 'button'\"\n [attr.tabindex]=\"wrapsInteractive() ? null : 0\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onKeydown($event)\"\n (keydown.space)=\"onKeydown($event)\"\n [attr.data-slot]=\"'popover-close'\"\n >\n <ng-content />\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class PopoverCloseComponent {\n private readonly popover = inject(POPOVER, { optional: true });\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** See `lib/a11y.ts` — stays transparent when the projected content is already a control. */\n readonly wrapsInteractive = signal(false);\n\n constructor() {\n afterNextRender(() => {\n this.wrapsInteractive.set(hasInteractiveContent(this.host.nativeElement));\n });\n }\n\n /** Closes the popover. Fires for a click anywhere inside this wrapper, including on projected buttons, so it also swallows their own click intent — put a close button here only when closing is all it does. */\n onClick(): void {\n this.popover?.hide();\n }\n\n /**\n * Handles Enter/Space only when the wrapper itself is focused. Focusable\n * projected content already turns those keys into a click that bubbles to\n * {@link onClick}, and handling the keydown too would close twice.\n */\n onKeydown(event: Event): void {\n if (event.target !== event.currentTarget) return;\n event.preventDefault();\n this.onClick();\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { ButtonComponent } from '../../button';\nimport { IconComponent } from '../../icon';\nimport { stringifyValue } from '../../../lib/utils';\nimport { FilterGroup, FilterOperator, FilterRule } from '../data-table.types';\n\n/** {key,header} pairs the builder offers as filterable columns. */\nexport interface FilterBuilderColumn {\n key: string;\n header: string;\n}\n\n/** Localizable strings for the filter builder + its toolbar chrome (English defaults). */\nexport interface FilterBuilderLabels {\n and: string;\n or: string;\n matchAll: string;\n matchAny: string;\n addCondition: string;\n addGroup: string;\n removeGroup: string;\n removeCondition: string;\n valuePlaceholder: string;\n /** Toolbar trigger button label (rendered by the host data-table, not the builder). */\n filterButton: string;\n /** \"Clear all filters\" link below the builder (rendered by the host data-table). */\n clearFilters: string;\n operators: Record<FilterOperator, string>;\n}\n\nexport const DEFAULT_FILTER_BUILDER_LABELS: FilterBuilderLabels = {\n and: 'AND',\n or: 'OR',\n matchAll: 'match all of the rules below',\n matchAny: 'match any of the rules below',\n addCondition: '+ Condition',\n addGroup: '+ Group',\n removeGroup: 'Remove group',\n removeCondition: 'Remove condition',\n valuePlaceholder: 'value',\n filterButton: 'Filter',\n clearFilters: 'Clear all filters',\n operators: {\n contains: 'contains',\n notContains: 'does not contain',\n equals: 'equals',\n notEquals: 'not equals',\n startsWith: 'starts with',\n endsWith: 'ends with',\n gt: 'greater than',\n gte: 'greater or equal',\n lt: 'less than',\n lte: 'less or equal',\n isEmpty: 'is empty',\n isNotEmpty: 'is not empty',\n },\n};\n\nconst OPERATOR_ORDER: FilterOperator[] = [\n 'contains', 'notContains', 'equals', 'notEquals', 'startsWith', 'endsWith',\n 'gt', 'gte', 'lt', 'lte', 'isEmpty', 'isNotEmpty',\n];\n\nconst VALUELESS: ReadonlySet<FilterOperator> = new Set(['isEmpty', 'isNotEmpty']);\n\n/**\n * Recursive AND/OR filter-tree editor (A5). Standalone — it lists itself in\n * `imports` so nested groups render the same component.\n */\n@Component({\n selector: 'ui-data-table-filter-builder',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent, IconComponent, DataTableFilterBuilderComponent],\n template: `\n <div class=\"space-y-2 rounded-md border bg-background p-2\" data-slot=\"filter-group\">\n <div class=\"flex items-center gap-2\">\n <div class=\"inline-flex shrink-0 overflow-hidden rounded-md border text-xs\">\n <button type=\"button\" class=\"px-2 py-1\" [class.bg-accent]=\"group().combinator === 'and'\"\n (click)=\"setCombinator('and')\">{{ labels().and }}</button>\n <button type=\"button\" class=\"px-2 py-1 border-s\" [class.bg-accent]=\"group().combinator === 'or'\"\n (click)=\"setCombinator('or')\">{{ labels().or }}</button>\n </div>\n <span class=\"text-xs text-muted-foreground\">\n {{ group().combinator === 'and' ? labels().matchAll : labels().matchAny }}\n </span>\n </div>\n\n @for (rule of group().rules; track $index) {\n @if (rule.type === 'condition') {\n <div class=\"flex items-center gap-1\" data-slot=\"filter-condition\">\n <select class=\"h-8 w-24 shrink-0 rounded-md border bg-background px-1 text-sm\"\n [value]=\"rule.column\" (change)=\"patch($index, { column: selectValue($event) })\">\n @for (c of columns(); track c.key) {\n <option [value]=\"c.key\">{{ c.header }}</option>\n }\n </select>\n <select class=\"h-8 w-28 shrink-0 rounded-md border bg-background px-1 text-sm\"\n [value]=\"rule.operator\" (change)=\"patchOperator($index, $event)\">\n @for (op of operatorOrder; track op) {\n <option [value]=\"op\">{{ labels().operators[op] }}</option>\n }\n </select>\n @if (needsValue(rule.operator)) {\n <input type=\"text\" [placeholder]=\"labels().valuePlaceholder\"\n class=\"h-8 min-w-0 flex-1 rounded-md border bg-background px-2 text-sm\"\n [value]=\"asText(rule.value)\" (input)=\"patch($index, { value: selectValue($event) })\" />\n }\n <button type=\"button\" class=\"ms-auto inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-destructive\"\n [attr.aria-label]=\"labels().removeCondition\" (click)=\"removeRule($index)\">\n <ui-icon name=\"x\" size=\"xs\" />\n </button>\n </div>\n } @else {\n <div class=\"border-s-2 ps-2\" data-slot=\"filter-subgroup\">\n <ui-data-table-filter-builder [group]=\"rule\" [columns]=\"columns()\" [labels]=\"labels()\"\n (groupChange)=\"updateRule($index, $event)\" />\n <button type=\"button\" class=\"mt-1 text-xs text-muted-foreground hover:text-destructive\"\n (click)=\"removeRule($index)\">{{ labels().removeGroup }}</button>\n </div>\n }\n }\n\n <div class=\"flex flex-wrap gap-2\">\n <ui-button size=\"sm\" variant=\"outline\" (click)=\"addCondition()\">{{ labels().addCondition }}</ui-button>\n <ui-button size=\"sm\" variant=\"ghost\" (click)=\"addGroup()\">{{ labels().addGroup }}</ui-button>\n </div>\n </div>\n `,\n host: { class: 'block' },\n})\nexport class DataTableFilterBuilderComponent {\n /**\n * The filter tree to render. Fully controlled: every edit emits a brand-new\n * tree on {@link groupChange} and mutates nothing here, so the builder shows\n * no change until you feed the emitted value back in.\n */\n readonly group = input.required<FilterGroup>();\n /**\n * The columns offered in each condition's first dropdown. A condition whose\n * `column` is not in this list renders with no option selected — the tree is\n * never rewritten to match. {@link addCondition} seeds new conditions with\n * the first entry, so an empty array produces conditions with an empty key.\n */\n readonly columns = input.required<FilterBuilderColumn[]>();\n /** Localized strings; defaults to the English {@link DEFAULT_FILTER_BUILDER_LABELS}. */\n readonly labels = input<FilterBuilderLabels>(DEFAULT_FILTER_BUILDER_LABELS);\n /**\n * A complete replacement tree emitted on every edit (combinator toggle,\n * add/remove, or any field change), including edits bubbled up from nested\n * groups. The builder evaluates nothing — pass the tree to the data-table's\n * advanced filter to actually filter rows.\n */\n readonly groupChange = output<FilterGroup>();\n\n readonly operatorOrder = OPERATOR_ORDER;\n\n /**\n * False for the unary operators (`isEmpty` / `isNotEmpty`), which hide the\n * value input. Note the rule keeps whatever `value` it already had while the\n * input is hidden — switching back reveals the old text.\n */\n needsValue(operator: FilterOperator): boolean {\n return !VALUELESS.has(operator);\n }\n\n /**\n * Renders a rule's `value` for the text input — a non-string value (number,\n * date) is stringified for display, and typing replaces it with a plain\n * string, so a numeric rule becomes a string rule after any edit.\n */\n asText(value: unknown): string {\n return stringifyValue(value);\n }\n\n /** Template helper: the `value` of the `<input>`/`<select>` that raised the event. */\n selectValue(event: Event): string {\n return (event.target as HTMLInputElement | HTMLSelectElement).value;\n }\n\n private emit(rules: FilterRule[], combinator = this.group().combinator): void {\n this.groupChange.emit({ type: 'group', combinator, rules });\n }\n\n /** Switches this group between AND and OR, keeping its rules, and emits the new tree. */\n setCombinator(combinator: 'and' | 'or'): void {\n this.emit(this.group().rules, combinator);\n }\n\n /**\n * Appends a `contains ''` condition on the first entry of {@link columns}\n * (empty key if there are none) and emits the new tree.\n */\n addCondition(): void {\n const column = this.columns()[0]?.key ?? '';\n this.emit([\n ...this.group().rules,\n { type: 'condition', column, operator: 'contains', value: '' },\n ]);\n }\n\n /**\n * Appends an empty nested AND group, rendered by a recursive instance of\n * this component. Nesting is unbounded; an empty group contributes no\n * conditions until the user adds some.\n */\n addGroup(): void {\n this.emit([...this.group().rules, { type: 'group', combinator: 'and', rules: [] }]);\n }\n\n /**\n * Drops the rule at `index` — a condition or a whole nested group with all\n * its descendants — and emits the new tree. Rules are addressed positionally\n * (`track $index`), so an out-of-range index is a no-op replacement.\n */\n removeRule(index: number): void {\n this.emit(this.group().rules.filter((_, i) => i !== index));\n }\n\n /**\n * Replaces the rule at `index` wholesale and emits the new tree. Also the\n * bubble-up point for nested groups: a child group's `groupChange` lands\n * here, so one edit deep in the tree re-emits the whole tree at every level.\n */\n updateRule(index: number, rule: FilterRule): void {\n this.emit(this.group().rules.map((r, i) => (i === index ? rule : r)));\n }\n\n /**\n * Merges `partial` into the condition at `index` (used for the column select\n * and the value input). Silently does nothing when that slot holds a nested\n * group rather than a condition.\n */\n patch(index: number, partial: { column?: string; value?: unknown }): void {\n const rule = this.group().rules[index];\n if (rule.type === 'condition') {\n this.updateRule(index, { ...rule, ...partial });\n }\n }\n\n /**\n * Sets the condition's operator from the `<select>` that raised `event`. The\n * existing `value` is preserved even when moving to a unary operator that\n * hides the input (see {@link needsValue}); a group at `index` is ignored.\n */\n patchOperator(index: number, event: Event): void {\n const rule = this.group().rules[index];\n if (rule.type === 'condition') {\n this.updateRule(index, { ...rule, operator: this.selectValue(event) as FilterOperator });\n }\n }\n}\n","import { Injectable, ComponentRef, Type, OnDestroy } from '@angular/core';\n\n@Injectable()\nexport class ComponentPoolService implements OnDestroy {\n private readonly pool = new Map<Type<unknown>, ComponentRef<unknown>[]>();\n private readonly maxPoolSize = 200;\n\n private _recycleCount = 0;\n private _createCount = 0;\n\n get recycleCount(): number { return this._recycleCount; }\n get createCount(): number { return this._createCount; }\n\n acquire<T>(componentType: Type<T>): ComponentRef<T> | null {\n const instances = this.pool.get(componentType);\n if (!instances) return null;\n while (instances.length > 0) {\n const ref = instances.pop() as ComponentRef<T>;\n if (!ref.hostView.destroyed) {\n this._recycleCount++;\n return ref;\n }\n }\n return null;\n }\n\n trackCreation(): void {\n this._createCount++;\n }\n\n release(componentType: Type<unknown>, ref: ComponentRef<unknown>): void {\n if (ref.hostView.destroyed) return;\n let instances = this.pool.get(componentType);\n if (!instances) {\n instances = [];\n this.pool.set(componentType, instances);\n }\n if (instances.length < this.maxPoolSize) {\n instances.push(ref);\n } else {\n ref.destroy();\n }\n }\n\n get poolSize(): number {\n let total = 0;\n this.pool.forEach(instances => { total += instances.length; });\n return total;\n }\n\n clear(): void {\n this.pool.forEach(instances => {\n for (const ref of instances) {\n if (!ref.hostView.destroyed) {\n ref.destroy();\n }\n }\n });\n this.pool.clear();\n }\n\n ngOnDestroy(): void {\n this.clear();\n }\n}\n","import {\n Directive,\n ViewContainerRef,\n input,\n output,\n inject,\n OnInit,\n OnChanges,\n OnDestroy,\n SimpleChanges,\n ComponentRef,\n Renderer2,\n ElementRef,\n ApplicationRef,\n createComponent,\n EnvironmentInjector,\n Injector,\n Type\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { ComponentPoolService } from '../lib/component-pool.service';\n\n@Directive({\n selector: '[uiComponentOutlet]',\n standalone: true\n})\nexport class UiComponentOutletDirective implements OnInit, OnChanges, OnDestroy {\n /** The component class to render. Bound through the `uiComponentOutlet` alias. */\n readonly component = input.required<Type<unknown>>({ alias: 'uiComponentOutlet' });\n /** Inputs to set on the rendered component, keyed by input name. */\n readonly inputs = input<Record<string, unknown>>({});\n /** Handlers for the rendered component's outputs, keyed by output name. */\n readonly outputs = input<Record<string, OutputHandler>>({});\n /** Reuse the existing instance when the class has not changed, instead of destroying and recreating it. */\n readonly recycle = input(false);\n /** Emits the `ComponentRef` once the component has been created. */\n readonly initialized = output<ComponentRef<unknown>>();\n\n private componentRef: ComponentRef<unknown> | null = null;\n private currentComponentType: Type<unknown> | null = null;\n private subscriptions: Subscription[] = [];\n private managedExternally = false;\n private readonly viewContainerRef = inject(ViewContainerRef);\n private readonly pool = inject(ComponentPoolService, { optional: true });\n private readonly renderer = inject(Renderer2);\n private readonly elementRef = inject(ElementRef);\n private readonly appRef = inject(ApplicationRef);\n private readonly envInjector = inject(EnvironmentInjector);\n private readonly injector = inject(Injector);\n\n ngOnInit(): void {\n this.renderComponent();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['inputs'] && !changes['inputs'].firstChange) {\n this.updateInputs();\n }\n if (changes['component'] && !changes['component'].firstChange) {\n this.renderComponent();\n }\n if (changes['outputs'] && !changes['outputs'].firstChange) {\n this.subscribeToOutputs();\n }\n }\n\n ngOnDestroy(): void {\n this.unsubscribeAll();\n if (this.recycle() && this.pool && this.componentRef && this.managedExternally && this.currentComponentType) {\n this.removeFromDom(this.componentRef);\n this.appRef.detachView(this.componentRef.hostView);\n this.pool.release(this.currentComponentType, this.componentRef);\n this.componentRef = null;\n this.currentComponentType = null;\n return;\n }\n if (this.componentRef && this.managedExternally) {\n this.removeFromDom(this.componentRef);\n this.appRef.detachView(this.componentRef.hostView);\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private renderComponent(): void {\n this.teardownExisting();\n this.viewContainerRef.clear();\n\n const componentType = this.component();\n if (!componentType) return;\n\n if (this.recycle() && this.pool) {\n this.renderRecycled(componentType, this.pool);\n return;\n }\n\n this.componentRef = this.viewContainerRef.createComponent(componentType);\n this.currentComponentType = componentType;\n this.managedExternally = false;\n this.updateInputs();\n this.subscribeToOutputs();\n this.initialized.emit(this.componentRef);\n }\n\n private teardownExisting(): void {\n if (!this.componentRef) return;\n if (this.recycle() && this.pool && this.managedExternally && this.currentComponentType) {\n this.removeFromDom(this.componentRef);\n this.appRef.detachView(this.componentRef.hostView);\n this.pool.release(this.currentComponentType, this.componentRef);\n } else if (this.managedExternally) {\n this.removeFromDom(this.componentRef);\n this.appRef.detachView(this.componentRef.hostView);\n this.componentRef.destroy();\n }\n this.componentRef = null;\n this.currentComponentType = null;\n this.managedExternally = false;\n }\n\n private renderRecycled(componentType: Type<unknown>, pool: ComponentPoolService): void {\n const recycled = pool.acquire(componentType);\n if (recycled) {\n this.appRef.attachView(recycled.hostView);\n this.appendToDom(recycled);\n this.componentRef = recycled;\n } else {\n const ref = createComponent(componentType, {\n environmentInjector: this.envInjector,\n elementInjector: this.injector,\n });\n this.appRef.attachView(ref.hostView);\n this.appendToDom(ref);\n this.componentRef = ref;\n pool.trackCreation();\n }\n this.currentComponentType = componentType;\n this.managedExternally = true;\n this.updateInputs();\n this.subscribeToOutputs();\n this.componentRef.changeDetectorRef.detectChanges();\n this.initialized.emit(this.componentRef);\n }\n\n private appendToDom(ref: ComponentRef<unknown>): void {\n const hostEl = this.elementRef.nativeElement;\n const compEl = ref.location.nativeElement;\n this.renderer.appendChild(hostEl, compEl);\n }\n\n private removeFromDom(ref: ComponentRef<unknown>): void {\n const compEl = ref.location.nativeElement;\n if (compEl.parentNode) {\n this.renderer.removeChild(compEl.parentNode, compEl);\n }\n }\n\n private updateInputs(): void {\n if (!this.componentRef) return;\n\n const inputsObj = this.inputs();\n for (const key of Object.keys(inputsObj)) {\n this.componentRef.setInput(key, inputsObj[key]);\n }\n }\n\n private subscribeToOutputs(): void {\n if (!this.componentRef) return;\n\n this.unsubscribeAll();\n\n const instance = this.componentRef.instance as Record<string, unknown>;\n const outputsObj = this.outputs();\n for (const outputName of Object.keys(outputsObj)) {\n const handler = outputsObj[outputName];\n\n try {\n const outputEmitter = instance[outputName];\n\n if (isSubscribable(outputEmitter)) {\n const invoke = handler as (event: unknown) => void;\n const subscription = outputEmitter.subscribe((event: unknown) => {\n try {\n invoke(event);\n } catch (err) {\n console.error(`Error in output handler for '${outputName}':`, err);\n }\n });\n this.subscriptions.push(subscription);\n }\n } catch (err) {\n console.error(`Failed to subscribe to output '${outputName}':`, err);\n }\n }\n }\n\n private unsubscribeAll(): void {\n for (const sub of this.subscriptions) {\n sub.unsubscribe();\n }\n this.subscriptions = [];\n }\n}\n\n/**\n * A handler for a projected component's output. The `never` parameter\n * makes any single-argument callback assignable (e.g.\n * `(value: string) => void`), letting consumers type the event to match\n * the specific output they're wiring up.\n */\ntype OutputHandler = (event: never) => void;\n\ninterface Subscribable {\n subscribe(next: (event: unknown) => void): Subscription;\n}\n\nfunction isSubscribable(value: unknown): value is Subscribable {\n return (\n value !== null &&\n value !== undefined &&\n typeof (value as { subscribe?: unknown }).subscribe === 'function'\n );\n}\n","import { Observable, from, of, isObservable } from 'rxjs';\n\n/**\n * The kind of AI action requested. Editor tasks transform or generate prose;\n * table tasks generate cell values or compile a natural-language filter.\n */\nexport type AiTask =\n | 'rewrite'\n | 'shorten'\n | 'expand'\n | 'fix-grammar'\n | 'translate'\n | 'summarize'\n | 'continue'\n | 'custom'\n | 'table-fill'\n | 'nl-filter';\n\nexport interface AiRequest {\n /** What to do. */\n task: AiTask;\n /** The source text — selected prose, a serialized row, or a NL query. */\n input: string;\n /** A free-form instruction (e.g. the target language, or the user's prompt). */\n prompt?: string;\n /** Extra structured context (columns, locale, surrounding text, …). */\n context?: Record<string, unknown>;\n /** Abort signal — providers should cancel in-flight work when it fires. */\n signal?: AbortSignal;\n}\n\n/**\n * What a provider returns. A plain string or Promise is a one-shot answer; an\n * Observable may emit progressively (each emission is the full text so far) to\n * drive a streaming/typewriter UI.\n */\nexport type AiResult = Observable<string> | Promise<string> | string;\n\n/**\n * The bring-your-own-AI hook. Consumer-supplied and optional — when a component\n * has no `aiProvider`, no AI affordances appear (graceful degradation, mirroring\n * the editor's `mentionSearch` / `imageUploader` callbacks).\n */\nexport type AiProvider = (request: AiRequest) => AiResult;\n\n/**\n * Normalize any {@link AiResult} into an `Observable<string>` of progressive\n * output, so callers handle streaming and one-shot providers identically.\n */\nexport function runAiTask(provider: AiProvider, request: AiRequest): Observable<string> {\n const result = provider(request);\n if (isObservable(result)) return result;\n if (result instanceof Promise) return from(result);\n return of(result);\n}\n","import {\n Component,\n computed,\n effect,\n afterRenderEffect,\n input,\n output,\n model,\n signal,\n viewChild,\n viewChildren,\n ChangeDetectionStrategy,\n Type,\n TemplateRef,\n ElementRef,\n untracked,\n inject,\n forwardRef,\n AfterViewInit,\n OnDestroy,\n} from \"@angular/core\";\nimport { CommonModule, DOCUMENT } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\nimport { cn, isRtl, stringifyValue } from \"../../lib/utils\";\nimport { onPointerDrag, onLongPress } from \"../../lib/touch\";\nimport { createLocaleBindings, interpolate, provideComponentLocale, type LocaleInput } from \"../../lib/i18n\";\nimport { DATA_TABLE_LOCALES, type DataTableLocale } from \"./data-table.locales\";\nimport {\n DataTableAddonHost,\n AddonSlotRegistry,\n type CellActionSlot,\n type HeaderActionSlot,\n type ColumnPin,\n} from \"./data-table.host\";\nimport {\n TableComponent,\n TableHeaderComponent,\n TableBodyComponent,\n TableRowComponent,\n TableHeadComponent,\n TableCellComponent,\n} from \"../table\";\nimport { InputComponent } from \"../input\";\nimport { CheckboxComponent } from \"../checkbox\";\nimport { DatePickerComponent } from \"../date-picker\";\nimport {\n PopoverComponent,\n PopoverTriggerComponent,\n PopoverContentComponent,\n} from \"../popover\";\nimport { DataTableColumnHeaderComponent } from \"./sub/data-table-column-header.component\";\nimport { DataTablePaginationComponent } from \"./sub/data-table-pagination.component\";\nimport {\n DataTableFilterBuilderComponent,\n DEFAULT_FILTER_BUILDER_LABELS,\n} from \"./sub/data-table-filter-builder.component\";\nimport { UiComponentOutletDirective } from \"../component-outlet.directive\";\nimport { ButtonComponent } from \"../button\";\nimport { IconComponent } from \"../icon\";\nimport { SkeletonComponent } from \"../skeleton\";\nimport {\n ColumnDef,\n SortState,\n SortDirection,\n PaginationState,\n ColumnResizeEvent,\n DataTableColumnState,\n DataTableLoadingTrigger,\n DataTableLoadingVisibility,\n DataTableExportOptions,\n DataTableExportQuery,\n DataTableQuery,\n DataTableViewState,\n DATA_TABLE_VIEW_STATE_VERSION,\n SubRowSelectionMode,\n SubRowFilterMode,\n FlattenedTreeRow,\n SubRowContext,\n RowActionContext,\n VirtualAutoThreshold,\n CellEditEvent,\n CellEditErrorEvent,\n EditingCell,\n CellEditError,\n RowReorderEvent,\n RowDragPosition,\n CellRange,\n CellFlashDirection,\n CellStyleColumn,\n GroupRow,\n DataTableDisplayRow,\n ColorScale,\n ResolvedCellFormatting,\n RangeAggregateStats,\n RangeChartPayload,\n FillSeriesEvent,\n CellsPasteEvent,\n FilterGroup,\n} from \"./data-table.types\";\nimport {\n computeRowRange,\n computeColumnRange,\n computeVariableRowRange,\n buildPrefixSums,\n partitionIntoGroups,\n computeAggregateValue,\n buildFillValues,\n parseClipboardGrid,\n parseNlFilterSpec,\n type NlFilterSpec,\n evaluateAdvancedFilter,\n asEditableDate,\n toEditedDateValue,\n} from \"./data-table.utils\";\nimport { ComponentPoolService } from \"../../lib/component-pool.service\";\nimport { AiProvider, runAiTask } from \"../../lib/ai\";\nimport { lastValueFrom } from \"rxjs\";\n\nconst EMPTY_RECORD: Readonly<Record<string, never>> = Object.freeze({});\n\n/** One reversible cell write captured for the edit-history (B3) stack. */\ninterface EditChange {\n rowId: string;\n columnKey: string;\n before: unknown;\n after: unknown;\n}\n\n/** Per-instance counter for unique element ids (e.g. inline edit-error links). */\nlet dataTableUid = 0;\n\nconst DEFAULT_GET_ROW_ID = <T>(row: T): string => {\n const rec = row as Record<string, unknown>;\n const id = rec['id'];\n if (id == null) return JSON.stringify(row);\n return stringifyValue(id);\n};\n\n/**\n * Whether two requests describe the same page of data.\n *\n * Compared field by field rather than with a deep clone or `JSON.stringify`:\n * `columnFilters` holds arbitrary consumer values, which may not be\n * serialisable, and this runs on every state change.\n */\nfunction sameQuery(a: DataTableQuery, b: DataTableQuery): boolean {\n const sameSort = (x: SortState, y: SortState): boolean =>\n x.column === y.column && x.direction === y.direction;\n\n return (\n a.globalFilter === b.globalFilter &&\n a.columnFilters === b.columnFilters &&\n a.advancedFilter === b.advancedFilter &&\n a.page.pageIndex === b.page.pageIndex &&\n a.page.pageSize === b.page.pageSize &&\n sameSort(a.sort, b.sort) &&\n a.sortStates.length === b.sortStates.length &&\n a.sortStates.every((sort, i) => sameSort(sort, b.sortStates[i]))\n );\n}\n\n@Component({\n selector: \"ui-data-table\",\n imports: [\n CommonModule,\n FormsModule,\n TableComponent,\n TableHeaderComponent,\n TableBodyComponent,\n TableRowComponent,\n TableHeadComponent,\n TableCellComponent,\n InputComponent,\n CheckboxComponent,\n DatePickerComponent,\n PopoverComponent,\n PopoverTriggerComponent,\n PopoverContentComponent,\n DataTableColumnHeaderComponent,\n DataTablePaginationComponent,\n DataTableFilterBuilderComponent,\n UiComponentOutletDirective,\n ButtonComponent,\n IconComponent,\n SkeletonComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n ComponentPoolService,\n provideComponentLocale(() => DataTableComponent),\n { provide: DataTableAddonHost, useExisting: forwardRef(() => DataTableComponent) },\n ],\n host: {\n class: \"block h-full w-full\",\n '[attr.dir]': 'dir()',\n },\n templateUrl: './data-table.component.html',\n})\nexport class DataTableComponent<T>\n implements AfterViewInit, OnDestroy, DataTableAddonHost<T>\n{\n protected readonly EMPTY_RECORD = EMPTY_RECORD;\n private readonly _document = inject(DOCUMENT);\n private readonly _el = inject(ElementRef);\n /**\n * True when the host element's resolved writing direction is RTL. Read from\n * the live DOM (not the {@link locale} input), and used to mirror\n * direction-sensitive gestures such as column-resize deltas.\n */\n isRtl(): boolean {\n return isRtl(this._el.nativeElement);\n }\n private _isRtlResize = false;\n\n /**\n * The row array. A `model`, and the table *does* write back to it: inline\n * edits committed through a column `valueSetter`, fill-handle, paste and\n * undo/redo all emit a new array here, as does a row drag while\n * {@link localReorder} is on. Filtering, sorting and pagination never mutate\n * it — they derive views.\n */\n readonly data = model.required<T[]>();\n /** @see columnHelper for a type-safe fluent builder API */\n readonly columns = input.required<ColumnDef<T>[]>();\n\n /** Hides the whole toolbar row (global filter, advanced filter, columns menu) when false. */\n readonly showToolbar = input(true);\n /** Hides the columns popover in the toolbar; only shown when at least one column is hideable. */\n readonly showColumnVisibilityToggle = input(true);\n /**\n * Renders the pagination footer. Also acts as a mode switch: with\n * {@link localPagination} on, `enableVirtualScroll: \"auto\"` declines to\n * virtualize while pagination is showing.\n */\n readonly showPagination = input(true);\n /** Adds the horizontal rule under each row/header cell. Purely cosmetic. */\n readonly showRowBorders = input(true);\n /** Adds the vertical rule between cells. Purely cosmetic. */\n readonly showColumnBorders = input(true);\n\n /**\n * Sort the rows in the browser. Set false for server-side sorting: the header\n * still cycles and {@link sortChange} / {@link multiSortChange} still fire, but\n * the row order is left exactly as you supply it in {@link data}.\n */\n readonly localSorting = input(true);\n /**\n * Slice the rows in the browser. Set false for server-side paging: supply only\n * the current page in {@link data}, set {@link total} to the full row count,\n * and re-fetch from {@link pageChange}.\n */\n readonly localPagination = input(true);\n /**\n * Filter the rows in the browser — global filter, per-column filters and the\n * advanced filter tree all become no-ops when false. {@link filterChange} still\n * fires so you can filter server-side.\n */\n readonly localFiltering = input(true);\n /**\n * Shows the busy overlay above the (still rendered) table. Which triggers\n * actually surface it is filtered by {@link loadingVisibility}, so setting\n * this alone does not guarantee an overlay. Also blocks row drag.\n */\n readonly loading = input(false);\n /**\n * Replaces the entire table — toolbar, grid and footer — with placeholder\n * bars. This is the first-paint state, distinct from {@link loading}, which\n * overlays the real table.\n */\n readonly skeleton = input(false);\n /** Number of placeholder row bars drawn while {@link skeleton} is true. */\n readonly skeletonRows = input(5);\n /**\n * Per-trigger opt-out for the {@link loading} overlay: set a key to `false`\n * to keep the table quiet during e.g. sorting round-trips while still\n * showing the overlay on the initial load. Unset keys default to visible.\n */\n readonly loadingVisibility = input<DataTableLoadingVisibility>({\n initial: true,\n pagination: true,\n sorting: true,\n filtering: true,\n });\n /**\n * Custom content for the loading overlay. Receives the active\n * {@link DataTableLoadingTrigger} as both `$implicit` and `trigger`. Takes\n * precedence over {@link loaderComponent}; with neither, a default spinner\n * is rendered.\n */\n readonly loaderTemplate = input<TemplateRef<unknown>>();\n /**\n * Component rendered inside the loading overlay. Used only when\n * {@link loaderTemplate} is unset.\n */\n readonly loaderComponent = input<Type<unknown>>();\n /**\n * Inputs bound onto {@link loaderComponent}. The table always adds a\n * `trigger` input carrying the current {@link DataTableLoadingTrigger},\n * overwriting any `trigger` you pass here.\n */\n readonly loaderComponentInputs = input<Record<string, unknown>>({});\n /**\n * Replaces the built-in global-filter matcher (which lowercases each visible\n * cell's string value and tests `includes`). Receives the already-lowercased\n * filter text and the resolved columns. Only consulted while\n * {@link localFiltering} is true.\n */\n readonly globalFilterFn = input<\n | ((row: T, filterValue: string, columns: ColumnDef<T>[]) => boolean)\n | undefined\n >(undefined);\n /**\n * Lets shift-click stack multiple sort columns. While on, {@link sortState}\n * is no longer authoritative — read {@link multiSortState} /\n * {@link multiSortChange} instead.\n */\n readonly enableMultiSort = input(false);\n /**\n * Cap on the multi-sort chain; adding beyond it drops the oldest column.\n * Values below 1 are clamped to 1. Ignored unless {@link enableMultiSort}.\n */\n readonly maxMultiSortColumns = input(3);\n /**\n * Full row count on the server. Required — and only used — when\n * {@link localPagination} is false, where it drives the page count and the\n * \"N of M\" readouts; ignored otherwise, since the local row count is known.\n */\n readonly total = input(0);\n\n /**\n * The new single-sort state after a header activation (direction `null` means\n * the sort was cleared). Fires regardless of {@link localSorting} — handle it\n * to sort server-side.\n */\n readonly sortChange = output<SortState>();\n /**\n * The whole ordered sort chain, highest priority first, after a multi-sort\n * change. Only meaningful with {@link enableMultiSort}.\n */\n readonly multiSortChange = output<SortState[]>();\n /**\n * The requested page index/size. Fires for both local and server paging; with\n * {@link localPagination} false this is your cue to fetch the page.\n */\n readonly pageChange = output<PaginationState>();\n /**\n * The raw global-filter text, after {@link filterDebounce}. Fires even when\n * {@link localFiltering} is false, which is how you drive a server-side search.\n */\n readonly filterChange = output<string>();\n\n /**\n * The complete server request, emitted whenever any part of it changes.\n *\n * `sortChange` / `pageChange` / `filterChange` each report one fragment, so\n * wiring server-side mode from them means keeping your own copy of the other\n * five and reassembling a request on every callback. This emits the whole\n * {@link DataTableQuery} instead — one handler, one shape.\n *\n * It **reports state; it does not fetch**. A global filter changes on every\n * keystroke (after {@link filterDebounce}), so debounce or `switchMap` on\n * your side before hitting a server — the table cannot know how expensive\n * your endpoint is.\n *\n * It does not fire on init: there is no change to report yet, and an output\n * that emits during construction fires before a consumer can be ready. Read\n * {@link currentQuery} for the first fetch.\n */\n readonly query = output<DataTableQuery>();\n\n /**\n * A committed inline cell edit: row, column key, and old/new value. The table\n * has already written the value through the column's `valueSetter` into a new\n * {@link data} array by the time this fires — persist it, and revert `data`\n * yourself if the server rejects it.\n */\n readonly cellEdit = output<CellEditEvent<T>>();\n /**\n * A rejected inline edit (a column `validate` returned an error). The value is\n * *not* written and the editor stays open with the message shown inline.\n */\n readonly editError = output<CellEditErrorEvent<T>>();\n readonly editingCell = signal<EditingCell | null>(null);\n readonly editValue = signal<unknown>(null);\n readonly cellEditError = signal<CellEditError | null>(null);\n /** Stable id for the inline edit-error message, linked via `aria-describedby`. */\n readonly cellEditErrorId = `ui-data-table-cell-edit-error-${dataTableUid++}`;\n\n /** Adds the leading checkbox column and the header select-all checkbox. */\n readonly enableRowSelection = input(false);\n /**\n * Selection as an id → true map keyed by {@link getRowId}. Two-way: the table\n * writes a *new* object on every change. Ids of rows that are filtered out (or\n * no longer in {@link data}) are kept, so selection survives a filter — read it\n * back against your data rather than treating its size as \"visible selected\".\n */\n readonly rowSelection = model<Record<string, boolean>>({});\n /**\n * Stable identity for a row, used as the key of {@link rowSelection},\n * {@link expandedRows} and {@link subRowExpandedRows}. Defaults to the row's\n * `id` property, falling back to `JSON.stringify(row)` when absent — which\n * means edits change a row's identity and drop its selection. Supply a real\n * key whenever rows are editable.\n */\n readonly getRowId = input<(row: T) => string>(DEFAULT_GET_ROW_ID);\n /**\n * Enables the clipboard paths: `Ctrl/Cmd+C` and the\n * `copy*ToClipboard` methods, all of which return early when false. The\n * selection, expander and actions columns are never copied.\n */\n readonly enableCopy = input(true);\n /**\n * Marks rows non-interactive (no selection, no drag, no inline edit). Combined\n * with {@link disabledRowIds} — a row is disabled if either says so.\n */\n readonly isRowDisabled = input<((row: T) => boolean) | undefined>(undefined);\n /**\n * Disabled rows addressed by {@link getRowId}. Accepts a `Set` (used directly)\n * or an array (copied into a `Set`). See {@link isRowDisabled}.\n */\n readonly disabledRowIds = input<ReadonlySet<string> | readonly string[]>([]);\n /**\n * Adds the leading chevron column that reveals a detail row beneath each row.\n * This is master/detail — unrelated to {@link enableSubRows}, which renders a\n * hierarchy in the grid itself.\n */\n readonly enableRowExpansion = input(false);\n /** Which detail rows are open, keyed by {@link getRowId}. Two-way. */\n readonly expandedRows = model<Record<string, boolean>>({});\n /**\n * Detail-row content, receiving the row as `$implicit`/`row`. Takes precedence\n * over {@link rowDetailComponent}.\n */\n readonly rowDetailTemplate = input<TemplateRef<unknown>>();\n /** Component rendered in the detail row when {@link rowDetailTemplate} is unset. */\n readonly rowDetailComponent = input<Type<unknown>>();\n /**\n * Per-row inputs for {@link rowDetailComponent}. Called for each expanded row;\n * without it the component receives only a `row` input.\n */\n readonly rowDetailComponentInputs = input<\n ((row: T) => Record<string, unknown>) | undefined\n >(undefined);\n\n /**\n * Renders hierarchical data: rows are flattened into an indented tree with\n * expanders. Mutually exclusive with {@link groupBy}. Changes what most\n * row-level APIs operate on — the visible rows become tree rows.\n */\n readonly enableSubRows = input(false);\n /** Reads a row's children. Defaults to the row's `children` property. */\n readonly getChildren = input<(row: T) => T[] | undefined>((row: T) => (row as Record<string, unknown>)['children'] as T[] | undefined);\n /**\n * Returns a *new* row with the given children — the table never mutates a row\n * in place. Used when tree row-drag re-parents nodes; the default spreads the\n * row and replaces `children`.\n */\n readonly setChildren = input<(row: T, children: T[]) => T>(\n (row: T, children: T[]) => ({ ...row, children }),\n );\n /**\n * Depth expanded on first render (0 = only roots, 1 = roots plus their\n * children, …). It seeds {@link subRowExpandedRows}; explicit entries there win.\n */\n readonly subRowDefaultExpanded = input(0);\n /**\n * How a checkbox click propagates through the tree: `\"self\"` (default) touches\n * only the clicked row; the cascading modes also select descendants and derive\n * an indeterminate parent state.\n */\n readonly subRowSelectionMode = input<SubRowSelectionMode>(\"self\");\n /**\n * What a filter match does to the hierarchy — by default a matching child\n * keeps its ancestors visible so it can still be reached.\n */\n readonly subRowFilterMode = input<SubRowFilterMode>(\"includeParentOnChildMatch\");\n /**\n * Sorts children within their parent instead of leaving them in source order.\n * Requires {@link localSorting}; the tree shape is always preserved.\n */\n readonly enableSubRowSorting = input(true);\n /** Pixels of indent added per tree depth level in the first data column. */\n readonly subRowIndentSize = input(20);\n /**\n * Paginate over *visible* (flattened) tree rows rather than over root rows, so\n * expanding a node can push its siblings onto the next page.\n */\n readonly subRowsPaginated = input(false);\n /**\n * Which tree nodes are expanded, keyed by {@link getRowId}. Two-way, and\n * separate from {@link expandedRows} (which is master/detail).\n */\n readonly subRowExpandedRows = model<Record<string, boolean>>({});\n\n /**\n * Group rows by this column accessorKey. Renders collapsible group headers\n * with per-group aggregation. Mutually exclusive with `enableSubRows` and\n * virtual scroll (ignored, with a console warning, when combined). In grouped\n * mode inline cell editing, cell-range selection, keyboard cell-nav, and row\n * drag are disabled.\n */\n readonly groupBy = input<string | undefined>();\n /** Per-group collapsed state, keyed by the stringified group value. */\n readonly collapsedGroups = model<Record<string, boolean>>({});\n /** When true, group header rows display per-column aggregate values. */\n readonly groupAggregates = input<boolean>(true);\n\n /**\n * Adds a drag handle to each header's trailing edge (mouse and touch). Widths\n * are stored in the two-way {@link columnWidths} map keyed by accessor key and\n * override the column's declared width; {@link columnResize} reports each drop.\n */\n readonly enableColumnResize = input(false);\n /**\n * Lets headers be dragged to reorder columns, writing the new order into the\n * two-way {@link columnOrder}. Pinned/sticky columns keep their side\n * regardless of order.\n */\n readonly enableColumnReorder = input(false);\n /**\n * Footer row visibility. `\"auto\"` (default) shows it only when some column\n * declares a `footer`, `aggregateFn`, `footerTemplate` or `footerComponent`;\n * `true` forces an (otherwise empty) footer.\n */\n readonly showFooter = input<boolean | \"auto\">(\"auto\");\n /**\n * Adds a second header row of per-column filter inputs. A column opts in with\n * `enableFiltering` or a floating filter template/component; if no column\n * does, the table warns and renders nothing. Values flow into\n * {@link columnFilters}.\n */\n readonly enableFloatingFilters = input(false);\n /**\n * Makes rows draggable (HTML5 drag-and-drop). Disabled rows and rows under a\n * {@link loading} overlay cannot be dragged.\n */\n readonly enableRowDrag = input(false);\n /**\n * Applies a completed drag to {@link data} automatically (the default): the\n * drop runs {@link reorderData} and writes the new array back before\n * {@link rowReorder} is emitted, so a handler reading `data()` already sees\n * the moved row. Set it to `false` for server-side or otherwise custom\n * reordering — the table then only emits the event and leaves `data` alone.\n */\n readonly localReorder = input(true);\n /**\n * `\"flat\"` (default) allows only above/below drops, and — in tree mode —\n * blocks drops across differing depths. `\"tree\"` adds an `\"on\"` position over\n * the middle of a row, which re-parents the dragged node via\n * {@link setChildren}.\n */\n readonly rowDragMode = input<'flat' | 'tree'>('flat');\n /**\n * Vetoes individual drops. Returning false suppresses the drop indicator and\n * the drop entirely for that target/position combination.\n */\n readonly rowDragAllowDrop = input<((dragRow: T, targetRow: T, position: RowDragPosition) => boolean) | undefined>(undefined);\n /**\n * A completed row drag: the moved row plus its source and target indices, in\n * the *rendered* (filtered/sorted/paged) order — map back to your source\n * collection before persisting.\n */\n readonly rowReorder = output<RowReorderEvent<T>>();\n /**\n * Briefly highlights cells whose value changed between two {@link data}\n * emissions — for live/streaming feeds. Requires a stable {@link getRowId};\n * with the default id function the table warns and skips flashing.\n */\n readonly enableCellFlash = input(false);\n /** Milliseconds a changed cell stays highlighted. See {@link enableCellFlash}. */\n readonly cellFlashDuration = input(500);\n /**\n * Enables Excel-style rectangular cell-range selection by dragging across\n * cells (also disables text selection in the grid). Prerequisite for\n * {@link enableRangeActions} and {@link enableFillHandle}, and it widens\n * `Ctrl/Cmd+C` to copy the whole range as TSV.\n */\n readonly enableCellRangeSelection = input(false);\n readonly cellRange = signal<CellRange | null>(null);\n /**\n * Show a contextual readout when a cell range is selected: live Sum / Avg /\n * Count of the selection, plus a \"Chart\" action. Requires\n * `enableCellRangeSelection`. Opt-in; off by default.\n */\n readonly enableRangeActions = input(false);\n /** Emitted when the user opens the range chart; carries the chart payload. */\n readonly rangeChartOpen = output<RangeChartPayload>();\n /**\n * Show an Excel-style fill handle at the corner of the focused cell / range.\n * Drag it down to fill the pattern into the rows below. Requires\n * `enableCellRangeSelection`. Only columns with a `valueSetter` are filled.\n */\n readonly enableFillHandle = input(false);\n /** Emitted after a fill-handle drag applies values to new rows. */\n readonly fillSeries = output<FillSeriesEvent>();\n /**\n * Allow pasting a clipboard grid (TSV/CSV) into cells starting at the focused\n * cell (`Ctrl/Cmd+V`). Only columns with a `valueSetter` are written.\n */\n readonly enableClipboardPaste = input(false);\n /** Emitted after a clipboard grid is pasted into cells. */\n readonly cellsPaste = output<CellsPasteEvent>();\n /**\n * Track inline edits, fills and pastes on an undo/redo stack\n * (`Ctrl/Cmd+Z` / `Ctrl/Cmd+Y` / `Ctrl/Cmd+Shift+Z`). Undo re-applies the\n * inverse value through each column's `valueSetter` and re-emits `cellEdit`.\n */\n readonly enableEditHistory = input(false);\n /**\n * Fired after an undo has been applied (the inverse values are already written\n * to {@link data} and re-emitted as {@link cellEdit}). Requires\n * {@link enableEditHistory}.\n */\n readonly editUndo = output<void>();\n /** Fired after a redo has been applied. See {@link editUndo}. */\n readonly editRedo = output<void>();\n private readonly _undoStack = signal<EditChange[][]>([]);\n private readonly _redoStack = signal<EditChange[][]>([]);\n private _recordingChanges: EditChange[] | null = null;\n readonly canUndo = computed(() => this._undoStack().length > 0);\n readonly canRedo = computed(() => this._redoStack().length > 0);\n /**\n * A finished column resize: the column key and its new pixel width. The width\n * is already in {@link columnWidths}, so handle this only to persist it.\n */\n readonly columnResize = output<ColumnResizeEvent>();\n\n /**\n * Replaces the \"No results found.\" placeholder shown when the *filtered* row\n * set is empty. It is not shown while {@link skeleton} or the loading overlay\n * is up.\n */\n readonly emptyStateComponent = input<Type<unknown>>();\n /** Inputs bound onto {@link emptyStateComponent}. */\n readonly emptyStateComponentInputs = input<Record<string, unknown>>({});\n /**\n * Marks rows that render as a single cell spanning the full table width\n * (section banners, ad slots, \"load more\" rows) instead of the normal column\n * grid. Such rows still occupy a row slot in selection and pagination.\n */\n readonly fullWidthRow = input<((row: T) => boolean) | undefined>(undefined);\n /**\n * Content for a {@link fullWidthRow}, receiving the row as `$implicit` and its\n * rendered `index`. Takes precedence over {@link fullWidthRowComponent}; with\n * neither, the full-width cell renders empty.\n */\n readonly fullWidthRowTemplate = input<TemplateRef<unknown>>();\n /** Component for a {@link fullWidthRow}; bound `row` and `index` inputs. */\n readonly fullWidthRowComponent = input<Type<unknown>>();\n\n /**\n * Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when\n * not set. The DataTableLocale covers data-table chrome (filter\n * placeholder, columns menu, sort/pin actions, pagination labels,\n * etc.). Date filters embedded in the table still read from\n * `CalendarLocale` separately.\n */\n readonly locale = input<LocaleInput<DataTableLocale>>();\n /**\n * Milliseconds to wait after typing before the global filter is applied and\n * {@link filterChange} emitted. 0 (default) applies on every keystroke. Only\n * the toolbar's global filter is debounced — column filters apply immediately.\n */\n readonly filterDebounce = input(0);\n\n /**\n * Controls how large datasets are handled.\n *\n * - `true`: Always use virtual scrolling (recommended for 500+ rows without pagination)\n * - `false`: Never use virtual scrolling, use pagination instead (default)\n * - `\"auto\"`: Automatically enable if rows > 500 or columns > 20\n *\n * Note: Virtual scroll and pagination are mutually exclusive.\n * When both are enabled, pagination takes precedence unless enableVirtualScroll is explicitly `true`.\n *\n * @default false\n */\n readonly enableVirtualScroll = input<boolean | \"auto\">(false);\n /**\n * Row height in pixels assumed by the virtual-scroll maths, and the fallback\n * for unmeasured rows under {@link virtualVariableRowHeight}. If your CSS row\n * height differs, the scrollbar and the rows drift apart.\n */\n readonly virtualRowHeight = input(40);\n /** Extra rows rendered above and below the viewport to hide scroll tearing. */\n readonly virtualRowBuffer = input(5);\n /** Extra columns rendered either side of the viewport during horizontal virtualization. */\n readonly virtualColumnBuffer = input(3);\n /**\n * Measures each rendered row and uses prefix sums instead of a fixed row\n * height — needed for wrapping content, at the cost of a `ResizeObserver` per\n * row and re-measurement as rows scroll in.\n */\n readonly virtualVariableRowHeight = input(false);\n /**\n * Reuses cell component instances from a pool as rows scroll instead of\n * destroying and recreating them. Only safe for cell components with no\n * per-instance state outside their inputs. See {@link recycleStats}.\n */\n readonly virtualRecycleComponents = input(false);\n /**\n * The row/column counts above which `enableVirtualScroll: \"auto\"` switches\n * virtualization on. Ignored when {@link enableVirtualScroll} is an explicit\n * boolean.\n */\n readonly virtualAutoThreshold = input<VirtualAutoThreshold>({\n rows: 500,\n columns: 20,\n });\n\n /**\n * Estimated width in pixels for 'auto' columns when using virtual scroll.\n * Virtual scroll requires pixel widths for calculations.\n * @default 150\n */\n readonly virtualAutoColumnWidth = input(150);\n\n private readonly componentPool = inject(ComponentPoolService);\n\n get recycleStats(): { recycled: number; created: number; poolSize: number } {\n return {\n recycled: this.componentPool.recycleCount,\n created: this.componentPool.createCount,\n poolSize: this.componentPool.poolSize,\n };\n }\n\n private readonly virtualScrollTop = signal(0);\n private readonly virtualScrollLeft = signal(0);\n private readonly viewportHeight = signal(0);\n private readonly viewportWidth = signal(0);\n private readonly rowHeightCache = new Map<number, number>();\n private readonly measurementVersion = signal(0);\n private suppressScrollEvents = false;\n private observedElements = new Set<Element>();\n private rafId = 0;\n private filterDebounceTimer: ReturnType<typeof setTimeout> | undefined;\n private filterAnnounceTimer: ReturnType<typeof setTimeout> | undefined;\n private viewportObserver?: ResizeObserver;\n private readonly rowResizeObserver?: ResizeObserver;\n\n readonly scrollContainerRef =\n viewChild<ElementRef<HTMLElement>>(\"scrollContainer\");\n readonly virtualRowElements = viewChildren(\"virtualRow\", {\n read: ElementRef,\n });\n\n readonly skeletonRowsArray = computed(() => new Array(this.skeletonRows()));\n\n readonly isVirtualScrollActive = computed(() => {\n const mode = this.enableVirtualScroll();\n\n if (mode === false) return false;\n\n if (this.localPagination() && this.showPagination()) {\n if (mode === \"auto\") return false;\n }\n\n if (mode === true) return true;\n\n const threshold = this.virtualAutoThreshold();\n const totalRows = this.virtualTotalRows();\n const nonPinnedColCount = this.scrollableColumns().length;\n return totalRows > threshold.rows || nonPinnedColCount > threshold.columns;\n });\n\n readonly virtualTotalRows = computed(() => {\n if (this.enableSubRows()) {\n return this.visibleTreeRows().length;\n }\n return this.sortedData().length;\n });\n\n readonly pinnedLeftColumns = computed(() => {\n return this.enhancedColumns().filter(\n (c) => c.sticky === true || c.pin === \"left\",\n );\n });\n\n readonly pinnedRightColumns = computed(() => {\n return this.enhancedColumns().filter((c) => c.pin === \"right\");\n });\n\n readonly scrollableColumns = computed(() => {\n return this.enhancedColumns().filter(\n (c) => !c.sticky && c.pin !== \"left\" && c.pin !== \"right\",\n );\n });\n\n private readonly scrollableColumnWidths = computed(() => {\n const cols = this.scrollableColumns();\n const widths = this.columnWidths();\n const autoWidth = this.virtualAutoColumnWidth();\n return cols.map((col) => {\n const key = String(col.accessorKey);\n const w = widths[key] ?? col._width ?? col.width ?? \"auto\";\n if (w === \"auto\") return autoWidth;\n \n return Number.parseInt(String(w), 10) || autoWidth;\n });\n });\n\n private readonly _prefixSums = computed(() => {\n if (!this.virtualVariableRowHeight()) return undefined;\n this.measurementVersion();\n const totalRows = this.virtualTotalRows();\n const defaultHeight = this.virtualRowHeight();\n return buildPrefixSums(\n (index: number) => this.rowHeightCache.get(index) ?? defaultHeight,\n totalRows,\n );\n });\n\n readonly virtualRowRange = computed(() => {\n if (!this.isVirtualScrollActive()) {\n const total = this.virtualTotalRows();\n return { start: 0, end: total, paddingTop: 0, paddingBottom: 0 };\n }\n const totalRows = this.virtualTotalRows();\n const buffer = this.virtualRowBuffer();\n\n if (this.virtualVariableRowHeight()) {\n const defaultHeight = this.virtualRowHeight();\n const getHeight = (index: number): number =>\n this.rowHeightCache.get(index) ?? defaultHeight;\n return computeVariableRowRange(\n this.virtualScrollTop(),\n this.viewportHeight(),\n getHeight,\n totalRows,\n buffer,\n this._prefixSums(),\n );\n }\n\n const rowHeight = this.virtualRowHeight();\n const range = computeRowRange(\n this.virtualScrollTop(),\n this.viewportHeight(),\n rowHeight,\n totalRows,\n buffer,\n );\n return {\n ...range,\n paddingTop: range.start * rowHeight,\n paddingBottom: (totalRows - range.end) * rowHeight,\n };\n });\n\n readonly virtualColumnRange = computed(() => {\n if (!this.isVirtualScrollActive()) {\n return {\n start: 0,\n end: this.scrollableColumns().length,\n paddingLeft: 0,\n paddingRight: 0,\n };\n }\n return computeColumnRange(\n this.virtualScrollLeft(),\n this.viewportWidth(),\n this.scrollableColumnWidths(),\n this.virtualColumnBuffer(),\n );\n });\n\n readonly virtualVisibleRows = computed((): T[] => {\n const { start, end } = this.virtualRowRange();\n return this.sortedData().slice(start, end);\n });\n\n readonly virtualVisibleTreeRows = computed((): FlattenedTreeRow<T>[] => {\n const { start, end } = this.virtualRowRange();\n return this.visibleTreeRows().slice(start, end);\n });\n\n readonly virtualVisibleMiddleColumns = computed(() => {\n const { start, end } = this.virtualColumnRange();\n return this.scrollableColumns().slice(start, end);\n });\n\n readonly virtualPaddingTop = computed(\n () => this.virtualRowRange().paddingTop,\n );\n\n readonly virtualPaddingBottom = computed(\n () => this.virtualRowRange().paddingBottom,\n );\n\n readonly virtualPaddingLeft = computed(\n () => this.virtualColumnRange().paddingLeft,\n );\n readonly virtualPaddingRight = computed(\n () => this.virtualColumnRange().paddingRight,\n );\n\n private readonly i18n = createLocaleBindings(this.locale, DATA_TABLE_LOCALES);\n /**\n * Resolved DataTableLocale for the table chrome (column menu, filters,\n * pagination). Protected — internal template binding only; consumer\n * components should set their own `locale` input.\n */\n protected readonly t = this.i18n.t;\n /** `'rtl'` when the active locale is RTL, otherwise `null` — bind to `[attr.dir]`. */\n readonly dir = this.i18n.dir;\n\n // Chrome label computeds — each carries an English fallback so a consumer\n // who passes a partial custom DataTableLocale (via an `as` cast or\n // dynamic translation source) sees the prior baseline rather than the\n // literal string \"undefined\" reaching the template or pagination child.\n readonly filterPlaceholder = computed(() => this.t().filterPlaceholder ?? 'Filter...');\n readonly columnsLabel = computed(() => this.t().columnsLabel ?? 'Columns');\n readonly noResultsLabel = computed(() => this.t().noResultsLabel ?? 'No results found.');\n readonly rowsPerPageLabel = computed(() => this.t().rowsPerPageLabel ?? 'Rows per page');\n readonly pageLabel = computed(() => this.t().pageLabel ?? 'Page');\n readonly ofLabel = computed(() => this.t().ofLabel ?? 'of');\n readonly toggleColumnsLabel = computed(() => this.t().toggleColumns ?? 'Toggle columns');\n\n /**\n * Build the localised `Toggle X column` aria-label for the\n * column-visibility checkbox. Guards against a missing dictionary key\n * (which would otherwise crash `interpolate(undefined, …)`).\n */\n toggleColumnAriaLabel(columnHeader: string): string {\n const template = this.t().toggleColumnAriaLabel ?? 'Toggle {column} column';\n return interpolate(template, { column: columnHeader });\n }\n\n\n readonly columnPinOverrides = signal<\n Record<string, \"left\" | \"right\" | undefined>\n >({});\n /**\n * Generic busy-overlay label an addon drives via {@link setBusy}; null when\n * idle. The base owns no label text — it only renders the neutral overlay.\n */\n private readonly _busyLabel = signal<string | null>(null);\n /** Visually-hidden live-region text announcing sort/filter changes to AT. */\n readonly srAnnouncement = signal(\"\");\n /**\n * The toolbar's search text. Two-way, so setting it filters programmatically —\n * but writing it directly bypasses {@link filterDebounce}, the page-index\n * reset and the {@link filterChange} emission that {@link onFilterChange} does.\n */\n readonly globalFilter = model(\"\");\n /**\n * Per-column filter values keyed by accessor key. A value is applied only if\n * the column declares `enableFiltering`; it then runs the column's `filterFn`,\n * or a case-insensitive substring match on the cell's string value. Empty\n * values (null/''/[]) are skipped, so clearing a filter means writing one of\n * those, not deleting the key.\n */\n readonly columnFilters = model<Record<string, unknown>>({});\n /**\n * Bring-your-own AI hook. Enables natural-language filtering\n * (`applyNaturalLanguageFilter`) and column AI-fill (`aiFillColumn`). Optional;\n * no provider → those methods no-op (graceful degradation).\n */\n readonly aiProvider = input<AiProvider | undefined>(undefined);\n readonly hasAi = computed(() => this.aiProvider() !== undefined);\n /** Emitted after a natural-language query is compiled into a filter. */\n readonly nlFilter = output<{ query: string; spec: NlFilterSpec }>();\n /** Emitted after an AI column-fill completes. */\n readonly aiFillComplete = output<{ columnKey: string; count: number }>();\n /** When true (and `aiProvider` is set), the toolbar shows a natural-language filter box. */\n readonly enableNlFilter = input(true);\n readonly aiFilterQuery = signal(\"\");\n readonly aiFilterRunning = signal(false);\n readonly nlFilterPlaceholder = computed(\n () => this.t().nlFilterPlaceholder ?? \"Ask in plain English…\",\n );\n\n /** Run the toolbar's natural-language filter query through the provider. */\n async runAiFilter(): Promise<void> {\n const query = this.aiFilterQuery().trim();\n if (!query || this.aiFilterRunning()) return;\n this.aiFilterRunning.set(true);\n try {\n await this.applyNaturalLanguageFilter(query);\n } finally {\n this.aiFilterRunning.set(false);\n }\n }\n\n /** Advanced AND/OR filter tree (A5). Applied in addition to global/column filters. */\n readonly advancedFilter = model<FilterGroup | null>(null);\n /** Show the advanced-filter builder button in the toolbar. */\n readonly enableAdvancedFilter = input(false);\n /** Non-null filter group for the builder UI (an empty AND group when unset). */\n readonly advancedFilterGroup = computed<FilterGroup>(\n () => this.advancedFilter() ?? { type: \"group\", combinator: \"and\", rules: [] },\n );\n /** {key,header} pairs offered by the builder (the user-defined columns). */\n readonly filterBuilderColumns = computed(() =>\n this.columns().map((c) => ({ key: String(c.accessorKey), header: c.header })),\n );\n /** Localized strings for the builder (locale `advancedFilter` section over English defaults). */\n readonly filterBuilderLabels = computed(\n () => this.t().advancedFilter ?? DEFAULT_FILTER_BUILDER_LABELS,\n );\n /** Number of leaf conditions in the active advanced filter (for the toolbar badge). */\n readonly advancedFilterCount = computed(() => this._countConditions(this.advancedFilter()));\n\n private _countConditions(group: FilterGroup | null): number {\n if (!group) return 0;\n return group.rules.reduce(\n (sum, rule) => sum + (rule.type === \"group\" ? this._countConditions(rule) : 1),\n 0,\n );\n }\n\n /**\n * Stores a tree edited in the builder popover and returns to page 0, so a\n * narrowing edit cannot strand the view on a page past the end — the same\n * reset the global and column filter paths perform.\n */\n onAdvancedFilterChange(group: FilterGroup): void {\n this.advancedFilter.set(group);\n this.paginationState.update((state) => ({ ...state, pageIndex: 0 }));\n }\n\n /** Drops the advanced filter entirely; the global and column filters are untouched. */\n clearAdvancedFilter(): void {\n this.advancedFilter.set(null);\n }\n /**\n * Current single-column sort. Two-way, so writing it sorts programmatically\n * (locally, when {@link localSorting}) — but unlike {@link onSortChange} it\n * emits no {@link sortChange} and does not touch {@link multiSortState}.\n */\n readonly sortState = model<SortState>({ column: \"\", direction: null });\n /**\n * The ordered multi-sort chain, highest priority first. Only consulted while\n * {@link enableMultiSort} is on; capped at {@link maxMultiSortColumns}.\n */\n readonly multiSortState = model<SortState[]>([]);\n /**\n * Current page index and size. Two-way: the table resets `pageIndex` to 0\n * whenever a filter changes, so don't assume it stays where you put it.\n */\n readonly paginationState = model<PaginationState>({ pageIndex: 0, pageSize: 10 });\n /** Choices offered in the footer's page-size select. */\n readonly pageSizeOptions = input<number[]>([10, 20, 30, 40, 50]);\n /** Hides the page-size select while keeping the page buttons. */\n readonly showPageSizeSelector = input(true);\n /**\n * Runtime column widths (CSS length strings) keyed by accessor key,\n * overriding each column's declared `width`. Written by\n * {@link enableColumnResize}; a good thing to persist and restore — see\n * {@link getColumnState} / {@link applyColumnState}.\n */\n readonly columnWidths = model<Record<string, string>>({});\n /**\n * Column visibility keyed by accessor key. Only `false` hides — a missing key\n * counts as visible, so hiding requires writing `false`, not deleting.\n */\n readonly columnVisibility = model<Record<string, boolean>>({});\n /**\n * Accessor keys in display order. Keys absent from this array keep their\n * declaration order after the listed ones, so a partial order is legal.\n * Pinned/sticky columns are still grouped to their side.\n */\n readonly columnOrder = model<string[]>([]);\n readonly loadingTrigger = signal<DataTableLoadingTrigger>(\"initial\");\n readonly focusedCell = signal<{ rowIndex: number; columnKey: string } | null>(null);\n readonly draggedColumnKey = signal<string | null>(null);\n readonly dropTargetColumnKey = signal<string | null>(null);\n readonly isLoaderVisible = computed(\n () => this.loading() && this.shouldShowLoaderFor(this.loadingTrigger()),\n );\n readonly resolvedLoaderComponentInputs = computed(() => ({\n ...this.loaderComponentInputs(),\n trigger: this.loadingTrigger(),\n }));\n\n readonly filteredData = computed(() => {\n let data = this.data();\n if (!this.localFiltering()) return data;\n\n const globalFilterValue = this.globalFilter().toLowerCase();\n if (globalFilterValue) {\n data = this.applyGlobalFilterToData(data, globalFilterValue);\n }\n\n data = this.applyColumnFiltersToData(data);\n return this.applyAdvancedFilter(data);\n });\n\n private applyAdvancedFilter(data: T[]): T[] {\n const group = this.advancedFilter();\n if (!group || group.rules.length === 0) return data;\n const columns = this.enhancedColumns();\n return data.filter((row) =>\n evaluateAdvancedFilter(group, (column) => {\n const col = columns.find((c) => String(c.accessorKey) === column);\n return this.getCellValue(row, col?.accessorKey ?? column, col);\n }),\n );\n }\n\n private applyGlobalFilterToData(data: T[], globalFilterValue: string): T[] {\n const columns = this.enhancedColumns().filter(\n (col) =>\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\",\n );\n const globalFilterFn = this.globalFilterFn();\n if (globalFilterFn) {\n return data.filter((row) =>\n globalFilterFn(row, globalFilterValue, columns),\n );\n }\n const globallyFilterableColumns = columns.filter(\n (col) => col.enableGlobalFilter !== false,\n );\n return data.filter((row) =>\n globallyFilterableColumns.some((col) => {\n const value = this.getCellValue(row, col.accessorKey, col);\n return String(value).toLowerCase().includes(globalFilterValue);\n }),\n );\n }\n\n private applyColumnFiltersToData(data: T[]): T[] {\n const colFilters = this.columnFilters();\n const columns = this.enhancedColumns();\n\n for (const columnKey of Object.keys(colFilters)) {\n const filterValue = colFilters[columnKey];\n if (this.isFilterValueEmpty(filterValue)) continue;\n\n const column = columns.find((col) => col.accessorKey === columnKey);\n if (!column?.enableFiltering) continue;\n\n if (column.filterFn) {\n const filterFn = column.filterFn;\n data = data.filter((row) => filterFn(row, filterValue));\n } else {\n data = data.filter((row) => {\n const cellValue = this.getCellValue(row, columnKey, column);\n return String(cellValue)\n .toLowerCase()\n .includes(String(filterValue).toLowerCase());\n });\n }\n }\n\n return data;\n }\n\n private treeIndex_walk(\n rows: T[],\n parentId: string | null,\n childrenMap: Map<string, string[]>,\n parentMap: Map<string, string>,\n getId: (row: T) => string,\n getChildrenFn: (row: T) => T[] | null | undefined,\n ): void {\n for (const row of rows) {\n const id = getId(row);\n if (parentId !== null) {\n parentMap.set(id, parentId);\n }\n const kids = getChildrenFn(row);\n const kidIds: string[] = [];\n if (kids && kids.length > 0) {\n for (const kid of kids) {\n kidIds.push(getId(kid));\n }\n childrenMap.set(id, kidIds);\n this.treeIndex_walk(kids, id, childrenMap, parentMap, getId, getChildrenFn);\n } else {\n childrenMap.set(id, []);\n }\n }\n }\n\n private treeIndex_getDescendants(\n id: string,\n childrenMap: Map<string, string[]>,\n descendantsMap: Map<string, string[]>,\n ): string[] {\n const cached = descendantsMap.get(id);\n if (cached !== undefined) return cached;\n const kids = childrenMap.get(id) ?? [];\n const all: string[] = [];\n for (const kid of kids) {\n all.push(kid, ...this.treeIndex_getDescendants(kid, childrenMap, descendantsMap));\n }\n descendantsMap.set(id, all);\n return all;\n }\n\n private readonly treeIndex = computed(() => {\n if (!this.enableSubRows()) {\n return {\n children: new Map<string, string[]>(),\n descendants: new Map<string, string[]>(),\n parent: new Map<string, string>(),\n };\n }\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n const childrenMap = new Map<string, string[]>();\n const descendantsMap = new Map<string, string[]>();\n const parentMap = new Map<string, string>();\n\n this.treeIndex_walk(this.data(), null, childrenMap, parentMap, getId, getChildrenFn);\n\n for (const id of childrenMap.keys()) {\n this.treeIndex_getDescendants(id, childrenMap, descendantsMap);\n }\n\n return {\n children: childrenMap,\n descendants: descendantsMap,\n parent: parentMap,\n };\n });\n\n private filteredTree_matchesGlobal(\n row: T,\n globalFilterValue: string,\n columns: ColumnDef<T>[],\n ): boolean {\n const globalFilterFn = this.globalFilterFn();\n if (globalFilterFn) {\n return globalFilterFn(row, globalFilterValue, columns);\n }\n const globallyFilterable = columns.filter(\n (col) => col.enableGlobalFilter !== false,\n );\n return globallyFilterable.some((col) => {\n const value = this.getCellValue(row, col.accessorKey, col);\n return String(value).toLowerCase().includes(globalFilterValue);\n });\n }\n\n private filteredTree_matchesColumns(\n row: T,\n colFilters: Record<string, unknown>,\n columns: ColumnDef<T>[],\n ): boolean {\n for (const columnKey of Object.keys(colFilters)) {\n const filterValue = colFilters[columnKey];\n if (this.isFilterValueEmpty(filterValue)) continue;\n const column = columns.find((col) => col.accessorKey === columnKey);\n if (!column?.enableFiltering) continue;\n if (column.filterFn) {\n if (!column.filterFn(row, filterValue)) return false;\n } else {\n const cellValue = this.getCellValue(row, columnKey, column);\n if (\n !String(cellValue)\n .toLowerCase()\n .includes(String(filterValue).toLowerCase())\n )\n return false;\n }\n }\n return true;\n }\n\n private filteredTree_matchesRow(\n row: T,\n ctx: { hasGlobalFilter: boolean; globalFilterValue: string; hasColumnFilters: boolean; colFilters: Record<string, unknown>; columns: ColumnDef<T>[] },\n ): boolean {\n if (ctx.hasGlobalFilter && !this.filteredTree_matchesGlobal(row, ctx.globalFilterValue, ctx.columns)) return false;\n if (ctx.hasColumnFilters && !this.filteredTree_matchesColumns(row, ctx.colFilters, ctx.columns)) return false;\n return true;\n }\n\n private filteredTree_pushChildMatch(\n result: T[],\n row: T,\n filteredKids: T[],\n setChildrenFn: (row: T, children: T[]) => T,\n ): void {\n if (filteredKids.length > 0) {\n result.push(setChildrenFn(row, filteredKids));\n }\n }\n\n private filteredTree_filterIncludeChildren(\n rows: T[],\n ctx: { hasGlobalFilter: boolean; globalFilterValue: string; hasColumnFilters: boolean; colFilters: Record<string, unknown>; columns: ColumnDef<T>[]; mode: string; getChildrenFn: (row: T) => T[] | null | undefined; setChildrenFn: (row: T, children: T[]) => T },\n ): T[] {\n const result: T[] = [];\n for (const row of rows) {\n if (this.filteredTree_matchesRow(row, ctx)) {\n result.push(row);\n } else {\n const children = ctx.getChildrenFn(row);\n if (children && children.length > 0) {\n const filteredKids = this.filteredTree_filterTree(children, ctx);\n this.filteredTree_pushChildMatch(result, row, filteredKids, ctx.setChildrenFn);\n }\n }\n }\n return result;\n }\n\n private filteredTree_filterIncludeParents(\n rows: T[],\n ctx: { hasGlobalFilter: boolean; globalFilterValue: string; hasColumnFilters: boolean; colFilters: Record<string, unknown>; columns: ColumnDef<T>[]; mode: string; getChildrenFn: (row: T) => T[] | null | undefined; setChildrenFn: (row: T, children: T[]) => T },\n ): T[] {\n const result: T[] = [];\n for (const row of rows) {\n const children = ctx.getChildrenFn(row);\n const selfMatches = this.filteredTree_matchesRow(row, ctx);\n\n if (children && children.length > 0) {\n const filteredKids = this.filteredTree_filterTree(children, ctx);\n if (selfMatches || filteredKids.length > 0) {\n result.push(ctx.setChildrenFn(row, filteredKids));\n }\n } else if (selfMatches) {\n result.push(row);\n }\n }\n return result;\n }\n\n private filteredTree_filterTree(\n rows: T[],\n ctx: { hasGlobalFilter: boolean; globalFilterValue: string; hasColumnFilters: boolean; colFilters: Record<string, unknown>; columns: ColumnDef<T>[]; mode: string; getChildrenFn: (row: T) => T[] | null | undefined; setChildrenFn: (row: T, children: T[]) => T },\n ): T[] {\n if (ctx.mode === \"excludeChildren\") {\n return rows.filter(r => this.filteredTree_matchesRow(r, ctx));\n }\n if (ctx.mode === \"includeChildren\") {\n return this.filteredTree_filterIncludeChildren(rows, ctx);\n }\n return this.filteredTree_filterIncludeParents(rows, ctx);\n }\n\n readonly filteredTreeData = computed<T[]>(() => {\n if (!this.enableSubRows() || !this.localFiltering()) return this.data();\n\n const globalFilterValue = this.globalFilter().toLowerCase();\n const colFilters = this.columnFilters();\n const columns = this.enhancedColumns().filter(\n (col) =>\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\",\n );\n const hasGlobalFilter = !!globalFilterValue;\n const hasColumnFilters = Object.keys(colFilters).some(\n (k) => !this.isFilterValueEmpty(colFilters[k]),\n );\n\n if (!hasGlobalFilter && !hasColumnFilters) return this.data();\n\n const ctx = {\n hasGlobalFilter,\n globalFilterValue,\n hasColumnFilters,\n colFilters,\n columns,\n mode: this.subRowFilterMode(),\n getChildrenFn: this.getChildren(),\n setChildrenFn: this.setChildren(),\n };\n\n return this.filteredTree_filterTree(this.data(), ctx);\n });\n\n readonly sortedTreeData = computed<T[]>(() => {\n if (!this.enableSubRows()) return [];\n const data = this.filteredTreeData();\n if (!this.localSorting() || !this.enableSubRowSorting()) return data;\n\n const sorts = this.activeSorts();\n if (sorts.length === 0) return data;\n\n const getChildrenFn = this.getChildren();\n const setChildrenFn = this.setChildren();\n\n const compareFn = this.buildSortComparator(sorts);\n\n const sortRows = (rows: T[]): T[] => {\n const sorted = [...rows].sort(compareFn);\n return sorted.map((row) => {\n const children = getChildrenFn(row);\n if (children && children.length > 0) {\n return setChildrenFn(row, sortRows(children));\n }\n return row;\n });\n };\n\n return sortRows(data);\n });\n\n readonly visibleTreeRows = computed<FlattenedTreeRow<T>[]>(() => {\n if (!this.enableSubRows()) return [];\n return this.flattenTreeFull(this.sortedTreeData());\n });\n\n readonly sortedData = computed(() => {\n if (this.enableSubRows()) return [];\n const data = [...this.filteredData()];\n if (!this.localSorting()) return data;\n\n const sorts = this.activeSorts();\n if (sorts.length === 0) return data;\n\n return data.sort(this.buildSortComparator(sorts));\n });\n\n readonly processedData = computed(() => {\n if (this.enableSubRows()) {\n const visible = this.visibleTreeRows();\n if (!this.localPagination()) return visible.map((tr) => tr.row);\n\n if (this.subRowsPaginated()) {\n const { pageIndex, pageSize } = this.paginationState();\n const start = pageIndex * pageSize;\n return visible.slice(start, start + pageSize).map((tr) => tr.row);\n }\n\n const treeData = this.sortedTreeData();\n const { pageIndex, pageSize } = this.paginationState();\n const start = pageIndex * pageSize;\n const rootSlice = treeData.slice(start, start + pageSize);\n return this.flattenTreeRowsForPage(rootSlice);\n }\n\n const data = this.sortedData();\n if (!this.localPagination()) return data;\n\n const { pageIndex, pageSize } = this.paginationState();\n const start = pageIndex * pageSize;\n return data.slice(start, start + pageSize);\n });\n\n readonly processedTreeRows = computed<FlattenedTreeRow<T>[]>(() => {\n if (!this.enableSubRows()) return [];\n const visible = this.visibleTreeRows();\n if (!this.localPagination()) return visible;\n\n if (this.subRowsPaginated()) {\n const { pageIndex, pageSize } = this.paginationState();\n const start = pageIndex * pageSize;\n return visible.slice(start, start + pageSize);\n }\n\n const treeData = this.sortedTreeData();\n const { pageIndex, pageSize } = this.paginationState();\n const start = pageIndex * pageSize;\n const rootSlice = treeData.slice(start, start + pageSize);\n return this.flattenTreeRowsForPageFull(rootSlice);\n });\n\n readonly activeTotalItems = computed(() => {\n if (this.groupingActive()) {\n return this.localPagination()\n ? this.groupedDisplayRows().length\n : this.total();\n }\n if (this.enableSubRows()) {\n if (!this.localPagination()) return this.total();\n if (this.subRowsPaginated()) {\n return this.visibleTreeRows().length;\n }\n return this.sortedTreeData().length;\n }\n return this.localPagination() ? this.filteredData().length : this.total();\n });\n\n /**\n * True when grouping should drive rendering: a `groupBy` column is set and\n * neither tree mode nor virtual scroll is active.\n */\n readonly groupingActive = computed(\n () =>\n !!this.groupBy() &&\n !this.enableSubRows() &&\n !this.isVirtualScrollActive(),\n );\n\n private readonly groupByColumn = computed(() => {\n const key = this.groupBy();\n if (!key) return undefined;\n return this.enhancedColumns().find(\n (col) => String(col.accessorKey) === key,\n );\n });\n\n /**\n * Flat display list of group-header rows and their (non-collapsed) data\n * rows, partitioned from `sortedData()` in insertion order. Empty when\n * grouping is not active.\n */\n readonly groupedDisplayRows = computed<DataTableDisplayRow<T>[]>(() => {\n if (!this.groupingActive()) return [];\n const key = this.groupBy();\n if (!key) return [];\n\n const column = this.groupByColumn();\n const collapsedMap = this.collapsedGroups();\n const groups = partitionIntoGroups(this.sortedData(), (row) =>\n this.getCellValue(row, key, column),\n );\n\n const result: DataTableDisplayRow<T>[] = [];\n for (const group of groups) {\n const collapsed = collapsedMap[group.groupKey] === true;\n result.push(this.buildGroupRow(group.groupKey, group.groupValue, group.rows, collapsed));\n if (!collapsed) {\n for (const row of group.rows) {\n result.push({ kind: 'data', row });\n }\n }\n }\n return result;\n });\n\n private buildGroupRow(\n groupKey: string,\n groupValue: unknown,\n rows: T[],\n collapsed: boolean,\n ): GroupRow {\n const aggregates = new Map<string, string>();\n if (this.groupAggregates()) {\n for (const col of this.enhancedColumns()) {\n if (col.aggregateFn) {\n aggregates.set(String(col.accessorKey), this.computeAggregate(rows, col));\n }\n }\n }\n return {\n kind: 'group',\n groupKey,\n groupValue,\n count: rows.length,\n aggregates,\n collapsed,\n };\n }\n\n /**\n * `keyvalue` pipe comparator that preserves the Map's insertion order.\n * The group aggregates Map is built in `enhancedColumns()` order, so this\n * keeps the group-header aggregate chips aligned with the column order\n * instead of the pipe's default alphabetical key sort.\n */\n protected readonly keepGroupAggregateOrder = (): number => 0;\n\n /**\n * `groupedDisplayRows()` sliced for the current page when local pagination\n * is enabled. Group header rows count toward the page size.\n */\n readonly pagedGroupedDisplayRows = computed<DataTableDisplayRow<T>[]>(() => {\n const rows = this.groupedDisplayRows();\n if (!this.localPagination()) return rows;\n const { pageIndex, pageSize } = this.paginationState();\n const start = pageIndex * pageSize;\n return rows.slice(start, start + pageSize);\n });\n\n private readonly filteredRowIds = computed(() => {\n if (this.enableSubRows()) {\n return this.visibleTreeRows().map((tr) => this.getRowId()(tr.row));\n }\n return this.filteredData().map((row) => this.getRowId()(row));\n });\n\n readonly selectedRows = computed(() => {\n const selection = this.rowSelection();\n const getId = this.getRowId();\n return this.data().filter((row) => !!selection[getId(row)]);\n });\n\n private readonly previousCellValues = new Map<string, Map<string, unknown>>();\n readonly flashingCells = signal<Map<string, \"up\" | \"down\" | \"changed\">>(\n new Map(),\n );\n private readonly flashTimers: ReturnType<typeof setTimeout>[] = [];\n\n /**\n * Animation classes for a cell that just changed — green for a numeric\n * increase, red for a decrease, yellow for any other change — or `''` when the\n * cell is not flashing. Requires {@link enableCellFlash}.\n */\n getCellFlashClass(rowId: string, columnKey: string): string {\n const flash = this.flashingCells().get(`${rowId}:${columnKey}`);\n if (!flash) return \"\";\n if (flash === \"up\")\n return \"animate-[flash-up_0.5s_ease-out] bg-green-500/20\";\n if (flash === \"down\")\n return \"animate-[flash-down_0.5s_ease-out] bg-red-500/20\";\n return \"animate-[flash-changed_0.5s_ease-out] bg-yellow-500/20\";\n }\n\n private diffCellValues(\n data: T[], columns: ColumnDef<T>[], getId: (row: T) => string\n ): Map<string, CellFlashDirection> {\n const prev = this.previousCellValues;\n const flashes = new Map<string, CellFlashDirection>();\n\n for (const row of data) {\n const rowId = getId(row);\n const prevRow = prev.get(rowId);\n if (!prevRow) continue;\n this.diffRowCells(row, rowId, columns, prevRow, flashes);\n }\n return flashes;\n }\n\n private diffRowCells(\n row: T, rowId: string, columns: ColumnDef<T>[],\n prevRow: Map<string, unknown>, flashes: Map<string, CellFlashDirection>\n ): void {\n for (const col of columns) {\n if (col.enableCellFlash === false) continue;\n const key = String(col.accessorKey);\n if (key.startsWith('_')) continue;\n\n const oldVal = prevRow.get(key);\n const newVal = this.resolveColumnValue(row, col, key);\n if (oldVal === newVal) continue;\n\n const cellKey = `${rowId}:${key}`;\n flashes.set(cellKey, this.classifyChange(oldVal, newVal));\n }\n }\n\n private classifyChange(oldVal: unknown, newVal: unknown): CellFlashDirection {\n const oldNum = Number(oldVal);\n const newNum = Number(newVal);\n if (Number.isFinite(oldNum) && Number.isFinite(newNum)) {\n return newNum > oldNum ? 'up' : 'down';\n }\n return 'changed';\n }\n\n private resolveColumnValue(row: T, col: ColumnDef<T>, key: string): unknown {\n return col.accessorFn ? col.accessorFn(row) : (row as Record<string, unknown>)[key];\n }\n\n private snapshotCellValues(data: T[], columns: ColumnDef<T>[], getId: (row: T) => string): void {\n this.previousCellValues.clear();\n for (const row of data) {\n const rowId = getId(row);\n const rowMap = new Map<string, unknown>();\n for (const col of columns) {\n const key = String(col.accessorKey);\n if (key.startsWith('_')) continue;\n rowMap.set(key, this.resolveColumnValue(row, col, key));\n }\n this.previousCellValues.set(rowId, rowMap);\n }\n }\n\n private setupCellFlashEffect(): void {\n effect(() => {\n if (!this.enableCellFlash()) return;\n const data = this.data();\n const getId = this.getRowId();\n const columns = this.columns();\n const duration = this.cellFlashDuration();\n\n const flashes = this.diffCellValues(data, columns, getId);\n this.snapshotCellValues(data, columns, getId);\n\n if (flashes.size > 0) {\n this.flashingCells.set(flashes);\n const timer = setTimeout(() => {\n this.flashingCells.set(new Map());\n }, duration);\n this.flashTimers.push(timer);\n }\n });\n }\n\n private setupPaginationEffect(): void {\n effect(() => {\n if (!this.localPagination()) {\n return;\n }\n\n const { pageIndex, pageSize } = this.paginationState();\n const sanitizedPageSize = pageSize > 0 ? pageSize : 10;\n const totalItems = this.groupingActive()\n ? this.groupedDisplayRows().length\n : this.filteredData().length;\n const maxPageIndex = Math.max(\n 0,\n Math.ceil(totalItems / sanitizedPageSize) - 1,\n );\n const clampedPageIndex = Math.min(maxPageIndex, Math.max(0, pageIndex));\n\n if (sanitizedPageSize !== pageSize || clampedPageIndex !== pageIndex) {\n this.paginationState.set({\n pageIndex: clampedPageIndex,\n pageSize: sanitizedPageSize,\n });\n }\n });\n }\n\n constructor() {\n this.setupCellFlashEffect();\n this.setupPaginationEffect();\n\n this.rowResizeObserver = new ResizeObserver((entries) => {\n this.handleRowResizes(entries);\n });\n\n effect(() => {\n if (!this.isVirtualScrollActive() || !this.virtualVariableRowHeight())\n return;\n const els = this.virtualRowElements();\n const newSet = new Set(els.map((el) => el.nativeElement as Element));\n\n for (const el of this.observedElements) {\n if (!newSet.has(el)) {\n this.rowResizeObserver?.unobserve(el);\n }\n }\n for (const el of newSet) {\n if (!this.observedElements.has(el)) {\n this.rowResizeObserver?.observe(el);\n }\n }\n this.observedElements = newSet;\n });\n }\n\n ngAfterViewInit(): void {\n this.setupViewportObserver();\n this.validateConfiguration();\n this.setupTouchRangeSelection();\n }\n\n private _longPressCleanup: (() => void) | null = null;\n\n /** Touch: long-press a cell to enter range-selection, then drag to extend. */\n private setupTouchRangeSelection(): void {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n this._longPressCleanup = onLongPress(container, (event) => {\n if (!this.enableCellRangeSelection() || this.editingCell() !== null) return;\n const touch = event.touches[0];\n if (!touch) return;\n const cell = this.cellFromElement(this._document.elementFromPoint(touch.clientX, touch.clientY));\n if (!cell) return;\n this.startRangeDrag(cell, false);\n });\n }\n\n private checkPaginationVsVirtualScroll(warnings: string[]): void {\n if (\n this.localPagination() &&\n this.showPagination() &&\n this.enableVirtualScroll() === true\n ) {\n warnings.push(\n '[ui-data-table] Both pagination and enableVirtualScroll are enabled. ' +\n 'These features are mutually exclusive. Virtual scroll will be used, ' +\n 'and pagination controls will have no effect on virtual scrolling.'\n );\n }\n }\n\n private checkServerPaginationTotal(warnings: string[]): void {\n if (!this.localPagination() && this.total() === 0 && this.data().length > 0) {\n warnings.push(\n '[ui-data-table] Using server-side pagination (localPagination=false) ' +\n 'without providing [total]. Pagination may not work correctly.'\n );\n }\n }\n\n private checkVirtualVariableRowHeight(warnings: string[]): void {\n if (this.virtualVariableRowHeight() && !this.isVirtualScrollActive()) {\n warnings.push(\n '[ui-data-table] virtualVariableRowHeight is enabled but virtual scroll ' +\n 'is not active. This option has no effect.'\n );\n }\n }\n\n private checkVirtualRecycleComponents(warnings: string[]): void {\n if (this.virtualRecycleComponents() && !this.isVirtualScrollActive()) {\n warnings.push(\n '[ui-data-table] virtualRecycleComponents is enabled but virtual scroll ' +\n 'is not active. This option has no effect.'\n );\n }\n }\n\n private checkVirtualScrollAutoWithPagination(warnings: string[]): void {\n if (\n this.enableVirtualScroll() === 'auto' &&\n this.localPagination() &&\n this.showPagination()\n ) {\n warnings.push(\n '[ui-data-table] enableVirtualScroll=\"auto\" has no effect when pagination is active. ' +\n 'Set [showPagination]=\"false\" or [localPagination]=\"false\" for virtual scroll to auto-activate.'\n );\n }\n }\n\n private checkSubRowsWithExpansion(warnings: string[]): void {\n if (this.enableSubRows() && this.enableRowExpansion()) {\n warnings.push(\n '[ui-data-table] Both enableSubRows and enableRowExpansion are enabled. ' +\n 'This creates two separate expander controls per row (tree toggle + detail panel). ' +\n 'If this is unintentional, disable one of them.'\n );\n }\n }\n\n private checkGroupByConflicts(warnings: string[]): void {\n if (this.groupBy() && (this.enableSubRows() || this.isVirtualScrollActive())) {\n warnings.push(\n '[ui-data-table] groupBy is set together with enableSubRows or virtual scroll. ' +\n 'Row grouping is mutually exclusive with these features and will be ignored.'\n );\n }\n }\n\n private checkSubRowsGetRowId(warnings: string[], isDefaultGetRowId: boolean): void {\n if (this.enableSubRows() && isDefaultGetRowId) {\n warnings.push(\n '[ui-data-table] enableSubRows is active with the default getRowId. ' +\n 'The default uses JSON.stringify as fallback, which produces unstable IDs for tree data. ' +\n 'Provide a custom [getRowId] function that returns a stable unique identifier.'\n );\n }\n }\n\n private checkCellFlashGetRowId(warnings: string[], isDefaultGetRowId: boolean): void {\n if (this.enableCellFlash() && isDefaultGetRowId) {\n warnings.push(\n '[ui-data-table] enableCellFlash is active with the default getRowId. ' +\n 'Cell flash detection requires stable row IDs across data updates. ' +\n 'Provide a custom [getRowId] function.'\n );\n }\n }\n\n private checkFloatingFiltersConfig(warnings: string[], cols: ColumnDef<T>[]): void {\n if (this.enableFloatingFilters() && !cols.some((c) => c.enableFiltering)) {\n warnings.push(\n '[ui-data-table] enableFloatingFilters is true but no columns have enableFiltering set. ' +\n 'The floating filter row will be empty.'\n );\n }\n }\n\n private checkEditableColumnsHaveValueSetter(warnings: string[], cols: ColumnDef<T>[]): void {\n const editableCols = cols.filter((c) => c.editable && !c.valueSetter);\n if (editableCols.length > 0) {\n const keys = editableCols.map((c) => String(c.accessorKey)).join(', ');\n warnings.push(\n `[ui-data-table] Columns [${keys}] have editable=true but no valueSetter. ` +\n 'Inline edits will emit (cellEdit) only and will not update the table data. ' +\n 'Provide a valueSetter to apply edits immutably, or handle (cellEdit) yourself.'\n );\n }\n }\n\n private checkDuplicateAccessorKeys(warnings: string[], cols: ColumnDef<T>[]): void {\n const accessorKeys = cols.map((c) => String(c.accessorKey)).filter((k) => k !== 'undefined');\n const duplicates = accessorKeys.filter((k, i) => accessorKeys.indexOf(k) !== i);\n if (duplicates.length > 0) {\n const unique = [...new Set(duplicates)];\n warnings.push(\n `[ui-data-table] Duplicate accessorKey values found: [${unique.join(', ')}]. ` +\n 'Each column must have a unique accessorKey. Duplicates cause broken sorting, visibility, and width tracking.'\n );\n }\n }\n\n private checkStickyAndPinConflicts(warnings: string[], cols: ColumnDef<T>[]): void {\n const stickyAndPinned = cols.filter((c) => c.sticky && c.pin);\n if (stickyAndPinned.length > 0) {\n const keys = stickyAndPinned.map((c) => String(c.accessorKey)).join(', ');\n warnings.push(\n `[ui-data-table] Columns [${keys}] have both sticky and pin set. ` +\n 'Use pin=\"left\" instead of sticky=true. sticky is deprecated in favor of pin.'\n );\n }\n }\n\n private checkMultipleRenderStrategies(warnings: string[], cols: ColumnDef<T>[]): void {\n const multiRenderCols = cols.filter((c) => {\n const count = [c.cell, c.template, c.component].filter(Boolean).length;\n return count > 1;\n });\n if (multiRenderCols.length > 0) {\n const keys = multiRenderCols.map((c) => String(c.accessorKey)).join(', ');\n warnings.push(\n `[ui-data-table] Columns [${keys}] have multiple rendering strategies (cell/template/component). ` +\n 'Only one will be used (priority: component > template > cell). Remove the unused ones.'\n );\n }\n }\n\n /**\n * Validates configuration and logs warnings for conflicting options in development mode.\n */\n private validateConfiguration(): void {\n if (!(globalThis as { ngDevMode?: unknown }).ngDevMode) return;\n\n const warnings: string[] = [];\n const isDefaultGetRowId = this.getRowId() === DEFAULT_GET_ROW_ID;\n const cols = this.columns();\n\n this.checkPaginationVsVirtualScroll(warnings);\n this.checkServerPaginationTotal(warnings);\n this.checkVirtualVariableRowHeight(warnings);\n this.checkVirtualRecycleComponents(warnings);\n this.checkVirtualScrollAutoWithPagination(warnings);\n this.checkSubRowsWithExpansion(warnings);\n this.checkGroupByConflicts(warnings);\n this.checkSubRowsGetRowId(warnings, isDefaultGetRowId);\n this.checkCellFlashGetRowId(warnings, isDefaultGetRowId);\n this.checkFloatingFiltersConfig(warnings, cols);\n this.checkEditableColumnsHaveValueSetter(warnings, cols);\n this.checkDuplicateAccessorKeys(warnings, cols);\n this.checkStickyAndPinConflicts(warnings, cols);\n this.checkMultipleRenderStrategies(warnings, cols);\n\n for (const warning of warnings) {\n console.error(warning);\n }\n }\n\n ngOnDestroy(): void {\n cancelAnimationFrame(this.rafId);\n clearTimeout(this.filterDebounceTimer);\n clearTimeout(this.filterAnnounceTimer);\n this.flashTimers.forEach((t) => clearTimeout(t));\n this._document.removeEventListener('wheel', this.dragWheelHandler, { capture: true });\n this._document.removeEventListener('drag', this.dragEventHandler);\n this._document.removeEventListener('mousemove', this._onFillMove);\n this._document.removeEventListener('mouseup', this._onFillEnd);\n this._document.removeEventListener('touchmove', this._onFillMove);\n this._document.removeEventListener('touchend', this._onFillEnd);\n this._rangeDragCleanup?.();\n this._longPressCleanup?.();\n this.viewportObserver?.disconnect();\n this.rowResizeObserver?.disconnect();\n }\n\n private setupViewportObserver(): void {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n\n this.viewportHeight.set(container.clientHeight);\n this.viewportWidth.set(container.clientWidth);\n\n this.viewportObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const el = entry.target as HTMLElement;\n this.viewportHeight.set(el.clientHeight);\n this.viewportWidth.set(el.clientWidth);\n }\n });\n this.viewportObserver.observe(container);\n }\n\n /**\n * Scroll handler for the virtualized viewport. Coalesces to one\n * `requestAnimationFrame` per frame, and ignores events raised by the table's\n * own compensating scrolls (variable row heights, {@link scrollToRow}).\n * Bound by the template only while virtualization is active.\n */\n onVirtualScroll(event: Event): void {\n if (this.suppressScrollEvents) return;\n const el = event.target as HTMLElement;\n cancelAnimationFrame(this.rafId);\n this.rafId = requestAnimationFrame(() => {\n this.virtualScrollTop.set(el.scrollTop);\n this.virtualScrollLeft.set(el.scrollLeft);\n });\n }\n\n private handleRowResizes(entries: ResizeObserverEntry[]): void {\n let scrollAdjustment = 0;\n const firstVisible = this.virtualRowRange().start;\n\n for (const entry of entries) {\n const el = entry.target as HTMLElement;\n const indexStr = el.dataset[\"virtualRowIndex\"];\n if (indexStr === undefined) continue;\n\n const index = Number.parseInt(indexStr, 10);\n const newHeight = entry.borderBoxSize[0].blockSize;\n const oldHeight =\n this.rowHeightCache.get(index) ?? this.virtualRowHeight();\n const diff = newHeight - oldHeight;\n\n if (Math.abs(diff) < 0.5) continue;\n\n this.rowHeightCache.set(index, newHeight);\n\n if (index < firstVisible) {\n scrollAdjustment += diff;\n }\n }\n\n if (scrollAdjustment !== 0) {\n const container = this.scrollContainerRef()?.nativeElement;\n if (container) {\n this.suppressScrollEvents = true;\n container.scrollTop += scrollAdjustment;\n this.virtualScrollTop.set(container.scrollTop);\n requestAnimationFrame(() => {\n this.suppressScrollEvents = false;\n });\n }\n }\n\n this.measurementVersion.update((v) => v + 1);\n }\n\n /**\n * Maps an index within the rendered window to the index in the full row set,\n * by adding the window's start offset. Use it whenever a template callback\n * hands you a `$index` under virtualization — raw `$index` is window-relative.\n */\n getVirtualRowIndex(localIndex: number): number {\n return this.virtualRowRange().start + localIndex;\n }\n\n readonly activeSorts = computed(() => {\n if (this.enableMultiSort()) {\n return this.multiSortState().filter(\n (sort) => !!sort.column && !!sort.direction,\n );\n }\n\n const sort = this.sortState();\n if (!sort.column || !sort.direction) {\n return [];\n }\n return [sort];\n });\n\n private readonly _sortLookup = computed(() => {\n const map = new Map<\n string,\n { readonly direction: SortDirection; readonly index: number }\n >();\n const sorts = this.activeSorts();\n for (let i = 0; i < sorts.length; i++) {\n map.set(String(sorts[i].column), {\n direction: sorts[i].direction,\n index: i,\n });\n }\n return map;\n });\n\n /**\n * The active direction for a column, or `null` when unsorted. Reads the\n * multi-sort chain when {@link enableMultiSort} is on and {@link sortState}\n * otherwise, so it is the right accessor in both modes.\n */\n getSortDirection(columnKey: string | keyof T): SortDirection {\n return this._sortLookup().get(String(columnKey))?.direction ?? null;\n }\n\n /** ARIA `aria-sort` value for a header cell — `null` for non-sortable columns. */\n getAriaSort(\n col: ColumnDef<T>,\n ): \"ascending\" | \"descending\" | \"none\" | null {\n const key = String(col.accessorKey);\n const isSpecialColumn =\n key === \"_selection\" || key === \"_actions\" || key === \"_expander\";\n if (isSpecialColumn || col.enableSorting === false) {\n return null;\n }\n const direction = this.getSortDirection(col.accessorKey);\n if (direction === \"asc\") return \"ascending\";\n if (direction === \"desc\") return \"descending\";\n return \"none\";\n }\n\n private columnHeaderLabel(columnKey: string): string {\n const col = this.enhancedColumns().find(\n (c) => String(c.accessorKey) === columnKey,\n );\n return col?.header || columnKey;\n }\n\n /**\n * Announces a sort change. Called before the sort state mutates, so\n * `getSortDirection` still reflects the previous state — used to skip a\n * spurious \"removed\" announcement when the column was not sorted.\n */\n private announceSortChange(columnKey: string, direction: SortDirection): void {\n const label = this.columnHeaderLabel(columnKey);\n if (direction === \"asc\") {\n this.srAnnouncement.set(`Table sorted by ${label}, ascending`);\n } else if (direction === \"desc\") {\n this.srAnnouncement.set(`Table sorted by ${label}, descending`);\n } else if (this.getSortDirection(columnKey) !== null) {\n this.srAnnouncement.set(`Sorting removed from ${label}`);\n }\n }\n\n private announceFilterChange(value: string): void {\n clearTimeout(this.filterAnnounceTimer);\n this.filterAnnounceTimer = setTimeout(() => {\n if (!value.trim()) {\n this.srAnnouncement.set(\"Filter cleared, showing all rows\");\n return;\n }\n const count = this.filteredData().length;\n const noun = count === 1 ? \"result\" : \"results\";\n this.srAnnouncement.set(`${count} ${noun} found for \"${value}\"`);\n }, 500);\n }\n\n /**\n * Zero-based position of a column in the multi-sort chain, used to render the\n * priority badge. Always `null` when {@link enableMultiSort} is off, even if\n * the column is sorted.\n */\n getSortIndex(columnKey: string | keyof T): number | null {\n if (!this.enableMultiSort()) {\n return null;\n }\n return this._sortLookup().get(String(columnKey))?.index ?? null;\n }\n\n /**\n * Applies a sort and emits it — the programmatic equivalent of clicking a\n * header, and the entry point addons use. `multi` (shift-click) appends to\n * the chain instead of replacing it, but only while {@link enableMultiSort}\n * is on; the chain is then trimmed to the newest {@link maxMultiSortColumns}.\n *\n * Always emits {@link sortChange} (and {@link multiSortChange} in multi mode)\n * and, if you were past page 0, resets the page and emits {@link pageChange}.\n * With {@link localSorting} false the rows are left untouched.\n */\n onSortChange(\n columnKey: string | keyof T,\n direction: SortDirection,\n multi = false,\n ): void {\n this.loadingTrigger.set(\"sorting\");\n const key = String(columnKey);\n this.announceSortChange(key, direction);\n const currentPagination = this.paginationState();\n const shouldResetPage = currentPagination.pageIndex !== 0;\n\n if (this.enableMultiSort() && multi) {\n const existing = this.multiSortState().filter(\n (sort) => sort.column !== key,\n );\n const next = direction\n ? [...existing, { column: key, direction }]\n : existing;\n const maxColumns = Math.max(1, this.maxMultiSortColumns());\n const trimmed = next.slice(-maxColumns);\n const primary = trimmed[0] ?? {\n column: \"\",\n direction: null as SortDirection,\n };\n\n this.multiSortState.set(trimmed);\n this.sortState.set(primary);\n this.multiSortChange.emit(trimmed);\n this.sortChange.emit(primary);\n if (shouldResetPage) {\n const nextPage = { ...currentPagination, pageIndex: 0 };\n this.paginationState.set(nextPage);\n this.pageChange.emit(nextPage);\n }\n return;\n }\n\n const newState = { column: key, direction };\n this.sortState.set(newState);\n this.sortChange.emit(newState);\n\n if (this.enableMultiSort()) {\n const next = direction ? [newState] : [];\n this.multiSortState.set(next);\n this.multiSortChange.emit(next);\n }\n\n if (shouldResetPage) {\n const nextPage = { ...currentPagination, pageIndex: 0 };\n this.paginationState.set(nextPage);\n this.pageChange.emit(nextPage);\n }\n }\n\n private addSpecialColumns(visibleCols: ColumnDef<T>[]): ColumnDef<T>[] {\n let result = [...visibleCols];\n\n if (this.enableRowSelection()) {\n result = [{ accessorKey: '_selection', header: '', sticky: true, width: '40px' }, ...result];\n }\n\n if (this.enableRowExpansion()) {\n result = [{ accessorKey: '_expander', header: '', sticky: true, width: '40px', enableSorting: false }, ...result];\n }\n\n if (this.cellActionSlots().length > 0) {\n result = [...result, { accessorKey: '_actions', header: '', width: '50px', enableSorting: false, enableHiding: false, enableReordering: false }];\n }\n\n return result;\n }\n\n private assignTreeExpanderHost(cols: ColumnDef<T>[], allCols: ColumnDef<T>[]): void {\n if (!this.enableSubRows()) return;\n\n const hasUserTreeExpander = allCols.some(c => c.treeExpander);\n const targetIdx = hasUserTreeExpander\n ? cols.findIndex(c => c.treeExpander)\n : cols.findIndex(c => c.accessorKey !== '_selection' && c.accessorKey !== '_expander' && c.accessorKey !== '_actions');\n\n if (targetIdx !== -1) {\n cols[targetIdx] = { ...cols[targetIdx], _isTreeExpanderHost: true };\n }\n }\n\n private resolveColumnPinState(\n col: ColumnDef<T>,\n key: string,\n pinOverrides: Record<string, 'left' | 'right' | undefined>,\n ): { isPinnedLeft: boolean; isPinnedRight: boolean; isPinned: boolean; isStickyLeft: boolean; pin: string | undefined } {\n const resolvedPin = key in pinOverrides ? pinOverrides[key] : col.pin;\n const isSticky = col.sticky === true;\n const isPinnedLeft = resolvedPin === \"left\";\n const isPinnedRight = resolvedPin === \"right\";\n const isPinned = isPinnedLeft || isPinnedRight || isSticky;\n const isStickyLeft = isSticky || isPinnedLeft;\n let pin: string | undefined;\n if (isPinnedRight) pin = \"right\";\n else if (isStickyLeft) pin = \"left\";\n return { isPinnedLeft, isPinnedRight, isPinned, isStickyLeft, pin };\n }\n\n private buildEnhancedColumn(\n col: ColumnDef<T>,\n index: number,\n widths: Record<string, string>,\n pinOverrides: Record<string, 'left' | 'right' | undefined>,\n rightOffsets: Map<number, number>,\n currentLeft: number,\n ): { column: ColumnDef<T> & { _stickyLeft?: number; _stickyRight?: number; _pin?: string; _width: string; _minWidth: string }; nextLeft: number } {\n const DEFAULT_PINNED_WIDTH = 150;\n const key = String(col.accessorKey);\n const { isPinnedRight, isPinned, isStickyLeft, pin } = this.resolveColumnPinState(col, key, pinOverrides);\n const widthStr = widths[key] ?? col.width ?? (isPinned ? `${DEFAULT_PINNED_WIDTH}px` : \"auto\");\n \n const widthVal = Number.parseInt(widthStr, 10) || DEFAULT_PINNED_WIDTH;\n\n const column = {\n ...col,\n _stickyLeft: isStickyLeft ? currentLeft : undefined,\n _stickyRight: isPinnedRight ? (rightOffsets.get(index) ?? 0) : undefined,\n _pin: pin,\n _width: widthStr,\n _minWidth: col.minWidth ?? \"50px\",\n };\n\n return { column, nextLeft: isStickyLeft ? currentLeft + widthVal : currentLeft };\n }\n\n private computeRightOffsets(cols: ColumnDef<T>[], widths: Record<string, string>): Map<number, number> {\n const DEFAULT_PINNED_WIDTH = 150;\n let currentRight = 0;\n const rightOffsets = new Map<number, number>();\n for (let i = cols.length - 1; i >= 0; i -= 1) {\n const col = cols[i];\n const key = String(col.accessorKey);\n const widthStr = widths[key] ?? col.width;\n const widthVal = Number.parseInt(widthStr, 10) || DEFAULT_PINNED_WIDTH;\n if (col.pin === \"right\") {\n rightOffsets.set(i, currentRight);\n currentRight += widthVal;\n }\n }\n return rightOffsets;\n }\n\n readonly enhancedColumns = computed(() => {\n const cols = this.columns();\n const widths = this.columnWidths();\n const visibleCols = this.applyColumnOrder(\n cols.filter((col) => this.isColumnVisible(col.accessorKey)),\n );\n const computedCols = this.addSpecialColumns(visibleCols);\n this.assignTreeExpanderHost(computedCols, cols);\n\n let currentLeft = 0;\n const rightOffsets = this.computeRightOffsets(computedCols, widths);\n\n const pinOverrides = this.columnPinOverrides();\n const result: ReturnType<typeof this.buildEnhancedColumn>['column'][] = [];\n for (const [index, col] of computedCols.entries()) {\n const { column, nextLeft } = this.buildEnhancedColumn(col, index, widths, pinOverrides, rightOffsets, currentLeft);\n currentLeft = nextLeft;\n result.push(column);\n }\n return result;\n });\n\n readonly treeExpanderColumn = computed(() => {\n if (!this.enableSubRows()) return null;\n return this.enhancedColumns().find((c) => c._isTreeExpanderHost) ?? null;\n });\n\n readonly hasColumnFilters = computed(() => {\n return this.enhancedColumns().some((col) => col.enableFiltering);\n });\n\n readonly hasFlexibleColumns = computed(() => {\n return this.enhancedColumns().some((col) => col._width === \"auto\");\n });\n\n readonly hideableColumns = computed(() =>\n this.columns().filter(\n (col) => col.accessorKey !== \"_selection\" && col.enableHiding !== false,\n ),\n );\n\n readonly hasAnyFloatingFilter = computed(() => {\n return this.enhancedColumns().some(\n (col) =>\n col.floatingFilter === true ||\n col.floatingFilterComponent ||\n col.floatingFilterTemplate ||\n (col.enableFiltering && col.floatingFilter !== false),\n );\n });\n\n /**\n * Whether the floating-filter row actually renders a control for this column.\n * A cell that renders nothing is not a column header — announcing it as an\n * empty one is noise for screen-reader users (axe `empty-table-header`).\n */\n hasFloatingFilter(col: ColumnDef<T>): boolean {\n if (col.floatingFilter === false) return false;\n if (\n col.accessorKey === '_selection' ||\n col.accessorKey === '_expander' ||\n col.accessorKey === '_actions'\n ) {\n return false;\n }\n if (col.floatingFilterComponent) return true;\n if (col.floatingFilterTemplate) return true;\n return !!col.enableFiltering;\n }\n\n /**\n * Builds the change callback handed to a column's floating-filter\n * template/component. Calling it is equivalent to\n * {@link onColumnFilterChange} for that column — a new function identity per\n * call, so bind it in the template rather than comparing references.\n */\n getFloatingFilterChange(col: ColumnDef<T>): (value: unknown) => void {\n return (value: unknown) =>\n this.onColumnFilterChange(col.accessorKey, value);\n }\n\n /** Whether {@link fullWidthRow} claims this row; false when no predicate is set. */\n isFullWidthRow(row: T): boolean {\n const fn = this.fullWidthRow();\n return fn ? fn(row) : false;\n }\n\n readonly normalizedCellRange = computed(() => {\n const range = this.cellRange();\n if (!range) return null;\n const colKeys = this.navigableColumnKeys();\n const startColIdx = colKeys.indexOf(range.startCol);\n const endColIdx = colKeys.indexOf(range.endCol);\n return {\n minRow: Math.min(range.startRow, range.endRow),\n maxRow: Math.max(range.startRow, range.endRow),\n minCol: Math.min(startColIdx, endColIdx),\n maxCol: Math.max(startColIdx, endColIdx),\n };\n });\n\n /**\n * Whether a cell falls inside the selected rectangle (drives its highlight).\n * `rowIndex` is the index in the rendered rows, and columns are compared by\n * position among the navigable (non-`_selection`/`_expander`/`_actions`)\n * columns, so a hidden or reordered column changes the answer.\n */\n isCellInRange(rowIndex: number, columnKey: string): boolean {\n const range = this.normalizedCellRange();\n if (!range) return false;\n const colKeys = this.navigableColumnKeys();\n const colIdx = colKeys.indexOf(columnKey);\n return (\n rowIndex >= range.minRow &&\n rowIndex <= range.maxRow &&\n colIdx >= range.minCol &&\n colIdx <= range.maxCol\n );\n }\n\n /** Selected range reshaped per column: header + cell values, or null when no range. */\n private readonly rangeColumns = computed(() => {\n const range = this.normalizedCellRange();\n if (!range) return null;\n const keys = this.navigableColumnKeys().slice(range.minCol, range.maxCol + 1);\n const data = this.processedData();\n const columns = this.enhancedColumns();\n const result = keys.map((key) => {\n const col = columns.find((c) => String(c.accessorKey) === key);\n return { key, header: col?.header ?? key, col, values: [] as unknown[] };\n });\n for (let r = range.minRow; r <= range.maxRow; r++) {\n const row = data[r];\n if (!row) continue;\n for (const entry of result) {\n if (entry.col) {\n entry.values.push(this.getCellValue(row, entry.col.accessorKey, entry.col));\n }\n }\n }\n return result;\n });\n\n /** Live Sum / Avg / Count / Min / Max of the selected range; null unless a multi-cell range is active. */\n readonly rangeSelectionStats = computed<RangeAggregateStats | null>(() => {\n if (!this.enableRangeActions()) return null;\n const cols = this.rangeColumns();\n if (!cols) return null;\n const values = cols.flatMap((c) => c.values);\n if (values.length < 2) return null;\n const numericCount = values.map(Number).filter(Number.isFinite).length;\n return {\n count: values.length,\n numericCount,\n sum: computeAggregateValue(values, \"sum\"),\n avg: computeAggregateValue(values, \"avg\"),\n min: computeAggregateValue(values, \"min\"),\n max: computeAggregateValue(values, \"max\"),\n };\n });\n\n /** The selected range as chart data: first column → categories, numeric columns → series. */\n readonly rangeChartPayload = computed<RangeChartPayload | null>(() => {\n const cols = this.rangeColumns();\n if (!cols || cols.length === 0) return null;\n const rowCount = cols[0].values.length;\n if (rowCount === 0) return null;\n const numericCols = cols.filter((c) =>\n c.values.some((v) => Number.isFinite(Number(v))),\n );\n if (numericCols.length === 0) return null;\n const labelCol = cols.find((c) => !numericCols.includes(c));\n const categories = this._rangeCategories(labelCol?.values, rowCount);\n const series = numericCols.map((c) => ({\n name: c.header,\n values: c.values.map((v) => (Number.isFinite(Number(v)) ? Number(v) : 0)),\n }));\n return { categories, series };\n });\n\n private _rangeCategories(labelValues: unknown[] | undefined, rowCount: number): string[] {\n if (labelValues) {\n return labelValues.map((v) => stringifyValue(v));\n }\n return Array.from({ length: rowCount }, (_, i) => `Row ${i + 1}`);\n }\n\n /** Emit the chart payload for the selected range. No-op when it has no numeric data. */\n openRangeChart(): void {\n const payload = this.rangeChartPayload();\n if (!payload) return;\n this.rangeChartOpen.emit(payload);\n }\n\n /** The current fill source: the selected range, or the focused cell as a 1×1 range. */\n private fillSourceRange(): { minRow: number; maxRow: number; minCol: number; maxCol: number } | null {\n const range = this.normalizedCellRange();\n if (range) return range;\n const focused = this.focusedCell();\n if (!focused) return null;\n const colIdx = this.navigableColumnKeys().indexOf(focused.columnKey);\n if (colIdx < 0) return null;\n return { minRow: focused.rowIndex, maxRow: focused.rowIndex, minCol: colIdx, maxCol: colIdx };\n }\n\n private fillColumn(key: string, source: { minRow: number; maxRow: number }, fillCount: number): boolean {\n const col = this.enhancedColumns().find((c) => String(c.accessorKey) === key);\n if (!col?.valueSetter) return false;\n const data = this.processedData();\n const sourceValues: unknown[] = [];\n for (let r = source.minRow; r <= source.maxRow; r++) {\n const row = data[r];\n if (row) sourceValues.push(this.getCellValue(row, col.accessorKey, col));\n }\n const fillValues = buildFillValues(sourceValues, fillCount);\n let applied = false;\n for (let i = 0; i < fillCount; i++) {\n const rowIndex = source.maxRow + 1 + i;\n const targetRow = this.processedData()[rowIndex];\n if (!targetRow) continue;\n const value = fillValues[i];\n if (this.validateEdit(col, targetRow, value, { rowIndex, columnKey: key })) {\n this.applyValueSetter(col, targetRow, value);\n applied = true;\n }\n }\n return applied;\n }\n\n /**\n * Excel-style fill: extend the source range/cell down to `targetEndRow`,\n * filling each column's pattern into the new rows. No-op when the target is\n * not below the source.\n */\n fillDownTo(targetEndRow: number): void {\n const source = this.fillSourceRange();\n if (!source || targetEndRow <= source.maxRow) return;\n const keys = this.navigableColumnKeys().slice(source.minCol, source.maxCol + 1);\n const fillCount = targetEndRow - source.maxRow;\n let filledKeys: string[] = [];\n this.runAsCommand(() => {\n filledKeys = keys.filter((key) => this.fillColumn(key, source, fillCount));\n });\n if (filledKeys.length === 0) return;\n this.cellRange.set({\n startRow: source.minRow,\n startCol: keys[0],\n endRow: targetEndRow,\n endCol: keys.at(-1) ?? keys[0],\n });\n this.fillSeries.emit({\n source: { minRow: source.minRow, maxRow: source.maxRow },\n filled: { startRow: source.maxRow + 1, endRow: targetEndRow },\n columnKeys: filledKeys,\n });\n }\n\n private coercePasteValue(raw: string, row: T, col: ColumnDef<T>): unknown {\n const current = this.getCellValue(row, col.accessorKey, col);\n if (typeof current === \"number\") {\n const num = Number(raw);\n return Number.isFinite(num) ? num : raw;\n }\n if (typeof current === \"boolean\") {\n return raw.toLowerCase() === \"true\";\n }\n return raw;\n }\n\n private pasteCell(rowIndex: number, key: string, raw: string): \"applied\" | \"rejected\" | \"skipped\" {\n const col = this.enhancedColumns().find((c) => String(c.accessorKey) === key);\n const targetRow = this.processedData()[rowIndex];\n if (!col?.valueSetter || !targetRow) return \"skipped\";\n const value = this.coercePasteValue(raw, targetRow, col);\n if (!this.validateEdit(col, targetRow, value, { rowIndex, columnKey: key })) {\n return \"rejected\";\n }\n this.applyValueSetter(col, targetRow, value);\n return \"applied\";\n }\n\n private pasteGridAt(startRow: number, startColumn: string, grid: string[][]): void {\n const keys = this.navigableColumnKeys();\n const startCol = keys.indexOf(startColumn);\n if (startCol < 0) return;\n let cellsApplied = 0;\n let cellsRejected = 0;\n this.runAsCommand(() => {\n grid.forEach((cells, r) => {\n cells.forEach((raw, c) => {\n if (startCol + c >= keys.length) return;\n const key = keys[startCol + c];\n const result = this.pasteCell(startRow + r, key, raw);\n if (result === \"applied\") cellsApplied++;\n else if (result === \"rejected\") cellsRejected++;\n });\n });\n });\n this.cellsPaste.emit({\n startRow,\n startColumn,\n rowsAffected: grid.length,\n cellsApplied,\n cellsRejected,\n });\n }\n\n private async pasteFromClipboard(startRow: number, startColumn: string): Promise<void> {\n const text = await navigator.clipboard.readText();\n const grid = parseClipboardGrid(text);\n if (grid.length > 0) this.pasteGridAt(startRow, startColumn, grid);\n }\n\n /** Which cell shows the fill handle: bottom-right of the range, or the focused cell. Null while editing. */\n private readonly fillHandleCell = computed<{ rowIndex: number; columnKey: string } | null>(() => {\n if (!this.enableFillHandle() || this.editingCell() !== null) return null;\n const range = this.normalizedCellRange();\n if (range) {\n const keys = this.navigableColumnKeys();\n return { rowIndex: range.maxRow, columnKey: keys[range.maxCol] };\n }\n return this.focusedCell();\n });\n\n /** Pixel position of the fill handle within the scroll container's content, or null when hidden. */\n readonly fillHandlePosition = signal<{ top: number; left: number } | null>(null);\n\n private computeFillHandlePosition(): { top: number; left: number } | null {\n const cell = this.fillHandleCell();\n if (!cell) return null;\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return null;\n const rowEl = container.querySelector(`[data-row-index=\"${cell.rowIndex}\"]`);\n if (!rowEl) return null;\n const cellEl = Array.from(\n rowEl.querySelectorAll<HTMLElement>(\"[data-column]\"),\n ).find((el) => el.dataset[\"column\"] === cell.columnKey);\n if (!cellEl) return null;\n const containerRect = container.getBoundingClientRect();\n const rect = cellEl.getBoundingClientRect();\n const x = this.isRtl() ? rect.left : rect.right;\n return {\n top: rect.bottom - containerRect.top + container.scrollTop,\n left: x - containerRect.left + container.scrollLeft,\n };\n }\n\n // Re-position the single fill-handle overlay after each relevant render. Works\n // across the flat, virtual and tree paths since all expose data-row-index /\n // data-column; the virtual-visible signals are read so it tracks scroll.\n /**\n * Stamp the grid's position semantics onto the rendered rows and cells.\n *\n * `aria-rowcount` / `aria-rowindex` exist for exactly this component's\n * situation: the DOM holds a window of ~30 rows out of a dataset of any size,\n * so assistive tech that counts DOM rows announces \"row 3 of 30\" and the user\n * has no idea where they are. The count must therefore be the dataset's and\n * the index must be absolute.\n *\n * Done here rather than as template bindings because this template renders\n * rows from six different branches — virtual and non-virtual, flat, tree and\n * grouped — plus detail rows, full-width rows and group headers that occupy\n * real row positions without appearing in any row array. Numbering from the\n * DOM is the only way to stay consistent with what was actually rendered; a\n * per-branch binding would number the branches it knew about and silently\n * skip the rest.\n */\n private stampGridSemantics(): void {\n const grid: Element | null = this._el.nativeElement.querySelector('[data-slot=\"table\"]');\n if (!grid) return;\n\n /*\n * Spacer rows and filler header cells exist only to make the flex layout\n * fill its container. They are hidden from assistive tech, and counting\n * them would put every index and both totals out by one.\n */\n const isDecorative = (el: Element): boolean =>\n el.getAttribute('aria-hidden') === 'true' || el.getAttribute('role') === 'presentation';\n\n const rows = Array.from(grid.querySelectorAll('[data-slot=\"table-row\"]')).filter(\n row => !isDecorative(row),\n );\n const isHeaderRow = (row: Element): boolean =>\n row.closest('[data-slot=\"table-header\"]') !== null;\n const headerRows = rows.filter(isHeaderRow).length;\n\n /*\n * Under virtualization the first rendered row is not row one; the scroller\n * says which absolute row it is. Everywhere else the DOM already holds the\n * whole set the grid represents.\n */\n const offset = this.isVirtualScrollActive() ? this.virtualRowRange().start : 0;\n\n /*\n * Column indices come from DOM order, which is the true visual order —\n * pinned-left, then centre, then pinned-right. That is only *absolute*\n * when every column is present, so when the middle columns are windowed\n * the index is left off rather than published wrong. A missing\n * `aria-colindex` is a gap; a wrong one sends the user to the wrong column.\n */\n const columnsWindowed =\n this.virtualVisibleMiddleColumns().length < this.scrollableColumns().length;\n\n let dataRow = 0;\n for (const [position, row] of rows.entries()) {\n const index = isHeaderRow(row)\n ? position + 1\n : headerRows + offset + ++dataRow;\n row.setAttribute('aria-rowindex', String(index));\n\n if (columnsWindowed) continue;\n const cells = Array.from(row.children).filter(cell => !isDecorative(cell));\n for (const [column, cell] of cells.entries()) {\n cell.setAttribute('aria-colindex', String(column + 1));\n }\n }\n\n const dataRows = this.isVirtualScrollActive()\n ? this.virtualTotalRows()\n : rows.length - headerRows;\n grid.setAttribute('aria-rowcount', String(headerRows + dataRows));\n grid.setAttribute('aria-colcount', String(this.enhancedColumns().length));\n }\n\n private readonly _gridSemanticsEffect = afterRenderEffect(() => {\n // Re-stamp whenever the rendered window, the data or the columns move.\n this.virtualRowRange();\n this.processedData();\n this.enhancedColumns();\n this.virtualTotalRows();\n this.stampGridSemantics();\n });\n\n private readonly _fillHandlePositionEffect = afterRenderEffect(() => {\n this.fillHandleCell();\n this.data();\n this.virtualVisibleRows();\n this.virtualVisibleTreeRows();\n this.fillHandlePosition.set(\n this.enableFillHandle() ? this.computeFillHandlePosition() : null,\n );\n });\n\n private _fillSource: { minRow: number; maxRow: number; minCol: number; maxCol: number } | null = null;\n private readonly _fillPreviewEndRow = signal<number | null>(null);\n\n /**\n * Whether a cell is in the dashed preview band below the source range during\n * a fill-handle drag. Only rows *after* the source are ever previewed —\n * dragging upwards previews nothing.\n */\n isCellInFillPreview(rowIndex: number, columnKey: string): boolean {\n const source = this._fillSource;\n const end = this._fillPreviewEndRow();\n if (!source || end === null) return false;\n const colIdx = this.navigableColumnKeys().indexOf(columnKey);\n return (\n rowIndex > source.maxRow &&\n rowIndex <= end &&\n colIdx >= source.minCol &&\n colIdx <= source.maxCol\n );\n }\n\n /**\n * Begins a fill-handle drag (mouse or touch) from the current range or focused\n * cell, attaching document-level move/end listeners that track the pointer by\n * hit-testing rows. The values are written on release, through each column's\n * `valueSetter` only — columns without one are skipped. See\n * {@link enableFillHandle} and {@link fillSeries}.\n */\n onFillHandleStart(event: Event): void {\n this._fillSource = this.fillSourceRange();\n if (!this._fillSource) return;\n event.preventDefault();\n event.stopPropagation();\n this._fillPreviewEndRow.set(this._fillSource.maxRow);\n this._document.addEventListener(\"mousemove\", this._onFillMove);\n this._document.addEventListener(\"mouseup\", this._onFillEnd);\n this._document.addEventListener(\"touchmove\", this._onFillMove, { passive: false });\n this._document.addEventListener(\"touchend\", this._onFillEnd);\n }\n\n private readonly _onFillMove = (event: MouseEvent | TouchEvent): void => {\n const point = \"touches\" in event ? event.touches[0] : event;\n if (!point) return;\n if (\"touches\" in event) event.preventDefault();\n const target = this._document.elementFromPoint(point.clientX, point.clientY);\n const rowEl = target?.closest<HTMLElement>(\"[data-row-index]\");\n const raw = rowEl?.dataset[\"rowIndex\"];\n if (raw === undefined) return;\n const idx = Number(raw);\n if (Number.isFinite(idx)) this._fillPreviewEndRow.set(idx);\n };\n\n private readonly _onFillEnd = (): void => {\n this._document.removeEventListener(\"mousemove\", this._onFillMove);\n this._document.removeEventListener(\"mouseup\", this._onFillEnd);\n this._document.removeEventListener(\"touchmove\", this._onFillMove);\n this._document.removeEventListener(\"touchend\", this._onFillEnd);\n const end = this._fillPreviewEndRow();\n this._fillPreviewEndRow.set(null);\n this._fillSource = null;\n if (end !== null) this.fillDownTo(end);\n };\n\n /** Localized labels for the range readout (English fallback). */\n readonly rangeLabels = computed(() => {\n const l = this.t();\n return {\n count: l.rangeCount ?? \"Count\",\n sum: l.rangeSum ?? \"Sum\",\n avg: l.rangeAvg ?? \"Avg\",\n min: l.rangeMin ?? \"Min\",\n max: l.rangeMax ?? \"Max\",\n chart: l.rangeChart ?? \"Chart\",\n };\n });\n\n readonly hasFooter = computed(() => {\n const mode = this.showFooter();\n if (mode === false) return false;\n if (mode === true) return true;\n return this.enhancedColumns().some(\n (col) =>\n col.footer ||\n col.aggregateFn ||\n col.footerTemplate ||\n col.footerComponent,\n );\n });\n\n readonly footerValues = computed(() => {\n if (!this.hasFooter()) return new Map<string, string>();\n const rows = this.filteredData();\n const map = new Map<string, string>();\n\n for (const col of this.enhancedColumns()) {\n const key = String(col.accessorKey);\n if (col.footer) {\n map.set(\n key,\n typeof col.footer === \"function\" ? col.footer(rows) : col.footer,\n );\n } else if (col.aggregateFn) {\n map.set(key, this.computeAggregate(rows, col));\n }\n }\n return map;\n });\n\n private readonly _baseCellClass = computed(() => ({\n normal: cn(\n \"whitespace-nowrap overflow-hidden text-ellipsis\",\n \"bg-background\",\n this.showRowBorders() && \"border-b\",\n this.showColumnBorders() && \"border-r\",\n ),\n tree: cn(\n \"whitespace-nowrap overflow-hidden text-ellipsis\",\n this.showRowBorders() && \"border-b\",\n this.showColumnBorders() && \"border-r\",\n ),\n }));\n\n private readonly _headerClassMap = computed(() => {\n const showColBorders = this.showColumnBorders();\n const enableResize = this.enableColumnResize();\n const map = new Map<string, string>();\n for (const col of this.enhancedColumns()) {\n map.set(\n String(col.accessorKey),\n cn(\n \"sticky top-0 bg-background shadow-sm whitespace-nowrap overflow-hidden text-ellipsis\",\n col.sticky ? \"z-30\" : \"z-20\",\n showColBorders && \"border-r\",\n enableResize && \"relative\",\n ),\n );\n }\n return map;\n });\n\n private readonly _fillerHeaderClass = computed(() =>\n cn(\n \"sticky top-0 bg-background shadow-sm whitespace-nowrap overflow-hidden text-ellipsis\",\n \"z-20\",\n this.showColumnBorders() && \"border-r\",\n ),\n );\n\n /**\n * Classes for a header cell (stickiness, pin shadow, borders), served from a\n * precomputed per-column map. A column not in the resolved set — the trailing\n * filler head — falls back to a generic sticky header class.\n */\n getHeaderClass(col: CellStyleColumn): string {\n return (\n this._headerClassMap().get(String(col.accessorKey)) ??\n this._fillerHeaderClass()\n );\n }\n\n /**\n * Classes for a body cell. Pass `rowIndex` (in rendered order) to get the\n * focus ring / range tint / fill-preview outline — omit it and you get only\n * the static base. Passing `treeDepth` selects the tree variant of that base;\n * the depth indent itself comes from {@link getTreeCellStyle}.\n */\n getCellClass(col: CellStyleColumn, rowIndex?: number, treeDepth?: number): string {\n const base =\n treeDepth === undefined\n ? this._baseCellClass().normal\n : this._baseCellClass().tree;\n const key = String(col.accessorKey);\n const focused = this.focusedCell();\n if (\n rowIndex !== undefined &&\n focused !== null &&\n focused.rowIndex === rowIndex &&\n focused.columnKey === key\n ) {\n // Active/anchor cell: stays prominent even inside a tinted range.\n return base + \" bg-background ring-2 ring-primary ring-inset relative z-10\";\n }\n if (rowIndex !== undefined && this.isCellInRange(rowIndex, key)) {\n return base + \" bg-primary/15\";\n }\n if (rowIndex !== undefined && this.isCellInFillPreview(rowIndex, key)) {\n return base + \" bg-primary/5 ring-1 ring-dashed ring-primary/40 ring-inset\";\n }\n return base;\n }\n\n private readonly _cellStyleMap = computed(() => {\n const map = new Map<string, Record<string, string>>();\n for (const col of this.enhancedColumns()) {\n map.set(String(col.accessorKey), this._buildCellStyle(col, false));\n }\n return map;\n });\n\n private readonly _headerCellStyleMap = computed(() => {\n const map = new Map<string, Record<string, string>>();\n for (const col of this.enhancedColumns()) {\n map.set(String(col.accessorKey), this._buildCellStyle(col, true));\n }\n return map;\n });\n\n private readonly _treeCellStyleCache = computed(() => {\n const maxDepth = 10;\n const map = new Map<string, Record<string, string>>();\n for (const col of this.enhancedColumns()) {\n const base = this._buildCellStyle(col, false);\n for (let d = 0; d <= maxDepth; d++) {\n const bg =\n d > 0\n ? `color-mix(in srgb, var(--border) ${Math.min(d * 20, 80)}%, var(--background))`\n : \"var(--background)\";\n map.set(`${String(col.accessorKey)}_${d}`, {\n ...base,\n \"background-color\": bg,\n });\n }\n }\n return map;\n });\n\n private _applyPinStyle(style: Record<string, string>, col: CellStyleColumn, isHeader: boolean): void {\n if (col._pin === \"right\") {\n style[\"position\"] = \"sticky\";\n style[\"right\"] = `${col._stickyRight}px`;\n style[\"z-index\"] = isHeader ? \"30\" : \"10\";\n } else if (col.sticky || col._pin === \"left\") {\n style[\"position\"] = \"sticky\";\n style[\"left\"] = `${col._stickyLeft}px`;\n style[\"z-index\"] = isHeader ? \"30\" : \"10\";\n }\n if (isHeader) {\n style[\"position\"] = \"sticky\";\n style[\"top\"] = \"0\";\n style[\"z-index\"] = col.sticky ? \"30\" : \"20\";\n }\n }\n\n private _buildCellStyle(col: CellStyleColumn, isHeader: boolean): Record<string, string> {\n const width = col._width;\n const isAuto = width === \"auto\";\n const isSpecial = col.accessorKey === \"_selection\" || col.accessorKey === \"_expander\" || col.accessorKey === \"_actions\";\n const minColWidth = isSpecial ? \"0px\" : \"80px\";\n\n const style: Record<string, string> = {\n width: isAuto ? \"0px\" : width,\n \"min-width\": isAuto ? minColWidth : width,\n \"max-width\": isAuto ? \"none\" : width,\n \"flex-shrink\": isAuto ? \"1\" : \"0\",\n \"flex-grow\": isAuto ? \"1\" : \"0\",\n \"flex-basis\": isAuto ? \"0px\" : \"auto\",\n };\n\n this._applyPinStyle(style, col, isHeader);\n\n return style;\n }\n\n /**\n * Inline style object for a header cell — width/flex plus the `left`/`right`\n * offset that stacks pinned columns. Cached per column; an unknown column is\n * computed on the fly.\n */\n getHeaderCellStyle(col: CellStyleColumn): Record<string, string> {\n return (\n this._headerCellStyleMap().get(String(col.accessorKey)) ??\n this._buildCellStyle(col, true)\n );\n }\n\n /**\n * Inline style object for a body cell — the {@link getHeaderCellStyle}\n * counterpart, reflecting the live {@link columnWidths} entry when the column\n * has been resized.\n */\n getCellStyle(col: CellStyleColumn): Record<string, string> {\n return (\n this._cellStyleMap().get(String(col.accessorKey)) ??\n this._buildCellStyle(col, false)\n );\n }\n\n /**\n * {@link getCellStyle} plus the depth-shaded background used in tree mode.\n * Shading saturates at depth 10 (the cache bound) and at 80% blend, so deeper\n * levels are visually identical.\n */\n getTreeCellStyle(col: CellStyleColumn, depth: number): Record<string, string> {\n const clampedDepth = Math.min(depth, 10);\n return (\n this._treeCellStyleCache().get(\n `${String(col.accessorKey)}_${clampedDepth}`,\n ) ?? this._buildTreeCellStyleFallback(col, depth)\n );\n }\n\n private _buildTreeCellStyleFallback(\n col: CellStyleColumn,\n depth: number,\n ): Record<string, string> {\n const base = this._buildCellStyle(col, false);\n const bg =\n depth > 0\n ? `color-mix(in srgb, var(--border) ${Math.min(depth * 20, 80)}%, var(--background))`\n : \"var(--background)\";\n return { ...base, \"background-color\": bg };\n }\n\n private readonly disabledRowIdSet = computed(() => {\n const ids = this.disabledRowIds();\n if (ids instanceof Set) return ids;\n return new Set(ids);\n });\n\n /**\n * Whether a row is non-interactive — true if either {@link isRowDisabled}\n * says so or its id is in {@link disabledRowIds}. Blocks selection, drag and\n * inline editing, and greys the row.\n */\n isDisabled(row: T): boolean {\n const fn = this.isRowDisabled();\n if (fn?.(row)) return true;\n const id = this.getRowId()(row);\n return this.disabledRowIdSet().has(id);\n }\n\n /** Whether the row's {@link getRowId} is flagged in {@link rowSelection}. */\n isRowSelected(row: T): boolean {\n const id = this.getRowId()(row);\n return !!this.rowSelection()[id];\n }\n\n /**\n * Flips one row's selection, writing a new {@link rowSelection} object\n * (deselecting deletes the key rather than storing `false`). A disabled row is\n * ignored. Does not cascade to children — see {@link toggleRowWithCascade}.\n */\n toggleRow(row: T): void {\n if (this.isDisabled(row)) return;\n const id = this.getRowId()(row);\n const current = this.rowSelection();\n const isSelected = !!current[id];\n\n const newSelection = { ...current };\n if (isSelected) {\n delete newSelection[id];\n } else {\n newSelection[id] = true;\n }\n this.rowSelection.set(newSelection);\n }\n\n /** Whether the row's master/detail panel is open ({@link enableRowExpansion}, not tree mode). */\n isRowExpanded(row: T): boolean {\n const id = this.getRowId()(row);\n return !!this.expandedRows()[id];\n }\n\n /**\n * Opens or closes a row's detail panel and stops propagation of the given\n * event so the chevron click does not also select or focus the row. Unlike\n * selection, this ignores {@link isDisabled}.\n */\n toggleRowExpanded(row: T, event?: Event): void {\n event?.stopPropagation();\n const id = this.getRowId()(row);\n const current = this.expandedRows();\n const next = { ...current };\n if (next[id]) {\n delete next[id];\n } else {\n next[id] = true;\n }\n this.expandedRows.set(next);\n }\n\n readonly isAllExpanded = computed(() => {\n const ids = this.filteredRowIds();\n if (ids.length === 0) return false;\n const expanded = this.expandedRows();\n return ids.every((id) => !!expanded[id]);\n });\n\n readonly isExpansionIndeterminate = computed(() => {\n const ids = this.filteredRowIds();\n const expanded = this.expandedRows();\n const count = ids.filter((id) => !!expanded[id]).length;\n return count > 0 && count < ids.length;\n });\n\n /**\n * Expands every currently *filtered* row's detail panel, or collapses them all\n * when they are already open. Rows hidden by the active filter are left as\n * they are, so the header checkbox reflects only the filtered set.\n */\n toggleAllExpanded(): void {\n const ids = this.filteredRowIds();\n if (this.isAllExpanded()) {\n const next = { ...this.expandedRows() };\n ids.forEach((id) => delete next[id]);\n this.expandedRows.set(next);\n } else {\n const next = { ...this.expandedRows() };\n ids.forEach((id) => (next[id] = true));\n this.expandedRows.set(next);\n }\n }\n\n /**\n * Resolves the inputs for a row's {@link rowDetailComponent} via\n * {@link rowDetailComponentInputs}, or `{}` when no resolver is set (the\n * template then binds just the row).\n */\n getRowDetailComponentInputs(row: T): Record<string, unknown> {\n const resolver = this.rowDetailComponentInputs();\n return resolver ? resolver(row) : {};\n }\n\n private readonly selectableRowIds = computed(() => {\n const ids = this.filteredRowIds();\n const disabledSet = this.disabledRowIdSet();\n const fn = this.isRowDisabled();\n if (disabledSet.size === 0 && !fn) return ids;\n\n const getId = this.getRowId();\n const allRows = this.enableSubRows()\n ? this.visibleTreeRows().map((tr) => tr.row)\n : this.filteredData();\n const rowById = new Map(allRows.map((row) => [getId(row), row]));\n\n return ids.filter((id) => {\n if (disabledSet.has(id)) return false;\n if (fn) {\n const row = rowById.get(id);\n if (row && fn(row)) return false;\n }\n return true;\n });\n });\n\n /**\n * The header checkbox action: selects every selectable row in the *filtered*\n * set, or clears just those when all are already selected. Disabled rows and\n * rows hidden by the filter are never touched, so selections made under a\n * previous filter survive.\n */\n toggleAll(): void {\n const selected = this.rowSelection();\n const selectableIds = this.selectableRowIds();\n\n if (this.isAllSelected()) {\n const remainingSelection = { ...selected };\n selectableIds.forEach((id) => {\n delete remainingSelection[id];\n });\n this.rowSelection.set(remainingSelection);\n } else {\n const nextSelection = { ...selected };\n selectableIds.forEach((id) => {\n nextSelection[id] = true;\n });\n this.rowSelection.set(nextSelection);\n }\n }\n\n readonly isAllSelected = computed(() => {\n const selectableIds = this.selectableRowIds();\n if (selectableIds.length === 0) return false;\n const selected = this.rowSelection();\n return selectableIds.every((id) => !!selected[id]);\n });\n\n readonly isIndeterminate = computed(() => {\n const selectableIds = this.selectableRowIds();\n const selected = this.rowSelection();\n const count = selectableIds.filter((id) => !!selected[id]).length;\n const visibleCount = selectableIds.length;\n return count > 0 && count < visibleCount;\n });\n\n /**\n * Adds rows to the selection by {@link getRowId}, leaving existing entries\n * alone. Bypasses {@link isDisabled} — unlike {@link toggleRow}, this selects\n * disabled rows too.\n */\n selectRows(rows: T[]): void {\n const getId = this.getRowId();\n const next = { ...this.rowSelection() };\n rows.forEach((row) => (next[getId(row)] = true));\n this.rowSelection.set(next);\n }\n\n /** Removes the given rows' ids from the selection; ids not present are ignored. */\n unselectRows(rows: T[]): void {\n const getId = this.getRowId();\n const next = { ...this.rowSelection() };\n rows.forEach((row) => delete next[getId(row)]);\n this.rowSelection.set(next);\n }\n\n /**\n * Empties {@link rowSelection} outright — including ids of rows currently\n * filtered out, which {@link toggleAll} would have preserved.\n */\n clearSelection(): void {\n this.rowSelection.set({});\n }\n\n /**\n * Selects every selectable row in the filtered set without toggling: calling\n * it twice leaves the selection selected. Disabled rows are skipped.\n */\n selectAll(): void {\n const nextSelection = { ...this.rowSelection() };\n this.selectableRowIds().forEach((id) => {\n nextSelection[id] = true;\n });\n this.rowSelection.set(nextSelection);\n }\n\n /**\n * Applies a requested page state and emits {@link pageChange}. The index is\n * clamped to the last page — computed from the filtered row count locally, or\n * from {@link total} when {@link localPagination} is false — and a\n * non-positive page size is rejected in favour of the current one.\n */\n onPaginationChange(state: PaginationState): void {\n this.loadingTrigger.set(\"pagination\");\n const totalItems = this.localPagination()\n ? this.filteredData().length\n : this.total();\n const safePageSize =\n state.pageSize > 0 ? state.pageSize : this.paginationState().pageSize;\n const maxPageIndex = Math.max(0, Math.ceil(totalItems / safePageSize) - 1);\n const nextState = {\n pageIndex: Math.min(maxPageIndex, Math.max(0, state.pageIndex)),\n pageSize: safePageSize,\n };\n\n this.paginationState.set(nextState);\n this.pageChange.emit(nextState);\n }\n\n /**\n * The global-filter input handler: waits out {@link filterDebounce}, then sets\n * {@link globalFilter}, resets to page 0, emits {@link filterChange} and\n * announces the result count to screen readers.\n */\n onFilterChange(value: string): void {\n this.loadingTrigger.set(\"filtering\");\n const debounceMs = this.filterDebounce();\n\n if (debounceMs > 0) {\n clearTimeout(this.filterDebounceTimer);\n this.filterDebounceTimer = setTimeout(() => {\n this.applyGlobalFilter(value);\n }, debounceMs);\n } else {\n this.applyGlobalFilter(value);\n }\n }\n\n private applyGlobalFilter(value: string): void {\n this.globalFilter.set(value);\n this.paginationState.update((state) => ({ ...state, pageIndex: 0 }));\n this.filterChange.emit(value);\n this.announceFilterChange(value);\n }\n\n /**\n * Sets one column's filter value and returns to page 0. Not debounced, and it\n * emits no output — {@link filterChange} carries the global filter only, so\n * for server-side filtering read {@link columnFilters} instead.\n */\n onColumnFilterChange(columnKey: string | keyof T, value: unknown): void {\n this.loadingTrigger.set(\"filtering\");\n this.columnFilters.update((filters) => ({\n ...filters,\n [columnKey]: value,\n }));\n this.paginationState.update((state) => ({ ...state, pageIndex: 0 }));\n }\n\n /** Whether a column renders — true unless {@link columnVisibility} holds an explicit `false`. */\n isColumnVisible(columnKey: string | keyof T): boolean {\n return this.columnVisibility()[String(columnKey)] !== false;\n }\n\n /**\n * Shows or hides a column, writing into {@link columnVisibility}. Accepts any\n * key — an unknown one is simply stored and never consulted. Hidden columns\n * are still excluded from copy/export and from cell navigation.\n */\n setColumnVisibility(columnKey: string | keyof T, visible: boolean): void {\n this.columnVisibility.update((current) => ({\n ...current,\n [String(columnKey)]: visible,\n }));\n }\n\n /**\n * Moves a column to `targetIndex` in the current order and rewrites\n * {@link columnOrder} as a complete key list. The index is clamped to the\n * range, and an unknown key is a no-op. Works regardless of\n * {@link enableColumnReorder}, which only gates the drag UI.\n */\n moveColumn(columnKey: string | keyof T, targetIndex: number): void {\n const key = String(columnKey);\n const currentOrder = this.applyKeyOrder(\n this.columns().map((col) => String(col.accessorKey)),\n );\n const currentIndex = currentOrder.indexOf(key);\n if (currentIndex === -1) {\n return;\n }\n\n const boundedTarget = Math.max(\n 0,\n Math.min(targetIndex, currentOrder.length - 1),\n );\n const nextOrder = [...currentOrder];\n nextOrder.splice(currentIndex, 1);\n nextOrder.splice(boundedTarget, 0, key);\n this.columnOrder.set(nextOrder);\n }\n\n /**\n * Whether this header can start a drag: {@link enableColumnReorder} must be on\n * and the column must be reorderable (the built-in `_selection`/`_expander`/\n * `_actions` columns and `enableReorder: false` columns are not).\n */\n isColumnDraggable(col: ColumnDef<T>): boolean {\n return this.enableColumnReorder() && this.isColumnReorderable(col);\n }\n\n /** Whether this column is the one currently being dragged (drives its ghost styling). */\n isDraggingColumn(col: ColumnDef<T>): boolean {\n return this.draggedColumnKey() === String(col.accessorKey);\n }\n\n /** Whether this column is the current drop target (drives the insertion indicator). */\n isDropTargetColumn(col: ColumnDef<T>): boolean {\n return this.dropTargetColumnKey() === String(col.accessorKey);\n }\n\n /**\n * Starts a header drag, recording the source key both in component state and\n * on the `dataTransfer` payload (some browsers only expose the latter on\n * drop). Silently ignored for a non-draggable column.\n */\n onColumnDragStart(event: DragEvent, col: ColumnDef<T>): void {\n if (!this.isColumnDraggable(col)) {\n return;\n }\n\n const key = String(col.accessorKey);\n this.draggedColumnKey.set(key);\n this.dropTargetColumnKey.set(null);\n\n if (event.dataTransfer) {\n event.dataTransfer.effectAllowed = \"move\";\n event.dataTransfer.setData(\"text/plain\", key);\n }\n }\n\n /**\n * Marks a header as the drop target while a column drag hovers it. Declines\n * (leaving the browser's \"no drop\" cursor) for a non-draggable target or when\n * the source and target are the same column.\n */\n onColumnDragOver(event: DragEvent, col: ColumnDef<T>): void {\n if (!this.isColumnDraggable(col)) {\n return;\n }\n\n const targetKey = String(col.accessorKey);\n const sourceKey =\n this.draggedColumnKey() ??\n event.dataTransfer?.getData(\"text/plain\") ??\n \"\";\n if (!sourceKey || sourceKey === targetKey) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.dropTargetColumnKey.set(targetKey);\n\n if (event.dataTransfer) {\n event.dataTransfer.dropEffect = \"move\";\n }\n }\n\n /**\n * Completes a header drag by moving the source column to the target's\n * position and updating {@link columnOrder}; drag state is cleared on every\n * path, including the rejected ones. No output is emitted — observe\n * `columnOrder` to persist the new order.\n */\n onColumnDrop(event: DragEvent, col: ColumnDef<T>): void {\n if (!this.isColumnDraggable(col)) {\n this.clearColumnDragState();\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n\n const targetKey = String(col.accessorKey);\n const sourceKey =\n this.draggedColumnKey() ??\n event.dataTransfer?.getData(\"text/plain\") ??\n \"\";\n if (!sourceKey || sourceKey === targetKey) {\n this.clearColumnDragState();\n return;\n }\n\n this.reorderColumnsByKeys(sourceKey, targetKey);\n this.clearColumnDragState();\n }\n\n /** Clears the drag/drop-target highlight when a header drag ends anywhere, including a cancel. */\n onColumnDragEnd(): void {\n this.clearColumnDragState();\n }\n\n /**\n * Snapshots per-column width, visibility, pin and order — the shape to persist\n * for a \"my table layout\" feature and replay through {@link applyColumnState}.\n * Widths, visibility and pin all fall back to each column's declaration when\n * no runtime override exists, so a {@link pinColumn} override round-trips\n * through {@link applyColumnState}.\n */\n getColumnState(): DataTableColumnState[] {\n const widths = this.columnWidths();\n const visibility = this.columnVisibility();\n const pins = this.columnPinOverrides();\n const order = this.applyKeyOrder(\n this.columns().map((col) => String(col.accessorKey)),\n );\n const orderIndex = new Map(order.map((key, index) => [key, index]));\n\n return this.columns().map((col) => {\n const key = String(col.accessorKey);\n return {\n columnKey: key,\n width: widths[key] ?? col.width,\n visible: visibility[key] !== false,\n pin: key in pins ? pins[key] : col.pin,\n order: orderIndex.get(key),\n };\n });\n }\n\n /** The value being edited, read as a date for `editType: 'date'`. */\n editDateValue(): Date | null {\n return asEditableDate(this.editValue());\n }\n\n /**\n * Commit a date picked in a `editType: 'date'` cell.\n *\n * The shape is read from the value still in the editor — which is the cell's\n * original, because the picker commits on the first change — so a column\n * holding ISO strings keeps holding ISO strings. Changing a cell's type\n * behind the consumer's back is the failure mode here, not a wrong day.\n */\n onEditDateChange(picked: Date | null): void {\n const next = toEditedDateValue(picked, this.editValue());\n this.onEditValueChange(next);\n this.commitEdit();\n }\n\n /**\n * The whole view as one token: layout, sort, filters and page.\n *\n * {@link getColumnState} covers the layout, which is what a \"reset my\n * columns\" feature needs. This is what a *named view* needs — someone who\n * saved \"My open invoices\" expects the filters and the sort back, not just\n * the column widths.\n *\n * Persist it as JSON. It carries a {@link DATA_TABLE_VIEW_STATE_VERSION} so\n * that a token written by an older build is recognised rather than guessed\n * at.\n *\n * @publicApi\n */\n getViewState(): DataTableViewState {\n return {\n version: DATA_TABLE_VIEW_STATE_VERSION,\n columns: this.getColumnState(),\n sort: this.sortState(),\n sortStates: this.multiSortState(),\n columnFilters: this.columnFilters(),\n advancedFilter: this.advancedFilter(),\n globalFilter: this.globalFilter(),\n pagination: this.paginationState(),\n };\n }\n\n /**\n * Restore a {@link getViewState} token. Returns whether it was applied.\n *\n * A token from an unknown version is **refused outright** rather than\n * applied field by field. Half-restoring a saved view is worse than refusing\n * it: the user gets a table that is nearly right and has no way to tell which\n * parts are stale. The boolean is there so a consumer can drop a token it\n * can no longer read instead of failing silently.\n *\n * @publicApi\n */\n applyViewState(state: DataTableViewState | null | undefined): boolean {\n if (state?.version !== DATA_TABLE_VIEW_STATE_VERSION) return false;\n\n this.applyColumnState(state.columns);\n this.sortState.set(state.sort);\n this.multiSortState.set(state.sortStates);\n this.columnFilters.set(state.columnFilters);\n this.advancedFilter.set(state.advancedFilter);\n this.globalFilter.set(state.globalFilter);\n this.paginationState.set(state.pagination);\n return true;\n }\n\n /**\n * Restores a {@link getColumnState} snapshot into {@link columnVisibility},\n * {@link columnWidths}, {@link columnPinOverrides} and {@link columnOrder}.\n * Merges rather than replaces: columns missing from `states`, and fields left\n * out entirely, keep their current value, and an empty array is ignored. A\n * state carrying a `pin` key of `undefined` — as {@link getColumnState}\n * always does for an unpinned column — clears that column's pin.\n */\n applyColumnState(states: DataTableColumnState[]): void {\n if (!states || states.length === 0) {\n return;\n }\n\n const nextVisibility = { ...this.columnVisibility() };\n const nextWidths = { ...this.columnWidths() };\n const nextPins = { ...this.columnPinOverrides() };\n const orderEntries: Array<{ key: string; order: number }> = [];\n\n states.forEach((state) => {\n const key = String(state.columnKey);\n if (state.visible !== undefined) {\n nextVisibility[key] = state.visible;\n }\n if (state.width) {\n nextWidths[key] = state.width;\n }\n if ('pin' in state) {\n nextPins[key] = state.pin;\n }\n if (state.order !== undefined) {\n orderEntries.push({ key, order: state.order });\n }\n });\n\n this.columnPinOverrides.set(nextPins);\n\n if (orderEntries.length > 0) {\n const sortedOrder = [...orderEntries]\n .sort((a, b) => a.order - b.order)\n .map((entry) => entry.key);\n this.columnOrder.set(sortedOrder);\n }\n\n this.columnVisibility.set(nextVisibility);\n this.columnWidths.set(nextWidths);\n }\n\n /**\n * Declares what the current {@link loading} spell is for, so\n * {@link loadingVisibility} can suppress the overlay and the loader\n * template/component can react. The table sets it itself for sorting,\n * filtering and pagination; call it before flipping `loading` for your own\n * fetches.\n */\n setLoadingTrigger(trigger: DataTableLoadingTrigger): void {\n this.loadingTrigger.set(trigger);\n }\n\n /**\n * Resolves the inputs for a column's custom filter component, calling\n * `filterComponentInputs` when it is a factory so the values can be computed\n * per render. `{}` when the column declares none.\n */\n getFilterInputs(col: ColumnDef<T>): Record<string, unknown> {\n if (typeof col.filterComponentInputs === \"function\") {\n return col.filterComponentInputs();\n }\n return col.filterComponentInputs ?? {};\n }\n\n /**\n * Output handlers bound onto a column's custom filter component. The table's\n * own `filterChange` handler is appended last and therefore overrides any\n * `filterChange` in `filterComponentOutputs` — that is the wire that makes a\n * custom filter actually filter.\n */\n getFilterOutputs(col: ColumnDef<T>): Record<string, (event: unknown) => void> {\n return {\n ...col.filterComponentOutputs,\n filterChange: (value: unknown) =>\n this.onColumnFilterChange(col.accessorKey, value),\n };\n }\n\n /** Whether this column holds a non-empty filter value — drives the \"filtered\" header indicator. */\n isColumnFilterActive(col: ColumnDef<T>): boolean {\n const value = this.columnFilters()[col.accessorKey as string];\n return !this.isFilterValueEmpty(value);\n }\n\n /**\n * The \"no filter\" test used to skip column filters: `undefined`, `null`, `''`,\n * an empty array (an emptied multiselect), and a date range whose `start` and\n * `end` are both null.\n */\n isFilterValueEmpty(value: unknown): boolean {\n if (value === undefined || value === null || value === \"\") return true;\n if (Array.isArray(value)) return value.length === 0;\n if (typeof value === \"object\" && \"start\" in value && \"end\" in value) {\n return value.start === null && value.end === null;\n }\n return false;\n }\n\n private compareByColumn(a: T, b: T, column: ColumnDef<T>): number {\n if (column.sortFn) return column.sortFn(a, b);\n const aVal = this.getCellValue(a, column.accessorKey, column) as string | number | boolean | null | undefined;\n const bVal = this.getCellValue(b, column.accessorKey, column) as string | number | boolean | null | undefined;\n if (aVal == null && bVal == null) return 0;\n if (aVal == null) return -1;\n if (bVal == null) return 1;\n if (aVal < bVal) return -1;\n if (aVal > bVal) return 1;\n return 0;\n }\n\n private buildSortComparator(sorts: SortState[]): (a: T, b: T) => number {\n return (a: T, b: T) => {\n for (const sort of sorts) {\n const column = this.enhancedColumns().find(\n (col) => col.accessorKey === sort.column,\n );\n if (!column || !sort.direction) continue;\n\n const result = this.compareByColumn(a, b, column);\n if (result !== 0) {\n return sort.direction === \"asc\" ? result : -result;\n }\n }\n return 0;\n };\n }\n\n protected readonly String = String;\n\n /**\n * The raw (unformatted) value behind a cell — what sorting, filtering and\n * export all compare against. A column `accessorFn` wins outright; otherwise a\n * dotted `key` is walked as a path (`'user.name'`), returning `undefined` at\n * the first null/undefined link rather than throwing.\n */\n getCellValue(row: T, key: string | keyof T, column?: ColumnDef<T>): unknown {\n if (column?.accessorFn) {\n return column.accessorFn(row);\n }\n\n if (typeof key === \"string\" && key.includes(\".\")) {\n return key.split(\".\").reduce<unknown>((value, segment) => {\n if (value === null || value === undefined) {\n return undefined;\n }\n return (value as Record<string, unknown>)[segment];\n }, row as Record<string, unknown>);\n }\n\n return (row as Record<string, unknown>)[key as string];\n }\n\n /**\n * Resolve value-aware conditional formatting for a cell. Returns `null` when\n * the column declares none, so unformatted cells render with zero overhead.\n */\n getCellFormatting(col: ColumnDef<T>, row: T): ResolvedCellFormatting | null {\n if (!this._hasConditionalFormatting(col)) {\n return null;\n }\n const value = this.getCellValue(row, col.accessorKey, col);\n return {\n class: this._resolveCellClassRules(col, value, row),\n style: this._resolveCellStyle(col, value, row),\n dataBar: this._resolveDataBar(col, value),\n icon: col.iconSet?.(value, row) ?? null,\n };\n }\n\n private _hasConditionalFormatting(col: ColumnDef<T>): boolean {\n return (\n col.cellClassRules !== undefined ||\n col.cellStyleRules !== undefined ||\n col.colorScale !== undefined ||\n col.dataBar !== undefined ||\n col.iconSet !== undefined\n );\n }\n\n private _resolveCellClassRules(col: ColumnDef<T>, value: unknown, row: T): string {\n if (!col.cellClassRules) {\n return \"\";\n }\n const out: string[] = [];\n for (const rule of col.cellClassRules) {\n if (rule.when(value, row)) {\n out.push(rule.class);\n }\n }\n return out.join(\" \");\n }\n\n private _resolveCellStyle(col: ColumnDef<T>, value: unknown, row: T): Record<string, string> {\n const style = col.cellStyleRules?.(value, row) ?? {};\n if (!col.colorScale) {\n return style;\n }\n const bg = this._colorScaleBackground(col.colorScale, value);\n return bg ? { ...style, \"background-color\": bg } : style;\n }\n\n private _colorScaleBackground(scale: ColorScale, value: unknown): string | null {\n const num = this._toFiniteNumber(value);\n if (num === null) {\n return null;\n }\n const pct = this._positionPercent(num, scale.min, scale.max);\n return `color-mix(in srgb, ${scale.to} ${pct}%, ${scale.from})`;\n }\n\n private _resolveDataBar(\n col: ColumnDef<T>,\n value: unknown,\n ): { width: string; color: string; track: string | null } | null {\n if (!col.dataBar) {\n return null;\n }\n const num = this._toFiniteNumber(value);\n if (num === null) {\n return null;\n }\n const pct = this._positionPercent(num, col.dataBar.min, col.dataBar.max);\n return {\n width: `${pct}%`,\n color: col.dataBar.color,\n track: col.dataBar.track ?? null,\n };\n }\n\n private _toFiniteNumber(value: unknown): number | null {\n if (typeof value === \"number\") {\n return Number.isFinite(value) ? value : null;\n }\n if (typeof value === \"string\") {\n const num = Number.parseFloat(value);\n return Number.isFinite(num) ? num : null;\n }\n return null;\n }\n\n private _positionPercent(value: number, min: number, max: number): number {\n if (max === min) {\n return 0;\n }\n const pct = ((value - min) / (max - min)) * 100;\n return Math.max(0, Math.min(100, pct));\n }\n\n /**\n * The text form of a cell used for copy and export: the column's `cell`\n * formatter when present, else — for a column rendered by a `template` or\n * `component` — the text currently rendered in that cell, else the raw value\n * stringified (null/undefined become `''`, objects via a custom `toString` or\n * JSON). A templated row that is not in the DOM (another page, or scrolled out\n * of a virtualised viewport) has no rendered text to read and falls back to\n * the raw value.\n */\n getCellStringValue(row: T, column: ColumnDef<T>): string {\n if (column.cell) {\n return column.cell(row);\n }\n if (column.template || column.component) {\n const rendered = this.getRenderedCellText(row, column);\n if (rendered !== null) return rendered;\n }\n const value = this.getCellValue(row, column.accessorKey, column);\n if (value === null || value === undefined) return \"\";\n if (typeof value === \"object\") {\n const fn = (value as { toString?: unknown }).toString;\n if (typeof fn === \"function\" && fn !== Object.prototype.toString) {\n return (fn as () => string).call(value);\n }\n return JSON.stringify(value);\n }\n return stringifyValue(value);\n }\n\n private getRenderedCellText(row: T, column: ColumnDef<T>): string | null {\n const host = this._el.nativeElement as HTMLElement | undefined;\n if (typeof host?.querySelector !== \"function\") return null;\n\n const rowId = CSS.escape(String(this.getRowId()(row)));\n const key = CSS.escape(String(column.accessorKey));\n\n let cell: Element | null;\n try {\n cell = host.querySelector(`[data-row-id=${rowId}] [data-column=${key}]`);\n } catch {\n return null;\n }\n if (!cell) return null;\n\n return (cell.textContent ?? \"\").trim();\n }\n\n /**\n * Shapes the table into a `string[][]` grid (header row first) for copy and\n * for the export addon. Defaults to visible columns and filtered + sorted rows\n * across *all* pages — not just the current page — and always drops the\n * `_selection`/`_expander`/`_actions` columns. `customRows` overrides the row\n * source entirely (e.g. selection-only export), ignoring `onlyFiltered`.\n */\n getExportData(\n options?: DataTableExportOptions,\n customRows?: readonly T[],\n ): string[][] {\n const includeHeaders = options?.includeHeaders !== false;\n const onlyVisible = options?.onlyVisible !== false;\n const onlyFiltered = options?.onlyFiltered !== false;\n\n const columns = onlyVisible\n ? this.enhancedColumns().filter(\n (col) =>\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\",\n )\n : this.columns().filter(\n (col) =>\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\",\n );\n\n const rows =\n customRows ?? (onlyFiltered ? this.sortedData() : this.data());\n const result: string[][] = [];\n\n if (includeHeaders) {\n result.push(columns.map((col) => col.header));\n }\n\n for (const row of rows) {\n result.push(columns.map((col) => this.getCellStringValue(row, col)));\n }\n\n return result;\n }\n\n /** The filtered + sorted rows across every page (addon export seam). */\n getSortedRows(): readonly T[] {\n return this.sortedData();\n }\n\n /** The raw, unfiltered input rows (addon transform seam, e.g. pivot). */\n getRawRows(): readonly T[] {\n return this.data();\n }\n\n private _lastEmittedQuery: DataTableQuery | null = null;\n\n /**\n * Emit {@link query} whenever the request actually changes.\n *\n * Guarded on the *contents* rather than left to signal identity: several of\n * these are `model()`s holding objects, and a write of an equal-but-new\n * object would otherwise emit again — which on a server-side table is a\n * duplicate round trip, not a wasted tick.\n *\n * The first run is the initial state, so there is nothing to report yet; see\n * {@link currentQuery}.\n */\n private readonly _queryEmitter = effect(() => {\n const next = this.currentQuery();\n const previous = this._lastEmittedQuery;\n this._lastEmittedQuery = next;\n\n if (previous === null || sameQuery(previous, next)) return;\n untracked(() => this.query.emit(next));\n });\n\n /**\n * The request that describes what the table is showing right now.\n *\n * The companion to the {@link query} output, which only fires on a change:\n * this is how a consumer gets the *first* page without waiting for the user\n * to touch something.\n *\n * @publicApi\n */\n currentQuery(): DataTableQuery {\n return {\n globalFilter: this.globalFilter(),\n columnFilters: this.columnFilters(),\n sort: this.sortState(),\n sortStates: this.multiSortState(),\n advancedFilter: this.advancedFilter(),\n page: this.paginationState(),\n };\n }\n\n /** The active filter + sort query, for a server-side export provider. */\n queryState(): DataTableExportQuery {\n return {\n globalFilter: this.globalFilter(),\n columnFilters: this.columnFilters(),\n sort: this.sortState(),\n sortStates: this.multiSortState(),\n };\n }\n\n /** Show (non-null label) or clear (null) the generic busy overlay. */\n setBusy(label: string | null): void {\n this._busyLabel.set(label);\n }\n\n /** The active busy-overlay label, or null when idle. */\n busyLabel(): string | null {\n return this._busyLabel();\n }\n\n /**\n * Writes the focused cell's text to the system clipboard. A no-op without\n * {@link enableCopy} or when no cell is focused. Uses the async Clipboard API,\n * so it needs a secure context and can reject if permission is denied.\n */\n async copyCellToClipboard(): Promise<void> {\n if (!this.enableCopy()) return;\n const focused = this.focusedCell();\n if (!focused) return;\n const row = this.processedData()[focused.rowIndex];\n const col = this.enhancedColumns().find(\n (c) => String(c.accessorKey) === focused.columnKey,\n );\n if (row && col) {\n await navigator.clipboard.writeText(this.getCellStringValue(row, col));\n }\n }\n\n /**\n * Copies one row as a tab-separated line of its visible data columns, with no\n * header line. Requires {@link enableCopy}.\n */\n async copyRowToClipboard(row: T): Promise<void> {\n if (!this.enableCopy()) return;\n const columns = this.enhancedColumns().filter(\n (col) =>\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\",\n );\n const values = columns.map((col) => this.getCellStringValue(row, col));\n await navigator.clipboard.writeText(values.join(\"\\t\"));\n }\n\n /**\n * Copies the selected rows as TSV with a header line. Draws from the filtered\n * + sorted rows across all pages, so selections on other pages are included;\n * writes nothing when the selection is empty.\n */\n async copySelectedToClipboard(): Promise<void> {\n if (!this.enableCopy()) return;\n const columns = this.enhancedColumns().filter(\n (col) =>\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\",\n );\n const selectedIds = this.rowSelection();\n const rows = this.sortedData().filter(\n (row) => selectedIds[this.getRowId()(row)],\n );\n if (rows.length === 0) return;\n\n const headerLine = columns.map((col) => col.header).join(\"\\t\");\n const dataLines = rows.map((row) =>\n columns.map((col) => this.getCellStringValue(row, col)).join(\"\\t\"),\n );\n await navigator.clipboard.writeText([headerLine, ...dataLines].join(\"\\n\"));\n }\n\n /**\n * Copies the whole table as TSV via {@link getExportData} — header row plus\n * every filtered row, ignoring both pagination and the current selection.\n */\n async copyAllToClipboard(): Promise<void> {\n if (!this.enableCopy()) return;\n const data = this.getExportData();\n const text = data.map((row) => row.join(\"\\t\")).join(\"\\n\");\n await navigator.clipboard.writeText(text);\n }\n\n /**\n * Clears the focused cell when a click lands on the table but outside any\n * data cell — cell clicks stop propagation before reaching it.\n */\n onTableClick(): void {\n this.focusedCell.set(null);\n }\n\n /**\n * Focuses a data cell (the anchor for keyboard nav, copy and the fill handle).\n * Clicks on the `_selection`/`_expander`/`_actions` columns are ignored so\n * their controls keep working. With {@link enableCellRangeSelection} the\n * pointer-drag handler owns focus and range, and this only backstops keyboard\n * focus.\n */\n onCellClick(rowIndex: number, col: ColumnDef<T>, event: Event): void {\n const key = String(col.accessorKey);\n if (key === \"_selection\" || key === \"_expander\" || key === \"_actions\")\n return;\n event.stopPropagation();\n // When range selection is on, focus + range are managed by the pointer-drag\n // handler (onTableMouseDown); a plain click just focuses here for keyboard.\n this.focusedCell.set({ rowIndex, columnKey: key });\n }\n\n private _rangeAnchor: { rowIndex: number; columnKey: string } | null = null;\n private _rangeDragCleanup: (() => void) | null = null;\n\n /** Resolve the cell (rowIndex + columnKey) under a DOM element, or null. */\n private cellFromElement(target: EventTarget | null): { rowIndex: number; columnKey: string } | null {\n const el = target instanceof Element ? target : null;\n const rowEl = el?.closest<HTMLElement>(\"[data-row-index]\");\n const cellEl = el?.closest<HTMLElement>(\"[data-column]\");\n const rawRow = rowEl?.dataset[\"rowIndex\"];\n const columnKey = cellEl?.dataset[\"column\"];\n if (rawRow === undefined || columnKey === undefined) return null;\n const rowIndex = Number(rawRow);\n if (!Number.isFinite(rowIndex)) return null;\n const special = columnKey === \"_selection\" || columnKey === \"_expander\" || columnKey === \"_actions\";\n return special ? null : { rowIndex, columnKey };\n }\n\n /** Delegated mousedown — starts a click-drag range selection (left button only). */\n onTableMouseDown(event: MouseEvent): void {\n if (!this.enableCellRangeSelection() || event.button !== 0) return;\n if (this.editingCell() !== null) return;\n const target = event.target;\n if (target instanceof Element && target.closest(\"input,textarea,select,button,a,[data-slot='fill-handle']\")) {\n return;\n }\n const cell = this.cellFromElement(target);\n if (!cell) return;\n event.preventDefault();\n this.startRangeDrag(cell, event.shiftKey);\n }\n\n private startRangeDrag(cell: { rowIndex: number; columnKey: string }, extend: boolean): void {\n this._document.getSelection()?.removeAllRanges();\n const focused = this.focusedCell();\n const anchor = extend && focused ? focused : cell;\n this._rangeAnchor = anchor;\n this.focusedCell.set(anchor);\n this.cellRange.set({\n startRow: anchor.rowIndex,\n startCol: anchor.columnKey,\n endRow: cell.rowIndex,\n endCol: cell.columnKey,\n });\n this._rangeDragCleanup?.();\n this._rangeDragCleanup = onPointerDrag(\n (x, y, ev) => {\n if (\"touches\" in ev) ev.preventDefault();\n this.onRangeDragMove(x, y);\n },\n () => this.onRangeDragEnd(),\n );\n }\n\n private onRangeDragMove(clientX: number, clientY: number): void {\n const anchor = this._rangeAnchor;\n if (!anchor) return;\n const cell = this.cellFromElement(this._document.elementFromPoint(clientX, clientY));\n if (!cell) return;\n this.cellRange.set({\n startRow: anchor.rowIndex,\n startCol: anchor.columnKey,\n endRow: cell.rowIndex,\n endCol: cell.columnKey,\n });\n }\n\n private onRangeDragEnd(): void {\n this._rangeDragCleanup = null;\n this._rangeAnchor = null;\n const range = this.cellRange();\n // A click with no drag (1×1 range) collapses to a plain focus.\n if (range && range.startRow === range.endRow && range.startCol === range.endCol) {\n this.cellRange.set(null);\n }\n }\n\n /**\n * Opens the inline editor for a cell (the mouse gesture; {@link onCellTouchEnd}\n * is the touch equivalent). Whether editing actually starts is decided by\n * {@link startEditing} — the column must be editable and the row enabled.\n */\n onCellDblClick(rowIndex: number, col: ColumnDef<T>, event: Event): void {\n const key = String(col.accessorKey);\n if (key === \"_selection\" || key === \"_expander\" || key === \"_actions\")\n return;\n event.stopPropagation();\n this.startEditing(rowIndex, key);\n }\n\n private readonly DOUBLE_TAP_MAX_DELAY = 300;\n private _lastTapTime = 0;\n private _lastTapRowIndex = -1;\n private _lastTapColumnKey = \"\";\n\n /**\n * Touch counterpart of {@link onCellDblClick}: two taps on the *same* cell\n * within 300ms open the inline editor. Tapping a different cell restarts the\n * sequence, so a fast tap across two cells never edits.\n */\n onCellTouchEnd(\n event: TouchEvent,\n rowIndex: number,\n col: ColumnDef<T>\n ): void {\n const key = String(col.accessorKey);\n if (key === \"_selection\" || key === \"_expander\" || key === \"_actions\")\n return;\n const now = Date.now();\n const isSameCell =\n this._lastTapRowIndex === rowIndex && this._lastTapColumnKey === key;\n if (isSameCell && now - this._lastTapTime < this.DOUBLE_TAP_MAX_DELAY) {\n event.preventDefault();\n this.startEditing(rowIndex, key);\n this._lastTapTime = 0;\n this._lastTapRowIndex = -1;\n this._lastTapColumnKey = \"\";\n } else {\n this._lastTapTime = now;\n this._lastTapRowIndex = rowIndex;\n this._lastTapColumnKey = key;\n }\n }\n\n private readonly navigableColumnKeys = computed(() => {\n return this.enhancedColumns()\n .filter(\n (c) =>\n c.accessorKey !== \"_selection\" &&\n c.accessorKey !== \"_expander\" &&\n c.accessorKey !== \"_actions\",\n )\n .map((c) => String(c.accessorKey));\n });\n\n private readonly totalVisibleRows = computed(() => {\n if (this.enableSubRows()) return this.processedTreeRows().length;\n return this.processedData().length;\n });\n\n private handlePasteKeydown(event: KeyboardEvent): boolean {\n if (!this.enableClipboardPaste()) return false;\n const isPaste = (event.ctrlKey || event.metaKey) && event.key === \"v\";\n if (!isPaste || this.editingCell() !== null) return false;\n const focused = this.focusedCell();\n if (!focused) return false;\n event.preventDefault();\n void this.pasteFromClipboard(focused.rowIndex, focused.columnKey);\n return true;\n }\n\n private handleHistoryKeydown(event: KeyboardEvent): boolean {\n if (!this.enableEditHistory() || this.editingCell() !== null) return false;\n if (!event.ctrlKey && !event.metaKey) return false;\n const key = event.key.toLowerCase();\n if (key === \"z\" && !event.shiftKey) {\n event.preventDefault();\n this.undoEdit();\n return true;\n }\n if (key === \"y\" || (key === \"z\" && event.shiftKey)) {\n event.preventDefault();\n this.redoEdit();\n return true;\n }\n return false;\n }\n\n /**\n * The grid's single keydown entry point, tried in order: copy\n * (`Ctrl/Cmd+C` — range, else focused cell, else selected rows), paste\n * (`Ctrl/Cmd+V`), undo/redo (`Ctrl/Cmd+Z`/`Y`), then arrow/Home/End/Enter cell\n * navigation. Each stage is gated by its feature input, and the first one to\n * handle the event stops the chain.\n */\n onTableKeydown(event: KeyboardEvent): void {\n if (this.handleCopyKeydown(event)) return;\n if (this.handlePasteKeydown(event)) return;\n if (this.handleHistoryKeydown(event)) return;\n this.handleNavigationKeydown(event);\n }\n\n private handleCopyKeydown(event: KeyboardEvent): boolean {\n if (!this.enableCopy()) return false;\n const isCopy = (event.ctrlKey || event.metaKey) && event.key === \"c\";\n if (!isCopy) return false;\n\n const range = this.normalizedCellRange();\n if (range) {\n event.preventDefault();\n this.copyCellRangeToClipboard();\n return true;\n }\n\n const focused = this.focusedCell();\n if (focused) {\n const row = this.processedData()[focused.rowIndex];\n const col = this.enhancedColumns().find(\n (c) => String(c.accessorKey) === focused.columnKey,\n );\n if (row && col) {\n event.preventDefault();\n navigator.clipboard.writeText(this.getCellStringValue(row, col));\n return true;\n }\n }\n\n const selectedIds = this.rowSelection();\n if (Object.keys(selectedIds).some((id) => selectedIds[id])) {\n event.preventDefault();\n this.copySelectedToClipboard();\n return true;\n }\n return false;\n }\n\n /**\n * Copies the selected rectangle as TSV — no header line, cells in rendered\n * column order, one line per row — which is the shape Excel and Sheets paste\n * back. No-op without a range. Unlike the other copy helpers this does not\n * check {@link enableCopy}; the keyboard path that reaches it already has.\n */\n async copyCellRangeToClipboard(): Promise<void> {\n const range = this.normalizedCellRange();\n if (!range) return;\n\n const colKeys = this.navigableColumnKeys();\n const rangeCols = colKeys.slice(range.minCol, range.maxCol + 1);\n const data = this.processedData();\n const columns = this.enhancedColumns();\n\n const lines: string[] = [];\n for (let r = range.minRow; r <= range.maxRow; r++) {\n const row = data[r];\n if (!row) continue;\n const values = rangeCols.map((key) => {\n const col = columns.find((c) => String(c.accessorKey) === key);\n return col ? this.getCellStringValue(row, col) : \"\";\n });\n lines.push(values.join(\"\\t\"));\n }\n await navigator.clipboard.writeText(lines.join(\"\\n\"));\n }\n\n private computeNextCell(\n key: string, shiftKey: boolean, ctrlKey: boolean,\n rowIndex: number, colIndex: number, colKeys: string[], totalRows: number\n ): { row: number; col: number } {\n const nextRow = rowIndex;\n const nextCol = colIndex;\n\n switch (key) {\n case 'ArrowUp':\n return { row: this.findNextEnabledRow(rowIndex, -1, totalRows), col: nextCol };\n case 'ArrowDown':\n return { row: this.findNextEnabledRow(rowIndex, 1, totalRows), col: nextCol };\n case 'ArrowLeft':\n return { row: nextRow, col: Math.max(0, nextCol - 1) };\n case 'ArrowRight':\n return { row: nextRow, col: Math.min(colKeys.length - 1, nextCol + 1) };\n case 'Tab':\n return this.computeTabTarget(shiftKey, rowIndex, colIndex, colKeys, totalRows);\n case 'Home':\n return { row: ctrlKey ? 0 : nextRow, col: 0 };\n case 'End':\n return { row: ctrlKey ? totalRows - 1 : nextRow, col: colKeys.length - 1 };\n case 'PageUp':\n return { row: Math.max(0, rowIndex - this.getPageSize()), col: nextCol };\n case 'PageDown':\n return { row: Math.min(totalRows - 1, rowIndex + this.getPageSize()), col: nextCol };\n default:\n return { row: nextRow, col: nextCol };\n }\n }\n\n private computeTabTarget(\n shiftKey: boolean, rowIndex: number, colIndex: number, colKeys: string[], totalRows: number\n ): { row: number; col: number } {\n if (shiftKey) {\n if (colIndex > 0) return { row: rowIndex, col: colIndex - 1 };\n if (rowIndex > 0) return { row: rowIndex - 1, col: colKeys.length - 1 };\n return { row: rowIndex, col: colIndex };\n }\n if (colIndex < colKeys.length - 1) return { row: rowIndex, col: colIndex + 1 };\n if (rowIndex < totalRows - 1) return { row: rowIndex + 1, col: 0 };\n return { row: rowIndex, col: colIndex };\n }\n\n private getPageSize(): number {\n const container = this.scrollContainerRef()?.nativeElement;\n return container ? Math.floor(container.clientHeight / this.virtualRowHeight()) : 10;\n }\n\n private handleNavigationKeydown(event: KeyboardEvent): void {\n if (this.editingCell()) return;\n\n if (event.key === 'Escape' && this.cellRange()) {\n event.preventDefault();\n this.cellRange.set(null);\n return;\n }\n\n if (event.key === 'Enter' || event.key === 'F2') {\n const focused = this.focusedCell();\n if (focused) {\n event.preventDefault();\n this.startEditing(focused.rowIndex, focused.columnKey);\n }\n return;\n }\n\n const navKeys = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Tab', 'Home', 'End', 'PageUp', 'PageDown'];\n if (!navKeys.includes(event.key)) return;\n\n const colKeys = this.navigableColumnKeys();\n const totalRows = this.totalVisibleRows();\n if (colKeys.length === 0 || totalRows === 0) return;\n\n const focused = this.focusedCell();\n if (!focused) {\n if (event.key === 'ArrowDown' || event.key === 'Tab') {\n event.preventDefault();\n this.focusedCell.set({ rowIndex: 0, columnKey: colKeys[0] });\n this.ensureFocusedCellVisible();\n }\n return;\n }\n\n event.preventDefault();\n const colIndex = colKeys.indexOf(focused.columnKey);\n const safeColIndex = colIndex === -1 ? 0 : colIndex;\n const next = this.computeNextCell(\n event.key, event.shiftKey, event.ctrlKey || event.metaKey,\n focused.rowIndex, safeColIndex, colKeys, totalRows\n );\n\n this.focusedCell.set({ rowIndex: next.row, columnKey: colKeys[next.col] });\n this.ensureFocusedCellVisible();\n }\n\n private findNextEnabledRow(\n currentIndex: number,\n direction: 1 | -1,\n totalRows: number,\n ): number {\n const data = this.processedData();\n let next = currentIndex + direction;\n while (next >= 0 && next < totalRows) {\n const row = data[next];\n if (row && !this.isDisabled(row)) return next;\n next += direction;\n }\n return currentIndex;\n }\n\n private ensureFocusedCellVisible(): void {\n if (!this.isVirtualScrollActive()) return;\n const focused = this.focusedCell();\n if (!focused) return;\n this.scrollToRow(focused.rowIndex);\n }\n\n /** Whether this exact cell is the one open in the inline editor (only ever one at a time). */\n isEditing(rowIndex: number, columnKey: string): boolean {\n const editing = this.editingCell();\n return (\n editing !== null &&\n editing.rowIndex === rowIndex &&\n editing.columnKey === columnKey\n );\n }\n\n /**\n * Opens the inline editor on a cell, seeding it with the cell's current value\n * and focusing the input on the next frame. Silently declines when the column\n * is not `editable`, the row index is out of range, or the row is\n * {@link isDisabled}. Any pending edit on another cell is replaced without\n * being committed.\n */\n startEditing(rowIndex: number, columnKey: string): void {\n const col = this.enhancedColumns().find(\n (c) => String(c.accessorKey) === columnKey,\n );\n if (!col?.editable) return;\n\n const row = this.processedData()[rowIndex];\n if (!row) return;\n if (this.isDisabled(row)) return;\n\n const currentValue = this.getCellValue(row, col.accessorKey, col);\n this.cellEditError.set(null);\n this.editValue.set(currentValue);\n this.editingCell.set({ rowIndex, columnKey });\n this.focusEditInput();\n }\n\n private focusEditInput(): void {\n requestAnimationFrame(() => {\n const container = this._el.nativeElement as HTMLElement;\n const input = container.querySelector<HTMLElement>(\n 'input[data-edit-input], select[data-edit-input]'\n );\n input?.focus();\n });\n }\n\n /**\n * Validates and applies the pending edit. A value equal to the original just\n * cancels; a column `editValidator` rejection keeps the editor open, shows the\n * message and emits {@link editError} instead. On success {@link cellEdit} is\n * emitted and the column's `valueSetter` writes a new row into {@link data} —\n * a column without a `valueSetter` emits the event but changes nothing.\n * Recorded as one undo command when {@link enableEditHistory} is on.\n */\n commitEdit(): void {\n const editing = this.editingCell();\n if (!editing) return;\n\n const col = this.enhancedColumns().find(\n (c) => String(c.accessorKey) === editing.columnKey,\n );\n const row = this.processedData()[editing.rowIndex];\n if (!col || !row) {\n this.cancelEdit();\n return;\n }\n\n const newValue = this.editValue();\n const oldValue = this.getCellValue(row, col.accessorKey, col);\n\n if (newValue === oldValue) {\n this.cancelEdit();\n return;\n }\n\n if (!this.validateEdit(col, row, newValue, editing)) {\n return;\n }\n\n this.cellEditError.set(null);\n this.cellEdit.emit({\n row,\n column: col,\n oldValue,\n newValue,\n rowIndex: editing.rowIndex,\n });\n this.runAsCommand(() => this.applyValueSetter(col, row, newValue));\n\n this.editingCell.set(null);\n this.refocusTable();\n }\n\n /**\n * Runs the column's `editValidator`. On rejection, records the inline error\n * state and emits `editError`. Returns `true` when the edit may proceed.\n */\n private validateEdit(\n col: ColumnDef<T>,\n row: T,\n newValue: unknown,\n editing: EditingCell,\n ): boolean {\n if (!col.editValidator) return true;\n\n const result = col.editValidator(newValue, row);\n if (result === true) return true;\n\n const existing = this.cellEditError();\n const alreadyReported =\n existing !== null &&\n existing.rowIndex === editing.rowIndex &&\n existing.columnKey === editing.columnKey &&\n existing.value === newValue;\n if (alreadyReported) return false;\n\n const message = typeof result === 'string' ? result : 'Invalid value';\n this.cellEditError.set({\n rowIndex: editing.rowIndex,\n columnKey: editing.columnKey,\n value: newValue,\n message,\n });\n this.editError.emit({\n row,\n column: col,\n value: newValue,\n rowIndex: editing.rowIndex,\n message,\n });\n return false;\n }\n\n /**\n * Writes a committed edit back into the table data using the column's\n * `valueSetter`. `data` is a model, so the resulting array is published\n * to consumers and reflected by the table.\n */\n private applyValueSetter(col: ColumnDef<T>, row: T, newValue: unknown): void {\n if (!col.valueSetter) return;\n\n const getId = this.getRowId();\n const before = this.getCellValue(row, col.accessorKey, col);\n const updatedRow = col.valueSetter(row, newValue);\n const data = [...this.data()];\n const dataIndex = data.findIndex((r) => getId(r) === getId(row));\n if (dataIndex === -1) return;\n data[dataIndex] = updatedRow;\n this.data.set(data);\n this._recordingChanges?.push({\n rowId: getId(row),\n columnKey: String(col.accessorKey),\n before,\n after: newValue,\n });\n }\n\n /** Run `fn`, capturing every `applyValueSetter` write into one undo command. */\n private runAsCommand(fn: () => void): void {\n if (!this.enableEditHistory()) {\n fn();\n return;\n }\n const batch: EditChange[] = [];\n const previous = this._recordingChanges;\n this._recordingChanges = batch;\n try {\n fn();\n } finally {\n this._recordingChanges = previous;\n }\n if (batch.length > 0) {\n this._undoStack.update((stack) => [...stack, batch]);\n this._redoStack.set([]);\n }\n }\n\n /** Write a value by row id + column key and re-emit `cellEdit` (used by undo/redo). */\n private writeCellByKey(rowId: string, columnKey: string, value: unknown): void {\n const col = this.columns().find((c) => String(c.accessorKey) === columnKey);\n if (!col?.valueSetter) return;\n const getId = this.getRowId();\n const data = [...this.data()];\n const index = data.findIndex((r) => getId(r) === rowId);\n if (index === -1) return;\n const before = this.getCellValue(data[index], col.accessorKey, col);\n data[index] = col.valueSetter(data[index], value);\n this.data.set(data);\n this.cellEdit.emit({ row: data[index], column: col, oldValue: before, newValue: value, rowIndex: index });\n }\n\n /** Undo the most recent edit/fill/paste command (reverts each cell in reverse). */\n undoEdit(): void {\n const stack = this._undoStack();\n const command = stack.at(-1);\n if (!command) return;\n this._undoStack.update((s) => s.slice(0, -1));\n for (let i = command.length - 1; i >= 0; i--) {\n this.writeCellByKey(command[i].rowId, command[i].columnKey, command[i].before);\n }\n this._redoStack.update((s) => [...s, command]);\n this.editUndo.emit();\n }\n\n /** Redo the most recently undone command. */\n redoEdit(): void {\n const stack = this._redoStack();\n const command = stack.at(-1);\n if (!command) return;\n this._redoStack.update((s) => s.slice(0, -1));\n for (const change of command) {\n this.writeCellByKey(change.rowId, change.columnKey, change.after);\n }\n this._undoStack.update((s) => [...s, command]);\n this.editRedo.emit();\n }\n\n /**\n * Compile a natural-language query into filters via the AI provider and apply\n * them to `globalFilter` / `columnFilters`. The provider returns a JSON filter\n * spec; only known columns are honored. No-op without a provider or query.\n */\n async applyNaturalLanguageFilter(query: string): Promise<void> {\n const provider = this.aiProvider();\n if (!provider || !query.trim()) return;\n const columns = this.columns().map((c) => ({\n key: String(c.accessorKey),\n header: c.header,\n }));\n const raw = await lastValueFrom(\n runAiTask(provider, { task: \"nl-filter\", input: query, context: { columns } }),\n );\n const spec = parseNlFilterSpec(raw, columns.map((c) => c.key));\n this.nlFilter.emit({ query, spec });\n if (spec.globalFilter !== undefined) this.globalFilter.set(spec.globalFilter);\n if (spec.columnFilters) this.columnFilters.set(spec.columnFilters);\n }\n\n /**\n * Fill a column's cells from an AI prompt — one provider call per filtered row,\n * applied through the column's `valueSetter` (and `editValidator` if present).\n * No-op when there's no provider or the column has no `valueSetter`.\n */\n async aiFillColumn(columnKey: string, prompt: string): Promise<void> {\n const provider = this.aiProvider();\n const col = this.enhancedColumns().find((c) => String(c.accessorKey) === columnKey);\n if (!provider || !col?.valueSetter) return;\n const rows = this.filteredData();\n for (let i = 0; i < rows.length; i++) {\n const row = rows[i];\n const value = await lastValueFrom(\n runAiTask(provider, {\n task: \"table-fill\",\n input: JSON.stringify(row),\n prompt,\n context: { column: col.header },\n }),\n );\n if (this.validateEdit(col, row, value, { rowIndex: i, columnKey })) {\n this.applyValueSetter(col, row, value);\n }\n }\n this.aiFillComplete.emit({ columnKey, count: rows.length });\n }\n\n /**\n * Abandons the pending edit, clears any validation message and returns focus\n * to the grid so keyboard navigation resumes. The row keeps its original\n * value and no output is emitted.\n */\n cancelEdit(): void {\n this.editingCell.set(null);\n this.editValue.set(null);\n this.cellEditError.set(null);\n this.refocusTable();\n }\n\n /** Returns the inline validation message for a cell, or `null` if valid. */\n editErrorFor(rowIndex: number, col: ColumnDef<T>): string | null {\n const err = this.cellEditError();\n if (\n err?.rowIndex === rowIndex &&\n err?.columnKey === String(col.accessorKey)\n ) {\n return err.message;\n }\n return null;\n }\n\n private refocusTable(): void {\n requestAnimationFrame(() => {\n this.scrollContainerRef()?.nativeElement?.focus();\n });\n }\n\n /**\n * Stores the editor's in-progress value and clears any visible validation\n * message, so the error disappears as soon as the user types. Nothing is\n * written to the row until {@link commitEdit}.\n */\n onEditValueChange(value: unknown): void {\n this.editValue.set(value);\n this.cellEditError.set(null);\n }\n\n /**\n * Editor key handling: Escape cancels, Enter commits, and Tab commits then\n * moves to the next (Shift+Tab: previous) navigable cell, reopening the editor\n * there if that column is editable — the Excel-style \"tab across a row\" flow.\n * All three stop propagation so the grid's own navigation does not also run.\n */\n onEditKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n this.cancelEdit();\n return;\n }\n\n if (event.key === 'Enter') {\n event.preventDefault();\n event.stopPropagation();\n this.commitEdit();\n return;\n }\n\n if (event.key === 'Tab') {\n event.preventDefault();\n event.stopPropagation();\n this.commitEdit();\n this.advanceEditToNextCell(event.shiftKey);\n }\n }\n\n private advanceEditToNextCell(shiftKey: boolean): void {\n const colKeys = this.navigableColumnKeys();\n const editing = this.focusedCell();\n if (!editing) return;\n\n const colIndex = colKeys.indexOf(editing.columnKey);\n const totalRows = this.totalVisibleRows();\n const next = this.computeTabTarget(shiftKey, editing.rowIndex, colIndex, colKeys, totalRows);\n\n this.focusedCell.set({ rowIndex: next.row, columnKey: colKeys[next.col] });\n const nextCol = this.enhancedColumns().find(c => String(c.accessorKey) === colKeys[next.col]);\n if (nextCol?.editable) {\n this.startEditing(next.row, colKeys[next.col]);\n }\n }\n\n /**\n * Expands or collapses a tree node, stopping the event so the chevron does not\n * also focus or select the row. Writes an explicit `true`/`false` into\n * {@link subRowExpandedRows}, which pins the node against\n * {@link subRowDefaultExpanded}.\n */\n toggleSubRowExpanded(row: T, event?: Event): void {\n event?.stopPropagation();\n const id = this.getRowId()(row);\n const isCurrentlyExpanded = this.isSubRowExpanded(row);\n const next = { ...this.subRowExpandedRows() };\n next[id] = !isCurrentlyExpanded;\n this.subRowExpandedRows.set(next);\n }\n\n /** Expands one tree node, leaving its descendants' own state untouched. */\n expandSubRow(row: T): void {\n const id = this.getRowId()(row);\n this.subRowExpandedRows.update((current) => ({ ...current, [id]: true }));\n }\n\n /**\n * Collapses one tree node by storing an explicit `false`, which pins it closed\n * against {@link subRowDefaultExpanded}. Delete the node's\n * {@link subRowExpandedRows} entry yourself to hand it back to the default.\n */\n collapseSubRow(row: T): void {\n const id = this.getRowId()(row);\n this.subRowExpandedRows.update((current) => ({ ...current, [id]: false }));\n }\n\n /**\n * Whether a tree node shows its children: an explicit\n * {@link subRowExpandedRows} entry if there is one, otherwise the\n * {@link subRowDefaultExpanded} depth rule (`-1` means every level).\n */\n isSubRowExpanded(row: T): boolean {\n const id = this.getRowId()(row);\n const expanded = this.subRowExpandedRows();\n if (id in expanded) return expanded[id];\n const defaultExpanded = this.subRowDefaultExpanded();\n if (defaultExpanded === -1) return true;\n const depth = this.getRowDepth(row);\n return depth < defaultExpanded;\n }\n\n /**\n * Expands every node with children, or only those above `toDepth` (0-based,\n * exclusive) when given. Walks the *unfiltered* {@link data} and **replaces**\n * {@link subRowExpandedRows} wholesale, discarding any node you had explicitly\n * collapsed.\n */\n expandAllSubRows(toDepth?: number): void {\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n const next: Record<string, boolean> = {};\n const targetDepth = toDepth ?? -1;\n\n const walk = (rows: T[], depth: number): void => {\n for (const row of rows) {\n const children = getChildrenFn(row);\n if (children && children.length > 0) {\n if (targetDepth === -1 || depth < targetDepth) {\n next[getId(row)] = true;\n }\n walk(children, depth + 1);\n }\n }\n };\n walk(this.data(), 0);\n this.subRowExpandedRows.set(next);\n }\n\n /**\n * Collapses the whole tree by pinning an explicit `false` on every node that\n * has children, so it wins over {@link subRowDefaultExpanded} (including\n * `-1`). Set {@link subRowExpandedRows} to `{}` yourself to hand every node\n * back to the default instead.\n */\n collapseAllSubRows(): void {\n const next: Record<string, boolean> = {};\n for (const id of this.parentRowIds()) {\n next[id] = false;\n }\n this.subRowExpandedRows.set(next);\n }\n\n private parentRowIds(): string[] {\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n const ids: string[] = [];\n\n const walk = (rows: T[]): void => {\n for (const row of rows) {\n const children = getChildrenFn(row);\n if (children && children.length > 0) {\n ids.push(getId(row));\n walk(children);\n }\n }\n };\n walk(this.data());\n return ids;\n }\n\n readonly isAllSubRowsExpanded = computed(() => {\n if (!this.enableSubRows()) return false;\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n const expanded = this.subRowExpandedRows();\n const defaultExpanded = this.subRowDefaultExpanded();\n\n const check = (rows: T[], depth: number): boolean => {\n for (const row of rows) {\n const children = getChildrenFn(row);\n if (children && children.length > 0) {\n const id = getId(row);\n const isExp =\n id in expanded\n ? expanded[id]\n : defaultExpanded === -1 || depth < defaultExpanded;\n if (!isExp) return false;\n if (!check(children, depth + 1)) return false;\n }\n }\n return true;\n };\n return check(this.data(), 0);\n });\n\n /**\n * A row's nesting level (0 for a root), resolved from the parent index built\n * over {@link data}. Returns 0 for a row that is not part of the tree.\n */\n getRowDepth(row: T): number {\n const id = this.getRowId()(row);\n const index = this.treeIndex();\n let depth = 0;\n let currentId: string | undefined = index.parent.get(id);\n while (currentId !== undefined) {\n depth++;\n currentId = index.parent.get(currentId);\n }\n return depth;\n }\n\n /**\n * The chain of {@link getRowId} values from the root down to `rowId`\n * (inclusive) — useful for breadcrumbs or for expanding a node's ancestors. A\n * root or unknown id yields just `[rowId]`.\n */\n getRowPath(rowId: string): string[] {\n const index = this.treeIndex();\n const path: string[] = [rowId];\n let currentId: string | undefined = index.parent.get(rowId);\n while (currentId !== undefined) {\n path.unshift(currentId);\n currentId = index.parent.get(currentId);\n }\n return path;\n }\n\n /** The row's parent in the tree, or `null` for a root (or a row outside the tree). */\n getParentRow(row: T): T | null {\n const id = this.getRowId()(row);\n const index = this.treeIndex();\n const parentId = index.parent.get(id);\n if (parentId === undefined) return null;\n return this.findRowById(parentId);\n }\n\n /**\n * A row's direct children via {@link getChildren} (never grandchildren), or an\n * empty array. Unaffected by filtering and expansion state.\n */\n getChildRows(row: T): T[] {\n const getChildrenFn = this.getChildren();\n return getChildrenFn(row) ?? [];\n }\n\n /**\n * Selects every descendant of a row — the whole subtree, not just direct\n * children — without selecting the parent itself, and ignoring\n * {@link isDisabled} and the active filter.\n */\n selectChildren(parentRow: T): void {\n const id = this.getRowId()(parentRow);\n const index = this.treeIndex();\n const descendantIds = index.descendants.get(id) ?? [];\n const next = { ...this.rowSelection() };\n descendantIds.forEach((did) => (next[did] = true));\n this.rowSelection.set(next);\n }\n\n /** The inverse of {@link selectChildren}: clears the whole subtree, leaving the parent as-is. */\n deselectChildren(parentRow: T): void {\n const id = this.getRowId()(parentRow);\n const index = this.treeIndex();\n const descendantIds = index.descendants.get(id) ?? [];\n const next = { ...this.rowSelection() };\n descendantIds.forEach((did) => delete next[did]);\n this.rowSelection.set(next);\n }\n\n /**\n * The tree checkbox action. Under {@link subRowSelectionMode} `\"self\"` it is\n * just {@link toggleRow}; `\"descendants\"` mirrors the new state onto the whole\n * subtree, and `\"filteredDescendants\"` onto the visible part of it only.\n * Either way, ancestors are then recomputed so a fully-selected parent becomes\n * selected and a partly-selected one indeterminate. Disabled rows are ignored.\n */\n toggleRowWithCascade(row: T): void {\n if (this.isDisabled(row)) return;\n const mode = this.subRowSelectionMode();\n if (mode === \"self\") {\n this.toggleRow(row);\n return;\n }\n\n const id = this.getRowId()(row);\n const isSelected = !!this.rowSelection()[id];\n const index = this.treeIndex();\n const next = { ...this.rowSelection() };\n\n if (isSelected) {\n delete next[id];\n } else {\n next[id] = true;\n }\n\n if (mode === \"descendants\") {\n const descendantIds = index.descendants.get(id) ?? [];\n descendantIds.forEach((did) => {\n if (isSelected) {\n delete next[did];\n } else {\n next[did] = true;\n }\n });\n } else if (mode === \"filteredDescendants\") {\n const visibleIds = new Set(this.filteredRowIds());\n const descendantIds = index.descendants.get(id) ?? [];\n descendantIds.forEach((did) => {\n if (!visibleIds.has(did)) return;\n if (isSelected) {\n delete next[did];\n } else {\n next[did] = true;\n }\n });\n }\n\n this.bubbleUpSelection(id, next);\n this.rowSelection.set(next);\n }\n\n private readonly _indeterminateRows = computed(() => {\n const result = new Set<string>();\n if (this.subRowSelectionMode() === \"self\") return result;\n if (!this.enableSubRows()) return result;\n const index = this.treeIndex();\n const selected = this.rowSelection();\n for (const [id, descendantIds] of index.descendants) {\n if (descendantIds.length === 0) continue;\n let count = 0;\n for (const did of descendantIds) {\n if (selected[did]) count++;\n }\n if (count > 0 && count < descendantIds.length) {\n result.add(id);\n }\n }\n return result;\n });\n\n /**\n * Whether a node's checkbox should render indeterminate — some but not all of\n * its descendants are selected. Always false under\n * {@link subRowSelectionMode} `\"self\"`, where selection does not cascade.\n */\n isSubRowSelectionIndeterminate(row: T): boolean {\n return this._indeterminateRows().has(this.getRowId()(row));\n }\n\n /**\n * Inputs for a column's `cellComponent` in tree mode: the column's own\n * `componentInputs` plus a `_subRowContext` carrying depth, path, parent, leaf\n * flag and child count — so a cell component can draw its own indentation or\n * expander. The context key always wins over a same-named entry.\n */\n getSubRowComponentInputs(\n col: ColumnDef<T>,\n treeRow: FlattenedTreeRow<T>,\n ): Record<string, unknown> {\n const base = col.componentInputs\n ? col.componentInputs(treeRow.row)\n : EMPTY_RECORD;\n const context: SubRowContext<T> = {\n row: treeRow.row,\n parentRow: treeRow.parentRow,\n parentId: treeRow.parentId,\n depth: treeRow.depth,\n path: treeRow.path,\n isLeaf: treeRow.isLeaf,\n childCount: treeRow.childCount,\n };\n return { ...base, _subRowContext: context };\n }\n\n private bubbleUpSelection(rowId: string, selection: Record<string, boolean>): void {\n const index = this.treeIndex();\n let parentId = index.parent.get(rowId);\n while (parentId !== undefined) {\n const siblingIds = index.children.get(parentId) ?? [];\n const allSelected = siblingIds.every((sid) => !!selection[sid]);\n if (allSelected) {\n selection[parentId] = true;\n } else {\n delete selection[parentId];\n }\n parentId = index.parent.get(parentId);\n }\n }\n\n private findRowById(targetId: string): T | null {\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n\n const search = (rows: T[]): T | null => {\n for (const row of rows) {\n if (getId(row) === targetId) return row;\n const children = getChildrenFn(row);\n if (children && children.length > 0) {\n const found = search(children);\n if (found) return found;\n }\n }\n return null;\n };\n return search(this.data());\n }\n\n private isNodeExpanded(id: string, depth: number): boolean {\n const expanded = this.subRowExpandedRows();\n if (id in expanded) return expanded[id];\n const defaultExpanded = this.subRowDefaultExpanded();\n if (defaultExpanded === -1) return true;\n return depth < defaultExpanded;\n }\n\n private flattenTreeFull(rows: T[]): FlattenedTreeRow<T>[] {\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n const result: FlattenedTreeRow<T>[] = [];\n\n const walk = (\n items: T[],\n depth: number,\n parentId: string | null,\n parentRow: T | null,\n path: string[],\n ): void => {\n for (const row of items) {\n const id = getId(row);\n const children = getChildrenFn(row) ?? [];\n const isLeaf = children.length === 0;\n const rowExpanded = !isLeaf && this.isNodeExpanded(id, depth);\n const rowPath = [...path, id];\n\n result.push({\n row,\n depth,\n parentId,\n parentRow,\n path: rowPath,\n isLeaf,\n childCount: children.length,\n isExpanded: rowExpanded,\n });\n\n if (rowExpanded && children.length > 0) {\n walk(children, depth + 1, id, row, rowPath);\n }\n }\n };\n walk(rows, 0, null, null, []);\n return result;\n }\n\n private flattenTreeRowsForPage(rootSlice: T[]): T[] {\n return this.flattenTreeFull(rootSlice).map((tr) => tr.row);\n }\n\n private flattenTreeRowsForPageFull(rootSlice: T[]): FlattenedTreeRow<T>[] {\n return this.flattenTreeFull(rootSlice);\n }\n\n\n private applyColumnOrder<U extends { accessorKey: string | keyof T }>(\n columns: U[],\n ): U[] {\n const order = this.columnOrder();\n if (order.length === 0) {\n return columns;\n }\n\n const priority = new Map(order.map((key, index) => [key, index]));\n return [...columns].sort((a, b) => {\n const aIndex = priority.get(String(a.accessorKey));\n const bIndex = priority.get(String(b.accessorKey));\n if (aIndex === undefined && bIndex === undefined) return 0;\n if (aIndex === undefined) return 1;\n if (bIndex === undefined) return -1;\n return aIndex - bIndex;\n });\n }\n\n private applyKeyOrder(keys: string[]): string[] {\n const order = this.columnOrder();\n if (order.length === 0) {\n return keys;\n }\n\n const priority = new Map(order.map((key, index) => [key, index]));\n return [...keys].sort((a, b) => {\n const aIndex = priority.get(a);\n const bIndex = priority.get(b);\n if (aIndex === undefined && bIndex === undefined) return 0;\n if (aIndex === undefined) return 1;\n if (bIndex === undefined) return -1;\n return aIndex - bIndex;\n });\n }\n\n private reorderColumnsByKeys(sourceKey: string, targetKey: string): void {\n const columnsByKey = new Map(\n this.columns().map((col) => [String(col.accessorKey), col]),\n );\n const baseOrder = this.applyKeyOrder(\n this.columns().map((col) => String(col.accessorKey)),\n );\n const visibleReorderable = baseOrder.filter((key) => {\n const col = columnsByKey.get(key);\n return (\n !!col && this.isColumnReorderable(col) && this.isColumnVisible(key)\n );\n });\n\n const sourceIndex = visibleReorderable.indexOf(sourceKey);\n const targetIndex = visibleReorderable.indexOf(targetKey);\n if (sourceIndex === -1 || targetIndex === -1) {\n return;\n }\n\n if (sourceIndex === targetIndex) {\n return;\n }\n\n const nextVisibleReorderable = visibleReorderable.filter(\n (key) => key !== sourceKey,\n );\n const reducedTargetIndex = nextVisibleReorderable.indexOf(targetKey);\n const insertIndex =\n sourceIndex < targetIndex ? reducedTargetIndex + 1 : reducedTargetIndex;\n\n nextVisibleReorderable.splice(insertIndex, 0, sourceKey);\n\n const visibleReorderableSet = new Set(visibleReorderable);\n let cursor = 0;\n const mergedOrder = baseOrder.map((key) => {\n if (!visibleReorderableSet.has(key)) {\n return key;\n }\n\n const nextKey = nextVisibleReorderable[cursor];\n cursor += 1;\n return nextKey;\n });\n\n this.columnOrder.set(mergedOrder);\n }\n\n private isColumnReorderable(col: ColumnDef<T>): boolean {\n const key = String(col.accessorKey);\n if (key === \"_selection\" || key === \"_expander\" || key === \"_actions\") {\n return false;\n }\n return col.enableReordering !== false;\n }\n\n private clearColumnDragState(): void {\n this.draggedColumnKey.set(null);\n this.dropTargetColumnKey.set(null);\n }\n\n private shouldShowLoaderFor(trigger: DataTableLoadingTrigger): boolean {\n const visibility = this.loadingVisibility();\n if (trigger === \"pagination\") return visibility.pagination !== false;\n if (trigger === \"sorting\") return visibility.sorting !== false;\n if (trigger === \"filtering\") return visibility.filtering !== false;\n return visibility.initial !== false;\n }\n\n /**\n * The row at a *rendered* index — after filtering, sorting and paging — or\n * `undefined` when out of range. This is the index every cell/row callback\n * and event payload uses, so map through here rather than indexing\n * {@link data} directly.\n */\n getRenderedRowAt(index: number): T | undefined {\n return this.processedData()[index];\n }\n\n // ── Addon host contract (DataTableAddonHost) ───────────────────────────\n // Generic, addon-agnostic extension surface. The base provides itself as the\n // DataTableAddonHost token; addon directives reach these through DI without\n // the base ever importing an addon.\n private readonly _cellActions = new AddonSlotRegistry<CellActionSlot<T>>();\n private readonly _headerActions = new AddonSlotRegistry<HeaderActionSlot<T>>();\n\n /**\n * Adds an addon's ⋮ button to every row's action cell and returns a teardown\n * an addon directive should call on destroy. The base renders the button and\n * calls back with the row context; it never learns which addon registered it.\n */\n registerCellAction(slot: CellActionSlot<T>): () => void {\n return this._cellActions.register(slot);\n }\n\n /** The header-cell counterpart of {@link registerCellAction}; also returns a teardown. */\n registerHeaderAction(slot: HeaderActionSlot<T>): () => void {\n return this._headerActions.register(slot);\n }\n\n /** The registered row-action slots, in registration order — read by the base template. */\n cellActionSlots(): readonly CellActionSlot<T>[] {\n return this._cellActions.slots();\n }\n\n /** The registered header-action slots — read by the base template. */\n headerActionSlots(): readonly HeaderActionSlot<T>[] {\n return this._headerActions.slots();\n }\n\n /**\n * The runtime pin override for a column set via {@link pinColumn}, or\n * `undefined`. Deliberately *not* the column's declared `pin` — an unpinned\n * and a never-overridden column look the same here.\n */\n getColumnPin(columnKey: string): ColumnPin {\n return this.columnPinOverrides()[columnKey];\n }\n\n /**\n * Row metadata for an action callback: the row, its rendered index and\n * selection, plus depth/leaf/parent/expanded when {@link enableSubRows} is on.\n */\n getRowContext(row: T, index: number): RowActionContext<T> {\n return this.buildRowActionContext(row, index);\n }\n\n /**\n * The resolved locale dictionary, so an addon can label its own UI from the\n * table's {@link locale} instead of shipping its own strings.\n */\n getLocale(): DataTableLocale {\n return this.t();\n }\n\n /**\n * The flattened tree row at a rendered index — the tree-mode counterpart of\n * {@link getRenderedRowAt}, carrying depth, path and expansion alongside the\n * row. `undefined` outside tree mode or out of range.\n */\n getRenderedTreeRowAt(index: number): FlattenedTreeRow<T> | undefined {\n return this.processedTreeRows()[index];\n }\n\n private buildRowActionContext(row: T, index: number): RowActionContext<T> {\n const selected = !!this.rowSelection()[this.getRowId()(row)];\n const context: RowActionContext<T> = { row, index, selected };\n\n if (this.enableSubRows()) {\n const treeRow = this.getRenderedTreeRowAt(index);\n if (treeRow) {\n context.depth = treeRow.depth;\n context.isLeaf = treeRow.isLeaf;\n context.parentRow = treeRow.parentRow;\n context.isExpanded = treeRow.isExpanded;\n }\n }\n\n return context;\n }\n\n /**\n * Pins a column to a side at runtime (`undefined` unpins), overriding the\n * column's declared `pin`/`sticky`. Pinned columns are grouped to their edge\n * regardless of {@link columnOrder}, and the override is not captured by\n * {@link getColumnState}.\n */\n pinColumn(columnKey: string, pin: \"left\" | \"right\" | undefined): void {\n this.columnPinOverrides.update((overrides) => ({\n ...overrides,\n [columnKey]: pin,\n }));\n }\n\n private computeAggregate(rows: T[], col: ColumnDef<T>): string {\n const fn = col.aggregateFn;\n if (!fn) return \"\";\n const values = rows.map((row) =>\n this.getCellValue(row, col.accessorKey, col),\n );\n return computeAggregateValue(values, fn);\n }\n\n /**\n * Makes every column visible by writing an explicit `true` for each. Merges\n * into {@link columnVisibility}, so entries for keys no longer in\n * {@link columns} are preserved untouched.\n */\n showAllColumns(): void {\n this.columnVisibility.update((current) => {\n const next = { ...current };\n for (const col of this.columns()) {\n next[String(col.accessorKey)] = true;\n }\n return next;\n });\n }\n\n /** Expands every group, clearing all collapsed-group state. */\n expandAllGroups(): void {\n this.collapsedGroups.set({});\n }\n\n /** Collapses every group in the current grouped display list. */\n collapseAllGroups(): void {\n const next: Record<string, boolean> = {};\n for (const displayRow of this.groupedDisplayRows()) {\n if (displayRow.kind === 'group') {\n next[displayRow.groupKey] = true;\n }\n }\n this.collapsedGroups.set(next);\n }\n\n /** Toggles the collapsed state of a single group by its key. */\n toggleGroupCollapsed(groupKey: string): void {\n this.collapsedGroups.update((state) => ({\n ...state,\n [groupKey]: !state[groupKey],\n }));\n }\n\n protected isGroupRow(\n displayRow: DataTableDisplayRow<T>,\n ): displayRow is GroupRow {\n return displayRow.kind === 'group';\n }\n\n protected groupTrackBy(displayRow: DataTableDisplayRow<T>): string {\n return displayRow.kind === 'group'\n ? `g:${displayRow.groupKey}`\n : `r:${this.getRowId()(displayRow.row)}`;\n }\n\n protected groupRowValueLabel(group: GroupRow): string {\n const value = group.groupValue;\n if (value === null || value === undefined) return '';\n return stringifyValue(value);\n }\n\n protected groupAggregateLabel(accessorKey: string): string {\n const column = this.enhancedColumns().find(\n (col) => String(col.accessorKey) === accessorKey,\n );\n return column?.header ?? accessorKey;\n }\n\n readonly draggedRowId = signal<string | null>(null);\n private readonly dragOverIndex = signal<number | null>(null);\n private readonly dragOverPosition = signal<RowDragPosition>('below');\n\n readonly dragPreviewData = computed((): T[] | null => {\n const draggedId = this.draggedRowId();\n const overIdx = this.dragOverIndex();\n if (!draggedId || overIdx === null) return null;\n\n const getId = this.getRowId();\n const data = this.processedData();\n const fromIndex = data.findIndex(r => getId(r) === draggedId);\n if (fromIndex === -1) return null;\n\n const position = this.dragOverPosition();\n if (position === 'on') return null;\n let toIndex = position === 'above' ? overIdx : overIdx + 1;\n if (fromIndex < toIndex) toIndex -= 1;\n if (fromIndex === toIndex) return null;\n\n const result = [...data];\n const [moved] = result.splice(fromIndex, 1);\n result.splice(toIndex, 0, moved);\n return result;\n });\n\n private readonly dragWheelHandler = (e: WheelEvent): void => {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n e.preventDefault();\n e.stopPropagation();\n container.scrollTop += e.deltaY;\n container.scrollLeft += e.deltaX;\n };\n\n private readonly dragEventHandler = (e: DragEvent): void => {\n if (!this.draggedRowId()) return;\n this.handleDragAutoScroll(e.clientY);\n };\n\n /**\n * Starts a row drag, stamping the row id on the `dataTransfer` payload and\n * attaching document-level wheel/drag listeners so the grid keeps\n * auto-scrolling while a drag is in flight (browsers suppress normal scrolling\n * then). Declines when {@link enableRowDrag} is off, the row is disabled, or\n * the table is {@link loading}.\n */\n onRowDragStart(event: DragEvent, row: T): void {\n if (!this.enableRowDrag() || this.isDisabled(row) || this.loading()) return;\n const id = this.getRowId()(row);\n this.draggedRowId.set(id);\n\n if (event.dataTransfer) {\n event.dataTransfer.effectAllowed = 'move';\n event.dataTransfer.setData('text/plain', id);\n }\n\n this._document.addEventListener('wheel', this.dragWheelHandler, { capture: true, passive: false });\n this._document.addEventListener('drag', this.dragEventHandler);\n }\n\n private dragAutoScrollId = 0;\n\n private computeDragPosition(event: DragEvent): RowDragPosition {\n const target = event.currentTarget as HTMLElement;\n const rect = target.getBoundingClientRect();\n const relativeY = (event.clientY - rect.top) / rect.height;\n\n if (this.rowDragMode() === 'tree') {\n if (relativeY < 0.25) return 'above';\n if (relativeY > 0.75) return 'below';\n return 'on';\n }\n return relativeY < 0.5 ? 'above' : 'below';\n }\n\n private checkFlatTreeDragCompatibility(\n event: DragEvent,\n index: number,\n draggedId: string,\n getId: (row: T) => string,\n position: RowDragPosition,\n ): { blocked: boolean; position: RowDragPosition } {\n if (!this.enableSubRows() || this.rowDragMode() !== 'flat') {\n return { blocked: false, position };\n }\n const treeRows = this.processedTreeRows();\n const draggedTreeRow = treeRows.find(tr => getId(tr.row) === draggedId);\n const targetTreeRow = treeRows[index];\n if (draggedTreeRow && targetTreeRow && draggedTreeRow.depth !== targetTreeRow.depth) {\n if (event.dataTransfer) event.dataTransfer.dropEffect = 'none';\n this.dragOverIndex.set(-1);\n return { blocked: true, position };\n }\n return { blocked: false, position: position === 'on' ? 'below' : position };\n }\n\n /**\n * Tracks the hovered row during a row drag and decides the drop position from\n * the pointer's position within the row: above/below at the halves in `\"flat\"`\n * mode, above/on/below at the quarters in `\"tree\"` mode. Rejects the target\n * when the row is disabled, when a flat drag would cross tree depths, or when\n * {@link rowDragAllowDrop} vetoes it, and auto-scrolls near the edges.\n */\n onRowDragOver(event: DragEvent, index: number): void {\n const draggedId = this.draggedRowId();\n if (!this.enableRowDrag() || !draggedId) return;\n\n const row = this.processedData()[index];\n if (row && this.isDisabled(row)) return;\n\n const getId = this.getRowId();\n const rawPosition = this.computeDragPosition(event);\n const { blocked, position } = this.checkFlatTreeDragCompatibility(event, index, draggedId, getId, rawPosition);\n if (blocked) return;\n\n const draggedRow = this.processedData().find(r => getId(r) === draggedId);\n const allowDropFn = this.rowDragAllowDrop();\n if (draggedRow && row && allowDropFn && !allowDropFn(draggedRow, row, position)) return;\n\n event.preventDefault();\n event.stopPropagation();\n\n this.dragOverIndex.set(index);\n this.dragOverPosition.set(position);\n\n if (event.dataTransfer) {\n event.dataTransfer.dropEffect = 'move';\n }\n\n this.handleDragAutoScroll(event.clientY);\n }\n\n /**\n * Catches a row drag hovering the scroll container's empty space below the\n * last row and retargets it to a drop *after* that row, so dragging to the\n * bottom of a short table still lands. Ignored unless a drag is in flight.\n */\n onContainerDragOver(event: DragEvent): void {\n if (!this.enableRowDrag() || !this.draggedRowId()) return;\n event.preventDefault();\n\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n\n const lastIndex = this.processedData().length - 1;\n if (lastIndex < 0) return;\n\n const rows = container.querySelectorAll<HTMLElement>('[data-row-index]');\n if (rows.length === 0) return;\n const lastRow = rows[rows.length - 1];\n const lastRowRect = lastRow.getBoundingClientRect();\n\n if (event.clientY > lastRowRect.bottom) {\n this.dragOverIndex.set(lastIndex);\n this.dragOverPosition.set('below');\n }\n\n this.handleDragAutoScroll(event.clientY);\n }\n\n private handleDragAutoScroll(clientY: number): void {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n\n const rect = container.getBoundingClientRect();\n const edgeZone = 40;\n const distFromTop = clientY - rect.top;\n const distFromBottom = rect.bottom - clientY;\n\n cancelAnimationFrame(this.dragAutoScrollId);\n\n if (distFromTop < edgeZone) {\n const speed = Math.max(2, Math.round((edgeZone - distFromTop) / 3));\n this.dragAutoScrollId = requestAnimationFrame(() => {\n container.scrollTop -= speed;\n });\n } else if (distFromBottom < edgeZone) {\n const speed = Math.max(2, Math.round((edgeZone - distFromBottom) / 3));\n this.dragAutoScrollId = requestAnimationFrame(() => {\n container.scrollTop += speed;\n });\n }\n }\n\n /**\n * Completes a row drag: while {@link localReorder} is on it applies the move\n * to {@link data} through {@link reorderData}, then emits {@link rowReorder}\n * with the moved row, the target row, the drop position and the neighbouring\n * row ids, and finally clears the drag state. With `localReorder` off nothing\n * moves — apply the event yourself through {@link reorderData}.\n */\n onRowDrop(event: DragEvent): void {\n if (!this.enableRowDrag()) {\n this.clearRowDragState();\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n\n const reorderEvent = this.buildRowReorderEvent();\n if (!reorderEvent) {\n this.clearRowDragState();\n return;\n }\n\n if (this.localReorder()) {\n this.data.set(this.reorderData(this.data(), reorderEvent));\n }\n\n this.rowReorder.emit(reorderEvent);\n this.clearRowDragState();\n }\n\n /**\n * Pure helper that returns a **new** array with a {@link rowReorder} event\n * applied — run for you on drop while {@link localReorder} is on, and the\n * intended handler body when it is off. Flat mode re-inserts next to `previousId`/`nextId`\n * (falling back to the end); tree mode removes the node from its parent and\n * re-inserts it above/below/inside the target via {@link setChildren}. Rows\n * are matched by {@link getRowId}, and an unknown moved row returns the input\n * array unchanged.\n */\n reorderData(data: T[], event: RowReorderEvent<T>): T[] {\n if (this.enableSubRows()) {\n return this.reorderTreeData(data, event);\n }\n return this.reorderFlatData(data, event);\n }\n\n private reorderFlatData(data: T[], event: RowReorderEvent<T>): T[] {\n const result = [...data];\n const getId = this.getRowId();\n const fromIdx = result.findIndex(r => getId(r) === getId(event.row));\n if (fromIdx === -1) return data;\n\n const [moved] = result.splice(fromIdx, 1);\n\n let insertIdx: number;\n if (event.previousId) {\n insertIdx = result.findIndex(r => getId(r) === event.previousId) + 1;\n } else if (event.nextId) {\n insertIdx = result.findIndex(r => getId(r) === event.nextId);\n if (insertIdx === -1) insertIdx = result.length;\n } else {\n insertIdx = result.length;\n }\n\n result.splice(Math.max(0, insertIdx), 0, moved);\n return result;\n }\n\n private reorderTreeData(data: T[], event: RowReorderEvent<T>): T[] {\n const getId = this.getRowId();\n const getChildrenFn = this.getChildren();\n const setChildrenFn = this.setChildren();\n const rowId = getId(event.row);\n const targetId = getId(event.targetRow);\n\n const { remaining, removed } = this.removeFromTree(data, rowId, getId, getChildrenFn, setChildrenFn);\n if (!removed) return data;\n return this.insertIntoTree(remaining, removed, targetId, event.position, getId, getChildrenFn, setChildrenFn);\n }\n\n private removeFromTree(\n nodes: T[], rowId: string, getId: (r: T) => string,\n getChildrenFn: (r: T) => T[] | undefined, setChildrenFn: (r: T, c: T[]) => T\n ): { remaining: T[]; removed: T | null } {\n const idx = nodes.findIndex(n => getId(n) === rowId);\n if (idx !== -1) {\n return { remaining: [...nodes.slice(0, idx), ...nodes.slice(idx + 1)], removed: nodes[idx] };\n }\n for (let i = 0; i < nodes.length; i++) {\n const children = getChildrenFn(nodes[i]);\n if (children && children.length > 0) {\n const result = this.removeFromTree(children, rowId, getId, getChildrenFn, setChildrenFn);\n if (result.removed) {\n const updated = [...nodes];\n updated[i] = setChildrenFn(nodes[i], result.remaining);\n return { remaining: updated, removed: result.removed };\n }\n }\n }\n return { remaining: nodes, removed: null };\n }\n\n private insertIntoTree(\n nodes: T[], movedRow: T, targetId: string, position: RowDragPosition,\n getId: (r: T) => string, getChildrenFn: (r: T) => T[] | undefined, setChildrenFn: (r: T, c: T[]) => T\n ): T[] {\n if (position === 'on') {\n return nodes.map(n => {\n if (getId(n) === targetId) {\n return setChildrenFn(n, [...(getChildrenFn(n) ?? []), movedRow]);\n }\n const kids = getChildrenFn(n);\n return kids?.length ? setChildrenFn(n, this.insertIntoTree(kids, movedRow, targetId, position, getId, getChildrenFn, setChildrenFn)) : n;\n });\n }\n\n const result: T[] = [];\n for (const n of nodes) {\n if (getId(n) === targetId) {\n if (position === 'above') result.push(movedRow, n);\n else result.push(n, movedRow);\n } else {\n const kids = getChildrenFn(n);\n result.push(kids?.length ? setChildrenFn(n, this.insertIntoTree(kids, movedRow, targetId, position, getId, getChildrenFn, setChildrenFn)) : n);\n }\n }\n return result;\n }\n\n private buildRowReorderEvent(): RowReorderEvent<T> | null {\n const draggedId = this.draggedRowId();\n const overIdx = this.dragOverIndex();\n const position = this.dragOverPosition();\n if (!draggedId || overIdx === null) return null;\n\n const getId = this.getRowId();\n const data = this.processedData();\n const fromIndex = data.findIndex(r => getId(r) === draggedId);\n if (fromIndex === -1) return null;\n\n const targetRow = data[overIdx];\n if (!targetRow) return null;\n\n const toIndex = this.computeDropIndex(overIdx, fromIndex, position);\n const { previousId, nextId } = this.resolveDropNeighborIds(data, toIndex, fromIndex, getId);\n\n const result: RowReorderEvent<T> = {\n row: data[fromIndex],\n targetRow,\n position,\n previousId,\n nextId,\n fromIndex,\n toIndex: Math.max(0, toIndex),\n };\n\n if (position === 'on' && this.rowDragMode() === 'tree') {\n result.parentId = getId(targetRow);\n }\n\n return result;\n }\n\n private computeDropIndex(overIdx: number, fromIndex: number, position: RowDragPosition): number {\n let toIndex = position === 'above' ? overIdx : overIdx + 1;\n if (fromIndex < toIndex) toIndex -= 1;\n return toIndex;\n }\n\n private resolveDropNeighborIds(\n data: T[], toIndex: number, fromIndex: number, getId: (row: T) => string\n ): { previousId: string | null; nextId: string | null } {\n const prevIdx = toIndex > fromIndex ? toIndex : toIndex - 1;\n const nextIdx = toIndex >= fromIndex ? toIndex + 1 : toIndex;\n const previousRow = prevIdx >= 0 ? data[prevIdx] : null;\n const nextRow = nextIdx < data.length ? data[nextIdx] : null;\n return {\n previousId: previousRow ? getId(previousRow) : null,\n nextId: nextRow ? getId(nextRow) : null,\n };\n }\n\n /**\n * Clears row-drag state and detaches the auto-scroll listeners when a drag\n * ends, including a cancelled one that never reached {@link onRowDrop}.\n */\n onRowDragEnd(): void {\n this.clearRowDragState();\n }\n\n private clearRowDragState(): void {\n this.draggedRowId.set(null);\n this.dragOverIndex.set(null);\n cancelAnimationFrame(this.dragAutoScrollId);\n this._document.removeEventListener('wheel', this.dragWheelHandler, { capture: true });\n this._document.removeEventListener('drag', this.dragEventHandler);\n }\n\n /** Whether this row is the one being dragged (drives its ghosted styling). */\n isRowBeingDragged(row: T): boolean {\n return this.draggedRowId() === this.getRowId()(row);\n }\n\n /**\n * Which drop indicator a rendered row should show: `'top'`/`'bottom'` for an\n * insertion line, `'on'` for a re-parent highlight in `\"tree\"`\n * {@link rowDragMode}, or `null` when this row is not the current target.\n */\n getDropEdge(index: number): 'top' | 'bottom' | 'on' | null {\n const overIdx = this.dragOverIndex();\n if (overIdx === null || !this.draggedRowId()) return null;\n if (overIdx !== index) return null;\n const pos = this.dragOverPosition();\n if (pos === 'on') return 'on';\n return pos === 'above' ? 'top' : 'bottom';\n }\n\n private readonly _resizingColumn = signal<CellStyleColumn | null>(null);\n private resizeStartX = 0;\n private resizeStartWidth = 0;\n private resizeOldWidth = \"auto\";\n\n /**\n * Begins a mouse column resize from the header's drag handle, capturing the\n * start width and attaching document move/up listeners. The RTL delta is\n * inverted from the host's live direction, so the handle drags the way the\n * column visually grows.\n */\n onResizeStart(event: MouseEvent, col: CellStyleColumn): void {\n event.preventDefault();\n event.stopPropagation();\n this.startResize(event.clientX, col);\n }\n\n /**\n * Touch counterpart of {@link onResizeStart}. Single-finger only, so a\n * pinch-zoom over the header is left to the browser.\n */\n onResizeTouchStart(event: TouchEvent, col: CellStyleColumn): void {\n if (event.touches.length === 1) {\n event.preventDefault();\n event.stopPropagation();\n this.startResize(event.touches[0].clientX, col);\n }\n }\n\n /** True while the given column is actively being resized. */\n isResizingColumn(col: CellStyleColumn): boolean {\n const resizing = this._resizingColumn();\n return (\n resizing !== null &&\n String(resizing.accessorKey) === String(col.accessorKey)\n );\n }\n\n /** Classes for the resize handle's 1px visual line — solid while dragging. */\n resizeLineClass(col: CellStyleColumn): string {\n const base = \"absolute inset-y-0 left-1/2 w-px -translate-x-1/2\";\n if (this.isResizingColumn(col)) {\n return `${base} bg-primary/70`;\n }\n return `${base} bg-transparent group-hover/resize:bg-primary/50`;\n }\n\n private startResize(clientX: number, col: CellStyleColumn): void {\n const key = String(col.accessorKey);\n this._resizingColumn.set(col);\n this.resizeStartX = clientX;\n const actualWidth = this.getColumnActualWidth(key);\n this.resizeStartWidth = Number.parseInt(col._width, 10) || actualWidth || 150;\n this.resizeOldWidth = this.columnWidths()[key] ?? col._width ?? \"auto\";\n this._isRtlResize = this.isRtl();\n\n const onMouseMove = (e: MouseEvent): void => this.onResizeMove(e.clientX);\n const onTouchMove = (e: TouchEvent): void => {\n if (e.touches.length === 1) {\n e.preventDefault();\n this.onResizeMove(e.touches[0].clientX);\n }\n };\n\n const onEnd = (): void => {\n this.onResizeEnd();\n this._document.removeEventListener(\"mousemove\", onMouseMove);\n this._document.removeEventListener(\"mouseup\", onEnd);\n this._document.removeEventListener(\"touchmove\", onTouchMove);\n this._document.removeEventListener(\"touchend\", onEnd);\n this._document.body.style.cursor = \"\";\n this._document.body.style.userSelect = \"\";\n };\n\n this._document.body.style.cursor = \"col-resize\";\n this._document.body.style.userSelect = \"none\";\n\n this._document.addEventListener(\"mousemove\", onMouseMove);\n this._document.addEventListener(\"mouseup\", onEnd);\n this._document.addEventListener(\"touchmove\", onTouchMove, { passive: false });\n this._document.addEventListener(\"touchend\", onEnd);\n }\n\n private onResizeMove(clientX: number): void {\n const resizing = this._resizingColumn();\n if (!resizing) return;\n\n const delta = clientX - this.resizeStartX;\n const effectiveDelta = this._isRtlResize ? -delta : delta;\n const minWidth = Number.parseInt(resizing._minWidth || \"50\", 10) || 50;\n const newWidth = Math.max(minWidth, this.resizeStartWidth + effectiveDelta);\n const key = String(resizing.accessorKey);\n\n this.columnWidths.update((widths) => ({\n ...widths,\n [key]: `${newWidth}px`,\n }));\n }\n\n private onResizeEnd(): void {\n const resizing = this._resizingColumn();\n if (resizing) {\n const key = String(resizing.accessorKey);\n const newWidth = this.columnWidths()[key] ?? this.resizeOldWidth;\n\n this.columnResize.emit({\n columnKey: key,\n oldWidth: this.resizeOldWidth,\n newWidth,\n });\n\n this._resizingColumn.set(null);\n }\n }\n\n /**\n * Gets the actual rendered width of a column in pixels.\n * Useful for auto columns that don't have a fixed width.\n */\n private getColumnActualWidth(columnKey: string): number | null {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return null;\n\n const headerCell = container.querySelector(\n `[data-column=\"${columnKey}\"]`\n ) as HTMLElement | null;\n if (headerCell) {\n return headerCell.offsetWidth;\n }\n return null;\n }\n\n /**\n * Measure the widest *intrinsic* content (header + rendered cells) of a column.\n * Each cell's content is cloned into an off-screen `width:max-content` element\n * so the measurement is the natural content width — not the cell's stretched\n * width — which lets auto-fit both grow and shrink.\n */\n private measureColumnContent(columnKey: string): number {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return 0;\n const cells = Array.from(\n container.querySelectorAll<HTMLElement>(\"[data-column], [data-column-id]\"),\n ).filter(\n (el) => el.dataset[\"column\"] === columnKey || el.dataset[\"columnId\"] === columnKey,\n );\n if (cells.length === 0) return 0;\n\n const measurer = this._document.createElement(\"div\");\n measurer.style.cssText =\n \"position:absolute;left:-99999px;top:0;visibility:hidden;white-space:nowrap;width:max-content;\";\n this._document.body.appendChild(measurer);\n let max = 0;\n for (const cell of cells) {\n const style = globalThis.getComputedStyle(cell);\n measurer.style.font = style.font || `${style.fontWeight} ${style.fontSize} ${style.fontFamily}`;\n measurer.innerHTML = cell.innerHTML;\n const width = measurer.getBoundingClientRect().width;\n if (width > max) max = width;\n }\n measurer.remove();\n return max;\n }\n\n /**\n * Resize a column to fit its widest content (Excel-style auto-fit). Measures\n * only rendered cells, so with virtual scroll it fits what's on screen.\n */\n autoSizeColumn(columnKey: string): void {\n const content = this.measureColumnContent(columnKey);\n if (content <= 0) return;\n const col = this.enhancedColumns().find((c) => String(c.accessorKey) === columnKey);\n const minWidth = Number.parseInt(col?._minWidth ?? \"50\", 10) || 50;\n const newWidth = `${Math.max(minWidth, Math.ceil(content) + 24)}px`;\n const oldWidth = this.columnWidths()[columnKey] ?? col?._width ?? \"auto\";\n this.columnWidths.update((widths) => ({ ...widths, [columnKey]: newWidth }));\n this.columnResize.emit({ columnKey, oldWidth, newWidth });\n }\n\n /** Auto-fit every (non-special) column to its content. */\n autoSizeAllColumns(): void {\n for (const key of this.navigableColumnKeys()) {\n this.autoSizeColumn(key);\n }\n }\n\n /** Distribute the visible width evenly across the (non-special) columns. */\n fitColumnsToViewport(): void {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n const keys = this.navigableColumnKeys();\n if (keys.length === 0) return;\n const each = Math.max(50, Math.floor(container.clientWidth / keys.length));\n const next = { ...this.columnWidths() };\n for (const key of keys) {\n next[key] = `${each}px`;\n }\n this.columnWidths.set(next);\n }\n\n /** Double-click the resize handle → auto-fit that column. */\n onResizeDoubleClick(event: MouseEvent, col: CellStyleColumn): void {\n event.preventDefault();\n event.stopPropagation();\n this.autoSizeColumn(String(col.accessorKey));\n }\n\n /**\n * Scrolls a rendered row index to the top of the viewport, using the measured\n * prefix sums under {@link virtualVariableRowHeight} and\n * {@link virtualRowHeight} otherwise. Because the offset is computed rather\n * than looked up in the DOM, it is only accurate while virtualization is\n * active and the real row height matches `virtualRowHeight`. The index is not\n * clamped — an out-of-range value just pins the scroll at the end.\n */\n scrollToRow(index: number): void {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n\n if (this.virtualVariableRowHeight()) {\n const prefixSums = this._prefixSums();\n if (prefixSums && index < prefixSums.length) {\n container.scrollTop = prefixSums[index];\n return;\n }\n }\n\n container.scrollTop = index * this.virtualRowHeight();\n }\n\n /**\n * Scrolls a column to the leading edge of the viewport by summing the widths\n * before it. Only scrollable columns count — a pinned or hidden column is not\n * found and the call is a no-op — and the offset ignores any pinned overlay,\n * so the target can sit partly beneath it.\n */\n scrollToColumn(columnKey: string): void {\n const container = this.scrollContainerRef()?.nativeElement;\n if (!container) return;\n\n const cols = this.scrollableColumns();\n const widths = this.scrollableColumnWidths();\n const colIndex = cols.findIndex((c) => String(c.accessorKey) === columnKey);\n if (colIndex === -1) return;\n\n let offset = 0;\n for (let i = 0; i < colIndex; i++) {\n offset += widths[i];\n }\n\n container.scrollLeft = offset;\n }\n\n /**\n * {@link scrollToRow} plus {@link scrollToColumn} in one call, bringing a cell\n * to the top-leading corner of the viewport. It does not focus the cell — set\n * {@link focusedCell} for that.\n */\n scrollToCell(rowIndex: number, columnKey: string): void {\n this.scrollToRow(rowIndex);\n this.scrollToColumn(columnKey);\n }\n}\n"," <!-- Reusable: cell content rendering (component/template/cell/default) -->\n <ng-template\n #cellContentTpl\n let-col\n let-row=\"row\"\n let-treeRow=\"treeRow\"\n let-recycle=\"recycle\"\n >\n @if (col.component) {\n <div\n [uiComponentOutlet]=\"col.component\"\n [inputs]=\"\n treeRow\n ? getSubRowComponentInputs(col, treeRow)\n : col.componentInputs\n ? col.componentInputs(row)\n : EMPTY_RECORD\n \"\n [outputs]=\"\n col.componentOutputs ? col.componentOutputs(row) : EMPTY_RECORD\n \"\n [recycle]=\"recycle\"\n ></div>\n } @else if (col.template) {\n @if (treeRow) {\n <ng-container\n *ngTemplateOutlet=\"\n col.template;\n context: {\n $implicit: row,\n depth: treeRow.depth,\n parentRow: treeRow.parentRow,\n parentId: treeRow.parentId,\n path: treeRow.path,\n isLeaf: treeRow.isLeaf,\n childCount: treeRow.childCount,\n }\n \"\n ></ng-container>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"col.template; context: { $implicit: row }\"\n ></ng-container>\n }\n } @else {\n @let fmt = getCellFormatting(col, row);\n @if (fmt) {\n <span\n data-slot=\"cell-formatted\"\n class=\"relative flex w-full items-center gap-1.5 {{ fmt.class }}\"\n [style]=\"fmt.style\"\n >\n @if (fmt.dataBar) {\n @if (fmt.dataBar.track; as track) {\n <span\n data-slot=\"cell-data-bar-track\"\n class=\"pointer-events-none absolute inset-x-0 inset-y-0.5 rounded-sm\"\n [style.background-color]=\"track\"\n ></span>\n }\n <span\n data-slot=\"cell-data-bar\"\n class=\"pointer-events-none absolute inset-y-0.5 start-0 rounded-sm\"\n [style.width]=\"fmt.dataBar.width\"\n [style.background-color]=\"fmt.dataBar.color\"\n ></span>\n }\n @if (fmt.icon) {\n @if (fmt.icon.name) {\n <ui-icon\n data-slot=\"cell-icon\"\n [name]=\"fmt.icon.name\"\n size=\"xs\"\n class=\"relative shrink-0 {{ fmt.icon.class }}\"\n />\n } @else if (fmt.icon.glyph) {\n <span data-slot=\"cell-icon\" class=\"relative shrink-0 {{ fmt.icon.class }}\">{{ fmt.icon.glyph }}</span>\n }\n }\n <span class=\"relative min-w-0 truncate\">\n @if (col.cell) {\n {{ col.cell(row) }}\n } @else {\n {{ getCellValue(row, col.accessorKey, col) }}\n }\n </span>\n </span>\n } @else if (col.cell) {\n {{ col.cell(row) }}\n } @else {\n {{ getCellValue(row, col.accessorKey, col) }}\n }\n }\n </ng-template>\n\n <!-- Reusable: full cell rendering (special columns + content) -->\n <ng-template\n #cellTpl\n let-col\n let-row=\"row\"\n let-rowIndex=\"rowIndex\"\n let-treeRow=\"treeRow\"\n let-recycle=\"recycle\"\n >\n @if (col.accessorKey === \"_selection\") {\n <ui-checkbox\n [checked]=\"isRowSelected(row)\"\n [disabled]=\"isDisabled(row)\"\n [indeterminate]=\"\n treeRow ? isSubRowSelectionIndeterminate(row) : false\n \"\n (checkedChange)=\"treeRow ? toggleRowWithCascade(row) : toggleRow(row)\"\n ariaLabel=\"Select row\"\n />\n } @else if (col._isTreeExpanderHost && treeRow) {\n <div\n class=\"flex items-center gap-1 min-w-0\"\n [style.padding-inline-start.px]=\"treeRow.depth * subRowIndentSize()\"\n >\n @if (!treeRow.isLeaf) {\n <button\n type=\"button\"\n class=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground\"\n [attr.aria-label]=\"\n treeRow.isExpanded ? 'Collapse sub-rows' : 'Expand sub-rows'\n \"\n (click)=\"toggleSubRowExpanded(treeRow.row, $event)\"\n >\n <ui-icon\n [name]=\"isRtl() ? 'chevron-left' : 'chevron-right'\"\n size=\"xs\"\n class=\"transition-transform duration-200\"\n [class.rotate-90]=\"treeRow.isExpanded && !isRtl()\"\n [class.-rotate-90]=\"treeRow.isExpanded && isRtl()\"\n />\n </button>\n } @else {\n <span class=\"inline-block h-6 w-6 shrink-0\"></span>\n }\n <span class=\"truncate\">\n <ng-container\n *ngTemplateOutlet=\"\n cellContentTpl;\n context: {\n $implicit: col,\n row: row,\n treeRow: treeRow,\n recycle: recycle,\n }\n \"\n ></ng-container>\n </span>\n </div>\n } @else if (col.accessorKey === \"_expander\") {\n <button\n type=\"button\"\n class=\"inline-flex h-7 w-7 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground\"\n [attr.aria-label]=\"isRowExpanded(row) ? 'Collapse row' : 'Expand row'\"\n [attr.aria-expanded]=\"isRowExpanded(row)\"\n (click)=\"toggleRowExpanded(row, $event)\"\n >\n @if (isRowExpanded(row)) {\n <ui-icon name=\"chevron-up\" size=\"xs\" />\n } @else {\n <ui-icon name=\"chevron-down\" size=\"xs\" />\n }\n </button>\n } @else if (col.accessorKey === \"_actions\") {\n @if (!isDisabled(row)) {\n @for (slot of cellActionSlots(); track slot.id) {\n <ui-button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-8 w-8\"\n [ariaLabel]=\"slot.ariaLabel ?? 'Row actions'\"\n (click)=\"slot.onClick($event, getRowContext(row, rowIndex))\"\n (keydown.enter)=\"slot.onClick($event, getRowContext(row, rowIndex))\"\n (keydown.space)=\"slot.onClick($event, getRowContext(row, rowIndex))\"\n >\n <ui-icon [name]=\"slot.icon ?? 'more-vertical'\" size=\"sm\" />\n </ui-button>\n }\n }\n } @else if (\n col.editable && isEditing(rowIndex, String(col.accessorKey))\n ) {\n <ng-container\n *ngTemplateOutlet=\"\n cellEditTpl;\n context: { $implicit: col, row: row, rowIndex: rowIndex }\n \"\n ></ng-container>\n } @else {\n <ng-container\n *ngTemplateOutlet=\"\n cellContentTpl;\n context: {\n $implicit: col,\n row: row,\n treeRow: treeRow,\n recycle: recycle,\n }\n \"\n ></ng-container>\n }\n </ng-template>\n\n <!-- Reusable: cell edit mode -->\n <ng-template #cellEditTpl let-col let-row=\"row\" let-rowIndex=\"rowIndex\">\n @let editErr = editErrorFor(rowIndex, col);\n @if (col.editComponent) {\n <div\n [uiComponentOutlet]=\"col.editComponent\"\n [inputs]=\"{ value: editValue(), row: row, column: col }\"\n [outputs]=\"{\n valueChange: onEditValueChange.bind(this),\n commit: commitEdit.bind(this),\n cancel: cancelEdit.bind(this),\n }\"\n ></div>\n } @else if (col.editTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n col.editTemplate;\n context: {\n $implicit: editValue(),\n row: row,\n column: col,\n setValue: onEditValueChange.bind(this),\n commit: commitEdit.bind(this),\n cancel: cancelEdit.bind(this),\n }\n \"\n ></ng-container>\n } @else if (col.editType === \"checkbox\") {\n <ui-checkbox\n [checked]=\"!!editValue()\"\n [ariaInvalid]=\"editErr ? true : undefined\"\n [ariaDescribedby]=\"editErr ? cellEditErrorId : undefined\"\n (checkedChange)=\"onEditValueChange($event); commitEdit()\"\n />\n } @else if (col.editType === \"date\") {\n <ui-date-picker\n class=\"w-full\"\n [date]=\"editDateValue()\"\n (dateChange)=\"onEditDateChange($event)\"\n />\n } @else if (col.editType === \"select\" && col.editOptions) {\n <select\n data-edit-input\n class=\"w-full h-full bg-background border-0 outline-none text-sm px-1\"\n [class.ring-1]=\"editErr\"\n [class.ring-inset]=\"editErr\"\n [class.ring-destructive]=\"editErr\"\n [attr.aria-invalid]=\"editErr ? true : null\"\n [attr.aria-describedby]=\"editErr ? cellEditErrorId : null\"\n [value]=\"editValue()\"\n (change)=\"onEditValueChange($any($event.target).value); commitEdit()\"\n (keydown)=\"onEditKeydown($event)\"\n >\n @for (opt of col.editOptions; track opt.value) {\n <option [value]=\"opt.value\">{{ opt.label }}</option>\n }\n </select>\n } @else {\n <input\n data-edit-input\n [type]=\"col.editType === 'number' ? 'number' : 'text'\"\n class=\"w-full h-full bg-background border-0 outline-none text-sm px-1 select-text\"\n [class.ring-1]=\"editErr\"\n [class.ring-inset]=\"editErr\"\n [class.ring-destructive]=\"editErr\"\n [attr.aria-invalid]=\"editErr ? true : null\"\n [attr.aria-describedby]=\"editErr ? cellEditErrorId : null\"\n [value]=\"editValue()\"\n (input)=\"onEditValueChange($any($event.target).value)\"\n (keydown)=\"onEditKeydown($event)\"\n (blur)=\"editingCell() ? commitEdit() : null\"\n />\n }\n @if (editErr) {\n <p\n [id]=\"cellEditErrorId\"\n class=\"mt-0.5 px-1 text-xs text-destructive\"\n role=\"alert\"\n data-slot=\"cell-edit-error\"\n >\n {{ editErr }}\n </p>\n }\n </ng-template>\n\n <!-- Reusable: row detail/expansion panel -->\n <ng-template #rowDetailTpl let-row>\n @if (rowDetailTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"\n rowDetailTemplate();\n context: { $implicit: row, row: row }\n \"\n ></ng-container>\n } @else if (rowDetailComponent()) {\n <div\n [uiComponentOutlet]=\"rowDetailComponent()!\"\n [inputs]=\"getRowDetailComponentInputs(row)\"\n ></div>\n } @else {\n <pre class=\"text-xs text-muted-foreground whitespace-pre-wrap\">{{\n row | json\n }}</pre>\n }\n </ng-template>\n\n <!-- Reusable: empty state -->\n <ng-template #emptyStateTpl>\n <ui-table-row class=\"hover:bg-transparent justify-center w-full\">\n <ui-table-cell\n class=\"h-48 sm:h-96 text-center w-full p-0 border-none justify-center\"\n >\n @if (emptyStateComponent()) {\n <ng-container\n [uiComponentOutlet]=\"emptyStateComponent()!\"\n [inputs]=\"emptyStateComponentInputs()\"\n ></ng-container>\n } @else {\n <div\n class=\"flex h-full flex-col items-center justify-center py-10 text-center text-muted-foreground w-full\"\n >\n <ui-icon name=\"circle-off\" size=\"xl\" class=\"mb-4 opacity-20\" />\n <p>{{ noResultsLabel() }}</p>\n </div>\n }\n </ui-table-cell>\n </ui-table-row>\n </ng-template>\n\n @if (skeleton()) {\n <div class=\"flex flex-col w-full space-y-3\" data-slot=\"data-table-skeleton\">\n <ui-skeleton class=\"h-9 w-full rounded-md\" />\n @for (row of skeletonRowsArray(); track $index) {\n <ui-skeleton class=\"h-12 w-full rounded-md\" />\n }\n <ui-skeleton class=\"h-9 w-full rounded-md\" />\n </div>\n } @else {\n <!-- `relative`: the sr-only announcer and the sr-only cell labels below are\n position:absolute. Without a positioned ancestor their containing block\n is <html>, so they escape this table's scroll container entirely and\n stretch the document to their static position — which on a page with a\n virtual-scroll table adds a second, page-length scrollbar. -->\n <div class=\"relative flex flex-col w-full h-full space-y-4\">\n <output\n class=\"sr-only\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n data-slot=\"data-table-announcer\"\n >\n {{ srAnnouncement() }}\n </output>\n @if (showToolbar()) {\n <div class=\"flex flex-wrap items-center justify-between gap-2 flex-none\">\n <div class=\"flex flex-1 flex-wrap items-center gap-2\">\n <ui-input\n [placeholder]=\"filterPlaceholder()\"\n [ngModel]=\"globalFilter()\"\n (ngModelChange)=\"onFilterChange($event)\"\n class=\"h-8 w-full sm:w-[150px] lg:w-[250px]\"\n />\n @if (hasAi() && enableNlFilter()) {\n <div class=\"flex items-center gap-1\" data-slot=\"table-nl-filter\">\n <span aria-hidden=\"true\" class=\"text-sm\">✨</span>\n <ui-input\n [placeholder]=\"nlFilterPlaceholder()\"\n [ngModel]=\"aiFilterQuery()\"\n (ngModelChange)=\"aiFilterQuery.set($event)\"\n [disabled]=\"aiFilterRunning()\"\n (keydown.enter)=\"runAiFilter()\"\n class=\"h-8 w-full sm:w-[200px]\"\n />\n </div>\n }\n @if (enableAdvancedFilter()) {\n <ui-popover>\n <ui-popover-trigger>\n <button\n type=\"button\"\n data-slot=\"advanced-filter-trigger\"\n class=\"inline-flex items-center gap-1.5 whitespace-nowrap rounded-md border border-input bg-background px-3 h-8 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground\"\n >\n <ui-icon name=\"filter\" size=\"xs\" />\n <span class=\"hidden sm:inline\">{{ filterBuilderLabels().filterButton }}</span>\n @if (advancedFilterCount() > 0) {\n <span class=\"inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-xs text-primary-foreground\">{{ advancedFilterCount() }}</span>\n }\n </button>\n </ui-popover-trigger>\n <ui-popover-content class=\"w-[min(420px,calc(100vw-2rem))] p-2\">\n <div class=\"space-y-2\">\n <ui-data-table-filter-builder\n [group]=\"advancedFilterGroup()\"\n [columns]=\"filterBuilderColumns()\"\n [labels]=\"filterBuilderLabels()\"\n (groupChange)=\"onAdvancedFilterChange($event)\"\n />\n @if (advancedFilterCount() > 0) {\n <button\n type=\"button\"\n class=\"text-xs text-muted-foreground hover:text-destructive\"\n (click)=\"clearAdvancedFilter()\"\n >{{ filterBuilderLabels().clearFilters }}</button>\n }\n </div>\n </ui-popover-content>\n </ui-popover>\n }\n </div>\n @if (showColumnVisibilityToggle() && hideableColumns().length > 0) {\n <ui-popover>\n <ui-popover-trigger>\n <button\n type=\"button\"\n class=\"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-input bg-background px-3 h-8 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground\"\n [attr.aria-label]=\"toggleColumnsLabel()\"\n >\n {{ columnsLabel() }}\n </button>\n </ui-popover-trigger>\n <ui-popover-content class=\"w-56 p-2\">\n <div class=\"space-y-1\">\n @for (col of hideableColumns(); track col.accessorKey) {\n <div\n class=\"flex items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground\"\n >\n <ui-checkbox\n [checked]=\"isColumnVisible(col.accessorKey)\"\n (checkedChange)=\"\n setColumnVisibility(col.accessorKey, $event)\n \"\n [ariaLabel]=\"toggleColumnAriaLabel(col.header)\"\n />\n <span>{{ col.header }}</span>\n </div>\n }\n </div>\n </ui-popover-content>\n </ui-popover>\n }\n </div>\n }\n\n <div\n #scrollContainer\n class=\"rounded-md border relative flex-1 min-h-0 overflow-auto w-full\"\n [class.contain-strict]=\"isVirtualScrollActive()\"\n [class.will-change-scroll]=\"isVirtualScrollActive()\"\n [class.select-none]=\"enableCellRangeSelection()\"\n (keydown)=\"onTableKeydown($event)\"\n (click)=\"onTableClick()\"\n (mousedown)=\"onTableMouseDown($event)\"\n (scroll)=\"isVirtualScrollActive() ? onVirtualScroll($event) : null\"\n (dragover)=\"onContainerDragOver($event)\"\n (drop)=\"onRowDrop($event)\"\n tabindex=\"0\"\n >\n @if (isLoaderVisible()) {\n <div\n class=\"absolute inset-0 z-40 flex items-center justify-center bg-background/70 backdrop-blur-[1px]\"\n >\n @if (loaderTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"\n loaderTemplate();\n context: {\n $implicit: loadingTrigger(),\n trigger: loadingTrigger(),\n }\n \"\n ></ng-container>\n } @else if (loaderComponent()) {\n <ng-container\n [uiComponentOutlet]=\"loaderComponent()!\"\n [inputs]=\"resolvedLoaderComponentInputs()\"\n ></ng-container>\n } @else {\n <div\n class=\"flex items-center gap-2 rounded-md border bg-background px-3 py-2 text-sm text-muted-foreground\"\n >\n <span\n class=\"inline-block h-3 w-3 animate-spin rounded-full border-2 border-muted-foreground/30 border-t-muted-foreground\"\n ></span>\n <span>Loading...</span>\n </div>\n }\n </div>\n }\n @if (busyLabel(); as label) {\n <div\n class=\"absolute inset-0 z-40 flex items-center justify-center bg-background/70 backdrop-blur-[1px]\"\n >\n <div\n class=\"flex items-center gap-2 rounded-md border bg-background px-3 py-2 text-sm text-muted-foreground\"\n >\n <span\n class=\"inline-block h-3 w-3 animate-spin rounded-full border-2 border-muted-foreground/30 border-t-muted-foreground\"\n ></span>\n <span>{{ label }}</span>\n </div>\n </div>\n }\n <ui-table [role]=\"enableSubRows() ? 'treegrid' : 'grid'\">\n <ui-table-header class=\"bg-background\">\n <ui-table-row>\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-head\n [class]=\"getHeaderClass(col)\"\n class=\"group/head\"\n [class.cursor-grab]=\"isColumnDraggable(col)\"\n [class.cursor-grabbing]=\"isDraggingColumn(col)\"\n [class.opacity-70]=\"isDraggingColumn(col)\"\n [class.relative]=\"isDropTargetColumn(col)\"\n [attr.data-column-id]=\"String(col.accessorKey)\"\n [attr.aria-sort]=\"getAriaSort(col)\"\n [attr.draggable]=\"isColumnDraggable(col) ? 'true' : null\"\n [style]=\"getHeaderCellStyle(col)\"\n (dragstart)=\"onColumnDragStart($event, col)\"\n (dragover)=\"onColumnDragOver($event, col)\"\n (drop)=\"onColumnDrop($event, col)\"\n (dragend)=\"onColumnDragEnd()\"\n >\n @if (isDropTargetColumn(col)) {\n <div\n class=\"pointer-events-none absolute inset-0 z-30 border-2 border-primary/70 bg-primary/10\"\n ></div>\n }\n <div class=\"flex items-center w-full h-full\">\n <div class=\"flex-1 min-w-0\">\n @if (col.accessorKey === \"_selection\") {\n <ui-checkbox\n [checked]=\"isAllSelected()\"\n [indeterminate]=\"isIndeterminate()\"\n (checkedChange)=\"toggleAll()\"\n ariaLabel=\"Select all\"\n />\n } @else if (col._isTreeExpanderHost) {\n <div class=\"flex items-center gap-1\">\n <button\n type=\"button\"\n class=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground\"\n [attr.aria-label]=\"\n isAllSubRowsExpanded()\n ? 'Collapse all sub-rows'\n : 'Expand all sub-rows'\n \"\n (click)=\"\n isAllSubRowsExpanded()\n ? collapseAllSubRows()\n : expandAllSubRows(-1)\n \"\n >\n @if (isAllSubRowsExpanded()) {\n <ui-icon name=\"chevrons-up\" size=\"xs\" />\n } @else {\n <ui-icon name=\"chevrons-down\" size=\"xs\" />\n }\n </button>\n @if (col.enableSorting !== false) {\n <ui-data-table-column-header\n [title]=\"col.header\"\n [column]=\"String(col.accessorKey)\"\n [direction]=\"getSortDirection(col.accessorKey)\"\n [sortIndex]=\"getSortIndex(col.accessorKey)\"\n (sortMeta)=\"\n onSortChange(\n col.accessorKey,\n $event.direction,\n $event.multi\n )\n \"\n />\n } @else {\n <span>{{ col.header }}</span>\n }\n </div>\n } @else if (col.accessorKey === \"_expander\") {\n <button\n type=\"button\"\n class=\"inline-flex h-7 w-7 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground\"\n [attr.aria-label]=\"\n isAllExpanded()\n ? 'Collapse all rows'\n : 'Expand all rows'\n \"\n (click)=\"toggleAllExpanded()\"\n >\n @if (isAllExpanded()) {\n <ui-icon name=\"chevrons-up\" size=\"xs\" />\n } @else {\n <ui-icon name=\"chevrons-down\" size=\"xs\" />\n }\n </button>\n } @else if (col.accessorKey === \"_actions\") {\n <span class=\"sr-only\">Actions</span>\n } @else if (col.headerTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n col.headerTemplate;\n context: { $implicit: col }\n \"\n ></ng-container>\n } @else if (col.enableSorting !== false) {\n <div class=\"flex items-center gap-2\">\n <ui-data-table-column-header\n [title]=\"col.header\"\n [column]=\"String(col.accessorKey)\"\n [direction]=\"getSortDirection(col.accessorKey)\"\n [sortIndex]=\"getSortIndex(col.accessorKey)\"\n (sortMeta)=\"\n onSortChange(\n col.accessorKey,\n $event.direction,\n $event.multi\n )\n \"\n />\n @if (col.enableFiltering && col.filterComponent) {\n <ui-popover [closeOnScroll]=\"true\">\n <ui-popover-trigger>\n <button\n class=\"relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground h-8 w-8\"\n [class.text-primary]=\"\n isColumnFilterActive(col)\n \"\n [attr.aria-label]=\"'Filter ' + col.header\"\n >\n @if (isColumnFilterActive(col)) {\n <ui-icon\n name=\"filter\"\n size=\"sm\"\n weight=\"solid\"\n />\n } @else {\n <ui-icon name=\"filter\" size=\"sm\" />\n }\n </button>\n </ui-popover-trigger>\n <ui-popover-content\n class=\"w-80 max-w-[calc(100vw-2rem)]\"\n strategy=\"fixed\"\n align=\"end\"\n >\n <div\n [uiComponentOutlet]=\"col.filterComponent\"\n [inputs]=\"getFilterInputs(col)\"\n [outputs]=\"getFilterOutputs(col)\"\n ></div>\n </ui-popover-content>\n </ui-popover>\n }\n </div>\n } @else {\n <div class=\"flex items-center gap-2\">\n <span>{{ col.header }}</span>\n @if (col.enableFiltering && col.filterComponent) {\n <ui-popover>\n <ui-popover-trigger>\n <button\n class=\"relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground h-8 w-8\"\n [class.text-primary]=\"\n isColumnFilterActive(col)\n \"\n [attr.aria-label]=\"'Filter ' + col.header\"\n >\n @if (isColumnFilterActive(col)) {\n <ui-icon\n name=\"filter\"\n size=\"sm\"\n weight=\"solid\"\n />\n } @else {\n <ui-icon name=\"filter\" size=\"sm\" />\n }\n </button>\n </ui-popover-trigger>\n <ui-popover-content\n class=\"w-80 max-w-[calc(100vw-2rem)]\"\n strategy=\"fixed\"\n align=\"end\"\n >\n <div\n [uiComponentOutlet]=\"col.filterComponent\"\n [inputs]=\"getFilterInputs(col)\"\n [outputs]=\"getFilterOutputs(col)\"\n ></div>\n </ui-popover-content>\n </ui-popover>\n }\n </div>\n }\n </div>\n @if (\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\"\n ) {\n @for (slot of headerActionSlots(); track slot.id) {\n <button\n type=\"button\"\n class=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md opacity-0 group-hover/head:opacity-100 touch-visible hover:bg-accent hover:text-accent-foreground transition-opacity\"\n [attr.aria-label]=\"'Column menu for ' + col.header\"\n (click)=\"slot.onClick($event, col)\"\n >\n <ui-icon [name]=\"slot.icon ?? 'more-vertical'\" size=\"xs\" />\n </button>\n }\n }\n </div>\n @if (\n enableColumnResize() &&\n col.accessorKey !== \"_selection\"\n ) {\n <div\n class=\"group/resize absolute top-0 w-4 h-full cursor-col-resize touch-none z-40 select-none\"\n [class.right-0]=\"!isRtl()\"\n [class.translate-x-1/2]=\"!isRtl()\"\n [class.left-0]=\"isRtl()\"\n [class.-translate-x-1/2]=\"isRtl()\"\n (mousedown)=\"onResizeStart($event, col)\"\n (touchstart)=\"onResizeTouchStart($event, col)\"\n (dblclick)=\"onResizeDoubleClick($event, col)\"\n role=\"separator\"\n [attr.aria-label]=\"'Resize ' + col.header + ' column (double-click to auto-fit)'\"\n >\n <div\n [class]=\"resizeLineClass(col)\"\n aria-hidden=\"true\"\n ></div>\n </div>\n }\n </ui-table-head>\n }\n @if (!hasFlexibleColumns()) {\n <ui-table-head\n role=\"presentation\"\n class=\"flex-1 pointer-events-none\"\n [class]=\"getHeaderClass({ _width: 'auto' })\"\n ></ui-table-head>\n }\n </ui-table-row>\n @if (enableFloatingFilters() && hasAnyFloatingFilter()) {\n <ui-table-row class=\"border-0\">\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-head\n [role]=\"hasFloatingFilter(col) ? 'columnheader' : 'presentation'\"\n [style]=\"getHeaderCellStyle(col)\"\n class=\"sticky top-[var(--header-height,41px)] z-20 bg-muted/50 py-1 px-1 overflow-hidden\"\n >\n @if (\n col.floatingFilter !== false &&\n col.accessorKey !== \"_selection\" &&\n col.accessorKey !== \"_expander\" &&\n col.accessorKey !== \"_actions\"\n ) {\n @if (col.floatingFilterComponent) {\n <div\n [uiComponentOutlet]=\"col.floatingFilterComponent\"\n [inputs]=\"getFilterInputs(col)\"\n [outputs]=\"getFilterOutputs(col)\"\n ></div>\n } @else if (col.floatingFilterTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n col.floatingFilterTemplate;\n context: {\n $implicit: col,\n value: columnFilters()[String(col.accessorKey)],\n change: getFloatingFilterChange(col),\n }\n \"\n ></ng-container>\n } @else if (col.enableFiltering) {\n <ui-input\n class=\"h-7 text-xs\"\n [placeholder]=\"col.header\"\n [ngModel]=\"\n columnFilters()[String(col.accessorKey)] || ''\n \"\n (ngModelChange)=\"\n onColumnFilterChange(col.accessorKey, $event)\n \"\n />\n }\n }\n </ui-table-head>\n }\n @if (!hasFlexibleColumns()) {\n <ui-table-head\n role=\"presentation\"\n class=\"flex-1 pointer-events-none sticky top-[var(--header-height,41px)] z-20 bg-muted/50\"\n ></ui-table-head>\n }\n </ui-table-row>\n }\n </ui-table-header>\n <ui-table-body>\n @if (isVirtualScrollActive()) {\n <div\n [style.height.px]=\"virtualPaddingTop()\"\n class=\"flex-shrink-0\"\n ></div>\n @if (enableSubRows()) {\n @for (\n treeRow of virtualVisibleTreeRows();\n track getRowId()(treeRow.row);\n let i = $index\n ) {\n <ui-table-row\n #virtualRow\n [attr.data-state]=\"\n isRowSelected(treeRow.row) ? 'selected' : null\n \"\n [attr.data-disabled]=\"isDisabled(treeRow.row) || null\"\n [class.opacity-50]=\"isDisabled(treeRow.row)\"\n [attr.data-row-index]=\"getVirtualRowIndex(i)\"\n [attr.data-row-id]=\"getRowId()(treeRow.row)\"\n [attr.data-virtual-row-index]=\"getVirtualRowIndex(i)\"\n [attr.data-depth]=\"treeRow.depth\"\n [attr.aria-level]=\"treeRow.depth + 1\"\n [attr.aria-expanded]=\"\n treeRow.isLeaf ? null : treeRow.isExpanded\n \"\n [style.height.px]=\"\n virtualVariableRowHeight() ? null : virtualRowHeight()\n \"\n class=\"border-0\"\n >\n @for (col of pinnedLeftColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"\n getCellClass(\n col,\n getVirtualRowIndex(i),\n treeRow.depth\n )\n \"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getTreeCellStyle(col, treeRow.depth)\"\n (click)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.enter)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.space)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (dblclick)=\"\n onCellDblClick(getVirtualRowIndex(i), col, $event)\n \"\n (touchend)=\"\n onCellTouchEnd($event, getVirtualRowIndex(i), col)\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: treeRow.row,\n rowIndex: getVirtualRowIndex(i),\n treeRow: treeRow,\n recycle: virtualRecycleComponents(),\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n <div\n [style.min-width.px]=\"virtualPaddingLeft()\"\n class=\"flex-shrink-0\"\n ></div>\n @for (\n col of virtualVisibleMiddleColumns();\n track col.accessorKey\n ) {\n <ui-table-cell\n [class]=\"\n getCellClass(\n col,\n getVirtualRowIndex(i),\n treeRow.depth\n )\n \"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getTreeCellStyle(col, treeRow.depth)\"\n (click)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.enter)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.space)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (dblclick)=\"\n onCellDblClick(getVirtualRowIndex(i), col, $event)\n \"\n (touchend)=\"\n onCellTouchEnd($event, getVirtualRowIndex(i), col)\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: treeRow.row,\n rowIndex: getVirtualRowIndex(i),\n treeRow: treeRow,\n recycle: virtualRecycleComponents(),\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n <div\n [style.min-width.px]=\"virtualPaddingRight()\"\n class=\"flex-shrink-0\"\n ></div>\n @for (col of pinnedRightColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"\n getCellClass(\n col,\n getVirtualRowIndex(i),\n treeRow.depth\n )\n \"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getTreeCellStyle(col, treeRow.depth)\"\n (click)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.enter)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.space)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (dblclick)=\"\n onCellDblClick(getVirtualRowIndex(i), col, $event)\n \"\n (touchend)=\"\n onCellTouchEnd($event, getVirtualRowIndex(i), col)\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: treeRow.row,\n rowIndex: getVirtualRowIndex(i),\n treeRow: treeRow,\n recycle: virtualRecycleComponents(),\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n </ui-table-row>\n }\n } @else {\n @for (\n row of virtualVisibleRows();\n track getRowId()(row);\n let i = $index\n ) {\n <ui-table-row\n #virtualRow\n [attr.data-state]=\"isRowSelected(row) ? 'selected' : null\"\n [attr.data-disabled]=\"isDisabled(row) || null\"\n [class.opacity-50]=\"isDisabled(row)\"\n [class.opacity-30]=\"isRowBeingDragged(row)\"\n [attr.data-row-index]=\"getVirtualRowIndex(i)\"\n [attr.data-row-id]=\"getRowId()(row)\"\n [attr.data-virtual-row-index]=\"getVirtualRowIndex(i)\"\n [attr.draggable]=\"enableRowDrag() && !isDisabled(row) ? 'true' : null\"\n (dragstart)=\"onRowDragStart($event, row)\"\n (dragover)=\"onRowDragOver($event, getVirtualRowIndex(i))\"\n (drop)=\"onRowDrop($event)\"\n (dragend)=\"onRowDragEnd()\"\n [style.height.px]=\"\n virtualVariableRowHeight() ? null : virtualRowHeight()\n \"\n class=\"border-0 relative\"\n >\n @switch (getDropEdge(getVirtualRowIndex(i))) {\n @case ('top') {\n <div class=\"pointer-events-none absolute inset-x-0 top-0 z-30 h-0.5 bg-primary shadow-[0_0_4px_0] shadow-primary\"></div>\n }\n @case ('bottom') {\n <div class=\"pointer-events-none absolute inset-x-0 bottom-0 z-30 h-0.5 bg-primary shadow-[0_0_4px_0] shadow-primary\"></div>\n }\n @case ('on') {\n <div class=\"pointer-events-none absolute inset-0 z-30 border-2 border-primary/50 rounded-sm bg-primary/5\"></div>\n }\n }\n @for (col of pinnedLeftColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"getCellClass(col, getVirtualRowIndex(i))\"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getCellStyle(col)\"\n (click)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.enter)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.space)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (dblclick)=\"\n onCellDblClick(getVirtualRowIndex(i), col, $event)\n \"\n (touchend)=\"\n onCellTouchEnd($event, getVirtualRowIndex(i), col)\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: row,\n rowIndex: getVirtualRowIndex(i),\n treeRow: null,\n recycle: virtualRecycleComponents(),\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n <div\n [style.min-width.px]=\"virtualPaddingLeft()\"\n class=\"flex-shrink-0\"\n ></div>\n @for (\n col of virtualVisibleMiddleColumns();\n track col.accessorKey\n ) {\n <ui-table-cell\n [class]=\"getCellClass(col, getVirtualRowIndex(i))\"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getCellStyle(col)\"\n (click)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.enter)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.space)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (dblclick)=\"\n onCellDblClick(getVirtualRowIndex(i), col, $event)\n \"\n (touchend)=\"\n onCellTouchEnd($event, getVirtualRowIndex(i), col)\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: row,\n rowIndex: getVirtualRowIndex(i),\n treeRow: null,\n recycle: virtualRecycleComponents(),\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n <div\n [style.min-width.px]=\"virtualPaddingRight()\"\n class=\"flex-shrink-0\"\n ></div>\n @for (col of pinnedRightColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"getCellClass(col, getVirtualRowIndex(i))\"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getCellStyle(col)\"\n (click)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.enter)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (keydown.space)=\"\n onCellClick(getVirtualRowIndex(i), col, $event)\n \"\n (dblclick)=\"\n onCellDblClick(getVirtualRowIndex(i), col, $event)\n \"\n (touchend)=\"\n onCellTouchEnd($event, getVirtualRowIndex(i), col)\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: row,\n rowIndex: getVirtualRowIndex(i),\n treeRow: null,\n recycle: virtualRecycleComponents(),\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n </ui-table-row>\n @if (enableRowExpansion() && isRowExpanded(row)) {\n <ui-table-row class=\"border-0 bg-muted/20\">\n <ui-table-cell\n class=\"flex-1 border-b\"\n style=\"min-width: 0; max-width: none; width: 100%; flex-basis: 100%;\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n rowDetailTpl;\n context: { $implicit: row }\n \"\n ></ng-container>\n </ui-table-cell>\n </ui-table-row>\n }\n }\n }\n @if (virtualTotalRows() === 0) {\n <ng-container *ngTemplateOutlet=\"emptyStateTpl\"></ng-container>\n }\n <div\n [style.height.px]=\"virtualPaddingBottom()\"\n class=\"flex-shrink-0\"\n ></div>\n } @else if (enableSubRows()) {\n @if (processedTreeRows().length > 0) {\n @for (\n treeRow of processedTreeRows();\n track getRowId()(treeRow.row);\n let i = $index\n ) {\n <ui-table-row\n [attr.data-state]=\"isRowSelected(treeRow.row) ? 'selected' : null\"\n [attr.data-disabled]=\"isDisabled(treeRow.row) || null\"\n [class.opacity-50]=\"isDisabled(treeRow.row)\"\n [class.opacity-30]=\"isRowBeingDragged(treeRow.row)\"\n [class.ring-2]=\"isRowBeingDragged(treeRow.row)\"\n [class.ring-primary/30]=\"isRowBeingDragged(treeRow.row)\"\n [class.ring-inset]=\"isRowBeingDragged(treeRow.row)\"\n [class.bg-primary/5]=\"isRowBeingDragged(treeRow.row)\"\n [attr.data-row-index]=\"i\"\n [attr.data-row-id]=\"getRowId()(treeRow.row)\"\n [attr.data-depth]=\"treeRow.depth\"\n [attr.aria-level]=\"treeRow.depth + 1\"\n [attr.aria-expanded]=\"treeRow.isLeaf ? null : treeRow.isExpanded\"\n [attr.draggable]=\"enableRowDrag() && !isDisabled(treeRow.row) ? 'true' : null\"\n (dragstart)=\"onRowDragStart($event, treeRow.row)\"\n (dragover)=\"onRowDragOver($event, i)\"\n (drop)=\"onRowDrop($event)\"\n (dragend)=\"onRowDragEnd()\"\n class=\"border-0 relative\"\n >\n @switch (getDropEdge(i)) {\n @case ('top') {\n <div class=\"pointer-events-none absolute inset-x-0 top-0 z-30 h-0.5 bg-primary shadow-[0_0_4px_0] shadow-primary\"></div>\n }\n @case ('bottom') {\n <div class=\"pointer-events-none absolute inset-x-0 bottom-0 z-30 h-0.5 bg-primary shadow-[0_0_4px_0] shadow-primary\"></div>\n }\n @case ('on') {\n <div class=\"pointer-events-none absolute inset-0 z-30 border-2 border-primary/50 rounded-sm bg-primary/5\"></div>\n }\n }\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"getCellClass(col, i, treeRow.depth)\"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getTreeCellStyle(col, treeRow.depth)\"\n (click)=\"onCellClick(i, col, $event)\"\n (keydown.enter)=\"onCellClick(i, col, $event)\"\n (keydown.space)=\"onCellClick(i, col, $event)\"\n (dblclick)=\"onCellDblClick(i, col, $event)\"\n (touchend)=\"onCellTouchEnd($event, i, col)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: treeRow.row,\n rowIndex: i,\n treeRow: treeRow,\n recycle: false,\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n @if (!hasFlexibleColumns()) {\n <ui-table-cell\n class=\"flex-1 pointer-events-none\"\n [class]=\"getCellClass({ _width: 'auto' })\"\n ></ui-table-cell>\n }\n </ui-table-row>\n @if (enableRowExpansion() && isRowExpanded(treeRow.row)) {\n <ui-table-row class=\"border-0 bg-muted/20\">\n <ui-table-cell\n class=\"flex-1 border-b\"\n style=\"min-width: 0; max-width: none; width: 100%; flex-basis: 100%;\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n rowDetailTpl;\n context: { $implicit: treeRow.row }\n \"\n ></ng-container>\n </ui-table-cell>\n </ui-table-row>\n }\n }\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyStateTpl\"></ng-container>\n }\n } @else if (groupingActive()) {\n @if (pagedGroupedDisplayRows().length > 0) {\n @for (\n displayRow of pagedGroupedDisplayRows();\n track groupTrackBy(displayRow);\n let i = $index\n ) {\n @if (isGroupRow(displayRow)) {\n <ui-table-row\n class=\"border-0 bg-muted/40 cursor-pointer select-none\"\n data-slot=\"table-group-row\"\n [attr.data-group-key]=\"displayRow.groupKey\"\n [attr.aria-expanded]=\"!displayRow.collapsed\"\n (click)=\"toggleGroupCollapsed(displayRow.groupKey)\"\n (keydown.enter)=\"toggleGroupCollapsed(displayRow.groupKey)\"\n (keydown.space)=\"toggleGroupCollapsed(displayRow.groupKey)\"\n >\n <ui-table-cell\n class=\"flex-1 border-b font-medium\"\n style=\"min-width: 0; max-width: none; width: 100%; flex-basis: 100%;\"\n >\n <div class=\"flex flex-wrap items-center gap-2\">\n <button\n type=\"button\"\n class=\"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground\"\n [attr.aria-label]=\"\n displayRow.collapsed ? 'Expand group' : 'Collapse group'\n \"\n (click)=\"\n $event.stopPropagation();\n toggleGroupCollapsed(displayRow.groupKey)\n \"\n >\n <ui-icon\n [name]=\"isRtl() ? 'chevron-left' : 'chevron-right'\"\n size=\"xs\"\n class=\"transition-transform duration-200\"\n [class.rotate-90]=\"!displayRow.collapsed && !isRtl()\"\n [class.-rotate-90]=\"!displayRow.collapsed && isRtl()\"\n />\n </button>\n <span class=\"truncate\">{{ groupRowValueLabel(displayRow) }}</span>\n <span class=\"text-xs text-muted-foreground\">({{ displayRow.count }})</span>\n @if (groupAggregates()) {\n @for (entry of displayRow.aggregates | keyvalue: keepGroupAggregateOrder; track entry.key) {\n <span class=\"text-xs text-muted-foreground\">\n {{ groupAggregateLabel(entry.key) }}: {{ entry.value }}\n </span>\n }\n }\n </div>\n </ui-table-cell>\n </ui-table-row>\n } @else {\n <ui-table-row\n [attr.data-state]=\"isRowSelected(displayRow.row) ? 'selected' : null\"\n [attr.data-disabled]=\"isDisabled(displayRow.row) || null\"\n [class.opacity-50]=\"isDisabled(displayRow.row)\"\n [attr.data-row-id]=\"getRowId()(displayRow.row)\"\n data-slot=\"table-group-data-row\"\n class=\"border-0\"\n >\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"getCellClass(col, i)\"\n [attr.data-column]=\"String(col.accessorKey)\"\n [style]=\"getCellStyle(col)\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n cellTpl;\n context: {\n $implicit: col,\n row: displayRow.row,\n rowIndex: i,\n treeRow: null,\n recycle: false,\n }\n \"\n ></ng-container>\n </ui-table-cell>\n }\n @if (!hasFlexibleColumns()) {\n <ui-table-cell\n class=\"flex-1 pointer-events-none\"\n [class]=\"getCellClass({ _width: 'auto' })\"\n ></ui-table-cell>\n }\n </ui-table-row>\n }\n }\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyStateTpl\"></ng-container>\n }\n } @else if (processedData().length > 0) {\n @for (\n row of (dragPreviewData() ?? processedData());\n track getRowId()(row);\n let i = $index\n ) {\n @if (isFullWidthRow(row)) {\n <ui-table-row\n [attr.data-state]=\"isRowSelected(row) ? 'selected' : null\"\n [attr.data-disabled]=\"isDisabled(row) || null\"\n [class.opacity-50]=\"isDisabled(row)\"\n [attr.data-row-index]=\"i\"\n [attr.data-row-id]=\"getRowId()(row)\"\n class=\"border-0\"\n >\n <ui-table-cell\n class=\"flex-1 border-b\"\n style=\"min-width: 0; max-width: none; width: 100%; flex-basis: 100%;\"\n >\n @if (fullWidthRowTemplate()) {\n <ng-container\n *ngTemplateOutlet=\"\n fullWidthRowTemplate();\n context: { $implicit: row, index: i }\n \"\n ></ng-container>\n } @else if (fullWidthRowComponent()) {\n <div\n [uiComponentOutlet]=\"fullWidthRowComponent()!\"\n [inputs]=\"{ row: row, index: i }\"\n ></div>\n }\n </ui-table-cell>\n </ui-table-row>\n } @else {\n <ui-table-row\n [attr.data-state]=\"isRowSelected(row) ? 'selected' : null\"\n [attr.data-disabled]=\"isDisabled(row) || null\"\n [class.opacity-50]=\"isDisabled(row)\"\n [class.opacity-30]=\"isRowBeingDragged(row)\"\n [class.ring-2]=\"isRowBeingDragged(row)\"\n [class.ring-primary/30]=\"isRowBeingDragged(row)\"\n [class.ring-inset]=\"isRowBeingDragged(row)\"\n [class.bg-primary/5]=\"isRowBeingDragged(row)\"\n [attr.data-row-index]=\"i\"\n [attr.data-row-id]=\"getRowId()(row)\"\n [attr.draggable]=\"enableRowDrag() && !isDisabled(row) ? 'true' : null\"\n (dragstart)=\"onRowDragStart($event, row)\"\n (dragover)=\"onRowDragOver($event, i)\"\n (drop)=\"onRowDrop($event)\"\n (dragend)=\"onRowDragEnd()\"\n class=\"border-0\"\n >\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-cell [class]=\"getCellClass(col, i)\" [attr.data-column]=\"String(col.accessorKey)\" [style]=\"getCellStyle(col)\" (click)=\"onCellClick(i, col, $event)\" (keydown.enter)=\"onCellClick(i, col, $event)\" (keydown.space)=\"onCellClick(i, col, $event)\" (dblclick)=\"onCellDblClick(i, col, $event)\" (touchend)=\"onCellTouchEnd($event, i, col)\">\n <ng-container *ngTemplateOutlet=\"cellTpl; context: { $implicit: col, row: row, rowIndex: i, treeRow: null, recycle: false }\"></ng-container>\n </ui-table-cell>\n }\n @if (!hasFlexibleColumns()) {\n <ui-table-cell class=\"flex-1 pointer-events-none\" [class]=\"getCellClass({ _width: 'auto' })\"></ui-table-cell>\n }\n </ui-table-row>\n @if (enableRowExpansion() && isRowExpanded(row)) {\n <ui-table-row class=\"border-0 bg-muted/20\">\n <ui-table-cell class=\"flex-1 border-b\" style=\"min-width: 0; max-width: none; width: 100%; flex-basis: 100%;\">\n <ng-container *ngTemplateOutlet=\"rowDetailTpl; context: { $implicit: row }\"></ng-container>\n </ui-table-cell>\n </ui-table-row>\n }\n }\n }\n } @else {\n <ng-container *ngTemplateOutlet=\"emptyStateTpl\"></ng-container>\n }\n <!-- A spacer that stretches the body to fill the container. It holds\n no data and cannot be reached, so it is hidden from assistive\n tech rather than counted as a row of the grid. -->\n <ui-table-row class=\"h-full\" aria-hidden=\"true\">\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-cell\n [class]=\"getCellClass(col)\"\n [style]=\"getCellStyle(col)\"\n class=\"bg-background border-0 p-0\"\n ></ui-table-cell>\n }\n </ui-table-row>\n </ui-table-body>\n @if (hasFooter()) {\n <div\n class=\"sticky bottom-0 z-20 bg-background border-t\"\n data-slot=\"table-footer\"\n >\n <ui-table-row>\n @for (col of enhancedColumns(); track col.accessorKey) {\n <ui-table-cell\n [style]=\"getCellStyle(col)\"\n class=\"whitespace-nowrap overflow-hidden text-ellipsis text-sm font-medium text-muted-foreground\"\n >\n @if (col.footerComponent) {\n <div\n [uiComponentOutlet]=\"col.footerComponent\"\n [inputs]=\"{\n column: col,\n rows: filteredData(),\n value:\n footerValues().get(String(col.accessorKey)) || '',\n }\"\n ></div>\n } @else if (col.footerTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n col.footerTemplate;\n context: {\n $implicit: col,\n rows: filteredData(),\n value:\n footerValues().get(String(col.accessorKey)) || '',\n }\n \"\n ></ng-container>\n } @else {\n {{ footerValues().get(String(col.accessorKey)) || \"\" }}\n }\n </ui-table-cell>\n }\n @if (!hasFlexibleColumns()) {\n <ui-table-cell\n class=\"flex-1 pointer-events-none\"\n ></ui-table-cell>\n }\n </ui-table-row>\n </div>\n }\n </ui-table>\n\n @if (enableFillHandle() && fillHandlePosition(); as pos) {\n <span\n data-slot=\"fill-handle\"\n class=\"absolute z-20 h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 cursor-crosshair rounded-[2px] border border-background bg-primary\"\n style=\"touch-action: none;\"\n aria-hidden=\"true\"\n [style.top.px]=\"pos.top\"\n [style.left.px]=\"pos.left\"\n (mousedown)=\"onFillHandleStart($event)\"\n (touchstart)=\"onFillHandleStart($event)\"\n ></span>\n }\n\n @if (enableRangeActions() && rangeSelectionStats(); as stats) {\n <div\n data-slot=\"range-actions\"\n class=\"sticky bottom-0 z-20 flex max-w-[calc(100vw-2rem)] flex-wrap items-center gap-x-4 gap-y-1 border-t bg-background/95 px-3 py-1.5 text-xs backdrop-blur-sm\"\n >\n <span class=\"text-muted-foreground\">{{ rangeLabels().count }}: <span class=\"text-foreground font-medium\">{{ stats.count }}</span></span>\n @if (stats.numericCount > 0) {\n <span class=\"text-muted-foreground\">{{ rangeLabels().sum }}: <span class=\"text-foreground font-medium\">{{ stats.sum }}</span></span>\n <span class=\"text-muted-foreground\">{{ rangeLabels().avg }}: <span class=\"text-foreground font-medium\">{{ stats.avg }}</span></span>\n <span class=\"text-muted-foreground\">{{ rangeLabels().min }}: <span class=\"text-foreground font-medium\">{{ stats.min }}</span></span>\n <span class=\"text-muted-foreground\">{{ rangeLabels().max }}: <span class=\"text-foreground font-medium\">{{ stats.max }}</span></span>\n @if (rangeChartPayload()) {\n <ui-button\n size=\"sm\"\n variant=\"outline\"\n class=\"ms-auto h-6 px-2\"\n [ariaLabel]=\"rangeLabels().chart\"\n (click)=\"openRangeChart()\"\n >\n <ui-icon name=\"bar-chart-3\" size=\"xs\" class=\"me-1\" />{{ rangeLabels().chart }}\n </ui-button>\n }\n }\n </div>\n }\n </div>\n\n @if (showPagination()) {\n <ui-data-table-pagination\n class=\"flex-none\"\n [total]=\"activeTotalItems()\"\n [state]=\"paginationState()\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [showPageSizeSelector]=\"showPageSizeSelector()\"\n [rowsPerPageLabel]=\"rowsPerPageLabel()\"\n [pageLabel]=\"pageLabel()\"\n [ofLabel]=\"ofLabel()\"\n (paginationChange)=\"onPaginationChange($event)\"\n />\n }\n </div>\n } <!-- end @else skeleton -->\n","/**\n * Local helpers for `CommandService`. Pure functions kept out of the component\n * file for readability, mirroring `color-picker.utils.ts`.\n *\n * Every storage access is wrapped: `localStorage` throws outright in some\n * privacy modes and sandboxed iframes, and a command palette must degrade to\n * non-persistent recents rather than take the page down with it.\n */\n\nconst STORAGE_PREFIX = 'ui-command:';\n\n/** Read the persisted recent-values list for `storageKey`. `[]` for a null key or unreadable storage. */\nexport function readRecentValues(storageKey: string | null, max: number): string[] {\n if (!storageKey) return [];\n try {\n const raw = globalThis.localStorage?.getItem(STORAGE_PREFIX + storageKey);\n if (!raw) return [];\n const parsed: unknown = JSON.parse(raw);\n if (!Array.isArray(parsed)) return [];\n return parsed.filter((v): v is string => typeof v === 'string').slice(0, max);\n } catch {\n return [];\n }\n}\n\n/** Persist the recent-values list for `storageKey`. No-op for a null key. */\nexport function writeRecentValues(storageKey: string | null, values: readonly string[]): void {\n if (!storageKey) return;\n try {\n globalThis.localStorage?.setItem(STORAGE_PREFIX + storageKey, JSON.stringify(values));\n } catch {\n /* swallow quota / privacy-mode errors — persistence is best-effort */\n }\n}\n\n/** Push `value` onto the front of the list, dropping any earlier occurrence, capped at `max`. */\nexport function unshiftUniqueValue(values: readonly string[], value: string, max: number): string[] {\n return [value, ...values.filter(v => v !== value)].slice(0, Math.max(0, max));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n signal,\n inject,\n effect,\n Injectable,\n DestroyRef,\n untracked,\n} from '@angular/core';\nimport { cn } from '../../lib/utils';\nimport type { CommandPage, CommandResult, CommandSource } from './command.types';\nimport { readRecentValues, unshiftUniqueValue, writeRecentValues } from './command.utils';\n\nexport const COMMAND_DIALOG_SHORTCUT_DEFINITIONS = [\n {\n actionId: 'command-dialog.toggle',\n description: 'Toggle command dialog',\n defaultShortcut: 'Mod+K',\n category: 'Navigation',\n scope: 'global' as const,\n },\n];\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CommandService {\n search = signal('');\n shouldFilter = signal(true);\n\n private readonly items = signal<Map<string, { value: string; groupId?: string; onSelect: () => void }>>(new Map());\n activeItemId = signal<string | null>(null);\n\n /** Async row provider, set from `ui-command`'s `source` input. `null` (default) leaves the palette purely projection-driven. */\n readonly source = signal<CommandSource | null>(null);\n /** Milliseconds of quiet typing before {@link source} is called. `0` calls it on every keystroke. */\n readonly debounceMs = signal(200);\n\n private readonly _results = signal<readonly CommandResult[]>([]);\n /** Rows returned by the most recent non-stale {@link source} call. Always `[]` when no source is set. */\n readonly results = this._results.asReadonly();\n\n private readonly _isLoading = signal(false);\n /** `true` from the moment a query is scheduled until its answer lands (or is superseded). */\n readonly isLoading = this._isLoading.asReadonly();\n\n private readonly _sourceError = signal<unknown>(null);\n /** Whatever the last {@link source} call threw, or `null`. A source that throws clears the results rather than propagating. */\n readonly sourceError = this._sourceError.asReadonly();\n\n /** Values recently selected, newest first. Fed to a \"Recent\" group while the query is empty. */\n readonly recents = signal<readonly string[]>([]);\n /** localStorage key for {@link recents}. `null` (default) keeps them in memory for the session only. */\n readonly recentKey = signal<string | null>(null);\n /** How many {@link recents} to keep. */\n readonly recentLimit = signal(5);\n\n /** `true` when the query is empty and there is at least one recent — the cue to render the \"Recent\" group. */\n readonly showRecents = computed(() => this.search().trim() === '' && this.recents().length > 0);\n\n private readonly _pages = signal<readonly CommandPage[]>([]);\n /** The drill-down stack, root-first. Empty at the top level. */\n readonly pages = this._pages.asReadonly();\n /** The page currently shown, or `null` at the top level. */\n readonly currentPage = computed(() => this._pages().at(-1) ?? null);\n\n private queryToken = 0;\n private debounceHandle: ReturnType<typeof setTimeout> | null = null;\n private controller: AbortController | null = null;\n\n constructor() {\n effect(() => {\n const visibleIds = this.filteredItemIds();\n const active = this.activeItemId();\n if (active && !visibleIds.has(active)) {\n const first = this.filteredItems()[0];\n this.activeItemId.set(first || null);\n }\n }, { allowSignalWrites: true });\n\n // Depends on `recentKey` ALONE. Reading `recentLimit()` here would make a\n // runtime limit change re-hydrate, and with no key that means\n // `readRecentValues(null, …)` — i.e. wiping the in-memory list the user\n // just built.\n effect(() => {\n const key = this.recentKey();\n untracked(() => {\n if (key === null) return;\n this.recents.set(readRecentValues(key, this.recentLimit()));\n });\n });\n\n effect(() => {\n const source = this.source();\n const query = this.search();\n const wait = this.debounceMs();\n untracked(() => this.scheduleQuery(source, query, wait));\n });\n\n inject(DestroyRef).onDestroy(() => this.cancelQuery());\n }\n\n /**\n * Records `value` as recently used: newest first, de-duplicated, capped at\n * {@link recentLimit}, and persisted when {@link recentKey} is set. Called by\n * `ui-command-item` on every activation, so the common case needs no wiring.\n */\n markRecent(value: string): void {\n if (!value) return;\n const next = unshiftUniqueValue(this.recents(), value, this.recentLimit());\n this.recents.set(next);\n writeRecentValues(this.recentKey(), next);\n }\n\n /** Empties {@link recents} and the persisted copy under {@link recentKey}. */\n clearRecents(): void {\n this.recents.set([]);\n writeRecentValues(this.recentKey(), []);\n }\n\n /** Opens a nested page. The query is cleared so the new level starts unfiltered. */\n pushPage(page: CommandPage): void {\n this._pages.update(stack => [...stack, page]);\n this.search.set('');\n this.activeItemId.set(null);\n }\n\n /** Returns to the parent page. Returns `false` when already at the top level. */\n popPage(): boolean {\n if (this._pages().length === 0) return false;\n this._pages.update(stack => stack.slice(0, -1));\n this.search.set('');\n this.activeItemId.set(null);\n return true;\n }\n\n /** Returns straight to the top level from any depth. */\n resetPages(): void {\n if (this._pages().length === 0) return;\n this._pages.set([]);\n this.search.set('');\n this.activeItemId.set(null);\n }\n\n private scheduleQuery(source: CommandSource | null, query: string, wait: number): void {\n this.cancelQuery();\n const token = ++this.queryToken;\n\n if (!source) {\n this._results.set([]);\n this._isLoading.set(false);\n this._sourceError.set(null);\n return;\n }\n\n this._isLoading.set(true);\n if (wait <= 0) {\n void this.runQuery(source, query, token);\n return;\n }\n this.debounceHandle = setTimeout(() => {\n this.debounceHandle = null;\n void this.runQuery(source, query, token);\n }, wait);\n }\n\n private async runQuery(source: CommandSource, query: string, token: number): Promise<void> {\n const controller = new AbortController();\n this.controller = controller;\n try {\n const rows = await source(query, controller.signal);\n if (token !== this.queryToken) return;\n this._results.set(rows);\n this._sourceError.set(null);\n } catch (error) {\n if (token !== this.queryToken) return;\n this._results.set([]);\n this._sourceError.set(error);\n } finally {\n if (token === this.queryToken) this._isLoading.set(false);\n }\n }\n\n private cancelQuery(): void {\n if (this.debounceHandle !== null) {\n clearTimeout(this.debounceHandle);\n this.debounceHandle = null;\n }\n this.controller?.abort();\n this.controller = null;\n }\n\n /**\n * Adds an item to the palette. Called by `ui-command-item` from `ngOnInit`,\n * so registration order — and therefore the order {@link moveNext} walks —\n * is DOM order, not the order items appear in a group. The snapshot is\n * taken once: changing an item's `value` afterwards does not re-register it,\n * so {@link filteredItems} keeps matching the original value.\n * @param id Stable per-item id from `generateId()`; also the key of {@link activeItemId}.\n * @param value Lowercased substring-matched against {@link search}; an empty\n * value means the item is filtered out as soon as the user types anything.\n * @param groupId Owning `ui-command-group` id, used by {@link visibleGroupIds}\n * to hide groups whose every item was filtered away.\n * @param onSelect Invoked by {@link selectActive} on Enter; the item wires this\n * to its own click handler, so `disabled` items no-op here.\n */\n register(id: string, value: string, groupId?: string, onSelect: () => void = () => { }): void {\n this.items.update(m => {\n const newMap = new Map(m);\n newMap.set(id, { value, groupId, onSelect });\n return newMap;\n });\n }\n\n /**\n * Removes an item, called from the item's `ngOnDestroy`. If the removed item\n * was active the constructor effect re-points {@link activeItemId} at the\n * first still-visible item, so the highlight never dangles.\n */\n unregister(id: string): void {\n this.items.update(m => {\n const newMap = new Map(m);\n newMap.delete(id);\n return newMap;\n });\n }\n\n filteredItems = computed(() => {\n if (!this.shouldFilter()) {\n return Array.from(this.items().keys());\n }\n const query = this.search().toLowerCase().trim();\n const itemMap = this.items();\n const results: string[] = [];\n\n for (const [id, item] of itemMap.entries()) {\n if (!query || item.value.toLowerCase().includes(query)) {\n results.push(id);\n }\n }\n return results;\n });\n\n filteredItemIds = computed(() => new Set(this.filteredItems()));\n\n visibleGroupIds = computed(() => {\n const visibleItems = this.filteredItems();\n const itemMap = this.items();\n const groups = new Set<string>();\n\n for (const id of visibleItems) {\n const item = itemMap.get(id);\n if (item?.groupId) {\n groups.add(item.groupId);\n }\n }\n return groups;\n });\n\n /**\n * Moves the highlight to the next item currently passing the filter, wrapping\n * from the last back to the first. Bound to ArrowDown by `ui-command-input`.\n * With nothing active it starts at the first item. `disabled` items are *not*\n * skipped — they can become active, and Enter on one simply does nothing.\n */\n moveNext(): void {\n const items = this.filteredItems();\n if (!items.length) return;\n const current = this.activeItemId();\n const idx = current ? items.indexOf(current) : -1;\n const nextIdx = (idx + 1) % items.length;\n this.activeItemId.set(items[nextIdx]);\n }\n\n /**\n * Mirror of {@link moveNext} for ArrowUp: steps backwards through the filtered\n * items and wraps from the first to the last. With nothing active it lands on\n * the second-to-last item (the no-active index is `-1`, so it steps to `-2`),\n * not the last.\n */\n movePrev(): void {\n const items = this.filteredItems();\n if (!items.length) return;\n const current = this.activeItemId();\n const idx = current ? items.indexOf(current) : -1;\n const prevIdx = (idx - 1 + items.length) % items.length;\n this.activeItemId.set(items[prevIdx]);\n }\n\n /**\n * Runs the `onSelect` callback of the highlighted item — the Enter key path.\n * A no-op when nothing is active or when the active item has since been\n * filtered out. Because the callback is the item's own click handler, a\n * `disabled` item consumes the Enter silently instead of emitting `selectItem`.\n */\n selectActive(): void {\n const activeId = this.activeItemId();\n if (activeId) {\n\n if (!this.filteredItemIds().has(activeId)) return;\n\n const item = this.items().get(activeId);\n item?.onSelect();\n }\n }\n}\n\nexport function generateId(): string {\n return Math.random().toString(36).substring(2, 9);\n}\n\n@Component({\n selector: 'ui-command',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [CommandService],\n template: `\n <div [class]=\"classes()\" [attr.data-slot]=\"'command'\">\n <ng-content />\n </div>\n `,\n host: { class: 'contents' },\n})\nexport class CommandComponent {\n /** Merged onto the palette shell (`flex h-full w-full flex-col rounded-md bg-popover`); use it to set a height or width, since the shell only fills its parent. */\n class = input('');\n /**\n * When `true` (default) items are shown only while their `value` contains the\n * current {@link search} text, and groups with no surviving item hide too.\n * Set `false` to take over filtering yourself — every registered item then\n * stays visible and arrow-key navigation walks all of them.\n */\n shouldFilter = input(true);\n /**\n * Controlled search text. Leave at `null` (default) to let `ui-command-input`\n * own the query; any non-null value is pushed into the shared state on every\n * change, overriding what the user typed.\n */\n search = input<string | null>(null);\n\n /**\n * Async row provider — a server-side search, typically. Leave `null`\n * (default) and the palette stays purely projection-driven, exactly as\n * before. When set, calls are debounced by {@link debounce} and any answer a\n * newer keystroke has superseded is discarded, so results can never go\n * backwards; the superseded call's `AbortSignal` is aborted too. Read the\n * rows from {@link results} and render them as `ui-command-item`s yourself,\n * which keeps the item API — filtering, highlight, shortcuts — unchanged.\n *\n * **Set `[shouldFilter]=\"false\"` when the source already filters.** It\n * defaults to `true`, which re-filters the rendered items client-side against\n * the same query — so a server result whose `value` does not contain the\n * typed text (a fuzzy match, a synonym, an id lookup) is fetched and then\n * silently hidden. That is the usual reason an async palette \"returns\n * nothing\".\n */\n readonly source = input<CommandSource | null>(null);\n /** Milliseconds of quiet typing before {@link source} is called. `0` calls it on every keystroke. */\n readonly debounce = input(200);\n /**\n * localStorage key for the recently-selected list. `null` (default) keeps\n * recents in memory for the session — the developer keeps full control by\n * reading {@link recents} and writing their own store instead.\n */\n readonly recentKey = input<string | null>(null);\n /** How many recently-selected values to keep. */\n readonly recentLimit = input(5);\n\n private readonly service = inject(CommandService);\n\n /** Rows from the latest non-stale {@link source} call. `[]` when no source is set. */\n readonly results = this.service.results;\n /** `true` while a {@link source} query is scheduled or in flight. */\n readonly isLoading = this.service.isLoading;\n /** Whatever the last {@link source} call threw, or `null`. */\n readonly sourceError = this.service.sourceError;\n /** Recently-selected values, newest first. */\n readonly recents = this.service.recents;\n /** `true` when the query is empty and there is at least one recent — render the \"Recent\" group on this. */\n readonly showRecents = this.service.showRecents;\n /** The drill-down page stack, root-first. Empty at the top level. */\n readonly pages = this.service.pages;\n /** The page currently shown, or `null` at the top level. Switch your template on `page()?.id`. */\n readonly page = this.service.currentPage;\n\n constructor() {\n effect(() => {\n this.service.shouldFilter.set(this.shouldFilter());\n }, { allowSignalWrites: true });\n\n effect(() => {\n const s = this.search();\n if (s !== null) {\n this.service.search.set(s);\n }\n }, { allowSignalWrites: true });\n\n effect(() => {\n this.service.source.set(this.source());\n this.service.debounceMs.set(this.debounce());\n this.service.recentKey.set(this.recentKey());\n this.service.recentLimit.set(this.recentLimit());\n });\n }\n\n /**\n * Opens a nested page — the drill-down \"submenu\" pattern. The query is\n * cleared so the new level starts unfiltered. Escape (or Backspace on an\n * empty query) in `ui-command-input` returns to the parent.\n */\n pushPage(page: CommandPage): void {\n this.service.pushPage(page);\n }\n\n /** Returns to the parent page. Returns `false` when already at the top level. */\n popPage(): boolean {\n return this.service.popPage();\n }\n\n /** Returns straight to the top level from any depth. */\n resetPages(): void {\n this.service.resetPages();\n }\n\n /** Records a value as recently used. `ui-command-item` calls this itself on activation. */\n markRecent(value: string): void {\n this.service.markRecent(value);\n }\n\n /** Empties the recents list and its persisted copy. */\n clearRecents(): void {\n this.service.clearRecents();\n }\n\n classes = computed(() => cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',\n this.class()\n ));\n\n /**\n * Imperative escape hatch — delegates to {@link CommandService.moveNext} so a\n * host that renders its own search field (instead of `ui-command-input`) can\n * drive ArrowDown itself. Same wrapping and same non-skipping of `disabled`.\n */\n moveNext(): void {\n this.service.moveNext();\n }\n\n /** Template-ref counterpart of {@link moveNext}, delegating to {@link CommandService.movePrev} for ArrowUp. */\n movePrev(): void {\n this.service.movePrev();\n }\n\n /** Template-ref counterpart of {@link moveNext} for Enter, delegating to {@link CommandService.selectActive}. */\n selectActive(): void {\n this.service.selectActive();\n }\n}\n","/**\n * Public types for `ui-command`. Kept in a dedicated file so consumers can\n * import them without pulling in the component's runtime imports.\n */\n\n/** One row produced by a {@link CommandSource}. */\nexport interface CommandResult {\n /** Stable identity for `@for … track`. */\n readonly id: string;\n /** Text the row is selected by, and the payload `ui-command-item` emits. */\n readonly value: string;\n /** Display text, when it differs from {@link value}. */\n readonly label?: string;\n /** Optional grouping key the consumer can bucket rows by. */\n readonly group?: string;\n /** Whatever the consumer needs on select — the original record, a route, an id. */\n readonly data?: unknown;\n}\n\n/**\n * An async row provider — typically a server-side search.\n *\n * The palette debounces calls and discards the answer of any call that a newer\n * keystroke has superseded, so results can never go backwards. `signal` is\n * aborted the moment a call is superseded or the palette is destroyed: pass it\n * to `fetch` and the stale request is cancelled on the wire, not just ignored.\n *\n * Throwing (or rejecting) is fine — the palette clears the results and exposes\n * the error on `sourceError()` rather than letting it escape.\n *\n * @example\n * ```ts\n * readonly search: CommandSource = async (query, signal) => {\n * const res = await fetch(`/api/search?q=${encodeURIComponent(query)}`, { signal });\n * const rows: { id: string; name: string }[] = await res.json();\n * return rows.map(r => ({ id: r.id, value: r.name, data: r }));\n * };\n * ```\n */\nexport type CommandSource = (query: string, signal: AbortSignal) => Promise<readonly CommandResult[]>;\n\n/** One level of the palette's page stack — a drill-down \"submenu\". */\nexport interface CommandPage {\n /** Identifies the page; the consumer switches its template on this. */\n readonly id: string;\n /** Human-readable name for a breadcrumb or back button. */\n readonly label?: string;\n /** Anything the page's template needs — the record being drilled into, for instance. */\n readonly data?: unknown;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n OnInit,\n ViewChild,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleBindings, type LocaleInput } from '../../../lib/i18n';\nimport { COMMON_LOCALES, type CommonLocale } from '../../../lib/i18n/common.locales';\nimport { CommandService } from '../command.component';\n\n@Component({\n selector: 'ui-command-input',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"flex items-center border-b px-3\" [attr.data-slot]=\"'command-input'\" [attr.dir]=\"dir()\">\n <svg class=\"h-4 w-4 shrink-0 opacity-50 ltr:mr-2 rtl:ml-2\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" />\n </svg>\n <input\n #inputEl\n [class]=\"inputClasses()\"\n [placeholder]=\"placeholder() ?? t().searchPlaceholder\"\n [value]=\"cmdService.search()\"\n [attr.aria-label]=\"ariaLabel() ?? t().search\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n </div>\n `,\n host: { class: 'contents' },\n})\nexport class CommandInputComponent implements OnInit {\n @ViewChild('inputEl') inputEl!: ElementRef<HTMLInputElement>;\n readonly cmdService = inject(CommandService);\n\n /** Override for the placeholder. Falls back to the locale's `searchPlaceholder`. */\n readonly placeholder = input<string>();\n /** Override for the aria-label. Falls back to the locale's `search`. */\n readonly ariaLabel = input<string>();\n /**\n * Seed query, applied to the shared search state once in `ngOnInit` and only\n * when non-empty — later changes to this input are ignored. Bind\n * `search` on the parent `ui-command` for a genuinely controlled query.\n */\n readonly value = input<string>('');\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<CommonLocale>>();\n private readonly i18n = createLocaleBindings(this.locale, COMMON_LOCALES);\n protected readonly t = this.i18n.t;\n protected readonly dir = this.i18n.dir;\n\n ngOnInit(): void {\n if (this.value()) {\n this.cmdService.search.set(this.value());\n }\n }\n\n inputClasses = computed(() => cn(\n 'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none',\n 'placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50'\n ));\n\n /**\n * Native `input` handler: publishes the typed text as the palette's search\n * query and resets the highlight to the first surviving item (or clears it\n * when nothing matches), so Enter never fires a result the user scrolled past\n * before refining the query.\n */\n onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.cmdService.search.set(value);\n if (this.cmdService.filteredItems().length > 0) {\n this.cmdService.activeItemId.set(this.cmdService.filteredItems()[0]);\n } else {\n this.cmdService.activeItemId.set(null);\n }\n }\n\n /**\n * Keyboard driver for the palette: ArrowDown/ArrowUp move the highlight\n * through the filtered items (wrapping at both ends) and Enter activates the\n * highlighted one. All three call `preventDefault()`, so the caret never\n * jumps within the text and Enter never submits a surrounding form. Every\n * other key falls through to normal typing.\n *\n * While a nested page is open, Escape and Backspace-on-an-empty-query go\n * *back* one level instead: both `preventDefault()` **and**\n * `stopPropagation()`, so the first Escape leaves the submenu rather than\n * closing the whole dialog. At the top level neither key is intercepted, so\n * Escape still closes `ui-command-dialog` exactly as before.\n */\n onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.cmdService.moveNext();\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n this.cmdService.movePrev();\n } else if (event.key === 'Enter') {\n event.preventDefault();\n this.cmdService.selectActive();\n } else if (this.shouldGoBack(event)) {\n event.preventDefault();\n event.stopPropagation();\n this.cmdService.popPage();\n }\n }\n\n private shouldGoBack(event: KeyboardEvent): boolean {\n if (this.cmdService.currentPage() === null) return false;\n if (event.key === 'Escape') return true;\n return event.key === 'Backspace' && this.cmdService.search() === '';\n }\n\n /** Focuses the text field; safe to call before the view exists (it no-ops). `ui-command-dialog` calls this on every open so typing starts immediately. */\n focus(): void {\n this.inputEl?.nativeElement?.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CommandService } from '../command.component';\n\n@Component({\n selector: 'ui-command-list',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div [class]=\"classes()\" [attr.data-slot]=\"'command-list'\" [attr.role]=\"role()\" [attr.aria-label]=\"role() ? ariaLabel() : null\">\n <ng-content />\n </div>\n `,\n host: { class: 'contents' },\n})\nexport class CommandListComponent {\n private readonly cmdService = inject(CommandService);\n\n /**\n * `role=\"listbox\"` is only claimed while the list actually holds options.\n *\n * `aria-required-children` is a *critical* violation, and the role is\n * advertised on the scroll container regardless of what is inside it — so an\n * empty result set, or an async source still showing \"Searching…\", left a\n * listbox with no `option` children. Dropping the role in that state is the\n * accurate description: there is no list to browse yet.\n */\n protected readonly role = computed(() =>\n this.cmdService.filteredItemIds().size > 0 ? 'listbox' : null\n );\n\n /** Merged onto the scroll container; override the default `max-h-[200px] sm:max-h-[300px]` here to change how tall the results area grows before it scrolls. */\n class = input('');\n /** Accessible name for the `role=\"listbox\"` wrapper. Unset leaves it unnamed, so provide one whenever the list has no visible label near it. */\n ariaLabel = input<string | undefined>(undefined);\n\n classes = computed(() => cn(\n 'max-h-[200px] sm:max-h-[300px] overflow-y-auto overflow-x-hidden',\n this.class()\n ));\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n} from '@angular/core';\nimport { CommandService } from '../command.component';\n\n@Component({\n selector: 'ui-command-empty',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (isVisible()) {\n <div class=\"py-6 text-center text-sm text-muted-foreground\" [attr.data-slot]=\"'command-empty'\">\n <ng-content />\n </div>\n }\n `,\n host: { class: 'contents' },\n})\nexport class CommandEmptyComponent {\n readonly cmdService = inject(CommandService);\n\n isVisible = computed(() => {\n return this.cmdService.filteredItemIds().size === 0;\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n InjectionToken,\n inject,\n input,\n forwardRef,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CommandService, generateId } from '../command.component';\n\nexport const COMMAND_GROUP = new InjectionToken<CommandGroupComponent>('COMMAND_GROUP');\n\n@Component({\n selector: 'ui-command-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: COMMAND_GROUP, useExisting: forwardRef(() => CommandGroupComponent) },\n ],\n template: `\n <div\n [class]=\"classes()\"\n [attr.data-slot]=\"'command-group'\"\n role=\"group\"\n [class.hidden]=\"!isVisible()\"\n >\n @if (heading()) {\n <div class=\"px-2 py-1.5 text-xs font-medium text-muted-foreground\">\n {{ heading() }}\n </div>\n }\n <ng-content />\n </div>\n `,\n host: { class: 'contents' },\n})\nexport class CommandGroupComponent {\n /** Section label rendered above the items; omit it and no heading row is emitted at all. It is not matched against the search query — only item values are. */\n heading = input('');\n /** Merged onto the group wrapper. Note the group hides itself (via `hidden`) whenever every one of its items is filtered out, so display utilities here can be overridden. */\n class = input('');\n\n readonly id = generateId();\n readonly cmdService = inject(CommandService);\n\n classes = computed(() => cn(\n 'overflow-hidden p-1 text-foreground',\n this.class()\n ));\n\n isVisible = computed(() => {\n return this.cmdService.visibleGroupIds().has(this.id);\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n OnDestroy,\n OnInit,\n output,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CommandService, generateId } from '../command.component';\nimport { COMMAND_GROUP } from './command-group.component';\n\n@Component({\n selector: 'ui-command-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n [class]=\"classes()\"\n [attr.id]=\"id\"\n [attr.data-slot]=\"'command-item'\"\n [attr.data-disabled]=\"disabled() || null\"\n [attr.aria-selected]=\"selected()\"\n role=\"option\"\n tabindex=\"0\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onClick()\"\n [class.hidden]=\"!isVisible()\"\n >\n <ng-content />\n @if (shortcut()) {\n <span class=\"ms-auto text-xs tracking-widest text-muted-foreground\">{{ shortcut() }}</span>\n }\n </div>\n `,\n styleUrl: './command-item.component.css',\n host: { class: 'contents' },\n})\nexport class CommandItemComponent implements OnInit, OnDestroy {\n /** Merged onto the row. The keyboard-highlighted row already gets `bg-accent text-accent-foreground`, so an accent background here will fight that state. */\n class = input('');\n /**\n * Greys the row (50% opacity) and blocks pointer events, and suppresses\n * {@link selectItem} on both click and Enter. It is *not* skipped by arrow-key\n * navigation: a disabled row can still become the highlighted item, where\n * Enter silently does nothing.\n */\n disabled = input(false);\n /**\n * Sets `aria-selected` on the row. Purely an ARIA hint for persistent\n * selection — it is independent of the keyboard highlight and applies no\n * styling of its own.\n */\n selected = input(false);\n /**\n * The text filtering matches (case-insensitive substring of the query) and the\n * payload emitted by {@link selectItem}. Read once at registration, so it must\n * be static — and an item left with the default empty value disappears as soon\n * as the user types anything.\n */\n value = input('');\n /** Key hint rendered right-aligned on the row, e.g. `⌘P`. Display only — it binds no key handler and is not matched by the search. */\n shortcut = input('');\n\n /** Emits {@link value} when the row is activated by click, Enter on the focused row, or Enter while it is the highlighted item. Never emits while {@link disabled}. */\n selectItem = output<string>();\n\n /**\n * Stable per-row id. Registered with {@link CommandService} for highlight\n * tracking AND rendered onto the `role=\"option\"` element, because a combobox\n * points its `aria-activedescendant` at this value — an id that exists only in\n * the service is a dangling reference that announces nothing.\n */\n readonly id = generateId();\n readonly cmdService = inject(CommandService);\n readonly group = inject(COMMAND_GROUP, { optional: true });\n readonly el = inject(ElementRef);\n\n isActive = computed(() => this.cmdService.activeItemId() === this.id);\n\n constructor() {\n effect(() => {\n if (this.isActive()) {\n this.el.nativeElement.scrollIntoView({ block: 'nearest' });\n }\n });\n }\n\n classes = computed(() => cn(\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm outline-none',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus:bg-accent focus:text-accent-foreground',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n this.isActive() && 'bg-accent text-accent-foreground',\n this.class()\n ));\n\n isVisible = computed(() => {\n return this.cmdService.filteredItemIds().has(this.id);\n });\n\n ngOnInit(): void {\n const val = this.value();\n this.cmdService.register(this.id, val, this.group?.id, () => this.onClick());\n }\n\n ngOnDestroy(): void {\n this.cmdService.unregister(this.id);\n }\n\n /**\n * Single activation path for the row — the click handler, the Enter-on-focus\n * handler, and the `onSelect` callback registered with the palette all funnel\n * here — so {@link selectItem} fires exactly once per activation and the\n * {@link disabled} guard cannot be bypassed by any of them.\n */\n onClick(): void {\n if (!this.disabled()) {\n this.cmdService.markRecent(this.value());\n this.selectItem.emit(this.value());\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-command-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"-mx-1 h-px bg-border\" [attr.data-slot]=\"'command-separator'\"></div>\n `,\n host: { class: 'contents' },\n})\nexport class CommandSeparatorComponent { }\n","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-command-shortcut',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span class=\"text-xs tracking-widest text-muted-foreground ltr:ml-auto rtl:mr-auto\" [attr.data-slot]=\"'command-shortcut'\">\n <ng-content />\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class CommandShortcutComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n DestroyRef,\n effect,\n inject,\n model,\n InjectionToken,\n forwardRef,\n} from '@angular/core';\nimport { OverlayStackService } from '../../lib/overlay-stack.service';\n\nexport const DIALOG = new InjectionToken<DialogComponent>('DIALOG');\n\n@Component({\n selector: 'ui-dialog',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: DIALOG, useExisting: forwardRef(() => DialogComponent) }],\n template: `<ng-content />`,\n host: { class: 'contents' },\n})\nexport class DialogComponent {\n /**\n * Two-way bound visibility. The projected `ui-dialog-content` only renders\n * its overlay and panel while this is `true`, so nothing inside the dialog\n * exists in the DOM when closed — bind it if you need to open the dialog\n * without a `ui-dialog-trigger`.\n */\n open = model(false);\n\n /** Registers this dialog as an overlay layer while open, so Escape reaches only the innermost one. */\n private readonly layers = inject(OverlayStackService);\n\n constructor() {\n effect(() => {\n if (this.open()) this.layers.push(this);\n else this.layers.remove(this);\n });\n inject(DestroyRef).onDestroy(() => this.layers.remove(this));\n }\n\n /** Opens the dialog. Equivalent to setting {@link open} to `true`. */\n show(): void {\n this.open.set(true);\n }\n\n /**\n * Closes the dialog. Same path the Escape key, the backdrop click and the\n * corner close button take, so focus returns to the element that was\n * focused before opening.\n */\n hide(): void {\n this.open.set(false);\n }\n\n /** Flips {@link open}. This is what `ui-dialog-trigger` calls on activation. */\n toggle(): void {\n this.open.update(v => !v);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n afterNextRender,\n inject,\n signal,\n} from '@angular/core';\nimport { DIALOG } from '../dialog.component';\nimport { hasInteractiveContent } from '../../../lib/a11y';\n\n@Component({\n selector: 'ui-dialog-trigger',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span\n [attr.tabindex]=\"wrapsInteractive() ? null : 0\"\n [attr.role]=\"wrapsInteractive() ? null : 'button'\"\n [attr.data-slot]=\"'dialog-trigger'\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onKeydown($event)\"\n (keydown.space)=\"onKeydown($event)\"\n >\n <ng-content />\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class DialogTriggerComponent {\n private readonly dialog = inject(DIALOG, { optional: true });\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** See `lib/a11y.ts` — stays transparent when the projected content is already a control. */\n readonly wrapsInteractive = signal(false);\n\n constructor() {\n afterNextRender(() => {\n this.wrapsInteractive.set(hasInteractiveContent(this.host.nativeElement));\n });\n }\n\n /** Toggles the owning `ui-dialog`; a no-op when rendered outside one. */\n onClick(): void {\n this.dialog?.toggle();\n }\n\n /**\n * Only toggle from the wrapper's own keyboard activation. When the projected\n * content is itself focusable (e.g. a native <button>), its Enter/Space\n * already fires a click that bubbles here — handling the keydown too would\n * toggle twice (open then immediately close).\n */\n onKeydown(event: Event): void {\n if (event.target !== event.currentTarget) return;\n event.preventDefault();\n this.onClick();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-dialog-header',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n styleUrl: './dialog-header.component.css',\n host: {\n class: 'flex flex-col text-center sm:text-left',\n '[attr.data-slot]': '\"dialog-header\"',\n },\n})\nexport class DialogHeaderComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-dialog-title',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'text-lg font-semibold leading-none tracking-tight flex justify-start',\n '[attr.data-slot]': '\"dialog-title\"',\n },\n})\nexport class DialogTitleComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-dialog-description',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'text-sm text-muted-foreground flex justify-start',\n '[attr.data-slot]': '\"dialog-description\"',\n },\n})\nexport class DialogDescriptionComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n inject,\n effect,\n AfterViewInit,\n ElementRef,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleBindings, type LocaleInput } from '../../../lib/i18n';\nimport { COMMON_LOCALES, type CommonLocale } from '../../../lib/i18n/common.locales';\nimport { DIALOG } from '../dialog.component';\nimport { OverlayStackService } from '../../../lib/overlay-stack.service';\nimport { DialogHeaderComponent } from './dialog-header.component';\nimport { DialogTitleComponent } from './dialog-title.component';\nimport { DialogDescriptionComponent } from './dialog-description.component';\n\n@Component({\n selector: 'ui-dialog-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n DialogHeaderComponent,\n DialogTitleComponent,\n DialogDescriptionComponent,\n ],\n templateUrl: './dialog-content.component.html',\n styleUrl: './dialog-content.component.css',\n host: { class: 'contents' },\n})\nexport class DialogContentComponent implements AfterViewInit {\n readonly dialog = inject(DIALOG, { optional: true });\n private readonly layers = inject(OverlayStackService);\n private readonly el = inject(ElementRef);\n /**\n * Extra classes merged onto the centred panel (not the backdrop). Overrides\n * the default `max-w-[calc(100vw-2rem)] sm:max-w-lg` sizing when you pass a\n * width utility.\n */\n readonly class = input('');\n /**\n * Simple mode: renders a `ui-dialog-header`/`ui-dialog-title` above the\n * projected content. Leave unset and project your own header for full\n * control — {@link description} is only rendered when this is set too.\n */\n readonly title = input<string>();\n /** Simple-mode sub-heading. Only rendered when {@link title} is also set. */\n readonly description = input<string>();\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<CommonLocale>>();\n\n private readonly i18n = createLocaleBindings(this.locale, COMMON_LOCALES);\n protected readonly t = this.i18n.t;\n protected readonly dir = this.i18n.dir;\n\n readonly classes = computed(() =>\n cn(\n 'fixed z-50 grid w-full max-w-[calc(100vw-2rem)] sm:max-w-lg border bg-background shadow-lg duration-200 sm:rounded-lg',\n this.class()\n )\n );\n\n private contentEl?: HTMLElement;\n private previousActiveElement?: Element | null;\n\n constructor() {\n effect((onCleanup) => {\n if (this.dialog?.open()) {\n this.previousActiveElement = document.activeElement;\n document.body.style.overflow = 'hidden';\n setTimeout(() => this.focusFirstElement(), 0);\n } else {\n document.body.style.overflow = '';\n if (this.previousActiveElement instanceof HTMLElement) {\n this.previousActiveElement.focus();\n }\n }\n\n onCleanup(() => {\n document.body.style.overflow = '';\n });\n });\n }\n\n ngAfterViewInit(): void {\n if (this.dialog?.open()) {\n this.focusFirstElement();\n }\n }\n\n private focusFirstElement(): void {\n const content = this.el.nativeElement.querySelector('[data-slot=\"dialog-content\"]');\n if (content) {\n this.contentEl = content;\n const focusable = content.querySelector(\n 'button:not([disabled]), [href]:not([tabindex=\"-1\"]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]):not([disabled])'\n ) as HTMLElement;\n if (focusable) {\n focusable.focus();\n } else {\n content.focus();\n }\n }\n }\n\n /**\n * Backdrop click handler — the dialog is dismissible by clicking outside.\n * Bound to the overlay button, so it never fires for clicks landing on the\n * panel itself.\n */\n onOverlayClick(): void {\n this.dialog?.hide();\n }\n\n /**\n * Closes the owning `ui-dialog`. Bound to the built-in corner close button\n * and reused by the Escape branch of {@link onKeydown}; a no-op when this\n * content is used outside a `ui-dialog`.\n */\n close(): void {\n this.dialog?.hide();\n }\n\n /**\n * Panel key handler: Escape closes, Tab/Shift+Tab wrap focus so it stays\n * trapped inside the panel. The panel renders in normal stacking context at\n * `z-50`, not the native top layer, so it can be covered by higher-z UI.\n */\n onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n // One Escape, one layer -- the innermost. An overlay opened after\n // this dialog (a popover inside it, a nested dialog) owns the key.\n if (this.layers.hasOverlayAbove(this.dialog)) return;\n event.preventDefault();\n this.close();\n return;\n }\n\n if (event.key === 'Tab' && this.contentEl) {\n const focusableElements = this.contentEl.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (focusableElements.length === 0) return;\n\n const firstElement = focusableElements[0] as HTMLElement;\n const lastElement = Array.from(focusableElements).at(-1) as HTMLElement;\n\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement?.focus();\n }\n } else if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement?.focus();\n }\n }\n }\n}\n","@if (dialog?.open()) {\n <div class=\"fixed inset-0 z-50 flex items-center justify-center\" [attr.dir]=\"dir()\">\n <!-- Overlay -->\n <button\n type=\"button\"\n class=\"fixed inset-0 bg-black/80 animate-in fade-in-0\"\n [attr.data-slot]=\"'dialog-overlay'\"\n [attr.aria-label]=\"t().close\"\n (click)=\"onOverlayClick()\"\n ></button>\n <!-- Content -->\n <div\n #contentEl\n [class]=\"classes()\"\n [attr.data-slot]=\"'dialog-content'\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"-1\"\n >\n @if (title()) {\n <ui-dialog-header>\n <ui-dialog-title>{{ title() }}</ui-dialog-title>\n @if (description()) {\n <ui-dialog-description>{{ description() }}</ui-dialog-description>\n }\n </ui-dialog-header>\n }\n <ng-content />\n <!-- Close button -->\n <button\n type=\"button\"\n class=\"absolute right-4 top-4 w-fit rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none rtl:left-4 rtl:right-auto\"\n [attr.aria-label]=\"t().close\"\n (click)=\"close()\"\n >\n <svg class=\"h-4 w-4\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18L18 6M6 6l12 12\" />\n </svg>\n <span class=\"sr-only\">{{ t().close }}</span>\n </button>\n </div>\n </div>\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-dialog-footer',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n styleUrl: './dialog-footer.component.css',\n host: {\n class: 'flex flex-col-reverse sm:flex-row sm:justify-end',\n '[attr.data-slot]': '\"dialog-footer\"',\n },\n})\nexport class DialogFooterComponent { }\n","import { DOCUMENT } from '@angular/common';\nimport { Injectable, inject, signal } from '@angular/core';\n\nexport type ShortcutScope = 'component' | 'global';\n\nexport interface ShortcutRegistration {\n actionId: string;\n description: string;\n defaultShortcut: string;\n handler: (event: KeyboardEvent) => void;\n when?: () => boolean;\n preventDefault?: boolean;\n stopPropagation?: boolean;\n category?: string;\n scope?: ShortcutScope;\n priority?: number;\n}\n\nexport interface ShortcutDefinition {\n actionId: string;\n description: string;\n defaultShortcut: string;\n category?: string;\n scope?: ShortcutScope;\n}\n\nexport interface ShortcutDispatchContext {\n componentId?: string;\n}\n\nexport interface ShortcutBindingView {\n actionId: string;\n description: string;\n category?: string;\n componentId: string;\n defaultShortcut: string;\n effectiveShortcut: string;\n scope: ShortcutScope;\n}\n\nexport interface ShortcutComponentHandle {\n componentId: string;\n dispatch: (event: KeyboardEvent) => boolean;\n unregister: () => void;\n}\n\nexport interface ShortcutConflict {\n shortcut: string;\n actionIds: string[];\n}\n\nexport type ShortcutOverrideSchema = Record<string, string>;\n\nexport interface ShortcutCatalogItem {\n actionId: string;\n description: string;\n category?: string;\n componentName: string;\n defaultShortcut: string;\n effectiveShortcut: string;\n scope: ShortcutScope;\n activeInstanceCount: number;\n activeComponentIds: string[];\n}\n\ninterface InternalShortcutRegistration extends ShortcutRegistration {\n componentId: string;\n componentName: string;\n registrationOrder: number;\n}\n\ninterface ParsedShortcut {\n key: string;\n ctrl: boolean;\n meta: boolean;\n alt: boolean;\n shift: boolean;\n mod: boolean;\n}\n\nconst STORAGE_KEY = 'ui-shortcut-binding-overrides';\n\n@Injectable({ providedIn: 'root' })\nexport class ShortcutBindingService {\n private readonly document = inject(DOCUMENT);\n\n private readonly registrations = new Map<string, InternalShortcutRegistration>();\n private readonly overrides = new Map<string, string>();\n private readonly definitions = new Map<string, ShortcutCatalogItem>();\n private readonly handledEvents = new WeakSet<KeyboardEvent>();\n private readonly componentInstanceCounters = new Map<string, number>();\n private readonly componentReusableInstanceNumbers = new Map<string, number[]>();\n private readonly version = signal(0);\n private nextOrder = 0;\n\n constructor() {\n this.restoreOverridesFromStorage();\n }\n\n registerShortcut(componentId: string, registration: ShortcutRegistration): () => void {\n const componentName = this.deriveComponentName(componentId);\n this.upsertDefinition(componentName, registration);\n const key = this.composeRegistrationKey(componentId, registration.actionId);\n this.registrations.set(key, {\n ...registration,\n componentId,\n componentName,\n registrationOrder: this.nextOrder++,\n });\n this.bumpVersion();\n\n return () => {\n if (this.registrations.delete(key)) {\n if (!this.hasRegistrationsForComponent(componentId)) {\n this.releaseComponentId(componentId);\n }\n this.bumpVersion();\n }\n };\n }\n\n registerShortcuts(componentId: string, registrations: ShortcutRegistration[]): () => void {\n const cleanups = registrations.map(registration => this.registerShortcut(componentId, registration));\n return () => {\n cleanups.forEach(cleanup => cleanup());\n };\n }\n\n registerComponent(componentName: string, registrations: ShortcutRegistration[]): ShortcutComponentHandle {\n const componentId = this.createComponentId(componentName);\n this.defineShortcuts(componentName, registrations.map(registration => ({\n actionId: registration.actionId,\n description: registration.description,\n defaultShortcut: registration.defaultShortcut,\n category: registration.category,\n scope: registration.scope,\n })));\n const unregister = this.registerShortcuts(componentId, registrations);\n return {\n componentId,\n dispatch: (event: KeyboardEvent) => this.dispatch(event, { componentId }),\n unregister,\n };\n }\n\n defineShortcuts(componentName: string, definitions: ShortcutDefinition[]): void {\n let changed = false;\n for (const definition of definitions) {\n const didChange = this.upsertDefinition(componentName, definition);\n changed = changed || didChange;\n }\n if (changed) {\n this.bumpVersion();\n }\n }\n\n unregisterComponent(componentId: string): void {\n let removed = false;\n for (const [key, registration] of this.registrations.entries()) {\n if (registration.componentId === componentId) {\n this.registrations.delete(key);\n removed = true;\n }\n }\n if (removed) {\n this.releaseComponentId(componentId);\n this.bumpVersion();\n }\n }\n\n dispatch(event: KeyboardEvent, context?: ShortcutDispatchContext): boolean {\n if (this.handledEvents.has(event)) {\n return false;\n }\n\n const ordered = Array.from(this.registrations.values()).sort((a, b) => {\n const byScope = this.scopeWeight(b, context) - this.scopeWeight(a, context);\n if (byScope !== 0) {\n return byScope;\n }\n const byPriority = (b.priority ?? 0) - (a.priority ?? 0);\n if (byPriority !== 0) {\n return byPriority;\n }\n return a.registrationOrder - b.registrationOrder;\n });\n\n for (const registration of ordered) {\n if (!this.matchesContext(registration, context)) {\n continue;\n }\n\n if (registration.when && !registration.when()) {\n continue;\n }\n\n const effectiveShortcut = this.getEffectiveShortcut(\n registration.actionId,\n registration.defaultShortcut,\n registration.componentName,\n registration.componentId,\n );\n if (!this.matchesShortcut(event, effectiveShortcut)) {\n continue;\n }\n\n if (registration.preventDefault !== false) {\n event.preventDefault();\n }\n if (registration.stopPropagation) {\n event.stopPropagation();\n }\n registration.handler(event);\n this.handledEvents.add(event);\n return true;\n }\n\n return false;\n }\n\n setShortcutOverride(actionId: string, shortcut: string): void {\n this.setShortcutOverrideForComponent(actionId, shortcut);\n }\n\n setShortcutOverrideForComponent(actionId: string, shortcut: string, componentName?: string): void {\n const normalized = this.normalizeShortcut(shortcut);\n if (!normalized) {\n return;\n }\n const key = this.composeComponentOverrideKey(actionId, componentName);\n this.overrides.set(key, normalized);\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n setShortcutOverrideForAllInstances(actionId: string, shortcut: string, componentName: string): void {\n const normalized = this.normalizeShortcut(shortcut);\n if (!normalized) {\n return;\n }\n\n const normalizedComponentName = componentName.trim().toLowerCase();\n const componentKey = this.composeComponentOverrideKey(actionId, normalizedComponentName);\n this.overrides.set(componentKey, normalized);\n\n for (const key of Array.from(this.overrides.keys())) {\n if (this.isInstanceOverrideKeyForComponentAction(key, actionId, normalizedComponentName)) {\n this.overrides.delete(key);\n }\n }\n\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n setShortcutOverrideForInstance(actionId: string, shortcut: string, componentId: string): void {\n const normalized = this.normalizeShortcut(shortcut);\n if (!normalized) {\n return;\n }\n const key = this.composeInstanceOverrideKey(componentId, actionId);\n this.overrides.set(key, normalized);\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n clearShortcutOverride(actionId: string): void {\n this.clearShortcutOverrideForComponent(actionId);\n }\n\n clearShortcutOverrideForComponent(actionId: string, componentName?: string): void {\n const key = this.composeComponentOverrideKey(actionId, componentName);\n let changed = this.overrides.delete(key);\n if (!componentName) {\n changed = this.overrides.delete(actionId) || changed;\n }\n if (!changed) {\n return;\n }\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n clearShortcutOverrideForAllInstances(actionId: string, componentName: string): void {\n const normalizedComponentName = componentName.trim().toLowerCase();\n const componentKey = this.composeComponentOverrideKey(actionId, normalizedComponentName);\n let changed = this.overrides.delete(componentKey);\n\n for (const key of Array.from(this.overrides.keys())) {\n if (this.isInstanceOverrideKeyForComponentAction(key, actionId, normalizedComponentName)) {\n changed = this.overrides.delete(key) || changed;\n }\n }\n\n if (!changed) {\n return;\n }\n\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n clearShortcutOverrideForInstance(actionId: string, componentId: string): void {\n const key = this.composeInstanceOverrideKey(componentId, actionId);\n if (!this.overrides.delete(key)) {\n return;\n }\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n clearAllShortcutOverrides(): void {\n if (this.overrides.size === 0) {\n return;\n }\n this.overrides.clear();\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n getShortcutOverride(actionId: string): string | null {\n return this.getShortcutOverrideForComponent(actionId);\n }\n\n hasShortcutOverride(actionId: string): boolean {\n return this.overrides.has(actionId);\n }\n\n exportOverrideSchema(): ShortcutOverrideSchema {\n const schema: ShortcutOverrideSchema = {};\n const keys = Array.from(this.overrides.keys()).sort((a, b) => a.localeCompare(b));\n for (const key of keys) {\n const value = this.overrides.get(key);\n if (value) {\n schema[key] = value;\n }\n }\n return schema;\n }\n\n importOverrideSchema(schema: ShortcutOverrideSchema, replace = true): void {\n if (!schema || typeof schema !== 'object') {\n return;\n }\n\n const next = this.buildNextOverrides(schema, replace);\n\n if (replace && this.areOverridesUnchanged(next)) {\n return;\n }\n\n this.overrides.clear();\n for (const [key, value] of next.entries()) {\n this.overrides.set(key, value);\n }\n this.persistOverridesToStorage();\n this.bumpVersion();\n }\n\n private buildNextOverrides(schema: ShortcutOverrideSchema, replace: boolean): Map<string, string> {\n const next = new Map<string, string>();\n if (!replace) {\n for (const [key, value] of this.overrides.entries()) {\n next.set(key, value);\n }\n }\n for (const [key, value] of Object.entries(schema)) {\n const normalized = this.normalizeShortcut(value);\n if (normalized) {\n next.set(key, normalized);\n }\n }\n return next;\n }\n\n private areOverridesUnchanged(next: Map<string, string>): boolean {\n if (next.size !== this.overrides.size) {\n return false;\n }\n for (const [key, value] of next.entries()) {\n if (this.overrides.get(key) !== value) {\n return false;\n }\n }\n return true;\n }\n\n hasShortcutOverrideForComponent(actionId: string, componentName?: string): boolean {\n return this.overrides.has(this.composeComponentOverrideKey(actionId, componentName));\n }\n\n hasShortcutOverrideForInstance(actionId: string, componentId: string): boolean {\n return this.overrides.has(this.composeInstanceOverrideKey(componentId, actionId));\n }\n\n hasShortcutOverrideForAllInstances(actionId: string, componentName: string): boolean {\n const normalizedComponentName = componentName.trim().toLowerCase();\n if (this.overrides.has(this.composeComponentOverrideKey(actionId, normalizedComponentName))) {\n return true;\n }\n for (const key of this.overrides.keys()) {\n if (this.isInstanceOverrideKeyForComponentAction(key, actionId, normalizedComponentName)) {\n return true;\n }\n }\n return false;\n }\n\n getShortcutOverrideForComponent(actionId: string, componentName?: string): string | null {\n const scoped = this.overrides.get(this.composeComponentOverrideKey(actionId, componentName));\n if (scoped) {\n return scoped;\n }\n return this.overrides.get(actionId) ?? null;\n }\n\n getShortcutOverrideForInstance(actionId: string, componentId: string): string | null {\n const scoped = this.overrides.get(this.composeInstanceOverrideKey(componentId, actionId));\n if (scoped) {\n return scoped;\n }\n const componentName = this.deriveComponentName(componentId);\n return this.getShortcutOverrideForComponent(actionId, componentName);\n }\n\n getShortcutBindingViews(): ShortcutBindingView[] {\n this.version();\n return Array.from(this.registrations.values())\n .sort((a, b) => a.registrationOrder - b.registrationOrder)\n .map(registration => ({\n actionId: registration.actionId,\n description: registration.description,\n category: registration.category,\n componentId: registration.componentId,\n defaultShortcut: registration.defaultShortcut,\n effectiveShortcut: this.getEffectiveShortcut(\n registration.actionId,\n registration.defaultShortcut,\n registration.componentName,\n registration.componentId,\n ),\n scope: registration.scope ?? 'component',\n }));\n }\n\n getShortcutCatalog(): ShortcutCatalogItem[] {\n this.version();\n const catalog = new Map<string, ShortcutCatalogItem>();\n\n for (const [actionId, definition] of this.definitions.entries()) {\n catalog.set(actionId, {\n ...definition,\n effectiveShortcut: this.getEffectiveShortcut(actionId, definition.defaultShortcut, definition.componentName),\n activeInstanceCount: 0,\n activeComponentIds: [],\n });\n }\n\n for (const registration of this.registrations.values()) {\n const existing = catalog.get(registration.actionId);\n if (!existing) {\n catalog.set(registration.actionId, {\n actionId: registration.actionId,\n description: registration.description,\n category: registration.category,\n componentName: registration.componentName,\n defaultShortcut: registration.defaultShortcut,\n effectiveShortcut: this.getEffectiveShortcut(\n registration.actionId,\n registration.defaultShortcut,\n registration.componentName,\n ),\n scope: registration.scope ?? 'component',\n activeInstanceCount: 1,\n activeComponentIds: [registration.componentId],\n });\n continue;\n }\n\n if (!existing.activeComponentIds.includes(registration.componentId)) {\n existing.activeComponentIds.push(registration.componentId);\n existing.activeInstanceCount = existing.activeComponentIds.length;\n }\n }\n\n return Array.from(catalog.values())\n .sort((a, b) => {\n const catA = (a.category ?? '').toLowerCase();\n const catB = (b.category ?? '').toLowerCase();\n if (catA !== catB) {\n return catA.localeCompare(catB);\n }\n return a.description.localeCompare(b.description);\n });\n }\n\n getConflicts(): ShortcutConflict[] {\n const grouped = new Map<string, Set<string>>();\n for (const item of this.getShortcutCatalog()) {\n const normalized = this.normalizeShortcut(item.effectiveShortcut);\n if (!normalized) {\n continue;\n }\n if (!grouped.has(normalized)) {\n grouped.set(normalized, new Set());\n }\n grouped.get(normalized)?.add(item.actionId);\n }\n\n return Array.from(grouped.entries())\n .filter(([, actionIds]) => actionIds.size > 1)\n .map(([shortcut, actionIds]) => ({\n shortcut,\n actionIds: Array.from(actionIds).sort((a, b) => a.localeCompare(b)),\n }));\n }\n\n shortcutFromEvent(event: KeyboardEvent): string | null {\n const key = this.normalizeEventKey(event.key);\n if (!key || this.isModifierKey(key)) {\n return null;\n }\n const parts: string[] = [];\n if (event.ctrlKey) {\n parts.push('ctrl');\n }\n if (event.metaKey) {\n parts.push('meta');\n }\n if (event.altKey) {\n parts.push('alt');\n }\n if (event.shiftKey) {\n parts.push('shift');\n }\n parts.push(key);\n return this.normalizeShortcut(parts.join('+'));\n }\n\n formatShortcutForDisplay(shortcut: string): string {\n const parsed = this.parseShortcut(shortcut);\n if (!parsed) {\n return shortcut;\n }\n\n const parts: string[] = [];\n const isMac = this.isMacPlatform();\n\n if (parsed.mod) {\n parts.push(isMac ? 'Cmd' : 'Ctrl');\n }\n if (parsed.ctrl) {\n parts.push('Ctrl');\n }\n if (parsed.meta) {\n parts.push('Cmd');\n }\n if (parsed.alt) {\n parts.push('Alt');\n }\n if (parsed.shift) {\n parts.push('Shift');\n }\n parts.push(this.formatKeyForDisplay(parsed.key));\n\n return parts.join('+');\n }\n\n private matchesContext(registration: InternalShortcutRegistration, context?: ShortcutDispatchContext): boolean {\n if (!context?.componentId) {\n return registration.scope === 'global';\n }\n\n if (registration.scope === 'global') {\n return true;\n }\n\n return registration.componentId === context.componentId;\n }\n\n private scopeWeight(registration: InternalShortcutRegistration, context?: ShortcutDispatchContext): number {\n if (!context?.componentId) {\n return registration.scope === 'global' ? 2 : 0;\n }\n\n if (registration.scope === 'global') {\n return 1;\n }\n\n return registration.componentId === context.componentId ? 2 : 0;\n }\n\n private getEffectiveShortcut(\n actionId: string,\n defaultShortcut: string,\n componentName?: string,\n componentId?: string,\n ): string {\n if (componentId) {\n return this.getShortcutOverrideForInstance(actionId, componentId) ?? defaultShortcut;\n }\n return this.getShortcutOverrideForComponent(actionId, componentName) ?? defaultShortcut;\n }\n\n private matchesShortcut(event: KeyboardEvent, shortcut: string): boolean {\n const parsed = this.parseShortcut(shortcut);\n if (!parsed) {\n return false;\n }\n\n if (this.normalizeEventKey(event.key) !== parsed.key) {\n return false;\n }\n\n const isMac = this.isMacPlatform();\n const ctrlRequired = parsed.ctrl || (parsed.mod && !isMac);\n const metaRequired = parsed.meta || (parsed.mod && isMac);\n\n return event.ctrlKey === ctrlRequired\n && event.metaKey === metaRequired\n && event.altKey === parsed.alt\n && event.shiftKey === parsed.shift;\n }\n\n private parseShortcut(shortcut: string): ParsedShortcut | null {\n const normalized = this.normalizeShortcut(shortcut);\n if (!normalized) {\n return null;\n }\n\n const tokens = normalized.split('+');\n let key = '';\n let ctrl = false;\n let meta = false;\n let alt = false;\n let shift = false;\n let mod = false;\n\n for (const token of tokens) {\n if (token === 'ctrl') {\n ctrl = true;\n continue;\n }\n if (token === 'meta') {\n meta = true;\n continue;\n }\n if (token === 'alt') {\n alt = true;\n continue;\n }\n if (token === 'shift') {\n shift = true;\n continue;\n }\n if (token === 'mod') {\n mod = true;\n continue;\n }\n key = token;\n }\n\n if (!key) {\n return null;\n }\n\n return { key, ctrl, meta, alt, shift, mod };\n }\n\n private normalizeShortcut(shortcut: string): string | null {\n if (!shortcut || typeof shortcut !== 'string') {\n return null;\n }\n\n const rawTokens = shortcut\n .split('+')\n .map(token => token.trim().toLowerCase())\n .filter(Boolean);\n\n if (rawTokens.length === 0) {\n return null;\n }\n\n const tokens = rawTokens.map(token => {\n if (token === 'control' || token === 'ctl') return 'ctrl';\n if (token === 'command' || token === 'cmd' || token === '⌘' || token === 'super') return 'meta';\n if (token === 'option' || token === 'opt') return 'alt';\n if (token === 'primary' || token === 'cmdorctrl' || token === 'cmd/ctrl' || token === 'ctrl/cmd') return 'mod';\n if (token === 'spacebar') return 'space';\n return token;\n });\n\n let key = '';\n const modifiers: string[] = [];\n\n for (const token of tokens) {\n if (token === 'ctrl' || token === 'meta' || token === 'alt' || token === 'shift' || token === 'mod') {\n if (!modifiers.includes(token)) {\n modifiers.push(token);\n }\n continue;\n }\n\n key = this.normalizeEventKey(token);\n }\n\n if (!key) {\n return null;\n }\n\n return [...modifiers, key].join('+');\n }\n\n private normalizeEventKey(key: string): string {\n if (!key) {\n return '';\n }\n\n const lowered = key.toLowerCase();\n if (lowered === ' ') return 'space';\n if (lowered === 'spacebar') return 'space';\n if (lowered === 'esc') return 'escape';\n return lowered;\n }\n\n private isModifierKey(key: string): boolean {\n return key === 'shift' || key === 'control' || key === 'ctrl' || key === 'alt' || key === 'meta';\n }\n\n private formatKeyForDisplay(key: string): string {\n if (key === 'space') {\n return 'Space';\n }\n if (key.length === 1) {\n return key.toUpperCase();\n }\n return key.charAt(0).toUpperCase() + key.slice(1);\n }\n\n private composeRegistrationKey(componentId: string, actionId: string): string {\n return `${componentId}::${actionId}`;\n }\n\n private upsertDefinition(componentName: string, definition: ShortcutDefinition): boolean {\n const normalizedComponentName = componentName.trim().toLowerCase();\n const previous = this.definitions.get(definition.actionId);\n const normalizedDefaultShortcut = this.normalizeShortcut(definition.defaultShortcut) ?? definition.defaultShortcut;\n const next: ShortcutCatalogItem = {\n actionId: definition.actionId,\n description: definition.description,\n category: definition.category,\n componentName: normalizedComponentName,\n defaultShortcut: normalizedDefaultShortcut,\n effectiveShortcut: this.getEffectiveShortcut(definition.actionId, normalizedDefaultShortcut, normalizedComponentName),\n scope: definition.scope ?? 'component',\n activeInstanceCount: previous?.activeInstanceCount ?? 0,\n activeComponentIds: previous?.activeComponentIds ?? [],\n };\n const changed = previous?.description !== next.description\n || previous.category !== next.category\n || previous.componentName !== next.componentName\n || previous.defaultShortcut !== next.defaultShortcut\n || previous.scope !== next.scope;\n this.definitions.set(definition.actionId, next);\n return changed;\n }\n\n private createComponentId(componentName: string): string {\n const normalizedName = componentName.trim().toLowerCase().replaceAll(/\\s+/g, '-');\n const reusable = this.componentReusableInstanceNumbers.get(normalizedName);\n if (reusable && reusable.length > 0) {\n const reused = reusable.shift();\n if (typeof reused === 'number') {\n return `${normalizedName}-${reused}`;\n }\n }\n const current = this.componentInstanceCounters.get(normalizedName) ?? 0;\n const next = current + 1;\n this.componentInstanceCounters.set(normalizedName, next);\n return `${normalizedName}-${next}`;\n }\n\n private deriveComponentName(componentId: string): string {\n return componentId.replace(/-\\d+$/, '');\n }\n\n private composeComponentOverrideKey(actionId: string, componentName?: string): string {\n if (!componentName) {\n return actionId;\n }\n return `${componentName.trim().toLowerCase()}::${actionId}`;\n }\n\n private composeInstanceOverrideKey(componentId: string, actionId: string): string {\n return `${componentId.trim().toLowerCase()}::${actionId}`;\n }\n\n private isInstanceOverrideKeyForComponentAction(key: string, actionId: string, componentName: string): boolean {\n if (!key.endsWith(`::${actionId}`)) {\n return false;\n }\n const componentId = key.slice(0, key.length - (`::${actionId}`).length);\n if (!/-\\d+$/.test(componentId)) {\n return false;\n }\n return this.deriveComponentName(componentId) === componentName;\n }\n\n private hasRegistrationsForComponent(componentId: string): boolean {\n for (const registration of this.registrations.values()) {\n if (registration.componentId === componentId) {\n return true;\n }\n }\n return false;\n }\n\n private releaseComponentId(componentId: string): void {\n const normalizedName = this.deriveComponentName(componentId);\n const match = new RegExp(/-(\\d+)$/).exec(componentId);\n if (!match) {\n return;\n }\n\n const number = Number(match[1]);\n if (!Number.isInteger(number) || number <= 0) {\n return;\n }\n\n const reusable = this.componentReusableInstanceNumbers.get(normalizedName) ?? [];\n if (!reusable.includes(number)) {\n reusable.push(number);\n reusable.sort((a, b) => a - b);\n this.componentReusableInstanceNumbers.set(normalizedName, reusable);\n }\n }\n\n private restoreOverridesFromStorage(): void {\n const storage = this.document.defaultView?.localStorage;\n if (!storage) {\n return;\n }\n\n try {\n const raw = storage.getItem(STORAGE_KEY);\n if (!raw) {\n return;\n }\n const parsed = JSON.parse(raw) as Record<string, string>;\n for (const [actionId, shortcut] of Object.entries(parsed)) {\n const normalized = this.normalizeShortcut(shortcut);\n if (normalized) {\n this.overrides.set(actionId, normalized);\n }\n }\n } catch {\n this.overrides.clear();\n }\n }\n\n private persistOverridesToStorage(): void {\n const storage = this.document.defaultView?.localStorage;\n if (!storage) {\n return;\n }\n\n const payload: Record<string, string> = {};\n for (const [actionId, shortcut] of this.overrides.entries()) {\n payload[actionId] = shortcut;\n }\n\n try {\n storage.setItem(STORAGE_KEY, JSON.stringify(payload));\n } catch {\n // Ignore write failures (private mode, quota, etc.).\n }\n }\n\n private isMacPlatform(): boolean {\n const userAgent = this.document.defaultView?.navigator?.userAgent?.toLowerCase() ?? '';\n return userAgent.includes('macintosh') || userAgent.includes('iphone') || userAgent.includes('ipad');\n }\n\n private bumpVersion(): void {\n this.version.update(current => current + 1);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n effect,\n inject,\n input,\n model,\n OnDestroy,\n} from '@angular/core';\nimport { DialogComponent, DialogContentComponent } from '../../dialog';\nimport { ShortcutBindingService, ShortcutComponentHandle } from '../../../lib/shortcut-binding.service';\nimport { CommandComponent } from '../command.component';\nimport { CommandInputComponent } from './command-input.component';\n\n@Component({\n selector: 'ui-command-dialog',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [DialogComponent, DialogContentComponent, CommandComponent],\n template: `\n <ui-dialog [(open)]=\"open\">\n <ui-dialog-content class=\"overflow-hidden p-0 shadow-lg\">\n <ui-command class=\"**:data-[slot=command-group]:px-2 **:data-[slot=command-group]:font-medium **:data-[slot=command-group]:text-muted-foreground **:data-[slot=command-item]:px-2 **:data-[slot=command-item]:py-3 [&_[data-slot=command-item]_svg]:h-5 [&_[data-slot=command-item]_svg]:w-5\">\n <ng-content />\n </ui-command>\n </ui-dialog-content>\n </ui-dialog>\n `,\n host: { class: 'contents' },\n})\nexport class CommandDialogComponent implements OnDestroy {\n /**\n * Two-way open state of the underlying `ui-dialog`. Toggled by the global\n * {@link shortcut}, and each transition to open focuses the projected\n * `ui-command-input` on the next tick.\n */\n open = model(false);\n /**\n * Set `false` to drop the global key binding entirely (the handle is\n * unregistered) and drive {@link open} yourself. A blank {@link shortcut} or\n * {@link shortcutActionId} has the same effect.\n */\n shortcutEnabled = input(true);\n /**\n * Global key combo that toggles {@link open}, in `ShortcutBindingService`\n * syntax — `Mod` resolves to Cmd on macOS and Ctrl elsewhere. Defaults to\n * `Mod+K`. Registered with `scope: 'global'`, so it fires regardless of focus.\n */\n shortcut = input('Mod+K');\n /**\n * Identity of the binding in `ShortcutBindingService`, which is what a\n * shortcut-settings UI persists user remappings against. Defaults to\n * `command-dialog.toggle`; give each dialog instance a distinct id when a\n * page hosts more than one, or they overwrite each other's binding.\n */\n shortcutActionId = input('command-dialog.toggle');\n /** Grouping label the binding is filed under in a shortcuts cheat-sheet or settings screen. Defaults to `Navigation`. */\n shortcutCategory = input('Navigation');\n\n commandInput = contentChild(CommandInputComponent);\n private readonly shortcutBindings = inject(ShortcutBindingService);\n private shortcutHandle: ShortcutComponentHandle | null = null;\n\n constructor() {\n effect(() => {\n if (this.open()) {\n setTimeout(() => {\n this.commandInput()?.focus();\n });\n }\n });\n\n effect(() => {\n const enabled = this.shortcutEnabled();\n const shortcut = this.shortcut();\n const actionId = this.shortcutActionId();\n const category = this.shortcutCategory();\n this.shortcutHandle?.unregister();\n this.shortcutHandle = null;\n\n if (!enabled || !shortcut.trim() || !actionId.trim()) {\n return;\n }\n\n this.shortcutBindings.defineShortcuts('command-dialog', [{\n actionId,\n description: 'Toggle command dialog',\n defaultShortcut: shortcut,\n category,\n scope: 'global',\n }]);\n\n this.shortcutHandle = this.shortcutBindings.registerComponent('command-dialog', [{\n actionId,\n description: 'Toggle command dialog',\n defaultShortcut: shortcut,\n category,\n scope: 'global',\n handler: () => this.open.update(v => !v),\n }]);\n }, { allowSignalWrites: true });\n }\n\n ngOnDestroy(): void {\n this.shortcutHandle?.unregister();\n this.shortcutHandle = null;\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../lib/utils';\nimport { SkeletonComponent } from '../skeleton';\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-md border text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80',\n secondary: 'border-border bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive: 'border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nexport type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];\n\n@Component({\n selector: 'ui-badge',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SkeletonComponent],\n templateUrl: './badge.component.html',\n styleUrl: './badge.component.css',\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"badge\"',\n },\n})\nexport class BadgeComponent {\n /**\n * Colour treatment from {@link badgeVariants}. `'outline'` is the only one\n * without a filled background — it keeps the inherited surface and just\n * draws the border and `text-foreground`. Ignored while {@link skeleton} is\n * true.\n */\n variant = input<BadgeVariant>('default');\n /**\n * Convenience text content. When non-empty it is rendered *instead of* any\n * projected content, so use one or the other — projection is the escape\n * hatch for icons or markup inside the badge.\n */\n label = input<string>('');\n /** Extra classes merged onto the host; padding/size utilities go here since the variants set colour only. */\n class = input('');\n /**\n * Renders a fixed-size {@link SkeletonComponent} placeholder in place of the\n * badge and drops all variant styling, for loading states that must not\n * shift layout.\n */\n readonly skeleton = input(false);\n\n readonly classes = computed(() => {\n if (this.skeleton()) return cn('inline-flex', this.class());\n return cn(badgeVariants({ variant: this.variant() }), this.class());\n });\n\n /**\n * String form of the badge — its {@link label}, or `''` when the content was\n * projected instead. Lets a badge instance be interpolated directly in a\n * template or used as a filter/sort key.\n */\n toString(): string {\n return this.label() ?? '';\n }\n}\n\nexport { badgeVariants };\n","@if (skeleton()) {\n <ui-skeleton class=\"h-5 w-16 rounded-md\" />\n} @else {\n @if (label()) {\n {{ label() }}\n } @else {\n <ng-content />\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n signal,\n effect,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { createLocaleBindings, type LocaleInput } from '../../../lib/i18n';\nimport { DATA_TABLE_LOCALES, type DataTableLocale } from '../data-table.locales';\nimport {\n CommandComponent,\n CommandInputComponent,\n CommandListComponent,\n CommandEmptyComponent,\n CommandItemComponent,\n CommandSeparatorComponent,\n} from '../../command';\nimport { CheckboxComponent } from '../../checkbox';\nimport { BadgeComponent } from '../../badge';\nimport { ButtonComponent } from '../../button';\n\n@Component({\n selector: 'ui-data-table-multiselect-filter',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommandComponent,\n CommandInputComponent,\n CommandListComponent,\n CommandEmptyComponent,\n CommandItemComponent,\n CommandSeparatorComponent,\n CheckboxComponent,\n BadgeComponent,\n ButtonComponent,\n ],\n templateUrl: './data-table-multiselect-filter.component.html',\n host: { class: 'contents' },\n})\nexport class DataTableMultiselectFilterComponent<T = unknown> {\n /** Extra classes merged onto the panel wrapper (the command palette keeps its own). */\n readonly class = input('');\n /**\n * The full option list. Every option is rendered — the search box filters the\n * DOM via `ui-command`, it does not narrow this array, so {@link selectAll}\n * still selects everything regardless of the current search text.\n */\n readonly options = input<T[]>([]);\n /** Maps an option to its visible label, also used as the command item's search text. */\n readonly displayWith = input<(option: T) => string>(String);\n /**\n * Maps an option to the value emitted on {@link filterChange} and compared\n * against the cell value by {@link multiselectFilterFn}. Comparison is by\n * `Set`/`includes` identity, so object values must be referentially stable —\n * project to a primitive key here for object options.\n */\n readonly valueWith = input<(option: T) => unknown>((o: T) => o);\n /** Override for the command-input placeholder. Falls back to the locale's `searchPlaceholder`. */\n readonly placeholder = input<string>();\n /** Optional heading above the palette; when set, a badge shows the selected count. */\n readonly title = input<string | undefined>(undefined);\n /**\n * Externally-held selection, expressed as {@link valueWith} values (not\n * options). Values are kept as given — one with no matching option yet (or\n * ever) stays selected and is re-emitted with the rest, so `selected` may be\n * set before {@link options} arrives.\n */\n readonly selected = input<unknown[]>([]);\n\n /** Locale dictionary or registry key. Falls back to `UI_LOCALE_ID` when not set. */\n readonly locale = input<LocaleInput<DataTableLocale>>();\n private readonly i18n = createLocaleBindings(this.locale, DATA_TABLE_LOCALES);\n protected readonly t = this.i18n.t;\n protected readonly dir = this.i18n.dir;\n\n readonly resolvedPlaceholder = computed(() => this.placeholder() ?? this.t().searchPlaceholder ?? 'Search...');\n readonly selectAllLabel = computed(() => this.t().selectAllRows ?? 'Select all');\n readonly clearAllLabel = computed(() => this.t().clearAll ?? 'Clear');\n readonly noResultsLabel = computed(() => this.t().noResultsLabel ?? 'No results.');\n\n /**\n * The selected {@link valueWith} values after each toggle, or `null` when the\n * selection becomes empty — `null` means \"no filter\" to\n * {@link multiselectFilterFn}, so an empty array is never emitted.\n */\n readonly filterChange = output<unknown[] | null>();\n\n protected readonly String = String;\n\n private readonly _selected = signal<unknown[]>([]);\n\n readonly selectedValues = computed(() => new Set(this._selected()));\n\n readonly selectedCount = computed(() => this._selected().length);\n\n constructor() {\n effect(() => {\n const selectedInput = this.selected();\n this._selected.set([...new Set(selectedInput)]);\n });\n }\n\n readonly classes = computed(() => cn(\n 'flex flex-col',\n this.class()\n ));\n\n /** Applies {@link displayWith} to an option (label, checkbox aria-label and search text). */\n getDisplayLabel(option: T): string {\n return this.displayWith()(option);\n }\n\n /** `@for` track key — the option's {@link valueWith} value, so it must be unique per option. */\n trackOption(option: T): unknown {\n return this.valueWith()(option);\n }\n\n /** Whether the option's value is in the current selection (by {@link valueWith} identity). */\n isSelected(option: T): boolean {\n return this.selectedValues().has(this.valueWith()(option));\n }\n\n /**\n * Adds or removes an option and emits the new selection. Newly selected\n * options are appended, so emission order is selection order, not\n * {@link options} order.\n */\n toggleOption(option: T): void {\n const val = this.valueWith()(option);\n const current = this._selected();\n const next = this.selectedValues().has(val)\n ? current.filter(v => v !== val)\n : [...current, val];\n\n this._selected.set(next);\n this.emitChange(next);\n }\n\n /**\n * Selects every entry of {@link options} — including ones hidden by the\n * current search text — keeping any already-selected value that has no\n * option, and emits the result. With no options and nothing already selected\n * this emits `null`.\n */\n selectAll(): void {\n const vw = this.valueWith();\n const all = [...new Set([...this._selected(), ...this.options().map(o => vw(o))])];\n this._selected.set(all);\n this.emitChange(all);\n }\n\n /** Empties the selection and emits `null` (\"no filter\"), leaving the search text alone. */\n clearAll(): void {\n this._selected.set([]);\n this.filterChange.emit(null);\n }\n\n private emitChange(selected: unknown[]): void {\n if (selected.length === 0) {\n this.filterChange.emit(null);\n return;\n }\n this.filterChange.emit([...selected]);\n }\n}\n\nexport function multiselectFilterFn<TRow>(\n row: TRow,\n filterValue: unknown[] | null,\n getValue: (row: TRow) => unknown\n): boolean {\n if (!filterValue || filterValue.length === 0) return true;\n const rowVal = getValue(row);\n return filterValue.includes(rowVal);\n}\n","<div [class]=\"classes()\" [attr.data-slot]=\"'multiselect-filter'\">\n @if (title()) {\n <div class=\"flex items-center justify-between px-2 pb-2\">\n <span class=\"text-sm font-medium\">{{ title() }}</span>\n @if (selectedCount() > 0) {\n <ui-badge variant=\"secondary\" [label]=\"String(selectedCount())\" class=\"text-xs\" />\n }\n </div>\n }\n <ui-command [shouldFilter]=\"true\" [attr.dir]=\"dir()\">\n <ui-command-input [placeholder]=\"resolvedPlaceholder()\" />\n <div class=\"flex items-center gap-1 px-2 py-1.5\">\n <ui-button variant=\"ghost\" size=\"sm\" class=\"h-7 text-xs\" (clicked)=\"selectAll()\">\n {{ selectAllLabel() }}\n </ui-button>\n <ui-button variant=\"ghost\" size=\"sm\" class=\"h-7 text-xs\" (clicked)=\"clearAll()\">\n {{ clearAllLabel() }}\n </ui-button>\n </div>\n <ui-command-separator />\n <ui-command-list class=\"max-h-64\">\n <ui-command-empty>{{ noResultsLabel() }}</ui-command-empty>\n @for (option of options(); track trackOption(option)) {\n <ui-command-item\n [value]=\"getDisplayLabel(option)\"\n (selectItem)=\"toggleOption(option)\"\n class=\"gap-2\"\n >\n <ui-checkbox\n [checked]=\"isSelected(option)\"\n [ariaLabel]=\"getDisplayLabel(option)\"\n />\n <span>{{ getDisplayLabel(option) }}</span>\n </ui-command-item>\n }\n </ui-command-list>\n </ui-command>\n</div>\n","/** Shared date helpers for the data-table date filter sub-components. */\n\nexport function toDate(value: unknown): Date | null {\n if (value instanceof Date) return value;\n if (typeof value === 'string' || typeof value === 'number') {\n const d = new Date(value);\n return Number.isNaN(d.getTime()) ? null : d;\n }\n return null;\n}\n\nexport function toDateOnlyTimestamp(d: Date): number {\n return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n signal,\n effect,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CalendarComponent } from '../../calendar';\nimport { ButtonComponent } from '../../button';\nimport { createLocaleBindings, type LocaleInput } from '../../../lib/i18n';\nimport { CALENDAR_LOCALES, type CalendarLocale } from '../../../lib/i18n/calendar.locales';\nimport { toDate, toDateOnlyTimestamp } from './data-table-date-utils';\n\n@Component({\n selector: 'ui-data-table-date-filter',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CalendarComponent, ButtonComponent],\n templateUrl: './data-table-date-filter.component.html',\n host: { class: 'contents' },\n})\nexport class DataTableDateFilterComponent {\n /** Extra classes merged onto the panel wrapper (the calendar keeps its own). */\n readonly class = input('');\n /** Optional heading above the Today/Clear row; omitted entirely when unset. */\n readonly title = input<string | undefined>(undefined);\n /**\n * Locale dictionary or registry key (BCP-47). Falls back to `UI_LOCALE_ID`\n * when not set — so an embedded date filter inside `<ui-data-table\n * locale=\"he\">` is automatically Hebrew without per-column wiring.\n */\n readonly locale = input<LocaleInput<CalendarLocale>>();\n /**\n * The externally-held selected date. An effect mirrors it into the internal\n * signal the calendar reads, so pushing a new value (or `null`) resets the\n * panel — but the component also updates that signal itself on interaction,\n * so it works uncontrolled if you never write back.\n */\n readonly selected = input<Date | null>(null);\n\n /**\n * The newly picked date, or `null` when cleared. The component filters\n * nothing itself — pair it with {@link dateFilterFn} as the column's filter\n * function and feed this value in as the column filter value.\n */\n readonly filterChange = output<Date | null>();\n\n private readonly _selected = signal<Date | null>(null);\n readonly selectedValue = this._selected.asReadonly();\n\n private readonly i18n = createLocaleBindings(this.locale, CALENDAR_LOCALES);\n private readonly activeLocale = this.i18n.t;\n readonly isRtl = this.i18n.isRtl;\n /** `'rtl'` when the active locale is RTL, otherwise `null` — bind to `[attr.dir]`. */\n readonly dir = this.i18n.dir;\n readonly todayLabel = computed(() => this.activeLocale().todayLabel ?? 'Today');\n readonly clearLabel = computed(() => this.activeLocale().clearLabel ?? 'Clear');\n\n constructor() {\n effect(() => {\n const sel = this.selected();\n this._selected.set(sel);\n });\n }\n\n readonly classes = computed(() => cn(\n 'flex flex-col',\n this.class()\n ));\n\n /**\n * Calendar `selectedChange` handler. Non-`Date` payloads (the range/multiple\n * calendar modes) are ignored, so nothing is emitted for them.\n */\n onDateSelect(value: unknown): void {\n if (value instanceof Date) {\n this._selected.set(value);\n this.filterChange.emit(value);\n }\n }\n\n /**\n * Selects the current local date with the time truncated to midnight, and\n * emits it — matching the day-granularity comparison {@link dateFilterFn}\n * performs.\n */\n selectToday(): void {\n const today = new Date();\n const dateOnly = new Date(today.getFullYear(), today.getMonth(), today.getDate());\n this._selected.set(dateOnly);\n this.filterChange.emit(dateOnly);\n }\n\n /** Drops the selection and emits `null`, which {@link dateFilterFn} treats as \"no filter\". */\n clear(): void {\n this._selected.set(null);\n this.filterChange.emit(null);\n }\n}\n\nexport function dateFilterFn<TRow>(\n row: TRow,\n filterValue: Date | null,\n getValue: (row: TRow) => unknown\n): boolean {\n if (!filterValue) return true;\n const cellDate = toDate(getValue(row));\n if (!cellDate) return false;\n return toDateOnlyTimestamp(cellDate) === toDateOnlyTimestamp(filterValue);\n}\n","<div [class]=\"classes()\" [attr.data-slot]=\"'date-filter'\" [attr.dir]=\"dir()\">\n @if (title()) {\n <div class=\"flex items-center justify-between px-3 pb-2\">\n <span class=\"text-sm font-medium\">{{ title() }}</span>\n </div>\n }\n <div class=\"flex items-center gap-1 px-3 pb-2\">\n <ui-button variant=\"outline\" size=\"sm\" class=\"h-7 text-xs\" (clicked)=\"selectToday()\">\n {{ todayLabel() }}\n </ui-button>\n <ui-button variant=\"ghost\" size=\"sm\" class=\"h-7 text-xs\" (clicked)=\"clear()\">\n {{ clearLabel() }}\n </ui-button>\n </div>\n <ui-calendar\n mode=\"single\"\n [selected]=\"selectedValue()\"\n [showMonthSelect]=\"true\"\n [showYearSelect]=\"true\"\n [locale]=\"locale()\"\n class=\"border-0 rounded-none\"\n (selectedChange)=\"onDateSelect($event)\"\n />\n</div>\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n output,\n computed,\n signal,\n effect,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CalendarComponent, DateRange } from '../../calendar';\nimport { ButtonComponent } from '../../button';\nimport { createLocaleBindings, type LocaleInput } from '../../../lib/i18n';\nimport { CALENDAR_LOCALES, type CalendarLocale } from '../../../lib/i18n/calendar.locales';\nimport { toDate, toDateOnlyTimestamp } from './data-table-date-utils';\n\nexport interface DateRangePreset {\n readonly label: string;\n readonly range: DateRange;\n}\n\n@Component({\n selector: 'ui-data-table-date-range-filter',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CalendarComponent, ButtonComponent],\n templateUrl: './data-table-date-range-filter.component.html',\n host: { class: 'contents' },\n})\nexport class DataTableDateRangeFilterComponent {\n /** Extra classes merged onto the panel wrapper (the calendar keeps its own). */\n readonly class = input('');\n /** Optional heading above the preset row; omitted entirely when unset. */\n readonly title = input<string | undefined>(undefined);\n /**\n * Locale dictionary or registry key (BCP-47). Falls back to `UI_LOCALE_ID`\n * when not set — so an embedded date-range filter inside\n * `<ui-data-table locale=\"he\">` is automatically Hebrew.\n */\n readonly locale = input<LocaleInput<CalendarLocale>>();\n /**\n * The externally-held range. An effect mirrors it into the internal signal\n * the calendar reads (`null` becomes an empty `{ start: null, end: null }`),\n * so pushing a new value resets the panel; the component also maintains that\n * signal itself, so it works uncontrolled if you never write back.\n */\n readonly selected = input<DateRange | null>(null);\n /**\n * Replaces the built-in quick ranges (Today / Last 7 days / Last 30 days /\n * This month). An empty array — the default — keeps the built-ins, which are\n * localized from the active {@link locale}; there is no way to render *no*\n * presets.\n */\n readonly presets = input<DateRangePreset[]>([]);\n\n /**\n * The completed range, or `null` when cleared. Only emitted once *both*\n * endpoints exist — picking the first endpoint updates the calendar but stays\n * silent — so a consumer never sees a half-open range from calendar clicks.\n * Presets emit immediately. Pair with {@link dateRangeFilterFn}.\n */\n readonly filterChange = output<DateRange | null>();\n\n private readonly _selected = signal<DateRange>({ start: null, end: null });\n readonly selectedValue = this._selected.asReadonly();\n\n private readonly i18n = createLocaleBindings(this.locale, CALENDAR_LOCALES);\n private readonly activeLocale = this.i18n.t;\n readonly isRtl = this.i18n.isRtl;\n /** `'rtl'` when the active locale is RTL, otherwise `null` — bind to `[attr.dir]`. */\n readonly dir = this.i18n.dir;\n readonly clearLabel = computed(() => this.activeLocale().clearLabel ?? 'Clear');\n\n constructor() {\n effect(() => {\n const sel = this.selected();\n if (sel) {\n this._selected.set(sel);\n } else {\n this._selected.set({ start: null, end: null });\n }\n });\n }\n\n readonly classes = computed(() => cn(\n 'flex flex-col',\n this.class()\n ));\n\n readonly effectivePresets = computed(() => {\n const custom = this.presets();\n if (custom.length > 0) return custom;\n return buildDefaultPresets(this.activeLocale());\n });\n\n /**\n * Calendar `selectedChange` handler. Payloads that aren't range-shaped are\n * ignored; a range with only a start is stored but not emitted (see\n * {@link filterChange}).\n */\n onRangeSelect(value: unknown): void {\n if (value && typeof value === 'object' && 'start' in value) {\n const range = value as DateRange;\n this._selected.set(range);\n if (range.start && range.end) {\n this.filterChange.emit(range);\n }\n }\n }\n\n /**\n * Selects a quick range and emits it immediately, without waiting for a\n * second calendar click. The preset's `range` object is stored by reference —\n * it is not cloned or normalized to midnight, so a caller-supplied preset\n * carrying a time-of-day is passed through as-is.\n */\n applyPreset(preset: DateRangePreset): void {\n this._selected.set(preset.range);\n this.filterChange.emit(preset.range);\n }\n\n /** Empties both endpoints and emits `null`, which {@link dateRangeFilterFn} treats as \"no filter\". */\n clear(): void {\n this._selected.set({ start: null, end: null });\n this.filterChange.emit(null);\n }\n}\n\nfunction buildDefaultPresets(locale: CalendarLocale): DateRangePreset[] {\n const today = new Date();\n const todayOnly = new Date(today.getFullYear(), today.getMonth(), today.getDate());\n\n return [\n {\n label: locale.todayLabel ?? 'Today',\n range: { start: todayOnly, end: todayOnly },\n },\n {\n label: locale.last7DaysLabel ?? 'Last 7 days',\n range: {\n start: new Date(todayOnly.getFullYear(), todayOnly.getMonth(), todayOnly.getDate() - 6),\n end: todayOnly,\n },\n },\n {\n label: locale.last30DaysLabel ?? 'Last 30 days',\n range: {\n start: new Date(todayOnly.getFullYear(), todayOnly.getMonth(), todayOnly.getDate() - 29),\n end: todayOnly,\n },\n },\n {\n label: locale.thisMonthLabel ?? 'This month',\n range: {\n start: new Date(todayOnly.getFullYear(), todayOnly.getMonth(), 1),\n end: todayOnly,\n },\n },\n ];\n}\n\nexport function dateRangeFilterFn<TRow>(\n row: TRow,\n filterValue: DateRange | null,\n getValue: (row: TRow) => unknown\n): boolean {\n if (!filterValue) return true;\n if (!filterValue.start && !filterValue.end) return true;\n\n const cellDate = toDate(getValue(row));\n if (!cellDate) return false;\n const cellTs = toDateOnlyTimestamp(cellDate);\n\n if (filterValue.start && filterValue.end) {\n return cellTs >= toDateOnlyTimestamp(filterValue.start)\n && cellTs <= toDateOnlyTimestamp(filterValue.end);\n }\n if (filterValue.start) {\n return cellTs >= toDateOnlyTimestamp(filterValue.start);\n }\n if (!filterValue.end) return true;\n return cellTs <= toDateOnlyTimestamp(filterValue.end);\n}\n","<div [class]=\"classes()\" [attr.data-slot]=\"'date-range-filter'\" [attr.dir]=\"dir()\">\n @if (title()) {\n <div class=\"flex items-center justify-between px-3 pb-2\">\n <span class=\"text-sm font-medium\">{{ title() }}</span>\n </div>\n }\n <div class=\"flex flex-wrap items-center gap-1 px-3 pb-2\">\n @for (preset of effectivePresets(); track preset.label) {\n <ui-button variant=\"outline\" size=\"sm\" class=\"h-7 text-xs\" (clicked)=\"applyPreset(preset)\">\n {{ preset.label }}\n </ui-button>\n }\n <ui-button variant=\"ghost\" size=\"sm\" class=\"h-7 text-xs\" (clicked)=\"clear()\">\n {{ clearLabel() }}\n </ui-button>\n </div>\n <ui-calendar\n mode=\"range\"\n [selected]=\"selectedValue()\"\n [showMonthSelect]=\"true\"\n [showYearSelect]=\"true\"\n [locale]=\"locale()\"\n class=\"border-0 rounded-none\"\n (selectedChange)=\"onRangeSelect($event)\"\n />\n</div>\n","import { TemplateRef, Type } from '@angular/core';\nimport { ColumnDef } from './data-table.types';\n\ntype AccessorColumnOptions<T> = Omit<ColumnDef<T>, 'accessorKey' | 'header'>;\n\ninterface ColumnBuilder<T> {\n select(options?: Partial<ColumnDef<T>>): ColumnBuilder<T>;\n expander(options?: Partial<ColumnDef<T>>): ColumnBuilder<T>;\n actions(options?: Partial<ColumnDef<T>>): ColumnBuilder<T>;\n accessor<K extends keyof T & string>(\n key: K,\n header: string,\n options?: AccessorColumnOptions<T>\n ): ColumnBuilder<T>;\n template(\n key: keyof T & string,\n header: string,\n template: TemplateRef<unknown>,\n options?: AccessorColumnOptions<T>\n ): ColumnBuilder<T>;\n component(\n key: keyof T & string,\n header: string,\n component: Type<unknown>,\n options?: AccessorColumnOptions<T>\n ): ColumnBuilder<T>;\n custom(column: ColumnDef<T>): ColumnBuilder<T>;\n build(): ColumnDef<T>[];\n}\n\nfunction buildSelect<T>(columns: ColumnDef<T>[], builder: ColumnBuilder<T>, options?: Partial<ColumnDef<T>>): ColumnBuilder<T> {\n columns.push({ accessorKey: '_selection', header: '', sticky: true, width: '40px', enableSorting: false, enableHiding: false, enableReordering: false, ...options });\n return builder;\n}\n\nfunction buildExpander<T>(columns: ColumnDef<T>[], builder: ColumnBuilder<T>, options?: Partial<ColumnDef<T>>): ColumnBuilder<T> {\n columns.push({ accessorKey: '_expander', header: '', sticky: true, width: '40px', enableSorting: false, enableHiding: false, enableReordering: false, ...options });\n return builder;\n}\n\nfunction buildActions<T>(columns: ColumnDef<T>[], builder: ColumnBuilder<T>, options?: Partial<ColumnDef<T>>): ColumnBuilder<T> {\n columns.push({ accessorKey: '_actions', header: '', width: '50px', enableSorting: false, enableHiding: false, enableReordering: false, ...options });\n return builder;\n}\n\nexport function columnHelper<T>(): ColumnBuilder<T> {\n const columns: ColumnDef<T>[] = [];\n\n const builder: ColumnBuilder<T> = {\n select: (options) => buildSelect(columns, builder, options),\n expander: (options) => buildExpander(columns, builder, options),\n actions: (options) => buildActions(columns, builder, options),\n\n accessor<K extends keyof T & string>(key: K, header: string, options?: AccessorColumnOptions<T>): ColumnBuilder<T> {\n columns.push({ accessorKey: key, header, ...options });\n return builder;\n },\n\n template(key: keyof T & string, header: string, template: TemplateRef<unknown>, options?: AccessorColumnOptions<T>): ColumnBuilder<T> {\n columns.push({ accessorKey: key, header, template, ...options });\n return builder;\n },\n\n component(key: keyof T & string, header: string, component: Type<unknown>, options?: AccessorColumnOptions<T>): ColumnBuilder<T> {\n columns.push({ accessorKey: key, header, component, ...options });\n return builder;\n },\n\n custom(column: ColumnDef<T>): ColumnBuilder<T> {\n columns.push(column);\n return builder;\n },\n\n build(): ColumnDef<T>[] {\n return [...columns];\n },\n };\n\n return builder;\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n signal,\n inject,\n ElementRef,\n OnDestroy,\n ViewChild,\n effect,\n TemplateRef,\n ViewContainerRef,\n EmbeddedViewRef,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { cn } from '../../../lib/utils';\nimport { CONTEXT_MENU } from '../context-menu.component';\n\n@Component({\n selector: 'ui-context-menu-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-template #contentTemplate>\n <div\n #contentEl\n [class]=\"classes()\"\n [style.position]=\"'fixed'\"\n [style.left.px]=\"adjustedPosition().x\"\n [style.top.px]=\"adjustedPosition().y\"\n [style.z-index]=\"9999\"\n [attr.data-state]=\"contextMenu?.open() ? 'open' : 'closed'\"\n [attr.data-slot]=\"'context-menu-content'\"\n >\n <ng-content />\n </div>\n </ng-template>\n `,\n host: { class: 'contents' },\n})\nexport class ContextMenuContentComponent implements OnDestroy {\n readonly contextMenu = inject(CONTEXT_MENU, { optional: true });\n private readonly document = inject(DOCUMENT);\n\n /**\n * Extra classes for the floating panel, merged after the defaults\n * (`min-w-[8rem]`, popover colours, `max-w-[calc(100vw-16px)]` /\n * `max-h-[calc(100vh-16px)]` scroll clamps, enter animation). The panel is\n * portalled to `document.body` with `position: fixed` and `z-index: 9999`,\n * so it inherits nothing from the host — width, padding and colours must be\n * set here rather than on an ancestor. Avoid overriding `position`/`left`/\n * `top`: they are re-applied from the clamped coordinates on every open.\n */\n class = input('');\n\n @ViewChild('contentTemplate', { static: true }) contentTemplate!: TemplateRef<unknown>;\n @ViewChild('contentEl') contentEl?: ElementRef<HTMLElement>;\n\n private readonly viewContainerRef = inject(ViewContainerRef);\n private embeddedViewRef: EmbeddedViewRef<unknown> | null = null;\n private portalHost: HTMLElement | null = null;\n\n adjustedPosition = signal({ x: 0, y: 0 });\n\n constructor() {\n effect(() => {\n if (this.contextMenu?.open()) {\n const pos = this.contextMenu.position();\n this.adjustedPosition.set({ x: pos.x, y: pos.y });\n this.showContent();\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.calculatePosition();\n });\n });\n } else {\n this.hideContent();\n }\n });\n }\n\n private showContent(): void {\n if (this.embeddedViewRef) return;\n\n this.portalHost = this.document.createElement('div');\n this.portalHost.dataset['contextMenuPortal'] = 'true';\n this.document.body.appendChild(this.portalHost);\n this.embeddedViewRef = this.viewContainerRef.createEmbeddedView(this.contentTemplate);\n this.embeddedViewRef.detectChanges();\n\n this.embeddedViewRef.rootNodes.forEach((node: Node) => {\n this.portalHost?.appendChild(node);\n });\n }\n\n private hideContent(): void {\n this.embeddedViewRef?.destroy();\n this.embeddedViewRef = null;\n this.portalHost?.remove();\n this.portalHost = null;\n }\n\n ngOnDestroy(): void {\n this.hideContent();\n }\n\n private calculatePosition(): void {\n if (!this.portalHost) return;\n\n const content = this.portalHost.querySelector<HTMLElement>('[data-slot=\"context-menu-content\"]');\n if (!content) return;\n\n const rect = content.getBoundingClientRect();\n const viewportWidth = this.document.defaultView?.innerWidth ?? 0;\n const viewportHeight = this.document.defaultView?.innerHeight ?? 0;\n const pos = this.contextMenu?.position() ?? { x: 0, y: 0 };\n\n let x = pos.x;\n let y = pos.y;\n\n if (x + rect.width > viewportWidth) {\n x = viewportWidth - rect.width - 8;\n }\n if (x < 8) {\n x = 8;\n }\n\n if (y + rect.height > viewportHeight) {\n y = viewportHeight - rect.height - 8;\n }\n if (y < 8) {\n y = 8;\n }\n\n this.adjustedPosition.set({ x, y });\n }\n\n classes = computed(() => cn(\n 'min-w-[8rem] max-w-[calc(100vw-16px)] max-h-[calc(100vh-16px)] overflow-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n 'animate-in fade-in-0 zoom-in-95',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n inject,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CONTEXT_MENU } from '../context-menu.component';\n\n@Component({\n selector: 'ui-context-menu-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-content />\n @if (shortcut()) {\n <span class=\"ms-auto text-xs tracking-widest text-muted-foreground\">{{ shortcut() }}</span>\n }\n `,\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"context-menu-item\"',\n '[attr.data-inset]': 'inset()',\n '[attr.data-variant]': 'variant()',\n '(click)': 'onClick()',\n },\n})\nexport class ContextMenuItemComponent {\n private readonly contextMenu = inject(CONTEXT_MENU, { optional: true });\n\n /** Extra classes merged after the defaults on the host element (the item is its own host, there is no inner wrapper). */\n class = input('');\n /** Adds `ps-8` start padding so a label-less item lines up with siblings that carry a leading icon; also reflected as `data-inset` for styling. */\n inset = input(false);\n /** `'destructive'` paints the label and its focus/hover background in the destructive palette; reflected as `data-variant` for custom styling. */\n variant = input<'default' | 'destructive'>('default');\n /**\n * Greys the item to 50% and sets `pointer-events: none`, so neither hover\n * nor a click reaches it and {@link onClick} never runs. Note it emits no\n * `aria-disabled`/`data-disabled` attribute and the item carries no\n * `role=\"menuitem\"`, so a disabled item is invisible to assistive tech —\n * and no item participates in the sub-menu arrow-key ring, which only\n * walks `[role=\"menuitem\"]:not([data-disabled])`.\n */\n disabled = input(false);\n /** Accelerator hint rendered end-aligned in muted small caps (e.g. `'⌘C'`). Display only — it binds no key handler; wire the shortcut yourself. */\n shortcut = input('');\n\n classes = computed(() => cn(\n 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors',\n 'focus:bg-accent focus:text-accent-foreground',\n 'hover:bg-accent hover:text-accent-foreground',\n '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n this.inset() && 'ps-8',\n this.variant() === 'destructive' && 'text-destructive focus:bg-destructive/10 focus:text-destructive',\n this.disabled() && 'pointer-events-none opacity-50',\n this.class()\n ));\n\n /**\n * Host click handler: dismisses the enclosing menu unless\n * {@link disabled}. It does not emit anything — bind your own `(click)` on\n * the element for the action; yours runs first, then the menu closes.\n */\n onClick(): void {\n if (!this.disabled()) {\n this.contextMenu?.close();\n }\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\n\n@Component({\n selector: 'ui-context-menu-label',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"context-menu-label\"',\n '[attr.data-inset]': 'inset()',\n },\n})\nexport class ContextMenuLabelComponent {\n /** Extra classes merged after the defaults on the host element; use it to re-colour or re-space a section heading. */\n class = input('');\n /** Adds `ps-8` start padding so the heading aligns with inset items below it; also reflected as `data-inset`. */\n inset = input(false);\n\n classes = computed(() => cn(\n 'px-2 py-1.5 text-sm font-semibold text-foreground',\n this.inset() && 'ps-8',\n this.class()\n ));\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-context-menu-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: ``,\n host: {\n class: '-mx-1 my-1 h-px bg-border',\n '[attr.data-slot]': '\"context-menu-separator\"',\n },\n})\nexport class ContextMenuSeparatorComponent { }\n","import {\n Component,\n ChangeDetectionStrategy,\n signal,\n InjectionToken,\n forwardRef,\n OnDestroy,\n} from '@angular/core';\nimport type { ContextMenuSubTriggerComponent } from './context-menu-sub-trigger.component';\nimport type { ContextMenuSubContentComponent } from './context-menu-sub-content.component';\n\nexport const CONTEXT_MENU_SUB = new InjectionToken<ContextMenuSubComponent>('CONTEXT_MENU_SUB');\n\n@Component({\n selector: 'ui-context-menu-sub',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: CONTEXT_MENU_SUB, useExisting: forwardRef(() => ContextMenuSubComponent) }],\n template: `<ng-content />`,\n host: {\n class: 'relative block w-full',\n '[attr.data-slot]': '\"context-menu-sub\"',\n },\n})\nexport class ContextMenuSubComponent implements OnDestroy {\n isOpen = signal(false);\n private timeoutId: ReturnType<typeof setTimeout> | undefined;\n\n /** Cancels a close still pending from {@link leave}, so a sub destroyed inside the grace period leaves no timer behind. */\n ngOnDestroy(): void {\n clearTimeout(this.timeoutId);\n }\n\n private trigger: ContextMenuSubTriggerComponent | null = null;\n private content: ContextMenuSubContentComponent | null = null;\n\n /** Called by a projected `<ui-context-menu-sub-trigger>` from its constructor; the last one to register wins, so nest exactly one per sub. */\n registerTrigger(t: ContextMenuSubTriggerComponent): void { this.trigger = t; }\n /** Called by a projected `<ui-context-menu-sub-content>` from its constructor; the last one to register wins, so nest exactly one per sub. */\n registerContent(c: ContextMenuSubContentComponent): void { this.content = c; }\n\n /**\n * The registered trigger's inner row element, used by the content to\n * anchor its flyout. `null` before the trigger's view initialises or when\n * no trigger is projected — the content then skips positioning and stays\n * at its last coordinates.\n */\n getTriggerElement(): HTMLElement | null {\n return this.trigger?.triggerEl?.nativeElement ?? null;\n }\n\n /**\n * Opens the flyout immediately and cancels any pending close from\n * {@link leave} — which is what lets the pointer travel from the trigger\n * to the flyout without it vanishing, since both call this on\n * `mouseenter`. Idempotent while already open.\n */\n enter(): void {\n clearTimeout(this.timeoutId);\n this.isOpen.set(true);\n }\n\n /**\n * Schedules the flyout to close after a 100ms grace period, so a pointer\n * moving off the trigger and onto the flyout (or back) can cancel it via\n * {@link enter}. Keyboard closes go through the same method and therefore\n * also wait out the delay. Destroying the component cancels a pending\n * timer.\n */\n leave(): void {\n this.timeoutId = setTimeout(() => {\n this.isOpen.set(false);\n }, 100);\n }\n\n /**\n * Returns focus to the branch trigger on the next macrotask, after the\n * flyout portal has been torn down — focusing synchronously would be\n * undone by the removal of the currently focused element. No-op if no\n * trigger has registered.\n */\n focusTrigger(): void {\n setTimeout(() => {\n this.trigger?.focus();\n }, 0);\n }\n\n /**\n * Moves focus into the flyout on the next macrotask, giving the portal\n * time to mount after {@link enter}. Delegates to\n * {@link ContextMenuSubContentComponent.focusFirst}, so it lands on the\n * first entry that matches `[role=\"menuitem\"]:not([data-disabled])`.\n */\n focusContent(): void {\n setTimeout(() => {\n this.content?.focusFirst();\n }, 0);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n inject,\n ElementRef,\n ViewChild,\n booleanAttribute,\n} from '@angular/core';\nimport { cn } from '../../../lib/utils';\nimport { CONTEXT_MENU } from '../context-menu.component';\nimport { CONTEXT_MENU_SUB, type ContextMenuSubComponent } from './context-menu-sub.component';\n\n@Component({\n selector: 'ui-context-menu-sub-trigger',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n #trigger\n [class]=\"classes()\"\n role=\"menuitem\"\n tabindex=\"-1\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-expanded]=\"sub.isOpen()\"\n [attr.data-slot]=\"'context-menu-sub-trigger'\"\n [attr.data-disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"disabled() || null\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"sub.leave()\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"$event.stopPropagation()\"\n >\n <ng-content />\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" class=\"h-4 w-4 ltr:ml-auto rtl:mr-auto rtl:rotate-180\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m9 18 6-6-6-6\"/></svg>\n </div>\n `,\n host: { class: 'contents' },\n})\nexport class ContextMenuSubTriggerComponent {\n /** Extra classes for the inner trigger row, merged after the defaults (the host itself is `display: contents`, so styling the host has no effect). */\n class = input('');\n /**\n * Disables the branch: the value is written to `data-disabled` and\n * `aria-disabled`, so the `data-[disabled]:` styling dims the row and makes\n * it `pointer-events-none`, the row drops out of the arrow-key ring (which\n * walks `[role=\"menuitem\"]:not([data-disabled])`), and neither hover nor\n * the keyboard opens the flyout. Accepts a bare attribute (`disabled`) via\n * `booleanAttribute`.\n */\n disabled = input(false, { transform: booleanAttribute });\n /** Adds `pl-8` (LTR) / `pr-8` (RTL) so the branch label aligns with inset siblings. */\n inset = input(false, { transform: booleanAttribute });\n\n readonly sub = inject(CONTEXT_MENU_SUB) as ContextMenuSubComponent;\n private readonly contextMenu = inject(CONTEXT_MENU, { optional: true });\n readonly el = inject(ElementRef);\n\n @ViewChild('trigger') triggerEl!: ElementRef<HTMLElement>;\n\n constructor() {\n this.sub.registerTrigger(this);\n }\n\n classes = computed(() => cn(\n 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n this.sub.isOpen() && 'bg-accent text-accent-foreground',\n this.inset() && 'ltr:pl-8 rtl:pr-8',\n this.class()\n ));\n\n /**\n * Focuses the inner trigger row. It carries `tabindex=\"-1\"` per the\n * WAI-ARIA menu pattern — Tab leaves the menu, arrow keys move within it —\n * so focus here is always moved programmatically.\n * Called by {@link ContextMenuSubComponent.focusTrigger} when the flyout\n * closes via Escape or the inline-start arrow, so focus returns to the\n * branch rather than being lost with the destroyed portal.\n */\n focus(): void {\n if (this.disabled()) return;\n this.triggerEl?.nativeElement.focus();\n }\n\n /**\n * Opens the flyout on hover, unless {@link disabled}. The matching\n * `mouseleave` closes it after the sub's 100ms grace period, which needs no\n * guard — closing an already-closed flyout is a no-op.\n */\n onMouseEnter(): void {\n if (this.disabled()) return;\n this.sub.enter();\n }\n\n /**\n * Opens the flyout and moves focus into it on Enter, and on the\n * inline-forward arrow — ArrowRight in LTR, ArrowLeft in RTL (the opposite\n * arrow is left unhandled so it can close a parent flyout). Space does not\n * open the branch. The event is stopped so the parent menu does not act on\n * the same key; the reverse direction is handled by\n * {@link ContextMenuSubContentComponent.onKeydown}. Mouse users get the\n * same result by hovering: `mouseenter` opens immediately, `mouseleave`\n * closes after a 100ms grace period so the pointer can cross the gap. Every\n * key is ignored while {@link disabled}.\n */\n onKeydown(event: KeyboardEvent): void {\n if (this.disabled()) return;\n const rtl = this.contextMenu?.isRtl() ?? false;\n if (event.key === 'ArrowRight') {\n if (rtl) return;\n event.preventDefault();\n event.stopPropagation();\n this.sub.enter();\n this.sub.focusContent();\n }\n if (event.key === 'ArrowLeft') {\n if (rtl) {\n event.preventDefault();\n event.stopPropagation();\n this.sub.enter();\n this.sub.focusContent();\n }\n }\n if (event.key === 'Enter') {\n event.preventDefault();\n this.sub.enter();\n this.sub.focusContent();\n }\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n computed,\n signal,\n inject,\n ElementRef,\n OnDestroy,\n ViewChild,\n effect,\n TemplateRef,\n ViewContainerRef,\n EmbeddedViewRef,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { cn } from '../../../lib/utils';\nimport { CONTEXT_MENU } from '../context-menu.component';\nimport { CONTEXT_MENU_SUB, type ContextMenuSubComponent } from './context-menu-sub.component';\n\n@Component({\n selector: 'ui-context-menu-sub-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ng-template #subContentTemplate>\n <div\n #subContentEl\n [class]=\"classes()\"\n [style.position]=\"'fixed'\"\n [style.left.px]=\"portalPosition().x\"\n [style.top.px]=\"portalPosition().y\"\n [style.z-index]=\"10000\"\n role=\"menu\"\n tabindex=\"-1\"\n [attr.data-slot]=\"'context-menu-sub-content'\"\n (mouseenter)=\"sub.enter()\"\n (mouseleave)=\"sub.leave()\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-content />\n </div>\n </ng-template>\n `,\n host: { class: 'contents' },\n})\nexport class ContextMenuSubContentComponent implements OnDestroy {\n /**\n * Extra classes for the flyout panel, merged after the defaults. Like the\n * root content this is portalled to `document.body` (`position: fixed`,\n * `z-index: 10000` so it stacks above the root menu), positioned 4px to the\n * inline-end of its trigger — flipping to the other side, then clamping 8px\n * inside the viewport, when it would overflow. Overriding `position`/\n * `left`/`top` fights that logic.\n */\n class = input('');\n readonly sub = inject(CONTEXT_MENU_SUB) as ContextMenuSubComponent;\n private readonly contextMenu = inject(CONTEXT_MENU, { optional: true });\n private readonly document = inject(DOCUMENT);\n private readonly viewContainerRef = inject(ViewContainerRef);\n readonly el = inject(ElementRef);\n\n @ViewChild('subContentTemplate', { static: true }) subContentTemplate!: TemplateRef<unknown>;\n @ViewChild('subContentEl') subContentEl?: ElementRef<HTMLElement>;\n\n private embeddedViewRef: EmbeddedViewRef<unknown> | null = null;\n private portalHost: HTMLElement | null = null;\n portalPosition = signal({ x: 0, y: 0 });\n\n constructor() {\n this.sub.registerContent(this);\n effect(() => {\n if (this.sub.isOpen()) {\n this.showPortal();\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.calculatePosition();\n });\n });\n } else {\n this.hidePortal();\n }\n });\n }\n\n private showPortal(): void {\n if (this.embeddedViewRef) return;\n\n this.portalHost = this.document.createElement('div');\n this.portalHost.dataset['contextMenuSubPortal'] = 'true';\n this.document.body.appendChild(this.portalHost);\n this.embeddedViewRef = this.viewContainerRef.createEmbeddedView(this.subContentTemplate);\n this.embeddedViewRef.detectChanges();\n\n this.embeddedViewRef.rootNodes.forEach((node: Node) => {\n this.portalHost?.appendChild(node);\n });\n }\n\n private hidePortal(): void {\n if (this.embeddedViewRef) {\n this.embeddedViewRef.destroy();\n this.embeddedViewRef = null;\n }\n if (this.portalHost) {\n this.portalHost.remove();\n this.portalHost = null;\n }\n }\n\n private resolveX(triggerRect: DOMRect, contentRect: DOMRect, viewportWidth: number, rtl: boolean): number {\n let x: number;\n if (rtl) {\n x = triggerRect.left - contentRect.width - 4;\n if (x < 8) {\n x = triggerRect.right + 4;\n }\n } else {\n x = triggerRect.right + 4;\n if (x + contentRect.width > viewportWidth - 8) {\n x = triggerRect.left - contentRect.width - 4;\n }\n }\n if (x < 8) x = 8;\n if (x + contentRect.width > viewportWidth - 8) {\n x = viewportWidth - contentRect.width - 8;\n }\n return x;\n }\n\n private resolveY(triggerRect: DOMRect, contentRect: DOMRect, viewportHeight: number): number {\n let y = triggerRect.top;\n if (y + contentRect.height > viewportHeight - 8) {\n y = viewportHeight - contentRect.height - 8;\n }\n if (y < 8) y = 8;\n return y;\n }\n\n private calculatePosition(): void {\n if (!this.portalHost) return;\n\n const triggerEl = this.sub.getTriggerElement();\n if (!triggerEl) return;\n\n const content = this.portalHost.querySelector<HTMLElement>('[data-slot=\"context-menu-sub-content\"]');\n if (!content) return;\n\n const triggerRect = triggerEl.getBoundingClientRect();\n const contentRect = content.getBoundingClientRect();\n const viewportWidth = this.document.defaultView?.innerWidth ?? 0;\n const viewportHeight = this.document.defaultView?.innerHeight ?? 0;\n const rtl = this.contextMenu?.isRtl() ?? false;\n\n const x = this.resolveX(triggerRect, contentRect, viewportWidth, rtl);\n const y = this.resolveY(triggerRect, contentRect, viewportHeight);\n\n this.portalPosition.set({ x, y });\n }\n\n ngOnDestroy(): void {\n this.hidePortal();\n }\n\n classes = computed(() => cn(\n 'min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n 'animate-in fade-in-0 zoom-in-95',\n this.class()\n ));\n\n /**\n * Moves focus to the first enabled entry of the open flyout — called by\n * {@link ContextMenuSubComponent.focusContent} one tick after the sub opens\n * from the keyboard. A no-op while the portal is unmounted. Only elements\n * matching `[role=\"menuitem\"]:not([data-disabled])` qualify, which today\n * means nested `<ui-context-menu-sub-trigger>`s; plain\n * `<ui-context-menu-item>`s carry no such role and are skipped.\n */\n focusFirst(): void {\n if (!this.portalHost) return;\n const items = Array.from(this.portalHost.querySelectorAll<HTMLElement>('[role=\"menuitem\"]:not([data-disabled])'));\n items[0]?.focus();\n }\n\n /**\n * Keyboard handling for the open flyout. ArrowDown/ArrowUp walk the\n * enabled entries with wrap-around ({@link focusNextItem} /\n * {@link focusPrevItem}); the closing key is direction-aware — ArrowLeft in\n * LTR, ArrowRight in RTL — and Escape always closes; all three close the\n * flyout and return focus to its trigger. Every key event is stopped from\n * propagating, so the document-level Escape listener on the root menu never\n * sees it: Escape inside a sub closes only that sub, leaving the root menu\n * open. Keys other than these bubble no further but are not\n * `preventDefault`ed.\n */\n onKeydown(event: KeyboardEvent): void {\n event.stopPropagation();\n const rtl = this.contextMenu?.isRtl() ?? false;\n\n if (event.key === 'ArrowLeft') {\n if (!rtl) {\n event.preventDefault();\n this.sub.leave();\n this.sub.focusTrigger();\n }\n } else if (event.key === 'ArrowRight') {\n if (rtl) {\n event.preventDefault();\n this.sub.leave();\n this.sub.focusTrigger();\n }\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.focusNextItem(event.target as HTMLElement);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n this.focusPrevItem(event.target as HTMLElement);\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.sub.leave();\n this.sub.focusTrigger();\n }\n }\n\n /**\n * Focuses the entry after `currentItem` within the same `[role=\"menu\"]`\n * container, wrapping from the last back to the first. Disabled entries\n * (`[data-disabled]`) are excluded from the ring, not merely skipped over.\n * If `currentItem` is not itself in the ring (index `-1`) the walk starts\n * at the first entry. Counterpart of {@link focusPrevItem}.\n */\n focusNextItem(currentItem: HTMLElement): void {\n const div = currentItem.closest<HTMLElement>('[role=\"menu\"]') ?? currentItem;\n const items = Array.from(div.querySelectorAll<HTMLElement>('[role=\"menuitem\"]:not([data-disabled])'));\n const index = items.indexOf(currentItem);\n const nextIndex = (index + 1) % items.length;\n items[nextIndex]?.focus();\n }\n\n /**\n * Focuses the entry before `currentItem` within the same `[role=\"menu\"]`\n * container, wrapping from the first around to the last. Disabled entries\n * (`[data-disabled]`) are excluded from the ring; an element that is not in\n * the ring (index `-1`) lands on the second-to-last entry. Counterpart of\n * {@link focusNextItem}.\n */\n focusPrevItem(currentItem: HTMLElement): void {\n const div = currentItem.closest<HTMLElement>('[role=\"menu\"]') ?? currentItem;\n const items = Array.from(div.querySelectorAll<HTMLElement>('[role=\"menuitem\"]:not([data-disabled])'));\n const index = items.indexOf(currentItem);\n const prevIndex = (index - 1 + items.length) % items.length;\n items[prevIndex]?.focus();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n input,\n signal,\n inject,\n ElementRef,\n OnDestroy,\n forwardRef,\n InjectionToken,\n} from '@angular/core';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { isRtl } from '../../lib/utils';\nimport { ContextMenuContentComponent } from './sub/context-menu-content.component';\nimport { ContextMenuItemComponent } from './sub/context-menu-item.component';\nimport { ContextMenuLabelComponent } from './sub/context-menu-label.component';\nimport { ContextMenuSeparatorComponent } from './sub/context-menu-separator.component';\nimport { ContextMenuSubComponent } from './sub/context-menu-sub.component';\nimport { ContextMenuSubTriggerComponent } from './sub/context-menu-sub-trigger.component';\nimport { ContextMenuSubContentComponent } from './sub/context-menu-sub-content.component';\n\nexport interface ContextMenuItem {\n label?: string;\n value?: string;\n icon?: string;\n shortcut?: string;\n disabled?: boolean;\n type?: 'item' | 'separator' | 'label' | 'sub';\n children?: ContextMenuItem[];\n inset?: boolean;\n click?: (item: ContextMenuItem) => void;\n}\n\nexport const CONTEXT_MENU = new InjectionToken<ContextMenuComponent>('CONTEXT_MENU');\n\n@Component({\n selector: 'ui-context-menu',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n NgTemplateOutlet,\n forwardRef(() => ContextMenuContentComponent),\n forwardRef(() => ContextMenuItemComponent),\n forwardRef(() => ContextMenuLabelComponent),\n forwardRef(() => ContextMenuSeparatorComponent),\n forwardRef(() => ContextMenuSubComponent),\n forwardRef(() => ContextMenuSubTriggerComponent),\n forwardRef(() => ContextMenuSubContentComponent),\n ],\n template: `\n <ng-content />\n @if (items().length > 0) {\n <ui-context-menu-content>\n <ng-container *ngTemplateOutlet=\"menuItemsTpl; context: { $implicit: items() }\"></ng-container>\n </ui-context-menu-content>\n }\n\n <ng-template #menuItemsTpl let-items>\n @for (item of items; track $index) {\n @if (item.type === 'separator') {\n <ui-context-menu-separator />\n } @else if (item.type === 'label') {\n <ui-context-menu-label [inset]=\"item.inset\">{{ item.label }}</ui-context-menu-label>\n } @else if (item.type === 'sub') {\n <ui-context-menu-sub>\n <ui-context-menu-sub-trigger [inset]=\"item.inset\" [disabled]=\"item.disabled\">\n {{ item.label }}\n </ui-context-menu-sub-trigger>\n <ui-context-menu-sub-content>\n <ng-container *ngTemplateOutlet=\"menuItemsTpl; context: { $implicit: item.children }\"></ng-container>\n </ui-context-menu-sub-content>\n </ui-context-menu-sub>\n } @else {\n <ui-context-menu-item\n [disabled]=\"item.disabled\"\n [inset]=\"item.inset\"\n [shortcut]=\"item.shortcut\"\n (click)=\"item.click ? item.click(item) : null\">\n {{ item.label }}\n </ui-context-menu-item>\n }\n }\n </ng-template>\n `,\n host: {\n class: 'contents',\n '[attr.data-slot]': '\"context-menu\"',\n },\n providers: [{ provide: CONTEXT_MENU, useExisting: forwardRef(() => ContextMenuComponent) }],\n})\nexport class ContextMenuComponent implements OnDestroy {\n private readonly document = inject(DOCUMENT);\n private readonly el = inject(ElementRef);\n\n /**\n * Data-driven menu contents. When non-empty the component renders its own\n * `<ui-context-menu-content>` from this array (separators, labels, nested\n * `sub` branches and items, recursively), so you only project a trigger.\n * Leave it empty (the default) to hand-author the content with\n * `<ui-context-menu-content>` and friends — both forms may not be combined,\n * as a non-empty array appends a second content block after your projected\n * one. Each entry's `click` callback fires before the menu closes; see\n * {@link ContextMenuItem}.\n */\n items = input<ContextMenuItem[]>([]);\n open = signal(false);\n position = signal({ x: 0, y: 0 });\n data = signal<unknown>(undefined);\n\n private readonly clickListener = (event: MouseEvent): void => {\n const target = event.target as HTMLElement;\n if (target.closest('[data-context-menu-portal]') || target.closest('[data-context-menu-sub-portal]')) {\n return;\n }\n this.close();\n };\n\n private readonly escListener = (event: KeyboardEvent): void => {\n if (event.key === 'Escape') {\n this.close();\n }\n };\n\n private readonly scrollListener = (): void => {\n this.close();\n };\n\n constructor() {\n this.document.addEventListener('click', this.clickListener, true);\n this.document.addEventListener('keydown', this.escListener);\n this.document.addEventListener('scroll', this.scrollListener, true);\n }\n\n ngOnDestroy(): void {\n this.document.removeEventListener('click', this.clickListener, true);\n this.document.removeEventListener('keydown', this.escListener);\n this.document.removeEventListener('scroll', this.scrollListener, true);\n }\n\n /**\n * Opens the menu with its top-left corner at viewport coordinates\n * (`x`, `y`) — pass `clientX`/`clientY`, not page coordinates, since the\n * content is `position: fixed`. The content clamps itself 8px inside the\n * viewport on the next-but-one animation frame if it would overflow.\n * Calling this while already open just repositions it. `data` is stashed\n * on the `data` signal for the duration, so a shared menu can read which\n * row was right-clicked. Closed again by {@link close}, an outside click,\n * Escape, a scroll anywhere on the page, or selecting an item.\n */\n show(x: number, y: number, data?: unknown): void {\n this.position.set({ x, y });\n this.data.set(data);\n this.open.set(true);\n }\n\n /**\n * Closes the menu, tearing down its body portal. Safe to call when already\n * closed. The `data` passed to {@link show} is deliberately kept, so a\n * handler running after the close can still read it.\n */\n close(): void {\n this.open.set(false);\n }\n\n /**\n * True when this menu sits in a right-to-left subtree, resolved live from\n * the host element's computed direction (not cached). Sub-menus consult it\n * to flip their flyout side and to swap the ArrowLeft/ArrowRight roles.\n */\n isRtl(): boolean {\n return isRtl(this.el.nativeElement);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n inject,\n ElementRef,\n OnDestroy,\n AfterViewInit,\n ViewChild,\n} from '@angular/core';\nimport { onLongPress } from '../../../lib/touch';\nimport { CONTEXT_MENU } from '../context-menu.component';\n\n@Component({\n selector: 'ui-context-menu-trigger',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <span\n #triggerSpan\n class=\"contents\"\n (contextmenu)=\"onContextMenu($event)\"\n [attr.data-slot]=\"'context-menu-trigger'\"\n >\n <ng-content />\n </span>\n `,\n host: { class: 'contents' },\n})\nexport class ContextMenuTriggerComponent implements AfterViewInit, OnDestroy {\n private readonly contextMenu = inject(CONTEXT_MENU, { optional: true });\n\n @ViewChild('triggerSpan', { static: true }) private readonly triggerSpan!: ElementRef<HTMLElement>;\n\n private cleanupLongPress: (() => void) | null = null;\n\n ngAfterViewInit(): void {\n this.cleanupLongPress = onLongPress(this.triggerSpan.nativeElement, (event: TouchEvent) => {\n event.preventDefault();\n const touch = event.touches[0] ?? event.changedTouches[0];\n if (touch) {\n this.contextMenu?.show(touch.clientX, touch.clientY);\n }\n });\n }\n\n ngOnDestroy(): void {\n this.cleanupLongPress?.();\n }\n\n /**\n * Suppresses the browser's native context menu and opens the enclosing\n * `<ui-context-menu>` at the pointer. Touch users get the same result from\n * a 500ms long-press (cancelled if the finger moves more than 10px), wired\n * up in `ngAfterViewInit`. Bound on the wrapper `<span class=\"contents\">`,\n * so the event must originate from projected content; the menu also needs\n * to be an ancestor — without one this is a no-op. Use\n * `[uiContextMenuTrigger]` instead to trigger a menu declared elsewhere.\n */\n onContextMenu(event: MouseEvent): void {\n event.preventDefault();\n this.contextMenu?.show(event.clientX, event.clientY);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n selector: 'ui-context-menu-shortcut',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'ltr:ml-auto rtl:mr-auto text-xs tracking-widest text-muted-foreground',\n '[attr.data-slot]': '\"context-menu-shortcut\"',\n },\n})\nexport class ContextMenuShortcutComponent { }\n","import {\n Directive,\n input,\n inject,\n ElementRef,\n OnDestroy,\n AfterViewInit,\n} from '@angular/core';\nimport { onLongPress } from '../../../lib/touch';\nimport type { ContextMenuComponent } from '../context-menu.component';\n\n/**\n * ContextMenuTriggerDirective - Directive version for use on any element\n *\n * Usage:\n * <ui-context-menu #contextMenu>\n * <ui-context-menu-content>\n * <ui-context-menu-item>Action 1</ui-context-menu-item>\n * <ui-context-menu-item>Action 2</ui-context-menu-item>\n * </ui-context-menu-content>\n * </ui-context-menu>\n *\n * <div [uiContextMenuTrigger]=\"contextMenu\">\n * Right-click anywhere here\n * </div>\n */\n@Directive({\n selector: '[uiContextMenuTrigger]',\n host: {\n '(contextmenu)': 'onContextMenu($event)',\n '(click)': 'onClick($event)',\n },\n})\nexport class ContextMenuTriggerDirective implements AfterViewInit, OnDestroy {\n /**\n * The menu instance this element opens — bind a template reference to the\n * `<ui-context-menu>` (e.g. `[uiContextMenuTrigger]=\"contextMenu\"`). Unlike\n * `<ui-context-menu-trigger>`, the menu need not be an ancestor, so one\n * menu can be shared by many triggers; pair that with\n * `ContextMenuComponent.show`'s `data` argument to tell them apart.\n * Required — omitting it is a compile-time error.\n */\n readonly uiContextMenuTrigger = input.required<ContextMenuComponent>();\n\n private readonly el = inject(ElementRef);\n private cleanupLongPress: (() => void) | null = null;\n\n ngAfterViewInit(): void {\n this.cleanupLongPress = onLongPress(this.el.nativeElement as HTMLElement, (event: TouchEvent) => {\n event.preventDefault();\n const touch = event.touches[0] ?? event.changedTouches[0];\n const contextMenu = this.uiContextMenuTrigger();\n if (touch && contextMenu) {\n contextMenu.show(touch.clientX, touch.clientY);\n }\n });\n }\n\n ngOnDestroy(): void {\n this.cleanupLongPress?.();\n }\n\n /**\n * Suppresses the native context menu and opens {@link uiContextMenuTrigger}\n * at the pointer. Propagation is stopped, so nesting triggers opens only\n * the innermost one and an outer element's own `(contextmenu)` handler will\n * not run. Touch users get the same result from a 500ms long-press\n * (cancelled if the finger moves more than 10px). No `data` is passed to\n * `show()` — call it yourself if the menu needs to know its target.\n */\n onContextMenu(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n\n const contextMenu = this.uiContextMenuTrigger();\n if (!contextMenu) return;\n\n contextMenu.show(event.clientX, event.clientY);\n }\n\n /**\n * Dismisses the menu when the host is left-clicked while it is open, so a\n * plain click on the same element that opened it acts as a toggle-off. The\n * menu's own document-level capture listener already closes on any click\n * outside the portal, so this mainly guarantees the behaviour if that\n * listener is prevented from firing. The event is otherwise untouched — it\n * still bubbles and any other `(click)` handler on the element runs.\n */\n onClick(_event: MouseEvent): void {\n const contextMenu = this.uiContextMenuTrigger();\n if (contextMenu?.open()) {\n contextMenu.close();\n }\n }\n}\n","import {\n Directive,\n input,\n output,\n inject,\n effect,\n afterNextRender,\n ElementRef,\n ViewContainerRef,\n DestroyRef,\n type ComponentRef,\n} from '@angular/core';\nimport {\n DataTableAddonHost,\n type ColumnDef,\n type ColumnPin,\n type DataTableLocale,\n type RowActionContext,\n type SortDirection,\n} from '../..';\nimport { ContextMenuComponent, type ContextMenuItem } from '../../../context-menu';\nimport { onLongPress } from '../../../../lib/touch';\n\n/** Builds a consumer-provided row-action menu for a given row context. */\nexport type RowActionsFn<T> = (context: RowActionContext<T>) => ContextMenuItem[];\n\nconst SLOT_ID = 'context-menu';\n\n/**\n * Opt-in context-menu addon for `<ui-data-table>`. Attaches via DI to the\n * `DataTableAddonHost` the base provides, contributes the ⋮ row/header buttons\n * through the host's generic slot registries, and renders menus itself\n * (imperative `ContextMenuComponent`) — the base ships no context-menu code or\n * dependency. Reachable by mouse (`contextmenu`), touch (long-press), and the\n * ⋮ buttons.\n */\n@Directive({\n selector: '[uiDtContextMenu]',\n standalone: true,\n host: {\n '(contextmenu)': 'onContextMenu($event)',\n },\n})\nexport class DataTableContextMenuDirective<T = unknown> {\n private readonly host = inject<DataTableAddonHost<T>>(DataTableAddonHost);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly vcr = inject(ViewContainerRef);\n\n /** Consumer callback returning the menu items for a row. */\n readonly rowActions = input<RowActionsFn<T> | undefined>(undefined);\n /** Enable the per-column header menu (sort / pin / hide). */\n readonly enableColumnMenu = input(false);\n\n /** Emitted when a row menu opens (with its context). */\n readonly rowMenuOpen = output<RowActionContext<T>>();\n /** Emitted when a column menu opens (with its column). */\n readonly columnMenuOpen = output<ColumnDef<T>>();\n\n private rowMenu?: ComponentRef<ContextMenuComponent>;\n private columnMenu?: ComponentRef<ContextMenuComponent>;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n effect((onCleanup) => {\n if (!this.rowActions()) return;\n onCleanup(\n this.host.registerCellAction({\n id: SLOT_ID,\n icon: 'more-vertical',\n ariaLabel: 'Row actions',\n onClick: (event, context) => this.openRowMenuFromButton(event, context),\n }),\n );\n });\n\n effect((onCleanup) => {\n if (!this.enableColumnMenu()) return;\n onCleanup(\n this.host.registerHeaderAction({\n id: SLOT_ID,\n icon: 'more-vertical',\n ariaLabel: 'Column menu',\n onClick: (event, column) => this.openColumnMenuFromButton(event, column),\n }),\n );\n });\n\n afterNextRender(() => {\n const teardown = onLongPress(this.el.nativeElement, (event) => this.onLongPress(event));\n destroyRef.onDestroy(teardown);\n });\n\n destroyRef.onDestroy(() => {\n this.rowMenu?.destroy();\n this.columnMenu?.destroy();\n });\n }\n\n /** Items for a row's action menu (empty when no `rowActions` is set). */\n buildRowMenuItems(context: RowActionContext<T>): ContextMenuItem[] {\n const fn = this.rowActions();\n return fn ? fn(context) : [];\n }\n\n /** Sort / pin / visibility items for a column's header menu. */\n buildColumnMenuItems(col: ColumnDef<T>): ContextMenuItem[] {\n const key = String(col.accessorKey);\n const currentSort = this.host.getSortDirection(key);\n const currentPin = this.host.getColumnPin(key) ?? col.pin;\n const t = this.host.getLocale();\n return [\n ...this.sortItems(key, col, currentSort, t),\n ...this.pinItems(key, currentPin, t),\n ...this.visibilityItems(key, col, t),\n ];\n }\n\n /** Right-click handler: open the row menu for the clicked row. */\n onContextMenu(event: MouseEvent): void {\n if (!this.rowActions()) return;\n const context = this.rowContextFromTarget(event.target);\n if (!context) return;\n event.preventDefault();\n this.openRowMenu(event.clientX, event.clientY, context);\n }\n\n private onLongPress(event: TouchEvent): void {\n if (!this.rowActions()) return;\n const context = this.rowContextFromTarget(event.target);\n if (!context) return;\n const touch = event.touches[0];\n this.openRowMenu(touch?.clientX ?? 0, touch?.clientY ?? 0, context);\n }\n\n private rowContextFromTarget(target: EventTarget | null): RowActionContext<T> | null {\n const rowEl = (target as HTMLElement | null)?.closest<HTMLElement>('[data-row-index]');\n if (!rowEl) return null;\n const index = Number.parseInt(rowEl.dataset['rowIndex'] ?? '0', 10);\n const row = this.host.getRenderedRowAt(index);\n return row ? this.host.getRowContext(row, index) : null;\n }\n\n private openRowMenuFromButton(event: Event, context: RowActionContext<T>): void {\n const rect = buttonRect(event.target);\n this.openRowMenu(rect?.right ?? 0, rect?.bottom ?? 0, context);\n }\n\n private openColumnMenuFromButton(event: Event, column: ColumnDef<T>): void {\n const rect = buttonRect(event.target);\n this.openColumnMenu(rect?.left ?? 0, rect?.bottom ?? 0, column);\n }\n\n private openRowMenu(x: number, y: number, context: RowActionContext<T>): void {\n this.rowMenu ??= this.vcr.createComponent(ContextMenuComponent);\n this.rowMenu.setInput('items', this.buildRowMenuItems(context));\n this.rowMenu.instance.show(x, y, context);\n this.rowMenuOpen.emit(context);\n }\n\n private openColumnMenu(x: number, y: number, column: ColumnDef<T>): void {\n this.columnMenu ??= this.vcr.createComponent(ContextMenuComponent);\n this.columnMenu.setInput('items', this.buildColumnMenuItems(column));\n this.columnMenu.instance.show(x, y, { columnKey: String(column.accessorKey), column });\n this.columnMenuOpen.emit(column);\n }\n\n private sortItems(\n key: string,\n col: ColumnDef<T>,\n currentSort: SortDirection,\n t: DataTableLocale,\n ): ContextMenuItem[] {\n if (col.enableSorting === false) return [];\n const items: ContextMenuItem[] = [\n {\n label: t.sortAscending ?? 'Sort Ascending',\n icon: 'arrow-up',\n disabled: currentSort === 'asc',\n click: () => this.host.onSortChange(key, 'asc'),\n },\n {\n label: t.sortDescending ?? 'Sort Descending',\n icon: 'arrow-down',\n disabled: currentSort === 'desc',\n click: () => this.host.onSortChange(key, 'desc'),\n },\n ];\n if (currentSort) {\n items.push({ label: t.clearSort ?? 'Clear Sort', icon: 'x', click: () => this.host.onSortChange(key, null) });\n }\n items.push({ type: 'separator' });\n return items;\n }\n\n private pinItems(key: string, currentPin: ColumnPin, t: DataTableLocale): ContextMenuItem[] {\n const items: ContextMenuItem[] = [];\n if (currentPin !== 'left') items.push({ label: t.pinLeft ?? 'Pin Left', icon: 'pin', click: () => this.host.pinColumn(key, 'left') });\n if (currentPin !== 'right') items.push({ label: t.pinRight ?? 'Pin Right', icon: 'pin', click: () => this.host.pinColumn(key, 'right') });\n if (currentPin) items.push({ label: t.unpin ?? 'Unpin', icon: 'pin-off', click: () => this.host.pinColumn(key, undefined) });\n items.push({ type: 'separator' });\n return items;\n }\n\n private visibilityItems(key: string, col: ColumnDef<T>, t: DataTableLocale): ContextMenuItem[] {\n const items: ContextMenuItem[] = [];\n if (col.enableHiding !== false) {\n items.push({ label: t.hideColumn ?? 'Hide Column', icon: 'eye-off', click: () => this.host.setColumnVisibility(key, false) });\n }\n items.push({ label: t.showAllColumns ?? 'Show All Columns', icon: 'eye', click: () => this.host.showAllColumns() });\n return items;\n }\n}\n\n/** The bounding rect of the button nearest an event target, if any. */\nfunction buttonRect(target: EventTarget | null): DOMRect | undefined {\n const button = (target as HTMLElement | null)?.closest('button');\n return button?.getBoundingClientRect();\n}\n","const encoder = new TextEncoder();\n\nfunction makeCrc32Table(): Uint32Array {\n const t = new Uint32Array(256);\n for (let i = 0; i < 256; i++) {\n let c = i;\n for (let j = 0; j < 8; j++) {\n c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;\n }\n t[i] = c;\n }\n return t;\n}\n\nconst CRC32_TABLE = makeCrc32Table();\n\nfunction crc32(data: Uint8Array): number {\n let crc = 0xffffffff;\n for (const byte of data) {\n crc = CRC32_TABLE[(crc ^ byte) & 0xff] ^ (crc >>> 8);\n }\n return (crc ^ 0xffffffff) >>> 0;\n}\n\nfunction escapeXml(s: string): string {\n return s.replaceAll('&', '&amp;').replaceAll('<', '&lt;').replaceAll('>', '&gt;').replaceAll('\"', '&quot;').replaceAll(\"'\", '&apos;');\n}\n\nfunction columnLetter(col: number): string {\n let s = '';\n let c = col;\n while (c >= 0) {\n s = String.fromCodePoint(65 + (c % 26)) + s;\n c = Math.floor(c / 26) - 1;\n }\n return s;\n}\n\nfunction contentTypesXml(): string {\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n<Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n<Default Extension=\"xml\" ContentType=\"application/xml\"/>\n<Override PartName=\"/xl/workbook.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\"/>\n<Override PartName=\"/xl/worksheets/sheet1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\"/>\n<Override PartName=\"/xl/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\"/>\n<Override PartName=\"/xl/sharedStrings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml\"/>\n</Types>`;\n}\n\nfunction relsXml(): string {\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>\n</Relationships>`;\n}\n\nfunction workbookXml(): string {\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<workbook xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\">\n<sheets><sheet name=\"Sheet1\" sheetId=\"1\" r:id=\"rId1\"/></sheets>\n</workbook>`;\n}\n\nfunction workbookRelsXml(): string {\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet\" Target=\"worksheets/sheet1.xml\"/>\n<Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles\" Target=\"styles.xml\"/>\n<Relationship Id=\"rId3\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings\" Target=\"sharedStrings.xml\"/>\n</Relationships>`;\n}\n\nfunction stylesXml(): string {\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<styleSheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\">\n<fonts count=\"2\">\n<font><sz val=\"11\"/><name val=\"Calibri\"/></font>\n<font><b/><sz val=\"11\"/><name val=\"Calibri\"/></font>\n</fonts>\n<fills count=\"2\">\n<fill><patternFill patternType=\"none\"/></fill>\n<fill><patternFill patternType=\"gray125\"/></fill>\n</fills>\n<borders count=\"1\">\n<border><left/><right/><top/><bottom/><diagonal/></border>\n</borders>\n<cellStyleXfs count=\"1\"><xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\"/></cellStyleXfs>\n<cellXfs count=\"2\">\n<xf numFmtId=\"0\" fontId=\"0\" fillId=\"0\" borderId=\"0\" xfId=\"0\"/>\n<xf numFmtId=\"0\" fontId=\"1\" fillId=\"0\" borderId=\"0\" xfId=\"0\" applyFont=\"1\"/>\n</cellXfs>\n</styleSheet>`;\n}\n\nfunction sharedStringsXml(strings: string[]): string {\n const items = strings.map(s => `<si><t>${escapeXml(s)}</t></si>`).join('');\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<sst xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\" count=\"${strings.length}\" uniqueCount=\"${strings.length}\">${items}</sst>`;\n}\n\nfunction worksheetXml(data: string[][], stringMap: Map<string, number>, boldFirstRow: boolean): string {\n const rows: string[] = [];\n for (let r = 0; r < data.length; r++) {\n const cells: string[] = [];\n for (let c = 0; c < data[r].length; c++) {\n const ref = columnLetter(c) + (r + 1);\n const idx = stringMap.get(data[r][c]);\n const style = boldFirstRow && r === 0 ? ' s=\"1\"' : '';\n cells.push(`<c r=\"${ref}\" t=\"s\"${style}><v>${idx}</v></c>`);\n }\n rows.push(`<row r=\"${r + 1}\">${cells.join('')}</row>`);\n }\n return `<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<worksheet xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\">\n<sheetData>${rows.join('')}</sheetData>\n</worksheet>`;\n}\n\nfunction writeU16(buf: Uint8Array, offset: number, val: number): void {\n buf[offset] = val & 0xff;\n buf[offset + 1] = (val >> 8) & 0xff;\n}\n\nfunction writeU32(buf: Uint8Array, offset: number, val: number): void {\n buf[offset] = val & 0xff;\n buf[offset + 1] = (val >> 8) & 0xff;\n buf[offset + 2] = (val >> 16) & 0xff;\n buf[offset + 3] = (val >> 24) & 0xff;\n}\n\ntype ZipEntry = { path: Uint8Array; content: Uint8Array; crc: number; offset: number };\n\nfunction writeLocalFileHeader(buf: Uint8Array, e: ZipEntry, pos: number): number {\n writeU32(buf, pos, 0x04034b50); pos += 4;\n writeU16(buf, pos, 20); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU32(buf, pos, e.crc); pos += 4;\n writeU32(buf, pos, e.content.length); pos += 4;\n writeU32(buf, pos, e.content.length); pos += 4;\n writeU16(buf, pos, e.path.length); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n buf.set(e.path, pos); pos += e.path.length;\n buf.set(e.content, pos); pos += e.content.length;\n return pos;\n}\n\nfunction writeCentralDirHeader(buf: Uint8Array, e: ZipEntry, pos: number): number {\n writeU32(buf, pos, 0x02014b50); pos += 4;\n writeU16(buf, pos, 20); pos += 2;\n writeU16(buf, pos, 20); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU32(buf, pos, e.crc); pos += 4;\n writeU32(buf, pos, e.content.length); pos += 4;\n writeU32(buf, pos, e.content.length); pos += 4;\n writeU16(buf, pos, e.path.length); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU32(buf, pos, 0); pos += 4;\n writeU32(buf, pos, e.offset); pos += 4;\n buf.set(e.path, pos); pos += e.path.length;\n return pos;\n}\n\nfunction createZip(files: { path: string; content: Uint8Array }[]): Uint8Array {\n const entries: ZipEntry[] = [];\n\n let totalSize = 0;\n for (const f of files) {\n const pathBytes = encoder.encode(f.path);\n totalSize += 30 + pathBytes.length + f.content.length;\n entries.push({ path: pathBytes, content: f.content, crc: crc32(f.content), offset: 0 });\n }\n\n const centralDirSize = entries.reduce((sum, e) => sum + 46 + e.path.length, 0);\n const buf = new Uint8Array(totalSize + centralDirSize + 22);\n let pos = 0;\n\n for (const e of entries) {\n e.offset = pos;\n pos = writeLocalFileHeader(buf, e, pos);\n }\n\n const centralDirOffset = pos;\n for (const e of entries) {\n pos = writeCentralDirHeader(buf, e, pos);\n }\n\n writeU32(buf, pos, 0x06054b50); pos += 4;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, 0); pos += 2;\n writeU16(buf, pos, entries.length); pos += 2;\n writeU16(buf, pos, entries.length); pos += 2;\n writeU32(buf, pos, centralDirSize); pos += 4;\n writeU32(buf, pos, centralDirOffset); pos += 4;\n writeU16(buf, pos, 0);\n\n return buf;\n}\n\nexport function generateXlsx(data: string[][], options?: { boldFirstRow?: boolean }): Uint8Array {\n const boldFirstRow = options?.boldFirstRow !== false;\n\n const uniqueStrings: string[] = [];\n const stringMap = new Map<string, number>();\n for (const row of data) {\n for (const cell of row) {\n if (!stringMap.has(cell)) {\n stringMap.set(cell, uniqueStrings.length);\n uniqueStrings.push(cell);\n }\n }\n }\n\n const files = [\n { path: '[Content_Types].xml', content: encoder.encode(contentTypesXml()) },\n { path: '_rels/.rels', content: encoder.encode(relsXml()) },\n { path: 'xl/workbook.xml', content: encoder.encode(workbookXml()) },\n { path: 'xl/_rels/workbook.xml.rels', content: encoder.encode(workbookRelsXml()) },\n { path: 'xl/styles.xml', content: encoder.encode(stylesXml()) },\n { path: 'xl/sharedStrings.xml', content: encoder.encode(sharedStringsXml(uniqueStrings)) },\n { path: 'xl/worksheets/sheet1.xml', content: encoder.encode(worksheetXml(data, stringMap, boldFirstRow)) },\n ];\n\n return createZip(files);\n}\n","import type { LocaleMeta } from '../../../../lib/i18n';\n\n/** Localized strings for the data-table export addon. */\nexport interface DataTableExportLocale extends LocaleMeta {\n /** Busy-overlay label shown while an export is in progress. */\n exporting: string;\n}\n\nconst en: DataTableExportLocale = { code: 'en', exporting: 'Exporting…' };\nconst he: DataTableExportLocale = { code: 'he', rtl: true, exporting: 'מייצא…' };\n\n/** Built-in locale registry for the data-table export addon. */\nexport const DATA_TABLE_EXPORT_LOCALES: Record<string, DataTableExportLocale> = { en, he };\n","import { Directive, inject, input } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { DataTableAddonHost, type DataTableExportQuery } from '../..';\nimport { generateXlsx } from '../../../../lib/parsers/xlsx';\nimport { createLocaleBindings, type LocaleInput } from '../../../../lib/i18n';\nimport { DATA_TABLE_EXPORT_LOCALES, type DataTableExportLocale } from './export.locales';\n\n/**\n * Server-side export hook. Receives the current {@link DataTableExportQuery}\n * (global filter, column filters, sort) so it can fetch ALL matching rows —\n * filtered and sorted across every page. A no-arg provider stays valid (the\n * query is simply ignored).\n */\nexport type ExportDataProvider<T> = (query: DataTableExportQuery) => Promise<T[]>;\n\n/**\n * Opt-in CSV/Excel export addon for `<ui-data-table>`. Attaches via DI to the\n * `DataTableAddonHost` the base provides, reads the current rows/columns and\n * query through the host, and downloads the file itself — the base ships no\n * export code and no `xlsx` dependency. Grab a template reference\n * (`#exp=\"uiDtExport\"`) and call `exp.exportToCsv()` / `exp.exportToExcel()`.\n */\n@Directive({\n selector: '[uiDtExport]',\n standalone: true,\n exportAs: 'uiDtExport',\n})\nexport class DataTableExportDirective<T = unknown> {\n private readonly host = inject<DataTableAddonHost<T>>(DataTableAddonHost);\n private readonly document = inject(DOCUMENT);\n\n /** Server-side export hook: given the current query, returns all matching rows. */\n readonly exportDataProvider = input<ExportDataProvider<T> | undefined>(undefined);\n /** Locale for the busy label: a registry key (`'en'`/`'he'`) or a full dictionary. */\n readonly uiDtExportLocale = input<LocaleInput<DataTableExportLocale>>();\n\n private readonly i18n = createLocaleBindings(this.uiDtExportLocale, DATA_TABLE_EXPORT_LOCALES);\n\n /** Export the current (or provided) rows to a downloaded CSV file. */\n async exportToCsv(filename?: string, customData?: T[]): Promise<void> {\n this.host.setBusy(this.i18n.t().exporting);\n try {\n const rows = await this.resolveRows(customData);\n const data = this.host.getExportData(undefined, rows);\n const csvContent = data\n .map((row) => row.map(escapeCsvCell).join(','))\n .join('\\r\\n');\n const blob = new Blob(['' + csvContent], {\n type: 'text/csv;charset=utf-8;',\n });\n this.downloadBlob(blob, (filename || 'export') + '.csv');\n } finally {\n this.host.setBusy(null);\n }\n }\n\n /** Export the current (or provided) rows to a downloaded XLSX file. */\n async exportToExcel(filename?: string, customData?: T[]): Promise<void> {\n this.host.setBusy(this.i18n.t().exporting);\n try {\n const rows = await this.resolveRows(customData);\n const data = this.host.getExportData(undefined, rows);\n const xlsxBytes = generateXlsx(data, { boldFirstRow: true });\n const blob = new Blob([xlsxBytes.buffer as ArrayBuffer], {\n type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n });\n this.downloadBlob(blob, (filename || 'export') + '.xlsx');\n } finally {\n this.host.setBusy(null);\n }\n }\n\n private async resolveRows(customData?: T[]): Promise<readonly T[]> {\n if (customData) return customData;\n const provider = this.exportDataProvider();\n // Server-side: hand the provider the current filter/sort so it can fetch\n // ALL matching rows (every page), not just the loaded page.\n if (provider) return provider(this.host.queryState());\n // Client-side: export what the user sees — filtered AND sorted, all rows.\n return this.host.getSortedRows();\n }\n\n private downloadBlob(blob: Blob, filename: string): void {\n const url = URL.createObjectURL(blob);\n const a = this.document.createElement('a');\n a.href = url;\n a.download = filename;\n a.style.display = 'none';\n this.document.body.appendChild(a);\n a.click();\n a.remove();\n URL.revokeObjectURL(url);\n }\n}\n\n/** Quote a CSV cell when it contains a delimiter, quote, or newline. */\nfunction escapeCsvCell(cell: string): string {\n if (\n cell.includes(',') ||\n cell.includes('\"') ||\n cell.includes('\\n') ||\n cell.includes('\\r')\n ) {\n return '\"' + cell.replaceAll('\"', '\"\"') + '\"';\n }\n return cell;\n}\n","/** Aggregate function applied at each pivot cell. */\nexport type PivotAggregate = 'sum' | 'avg' | 'count' | 'min' | 'max';\n\n/** Config for {@link computePivot}: row dimension(s) x one column dimension x one value. */\nexport interface PivotConfig {\n /** Column keys whose distinct combinations form the pivot rows. */\n rows: string[];\n /** Column key whose distinct values spread across the pivot columns. */\n column: string;\n /** Column key whose values are aggregated at each (row x column) cell. */\n value: string;\n aggregate: PivotAggregate;\n /** Add a trailing \"Total\" column aggregating across the row. */\n showRowTotals?: boolean;\n}\n\nexport interface PivotColumn {\n key: string;\n header: string;\n}\n\nexport interface PivotResult {\n columns: PivotColumn[];\n rows: Record<string, unknown>[];\n /** The dynamic pivot-column keys (excludes the row-dimension and total columns). */\n pivotColumnKeys: string[];\n}\n\nconst PIVOT_KEY_PREFIX = 'pivot:';\nconst PIVOT_TOTAL_KEY = '__total__';\n\nfunction defaultGetValue(row: unknown, key: string): unknown {\n return (row as Record<string, unknown>)[key];\n}\n\nfunction aggregateNumbers(values: number[], fn: PivotAggregate): number {\n if (fn === 'count') return values.length;\n if (values.length === 0) return 0;\n const sum = values.reduce((a, b) => a + b, 0);\n switch (fn) {\n case 'sum':\n return sum;\n case 'avg':\n return Math.round((sum / values.length) * 100) / 100;\n case 'min':\n return Math.min(...values);\n case 'max':\n return Math.max(...values);\n default:\n return 0;\n }\n}\n\nfunction aggregateCell<T>(\n rows: T[],\n config: PivotConfig,\n getValue: (row: T, key: string) => unknown,\n): number {\n if (config.aggregate === 'count') return rows.length;\n const nums = rows\n .map((row) => Number(getValue(row, config.value)))\n .filter((n) => Number.isFinite(n));\n return aggregateNumbers(nums, config.aggregate);\n}\n\n/**\n * Transform a flat dataset into a pivot table (rows x columns x values). The\n * row dimension(s) become the leading columns, each distinct value of\n * `config.column` becomes a column, and each cell is the aggregate of\n * `config.value`. Pure — bind the result's `columns`/`rows` to a data table.\n */\nexport function computePivot<T>(\n data: readonly T[],\n config: PivotConfig,\n getValue: (row: T, key: string) => unknown = defaultGetValue,\n): PivotResult {\n const columnValues = Array.from(\n new Set(data.map((row) => String(getValue(row, config.column)))),\n ).sort((a, b) => a.localeCompare(b));\n\n const groups = new Map<string, { dim: Record<string, unknown>; rows: T[] }>();\n for (const row of data) {\n const dimValues = config.rows.map((key) => getValue(row, key));\n const groupKey = dimValues.map(String).join(' ');\n let group = groups.get(groupKey);\n if (!group) {\n const dim: Record<string, unknown> = {};\n config.rows.forEach((key, i) => (dim[key] = dimValues[i]));\n group = { dim, rows: [] };\n groups.set(groupKey, group);\n }\n group.rows.push(row);\n }\n\n const columns = [\n ...config.rows.map((key) => ({ key, header: key })),\n ...columnValues.map((value) => ({ key: PIVOT_KEY_PREFIX + value, header: value })),\n ...(config.showRowTotals ? [{ key: PIVOT_TOTAL_KEY, header: 'Total' }] : []),\n ];\n\n const rows = Array.from(groups.values()).map((group) => {\n const out: Record<string, unknown> = { ...group.dim };\n for (const value of columnValues) {\n const cellRows = group.rows.filter(\n (row) => String(getValue(row, config.column)) === value,\n );\n out[PIVOT_KEY_PREFIX + value] = aggregateCell(cellRows, config, getValue);\n }\n if (config.showRowTotals) {\n out[PIVOT_TOTAL_KEY] = aggregateCell(group.rows, config, getValue);\n }\n return out;\n });\n\n return { columns, rows, pivotColumnKeys: columnValues.map((v) => PIVOT_KEY_PREFIX + v) };\n}\n","import { Directive, inject } from '@angular/core';\nimport { DataTableAddonHost } from '../..';\nimport { computePivot, type PivotConfig, type PivotResult } from './pivot.utils';\n\n/**\n * Opt-in pivot addon for `<ui-data-table>`. Attaches via DI to the\n * `DataTableAddonHost` the base provides and exposes `getPivot(config)` — a\n * pivot (rows x columns x values) of the table's raw data computed through the\n * base's accessors. Grab a template reference (`#pv=\"uiDtPivot\"`) and bind the\n * result's `columns` / `rows` to another `<ui-data-table>` to render it. The\n * base ships no pivot code; the pure `computePivot` is re-exported for callers\n * that pivot arbitrary data without a table instance.\n */\n@Directive({\n selector: '[uiDtPivot]',\n standalone: true,\n exportAs: 'uiDtPivot',\n})\nexport class DataTablePivotDirective<T = unknown> {\n private readonly host = inject<DataTableAddonHost<T>>(DataTableAddonHost);\n\n /**\n * Compute a pivot of the table's current raw data, using its accessors (so\n * `accessorFn` / dotted keys work). Bind the result's `columns` / `rows` to\n * another `<ui-data-table>` to render the pivot.\n */\n getPivot(config: PivotConfig): PivotResult {\n return computePivot(this.host.getRawRows(), config, (row, key) =>\n this.host.getCellValue(row, key),\n );\n }\n}\n","// AUTO-GENERATED by stage-package — do not edit; regenerate with `npm run stage:package -- data-table`.\nexport * from './ui/data-table';\nexport * from './ui/data-table/addons/context-menu';\nexport * from './ui/data-table/addons/export';\nexport * from './ui/data-table/addons/pivot';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mapp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