@aurum-grid/react 0.0.0-stage → 0.5.2

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/LICENSE.md ADDED
@@ -0,0 +1,24 @@
1
+ # Aurum Grid Commercial License (draft template)
2
+
3
+ > This is a starting-point template, not legal advice. Have a lawyer review it before you sell licences.
4
+
5
+ Copyright (c) 2026 the Aurum Grid authors. All rights reserved.
6
+
7
+ ## 1. Evaluation
8
+ You may install and use Aurum Grid ("the Software") free of charge for **30 days** to evaluate it. During and after
9
+ evaluation the Software runs unmodified; after 30 days without a valid licence key it displays an
10
+ "unlicensed" watermark and console notice.
11
+
12
+ ## 2. Annual developer licence
13
+ A licence costs **USD 50 per developer per year**. Each licensed developer may use the Software to build an
14
+ unlimited number of applications and deploy them to an unlimited number of end users. The licence key must be
15
+ renewed every year to keep receiving updates and to keep the watermark removed in newly built versions.
16
+
17
+ ## 3. Restrictions
18
+ You may not: (a) redistribute the Software as a standalone component library or competing product;
19
+ (b) remove, alter or circumvent the licence checks or watermark; (c) share licence keys between developers
20
+ beyond the purchased seat count.
21
+
22
+ ## 4. No warranty
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
24
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
- # Temporary Holding Version
1
+ # @aurum-grid/react
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Aurum Grid React adapter.
4
+
5
+ Part of **Aurum Grid** — the enterprise data grid. See the main documentation: https://github.com/YOUR_ORG/aurum-grid#readme
6
+
7
+ Licensing: 30-day evaluation, then $50 per developer per year. See LICENSE.md.
@@ -0,0 +1,45 @@
1
+ import { type ComponentType, type CSSProperties } from 'react';
2
+ import { type CellRendererParams, type FrameworkRendererResult, type Grid, type GridOptions, type ICellEditor, type ICellEditorParams } from '@aurum-grid/core';
3
+ /**
4
+ * Wrap a React component for use as `colDef.cellRenderer`:
5
+ * cellRenderer: reactCellRenderer(StatusBadge)
6
+ */
7
+ export declare function reactCellRenderer<P extends CellRendererParams = CellRendererParams>(Comp: ComponentType<P>): (params: CellRendererParams) => FrameworkRendererResult | string;
8
+ /** Props a React cell editor receives. */
9
+ export interface CustomCellEditorProps<T = any> extends ICellEditorParams<T> {
10
+ /** The current (possibly edited) value — render your controls from this. */
11
+ value: unknown;
12
+ /** Report a new value; the grid saves it when editing stops. */
13
+ onValueChange: (value: unknown) => void;
14
+ }
15
+ /**
16
+ * Wrap a React component for use as `colDef.cellEditor` (same model as AG Grid's React editors):
17
+ * cellEditor: reactCellEditor(AddressForm, { popup: true })
18
+ * The component is controlled: read `props.value`, call `props.onValueChange(next)`,
19
+ * and `props.stopEditing()` / `props.stopEditing(true)` to save or cancel.
20
+ */
21
+ export declare function reactCellEditor<T = any>(Comp: ComponentType<CustomCellEditorProps<T>>, opts?: {
22
+ popup?: boolean;
23
+ popupPosition?: 'over' | 'under';
24
+ }): (params: ICellEditorParams<T>) => ICellEditor<T>;
25
+ export interface AurumGridProps<T> extends GridOptions<T> {
26
+ className?: string;
27
+ style?: CSSProperties;
28
+ /** Height when not provided by style/className. */
29
+ height?: number | string;
30
+ /** Options that should NOT trigger updates when their identity changes. */
31
+ 'data-testid'?: string;
32
+ }
33
+ export type AurumGridRef<T = any> = {
34
+ api: Grid<T> | null;
35
+ };
36
+ declare function AurumGridInner<T>(props: AurumGridProps<T>, ref: React.ForwardedRef<AurumGridRef<T>>): import("react").JSX.Element;
37
+ export declare const AurumGrid: <T>(props: AurumGridProps<T> & {
38
+ ref?: React.Ref<AurumGridRef<T>>;
39
+ }) => ReturnType<typeof AurumGridInner>;
40
+ /** Hook form: returns a ref callback and the grid API once mounted. */
41
+ export declare function useAurumGrid<T>(options: GridOptions<T>): {
42
+ ref: (el: HTMLDivElement | null) => void;
43
+ api: Grid<T> | null;
44
+ };
45
+ export type { Grid, GridOptions } from '@aurum-grid/core';
package/dist/index.js ADDED
@@ -0,0 +1,192 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState, } from 'react';
3
+ import { createPortal } from 'react-dom';
4
+ import { createGrid } from '@aurum-grid/core';
5
+ class PortalRegistry {
6
+ notify;
7
+ entries = new Map();
8
+ seq = 0;
9
+ scheduled = false;
10
+ constructor(notify) {
11
+ this.notify = notify;
12
+ }
13
+ add(el, Comp, props) {
14
+ const id = ++this.seq;
15
+ this.entries.set(id, { id, el, Comp, props });
16
+ this.schedule();
17
+ return id;
18
+ }
19
+ update(id, props) {
20
+ const e = this.entries.get(id);
21
+ if (e) {
22
+ e.props = props;
23
+ this.schedule();
24
+ }
25
+ }
26
+ remove(id) {
27
+ if (this.entries.delete(id))
28
+ this.schedule();
29
+ }
30
+ schedule() {
31
+ if (this.scheduled)
32
+ return;
33
+ this.scheduled = true;
34
+ queueMicrotask(() => {
35
+ this.scheduled = false;
36
+ this.notify();
37
+ });
38
+ }
39
+ }
40
+ const registries = new WeakMap();
41
+ /**
42
+ * Wrap a React component for use as `colDef.cellRenderer`:
43
+ * cellRenderer: reactCellRenderer(StatusBadge)
44
+ */
45
+ export function reactCellRenderer(Comp) {
46
+ return (params) => {
47
+ const reg = registries.get(params.api);
48
+ if (!reg)
49
+ return params.valueFormatted;
50
+ const el = document.createElement('span');
51
+ el.className = 'agr-react-cell';
52
+ const id = reg.add(el, Comp, params);
53
+ return { element: el, destroy: () => reg.remove(id), update: (p) => reg.update(id, p) };
54
+ };
55
+ }
56
+ /**
57
+ * Wrap a React component for use as `colDef.cellEditor` (same model as AG Grid's React editors):
58
+ * cellEditor: reactCellEditor(AddressForm, { popup: true })
59
+ * The component is controlled: read `props.value`, call `props.onValueChange(next)`,
60
+ * and `props.stopEditing()` / `props.stopEditing(true)` to save or cancel.
61
+ */
62
+ export function reactCellEditor(Comp, opts = {}) {
63
+ return (params) => {
64
+ const reg = registries.get(params.api);
65
+ if (!reg)
66
+ throw new Error('Aurum Grid: reactCellEditor() needs the grid to be rendered with <AurumGrid>.');
67
+ const el = document.createElement('div');
68
+ el.className = 'agr-react-editor';
69
+ let value = params.value;
70
+ let id = 0;
71
+ const props = () => ({ ...params, value, onValueChange });
72
+ const onValueChange = (v) => {
73
+ value = v;
74
+ params.onValueChange(v);
75
+ reg.update(id, props());
76
+ };
77
+ id = reg.add(el, Comp, props());
78
+ return {
79
+ getGui: () => el,
80
+ getValue: () => value,
81
+ isPopup: () => !!opts.popup,
82
+ getPopupPosition: () => opts.popupPosition ?? 'under',
83
+ // React renders on the next microtask; focus once the component is in the DOM.
84
+ afterGuiAttached: () => {
85
+ const focus = (n = 0) => {
86
+ const f = el.querySelector('[autofocus], input, select, textarea, button');
87
+ if (f)
88
+ f.focus();
89
+ else if (n < 5)
90
+ requestAnimationFrame(() => focus(n + 1));
91
+ };
92
+ queueMicrotask(() => focus());
93
+ },
94
+ destroy: () => reg.remove(id),
95
+ };
96
+ };
97
+ }
98
+ const NON_OPTION_PROPS = new Set(['className', 'style', 'height', 'data-testid']);
99
+ function AurumGridInner(props, ref) {
100
+ const host = useRef(null);
101
+ const gridRef = useRef(null);
102
+ const prev = useRef({});
103
+ const [, force] = useState(0);
104
+ const registry = useRef(null);
105
+ if (!registry.current)
106
+ registry.current = new PortalRegistry(() => force((n) => n + 1));
107
+ useImperativeHandle(ref, () => ({
108
+ get api() {
109
+ return gridRef.current;
110
+ },
111
+ }), []);
112
+ useLayoutEffect(() => {
113
+ if (!host.current)
114
+ return;
115
+ const options = {};
116
+ for (const [k, v] of Object.entries(props))
117
+ if (!NON_OPTION_PROPS.has(k))
118
+ options[k] = v;
119
+ // Register before cells render so React renderers can find their portal registry.
120
+ // Fire onGridReady only once the initial rows are loaded (AG Grid semantics).
121
+ const userReady = options.onGridReady;
122
+ options.onGridReady = undefined;
123
+ const g = createGridDeferred(host.current, options, (api) => {
124
+ registries.set(api, registry.current);
125
+ });
126
+ g.options.onGridReady = userReady;
127
+ userReady?.({ type: 'gridReady', api: g });
128
+ gridRef.current = g;
129
+ prev.current = options;
130
+ return () => {
131
+ g.destroy();
132
+ registries.delete(g);
133
+ gridRef.current = null;
134
+ registry.current.entries.clear();
135
+ };
136
+ // mount once; updates handled below
137
+ }, []);
138
+ useEffect(() => {
139
+ const g = gridRef.current;
140
+ if (!g)
141
+ return;
142
+ const patch = {};
143
+ let changed = false;
144
+ for (const [k, v] of Object.entries(props)) {
145
+ if (NON_OPTION_PROPS.has(k))
146
+ continue;
147
+ if (prev.current[k] !== v) {
148
+ patch[k] = v;
149
+ changed = true;
150
+ }
151
+ }
152
+ if (changed) {
153
+ prev.current = { ...prev.current, ...patch };
154
+ g.updateGridOptions(patch);
155
+ }
156
+ });
157
+ const style = { height: props.height ?? '100%', width: '100%', ...props.style };
158
+ return (_jsx("div", { ref: host, className: props.className, style: style, "data-testid": props['data-testid'], children: [...registry.current.entries.values()].map((e) => createPortal(_jsx(e.Comp, { ...e.props }), e.el, String(e.id))) }));
159
+ }
160
+ /** createGrid, but lets us register the API before the first cell render. */
161
+ function createGridDeferred(el, options, beforeRender) {
162
+ const rowData = options.rowData;
163
+ const datasource = options.datasource;
164
+ const g = createGrid(el, { ...options, rowData: [], datasource: undefined, rowModelType: options.rowModelType === 'infinite' ? undefined : options.rowModelType });
165
+ beforeRender(g);
166
+ if (options.rowModelType === 'infinite')
167
+ g.setDatasource(datasource);
168
+ else
169
+ g.setRowData(rowData ?? []);
170
+ return g;
171
+ }
172
+ export const AurumGrid = forwardRef(AurumGridInner);
173
+ /** Hook form: returns a ref callback and the grid API once mounted. */
174
+ export function useAurumGrid(options) {
175
+ const [api, setApi] = useState(null);
176
+ const optsRef = useRef(options);
177
+ optsRef.current = options;
178
+ const gridRef = useRef(null);
179
+ const ref = useCallback((el) => {
180
+ if (el && !gridRef.current) {
181
+ gridRef.current = createGrid(el, optsRef.current);
182
+ setApi(gridRef.current);
183
+ }
184
+ else if (!el && gridRef.current) {
185
+ gridRef.current.destroy();
186
+ gridRef.current = null;
187
+ setApi(null);
188
+ }
189
+ }, []);
190
+ return { ref, api };
191
+ }
192
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,GAC3F,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,UAAU,EAAgI,MAAM,kBAAkB,CAAC;AAa5K,MAAM,cAAc;IAIE;IAHpB,OAAO,GAAG,IAAI,GAAG,EAAuB,CAAC;IACjC,GAAG,GAAG,CAAC,CAAC;IACR,SAAS,GAAG,KAAK,CAAC;IAC1B,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAC1C,GAAG,CAAC,EAAe,EAAE,IAAwB,EAAE,KAA8B;QAC3E,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,CAAC,EAAU,EAAE,KAA8B;QAC/C,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC/B,IAAI,CAAC,EAAE,CAAC;YACN,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;YAChB,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;IAC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AC;YAC1B,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,CAAC;QACf,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@aurum-grid/react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.5.2",
4
+ "description": "Aurum Grid React adapter.",
5
+ "license": "SEE LICENSE IN LICENSE.md",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "LICENSE.md",
18
+ "README.md"
19
+ ],
20
+ "sideEffects": [
21
+ "*.css"
22
+ ],
23
+ "dependencies": {
24
+ "@aurum-grid/core": "0.5.2"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "keywords": [
30
+ "data grid",
31
+ "datagrid",
32
+ "table",
33
+ "enterprise",
34
+ "pivot",
35
+ "ag-grid alternative"
36
+ ],
37
+ "peerDependencies": {
38
+ "react": ">=18",
39
+ "react-dom": ">=18"
40
+ },
41
+ "devDependencies": {
42
+ "@types/react": "^18.3.12",
43
+ "@types/react-dom": "^18.3.1",
44
+ "react": "^18.3.1",
45
+ "react-dom": "^18.3.1"
46
+ },
47
+ "scripts": {
48
+ "build": "tsc -p tsconfig.json",
49
+ "typecheck": "tsc -p tsconfig.json --noEmit"
50
+ }
6
51
  }