@gemologic/sheen-table 0.1.0-rc.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.
Files changed (106) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +19 -0
  3. package/dist/DataTable.d.ts +159 -0
  4. package/dist/DataTable.js +2724 -0
  5. package/dist/DataTableToolbar.d.ts +28 -0
  6. package/dist/DataTableToolbar.js +132 -0
  7. package/dist/FilterBar.d.ts +24 -0
  8. package/dist/FilterBar.js +681 -0
  9. package/dist/QueryBuilder.d.ts +11 -0
  10. package/dist/QueryBuilder.js +693 -0
  11. package/dist/cell-edit.d.ts +50 -0
  12. package/dist/cell-edit.js +178 -0
  13. package/dist/client-state.d.ts +28 -0
  14. package/dist/client-state.js +57 -0
  15. package/dist/client-view.d.ts +31 -0
  16. package/dist/client-view.js +30 -0
  17. package/dist/column-layout.d.ts +10 -0
  18. package/dist/column-layout.js +34 -0
  19. package/dist/columns.d.ts +108 -0
  20. package/dist/columns.js +217 -0
  21. package/dist/core.d.ts +54 -0
  22. package/dist/core.js +28 -0
  23. package/dist/export.d.ts +14 -0
  24. package/dist/export.js +27 -0
  25. package/dist/facets.d.ts +15 -0
  26. package/dist/facets.js +41 -0
  27. package/dist/filter-bar-state.d.ts +22 -0
  28. package/dist/filter-bar-state.js +128 -0
  29. package/dist/filter-client.d.ts +9 -0
  30. package/dist/filter-client.js +69 -0
  31. package/dist/filter.d.ts +64 -0
  32. package/dist/filter.js +132 -0
  33. package/dist/grouping.d.ts +37 -0
  34. package/dist/grouping.js +126 -0
  35. package/dist/index.d.ts +7 -0
  36. package/dist/index.js +31 -0
  37. package/dist/messages.d.ts +115 -0
  38. package/dist/messages.js +121 -0
  39. package/dist/pagination.d.ts +36 -0
  40. package/dist/pagination.js +102 -0
  41. package/dist/query-builder-state.d.ts +28 -0
  42. package/dist/query-builder-state.js +128 -0
  43. package/dist/requests.d.ts +26 -0
  44. package/dist/requests.js +106 -0
  45. package/dist/row-hierarchy.d.ts +32 -0
  46. package/dist/row-hierarchy.js +170 -0
  47. package/dist/row-identity.d.ts +11 -0
  48. package/dist/row-identity.js +36 -0
  49. package/dist/saved-views.d.ts +52 -0
  50. package/dist/saved-views.js +153 -0
  51. package/dist/search-controller.d.ts +22 -0
  52. package/dist/search-controller.js +75 -0
  53. package/dist/search.d.ts +28 -0
  54. package/dist/search.js +111 -0
  55. package/dist/selection-client.d.ts +9 -0
  56. package/dist/selection-client.js +14 -0
  57. package/dist/selection.d.ts +25 -0
  58. package/dist/selection.js +60 -0
  59. package/dist/server-export.d.ts +27 -0
  60. package/dist/server-export.js +105 -0
  61. package/dist/sorting.d.ts +17 -0
  62. package/dist/sorting.js +58 -0
  63. package/dist/table-state-changes.d.ts +27 -0
  64. package/dist/table-state-changes.js +67 -0
  65. package/dist/table-state.d.ts +20 -0
  66. package/dist/table-state.js +77 -0
  67. package/dist/text-normalization.d.ts +2 -0
  68. package/dist/text-normalization.js +12 -0
  69. package/dist/url-state.d.ts +39 -0
  70. package/dist/url-state.js +75 -0
  71. package/package.json +66 -0
  72. package/src/DataTable.tsx +2322 -0
  73. package/src/DataTableToolbar.tsx +69 -0
  74. package/src/FilterBar.tsx +396 -0
  75. package/src/QueryBuilder.tsx +274 -0
  76. package/src/cell-edit.ts +187 -0
  77. package/src/client-state.ts +52 -0
  78. package/src/client-view.ts +61 -0
  79. package/src/column-layout.ts +47 -0
  80. package/src/columns.ts +271 -0
  81. package/src/core.ts +54 -0
  82. package/src/export.ts +39 -0
  83. package/src/facets.ts +46 -0
  84. package/src/filter-bar-state.ts +118 -0
  85. package/src/filter-client.ts +79 -0
  86. package/src/filter.ts +113 -0
  87. package/src/grouping.ts +185 -0
  88. package/src/index.ts +7 -0
  89. package/src/messages.ts +29 -0
  90. package/src/pagination.ts +81 -0
  91. package/src/query-builder-state.ts +105 -0
  92. package/src/requests.ts +85 -0
  93. package/src/row-hierarchy.ts +280 -0
  94. package/src/row-identity.ts +39 -0
  95. package/src/saved-views.ts +143 -0
  96. package/src/search-controller.ts +61 -0
  97. package/src/search.ts +137 -0
  98. package/src/selection-client.ts +23 -0
  99. package/src/selection.ts +62 -0
  100. package/src/server-export.ts +89 -0
  101. package/src/sorting.ts +63 -0
  102. package/src/styles.css +197 -0
  103. package/src/table-state-changes.ts +51 -0
  104. package/src/table-state.ts +72 -0
  105. package/src/text-normalization.ts +14 -0
  106. package/src/url-state.ts +62 -0
@@ -0,0 +1,17 @@
1
+ export interface SortColumn {
2
+ readonly id: string;
3
+ readonly type: "text" | "number" | "date";
4
+ }
5
+ export interface SortEntry {
6
+ readonly column: string;
7
+ readonly direction: "asc" | "desc";
8
+ }
9
+ export type SortState = readonly SortEntry[];
10
+ export interface SortEvaluation<Row> {
11
+ readonly locale: string;
12
+ readonly getValue: (row: Row, column: string) => unknown;
13
+ }
14
+ /** Validate URL/app state without exposing an upstream table state shape. */
15
+ export declare function parseSorting(value: unknown, columns: readonly SortColumn[]): SortState;
16
+ /** Sort the complete filtered view before pagination, retaining row identity and stable ties. */
17
+ export declare function sortClientRows<Row>(rows: readonly Row[], sorting: SortState, columns: readonly SortColumn[], options: SortEvaluation<Row>): readonly Row[];
@@ -0,0 +1,58 @@
1
+ //#region src/sorting.ts
2
+ function e(e, t) {
3
+ let n = /* @__PURE__ */ new Set();
4
+ for (let e of t) {
5
+ if (typeof e.id != "string" || !e.id.trim() || n.has(e.id)) throw Error("Invalid or duplicate sort column");
6
+ if (e.type !== "text" && e.type !== "number" && e.type !== "date") throw Error(`Invalid sort type for ${e.id}`);
7
+ n.add(e.id);
8
+ }
9
+ if (!Array.isArray(e) || e.length > n.size) throw Error("Invalid sorting: expected at most one entry per column");
10
+ let r = /* @__PURE__ */ new Set();
11
+ return Object.freeze(Array.from(e, (e, t) => {
12
+ if (typeof e != "object" || !e || Array.isArray(e)) throw Error(`Invalid sorting at [${t}]: expected an entry`);
13
+ if (Object.keys(e).some((e) => e !== "column" && e !== "direction")) throw Error(`Invalid sorting at [${t}]: unknown field`);
14
+ if (!("column" in e) || typeof e.column != "string" || !n.has(e.column) || r.has(e.column)) throw Error(`Invalid sorting at [${t}]: unknown or duplicate column`);
15
+ if (!("direction" in e) || e.direction !== "asc" && e.direction !== "desc") throw Error(`Invalid sorting at [${t}]: expected asc or desc`);
16
+ return r.add(e.column), Object.freeze({
17
+ column: e.column,
18
+ direction: e.direction
19
+ });
20
+ }));
21
+ }
22
+ function t(t, n, r, i) {
23
+ let a = e(n, r), o = Intl.getCanonicalLocales(i.locale)[0];
24
+ if (!o) throw Error("Sorting requires an explicit locale");
25
+ if (Intl.Collator.supportedLocalesOf([o]).length === 0) throw Error(`Unsupported sort locale: ${o}`);
26
+ if (a.length === 0) return t;
27
+ let s = new Intl.Collator(o, {
28
+ usage: "sort",
29
+ sensitivity: "variant",
30
+ numeric: !0
31
+ }).compare, c = new Map(r.map((e) => [e.id, e.type])), l = a.map((e) => ({
32
+ ...e,
33
+ type: c.get(e.column)
34
+ })), u = t.map((e, t) => ({
35
+ row: e,
36
+ index: t,
37
+ values: l.map((t) => {
38
+ let n = i.getValue(e, t.column);
39
+ return t.type === "text" ? typeof n == "string" && n !== "" ? n.normalize("NFC") : null : typeof n == "number" && Number.isFinite(n) && (t.type !== "date" || Math.abs(n) <= 864e13) ? n : null;
40
+ })
41
+ }));
42
+ return u.sort((e, t) => {
43
+ for (let n = 0; n < l.length; n++) {
44
+ let r = e.values[n], i = t.values[n];
45
+ if (r === i) continue;
46
+ if (r == null) {
47
+ if (i != null) return 1;
48
+ continue;
49
+ }
50
+ if (i == null) return -1;
51
+ let a = typeof r == "string" && typeof i == "string" ? s(r, i) : r < i ? -1 : +(r > i);
52
+ if (a !== 0) return l[n]?.direction === "desc" ? -a : a;
53
+ }
54
+ return e.index - t.index;
55
+ }), u.map((e) => e.row);
56
+ }
57
+ //#endregion
58
+ export { e as parseSorting, t as sortClientRows };
@@ -0,0 +1,27 @@
1
+ import type { ClientStateChange } from "./client-state.ts";
2
+ import type { ColumnState, TableState, TableStateSchema } from "./table-state.ts";
3
+ export type TableStateChange = {
4
+ readonly kind: "query";
5
+ readonly change: ClientStateChange;
6
+ } | {
7
+ readonly kind: "sortCycle";
8
+ readonly column: string;
9
+ readonly multiple: boolean;
10
+ } | {
11
+ readonly kind: "columnOrder";
12
+ readonly ids: readonly string[];
13
+ } | {
14
+ readonly kind: "columnVisibility";
15
+ readonly column: string;
16
+ readonly visible: boolean;
17
+ } | {
18
+ readonly kind: "columnWidth";
19
+ readonly column: string;
20
+ readonly width: number | null;
21
+ } | {
22
+ readonly kind: "columnPin";
23
+ readonly column: string;
24
+ readonly pin: ColumnState["pin"];
25
+ };
26
+ /** Pure requested-state update. Apply accepted layout/query/results atomically in the table owner. */
27
+ export declare function changeTableState(value: TableState, change: TableStateChange, schema: TableStateSchema): TableState;
@@ -0,0 +1,67 @@
1
+ import { changeClientViewState as e } from "./client-state.js";
2
+ import { parseTableState as t } from "./table-state.js";
3
+ //#region src/table-state-changes.ts
4
+ function n(n, r, i) {
5
+ let a = t(n, i), o = {
6
+ search: a.search,
7
+ filter: a.filter,
8
+ sorting: a.sorting,
9
+ pagination: a.pagination
10
+ };
11
+ switch (r.kind) {
12
+ case "query": return t({
13
+ ...e(o, r.change, i),
14
+ columns: a.columns
15
+ }, i);
16
+ case "sortCycle": {
17
+ if (!i.sortColumns.some((e) => e.id === r.column)) throw Error(`Column does not support sorting: ${r.column}`);
18
+ let n = a.sorting.find((e) => e.column === r.column), s = n?.direction === "desc" ? null : {
19
+ column: r.column,
20
+ direction: n ? "desc" : "asc"
21
+ }, c;
22
+ return c = r.multiple ? !n && s ? [...a.sorting, s] : a.sorting.flatMap((e) => e.column === r.column ? s ? [s] : [] : [e]) : s ? [s] : [], t({
23
+ ...e(o, {
24
+ kind: "sorting",
25
+ value: c
26
+ }, i),
27
+ columns: a.columns
28
+ }, i);
29
+ }
30
+ case "columnOrder": {
31
+ let e = new Map(a.columns.map((e) => [e.id, e]));
32
+ return t({
33
+ ...a,
34
+ columns: Array.from(r.ids, (t) => e.get(t))
35
+ }, i);
36
+ }
37
+ case "columnVisibility":
38
+ case "columnWidth":
39
+ case "columnPin": {
40
+ if (!a.columns.some((e) => e.id === r.column)) throw Error(`Unknown table column: ${r.column}`);
41
+ let e = a.columns.map((e) => {
42
+ if (e.id !== r.column) return e;
43
+ switch (r.kind) {
44
+ case "columnVisibility": return {
45
+ ...e,
46
+ visible: r.visible
47
+ };
48
+ case "columnWidth": return {
49
+ ...e,
50
+ width: r.width
51
+ };
52
+ case "columnPin": return {
53
+ ...e,
54
+ pin: r.pin
55
+ };
56
+ }
57
+ });
58
+ return t({
59
+ ...a,
60
+ columns: e
61
+ }, i);
62
+ }
63
+ default: throw Error("Unknown table state change");
64
+ }
65
+ }
66
+ //#endregion
67
+ export { n as changeTableState };
@@ -0,0 +1,20 @@
1
+ import type { ClientStateSchema } from "./client-state.ts";
2
+ import type { ClientViewState } from "./client-view.ts";
3
+ export interface ColumnState {
4
+ readonly id: string;
5
+ readonly visible: boolean;
6
+ /** Explicit resized width in CSS pixels; null uses the column definition's sizing policy. */
7
+ readonly width: number | null;
8
+ readonly pin: "start" | "end" | false;
9
+ }
10
+ export interface TableState extends ClientViewState {
11
+ /** Array order is the user-defined column order. Every available column occurs once. */
12
+ readonly columns: readonly ColumnState[];
13
+ }
14
+ export interface TableStateSchema extends ClientStateSchema {
15
+ readonly columns: readonly string[];
16
+ }
17
+ /** Strictly validate before applying saved/URL state, never partially restore it. */
18
+ export declare function parseTableState(value: unknown, schema: TableStateSchema): TableState;
19
+ export declare function serializeState(state: TableState, schema: TableStateSchema): string;
20
+ export declare function deserializeState(serialized: string, schema: TableStateSchema): TableState;
@@ -0,0 +1,77 @@
1
+ import { parseClientViewState as e } from "./client-state.js";
2
+ //#region src/table-state.ts
3
+ function t(e) {
4
+ return typeof e == "object" && !!e && !Array.isArray(e);
5
+ }
6
+ function n(e, t, n) {
7
+ for (let r of Object.keys(e)) if (!t.includes(r)) throw Error(`Invalid table state at ${n}: unknown field ${r}`);
8
+ for (let r of t) if (!Object.hasOwn(e, r)) throw Error(`Invalid table state at ${n}: missing ${r}`);
9
+ }
10
+ function r(r, i) {
11
+ let a = /* @__PURE__ */ new Set();
12
+ for (let e of i.columns) {
13
+ if (typeof e != "string" || !e.trim() || a.has(e)) throw Error("Invalid or duplicate table schema column");
14
+ a.add(e);
15
+ }
16
+ for (let e of [...i.filterColumns, ...i.sortColumns]) if (!a.has(e.id)) throw Error(`Query schema references unavailable table column: ${e.id}`);
17
+ if (!t(r)) throw Error("Invalid table state: expected an object");
18
+ n(r, [
19
+ "search",
20
+ "filter",
21
+ "sorting",
22
+ "pagination",
23
+ "columns"
24
+ ], "$");
25
+ let o = e({
26
+ search: r.search,
27
+ filter: r.filter,
28
+ sorting: r.sorting,
29
+ pagination: r.pagination
30
+ }, i);
31
+ if (!Array.isArray(r.columns) || r.columns.length !== a.size) throw Error("Invalid table state: expected one state entry per available column");
32
+ let s = /* @__PURE__ */ new Set(), c = Array.from(r.columns, (e, r) => {
33
+ let i = `$.columns[${r}]`;
34
+ if (!t(e)) throw Error(`Invalid table state at ${i}: expected a column object`);
35
+ if (n(e, [
36
+ "id",
37
+ "visible",
38
+ "width",
39
+ "pin"
40
+ ], i), typeof e.id != "string" || !a.has(e.id) || s.has(e.id)) throw Error(`Invalid table state at ${i}: unknown or duplicate column`);
41
+ if (s.add(e.id), typeof e.visible != "boolean") throw Error(`Invalid table state at ${i}: visible must be boolean`);
42
+ if (e.width !== null && (typeof e.width != "number" || !Number.isFinite(e.width) || e.width <= 0)) throw Error(`Invalid table state at ${i}: width must be null or a positive finite pixel value`);
43
+ if (e.pin !== !1 && e.pin !== "start" && e.pin !== "end") throw Error(`Invalid table state at ${i}: pin must be false, start, or end`);
44
+ return Object.freeze({
45
+ id: e.id,
46
+ visible: e.visible,
47
+ width: e.width,
48
+ pin: e.pin
49
+ });
50
+ });
51
+ return Object.freeze({
52
+ ...o,
53
+ columns: Object.freeze(c)
54
+ });
55
+ }
56
+ function i(e, t) {
57
+ let n = JSON.stringify({
58
+ version: 1,
59
+ state: r(e, t)
60
+ });
61
+ if (n.length > 262144) throw Error("Serialized table state exceeds 262144 characters");
62
+ return n;
63
+ }
64
+ function a(e, i) {
65
+ if (e.length > 262144) throw Error("Serialized table state exceeds 262144 characters");
66
+ let a;
67
+ try {
68
+ a = JSON.parse(e);
69
+ } catch {
70
+ throw Error("Invalid table state JSON");
71
+ }
72
+ if (!t(a)) throw Error("Invalid table state envelope");
73
+ if (n(a, ["version", "state"], "$"), a.version !== 1) throw Error("Unsupported table state version");
74
+ return r(a.state, i);
75
+ }
76
+ //#endregion
77
+ export { a as deserializeState, r as parseTableState, i as serializeState };
@@ -0,0 +1,2 @@
1
+ /** NFC and locale casing, without Unicode normalization work for ASCII-only values. */
2
+ export declare function createTextNormalizer(locale: string, caseSensitive?: boolean): (value: string) => string;
@@ -0,0 +1,12 @@
1
+ //#region src/text-normalization.ts
2
+ var e = /^[\u0000-\u007f]*$/u;
3
+ function t(t, n = !1) {
4
+ let r = n || "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toLocaleLowerCase(t) === "abcdefghijklmnopqrstuvwxyz";
5
+ return (i) => {
6
+ if (e.test(i)) return n ? i : r ? i.toLowerCase() : i.toLocaleLowerCase(t);
7
+ let a = i.normalize("NFC");
8
+ return n ? a : a.toLocaleLowerCase(t).normalize("NFC");
9
+ };
10
+ }
11
+ //#endregion
12
+ export { t as createTextNormalizer };
@@ -0,0 +1,39 @@
1
+ import type { TableState, TableStateSchema } from "./table-state.ts";
2
+ export interface TableUrlLocation {
3
+ readonly pathname: string;
4
+ readonly search: string;
5
+ readonly hash: string;
6
+ }
7
+ export interface TableUrlRouter {
8
+ readonly location: () => TableUrlLocation;
9
+ readonly navigate: (to: string, options?: {
10
+ readonly replace?: boolean;
11
+ readonly scroll?: boolean;
12
+ }) => void;
13
+ }
14
+ export type TableUrlRead = {
15
+ readonly kind: "absent";
16
+ } | {
17
+ readonly kind: "accepted";
18
+ readonly state: TableState;
19
+ } | {
20
+ readonly kind: "invalid";
21
+ readonly error: unknown;
22
+ };
23
+ export type TableUrlWrite = {
24
+ readonly kind: "unchanged";
25
+ readonly to: string;
26
+ } | {
27
+ readonly kind: "navigated";
28
+ readonly to: string;
29
+ };
30
+ /** Pull-based URL state using the same structural adapter as AppShell. */
31
+ export declare function createTableUrlState(router: TableUrlRouter, parameter: string, schema: TableStateSchema): {
32
+ read: () => TableUrlRead;
33
+ write: (state: TableState, options?: {
34
+ readonly replace?: boolean;
35
+ }) => TableUrlWrite;
36
+ clear: (options?: {
37
+ readonly replace?: boolean;
38
+ }) => TableUrlWrite;
39
+ };
@@ -0,0 +1,75 @@
1
+ import { deserializeState as e, serializeState as t } from "./table-state.js";
2
+ //#region src/url-state.ts
3
+ function n(e) {
4
+ if (!/^[A-Za-z][A-Za-z0-9_.-]*$/.test(e)) throw Error("Table URL parameter must start with a letter and contain only letters, digits, dot, underscore, or hyphen");
5
+ return e;
6
+ }
7
+ function r(e) {
8
+ if (!e.pathname.startsWith("/") || e.pathname.includes("?") || e.pathname.includes("#")) throw Error("Router pathname must be an absolute path without query or hash");
9
+ if (e.hash && !e.hash.startsWith("#")) throw Error("Router hash must be empty or start with #");
10
+ return {
11
+ pathname: e.pathname,
12
+ parameters: new URLSearchParams(e.search),
13
+ hash: e.hash
14
+ };
15
+ }
16
+ function i(e, t, n) {
17
+ let r = t.toString();
18
+ return `${e}${r ? `?${r}` : ""}${n}`;
19
+ }
20
+ function a(a, o, s) {
21
+ let c = n(o);
22
+ function l() {
23
+ try {
24
+ let { parameters: t } = r(a.location()), n = t.getAll(c);
25
+ if (n.length === 0) return Object.freeze({ kind: "absent" });
26
+ if (n.length !== 1) throw Error(`Table URL parameter ${c} must occur exactly once`);
27
+ return Object.freeze({
28
+ kind: "accepted",
29
+ state: e(n[0] ?? "", s)
30
+ });
31
+ } catch (e) {
32
+ return Object.freeze({
33
+ kind: "invalid",
34
+ error: e
35
+ });
36
+ }
37
+ }
38
+ function u(e, n = {}) {
39
+ let o = r(a.location()), l = i(o.pathname, o.parameters, o.hash);
40
+ o.parameters.set(c, t(e, s));
41
+ let u = i(o.pathname, o.parameters, o.hash);
42
+ return u === l ? Object.freeze({
43
+ kind: "unchanged",
44
+ to: u
45
+ }) : (a.navigate(u, {
46
+ replace: n.replace ?? !0,
47
+ scroll: !1
48
+ }), Object.freeze({
49
+ kind: "navigated",
50
+ to: u
51
+ }));
52
+ }
53
+ function d(e = {}) {
54
+ let t = r(a.location()), n = i(t.pathname, t.parameters, t.hash);
55
+ t.parameters.delete(c);
56
+ let o = i(t.pathname, t.parameters, t.hash);
57
+ return o === n ? Object.freeze({
58
+ kind: "unchanged",
59
+ to: o
60
+ }) : (a.navigate(o, {
61
+ replace: e.replace ?? !0,
62
+ scroll: !1
63
+ }), Object.freeze({
64
+ kind: "navigated",
65
+ to: o
66
+ }));
67
+ }
68
+ return {
69
+ read: l,
70
+ write: u,
71
+ clear: d
72
+ };
73
+ }
74
+ //#endregion
75
+ export { a as createTableUrlState };
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@gemologic/sheen-table",
3
+ "version": "0.1.0-rc.0",
4
+ "description": "Compact accessible data tables and query-building components for Sheen SolidJS applications.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/gemologic/sheen.git",
10
+ "directory": "packages/table"
11
+ },
12
+ "homepage": "https://sheen.gemologic.dev",
13
+ "bugs": {
14
+ "url": "https://github.com/gemologic/sheen/issues"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "provenance": true
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "src",
23
+ "!dist/**/*.test.*",
24
+ "!dist/**/*.demo.*",
25
+ "!dist/**/*.meta.*",
26
+ "!src/**/*.test.*",
27
+ "!src/**/*.demo.*",
28
+ "!src/**/*.meta.*"
29
+ ],
30
+ "sideEffects": [
31
+ "**/*.css"
32
+ ],
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "solid": "./src/index.ts",
37
+ "import": "./dist/index.js"
38
+ },
39
+ "./core": {
40
+ "types": "./dist/core.d.ts",
41
+ "solid": "./src/core.ts",
42
+ "import": "./dist/core.js"
43
+ },
44
+ "./query-builder": {
45
+ "types": "./dist/QueryBuilder.d.ts",
46
+ "solid": "./src/QueryBuilder.tsx",
47
+ "import": "./dist/QueryBuilder.js"
48
+ },
49
+ "./styles.css": "./src/styles.css"
50
+ },
51
+ "peerDependencies": {
52
+ "@gemologic/sheen": "0.1.0-rc.0",
53
+ "solid-js": "1.9.15"
54
+ },
55
+ "dependencies": {
56
+ "@tanstack/solid-virtual": "3.13.37"
57
+ },
58
+ "devDependencies": {
59
+ "@gemologic/sheen": "0.1.0-rc.0",
60
+ "solid-js": "1.9.15",
61
+ "vite-plugin-solid": "2.11.14"
62
+ },
63
+ "scripts": {
64
+ "build": "vite build && tsc -p tsconfig.build.json"
65
+ }
66
+ }