@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.
- package/CHANGELOG.md +26 -0
- package/dist/first-page.cjs +1 -1
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.js +1 -1
- package/dist/first-page.js.map +1 -1
- package/dist/helpers.cjs +15 -15
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +8 -8
- package/dist/helpers.d.ts +8 -8
- package/dist/helpers.js +2 -2
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +162 -153
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +53 -44
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs +6 -6
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.d.cts +2 -2
- package/dist/object-actions.d.ts +2 -2
- package/dist/object-actions.js +2 -2
- package/dist/object-actions.js.map +1 -1
- package/dist/{objectActions-CfzhrXHK.d.cts → objectActions-5ffQXgZn.d.cts} +3 -3
- package/dist/{objectActions-CfzhrXHK.d.ts → objectActions-5ffQXgZn.d.ts} +3 -3
- package/dist/pickers.cjs +64 -60
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +21 -17
- package/dist/pickers.js.map +1 -1
- package/package.json +3 -3
package/dist/helpers.d.cts
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
|
|
3
|
-
export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } 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, 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3
|
-
export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } 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, 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/
|
|
4
|
-
export { DEFAULT_FIELDS, addFields, declareTable, fieldDeclarationFor, tokenFor } 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/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';
|