@ai-matrx/records-ui 0.115.108 → 0.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -1
- package/dist/{SaveToTable-V3R7QVKV.js → SaveToTable-AG7ZY4IG.js} +3 -3
- package/dist/{chunk-4U2JCICC.js → chunk-3OKHOGSO.js} +1 -1
- package/dist/chunk-3OKHOGSO.js.map +1 -0
- package/dist/{chunk-VGNQBI2J.js → chunk-4ZYGWYQP.js} +2 -2
- package/dist/{chunk-W3EU7H4V.js → chunk-7IZJT3DV.js} +3 -3
- package/dist/helpers.d.cts +37 -1
- package/dist/helpers.d.ts +37 -1
- package/dist/index.cjs +4361 -3681
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +203 -9
- package/dist/index.d.ts +203 -9
- package/dist/index.js +4047 -3370
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-4U2JCICC.js.map +0 -1
- /package/dist/{SaveToTable-V3R7QVKV.js.map → SaveToTable-AG7ZY4IG.js.map} +0 -0
- /package/dist/{chunk-VGNQBI2J.js.map → chunk-4ZYGWYQP.js.map} +0 -0
- /package/dist/{chunk-W3EU7H4V.js.map → chunk-7IZJT3DV.js.map} +0 -0
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
usePickerTables,
|
|
54
54
|
useRecordsUi,
|
|
55
55
|
useTableRights
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-3OKHOGSO.js";
|
|
57
57
|
import {
|
|
58
58
|
kindItemWords,
|
|
59
59
|
kindLabel,
|
|
@@ -4166,7 +4166,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
|
|
|
4166
4166
|
import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
4167
4167
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4168
4168
|
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4169
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4169
|
+
var SaveToTable = lazy(() => import("./SaveToTable-AG7ZY4IG.js").then((m) => ({ default: m.SaveToTable })));
|
|
4170
4170
|
var LONGEST_READ = 5e5;
|
|
4171
4171
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4172
4172
|
function isPlainObject(v) {
|
|
@@ -11366,4 +11366,4 @@ export {
|
|
|
11366
11366
|
RecordNameText,
|
|
11367
11367
|
HeldChangeDecision
|
|
11368
11368
|
};
|
|
11369
|
-
//# sourceMappingURL=chunk-
|
|
11369
|
+
//# sourceMappingURL=chunk-7IZJT3DV.js.map
|
package/dist/helpers.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel as PermissionLevel$1, RecordScopeContext, Field, RowAction, RecordDocument, AggregateFilter, Table, RecordRead, RowAgentTarget, ReadRow, HistoryActor, FieldHistoryEntry, HiddenFieldNotice, TableDecorations } from '@ai-matrx/records';
|
|
2
2
|
import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType } from '@ai-matrx/records/field-kinds';
|
|
3
3
|
export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
|
|
4
|
-
import { ReactNode, KeyboardEvent } from 'react';
|
|
4
|
+
import { ReactNode, ComponentType, KeyboardEvent } from 'react';
|
|
5
5
|
import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
|
|
6
6
|
import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
|
|
7
7
|
import { TableStyle } from '@ai-matrx/design-system/data-table';
|
|
@@ -75,6 +75,14 @@ declare const NO_RIGHTS: TableRights;
|
|
|
75
75
|
*/
|
|
76
76
|
declare function tableRightsAt(level: PermissionLevel$1 | null): TableRights;
|
|
77
77
|
|
|
78
|
+
interface MapPin {
|
|
79
|
+
/** The record's id. */
|
|
80
|
+
id: string;
|
|
81
|
+
lat: number;
|
|
82
|
+
lng: number;
|
|
83
|
+
title: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
78
86
|
/** What the settings panel can see right now, in the words the agent reads. */
|
|
79
87
|
interface TableSettingsSnapshot {
|
|
80
88
|
table_id: Uuid;
|
|
@@ -269,6 +277,16 @@ interface GridContextSnapshot {
|
|
|
269
277
|
search: string;
|
|
270
278
|
}
|
|
271
279
|
|
|
280
|
+
/** What a host's map painter is given. Pins arrive unclustered; the painter clusters them for its zoom. */
|
|
281
|
+
interface MapCanvasProps {
|
|
282
|
+
pins: readonly MapPin[];
|
|
283
|
+
/** A pin (or the one record a badge names) was pressed: open that record. */
|
|
284
|
+
onOpen: (recordId: Uuid) => void;
|
|
285
|
+
/** The record the host has open, drawn as the selected pin. */
|
|
286
|
+
selectedId?: Uuid | null | undefined;
|
|
287
|
+
className?: string | undefined;
|
|
288
|
+
}
|
|
289
|
+
|
|
272
290
|
/**
|
|
273
291
|
* The authored-text slots `renderText` is asked to draw. `cell`: a long-text cell of the merged
|
|
274
292
|
* grid and the whole-text dialog's preview — the host may return block content there (the grid
|
|
@@ -393,6 +411,24 @@ interface RecordsUiHost {
|
|
|
393
411
|
* text and a name only through this port. Unbound (or `null` back), the page glyph stands in.
|
|
394
412
|
*/
|
|
395
413
|
renderIcon?: ((name: string) => ReactNode) | undefined;
|
|
414
|
+
/**
|
|
415
|
+
* OPTIONAL. THE MAP LAYOUT'S PICTURE (lane AT-VIEWS). The platform has ONE map library (Leaflet, in the
|
|
416
|
+
* host's app), so this package draws no map of its own: the host hands in the component that paints
|
|
417
|
+
* tiles and the pins it is given (`MapCanvasProps`), re-clustering them with `clusterPins` as the zoom
|
|
418
|
+
* moves. Unbound, the Map layout lists the located records beside a plain sentence saying no map is
|
|
419
|
+
* installed here — never an empty rectangle.
|
|
420
|
+
*/
|
|
421
|
+
mapCanvas?: ComponentType<MapCanvasProps> | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* OPTIONAL. ADDRESS → PLACE for the Map layout. Resolve a postal address to coordinates through the
|
|
424
|
+
* platform's one geocoder (the server's /geo path), `null` when no place answers to it, and THROW
|
|
425
|
+
* when the lookup could not be made (so the layout says "could not check", not "no such place").
|
|
426
|
+
* Unbound, a Map built on an address column says so and offers no lookup.
|
|
427
|
+
*/
|
|
428
|
+
geocodeAddress?: ((address: string) => Promise<{
|
|
429
|
+
lat: number;
|
|
430
|
+
lng: number;
|
|
431
|
+
} | null>) | undefined;
|
|
396
432
|
/**
|
|
397
433
|
* TEMPORARY (one-grid merge, steps 5-8). Which table grid draws: `classic` — the default Grid
|
|
398
434
|
* as it shipped in 0.86; `merged` — the same grid with the older /data grid's control layer on
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel as PermissionLevel$1, RecordScopeContext, Field, RowAction, RecordDocument, AggregateFilter, Table, RecordRead, RowAgentTarget, ReadRow, HistoryActor, FieldHistoryEntry, HiddenFieldNotice, TableDecorations } from '@ai-matrx/records';
|
|
2
2
|
import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType } from '@ai-matrx/records/field-kinds';
|
|
3
3
|
export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
|
|
4
|
-
import { ReactNode, KeyboardEvent } from 'react';
|
|
4
|
+
import { ReactNode, ComponentType, KeyboardEvent } from 'react';
|
|
5
5
|
import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
|
|
6
6
|
import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
|
|
7
7
|
import { TableStyle } from '@ai-matrx/design-system/data-table';
|
|
@@ -75,6 +75,14 @@ declare const NO_RIGHTS: TableRights;
|
|
|
75
75
|
*/
|
|
76
76
|
declare function tableRightsAt(level: PermissionLevel$1 | null): TableRights;
|
|
77
77
|
|
|
78
|
+
interface MapPin {
|
|
79
|
+
/** The record's id. */
|
|
80
|
+
id: string;
|
|
81
|
+
lat: number;
|
|
82
|
+
lng: number;
|
|
83
|
+
title: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
78
86
|
/** What the settings panel can see right now, in the words the agent reads. */
|
|
79
87
|
interface TableSettingsSnapshot {
|
|
80
88
|
table_id: Uuid;
|
|
@@ -269,6 +277,16 @@ interface GridContextSnapshot {
|
|
|
269
277
|
search: string;
|
|
270
278
|
}
|
|
271
279
|
|
|
280
|
+
/** What a host's map painter is given. Pins arrive unclustered; the painter clusters them for its zoom. */
|
|
281
|
+
interface MapCanvasProps {
|
|
282
|
+
pins: readonly MapPin[];
|
|
283
|
+
/** A pin (or the one record a badge names) was pressed: open that record. */
|
|
284
|
+
onOpen: (recordId: Uuid) => void;
|
|
285
|
+
/** The record the host has open, drawn as the selected pin. */
|
|
286
|
+
selectedId?: Uuid | null | undefined;
|
|
287
|
+
className?: string | undefined;
|
|
288
|
+
}
|
|
289
|
+
|
|
272
290
|
/**
|
|
273
291
|
* The authored-text slots `renderText` is asked to draw. `cell`: a long-text cell of the merged
|
|
274
292
|
* grid and the whole-text dialog's preview — the host may return block content there (the grid
|
|
@@ -393,6 +411,24 @@ interface RecordsUiHost {
|
|
|
393
411
|
* text and a name only through this port. Unbound (or `null` back), the page glyph stands in.
|
|
394
412
|
*/
|
|
395
413
|
renderIcon?: ((name: string) => ReactNode) | undefined;
|
|
414
|
+
/**
|
|
415
|
+
* OPTIONAL. THE MAP LAYOUT'S PICTURE (lane AT-VIEWS). The platform has ONE map library (Leaflet, in the
|
|
416
|
+
* host's app), so this package draws no map of its own: the host hands in the component that paints
|
|
417
|
+
* tiles and the pins it is given (`MapCanvasProps`), re-clustering them with `clusterPins` as the zoom
|
|
418
|
+
* moves. Unbound, the Map layout lists the located records beside a plain sentence saying no map is
|
|
419
|
+
* installed here — never an empty rectangle.
|
|
420
|
+
*/
|
|
421
|
+
mapCanvas?: ComponentType<MapCanvasProps> | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* OPTIONAL. ADDRESS → PLACE for the Map layout. Resolve a postal address to coordinates through the
|
|
424
|
+
* platform's one geocoder (the server's /geo path), `null` when no place answers to it, and THROW
|
|
425
|
+
* when the lookup could not be made (so the layout says "could not check", not "no such place").
|
|
426
|
+
* Unbound, a Map built on an address column says so and offers no lookup.
|
|
427
|
+
*/
|
|
428
|
+
geocodeAddress?: ((address: string) => Promise<{
|
|
429
|
+
lat: number;
|
|
430
|
+
lng: number;
|
|
431
|
+
} | null>) | undefined;
|
|
396
432
|
/**
|
|
397
433
|
* TEMPORARY (one-grid merge, steps 5-8). Which table grid draws: `classic` — the default Grid
|
|
398
434
|
* as it shipped in 0.86; `merged` — the same grid with the older /data grid's control layer on
|