@gridui/data-explorer 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,25 +3,27 @@
3
3
  Data family. Public API: `DataExplorerProvider`, `DataExplorerView`, `useDataExplorer`, `DataExplorerSearch`, `DataExplorerFilterControl`, `DataExplorerSort`, `DataExplorerColumnVisibility`, `DataExplorerFilters`, `DataExplorer`, `DataExplorerToolbar`, `DataExplorerBulkActions`, `DataExplorerTable`, `DataExplorerPagination`, `DataExplorerColumn`, `DataExplorerFilter`, `DataExplorerProps`, `DataExplorerRow`, `DataExplorerState`, `DataExplorerValue`.
4
4
 
5
5
  Import components from `@gridui/data-explorer` and load `@gridui/data-explorer/styles.css` after Theme.
6
- Load the complete family stylesheet set in dependency order:
6
+ Load Theme and the self-contained family stylesheet:
7
7
  ```css
8
8
  @import "@gridui/theme/styles.css";
9
- @import "@gridui/button/styles.css";
10
- @import "@gridui/form/styles.css";
11
- @import "@gridui/choice/styles.css";
12
- @import "@gridui/grid/styles.css";
13
- @import "@gridui/overlay/styles.css";
14
- @import "@gridui/input/styles.css";
15
- @import "@gridui/dropdown-menu/styles.css";
16
- @import "@gridui/select/styles.css";
17
- @import "@gridui/table/styles.css";
18
9
  @import "@gridui/data-explorer/styles.css";
10
+ @import "@gridui/dropdown-menu/styles.css"; // Required when composing DropdownMenu.
19
11
  ```
20
12
 
21
13
  Applications own routes, labels, state persistence, and branding.
22
14
 
23
15
  See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-data/data-explorer/.changeset/history).
24
16
 
17
+ ## Styles
18
+
19
+ Load Theme once. Use `@gridui/data-explorer/styled` for automatic component CSS in
20
+ CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/data-explorer/styles.css`.
21
+ Both entries expose the same root API. The standalone stylesheet includes component
22
+ dependency styles; Theme/reset remain separate. See the
23
+ [integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
24
+ for static HTML loading, SSR limits, and avoiding duplicate CSS.
25
+
26
+
25
27
  ## Data exploration and supporting APIs
26
28
 
27
29
  DataExplorer belongs to Data because it coordinates generic dataset exploration
@@ -36,7 +38,7 @@ Standalone [InlineNotice](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/
36
38
  [Breadcrumb/Pagination](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/navigation.md) come from their Core families.
37
39
 
38
40
  Grid owns the structural seams between the header, content, selection toolbar,
39
- and footer through `Split`. Load `@gridui/grid/styles.css` before this family.
41
+ and footer through `Split`. Grid styles are included in this family stylesheet.
40
42
 
41
43
  DataTable receives `blockEdges="none"` and `inlineEdges="none"`: the enclosing
42
44
  Explorer frame and Grid regions own those edges. Table retains internal column,
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorer
5
+ * @description Data Explorer
6
+ */
1
7
  import type { ExplorerOptions } from "../shared/explorer-options";
2
8
  import type { ComponentPropsWithRef, FC } from "react";
3
9
  export type DataExplorerProps = ComponentPropsWithRef<"section"> & ExplorerOptions;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerColumnVisibility
5
+ * @description Data Explorer Column Visibility
6
+ */
1
7
  import type { ExplorerPartOptions } from "../shared/explorer-options";
2
8
  export type DataExplorerColumnVisibilityProps = ExplorerPartOptions & {
3
9
  readonly label?: string;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerFilterControl
5
+ * @description Data Explorer Filter Control
6
+ */
1
7
  import type { ExplorerPartOptions } from "../shared/explorer-options";
2
8
  export type DataExplorerFilterControlProps = ExplorerPartOptions & {
3
9
  readonly allLabel: string;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerFilters
5
+ * @description Data Explorer Filters
6
+ */
1
7
  import type { DataExplorerFiltering } from "../shared/features";
2
8
  export type DataExplorerFiltersProps = {
3
9
  readonly labels?: DataExplorerFiltering["labels"];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @author WMXPY
3
3
  * @package Data Explorer
4
- * @namespace DataExplorerToolbar
4
+ * @namespace DataExplorerFilters
5
5
  * @description Filter Editor
6
6
  */
7
7
  import type { DataExplorerFiltering } from "../shared/features";
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerProvider
5
+ * @description Data Explorer Provider
6
+ */
1
7
  import type { DataExplorerOptions } from "../shared/explorer-options";
2
8
  import type { ReactNode } from "react";
3
9
  export type DataExplorerProviderProps = DataExplorerOptions & {
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerSearch
5
+ * @description Data Explorer Search
6
+ */
1
7
  import type { ExplorerPartOptions } from "../shared/explorer-options";
2
8
  export type DataExplorerSearchProps = ExplorerPartOptions & {
3
9
  readonly label: string;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerSort
5
+ * @description Data Explorer Sort
6
+ */
1
7
  import type { DataExplorerLabels, ExplorerPartOptions } from "../shared/explorer-options";
2
8
  export type DataExplorerSortProps = ExplorerPartOptions & {
3
9
  readonly labels: Pick<DataExplorerLabels, "sort" | "unsorted" | "ascending" | "descending">;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerToolbar
5
+ * @description Data Explorer Toolbar
6
+ */
1
7
  import type { ExplorerPartOptions } from "../shared/explorer-options";
2
8
  import type { ReactNode } from "react";
3
9
  export type DataExplorerToolbarProps = ExplorerPartOptions & {
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace DataExplorerView
5
+ * @description Data Explorer View
6
+ */
1
7
  import type { ComponentPropsWithRef } from "react";
2
8
  export type DataExplorerViewProps = ComponentPropsWithRef<"section"> & {
3
9
  readonly label: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @author WMXPY
3
3
  * @package Data Explorer
4
- * @namespace DataExplorer
4
+ * @namespace DataExplorerView
5
5
  * @description Style
6
6
  */
7
7
  export declare const explorerStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/shared/control-row-style.ts", "../src/shared/model.ts", "../src/shared/controller.ts", "../src/shared/explorer-context.ts", "../src/shared/labels.ts", "../src/data-explorer-bulk-actions/data-explorer-bulk-actions.tsx", "../src/data-explorer-pagination/data-explorer-pagination.tsx", "../src/data-explorer-provider/data-explorer-provider.tsx", "../src/data-explorer-table/column-layout.ts", "../src/data-explorer-table/column-resize-handle.tsx", "../src/data-explorer-table/data-explorer-table.tsx", "../src/data-explorer-column-visibility/data-explorer-column-visibility.tsx", "../src/shared/label-style.ts", "../src/data-explorer-filter-control/data-explorer-filter-control.tsx", "../src/data-explorer-filters/filter-editor.tsx", "../src/data-explorer-filters/data-explorer-filters.tsx", "../src/data-explorer-search/data-explorer-search.tsx", "../src/data-explorer-sort/data-explorer-sort.tsx", "../src/data-explorer-toolbar/data-explorer-toolbar.tsx", "../src/data-explorer-view/style.ts", "../src/data-explorer-view/data-explorer-view.tsx", "../src/data-explorer/data-explorer.tsx"],
4
- "sourcesContent": ["/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Control Row Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const explorerControlRowStyles = cva(\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--flex-wrap gridui-u-data-explorer--items-end gridui-u-data-explorer--gap-gridui-16 gridui-u-data-explorer--p-gridui-16 gridui-u-data-explorer--[&_label]:min-h-11\");\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Model\n */\n\nexport type DataExplorerValue = string | number | null;\n\nexport type DataExplorerRow = {\n readonly id: string;\n readonly values: Readonly<Record<string, DataExplorerValue>>;\n};\n\nexport type DataExplorerColumn = {\n readonly key: string;\n readonly label: string;\n readonly numeric?: boolean;\n readonly width?: number;\n readonly minWidth?: number;\n readonly maxWidth?: number;\n readonly sticky?: \"start\" | \"end\";\n};\n\nexport type DataExplorerState = {\n readonly query: string;\n readonly filterValue: string;\n readonly sort: {\n readonly key: string;\n readonly direction: \"ascending\" | \"descending\";\n } | null;\n readonly page: number;\n readonly filters?: readonly DataExplorerCondition[];\n};\n\nexport type DataExplorerFilter = {\n readonly key: string;\n readonly label: string;\n readonly options: readonly {\n readonly value: string;\n readonly label: string;\n }[];\n};\n\nconst compareValues = (\n left: DataExplorerValue | undefined,\n right: DataExplorerValue | undefined,\n direction: \"ascending\" | \"descending\",\n): number => {\n // Missing values stay last in either direction; equal values preserve input order.\n if (left === null || left === undefined) {\n return right === null || right === undefined ? 0 : 1;\n }\n if (right === null || right === undefined) {\n return -1;\n }\n let comparison = 0;\n if (typeof left === \"number\" && typeof right === \"number\") {\n comparison = left - right;\n } else if (String(left) < String(right)) {\n comparison = -1;\n } else if (String(left) > String(right)) {\n comparison = 1;\n }\n return direction === \"ascending\" ? comparison : -comparison;\n};\n\nexport const selectExplorerRows = (\n rows: readonly DataExplorerRow[],\n columns: readonly DataExplorerColumn[],\n state: DataExplorerState,\n pageSize: number,\n filter?: DataExplorerFilter,\n) => {\n const validPageSize = Number.isInteger(pageSize) && pageSize > 0;\n const validPage = Number.isInteger(state.page) && state.page >= 0;\n if (!validPageSize || !validPage) {\n throw new RangeError(\"DataExplorer needs a positive integer pageSize and a non-negative integer page.\");\n }\n const rowIds = rows.map(row => {\n return row.id;\n });\n const columnKeys = columns.map(column => {\n return column.key;\n });\n const hasDuplicateRows = new Set(rowIds).size !== rows.length;\n const hasDuplicateColumns = new Set(columnKeys).size !== columns.length;\n if (hasDuplicateRows || hasDuplicateColumns) {\n throw new Error(\"DataExplorer row ids and column keys must be unique.\");\n }\n const query = state.query.trim().toLowerCase();\n const filtered = rows.filter(row => {\n const matchesQuery = !query || columns.some(column => {\n const cellText = String(row.values[column.key] ?? \"\").toLowerCase();\n return cellText.includes(query);\n });\n const matchesFilter = !filter || !state.filterValue\n || String(row.values[filter.key] ?? \"\") === state.filterValue;\n return matchesQuery && matchesFilter && (state.filters ?? []).every(condition => {\n return matchesExplorerCondition(row, condition);\n });\n });\n const sort = state.sort;\n if (sort && columnKeys.includes(sort.key)) {\n filtered.sort((left, right) => {\n return compareValues(left.values[sort.key], right.values[sort.key], sort.direction);\n });\n }\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(state.page, pageCount - 1);\n return {\n rows: filtered.slice(page * pageSize, (page + 1) * pageSize),\n total: filtered.length,\n page,\n pageCount,\n };\n};\n\nexport const selectExplorerPage = (\n selectedIds: readonly string[],\n pageIds: readonly string[],\n checked: boolean,\n): string[] => {\n const selected = new Set(selectedIds);\n for (const id of pageIds) {\n if (checked) {\n selected.add(id);\n } else {\n selected.delete(id);\n }\n }\n return [...selected];\n};\n\nexport type DataExplorerFilterOperator = \"contains\" | \"equals\" | \"not-equals\" | \"greater-than\" | \"less-than\" | \"empty\";\n\nexport type DataExplorerCondition = {\n readonly id: string;\n readonly key: string;\n readonly operator: DataExplorerFilterOperator;\n readonly value?: string | number;\n};\n\nexport type DataExplorerFilterDefinition = {\n readonly key: string;\n readonly label: string;\n readonly type: \"text\" | \"number\" | \"enum\";\n readonly options?: readonly {\n readonly value: string;\n readonly label: string;\n }[];\n};\n\nexport const matchesExplorerCondition = (row: DataExplorerRow, condition: DataExplorerCondition): boolean => {\n const value = row.values[condition.key];\n if (condition.operator === \"empty\") {\n return value === null || value === undefined || value === \"\";\n }\n if (condition.value === undefined || condition.value === \"\") {\n return true;\n }\n if (condition.operator === \"contains\") {\n return String(value ?? \"\").normalize(\"NFKC\")\n .toLowerCase()\n .includes(String(condition.value).normalize(\"NFKC\")\n .toLowerCase());\n }\n if (condition.operator === \"equals\") {\n return value === condition.value;\n }\n if (condition.operator === \"not-equals\") {\n return value !== condition.value;\n }\n if (typeof condition.value !== \"number\" || !Number.isFinite(condition.value)) {\n throw new RangeError(\"Numeric filter comparisons require a finite numeric value.\");\n }\n if (typeof value !== \"number\" || !Number.isFinite(value)) {\n return false;\n }\n return condition.operator === \"greater-than\" ? value > condition.value : value < condition.value;\n};\n\nexport const resolveExplorerWidth = (column: DataExplorerColumn, width = column.width ?? 200): number => {\n const min = column.minWidth ?? 80;\n const max = column.maxWidth ?? 1200;\n if (![\n width,\n min,\n max,\n ].every(value => {\n return Number.isFinite(value) && value > 0;\n }) || max < min) {\n throw new RangeError(\"Explorer column widths must be positive and finite with ordered bounds.\");\n }\n return Math.max(min, Math.min(max, width));\n};\n", "import type { DataExplorerOptions } from \"./explorer-options\";\nimport { type DataExplorerState, selectExplorerRows } from \"./model\";\n\n/** Derive the local dataset view without imposing a rendered composition. */\nexport const createExplorerController = (options: DataExplorerOptions) => {\n const { rows, columns, state, onStateChange, filter, pageSize = 10, selectedIds = [],\n onSelectionChange, busy = false, columnSettings } = options;\n const view = selectExplorerRows(rows, columns, state, pageSize, filter);\n const existingRowIds = new Set(rows.map(row => row.id));\n const selectedRowIdSet = new Set(selectedIds.filter(id => existingRowIds.has(id)));\n const selectedRowIds = [...selectedRowIdSet];\n const pageIds = view.rows.map(row => row.id);\n const selectedPageCount = pageIds.filter(id => selectedRowIdSet.has(id)).length;\n const visibleColumns = columns.filter(column => !columnSettings?.hiddenKeys.includes(column.key));\n if (columns.length > 0 && visibleColumns.length === 0) {\n throw new RangeError(\"DataExplorer needs at least one visible column.\");\n }\n const updateState = (changes: Partial<DataExplorerState>) => {\n if (!busy) {\n onStateChange({ ...state, ...changes });\n }\n };\n const setQuery = (query: string) => void updateState({ query, page: 0 });\n const setFilterValue = (filterValue: string) => void updateState({ filterValue, page: 0 });\n const setSort = (sort: DataExplorerState[\"sort\"]) => void updateState({ sort, page: 0 });\n const setFilters = (filters: NonNullable<DataExplorerState[\"filters\"]>) => void updateState({ filters, page: 0 });\n const updateSelection = (ids: readonly string[]) => {\n if (!busy) {\n onSelectionChange?.([...new Set(ids.filter(id => existingRowIds.has(id)))]);\n }\n };\n return {\n busy, state, columns, visibleColumns, view, selectedRowIds, selectedRowIdSet,\n pageIds, selectedPageCount, updateState, setQuery, setFilterValue, setSort, setFilters, updateSelection,\n };\n};\n\nexport type DataExplorerController = ReturnType<typeof createExplorerController>;\n", "import { createExplorerController } from \"./controller\";\nimport type { DataExplorerOptions } from \"./explorer-options\";\nimport { createContext, useContext, useId } from \"react\";\n\nexport const useExplorerController = (options: DataExplorerOptions) => {\n const tableId = useId();\n const controller = createExplorerController(options);\n return { ...options, ...controller, tableId, controller };\n};\n\nexport const explorerContext = createContext<ReturnType<typeof useExplorerController> | null>(null);\n\nexport const useExplorer = () => {\n const explorer = useContext(explorerContext);\n if (!explorer) {\n throw new Error(\"DataExplorer parts require a DataExplorerProvider or DataExplorer.\");\n }\n return explorer;\n};\n\n/** Share accepted state, derived rows and guarded commands with custom controls. */\nexport const useDataExplorer = () => useExplorer().controller;\n", "import type { DataExplorerLabels } from \"./explorer-options\";\n\nexport const explorerLabel = <Key extends keyof DataExplorerLabels>(\n labels: Partial<DataExplorerLabels> | undefined,\n key: Key,\n): DataExplorerLabels[Key] => {\n const value = labels?.[key];\n if (value === undefined) {\n throw new Error(`DataExplorer requires the \"${key}\" label for this part.`);\n }\n return value;\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerBulkActions\n * @description Data Explorer Bulk Actions\n */\n\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { selectExplorerPage } from \"../shared/model\";\nimport { Button } from \"@gridui/button\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type DataExplorerBulkActionsProps = ExplorerPartOptions & {\n readonly labels?: Pick<DataExplorerLabels, \"selectPage\" | \"selected\">;\n};\n\nexport const DataExplorerBulkActions: FC<DataExplorerBulkActionsProps> = (props: DataExplorerBulkActionsProps) => {\n const { actions = [], busy, labels: inheritedLabels, onSelectionChange, pageIds, selectedPageCount, selectedRowIds } = useExplorer();\n const labels = { ...inheritedLabels, ...props.labels };\n if (!onSelectionChange) {\n return null;\n }\n return (<div\n className={cn(explorerControlRowStyles(), props.className)}\n >\n <label>\n <Checkbox\n checked={pageIds.length > 0 && selectedPageCount === pageIds.length}\n indeterminate={selectedPageCount > 0 && selectedPageCount < pageIds.length}\n disabled={busy || pageIds.length === 0}\n onCheckedChange={checked => {\n onSelectionChange(selectExplorerPage(selectedRowIds, pageIds, checked));\n }}\n />\n {\" \"}\n {explorerLabel(labels, \"selectPage\")}\n </label>\n <span\n role=\"status\"\n >\n {explorerLabel(labels, \"selected\")(selectedRowIds.length)}\n </span>\n {actions.map(action => {\n return (<Button\n key={action.label}\n variant=\"secondary\"\n disabled={busy || selectedRowIds.length === 0 || action.disabled}\n onClick={() => {\n action.onAction(selectedRowIds);\n }}\n >\n {action.label}\n </Button>);\n })}\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerPagination\n * @description Data Explorer Pagination\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { Button } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\nimport type { FC } from \"react\";\n\nexport type DataExplorerPaginationProps = ExplorerPartOptions & {\n readonly labels?: Pick<DataExplorerLabels, \"previous\" | \"next\" | \"page\">;\n};\n\nconst explorerFooterStyles = cva(\"gridui-u-data-explorer--flex gridui-u-data-explorer--flex-wrap gridui-u-data-explorer--items-center gridui-u-data-explorer--justify-between gridui-u-data-explorer--gap-gridui-8 gridui-u-data-explorer--p-gridui-16\");\n\nexport const DataExplorerPagination: FC<DataExplorerPaginationProps> = (props: DataExplorerPaginationProps) => {\n const { busy, labels: inheritedLabels, updateState, view } = useExplorer();\n const labels = { ...inheritedLabels, ...props.labels };\n return (<div\n className={cn(explorerFooterStyles(), props.className)}\n >\n <Button\n variant=\"secondary\"\n disabled={busy || view.page === 0}\n onClick={() => {\n updateState({ page: view.page - 1 });\n }}\n >\n {explorerLabel(labels, \"previous\")}\n </Button>\n <span\n role=\"status\"\n >\n {explorerLabel(labels, \"page\")(view.page + 1, view.pageCount, view.total)}\n </span>\n <Button\n variant=\"secondary\"\n disabled={busy || view.page + 1 >= view.pageCount}\n onClick={() => {\n updateState({ page: view.page + 1 });\n }}\n >\n {explorerLabel(labels, \"next\")}\n </Button>\n </div>);\n};\n", "import { explorerContext, useExplorerController } from \"../shared/explorer-context\";\nimport type { DataExplorerOptions } from \"../shared/explorer-options\";\nimport type { ReactNode } from \"react\";\n\nexport type DataExplorerProviderProps = DataExplorerOptions & {\n readonly children?: ReactNode;\n};\n\n/** Own dataset coordination without adding DOM, labels or layout requirements. */\nexport function DataExplorerProvider({ children, ...options }: DataExplorerProviderProps) {\n const explorer = useExplorerController(options);\n return <explorerContext.Provider value={explorer}>{children}</explorerContext.Provider>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerTable\n * @description Column Layout\n */\n\nimport { type DataExplorerColumn, resolveExplorerWidth } from \"../shared/model\";\n\ntype ColumnLayoutOptions = {\n readonly columns: readonly DataExplorerColumn[];\n readonly columnWidths: Readonly<Record<string, number>> | undefined;\n readonly hasSelection: boolean;\n readonly hasDetails: boolean;\n};\n\ntype SizedColumn = {\n readonly column: DataExplorerColumn;\n readonly width: number;\n};\n\ntype ColumnLayout = {\n readonly columns: readonly (SizedColumn & {\n readonly stickyOffset: number;\n })[];\n readonly fixedWidths: boolean;\n readonly selectionWidth: number;\n readonly detailsWidth: number;\n readonly tableWidth: number;\n};\n\nconst calculateStickyOffset = (columns: readonly SizedColumn[], index: number): number => {\n const side = columns[index]!.column.sticky;\n if (side === undefined) {\n return 0;\n }\n return columns.reduce((offset, current, currentIndex) => {\n if (current.column.sticky !== side) {\n return offset;\n }\n const contributes = side === \"start\" ? currentIndex < index : currentIndex > index;\n if (contributes) {\n return offset + current.width;\n }\n return offset;\n }, 0);\n};\n\nexport const calculateColumnLayout = (options: ColumnLayoutOptions): ColumnLayout => {\n const { columns, columnWidths, hasSelection, hasDetails } = options;\n const fixedWidths = columnWidths !== undefined || columns.some(column => {\n return column.width !== undefined || column.sticky !== undefined;\n });\n const sizedColumns = columns.map(column => {\n return {\n column,\n width: resolveExplorerWidth(column, columnWidths?.[column.key] ?? column.width),\n };\n });\n const selectionWidth = hasSelection ? 56 : 0;\n const detailsWidth = hasDetails ? 96 : 0;\n const dataWidth = sizedColumns.reduce((total, column) => {\n return total + column.width;\n }, 0);\n return {\n columns: sizedColumns.map((column, index) => {\n return {\n ...column,\n stickyOffset: calculateStickyOffset(sizedColumns, index),\n };\n }),\n fixedWidths,\n selectionWidth,\n detailsWidth,\n tableWidth: dataWidth + selectionWidth + detailsWidth,\n };\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerTable\n * @description Column Resize Handle\n */\n\nimport { type DataExplorerColumn, resolveExplorerWidth } from \"../shared/model\";\nimport { isComposingKeyEvent } from \"@gridui/interaction\";\nimport { usePointerDrag } from \"@gridui/react-utils\";\nimport { type FC, useEffect } from \"react\";\n\nexport type ColumnResizeHandleProps = {\n readonly column: DataExplorerColumn;\n readonly width: number;\n readonly label: string;\n readonly disabled: boolean;\n readonly onChange: (width: number) => void;\n};\n\nexport const ColumnResizeHandle: FC<ColumnResizeHandleProps> = (props: ColumnResizeHandleProps) => {\n const { column, width, label, disabled, onChange } = props;\n const min = column.minWidth ?? 80;\n const max = column.maxWidth ?? 1200;\n const change = (next: number) => {\n onChange(resolveExplorerWidth(column, Math.max(min, Math.min(max, next))));\n };\n const drag = usePointerDrag<{ readonly x: number; readonly width: number; readonly direction: number }>((current) => {\n change(current.width);\n }, { onUnmount: \"finish\" });\n useEffect(() => {\n if (disabled) {\n drag.cancel();\n }\n }, [disabled, drag]);\n return (<div\n role=\"separator\"\n tabIndex={disabled ? -1 : 0}\n aria-orientation=\"vertical\"\n aria-label={label}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={width}\n aria-disabled={disabled || undefined}\n className=\"gridui-explorer-resize gridui-u-data-explorer--min-h-11 gridui-u-data-explorer--w-gridui-16 gridui-u-data-explorer--shrink-0 gridui-u-data-explorer--cursor-col-resize gridui-u-data-explorer--touch-none gridui-u-data-explorer--border-s gridui-u-data-explorer--border-solid gridui-u-data-explorer--border-border\"\n onPointerDown={(event) => {\n if (disabled || !drag.start(event, {\n x: event.clientX,\n width,\n direction: getComputedStyle(event.currentTarget).direction === \"rtl\" ? -1 : 1,\n })) {\n return;\n }\n event.preventDefault();\n event.currentTarget.focus();\n }}\n onPointerMove={(event) => {\n const current = drag.get(event.pointerId);\n if (!disabled && current) {\n change(current.width + (event.clientX - current.x) * current.direction);\n }\n }}\n onPointerUp={event => { drag.finish(event.pointerId); }}\n onPointerCancel={event => { drag.cancel(event.pointerId); }}\n onLostPointerCapture={event => { drag.cancel(event.pointerId); }}\n onKeyDown={(event) => {\n if (disabled || isComposingKeyEvent(event.nativeEvent) || ![\n \"ArrowLeft\",\n \"ArrowRight\",\n \"Home\",\n \"End\",\n ].includes(event.key)) {\n return;\n }\n event.preventDefault();\n const direction = getComputedStyle(event.currentTarget).direction === \"rtl\" ? -1 : 1;\n const step = (event.shiftKey ? 50 : 10) * direction;\n let next = width + (event.key === \"ArrowRight\" ? step : -step);\n if (event.key === \"Home\") {\n next = min;\n }\n if (event.key === \"End\") {\n next = max;\n }\n change(next);\n }}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerTable\n * @description Data Explorer Table\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { type DataExplorerRow, selectExplorerPage } from \"../shared/model\";\nimport { calculateColumnLayout } from \"./column-layout\";\nimport { ColumnResizeHandle } from \"./column-resize-handle\";\nimport { Button } from \"@gridui/button\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport { DataTable, type DataTableColumn, type DataTablePresentation } from \"@gridui/table\";\nimport { Children, type FC } from \"react\";\n\nexport type DataExplorerTableProps = ExplorerPartOptions & DataTablePresentation & {\n readonly labels?: Pick<DataExplorerLabels, \"table\" | \"empty\"> & Partial<Pick<DataExplorerLabels, \"selection\" | \"selectRow\">>;\n};\n\nexport const DataExplorerTable: FC<DataExplorerTableProps> = (props: DataExplorerTableProps) => {\n const { className, labels: ownLabels, ...presentation } = props;\n const { busy, columnSizing, details, labels: inheritedLabels, notice, onSelectionChange, renderCell,\n selectedRowIds, selectedRowIdSet, tableId, view, visibleColumns } = useExplorer();\n const labels = { ...inheritedLabels, ...ownLabels };\n const hasNotice = Children.toArray(notice).some(child => {\n return child !== \"\";\n });\n const { columns, fixedWidths, selectionWidth, detailsWidth, tableWidth } = calculateColumnLayout({\n columns: visibleColumns,\n columnWidths: columnSizing?.widths,\n hasSelection: onSelectionChange !== undefined,\n hasDetails: details !== undefined,\n });\n const tableColumns: DataTableColumn[] = columns.map(({ column, width, stickyOffset }) => {\n return {\n key: `column:${column.key}`,\n label: column.label,\n ...(column.numeric !== undefined ? { numeric: column.numeric } : {}),\n ...(fixedWidths ? {\n sizing: {\n width,\n minWidth: width,\n maxWidth: width,\n },\n } : {}),\n ...(column.sticky ? {\n sticky: column.sticky,\n stickyOffset,\n } : {}),\n ...(columnSizing ? {\n header: (<div\n className=\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--items-center gridui-u-data-explorer--justify-between gridui-u-data-explorer--gap-gridui-8\"\n >\n <span>\n {column.label}\n </span>\n <ColumnResizeHandle\n column={column}\n width={width}\n label={columnSizing.resizeLabel(column)}\n disabled={busy}\n onChange={(nextWidth) => {\n columnSizing.onWidthsChange({\n ...columnSizing.widths,\n [column.key]: nextWidth,\n });\n }}\n />\n </div>),\n } : {}),\n };\n });\n if (onSelectionChange) {\n tableColumns.unshift({\n key: \"control:selection\",\n label: explorerLabel(labels, \"selection\"),\n ...(fixedWidths ? { sizing: { width: selectionWidth } } : {}),\n });\n }\n if (details) {\n tableColumns.unshift({\n key: \"control:details\",\n label: details.columnLabel,\n ...(fixedWidths ? { sizing: { width: detailsWidth } } : {}),\n });\n }\n const detailId = (row: DataExplorerRow) => {\n return `${tableId}-details-${encodeURIComponent(row.id)}`;\n };\n const tableRows = view.rows.map(row => {\n const cells = visibleColumns.map(column => {\n const value = row.values[column.key];\n if (renderCell) {\n return renderCell(value, row, column);\n }\n return value ?? \"\";\n });\n if (onSelectionChange) {\n cells.unshift((<Checkbox\n key=\"select\"\n aria-label={explorerLabel(labels, \"selectRow\")(row)}\n checked={selectedRowIdSet.has(row.id)}\n disabled={busy}\n onCheckedChange={checked => {\n const nextSelection = selectExplorerPage(selectedRowIds, [row.id], checked);\n onSelectionChange(nextSelection);\n }}\n />));\n }\n if (details) {\n const expanded = details.expandedIds.includes(row.id);\n cells.unshift((<Button\n key=\"details\"\n variant=\"quiet\"\n disabled={busy}\n aria-expanded={expanded}\n aria-controls={expanded ? detailId(row) : undefined}\n onClick={() => {\n details.onExpandedIdsChange(expanded ? details.expandedIds.filter(key => {\n return key !== row.id;\n }) : [\n ...new Set([\n ...details.expandedIds,\n row.id,\n ]),\n ]);\n }}\n >\n {expanded ? details.collapseLabel(row) : details.expandLabel(row)}\n </Button>));\n }\n const detail = details?.expandedIds.includes(row.id) ? {\n id: detailId(row),\n content: details.render(row),\n } : undefined;\n return {\n key: row.id,\n selected: selectedRowIdSet.has(row.id),\n cells,\n ...(detail ? { detail } : {}),\n };\n });\n return (<>\n {hasNotice && (<div>\n {notice}\n </div>)}\n <Split\n direction=\"column\"\n aria-busy={busy}\n className={cn(className)}\n >\n <div>\n <DataTable\n {...presentation}\n label={explorerLabel(labels, \"table\")}\n variant=\"structured\"\n blockEdges=\"none\"\n inlineEdges=\"none\"\n columns={tableColumns}\n rows={tableRows}\n {...(fixedWidths ? {\n style: {\n width: tableWidth,\n tableLayout: \"fixed\" as const,\n },\n minWidth: tableWidth,\n } : {})}\n />\n </div>\n {view.rows.length === 0 && !busy && (<div>\n <p\n className=\"gridui-u-data-explorer--m-0 gridui-u-data-explorer--p-gridui-16\"\n >\n {explorerLabel(labels, \"empty\")}\n </p>\n </div>)}\n </Split>\n </>);\n};\n", "import { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerColumnVisibilityProps = ExplorerPartOptions & { readonly label?: string };\n\nexport function DataExplorerColumnVisibility({ label, className }: DataExplorerColumnVisibilityProps) {\n const { busy, columnSettings, columns, visibleColumns } = useExplorer();\n if (!columnSettings) { return null; }\n return <details className={cn(\"gridui-u-data-explorer--p-gridui-16\", className)}>\n <summary className=\"gridui-u-data-explorer--cursor-pointer gridui-u-data-explorer--type-caption\">{label ?? columnSettings.label}</summary>\n <div className=\"gridui-u-data-explorer--flex gridui-u-data-explorer--flex-wrap gridui-u-data-explorer--gap-gridui-16 gridui-u-data-explorer--pt-gridui-16\">\n {columns.map(column => {\n const visible = !columnSettings.hiddenKeys.includes(column.key);\n return <label key={column.key} className=\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-h-11 gridui-u-data-explorer--items-center gridui-u-data-explorer--gap-gridui-8\">\n <Checkbox checked={visible} disabled={busy || (visible && visibleColumns.length === 1)}\n onCheckedChange={checked => void columnSettings.onHiddenKeysChange(checked\n ? columnSettings.hiddenKeys.filter(key => key !== column.key)\n : [...new Set([...columnSettings.hiddenKeys, column.key])])} />\n {column.label}\n </label>;\n })}\n </div>\n </details>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerToolbar\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const explorerLabelStyles = cva(\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--flex-[1_1_10rem] gridui-u-data-explorer--flex-col gridui-u-data-explorer--gap-gridui-4 gridui-u-data-explorer--text-muted gridui-u-data-explorer--type-caption\");\n", "import { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Select } from \"@gridui/select\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerFilterControlProps = ExplorerPartOptions & { readonly allLabel: string };\n\nexport function DataExplorerFilterControl({ allLabel, className }: DataExplorerFilterControlProps) {\n const { busy, filter, state, setFilterValue } = useExplorer();\n if (!filter) { return null; }\n return <label className={cn(explorerLabelStyles(), className)}>\n {filter.label}\n <Select aria-label={filter.label} value={state.filterValue} disabled={busy}\n options={[{ value: \"\", label: allLabel }, ...filter.options]}\n onValueChange={setFilterValue} />\n </label>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerToolbar\n * @description Filter Editor\n */\n\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport type { DataExplorerFiltering } from \"../shared/features\";\nimport type { DataExplorerCondition, DataExplorerFilterOperator } from \"../shared/model\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Button } from \"@gridui/button\";\nimport { Input } from \"@gridui/input\";\nimport { Select } from \"@gridui/select\";\nimport { type FC, useId, useRef } from \"react\";\n\nexport type FilterEditorProps = {\n readonly filtering: DataExplorerFiltering;\n readonly conditions: readonly DataExplorerCondition[];\n readonly disabled: boolean;\n readonly onChange: (conditions: readonly DataExplorerCondition[]) => void;\n};\n\nexport const FilterEditor: FC<FilterEditorProps> = (props: FilterEditorProps) => {\n const { filtering, conditions, disabled, onChange } = props;\n const id = useId();\n const sequence = useRef(0);\n const addButton = useRef<HTMLButtonElement>(null);\n const { definitions, labels } = filtering;\n const first = definitions[0];\n const change = (index: number, condition: DataExplorerCondition) => {\n onChange(conditions.map((current, currentIndex) => {\n return currentIndex === index ? condition : current;\n }));\n };\n return (<div>\n {conditions.map((condition, index) => {\n const definition = definitions.find(entry => {\n return entry.key === condition.key;\n });\n let operators: readonly DataExplorerFilterOperator[] = [\n \"contains\",\n \"equals\",\n \"not-equals\",\n \"empty\",\n ];\n if (definition?.type === \"number\") {\n operators = [\n \"equals\",\n \"not-equals\",\n \"greater-than\",\n \"less-than\",\n \"empty\",\n ];\n }\n if (definition?.type === \"enum\") {\n operators = [\n \"equals\",\n \"not-equals\",\n \"empty\",\n ];\n }\n return (<div\n key={condition.id}\n className={explorerControlRowStyles()}\n >\n <label\n className={explorerLabelStyles()}\n >\n {labels.field}\n <Select\n aria-label={labels.field}\n disabled={disabled}\n value={condition.key}\n options={definitions.map(field => {\n return {\n value: field.key,\n label: field.label,\n };\n })}\n onValueChange={(key) => {\n const field = definitions.find(entry => {\n return entry.key === key;\n });\n change(index, {\n id: condition.id,\n key,\n operator: field?.type === \"text\" ? \"contains\" : \"equals\",\n value: \"\",\n });\n }}\n />\n </label>\n <label\n className={explorerLabelStyles()}\n >\n {labels.operator}\n <Select\n aria-label={labels.operator}\n disabled={disabled}\n value={condition.operator}\n options={operators.map(operator => {\n return {\n value: operator,\n label: labels.operators[operator],\n };\n })}\n onValueChange={(operator) => {\n const next = operators.find(value => {\n return value === operator;\n });\n if (next) {\n change(index, {\n ...condition,\n operator: next,\n });\n }\n }}\n />\n </label>\n {condition.operator !== \"empty\" && (<label\n className={explorerLabelStyles()}\n >\n {labels.value}\n {definition?.type === \"enum\" ? (<Select\n aria-label={labels.value}\n disabled={disabled}\n value={String(condition.value ?? \"\")}\n placeholder={labels.value}\n options={definition.options ?? []}\n onValueChange={(value) => {\n change(index, {\n ...condition,\n value,\n });\n }}\n />) : (<Input\n aria-label={labels.value}\n disabled={disabled}\n type={definition?.type === \"number\" ? \"number\" : \"text\"}\n value={condition.value ?? \"\"}\n onValueChange={(text) => {\n const value = definition?.type === \"number\" && text !== \"\" ? Number(text) : text;\n change(index, {\n ...condition,\n value,\n });\n }}\n />)}\n </label>)}\n <Button\n variant=\"quiet\"\n disabled={disabled}\n onClick={() => {\n onChange(conditions.filter(entry => {\n return entry.id !== condition.id;\n }));\n addButton.current?.focus();\n }}\n >\n {labels.remove(index)}\n </Button>\n </div>);\n })}\n <div\n className={explorerControlRowStyles()}\n >\n <Button\n ref={addButton}\n variant=\"secondary\"\n disabled={disabled || !first}\n onClick={() => {\n if (!first) {\n return;\n }\n sequence.current += 1;\n onChange([\n ...conditions,\n {\n id: `${id}-${sequence.current}`,\n key: first.key,\n operator: first.type === \"text\" ? \"contains\" : \"equals\",\n value: \"\",\n },\n ]);\n }}\n >\n {labels.add}\n </Button>\n </div>\n </div>);\n};\n", "import { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerFiltering } from \"../shared/features\";\nimport { FilterEditor } from \"./filter-editor\";\n\nexport type DataExplorerFiltersProps = { readonly labels?: DataExplorerFiltering[\"labels\"] };\n\nexport function DataExplorerFilters({ labels }: DataExplorerFiltersProps) {\n const { busy, filtering, state, setFilters } = useExplorer();\n if (!filtering) { return null; }\n return <FilterEditor filtering={labels ? { ...filtering, labels } : filtering}\n conditions={state.filters ?? []} disabled={busy}\n onChange={setFilters} />;\n}\n", "import { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Input } from \"@gridui/input\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerSearchProps = ExplorerPartOptions & { readonly label: string };\n\nexport function DataExplorerSearch({ label, className }: DataExplorerSearchProps) {\n const { busy, state, setQuery } = useExplorer();\n return <label className={cn(explorerLabelStyles(), className)}>\n {label}\n <Input type=\"search\" value={state.query} disabled={busy}\n onValueChange={setQuery} />\n </label>;\n}\n", "import { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Button } from \"@gridui/button\";\nimport { Select } from \"@gridui/select\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerSortProps = ExplorerPartOptions & {\n readonly labels: Pick<DataExplorerLabels, \"sort\" | \"unsorted\" | \"ascending\" | \"descending\">;\n};\n\nexport function DataExplorerSort({ labels, className }: DataExplorerSortProps) {\n const { busy, columns, state, setSort } = useExplorer();\n return <>\n <label className={cn(explorerLabelStyles(), className)}>\n {labels.sort}\n <Select aria-label={labels.sort} value={state.sort?.key ?? \"\"} disabled={busy}\n options={[{ value: \"\", label: labels.unsorted }, ...columns.map(column => ({ value: column.key, label: column.label }))]}\n onValueChange={key => void setSort(key ? { key, direction: \"ascending\" } : null)} />\n </label>\n <Button variant=\"secondary\" disabled={busy || !state.sort} onClick={() => {\n if (state.sort) {\n setSort({ ...state.sort, direction: state.sort.direction === \"ascending\" ? \"descending\" : \"ascending\" });\n }\n }}>{state.sort?.direction === \"descending\" ? labels.descending : labels.ascending}</Button>\n </>;\n}\n", "import { DataExplorerColumnVisibility } from \"../data-explorer-column-visibility/data-explorer-column-visibility\";\nimport { DataExplorerFilterControl } from \"../data-explorer-filter-control/data-explorer-filter-control\";\nimport { DataExplorerFilters } from \"../data-explorer-filters/data-explorer-filters\";\nimport { DataExplorerSearch } from \"../data-explorer-search/data-explorer-search\";\nimport { DataExplorerSort } from \"../data-explorer-sort/data-explorer-sort\";\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ReactNode } from \"react\";\n\nexport type DataExplorerToolbarProps = ExplorerPartOptions & { readonly children?: ReactNode };\n\nexport function DataExplorerToolbar({ className, children }: DataExplorerToolbarProps) {\n const { labels, filter } = useExplorer();\n if (children !== undefined) {\n return <div className={cn(explorerControlRowStyles(), className)}>{children}</div>;\n }\n return <>\n <div className={cn(explorerControlRowStyles(), className)}>\n <DataExplorerSearch label={explorerLabel(labels, \"search\")} />\n {filter && <DataExplorerFilterControl allLabel={explorerLabel(labels, \"all\")} />}\n <DataExplorerSort labels={{\n sort: explorerLabel(labels, \"sort\"), unsorted: explorerLabel(labels, \"unsorted\"),\n ascending: explorerLabel(labels, \"ascending\"), descending: explorerLabel(labels, \"descending\"),\n }} />\n </div>\n <DataExplorerColumnVisibility />\n <DataExplorerFilters />\n </>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorer\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const explorerStyles = cva(\"gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--border gridui-u-data-explorer--border-border gridui-u-data-explorer--bg-background gridui-u-data-explorer--text-foreground\");\n", "import { explorerStyles } from \"./style\";\nimport { Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef } from \"react\";\n\nexport type DataExplorerViewProps = ComponentPropsWithRef<\"section\"> & {\n readonly label: string;\n};\n\n/** Optional frame; the provider and custom controls do not depend on it. */\nexport function DataExplorerView({ label, className, children, ...rest }: DataExplorerViewProps) {\n return <section {...rest} aria-label={label} className={cn(explorerStyles(), className)}>\n <Split direction=\"column\">{children}</Split>\n </section>;\n}\n", "import { DataExplorerBulkActions } from \"../data-explorer-bulk-actions/data-explorer-bulk-actions\";\nimport { DataExplorerPagination } from \"../data-explorer-pagination/data-explorer-pagination\";\nimport { DataExplorerProvider } from \"../data-explorer-provider/data-explorer-provider\";\nimport { DataExplorerTable } from \"../data-explorer-table/data-explorer-table\";\nimport { DataExplorerToolbar } from \"../data-explorer-toolbar/data-explorer-toolbar\";\nimport { DataExplorerView } from \"../data-explorer-view/data-explorer-view\";\nimport type { ExplorerOptions } from \"../shared/explorer-options\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DataExplorerProps = ComponentPropsWithRef<\"section\"> & ExplorerOptions;\n\n/** The original ready-to-use composition remains a convenience over the parts. */\nexport const DataExplorer: FC<DataExplorerProps> = (props: DataExplorerProps) => {\n const { rows, columns, state, onStateChange, filter, columnSettings, columnSizing, details, filtering,\n pageSize, selectedIds, onSelectionChange, actions, renderCell, busy, notice, labels, className, children, ...restProps } = props;\n return <DataExplorerProvider\n {...{ rows, columns, state, onStateChange, filter, columnSettings, columnSizing, details, filtering,\n pageSize, selectedIds, onSelectionChange, actions, renderCell, busy, notice, labels }}\n >\n <DataExplorerView {...restProps} label={labels.table} className={className}>\n {children ?? <>\n <DataExplorerToolbar />\n <DataExplorerBulkActions />\n <DataExplorerTable />\n <DataExplorerPagination />\n </>}\n </DataExplorerView>\n </DataExplorerProvider>;\n};\n"],
5
- "mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,2BAA2B,IAAI,uPAAuP;;;ACmCnS,IAAM,gBAAgB,CAClB,MACA,OACA,cACS;AAET,MAAI,SAAS,QAAQ,SAAS,QAAW;AACrC,WAAO,UAAU,QAAQ,UAAU,SAAY,IAAI;AAAA,EACvD;AACA,MAAI,UAAU,QAAQ,UAAU,QAAW;AACvC,WAAO;AAAA,EACX;AACA,MAAI,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,GAAG,WAAW,OAAO,OAAO,OAAO,WACjD,sBAAY,gBAAAC,OAAAF,WAAA,EACT;AAAA,wBAAAC,MAAC,uBAAoB;AAAA,QACrB,gBAAAA,MAAC,2BAAwB;AAAA,QACzB,gBAAAA,MAAC,qBAAkB;AAAA,QACnB,gBAAAA,MAAC,0BAAuB;AAAA,SAC5B,GACJ;AAAA;AAAA,EACJ;AACJ;",
4
+ "sourcesContent": ["/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Control Row Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const explorerControlRowStyles = cva(\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--flex-wrap gridui-u-data-explorer--items-end gridui-u-data-explorer--gap-gridui-16 gridui-u-data-explorer--p-gridui-16 gridui-u-data-explorer--[&_label]:min-h-11\");\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Model\n */\n\nexport type DataExplorerValue = string | number | null;\n\nexport type DataExplorerRow = {\n readonly id: string;\n readonly values: Readonly<Record<string, DataExplorerValue>>;\n};\n\nexport type DataExplorerColumn = {\n readonly key: string;\n readonly label: string;\n readonly numeric?: boolean;\n readonly width?: number;\n readonly minWidth?: number;\n readonly maxWidth?: number;\n readonly sticky?: \"start\" | \"end\";\n};\n\nexport type DataExplorerState = {\n readonly query: string;\n readonly filterValue: string;\n readonly sort: {\n readonly key: string;\n readonly direction: \"ascending\" | \"descending\";\n } | null;\n readonly page: number;\n readonly filters?: readonly DataExplorerCondition[];\n};\n\nexport type DataExplorerFilter = {\n readonly key: string;\n readonly label: string;\n readonly options: readonly {\n readonly value: string;\n readonly label: string;\n }[];\n};\n\nconst compareValues = (\n left: DataExplorerValue | undefined,\n right: DataExplorerValue | undefined,\n direction: \"ascending\" | \"descending\",\n): number => {\n // Missing values stay last in either direction; equal values preserve input order.\n if (left === null || left === undefined) {\n return right === null || right === undefined ? 0 : 1;\n }\n if (right === null || right === undefined) {\n return -1;\n }\n let comparison = 0;\n if (typeof left === \"number\" && typeof right === \"number\") {\n comparison = left - right;\n } else if (String(left) < String(right)) {\n comparison = -1;\n } else if (String(left) > String(right)) {\n comparison = 1;\n }\n return direction === \"ascending\" ? comparison : -comparison;\n};\n\nexport const selectExplorerRows = (\n rows: readonly DataExplorerRow[],\n columns: readonly DataExplorerColumn[],\n state: DataExplorerState,\n pageSize: number,\n filter?: DataExplorerFilter,\n) => {\n const validPageSize = Number.isInteger(pageSize) && pageSize > 0;\n const validPage = Number.isInteger(state.page) && state.page >= 0;\n if (!validPageSize || !validPage) {\n throw new RangeError(\"DataExplorer needs a positive integer pageSize and a non-negative integer page.\");\n }\n const rowIds = rows.map(row => {\n return row.id;\n });\n const columnKeys = columns.map(column => {\n return column.key;\n });\n const hasDuplicateRows = new Set(rowIds).size !== rows.length;\n const hasDuplicateColumns = new Set(columnKeys).size !== columns.length;\n if (hasDuplicateRows || hasDuplicateColumns) {\n throw new Error(\"DataExplorer row ids and column keys must be unique.\");\n }\n const query = state.query.trim().toLowerCase();\n const filtered = rows.filter(row => {\n const matchesQuery = !query || columns.some(column => {\n const cellText = String(row.values[column.key] ?? \"\").toLowerCase();\n return cellText.includes(query);\n });\n const matchesFilter = !filter || !state.filterValue\n || String(row.values[filter.key] ?? \"\") === state.filterValue;\n return matchesQuery && matchesFilter && (state.filters ?? []).every(condition => {\n return matchesExplorerCondition(row, condition);\n });\n });\n const sort = state.sort;\n if (sort && columnKeys.includes(sort.key)) {\n filtered.sort((left, right) => {\n return compareValues(left.values[sort.key], right.values[sort.key], sort.direction);\n });\n }\n const pageCount = Math.max(1, Math.ceil(filtered.length / pageSize));\n const page = Math.min(state.page, pageCount - 1);\n return {\n rows: filtered.slice(page * pageSize, (page + 1) * pageSize),\n total: filtered.length,\n page,\n pageCount,\n };\n};\n\nexport const selectExplorerPage = (\n selectedIds: readonly string[],\n pageIds: readonly string[],\n checked: boolean,\n): string[] => {\n const selected = new Set(selectedIds);\n for (const id of pageIds) {\n if (checked) {\n selected.add(id);\n } else {\n selected.delete(id);\n }\n }\n return [...selected];\n};\n\nexport type DataExplorerFilterOperator = \"contains\" | \"equals\" | \"not-equals\" | \"greater-than\" | \"less-than\" | \"empty\";\n\nexport type DataExplorerCondition = {\n readonly id: string;\n readonly key: string;\n readonly operator: DataExplorerFilterOperator;\n readonly value?: string | number;\n};\n\nexport type DataExplorerFilterDefinition = {\n readonly key: string;\n readonly label: string;\n readonly type: \"text\" | \"number\" | \"enum\";\n readonly options?: readonly {\n readonly value: string;\n readonly label: string;\n }[];\n};\n\nexport const matchesExplorerCondition = (row: DataExplorerRow, condition: DataExplorerCondition): boolean => {\n const value = row.values[condition.key];\n if (condition.operator === \"empty\") {\n return value === null || value === undefined || value === \"\";\n }\n if (condition.value === undefined || condition.value === \"\") {\n return true;\n }\n if (condition.operator === \"contains\") {\n return String(value ?? \"\").normalize(\"NFKC\")\n .toLowerCase()\n .includes(String(condition.value).normalize(\"NFKC\")\n .toLowerCase());\n }\n if (condition.operator === \"equals\") {\n return value === condition.value;\n }\n if (condition.operator === \"not-equals\") {\n return value !== condition.value;\n }\n if (typeof condition.value !== \"number\" || !Number.isFinite(condition.value)) {\n throw new RangeError(\"Numeric filter comparisons require a finite numeric value.\");\n }\n if (typeof value !== \"number\" || !Number.isFinite(value)) {\n return false;\n }\n return condition.operator === \"greater-than\" ? value > condition.value : value < condition.value;\n};\n\nexport const resolveExplorerWidth = (column: DataExplorerColumn, width = column.width ?? 200): number => {\n const min = column.minWidth ?? 80;\n const max = column.maxWidth ?? 1200;\n if (![\n width,\n min,\n max,\n ].every(value => {\n return Number.isFinite(value) && value > 0;\n }) || max < min) {\n throw new RangeError(\"Explorer column widths must be positive and finite with ordered bounds.\");\n }\n return Math.max(min, Math.min(max, width));\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Controller\n */\n\nimport type { DataExplorerOptions } from \"./explorer-options\";\nimport { type DataExplorerState, selectExplorerRows } from \"./model\";\n\n/** Derive the local dataset view without imposing a rendered composition. */\nexport const createExplorerController = (options: DataExplorerOptions) => {\n const { rows, columns, state, onStateChange, filter, pageSize = 10, selectedIds = [],\n onSelectionChange, busy = false, columnSettings } = options;\n const view = selectExplorerRows(rows, columns, state, pageSize, filter);\n const existingRowIds = new Set(rows.map(row => row.id));\n const selectedRowIdSet = new Set(selectedIds.filter(id => existingRowIds.has(id)));\n const selectedRowIds = [...selectedRowIdSet];\n const pageIds = view.rows.map(row => row.id);\n const selectedPageCount = pageIds.filter(id => selectedRowIdSet.has(id)).length;\n const visibleColumns = columns.filter(column => !columnSettings?.hiddenKeys.includes(column.key));\n if (columns.length > 0 && visibleColumns.length === 0) {\n throw new RangeError(\"DataExplorer needs at least one visible column.\");\n }\n const updateState = (changes: Partial<DataExplorerState>) => {\n if (!busy) {\n onStateChange({ ...state, ...changes });\n }\n };\n const setQuery = (query: string) => void updateState({ query, page: 0 });\n const setFilterValue = (filterValue: string) => void updateState({ filterValue, page: 0 });\n const setSort = (sort: DataExplorerState[\"sort\"]) => void updateState({ sort, page: 0 });\n const setFilters = (filters: NonNullable<DataExplorerState[\"filters\"]>) => void updateState({ filters, page: 0 });\n const updateSelection = (ids: readonly string[]) => {\n if (!busy) {\n onSelectionChange?.([...new Set(ids.filter(id => existingRowIds.has(id)))]);\n }\n };\n return {\n busy, state, columns, visibleColumns, view, selectedRowIds, selectedRowIdSet,\n pageIds, selectedPageCount, updateState, setQuery, setFilterValue, setSort, setFilters, updateSelection,\n };\n};\n\nexport type DataExplorerController = ReturnType<typeof createExplorerController>;\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Explorer Context\n */\n\nimport { createExplorerController } from \"./controller\";\nimport type { DataExplorerOptions } from \"./explorer-options\";\nimport { createContext, useContext, useId } from \"react\";\n\nexport const useExplorerController = (options: DataExplorerOptions) => {\n const tableId = useId();\n const controller = createExplorerController(options);\n return { ...options, ...controller, tableId, controller };\n};\n\nexport const explorerContext = createContext<ReturnType<typeof useExplorerController> | null>(null);\n\nexport const useExplorer = () => {\n const explorer = useContext(explorerContext);\n if (!explorer) {\n throw new Error(\"DataExplorer parts require a DataExplorerProvider or DataExplorer.\");\n }\n return explorer;\n};\n\n/** Share accepted state, derived rows and guarded commands with custom controls. */\nexport const useDataExplorer = () => useExplorer().controller;\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Labels\n */\n\nimport type { DataExplorerLabels } from \"./explorer-options\";\n\nexport const explorerLabel = <Key extends keyof DataExplorerLabels>(\n labels: Partial<DataExplorerLabels> | undefined,\n key: Key,\n): DataExplorerLabels[Key] => {\n const value = labels?.[key];\n if (value === undefined) {\n throw new Error(`DataExplorer requires the \"${key}\" label for this part.`);\n }\n return value;\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerBulkActions\n * @description Data Explorer Bulk Actions\n */\n\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { selectExplorerPage } from \"../shared/model\";\nimport { Button } from \"@gridui/button\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type DataExplorerBulkActionsProps = ExplorerPartOptions & {\n readonly labels?: Pick<DataExplorerLabels, \"selectPage\" | \"selected\">;\n};\n\nexport const DataExplorerBulkActions: FC<DataExplorerBulkActionsProps> = (props: DataExplorerBulkActionsProps) => {\n const { actions = [], busy, labels: inheritedLabels, onSelectionChange, pageIds, selectedPageCount, selectedRowIds } = useExplorer();\n const labels = { ...inheritedLabels, ...props.labels };\n if (!onSelectionChange) {\n return null;\n }\n return (<div\n className={cn(explorerControlRowStyles(), props.className)}\n >\n <label>\n <Checkbox\n checked={pageIds.length > 0 && selectedPageCount === pageIds.length}\n indeterminate={selectedPageCount > 0 && selectedPageCount < pageIds.length}\n disabled={busy || pageIds.length === 0}\n onCheckedChange={checked => {\n onSelectionChange(selectExplorerPage(selectedRowIds, pageIds, checked));\n }}\n />\n {\" \"}\n {explorerLabel(labels, \"selectPage\")}\n </label>\n <span\n role=\"status\"\n >\n {explorerLabel(labels, \"selected\")(selectedRowIds.length)}\n </span>\n {actions.map(action => {\n return (<Button\n key={action.label}\n variant=\"secondary\"\n disabled={busy || selectedRowIds.length === 0 || action.disabled}\n onClick={() => {\n action.onAction(selectedRowIds);\n }}\n >\n {action.label}\n </Button>);\n })}\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerPagination\n * @description Data Explorer Pagination\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { Button } from \"@gridui/button\";\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\nimport type { FC } from \"react\";\n\nexport type DataExplorerPaginationProps = ExplorerPartOptions & {\n readonly labels?: Pick<DataExplorerLabels, \"previous\" | \"next\" | \"page\">;\n};\n\nconst explorerFooterStyles = cva(\"gridui-u-data-explorer--flex gridui-u-data-explorer--flex-wrap gridui-u-data-explorer--items-center gridui-u-data-explorer--justify-between gridui-u-data-explorer--gap-gridui-8 gridui-u-data-explorer--p-gridui-16\");\n\nexport const DataExplorerPagination: FC<DataExplorerPaginationProps> = (props: DataExplorerPaginationProps) => {\n const { busy, labels: inheritedLabels, updateState, view } = useExplorer();\n const labels = { ...inheritedLabels, ...props.labels };\n return (<div\n className={cn(explorerFooterStyles(), props.className)}\n >\n <Button\n variant=\"secondary\"\n disabled={busy || view.page === 0}\n onClick={() => {\n updateState({ page: view.page - 1 });\n }}\n >\n {explorerLabel(labels, \"previous\")}\n </Button>\n <span\n role=\"status\"\n >\n {explorerLabel(labels, \"page\")(view.page + 1, view.pageCount, view.total)}\n </span>\n <Button\n variant=\"secondary\"\n disabled={busy || view.page + 1 >= view.pageCount}\n onClick={() => {\n updateState({ page: view.page + 1 });\n }}\n >\n {explorerLabel(labels, \"next\")}\n </Button>\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerProvider\n * @description Data Explorer Provider\n */\n\nimport { explorerContext, useExplorerController } from \"../shared/explorer-context\";\nimport type { DataExplorerOptions } from \"../shared/explorer-options\";\nimport type { ReactNode } from \"react\";\n\nexport type DataExplorerProviderProps = DataExplorerOptions & {\n readonly children?: ReactNode;\n};\n\n/** Own dataset coordination without adding DOM, labels or layout requirements. */\nexport function DataExplorerProvider({ children, ...options }: DataExplorerProviderProps) {\n const explorer = useExplorerController(options);\n return <explorerContext.Provider value={explorer}>{children}</explorerContext.Provider>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerTable\n * @description Column Layout\n */\n\nimport { type DataExplorerColumn, resolveExplorerWidth } from \"../shared/model\";\n\ntype ColumnLayoutOptions = {\n readonly columns: readonly DataExplorerColumn[];\n readonly columnWidths: Readonly<Record<string, number>> | undefined;\n readonly hasSelection: boolean;\n readonly hasDetails: boolean;\n};\n\ntype SizedColumn = {\n readonly column: DataExplorerColumn;\n readonly width: number;\n};\n\ntype ColumnLayout = {\n readonly columns: readonly (SizedColumn & {\n readonly stickyOffset: number;\n })[];\n readonly fixedWidths: boolean;\n readonly selectionWidth: number;\n readonly detailsWidth: number;\n readonly tableWidth: number;\n};\n\nconst calculateStickyOffset = (columns: readonly SizedColumn[], index: number): number => {\n const side = columns[index]!.column.sticky;\n if (side === undefined) {\n return 0;\n }\n return columns.reduce((offset, current, currentIndex) => {\n if (current.column.sticky !== side) {\n return offset;\n }\n const contributes = side === \"start\" ? currentIndex < index : currentIndex > index;\n if (contributes) {\n return offset + current.width;\n }\n return offset;\n }, 0);\n};\n\nexport const calculateColumnLayout = (options: ColumnLayoutOptions): ColumnLayout => {\n const { columns, columnWidths, hasSelection, hasDetails } = options;\n const fixedWidths = columnWidths !== undefined || columns.some(column => {\n return column.width !== undefined || column.sticky !== undefined;\n });\n const sizedColumns = columns.map(column => {\n return {\n column,\n width: resolveExplorerWidth(column, columnWidths?.[column.key] ?? column.width),\n };\n });\n const selectionWidth = hasSelection ? 56 : 0;\n const detailsWidth = hasDetails ? 96 : 0;\n const dataWidth = sizedColumns.reduce((total, column) => {\n return total + column.width;\n }, 0);\n return {\n columns: sizedColumns.map((column, index) => {\n return {\n ...column,\n stickyOffset: calculateStickyOffset(sizedColumns, index),\n };\n }),\n fixedWidths,\n selectionWidth,\n detailsWidth,\n tableWidth: dataWidth + selectionWidth + detailsWidth,\n };\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerTable\n * @description Column Resize Handle\n */\n\nimport { type DataExplorerColumn, resolveExplorerWidth } from \"../shared/model\";\nimport { isComposingKeyEvent } from \"@gridui/interaction\";\nimport { usePointerDrag } from \"@gridui/react-utils\";\nimport { type FC, useEffect } from \"react\";\n\nexport type ColumnResizeHandleProps = {\n readonly column: DataExplorerColumn;\n readonly width: number;\n readonly label: string;\n readonly disabled: boolean;\n readonly onChange: (width: number) => void;\n};\n\nexport const ColumnResizeHandle: FC<ColumnResizeHandleProps> = (props: ColumnResizeHandleProps) => {\n const { column, width, label, disabled, onChange } = props;\n const min = column.minWidth ?? 80;\n const max = column.maxWidth ?? 1200;\n const change = (next: number) => {\n onChange(resolveExplorerWidth(column, Math.max(min, Math.min(max, next))));\n };\n const drag = usePointerDrag<{ readonly x: number; readonly width: number; readonly direction: number }>((current) => {\n change(current.width);\n }, { onUnmount: \"finish\" });\n useEffect(() => {\n if (disabled) {\n drag.cancel();\n }\n }, [disabled, drag]);\n return (<div\n role=\"separator\"\n tabIndex={disabled ? -1 : 0}\n aria-orientation=\"vertical\"\n aria-label={label}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={width}\n aria-disabled={disabled || undefined}\n className=\"gridui-explorer-resize gridui-u-data-explorer--min-h-11 gridui-u-data-explorer--w-gridui-16 gridui-u-data-explorer--shrink-0 gridui-u-data-explorer--cursor-col-resize gridui-u-data-explorer--touch-none gridui-u-data-explorer--border-s gridui-u-data-explorer--border-solid gridui-u-data-explorer--border-border\"\n onPointerDown={(event) => {\n if (disabled || !drag.start(event, {\n x: event.clientX,\n width,\n direction: getComputedStyle(event.currentTarget).direction === \"rtl\" ? -1 : 1,\n })) {\n return;\n }\n event.preventDefault();\n event.currentTarget.focus();\n }}\n onPointerMove={(event) => {\n const current = drag.get(event.pointerId);\n if (!disabled && current) {\n change(current.width + (event.clientX - current.x) * current.direction);\n }\n }}\n onPointerUp={event => { drag.finish(event.pointerId); }}\n onPointerCancel={event => { drag.cancel(event.pointerId); }}\n onLostPointerCapture={event => { drag.cancel(event.pointerId); }}\n onKeyDown={(event) => {\n if (disabled || isComposingKeyEvent(event.nativeEvent) || ![\n \"ArrowLeft\",\n \"ArrowRight\",\n \"Home\",\n \"End\",\n ].includes(event.key)) {\n return;\n }\n event.preventDefault();\n const direction = getComputedStyle(event.currentTarget).direction === \"rtl\" ? -1 : 1;\n const step = (event.shiftKey ? 50 : 10) * direction;\n let next = width + (event.key === \"ArrowRight\" ? step : -step);\n if (event.key === \"Home\") {\n next = min;\n }\n if (event.key === \"End\") {\n next = max;\n }\n change(next);\n }}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerTable\n * @description Data Explorer Table\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { type DataExplorerRow, selectExplorerPage } from \"../shared/model\";\nimport { calculateColumnLayout } from \"./column-layout\";\nimport { ColumnResizeHandle } from \"./column-resize-handle\";\nimport { Button } from \"@gridui/button\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport { DataTable, type DataTableColumn, type DataTablePresentation } from \"@gridui/table\";\nimport { Children, type FC } from \"react\";\n\nexport type DataExplorerTableProps = ExplorerPartOptions & DataTablePresentation & {\n readonly labels?: Pick<DataExplorerLabels, \"table\" | \"empty\"> & Partial<Pick<DataExplorerLabels, \"selection\" | \"selectRow\">>;\n};\n\nexport const DataExplorerTable: FC<DataExplorerTableProps> = (props: DataExplorerTableProps) => {\n const { className, labels: ownLabels, ...presentation } = props;\n const { busy, columnSizing, details, labels: inheritedLabels, notice, onSelectionChange, renderCell,\n selectedRowIds, selectedRowIdSet, tableId, view, visibleColumns } = useExplorer();\n const labels = { ...inheritedLabels, ...ownLabels };\n const hasNotice = Children.toArray(notice).some(child => {\n return child !== \"\";\n });\n const { columns, fixedWidths, selectionWidth, detailsWidth, tableWidth } = calculateColumnLayout({\n columns: visibleColumns,\n columnWidths: columnSizing?.widths,\n hasSelection: onSelectionChange !== undefined,\n hasDetails: details !== undefined,\n });\n const tableColumns: DataTableColumn[] = columns.map(({ column, width, stickyOffset }) => {\n return {\n key: `column:${column.key}`,\n label: column.label,\n ...(column.numeric !== undefined ? { numeric: column.numeric } : {}),\n ...(fixedWidths ? {\n sizing: {\n width,\n minWidth: width,\n maxWidth: width,\n },\n } : {}),\n ...(column.sticky ? {\n sticky: column.sticky,\n stickyOffset,\n } : {}),\n ...(columnSizing ? {\n header: (<div\n className=\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--items-center gridui-u-data-explorer--justify-between gridui-u-data-explorer--gap-gridui-8\"\n >\n <span>\n {column.label}\n </span>\n <ColumnResizeHandle\n column={column}\n width={width}\n label={columnSizing.resizeLabel(column)}\n disabled={busy}\n onChange={(nextWidth) => {\n columnSizing.onWidthsChange({\n ...columnSizing.widths,\n [column.key]: nextWidth,\n });\n }}\n />\n </div>),\n } : {}),\n };\n });\n if (onSelectionChange) {\n tableColumns.unshift({\n key: \"control:selection\",\n label: explorerLabel(labels, \"selection\"),\n ...(fixedWidths ? { sizing: { width: selectionWidth } } : {}),\n });\n }\n if (details) {\n tableColumns.unshift({\n key: \"control:details\",\n label: details.columnLabel,\n ...(fixedWidths ? { sizing: { width: detailsWidth } } : {}),\n });\n }\n const detailId = (row: DataExplorerRow) => {\n return `${tableId}-details-${encodeURIComponent(row.id)}`;\n };\n const tableRows = view.rows.map(row => {\n const cells = visibleColumns.map(column => {\n const value = row.values[column.key];\n if (renderCell) {\n return renderCell(value, row, column);\n }\n return value ?? \"\";\n });\n if (onSelectionChange) {\n cells.unshift((<Checkbox\n key=\"select\"\n aria-label={explorerLabel(labels, \"selectRow\")(row)}\n checked={selectedRowIdSet.has(row.id)}\n disabled={busy}\n onCheckedChange={checked => {\n const nextSelection = selectExplorerPage(selectedRowIds, [row.id], checked);\n onSelectionChange(nextSelection);\n }}\n />));\n }\n if (details) {\n const expanded = details.expandedIds.includes(row.id);\n cells.unshift((<Button\n key=\"details\"\n variant=\"quiet\"\n disabled={busy}\n aria-expanded={expanded}\n aria-controls={expanded ? detailId(row) : undefined}\n onClick={() => {\n details.onExpandedIdsChange(expanded ? details.expandedIds.filter(key => {\n return key !== row.id;\n }) : [\n ...new Set([\n ...details.expandedIds,\n row.id,\n ]),\n ]);\n }}\n >\n {expanded ? details.collapseLabel(row) : details.expandLabel(row)}\n </Button>));\n }\n const detail = details?.expandedIds.includes(row.id) ? {\n id: detailId(row),\n content: details.render(row),\n } : undefined;\n return {\n key: row.id,\n selected: selectedRowIdSet.has(row.id),\n cells,\n ...(detail ? { detail } : {}),\n };\n });\n return (<>\n {hasNotice && (<div>\n {notice}\n </div>)}\n <Split\n direction=\"column\"\n aria-busy={busy}\n className={cn(className)}\n >\n <div>\n <DataTable\n {...presentation}\n label={explorerLabel(labels, \"table\")}\n variant=\"structured\"\n blockEdges=\"none\"\n inlineEdges=\"none\"\n columns={tableColumns}\n rows={tableRows}\n {...(fixedWidths ? {\n style: {\n width: tableWidth,\n tableLayout: \"fixed\" as const,\n },\n minWidth: tableWidth,\n } : {})}\n />\n </div>\n {view.rows.length === 0 && !busy && (<div>\n <p\n className=\"gridui-u-data-explorer--m-0 gridui-u-data-explorer--p-gridui-16\"\n >\n {explorerLabel(labels, \"empty\")}\n </p>\n </div>)}\n </Split>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerColumnVisibility\n * @description Data Explorer Column Visibility\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerColumnVisibilityProps = ExplorerPartOptions & { readonly label?: string };\n\nexport function DataExplorerColumnVisibility({ label, className }: DataExplorerColumnVisibilityProps) {\n const { busy, columnSettings, columns, visibleColumns } = useExplorer();\n if (!columnSettings) { return null; }\n return <details className={cn(\"gridui-u-data-explorer--p-gridui-16\", className)}>\n <summary className=\"gridui-u-data-explorer--cursor-pointer gridui-u-data-explorer--type-caption\">{label ?? columnSettings.label}</summary>\n <div className=\"gridui-u-data-explorer--flex gridui-u-data-explorer--flex-wrap gridui-u-data-explorer--gap-gridui-16 gridui-u-data-explorer--pt-gridui-16\">\n {columns.map(column => {\n const visible = !columnSettings.hiddenKeys.includes(column.key);\n return <label key={column.key} className=\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-h-11 gridui-u-data-explorer--items-center gridui-u-data-explorer--gap-gridui-8\">\n <Checkbox checked={visible} disabled={busy || (visible && visibleColumns.length === 1)}\n onCheckedChange={checked => void columnSettings.onHiddenKeysChange(checked\n ? columnSettings.hiddenKeys.filter(key => key !== column.key)\n : [...new Set([...columnSettings.hiddenKeys, column.key])])} />\n {column.label}\n </label>;\n })}\n </div>\n </details>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace Shared\n * @description Label Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const explorerLabelStyles = cva(\"gridui-u-data-explorer--flex gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--flex-[1_1_10rem] gridui-u-data-explorer--flex-col gridui-u-data-explorer--gap-gridui-4 gridui-u-data-explorer--text-muted gridui-u-data-explorer--type-caption\");\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerFilterControl\n * @description Data Explorer Filter Control\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Select } from \"@gridui/select\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerFilterControlProps = ExplorerPartOptions & { readonly allLabel: string };\n\nexport function DataExplorerFilterControl({ allLabel, className }: DataExplorerFilterControlProps) {\n const { busy, filter, state, setFilterValue } = useExplorer();\n if (!filter) { return null; }\n return <label className={cn(explorerLabelStyles(), className)}>\n {filter.label}\n <Select aria-label={filter.label} value={state.filterValue} disabled={busy}\n options={[{ value: \"\", label: allLabel }, ...filter.options]}\n onValueChange={setFilterValue} />\n </label>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerFilters\n * @description Filter Editor\n */\n\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport type { DataExplorerFiltering } from \"../shared/features\";\nimport type { DataExplorerCondition, DataExplorerFilterOperator } from \"../shared/model\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Button } from \"@gridui/button\";\nimport { Input } from \"@gridui/input\";\nimport { Select } from \"@gridui/select\";\nimport { type FC, useId, useRef } from \"react\";\n\nexport type FilterEditorProps = {\n readonly filtering: DataExplorerFiltering;\n readonly conditions: readonly DataExplorerCondition[];\n readonly disabled: boolean;\n readonly onChange: (conditions: readonly DataExplorerCondition[]) => void;\n};\n\nexport const FilterEditor: FC<FilterEditorProps> = (props: FilterEditorProps) => {\n const { filtering, conditions, disabled, onChange } = props;\n const id = useId();\n const sequence = useRef(0);\n const addButton = useRef<HTMLButtonElement>(null);\n const { definitions, labels } = filtering;\n const first = definitions[0];\n const change = (index: number, condition: DataExplorerCondition) => {\n onChange(conditions.map((current, currentIndex) => {\n return currentIndex === index ? condition : current;\n }));\n };\n return (<div>\n {conditions.map((condition, index) => {\n const definition = definitions.find(entry => {\n return entry.key === condition.key;\n });\n let operators: readonly DataExplorerFilterOperator[] = [\n \"contains\",\n \"equals\",\n \"not-equals\",\n \"empty\",\n ];\n if (definition?.type === \"number\") {\n operators = [\n \"equals\",\n \"not-equals\",\n \"greater-than\",\n \"less-than\",\n \"empty\",\n ];\n }\n if (definition?.type === \"enum\") {\n operators = [\n \"equals\",\n \"not-equals\",\n \"empty\",\n ];\n }\n return (<div\n key={condition.id}\n className={explorerControlRowStyles()}\n >\n <label\n className={explorerLabelStyles()}\n >\n {labels.field}\n <Select\n aria-label={labels.field}\n disabled={disabled}\n value={condition.key}\n options={definitions.map(field => {\n return {\n value: field.key,\n label: field.label,\n };\n })}\n onValueChange={(key) => {\n const field = definitions.find(entry => {\n return entry.key === key;\n });\n change(index, {\n id: condition.id,\n key,\n operator: field?.type === \"text\" ? \"contains\" : \"equals\",\n value: \"\",\n });\n }}\n />\n </label>\n <label\n className={explorerLabelStyles()}\n >\n {labels.operator}\n <Select\n aria-label={labels.operator}\n disabled={disabled}\n value={condition.operator}\n options={operators.map(operator => {\n return {\n value: operator,\n label: labels.operators[operator],\n };\n })}\n onValueChange={(operator) => {\n const next = operators.find(value => {\n return value === operator;\n });\n if (next) {\n change(index, {\n ...condition,\n operator: next,\n });\n }\n }}\n />\n </label>\n {condition.operator !== \"empty\" && (<label\n className={explorerLabelStyles()}\n >\n {labels.value}\n {definition?.type === \"enum\" ? (<Select\n aria-label={labels.value}\n disabled={disabled}\n value={String(condition.value ?? \"\")}\n placeholder={labels.value}\n options={definition.options ?? []}\n onValueChange={(value) => {\n change(index, {\n ...condition,\n value,\n });\n }}\n />) : (<Input\n aria-label={labels.value}\n disabled={disabled}\n type={definition?.type === \"number\" ? \"number\" : \"text\"}\n value={condition.value ?? \"\"}\n onValueChange={(text) => {\n const value = definition?.type === \"number\" && text !== \"\" ? Number(text) : text;\n change(index, {\n ...condition,\n value,\n });\n }}\n />)}\n </label>)}\n <Button\n variant=\"quiet\"\n disabled={disabled}\n onClick={() => {\n onChange(conditions.filter(entry => {\n return entry.id !== condition.id;\n }));\n addButton.current?.focus();\n }}\n >\n {labels.remove(index)}\n </Button>\n </div>);\n })}\n <div\n className={explorerControlRowStyles()}\n >\n <Button\n ref={addButton}\n variant=\"secondary\"\n disabled={disabled || !first}\n onClick={() => {\n if (!first) {\n return;\n }\n sequence.current += 1;\n onChange([\n ...conditions,\n {\n id: `${id}-${sequence.current}`,\n key: first.key,\n operator: first.type === \"text\" ? \"contains\" : \"equals\",\n value: \"\",\n },\n ]);\n }}\n >\n {labels.add}\n </Button>\n </div>\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerFilters\n * @description Data Explorer Filters\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerFiltering } from \"../shared/features\";\nimport { FilterEditor } from \"./filter-editor\";\n\nexport type DataExplorerFiltersProps = { readonly labels?: DataExplorerFiltering[\"labels\"] };\n\nexport function DataExplorerFilters({ labels }: DataExplorerFiltersProps) {\n const { busy, filtering, state, setFilters } = useExplorer();\n if (!filtering) { return null; }\n return <FilterEditor filtering={labels ? { ...filtering, labels } : filtering}\n conditions={state.filters ?? []} disabled={busy}\n onChange={setFilters} />;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerSearch\n * @description Data Explorer Search\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Input } from \"@gridui/input\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerSearchProps = ExplorerPartOptions & { readonly label: string };\n\nexport function DataExplorerSearch({ label, className }: DataExplorerSearchProps) {\n const { busy, state, setQuery } = useExplorer();\n return <label className={cn(explorerLabelStyles(), className)}>\n {label}\n <Input type=\"search\" value={state.query} disabled={busy}\n onValueChange={setQuery} />\n </label>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerSort\n * @description Data Explorer Sort\n */\n\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { DataExplorerLabels, ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabelStyles } from \"../shared/label-style\";\nimport { Button } from \"@gridui/button\";\nimport { Select } from \"@gridui/select\";\nimport { cn } from \"@gridui/style-utils\";\n\nexport type DataExplorerSortProps = ExplorerPartOptions & {\n readonly labels: Pick<DataExplorerLabels, \"sort\" | \"unsorted\" | \"ascending\" | \"descending\">;\n};\n\nexport function DataExplorerSort({ labels, className }: DataExplorerSortProps) {\n const { busy, columns, state, setSort } = useExplorer();\n return <>\n <label className={cn(explorerLabelStyles(), className)}>\n {labels.sort}\n <Select aria-label={labels.sort} value={state.sort?.key ?? \"\"} disabled={busy}\n options={[{ value: \"\", label: labels.unsorted }, ...columns.map(column => ({ value: column.key, label: column.label }))]}\n onValueChange={key => void setSort(key ? { key, direction: \"ascending\" } : null)} />\n </label>\n <Button variant=\"secondary\" disabled={busy || !state.sort} onClick={() => {\n if (state.sort) {\n setSort({ ...state.sort, direction: state.sort.direction === \"ascending\" ? \"descending\" : \"ascending\" });\n }\n }}>{state.sort?.direction === \"descending\" ? labels.descending : labels.ascending}</Button>\n </>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerToolbar\n * @description Data Explorer Toolbar\n */\n\nimport { DataExplorerColumnVisibility } from \"../data-explorer-column-visibility/data-explorer-column-visibility\";\nimport { DataExplorerFilterControl } from \"../data-explorer-filter-control/data-explorer-filter-control\";\nimport { DataExplorerFilters } from \"../data-explorer-filters/data-explorer-filters\";\nimport { DataExplorerSearch } from \"../data-explorer-search/data-explorer-search\";\nimport { DataExplorerSort } from \"../data-explorer-sort/data-explorer-sort\";\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { explorerLabel } from \"../shared/labels\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ReactNode } from \"react\";\n\nexport type DataExplorerToolbarProps = ExplorerPartOptions & { readonly children?: ReactNode };\n\nexport function DataExplorerToolbar({ className, children }: DataExplorerToolbarProps) {\n const { labels, filter } = useExplorer();\n if (children !== undefined) {\n return <div className={cn(explorerControlRowStyles(), className)}>{children}</div>;\n }\n return <>\n <div className={cn(explorerControlRowStyles(), className)}>\n <DataExplorerSearch label={explorerLabel(labels, \"search\")} />\n {filter && <DataExplorerFilterControl allLabel={explorerLabel(labels, \"all\")} />}\n <DataExplorerSort labels={{\n sort: explorerLabel(labels, \"sort\"), unsorted: explorerLabel(labels, \"unsorted\"),\n ascending: explorerLabel(labels, \"ascending\"), descending: explorerLabel(labels, \"descending\"),\n }} />\n </div>\n <DataExplorerColumnVisibility />\n <DataExplorerFilters />\n </>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerView\n * @description Style\n */\n\nimport { cva } from \"class-variance-authority\";\n\nexport const explorerStyles = cva(\"gridui-u-data-explorer--min-w-0 gridui-u-data-explorer--border gridui-u-data-explorer--border-border gridui-u-data-explorer--bg-background gridui-u-data-explorer--text-foreground\");\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorerView\n * @description Data Explorer View\n */\n\nimport { explorerStyles } from \"./style\";\nimport { Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef } from \"react\";\n\nexport type DataExplorerViewProps = ComponentPropsWithRef<\"section\"> & {\n readonly label: string;\n};\n\n/** Optional frame; the provider and custom controls do not depend on it. */\nexport function DataExplorerView({ label, className, children, ...rest }: DataExplorerViewProps) {\n return <section {...rest} aria-label={label} className={cn(explorerStyles(), className)}>\n <Split direction=\"column\">{children}</Split>\n </section>;\n}\n", "/**\n * @author WMXPY\n * @package Data Explorer\n * @namespace DataExplorer\n * @description Data Explorer\n */\n\nimport { DataExplorerBulkActions } from \"../data-explorer-bulk-actions/data-explorer-bulk-actions\";\nimport { DataExplorerPagination } from \"../data-explorer-pagination/data-explorer-pagination\";\nimport { DataExplorerProvider } from \"../data-explorer-provider/data-explorer-provider\";\nimport { DataExplorerTable } from \"../data-explorer-table/data-explorer-table\";\nimport { DataExplorerToolbar } from \"../data-explorer-toolbar/data-explorer-toolbar\";\nimport { DataExplorerView } from \"../data-explorer-view/data-explorer-view\";\nimport type { ExplorerOptions } from \"../shared/explorer-options\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DataExplorerProps = ComponentPropsWithRef<\"section\"> & ExplorerOptions;\n\n/** The original ready-to-use composition remains a convenience over the parts. */\nexport const DataExplorer: FC<DataExplorerProps> = (props: DataExplorerProps) => {\n const { rows, columns, state, onStateChange, filter, columnSettings, columnSizing, details, filtering,\n pageSize, selectedIds, onSelectionChange, actions, renderCell, busy, notice, labels, className, children, ...restProps } = props;\n return <DataExplorerProvider\n {...{ rows, columns, state, onStateChange, filter, columnSettings, columnSizing, details, filtering,\n pageSize, selectedIds, onSelectionChange, actions, renderCell, busy, notice, labels }}\n >\n <DataExplorerView {...restProps} label={labels.table} className={className}>\n {children ?? <>\n <DataExplorerToolbar />\n <DataExplorerBulkActions />\n <DataExplorerTable />\n <DataExplorerPagination />\n </>}\n </DataExplorerView>\n </DataExplorerProvider>;\n};\n"],
5
+ "mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,2BAA2B,IAAI,uPAAuP;;;ACmCnS,IAAM,gBAAgB,CAClB,MACA,OACA,cACS;AAET,MAAI,SAAS,QAAQ,SAAS,QAAW;AACrC,WAAO,UAAU,QAAQ,UAAU,SAAY,IAAI;AAAA,EACvD;AACA,MAAI,UAAU,QAAQ,UAAU,QAAW;AACvC,W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AExF,0BAAAA,MAAC,oBAAkB,GAAG,WAAW,OAAO,OAAO,OAAO,WACjD,sBAAY,gBAAAC,OAAAF,WAAA,EACT;AAAA,wBAAAC,MAAC,uBAAoB;AAAA,QACrB,gBAAAA,MAAC,2BAAwB;AAAA,QACzB,gBAAAA,MAAC,qBAAkB;AAAA,QACnB,gBAAAA,MAAC,0BAAuB;AAAA,SAC5B,GACJ;AAAA;AAAA,EACJ;AACJ;",
6
6
  "names": ["Button", "cn", "cva", "jsx", "jsxs", "jsx", "jsx", "Button", "Checkbox", "cn", "jsx", "jsxs", "Checkbox", "cn", "jsx", "jsxs", "cva", "cn", "jsx", "jsxs", "Button", "Select", "useId", "jsx", "jsxs", "jsx", "Input", "cn", "jsx", "jsxs", "Button", "Select", "cn", "Fragment", "jsx", "jsxs", "cn", "Fragment", "jsx", "jsxs", "cva", "Split", "cn", "jsx", "Fragment", "jsx", "jsxs"]
7
7
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace Shared
5
+ * @description Controller
6
+ */
1
7
  import type { DataExplorerOptions } from "./explorer-options";
2
8
  import { type DataExplorerState } from "./model";
3
9
  /** Derive the local dataset view without imposing a rendered composition. */
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace Shared
5
+ * @description Explorer Context
6
+ */
1
7
  import type { DataExplorerOptions } from "./explorer-options";
2
8
  export declare const useExplorerController: (options: DataExplorerOptions) => {
3
9
  tableId: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @author WMXPY
3
3
  * @package Data Explorer
4
- * @namespace DataExplorerToolbar
5
- * @description Style
4
+ * @namespace Shared
5
+ * @description Label Style
6
6
  */
7
7
  export declare const explorerLabelStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -1,2 +1,8 @@
1
+ /**
2
+ * @author WMXPY
3
+ * @package Data Explorer
4
+ * @namespace Shared
5
+ * @description Labels
6
+ */
1
7
  import type { DataExplorerLabels } from "./explorer-options";
2
8
  export declare const explorerLabel: <Key extends keyof DataExplorerLabels>(labels: Partial<DataExplorerLabels> | undefined, key: Key) => DataExplorerLabels[Key];
package/dist/styled.js ADDED
@@ -0,0 +1,8 @@
1
+ import "@gridui/button/styled";
2
+ import "@gridui/choice/styled";
3
+ import "@gridui/grid/styled";
4
+ import "@gridui/input/styled";
5
+ import "@gridui/select/styled";
6
+ import "@gridui/table/styled";
7
+ import "./styles.local.css";
8
+ export * from "./index.js";