@ai-matrx/records-ui 0.115.102 → 0.115.104

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.
@@ -1,8 +1,9 @@
1
- import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel, RecordScopeContext, Field, RowAction, RecordDocument, AggregateFilter, Table, RecordRead, RowAgentTarget, ReadRow, HistoryActor, FieldHistoryEntry, HiddenFieldNotice, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType, TableDecorations } from '@ai-matrx/records';
1
+ import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel as PermissionLevel$1, RecordScopeContext, Field, RowAction, RecordDocument, AggregateFilter, Table, RecordRead, RowAgentTarget, ReadRow, HistoryActor, FieldHistoryEntry, HiddenFieldNotice } from '@ai-matrx/records';
2
+ import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType, Field as Field$1, TableDecorations } from '@ai-matrx/records/core';
3
+ export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
2
4
  import { ReactNode, KeyboardEvent } from 'react';
3
5
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
4
6
  import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
5
- export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
6
7
  import { TableStyle } from '@ai-matrx/design-system/data-table';
7
8
 
8
9
  declare function personActor(userId: Uuid | null | undefined): RecordsActor;
@@ -72,7 +73,7 @@ declare const NO_RIGHTS: TableRights;
72
73
  * the LEVEL, never six booleans, so nobody can hand a screen a combination the
73
74
  * ladder cannot produce (write without read, share without edit).
74
75
  */
75
- declare function tableRightsAt(level: PermissionLevel | null): TableRights;
76
+ declare function tableRightsAt(level: PermissionLevel$1 | null): TableRights;
76
77
 
77
78
  /** What the settings panel can see right now, in the words the agent reads. */
78
79
  interface TableSettingsSnapshot {
@@ -1201,7 +1202,7 @@ type EditorKind = FieldKind;
1201
1202
  * It is `fieldKindFor` with this package's kernel ids bound. Nothing here
1202
1203
  * decides anything the core does not.
1203
1204
  */
1204
- declare function editorKindFor(field: Field): EditorKind;
1205
+ declare function editorKindFor(field: Field$1): EditorKind;
1205
1206
  /**
1206
1207
  * WHICH KIND A PERSON PICKED, read back off the Field the store keeps — the ONE reader every
1207
1208
  * "what does this column hold" answer goes through (the Settings column list, the column panel).
@@ -1215,13 +1216,13 @@ declare function editorKindFor(field: Field): EditorKind;
1215
1216
  *
1216
1217
  * `undefined` when the Field is none of the kinds the menu offers.
1217
1218
  */
1218
- declare function pickableTypeOf(field: Field): PickableFieldType | undefined;
1219
+ declare function pickableTypeOf(field: Field$1): PickableFieldType | undefined;
1219
1220
  /**
1220
1221
  * The type word a person sees in a header or a settings row — and it is the
1221
1222
  * SAME word the field panel offers, read from `FIELD_TYPE_CHOICES`, so a column
1222
1223
  * added as "Money" is never described anywhere else as "Currency".
1223
1224
  */
1224
- declare function fieldTypeLabel(field: Field): string;
1225
+ declare function fieldTypeLabel(field: Field$1): string;
1225
1226
 
1226
1227
  /** The facts a picker needs about one table, whichever list it came from. */
1227
1228
  interface PickerTable {
@@ -1281,7 +1282,7 @@ declare function tablePickerEntries<T extends PickerTable>(tables: readonly T[],
1281
1282
  * longer resolves to a key) is dropped rather than crashing the whole style — a defect in
1282
1283
  * one rule costs that rule, never the read.
1283
1284
  */
1284
- declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field[]): TableStyle;
1285
+ declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field$1[]): TableStyle;
1285
1286
  /**
1286
1287
  * THE ONE PRESENTATION RESOLVER every colored surface in this package reads —
1287
1288
  * `Grid`, and (via `Card`) the kanban board, the calendar and the gallery.
@@ -1303,6 +1304,6 @@ declare function styleFromDecorations(decorations: TableDecorations | null | und
1303
1304
  * table rule it meant to replace. Per-piece, never all-or-nothing, because a view is a
1304
1305
  * LOOK on top of the table, not a wholesale substitute for it.
1305
1306
  */
1306
- declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field[], viewStyle: TableStyle | undefined): TableStyle;
1307
+ declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field$1[], viewStyle: TableStyle | undefined): TableStyle;
1307
1308
 
1308
1309
  export { type AgentBuildAsk, type EditorKind, NO_RIGHTS, type OpenRecordsAsk, PARITY_LABEL, PARITY_MADE_OF, type PickerTable, type RecordsUiHost, type ResolveName, SOMEBODY, THE_SYSTEM, type TablePickerEntries, type TablePickerEntry, type TableRights, UNREAD_RECORD_LABEL, WITHHELD_RECORD_LABEL, WITHHELD_WORD, actorBadge, actorWords, cardTitleField, editorKindFor, fieldName, fieldTypeLabel, getPersonTimeZone, isKeptTable, isValueSet, lastChangeSentence, looksLikeId, personActor, personWallNow, pickableTypeOf, recordName, recordNameIn, recordsDataSource, resolveTableStyle, rowName, rowNameIn, setPersonTimeZone, singularNoun, styleFromDecorations, subscribePersonTimeZone, tableName, tablePickerEntries, tableRightsAt, whenWords, withheldNoticeOf, withheldSentence };
package/dist/helpers.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel, RecordScopeContext, Field, RowAction, RecordDocument, AggregateFilter, Table, RecordRead, RowAgentTarget, ReadRow, HistoryActor, FieldHistoryEntry, HiddenFieldNotice, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType, TableDecorations } from '@ai-matrx/records';
1
+ import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel as PermissionLevel$1, RecordScopeContext, Field, RowAction, RecordDocument, AggregateFilter, Table, RecordRead, RowAgentTarget, ReadRow, HistoryActor, FieldHistoryEntry, HiddenFieldNotice } from '@ai-matrx/records';
2
+ import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType, Field as Field$1, TableDecorations } from '@ai-matrx/records/core';
3
+ export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
2
4
  import { ReactNode, KeyboardEvent } from 'react';
3
5
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
4
6
  import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
5
- export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
6
7
  import { TableStyle } from '@ai-matrx/design-system/data-table';
7
8
 
8
9
  declare function personActor(userId: Uuid | null | undefined): RecordsActor;
@@ -72,7 +73,7 @@ declare const NO_RIGHTS: TableRights;
72
73
  * the LEVEL, never six booleans, so nobody can hand a screen a combination the
73
74
  * ladder cannot produce (write without read, share without edit).
74
75
  */
75
- declare function tableRightsAt(level: PermissionLevel | null): TableRights;
76
+ declare function tableRightsAt(level: PermissionLevel$1 | null): TableRights;
76
77
 
77
78
  /** What the settings panel can see right now, in the words the agent reads. */
78
79
  interface TableSettingsSnapshot {
@@ -1201,7 +1202,7 @@ type EditorKind = FieldKind;
1201
1202
  * It is `fieldKindFor` with this package's kernel ids bound. Nothing here
1202
1203
  * decides anything the core does not.
1203
1204
  */
1204
- declare function editorKindFor(field: Field): EditorKind;
1205
+ declare function editorKindFor(field: Field$1): EditorKind;
1205
1206
  /**
1206
1207
  * WHICH KIND A PERSON PICKED, read back off the Field the store keeps — the ONE reader every
1207
1208
  * "what does this column hold" answer goes through (the Settings column list, the column panel).
@@ -1215,13 +1216,13 @@ declare function editorKindFor(field: Field): EditorKind;
1215
1216
  *
1216
1217
  * `undefined` when the Field is none of the kinds the menu offers.
1217
1218
  */
1218
- declare function pickableTypeOf(field: Field): PickableFieldType | undefined;
1219
+ declare function pickableTypeOf(field: Field$1): PickableFieldType | undefined;
1219
1220
  /**
1220
1221
  * The type word a person sees in a header or a settings row — and it is the
1221
1222
  * SAME word the field panel offers, read from `FIELD_TYPE_CHOICES`, so a column
1222
1223
  * added as "Money" is never described anywhere else as "Currency".
1223
1224
  */
1224
- declare function fieldTypeLabel(field: Field): string;
1225
+ declare function fieldTypeLabel(field: Field$1): string;
1225
1226
 
1226
1227
  /** The facts a picker needs about one table, whichever list it came from. */
1227
1228
  interface PickerTable {
@@ -1281,7 +1282,7 @@ declare function tablePickerEntries<T extends PickerTable>(tables: readonly T[],
1281
1282
  * longer resolves to a key) is dropped rather than crashing the whole style — a defect in
1282
1283
  * one rule costs that rule, never the read.
1283
1284
  */
1284
- declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field[]): TableStyle;
1285
+ declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field$1[]): TableStyle;
1285
1286
  /**
1286
1287
  * THE ONE PRESENTATION RESOLVER every colored surface in this package reads —
1287
1288
  * `Grid`, and (via `Card`) the kanban board, the calendar and the gallery.
@@ -1303,6 +1304,6 @@ declare function styleFromDecorations(decorations: TableDecorations | null | und
1303
1304
  * table rule it meant to replace. Per-piece, never all-or-nothing, because a view is a
1304
1305
  * LOOK on top of the table, not a wholesale substitute for it.
1305
1306
  */
1306
- declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field[], viewStyle: TableStyle | undefined): TableStyle;
1307
+ declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field$1[], viewStyle: TableStyle | undefined): TableStyle;
1307
1308
 
1308
1309
  export { type AgentBuildAsk, type EditorKind, NO_RIGHTS, type OpenRecordsAsk, PARITY_LABEL, PARITY_MADE_OF, type PickerTable, type RecordsUiHost, type ResolveName, SOMEBODY, THE_SYSTEM, type TablePickerEntries, type TablePickerEntry, type TableRights, UNREAD_RECORD_LABEL, WITHHELD_RECORD_LABEL, WITHHELD_WORD, actorBadge, actorWords, cardTitleField, editorKindFor, fieldName, fieldTypeLabel, getPersonTimeZone, isKeptTable, isValueSet, lastChangeSentence, looksLikeId, personActor, personWallNow, pickableTypeOf, recordName, recordNameIn, recordsDataSource, resolveTableStyle, rowName, rowNameIn, setPersonTimeZone, singularNoun, styleFromDecorations, subscribePersonTimeZone, tableName, tablePickerEntries, tableRightsAt, whenWords, withheldNoticeOf, withheldSentence };
package/dist/helpers.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { globalSlot } from '@ai-matrx/kit/global-slot';
2
2
  import { setColorRuleTimeZone } from '@ai-matrx/design-system/data-table/table-style';
3
- import { DECLARABLE_FIELD_KINDS, NEWER_FIELD_KINDS, PARITY_FIELD_TYPES, KERNEL_TABLES, atLeast, fieldKindFor, isButtonField, newerKindOf } from '@ai-matrx/records';
3
+ import { DECLARABLE_FIELD_KINDS, NEWER_FIELD_KINDS, PARITY_FIELD_TYPES, KERNEL_TABLES, atLeast, fieldKindFor, isButtonField, newerKindOf } from '@ai-matrx/records/core';
4
+ export { DEFAULT_FIELDS, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
4
5
  import { isUuidShape } from '@ai-matrx/kit/uuid';
5
6
  import { humanizeIdentifier } from '@ai-matrx/kit/text-case';
6
7
  import { formatRelativeTime } from '@ai-matrx/kit/format';
7
- export { DEFAULT_FIELDS, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
8
8
  import '@ai-matrx/design-system/field-formats';
9
9
 
10
10
  // src/dataSource.ts