@gridui/data-explorer 1.2.0 → 1.2.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.
- package/dist/index.js +11 -11
- package/dist/index.js.map +2 -2
- package/dist/styles.css +29 -29
- package/docs/catalog.json +1 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/shared/control-row-style.ts
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
var explorerControlRowStyles = cva("gridui-u-flex gridui-u-min-w-0 gridui-u-flex-wrap gridui-u-items-end gridui-u-gap-gridui-16 gridui-u-p-gridui-16 gridui-u-[&_label]:min-h-11");
|
|
3
|
+
var 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");
|
|
4
4
|
|
|
5
5
|
// src/shared/model.ts
|
|
6
6
|
var compareValues = (left, right, direction) => {
|
|
@@ -228,7 +228,7 @@ import { Button as Button2 } from "@gridui/button";
|
|
|
228
228
|
import { cn as cn2 } from "@gridui/style-utils";
|
|
229
229
|
import { cva as cva2 } from "class-variance-authority";
|
|
230
230
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
231
|
-
var explorerFooterStyles = cva2("gridui-u-flex gridui-u-flex-wrap gridui-u-items-center gridui-u-justify-between gridui-u-gap-gridui-8 gridui-u-p-gridui-16");
|
|
231
|
+
var explorerFooterStyles = cva2("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");
|
|
232
232
|
var DataExplorerPagination = (props) => {
|
|
233
233
|
const { busy, labels, updateState, view } = useExplorer();
|
|
234
234
|
return /* @__PURE__ */ jsxs2(
|
|
@@ -326,7 +326,7 @@ var ColumnResizeHandle = (props) => {
|
|
|
326
326
|
"aria-valuemax": max,
|
|
327
327
|
"aria-valuenow": width,
|
|
328
328
|
"aria-disabled": disabled || void 0,
|
|
329
|
-
className: "gridui-explorer-resize gridui-u-min-h-11 gridui-u-w-gridui-16 gridui-u-shrink-0 gridui-u-cursor-col-resize gridui-u-touch-none gridui-u-border-s gridui-u-border-solid gridui-u-border-border",
|
|
329
|
+
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",
|
|
330
330
|
onPointerDown: (event) => {
|
|
331
331
|
if (disabled || event.button !== 0 || !event.isPrimary || drag.current) {
|
|
332
332
|
return;
|
|
@@ -438,7 +438,7 @@ var DataExplorerTable = (props) => {
|
|
|
438
438
|
header: /* @__PURE__ */ jsxs3(
|
|
439
439
|
"div",
|
|
440
440
|
{
|
|
441
|
-
className: "gridui-u-flex gridui-u-min-w-0 gridui-u-items-center gridui-u-justify-between gridui-u-gap-gridui-8",
|
|
441
|
+
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",
|
|
442
442
|
children: [
|
|
443
443
|
/* @__PURE__ */ jsx4("span", { children: column.label }),
|
|
444
444
|
/* @__PURE__ */ jsx4(
|
|
@@ -569,7 +569,7 @@ var DataExplorerTable = (props) => {
|
|
|
569
569
|
view.rows.length === 0 && !busy && /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
|
|
570
570
|
"p",
|
|
571
571
|
{
|
|
572
|
-
className: "gridui-u-m-0 gridui-u-p-gridui-16",
|
|
572
|
+
className: "gridui-u-data-explorer--m-0 gridui-u-data-explorer--p-gridui-16",
|
|
573
573
|
children: labels.empty
|
|
574
574
|
}
|
|
575
575
|
) })
|
|
@@ -581,7 +581,7 @@ var DataExplorerTable = (props) => {
|
|
|
581
581
|
|
|
582
582
|
// src/data-explorer-toolbar/style.ts
|
|
583
583
|
import { cva as cva3 } from "class-variance-authority";
|
|
584
|
-
var explorerLabelStyles = cva3("gridui-u-flex gridui-u-min-w-0 gridui-u-flex-[1_1_10rem] gridui-u-flex-col gridui-u-gap-gridui-4 gridui-u-text-muted gridui-u-type-caption");
|
|
584
|
+
var explorerLabelStyles = cva3("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");
|
|
585
585
|
|
|
586
586
|
// src/data-explorer-toolbar/filter-editor.tsx
|
|
587
587
|
import { Button as Button4 } from "@gridui/button";
|
|
@@ -924,25 +924,25 @@ var DataExplorerToolbar = (props) => {
|
|
|
924
924
|
columnSettings && /* @__PURE__ */ jsxs5(
|
|
925
925
|
"details",
|
|
926
926
|
{
|
|
927
|
-
className: "gridui-u-p-gridui-16",
|
|
927
|
+
className: "gridui-u-data-explorer--p-gridui-16",
|
|
928
928
|
children: [
|
|
929
929
|
/* @__PURE__ */ jsx6(
|
|
930
930
|
"summary",
|
|
931
931
|
{
|
|
932
|
-
className: "gridui-u-cursor-pointer gridui-u-type-caption",
|
|
932
|
+
className: "gridui-u-data-explorer--cursor-pointer gridui-u-data-explorer--type-caption",
|
|
933
933
|
children: columnSettings.label
|
|
934
934
|
}
|
|
935
935
|
),
|
|
936
936
|
/* @__PURE__ */ jsx6(
|
|
937
937
|
"div",
|
|
938
938
|
{
|
|
939
|
-
className: "gridui-u-flex gridui-u-flex-wrap gridui-u-gap-gridui-16 gridui-u-pt-gridui-16",
|
|
939
|
+
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",
|
|
940
940
|
children: columns.map((column) => {
|
|
941
941
|
const visible = !columnSettings.hiddenKeys.includes(column.key);
|
|
942
942
|
return /* @__PURE__ */ jsxs5(
|
|
943
943
|
"label",
|
|
944
944
|
{
|
|
945
|
-
className: "gridui-u-flex gridui-u-min-h-11 gridui-u-items-center gridui-u-gap-gridui-8",
|
|
945
|
+
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",
|
|
946
946
|
children: [
|
|
947
947
|
/* @__PURE__ */ jsx6(
|
|
948
948
|
Checkbox3,
|
|
@@ -991,7 +991,7 @@ var DataExplorerToolbar = (props) => {
|
|
|
991
991
|
|
|
992
992
|
// src/data-explorer/style.ts
|
|
993
993
|
import { cva as cva4 } from "class-variance-authority";
|
|
994
|
-
var explorerStyles = cva4("gridui-u-min-w-0 gridui-u-border gridui-u-border-border gridui-u-bg-background gridui-u-text-foreground");
|
|
994
|
+
var explorerStyles = cva4("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");
|
|
995
995
|
|
|
996
996
|
// src/data-explorer/data-explorer.tsx
|
|
997
997
|
import { Split as Split2 } from "@gridui/grid";
|
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/explorer-context.ts", "../src/data-explorer-bulk-actions/data-explorer-bulk-actions.tsx", "../src/data-explorer-pagination/data-explorer-pagination.tsx", "../src/data-explorer-table/column-resize-handle.tsx", "../src/data-explorer-table/data-explorer-table.tsx", "../src/data-explorer-toolbar/style.ts", "../src/data-explorer-toolbar/filter-editor.tsx", "../src/data-explorer-toolbar/data-explorer-toolbar.tsx", "../src/data-explorer/style.ts", "../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-flex gridui-u-min-w-0 gridui-u-flex-wrap gridui-u-items-end gridui-u-gap-gridui-16 gridui-u-p-gridui-16 gridui-u-[&_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 Explorer Context\n */\n\nimport type { ExplorerOptions } from \"./explorer-options\";\nimport { type DataExplorerState, selectExplorerRows } from \"./model\";\nimport { createContext, useContext, useId } from \"react\";\n\nexport const useExplorerController = (options: ExplorerOptions) => {\n const { rows, columns, state, onStateChange, filter, pageSize = 10, selectedIds = [], busy = false, columnSettings } = options;\n const tableId = useId();\n const view = selectExplorerRows(rows, columns, state, pageSize, filter);\n const existingRowIds = new Set(rows.map(row => {\n return row.id;\n }));\n const selectedRowIds = [...new Set(selectedIds)].filter(id => {\n return existingRowIds.has(id);\n });\n const pageIds = view.rows.map(row => {\n return row.id;\n });\n const selectedPageCount = pageIds.filter(id => {\n return selectedRowIds.includes(id);\n }).length;\n const updateState = (changes: Partial<DataExplorerState>) => {\n if (!busy) {\n onStateChange({\n ...state,\n ...changes,\n });\n }\n };\n const visibleColumns = columns.filter(column => {\n return !columnSettings?.hiddenKeys.includes(column.key);\n });\n if (columns.length > 0 && visibleColumns.length === 0) {\n throw new RangeError(\"DataExplorer needs at least one visible column.\");\n }\n\n return {\n ...options,\n busy,\n tableId,\n view,\n selectedRowIds,\n pageIds,\n selectedPageCount,\n updateState,\n visibleColumns,\n };\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 DataExplorer.\");\n }\n return explorer;\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 { ExplorerPartOptions } from \"../shared/explorer-options\";\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\nexport const DataExplorerBulkActions: FC<DataExplorerBulkActionsProps> = (props: DataExplorerBulkActionsProps) => {\n const { actions = [], busy, labels, onSelectionChange, pageIds, selectedPageCount, selectedRowIds } = useExplorer();\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 {labels.selectPage}\n </label>\n <span\n role=\"status\"\n >\n {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 { ExplorerPartOptions } from \"../shared/explorer-options\";\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\nconst explorerFooterStyles = cva(\"gridui-u-flex gridui-u-flex-wrap gridui-u-items-center gridui-u-justify-between gridui-u-gap-gridui-8 gridui-u-p-gridui-16\");\n\nexport const DataExplorerPagination: FC<DataExplorerPaginationProps> = (props: DataExplorerPaginationProps) => {\n const { busy, labels, updateState, view } = useExplorer();\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 {labels.previous}\n </Button>\n <span\n role=\"status\"\n >\n {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 {labels.next}\n </Button>\n </div>);\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, listenForDragCancellation } from \"@gridui/interaction\";\nimport { type FC, useEffect, useLayoutEffect, useRef } 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 handle = useRef<HTMLDivElement>(null);\n const drag = useRef<{\n readonly pointer: number;\n readonly x: number;\n readonly width: number;\n readonly direction: number;\n readonly cleanup: () => void;\n } | null>(null);\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 cancelDrag = () => {\n const current = drag.current;\n drag.current = null;\n if (current) {\n current.cleanup();\n change(current.width);\n if (handle.current?.hasPointerCapture(current.pointer)) {\n handle.current.releasePointerCapture(current.pointer);\n }\n }\n };\n const cancelLatest = useRef(cancelDrag);\n useLayoutEffect(() => {\n cancelLatest.current = cancelDrag;\n });\n useEffect(() => {\n if (disabled) {\n cancelLatest.current();\n }\n }, [disabled]);\n useEffect(() => {\n const element = handle.current;\n return () => {\n const current = drag.current;\n drag.current = null;\n current?.cleanup();\n if (current && element?.hasPointerCapture(current.pointer)) {\n element.releasePointerCapture(current.pointer);\n }\n };\n }, []);\n return (<div\n ref={handle}\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-min-h-11 gridui-u-w-gridui-16 gridui-u-shrink-0 gridui-u-cursor-col-resize gridui-u-touch-none gridui-u-border-s gridui-u-border-solid gridui-u-border-border\"\n onPointerDown={(event) => {\n if (disabled || event.button !== 0 || !event.isPrimary || drag.current) {\n return;\n }\n event.preventDefault();\n event.currentTarget.focus();\n drag.current = {\n pointer: event.pointerId,\n x: event.clientX,\n width,\n direction: getComputedStyle(event.currentTarget).direction === \"rtl\" ? -1 : 1,\n cleanup: listenForDragCancellation(event.currentTarget, () => {\n cancelLatest.current();\n }),\n };\n event.currentTarget.setPointerCapture(event.pointerId);\n }}\n onPointerMove={(event) => {\n const current = drag.current;\n if (!disabled && current?.pointer === event.pointerId) {\n change(current.width + (event.clientX - current.x) * current.direction);\n }\n }}\n onPointerUp={(event) => {\n if (drag.current?.pointer === event.pointerId) {\n const current = drag.current;\n drag.current = null;\n current.cleanup();\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n }\n }}\n onPointerCancel={(event) => {\n if (drag.current?.pointer === event.pointerId) {\n cancelDrag();\n }\n }}\n onLostPointerCapture={(event) => {\n if (drag.current?.pointer === event.pointerId) {\n cancelDrag();\n }\n }}\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 { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { type DataExplorerRow, resolveExplorerWidth, selectExplorerPage } from \"../shared/model\";\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 } from \"@gridui/table\";\nimport { Children, type FC } from \"react\";\n\nexport type DataExplorerTableProps = ExplorerPartOptions;\n\nexport const DataExplorerTable: FC<DataExplorerTableProps> = (props: DataExplorerTableProps) => {\n const { busy, columnSizing, details, labels, notice, onSelectionChange, renderCell, selectedRowIds, tableId, view, visibleColumns } = useExplorer();\n const hasNotice = Children.toArray(notice).some(child => {\n return child !== \"\";\n });\n const fixedWidths = columnSizing !== undefined || visibleColumns.some(column => {\n return column.width !== undefined || column.sticky !== undefined;\n });\n const widths = visibleColumns.map(column => {\n return resolveExplorerWidth(column, columnSizing?.widths[column.key] ?? column.width);\n });\n const tableColumns: DataTableColumn[] = visibleColumns.map((column, index) => {\n const width = widths[index]!;\n const stickyOffset = visibleColumns.reduce((offset, current, currentIndex) => {\n return current.sticky === column.sticky && (column.sticky === \"start\" ? currentIndex < index : currentIndex > index) ? offset + widths[currentIndex]! : offset;\n }, 0);\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-flex gridui-u-min-w-0 gridui-u-items-center gridui-u-justify-between gridui-u-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: labels.selection,\n ...(fixedWidths ? { sizing: { width: 56 } } : {}),\n });\n }\n if (details) {\n tableColumns.unshift({\n key: \"control:details\",\n label: details.columnLabel,\n ...(fixedWidths ? { sizing: { width: 96 } } : {}),\n });\n }\n const tableWidth = widths.reduce((total, width) => {\n return total + width;\n }, 0) + (onSelectionChange ? 56 : 0) + (details ? 96 : 0);\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={labels.selectRow(row)}\n checked={selectedRowIds.includes(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 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(props.className)}\n >\n <div>\n <DataTable\n label={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-m-0 gridui-u-p-gridui-16\"\n >\n {labels.empty}\n </p>\n </div>)}\n </Split>\n </>);\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-flex gridui-u-min-w-0 gridui-u-flex-[1_1_10rem] gridui-u-flex-col gridui-u-gap-gridui-4 gridui-u-text-muted gridui-u-type-caption\");\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 \"./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 DataExplorerToolbar\n * @description Data Explorer Toolbar\n */\n\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { FilterEditor } from \"./filter-editor\";\nimport { explorerLabelStyles } from \"./style\";\nimport { Button } from \"@gridui/button\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { Input } from \"@gridui/input\";\nimport { Select } from \"@gridui/select\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type DataExplorerToolbarProps = ExplorerPartOptions;\n\nexport const DataExplorerToolbar: FC<DataExplorerToolbarProps> = (props: DataExplorerToolbarProps) => {\n const { busy, columnSettings, columns, filter, filtering, labels, state, updateState, visibleColumns } = useExplorer();\n return (<>\n <div\n className={cn(explorerControlRowStyles(), props.className)}\n >\n <label\n className={explorerLabelStyles()}\n >\n {labels.search}\n <Input\n type=\"search\"\n value={state.query}\n disabled={busy}\n onValueChange={query => {\n updateState({\n query,\n page: 0,\n });\n }}\n />\n </label>\n {filter && (<label\n className={explorerLabelStyles()}\n >\n {filter.label}\n <Select\n aria-label={filter.label}\n value={state.filterValue}\n disabled={busy}\n options={[\n {\n value: \"\",\n label: labels.all,\n },\n ...filter.options,\n ]}\n onValueChange={filterValue => {\n updateState({\n filterValue,\n page: 0,\n });\n }}\n />\n </label>)}\n <label\n className={explorerLabelStyles()}\n >\n {labels.sort}\n <Select\n aria-label={labels.sort}\n value={state.sort?.key ?? \"\"}\n disabled={busy}\n options={[\n {\n value: \"\",\n label: labels.unsorted,\n },\n ...columns.map(column => {\n return {\n value: column.key,\n label: column.label,\n };\n }),\n ]}\n onValueChange={key => {\n updateState({\n sort: key ? {\n key,\n direction: \"ascending\",\n } : null,\n page: 0,\n });\n }}\n />\n </label>\n <Button\n variant=\"secondary\"\n disabled={busy || !state.sort}\n onClick={() => {\n if (state.sort) {\n updateState({\n sort: {\n ...state.sort,\n direction: state.sort.direction === \"ascending\" ? \"descending\" : \"ascending\",\n },\n page: 0,\n });\n }\n }}\n >\n {state.sort?.direction === \"descending\" ? labels.descending : labels.ascending}\n </Button>\n </div>\n {columnSettings && (<details\n className=\"gridui-u-p-gridui-16\"\n >\n <summary\n className=\"gridui-u-cursor-pointer gridui-u-type-caption\"\n >\n {columnSettings.label}\n </summary>\n <div\n className=\"gridui-u-flex gridui-u-flex-wrap gridui-u-gap-gridui-16 gridui-u-pt-gridui-16\"\n >\n {columns.map(column => {\n const visible = !columnSettings.hiddenKeys.includes(column.key);\n return (<label\n key={column.key}\n className=\"gridui-u-flex gridui-u-min-h-11 gridui-u-items-center gridui-u-gap-gridui-8\"\n >\n <Checkbox\n checked={visible}\n disabled={busy || (visible && visibleColumns.length === 1)}\n onCheckedChange={(checked) => {\n columnSettings.onHiddenKeysChange(checked ? columnSettings.hiddenKeys.filter(key => {\n return key !== column.key;\n }) : [\n ...new Set([\n ...columnSettings.hiddenKeys,\n column.key,\n ]),\n ]);\n }}\n />\n {column.label}\n </label>);\n })}\n </div>\n </details>)}\n {filtering && (<FilterEditor\n filtering={filtering}\n conditions={state.filters ?? []}\n disabled={busy}\n onChange={(filters) => {\n updateState({\n filters,\n page: 0,\n });\n }}\n />)}\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-min-w-0 gridui-u-border gridui-u-border-border gridui-u-bg-background gridui-u-text-foreground\");\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 { DataExplorerTable } from \"../data-explorer-table/data-explorer-table\";\nimport { DataExplorerToolbar } from \"../data-explorer-toolbar/data-explorer-toolbar\";\nimport { explorerContext, useExplorerController } from \"../shared/explorer-context\";\nimport type { ExplorerOptions } from \"../shared/explorer-options\";\nimport { explorerStyles } from \"./style\";\nimport { Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DataExplorerProps = ComponentPropsWithRef<\"section\"> & ExplorerOptions;\n\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 const explorer = useExplorerController({\n rows,\n columns,\n state,\n onStateChange,\n filter,\n columnSettings,\n columnSizing,\n details,\n filtering,\n pageSize,\n selectedIds,\n onSelectionChange,\n actions,\n renderCell,\n busy,\n notice,\n labels,\n });\n return (<explorerContext.Provider\n value={explorer}\n >\n <section\n {...restProps}\n aria-label={labels.table}\n className={cn(explorerStyles(), className)}\n >\n <Split\n direction=\"column\"\n >\n {children ?? (<>\n <DataExplorerToolbar />\n <DataExplorerBulkActions />\n <DataExplorerTable />\n <DataExplorerPagination />\n </>)}\n </Split>\n </section>\n </explorerContext.Provider>);\n};\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,WAAW;AAEb,IAAM,2BAA2B,IAAI,8IAA8I;;;ACmC1L,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,aAAa;AACjB,MAAI,OAAO,SAAS,YAAY,OAAO,UAAU,UAAU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A;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,CAAC;AACD,SAAQ,gBAAAD;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACL,OAAO;AAAA,MAEP,0BAAAA;AAAA,QAAC;AAAA;AAAA,UACI,GAAG;AAAA,UACJ,cAAY,OAAO;AAAA,UACnB,WAAWF,IAAG,eAAe,GAAG,SAAS;AAAA,UAEzC,0BAAAE;AAAA,YAACH;AAAA,YAAA;AAAA,cACG,WAAU;AAAA,cAET,sBAAa,gBAAAI,MAAAF,WAAA,EACV;AAAA,gCAAAC,KAAC,uBAAoB;AAAA,gBACrB,gBAAAA,KAAC,2BAAwB;AAAA,gBACzB,gBAAAA,KAAC,qBAAkB;AAAA,gBACnB,gBAAAA,KAAC,0BAAuB;AAAA,iBAC5B;AAAA;AAAA,UACJ;AAAA;AAAA,MACJ;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 Explorer Context\n */\n\nimport type { ExplorerOptions } from \"./explorer-options\";\nimport { type DataExplorerState, selectExplorerRows } from \"./model\";\nimport { createContext, useContext, useId } from \"react\";\n\nexport const useExplorerController = (options: ExplorerOptions) => {\n const { rows, columns, state, onStateChange, filter, pageSize = 10, selectedIds = [], busy = false, columnSettings } = options;\n const tableId = useId();\n const view = selectExplorerRows(rows, columns, state, pageSize, filter);\n const existingRowIds = new Set(rows.map(row => {\n return row.id;\n }));\n const selectedRowIds = [...new Set(selectedIds)].filter(id => {\n return existingRowIds.has(id);\n });\n const pageIds = view.rows.map(row => {\n return row.id;\n });\n const selectedPageCount = pageIds.filter(id => {\n return selectedRowIds.includes(id);\n }).length;\n const updateState = (changes: Partial<DataExplorerState>) => {\n if (!busy) {\n onStateChange({\n ...state,\n ...changes,\n });\n }\n };\n const visibleColumns = columns.filter(column => {\n return !columnSettings?.hiddenKeys.includes(column.key);\n });\n if (columns.length > 0 && visibleColumns.length === 0) {\n throw new RangeError(\"DataExplorer needs at least one visible column.\");\n }\n\n return {\n ...options,\n busy,\n tableId,\n view,\n selectedRowIds,\n pageIds,\n selectedPageCount,\n updateState,\n visibleColumns,\n };\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 DataExplorer.\");\n }\n return explorer;\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 { ExplorerPartOptions } from \"../shared/explorer-options\";\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\nexport const DataExplorerBulkActions: FC<DataExplorerBulkActionsProps> = (props: DataExplorerBulkActionsProps) => {\n const { actions = [], busy, labels, onSelectionChange, pageIds, selectedPageCount, selectedRowIds } = useExplorer();\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 {labels.selectPage}\n </label>\n <span\n role=\"status\"\n >\n {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 { ExplorerPartOptions } from \"../shared/explorer-options\";\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\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, updateState, view } = useExplorer();\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 {labels.previous}\n </Button>\n <span\n role=\"status\"\n >\n {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 {labels.next}\n </Button>\n </div>);\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, listenForDragCancellation } from \"@gridui/interaction\";\nimport { type FC, useEffect, useLayoutEffect, useRef } 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 handle = useRef<HTMLDivElement>(null);\n const drag = useRef<{\n readonly pointer: number;\n readonly x: number;\n readonly width: number;\n readonly direction: number;\n readonly cleanup: () => void;\n } | null>(null);\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 cancelDrag = () => {\n const current = drag.current;\n drag.current = null;\n if (current) {\n current.cleanup();\n change(current.width);\n if (handle.current?.hasPointerCapture(current.pointer)) {\n handle.current.releasePointerCapture(current.pointer);\n }\n }\n };\n const cancelLatest = useRef(cancelDrag);\n useLayoutEffect(() => {\n cancelLatest.current = cancelDrag;\n });\n useEffect(() => {\n if (disabled) {\n cancelLatest.current();\n }\n }, [disabled]);\n useEffect(() => {\n const element = handle.current;\n return () => {\n const current = drag.current;\n drag.current = null;\n current?.cleanup();\n if (current && element?.hasPointerCapture(current.pointer)) {\n element.releasePointerCapture(current.pointer);\n }\n };\n }, []);\n return (<div\n ref={handle}\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 || event.button !== 0 || !event.isPrimary || drag.current) {\n return;\n }\n event.preventDefault();\n event.currentTarget.focus();\n drag.current = {\n pointer: event.pointerId,\n x: event.clientX,\n width,\n direction: getComputedStyle(event.currentTarget).direction === \"rtl\" ? -1 : 1,\n cleanup: listenForDragCancellation(event.currentTarget, () => {\n cancelLatest.current();\n }),\n };\n event.currentTarget.setPointerCapture(event.pointerId);\n }}\n onPointerMove={(event) => {\n const current = drag.current;\n if (!disabled && current?.pointer === event.pointerId) {\n change(current.width + (event.clientX - current.x) * current.direction);\n }\n }}\n onPointerUp={(event) => {\n if (drag.current?.pointer === event.pointerId) {\n const current = drag.current;\n drag.current = null;\n current.cleanup();\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n }\n }}\n onPointerCancel={(event) => {\n if (drag.current?.pointer === event.pointerId) {\n cancelDrag();\n }\n }}\n onLostPointerCapture={(event) => {\n if (drag.current?.pointer === event.pointerId) {\n cancelDrag();\n }\n }}\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 { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { type DataExplorerRow, resolveExplorerWidth, selectExplorerPage } from \"../shared/model\";\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 } from \"@gridui/table\";\nimport { Children, type FC } from \"react\";\n\nexport type DataExplorerTableProps = ExplorerPartOptions;\n\nexport const DataExplorerTable: FC<DataExplorerTableProps> = (props: DataExplorerTableProps) => {\n const { busy, columnSizing, details, labels, notice, onSelectionChange, renderCell, selectedRowIds, tableId, view, visibleColumns } = useExplorer();\n const hasNotice = Children.toArray(notice).some(child => {\n return child !== \"\";\n });\n const fixedWidths = columnSizing !== undefined || visibleColumns.some(column => {\n return column.width !== undefined || column.sticky !== undefined;\n });\n const widths = visibleColumns.map(column => {\n return resolveExplorerWidth(column, columnSizing?.widths[column.key] ?? column.width);\n });\n const tableColumns: DataTableColumn[] = visibleColumns.map((column, index) => {\n const width = widths[index]!;\n const stickyOffset = visibleColumns.reduce((offset, current, currentIndex) => {\n return current.sticky === column.sticky && (column.sticky === \"start\" ? currentIndex < index : currentIndex > index) ? offset + widths[currentIndex]! : offset;\n }, 0);\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: labels.selection,\n ...(fixedWidths ? { sizing: { width: 56 } } : {}),\n });\n }\n if (details) {\n tableColumns.unshift({\n key: \"control:details\",\n label: details.columnLabel,\n ...(fixedWidths ? { sizing: { width: 96 } } : {}),\n });\n }\n const tableWidth = widths.reduce((total, width) => {\n return total + width;\n }, 0) + (onSelectionChange ? 56 : 0) + (details ? 96 : 0);\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={labels.selectRow(row)}\n checked={selectedRowIds.includes(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 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(props.className)}\n >\n <div>\n <DataTable\n label={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 {labels.empty}\n </p>\n </div>)}\n </Split>\n </>);\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", "/**\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 \"./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 DataExplorerToolbar\n * @description Data Explorer Toolbar\n */\n\nimport { explorerControlRowStyles } from \"../shared/control-row-style\";\nimport { useExplorer } from \"../shared/explorer-context\";\nimport type { ExplorerPartOptions } from \"../shared/explorer-options\";\nimport { FilterEditor } from \"./filter-editor\";\nimport { explorerLabelStyles } from \"./style\";\nimport { Button } from \"@gridui/button\";\nimport { Checkbox } from \"@gridui/choice\";\nimport { Input } from \"@gridui/input\";\nimport { Select } from \"@gridui/select\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { FC } from \"react\";\n\nexport type DataExplorerToolbarProps = ExplorerPartOptions;\n\nexport const DataExplorerToolbar: FC<DataExplorerToolbarProps> = (props: DataExplorerToolbarProps) => {\n const { busy, columnSettings, columns, filter, filtering, labels, state, updateState, visibleColumns } = useExplorer();\n return (<>\n <div\n className={cn(explorerControlRowStyles(), props.className)}\n >\n <label\n className={explorerLabelStyles()}\n >\n {labels.search}\n <Input\n type=\"search\"\n value={state.query}\n disabled={busy}\n onValueChange={query => {\n updateState({\n query,\n page: 0,\n });\n }}\n />\n </label>\n {filter && (<label\n className={explorerLabelStyles()}\n >\n {filter.label}\n <Select\n aria-label={filter.label}\n value={state.filterValue}\n disabled={busy}\n options={[\n {\n value: \"\",\n label: labels.all,\n },\n ...filter.options,\n ]}\n onValueChange={filterValue => {\n updateState({\n filterValue,\n page: 0,\n });\n }}\n />\n </label>)}\n <label\n className={explorerLabelStyles()}\n >\n {labels.sort}\n <Select\n aria-label={labels.sort}\n value={state.sort?.key ?? \"\"}\n disabled={busy}\n options={[\n {\n value: \"\",\n label: labels.unsorted,\n },\n ...columns.map(column => {\n return {\n value: column.key,\n label: column.label,\n };\n }),\n ]}\n onValueChange={key => {\n updateState({\n sort: key ? {\n key,\n direction: \"ascending\",\n } : null,\n page: 0,\n });\n }}\n />\n </label>\n <Button\n variant=\"secondary\"\n disabled={busy || !state.sort}\n onClick={() => {\n if (state.sort) {\n updateState({\n sort: {\n ...state.sort,\n direction: state.sort.direction === \"ascending\" ? \"descending\" : \"ascending\",\n },\n page: 0,\n });\n }\n }}\n >\n {state.sort?.direction === \"descending\" ? labels.descending : labels.ascending}\n </Button>\n </div>\n {columnSettings && (<details\n className=\"gridui-u-data-explorer--p-gridui-16\"\n >\n <summary\n className=\"gridui-u-data-explorer--cursor-pointer gridui-u-data-explorer--type-caption\"\n >\n {columnSettings.label}\n </summary>\n <div\n 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 >\n {columns.map(column => {\n const visible = !columnSettings.hiddenKeys.includes(column.key);\n return (<label\n key={column.key}\n 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 >\n <Checkbox\n checked={visible}\n disabled={busy || (visible && visibleColumns.length === 1)}\n onCheckedChange={(checked) => {\n columnSettings.onHiddenKeysChange(checked ? columnSettings.hiddenKeys.filter(key => {\n return key !== column.key;\n }) : [\n ...new Set([\n ...columnSettings.hiddenKeys,\n column.key,\n ]),\n ]);\n }}\n />\n {column.label}\n </label>);\n })}\n </div>\n </details>)}\n {filtering && (<FilterEditor\n filtering={filtering}\n conditions={state.filters ?? []}\n disabled={busy}\n onChange={(filters) => {\n updateState({\n filters,\n page: 0,\n });\n }}\n />)}\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", "/**\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 { DataExplorerTable } from \"../data-explorer-table/data-explorer-table\";\nimport { DataExplorerToolbar } from \"../data-explorer-toolbar/data-explorer-toolbar\";\nimport { explorerContext, useExplorerController } from \"../shared/explorer-context\";\nimport type { ExplorerOptions } from \"../shared/explorer-options\";\nimport { explorerStyles } from \"./style\";\nimport { Split } from \"@gridui/grid\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DataExplorerProps = ComponentPropsWithRef<\"section\"> & ExplorerOptions;\n\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 const explorer = useExplorerController({\n rows,\n columns,\n state,\n onStateChange,\n filter,\n columnSettings,\n columnSizing,\n details,\n filtering,\n pageSize,\n selectedIds,\n onSelectionChange,\n actions,\n renderCell,\n busy,\n notice,\n labels,\n });\n return (<explorerContext.Provider\n value={explorer}\n >\n <section\n {...restProps}\n aria-label={labels.table}\n className={cn(explorerStyles(), className)}\n >\n <Split\n direction=\"column\"\n >\n {children ?? (<>\n <DataExplorerToolbar />\n <DataExplorerBulkActions />\n <DataExplorerTable />\n <DataExplorerPagination />\n </>)}\n </Split>\n </section>\n </explorerContext.Provider>);\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,aAAa;AACjB,MAAI,OAAO,SAAS,YAAY,OAAO,UAAU,UAAU;AACvD,iBAAa,OAAO;AAAA,EACxB,WAAW,OAAO,IAAI,IAAI,OAAO,KAAK,GAAG;AACrC,iBAAa;AAAA,EACjB,WAAW,OAAO,IAAI,IAAI,OAAO,KAAK,GAAG;AACrC,iBAAa;AAAA,EACjB;AACA,SAAO,cAAc,cAAc,aAAa,CAAC;AACrD;AAEO,IAAM,qBAAqB,CAC9B,MACA,SACA,OACA,UACA,WACC;AACD,QAAM,gBAAgB,OAAO,UAAU,QAAQ,KAAK,WAAW;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;AAAA,YAAA;AAAA,cACG,WAAU;AAAA,cAET,sBAAa,gBAAAI,MAAAF,WAAA,EACV;AAAA,gCAAAC,KAAC,uBAAoB;AAAA,gBACrB,gBAAAA,KAAC,2BAAwB;AAAA,gBACzB,gBAAAA,KAAC,qBAAkB;AAAA,gBACnB,gBAAAA,KAAC,0BAAuB;AAAA,iBAC5B;AAAA;AAAA,UACJ;AAAA;AAAA,MACJ;AAAA;AAAA,EACJ;AACJ;",
|
|
6
6
|
"names": ["Button", "cn", "cva", "jsx", "jsxs", "jsx", "Button", "Checkbox", "cn", "jsx", "jsxs", "cva", "Button", "useId", "useRef", "jsx", "jsxs", "Button", "Checkbox", "Input", "Select", "cn", "Fragment", "jsx", "jsxs", "cva", "Split", "cn", "Fragment", "jsx", "jsxs"]
|
|
7
7
|
}
|
package/dist/styles.css
CHANGED
|
@@ -7,95 +7,95 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
@layer utilities {
|
|
10
|
-
.gridui-u-m-0 {
|
|
10
|
+
.gridui-u-data-explorer--m-0 {
|
|
11
11
|
margin: 0px;
|
|
12
12
|
}
|
|
13
|
-
.gridui-u-flex {
|
|
13
|
+
.gridui-u-data-explorer--flex {
|
|
14
14
|
display: flex;
|
|
15
15
|
}
|
|
16
|
-
.gridui-u-min-h-11 {
|
|
16
|
+
.gridui-u-data-explorer--min-h-11 {
|
|
17
17
|
min-height: calc(var(--spacing) * 11);
|
|
18
18
|
}
|
|
19
|
-
.gridui-u-w-gridui-16 {
|
|
19
|
+
.gridui-u-data-explorer--w-gridui-16 {
|
|
20
20
|
width: var(--gridui-space-16);
|
|
21
21
|
}
|
|
22
|
-
.gridui-u-min-w-0 {
|
|
22
|
+
.gridui-u-data-explorer--min-w-0 {
|
|
23
23
|
min-width: 0px;
|
|
24
24
|
}
|
|
25
|
-
.gridui-u-flex-\[1_1_10rem\] {
|
|
25
|
+
.gridui-u-data-explorer--flex-\[1_1_10rem\] {
|
|
26
26
|
flex: 1 1 10rem;
|
|
27
27
|
}
|
|
28
|
-
.gridui-u-shrink-0 {
|
|
28
|
+
.gridui-u-data-explorer--shrink-0 {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
}
|
|
31
|
-
.gridui-u-cursor-col-resize {
|
|
31
|
+
.gridui-u-data-explorer--cursor-col-resize {
|
|
32
32
|
cursor: col-resize;
|
|
33
33
|
}
|
|
34
|
-
.gridui-u-cursor-pointer {
|
|
34
|
+
.gridui-u-data-explorer--cursor-pointer {
|
|
35
35
|
cursor: pointer;
|
|
36
36
|
}
|
|
37
|
-
.gridui-u-touch-none {
|
|
37
|
+
.gridui-u-data-explorer--touch-none {
|
|
38
38
|
touch-action: none;
|
|
39
39
|
}
|
|
40
|
-
.gridui-u-flex-col {
|
|
40
|
+
.gridui-u-data-explorer--flex-col {
|
|
41
41
|
flex-direction: column;
|
|
42
42
|
}
|
|
43
|
-
.gridui-u-flex-wrap {
|
|
43
|
+
.gridui-u-data-explorer--flex-wrap {
|
|
44
44
|
flex-wrap: wrap;
|
|
45
45
|
}
|
|
46
|
-
.gridui-u-items-center {
|
|
46
|
+
.gridui-u-data-explorer--items-center {
|
|
47
47
|
align-items: center;
|
|
48
48
|
}
|
|
49
|
-
.gridui-u-items-end {
|
|
49
|
+
.gridui-u-data-explorer--items-end {
|
|
50
50
|
align-items: flex-end;
|
|
51
51
|
}
|
|
52
|
-
.gridui-u-justify-between {
|
|
52
|
+
.gridui-u-data-explorer--justify-between {
|
|
53
53
|
justify-content: space-between;
|
|
54
54
|
}
|
|
55
|
-
.gridui-u-gap-gridui-4 {
|
|
55
|
+
.gridui-u-data-explorer--gap-gridui-4 {
|
|
56
56
|
gap: var(--gridui-space-4);
|
|
57
57
|
}
|
|
58
|
-
.gridui-u-gap-gridui-8 {
|
|
58
|
+
.gridui-u-data-explorer--gap-gridui-8 {
|
|
59
59
|
gap: var(--gridui-space-8);
|
|
60
60
|
}
|
|
61
|
-
.gridui-u-gap-gridui-16 {
|
|
61
|
+
.gridui-u-data-explorer--gap-gridui-16 {
|
|
62
62
|
gap: var(--gridui-space-16);
|
|
63
63
|
}
|
|
64
|
-
.gridui-u-border {
|
|
64
|
+
.gridui-u-data-explorer--border {
|
|
65
65
|
border-style: var(--tw-border-style);
|
|
66
66
|
border-width: 1px;
|
|
67
67
|
}
|
|
68
|
-
.gridui-u-border-s {
|
|
68
|
+
.gridui-u-data-explorer--border-s {
|
|
69
69
|
border-inline-start-style: var(--tw-border-style);
|
|
70
70
|
border-inline-start-width: 1px;
|
|
71
71
|
}
|
|
72
|
-
.gridui-u-border-solid {
|
|
72
|
+
.gridui-u-data-explorer--border-solid {
|
|
73
73
|
--tw-border-style: solid;
|
|
74
74
|
border-style: solid;
|
|
75
75
|
}
|
|
76
|
-
.gridui-u-border-border {
|
|
76
|
+
.gridui-u-data-explorer--border-border {
|
|
77
77
|
border-color: var(--gridui-border);
|
|
78
78
|
}
|
|
79
|
-
.gridui-u-bg-background {
|
|
79
|
+
.gridui-u-data-explorer--bg-background {
|
|
80
80
|
background-color: var(--gridui-background);
|
|
81
81
|
}
|
|
82
|
-
.gridui-u-p-gridui-16 {
|
|
82
|
+
.gridui-u-data-explorer--p-gridui-16 {
|
|
83
83
|
padding: var(--gridui-space-16);
|
|
84
84
|
}
|
|
85
|
-
.gridui-u-pt-gridui-16 {
|
|
85
|
+
.gridui-u-data-explorer--pt-gridui-16 {
|
|
86
86
|
padding-top: var(--gridui-space-16);
|
|
87
87
|
}
|
|
88
|
-
.gridui-u-type-caption {
|
|
88
|
+
.gridui-u-data-explorer--type-caption {
|
|
89
89
|
font: var(--gridui-type-caption);
|
|
90
90
|
letter-spacing: normal;
|
|
91
91
|
}
|
|
92
|
-
.gridui-u-text-foreground {
|
|
92
|
+
.gridui-u-data-explorer--text-foreground {
|
|
93
93
|
color: var(--gridui-foreground);
|
|
94
94
|
}
|
|
95
|
-
.gridui-u-text-muted {
|
|
95
|
+
.gridui-u-data-explorer--text-muted {
|
|
96
96
|
color: var(--gridui-muted);
|
|
97
97
|
}
|
|
98
|
-
.gridui-u
|
|
98
|
+
.gridui-u-data-explorer--\[\&_label\]\:min-h-11 label {
|
|
99
99
|
min-height: calc(var(--spacing) * 11);
|
|
100
100
|
}
|
|
101
101
|
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/data-explorer",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"category": "dashboard",
|
|
6
6
|
"description": "GridUI React data explorer",
|
|
7
7
|
"usage": "DataExplorer, Composer, and ApprovalPanel belong to Dashboard because they coordinate multiple lower-package contracts. See task workspace compositions for controlled state, callbacks, and application responsibilities.",
|
|
@@ -128,7 +128,6 @@
|
|
|
128
128
|
"@gridui/grid/styles.css",
|
|
129
129
|
"@gridui/overlay/styles.css",
|
|
130
130
|
"@gridui/input/styles.css",
|
|
131
|
-
"@gridui/dropdown-menu/styles.css",
|
|
132
131
|
"@gridui/select/styles.css",
|
|
133
132
|
"@gridui/table/styles.css",
|
|
134
133
|
"@gridui/data-explorer/styles.css"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/data-explorer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "GridUI React data explorer",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
"react-dom": "^19.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@gridui/button": "^
|
|
31
|
-
"@gridui/choice": "^1.2.
|
|
32
|
-
"@gridui/grid": "^2.3.
|
|
33
|
-
"@gridui/input": "^
|
|
30
|
+
"@gridui/button": "^4.0.0",
|
|
31
|
+
"@gridui/choice": "^1.2.4",
|
|
32
|
+
"@gridui/grid": "^2.3.6",
|
|
33
|
+
"@gridui/input": "^2.0.0",
|
|
34
34
|
"@gridui/interaction": "^1.2.1",
|
|
35
|
-
"@gridui/select": "^1.1.
|
|
36
|
-
"@gridui/style-utils": "^
|
|
37
|
-
"@gridui/table": "^2.0.
|
|
35
|
+
"@gridui/select": "^1.1.2",
|
|
36
|
+
"@gridui/style-utils": "^3.0.0",
|
|
37
|
+
"@gridui/table": "^2.0.1",
|
|
38
38
|
"@gridui/theme": "^2.5.3",
|
|
39
39
|
"class-variance-authority": "0.7.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
43
|
-
"@gridui/inline-notice": "1.0.
|
|
43
|
+
"@gridui/inline-notice": "1.0.6",
|
|
44
44
|
"@jest/globals": "30.5.2",
|
|
45
45
|
"@storybook/react-vite": "10.6.6",
|
|
46
46
|
"@types/jest": "30.0.0",
|