@ai-matrx/records-ui 0.115.106 → 0.115.107

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,6 +1,6 @@
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';
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
+ import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType } from '@ai-matrx/records/field-kinds';
3
+ export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
4
4
  import { ReactNode, KeyboardEvent } from 'react';
5
5
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
6
6
  import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
@@ -1202,7 +1202,7 @@ type EditorKind = FieldKind;
1202
1202
  * It is `fieldKindFor` with this package's kernel ids bound. Nothing here
1203
1203
  * decides anything the core does not.
1204
1204
  */
1205
- declare function editorKindFor(field: Field$1): EditorKind;
1205
+ declare function editorKindFor(field: Field): EditorKind;
1206
1206
  /**
1207
1207
  * WHICH KIND A PERSON PICKED, read back off the Field the store keeps — the ONE reader every
1208
1208
  * "what does this column hold" answer goes through (the Settings column list, the column panel).
@@ -1216,13 +1216,13 @@ declare function editorKindFor(field: Field$1): EditorKind;
1216
1216
  *
1217
1217
  * `undefined` when the Field is none of the kinds the menu offers.
1218
1218
  */
1219
- declare function pickableTypeOf(field: Field$1): PickableFieldType | undefined;
1219
+ declare function pickableTypeOf(field: Field): PickableFieldType | undefined;
1220
1220
  /**
1221
1221
  * The type word a person sees in a header or a settings row — and it is the
1222
1222
  * SAME word the field panel offers, read from `FIELD_TYPE_CHOICES`, so a column
1223
1223
  * added as "Money" is never described anywhere else as "Currency".
1224
1224
  */
1225
- declare function fieldTypeLabel(field: Field$1): string;
1225
+ declare function fieldTypeLabel(field: Field): string;
1226
1226
 
1227
1227
  /** The facts a picker needs about one table, whichever list it came from. */
1228
1228
  interface PickerTable {
@@ -1282,7 +1282,7 @@ declare function tablePickerEntries<T extends PickerTable>(tables: readonly T[],
1282
1282
  * longer resolves to a key) is dropped rather than crashing the whole style — a defect in
1283
1283
  * one rule costs that rule, never the read.
1284
1284
  */
1285
- declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field$1[]): TableStyle;
1285
+ declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field[]): TableStyle;
1286
1286
  /**
1287
1287
  * THE ONE PRESENTATION RESOLVER every colored surface in this package reads —
1288
1288
  * `Grid`, and (via `Card`) the kanban board, the calendar and the gallery.
@@ -1304,6 +1304,6 @@ declare function styleFromDecorations(decorations: TableDecorations | null | und
1304
1304
  * table rule it meant to replace. Per-piece, never all-or-nothing, because a view is a
1305
1305
  * LOOK on top of the table, not a wholesale substitute for it.
1306
1306
  */
1307
- declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field$1[], viewStyle: TableStyle | undefined): TableStyle;
1307
+ declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field[], viewStyle: TableStyle | undefined): TableStyle;
1308
1308
 
1309
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,6 +1,6 @@
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';
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
+ import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType } from '@ai-matrx/records/field-kinds';
3
+ export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
4
4
  import { ReactNode, KeyboardEvent } from 'react';
5
5
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
6
6
  import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
@@ -1202,7 +1202,7 @@ type EditorKind = FieldKind;
1202
1202
  * It is `fieldKindFor` with this package's kernel ids bound. Nothing here
1203
1203
  * decides anything the core does not.
1204
1204
  */
1205
- declare function editorKindFor(field: Field$1): EditorKind;
1205
+ declare function editorKindFor(field: Field): EditorKind;
1206
1206
  /**
1207
1207
  * WHICH KIND A PERSON PICKED, read back off the Field the store keeps — the ONE reader every
1208
1208
  * "what does this column hold" answer goes through (the Settings column list, the column panel).
@@ -1216,13 +1216,13 @@ declare function editorKindFor(field: Field$1): EditorKind;
1216
1216
  *
1217
1217
  * `undefined` when the Field is none of the kinds the menu offers.
1218
1218
  */
1219
- declare function pickableTypeOf(field: Field$1): PickableFieldType | undefined;
1219
+ declare function pickableTypeOf(field: Field): PickableFieldType | undefined;
1220
1220
  /**
1221
1221
  * The type word a person sees in a header or a settings row — and it is the
1222
1222
  * SAME word the field panel offers, read from `FIELD_TYPE_CHOICES`, so a column
1223
1223
  * added as "Money" is never described anywhere else as "Currency".
1224
1224
  */
1225
- declare function fieldTypeLabel(field: Field$1): string;
1225
+ declare function fieldTypeLabel(field: Field): string;
1226
1226
 
1227
1227
  /** The facts a picker needs about one table, whichever list it came from. */
1228
1228
  interface PickerTable {
@@ -1282,7 +1282,7 @@ declare function tablePickerEntries<T extends PickerTable>(tables: readonly T[],
1282
1282
  * longer resolves to a key) is dropped rather than crashing the whole style — a defect in
1283
1283
  * one rule costs that rule, never the read.
1284
1284
  */
1285
- declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field$1[]): TableStyle;
1285
+ declare function styleFromDecorations(decorations: TableDecorations | null | undefined, fields: readonly Field[]): TableStyle;
1286
1286
  /**
1287
1287
  * THE ONE PRESENTATION RESOLVER every colored surface in this package reads —
1288
1288
  * `Grid`, and (via `Card`) the kanban board, the calendar and the gallery.
@@ -1304,6 +1304,6 @@ declare function styleFromDecorations(decorations: TableDecorations | null | und
1304
1304
  * table rule it meant to replace. Per-piece, never all-or-nothing, because a view is a
1305
1305
  * LOOK on top of the table, not a wholesale substitute for it.
1306
1306
  */
1307
- declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field$1[], viewStyle: TableStyle | undefined): TableStyle;
1307
+ declare function resolveTableStyle(decorations: TableDecorations | null | undefined, fields: readonly Field[], viewStyle: TableStyle | undefined): TableStyle;
1308
1308
 
1309
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,7 +1,7 @@
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/core';
4
- export { DEFAULT_FIELDS, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/core';
3
+ import { DECLARABLE_FIELD_KINDS, NEWER_FIELD_KINDS, PARITY_FIELD_TYPES, KERNEL_TABLES, atLeast, fieldKindFor, isButtonField, newerKindOf } from '@ai-matrx/records/field-kinds';
4
+ export { DEFAULT_FIELDS, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
5
5
  import { isUuidShape } from '@ai-matrx/kit/uuid';
6
6
  import { humanizeIdentifier } from '@ai-matrx/kit/text-case';
7
7
  import { formatRelativeTime } from '@ai-matrx/kit/format';