@ai-matrx/records-ui 0.102.4 → 0.102.5
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 +9 -0
- package/dist/index.cjs +585 -511
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +575 -501
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -3999,6 +3999,8 @@ interface CalendarViewProps {
|
|
|
3999
3999
|
dateField: Field$1;
|
|
4000
4000
|
/** The table's columns, for the End and Colour by pickers and the default colour. */
|
|
4001
4001
|
fields?: readonly Field$1[] | undefined;
|
|
4002
|
+
/** The fields each card shows after its title (the view's Card fields, v7 item 4). */
|
|
4003
|
+
cardFields?: readonly Field$1[] | undefined;
|
|
4002
4004
|
/** The far tables' columns, so a lookup of one date is offered as an End (`useFarFields`). */
|
|
4003
4005
|
farFields?: FarFields | undefined;
|
|
4004
4006
|
/**
|
|
@@ -4048,7 +4050,7 @@ declare function packOverlaps<T extends {
|
|
|
4048
4050
|
col: number;
|
|
4049
4051
|
cols: number;
|
|
4050
4052
|
}>;
|
|
4051
|
-
declare function CalendarView({ tableId, rows, dateField, fields, farFields, endKey, onEndFieldChange, endKept, titleField, onOpenRecord, onMoved, onColorFieldChange, canCreate, note, style, defaultMinutes, snapMinutes, initialDate, initialMode, className, }: CalendarViewProps): react.JSX.Element;
|
|
4053
|
+
declare function CalendarView({ cardFields, tableId, rows, dateField, fields, farFields, endKey, onEndFieldChange, endKept, titleField, onOpenRecord, onMoved, onColorFieldChange, canCreate, note, style, defaultMinutes, snapMinutes, initialDate, initialMode, className, }: CalendarViewProps): react.JSX.Element;
|
|
4052
4054
|
|
|
4053
4055
|
type TimelineZoom = "day" | "week" | "month" | "quarter";
|
|
4054
4056
|
declare const TIMELINE_ZOOMS: readonly TimelineZoom[];
|
|
@@ -4060,6 +4062,8 @@ interface TimelineSettings {
|
|
|
4060
4062
|
colorKey: string | null;
|
|
4061
4063
|
}
|
|
4062
4064
|
interface TimelineViewProps {
|
|
4065
|
+
/** The fields each bar shows after its title (the view's Card fields, v7 item 4). */
|
|
4066
|
+
cardFields?: readonly Field$1[] | undefined;
|
|
4063
4067
|
/** The table the records live in — the undo history's table. */
|
|
4064
4068
|
tableId: Uuid;
|
|
4065
4069
|
rows: readonly ReadRow$1[];
|
|
@@ -4097,7 +4101,7 @@ interface TimelineViewProps {
|
|
|
4097
4101
|
declare function onlyCandidate(candidates: readonly Field$1[]): string | null;
|
|
4098
4102
|
/** The columns a timeline can lay lanes out by: a choice, a person, a link, yes / no, or a worked-out column. */
|
|
4099
4103
|
declare function groupableFields(all: readonly Field$1[]): Field$1[];
|
|
4100
|
-
declare function TimelineView({ tableId, rows, fields, farFields, titleField, startKey, endKey, groupKey, colorKey, onSettingsChange, layoutKept, onOpenRecord, onMoved, note, style, initialZoom, initialDate, className, }: TimelineViewProps): react.JSX.Element;
|
|
4104
|
+
declare function TimelineView({ cardFields, tableId, rows, fields, farFields, titleField, startKey, endKey, groupKey, colorKey, onSettingsChange, layoutKept, onOpenRecord, onMoved, note, style, initialZoom, initialDate, className, }: TimelineViewProps): react.JSX.Element;
|
|
4101
4105
|
|
|
4102
4106
|
/** The colour of each record's card under `colorKey` (null: the table's own decorations only). */
|
|
4103
4107
|
declare function useRowColorBy(all: readonly Field$1[], colorKey: string | null, style?: TableStyle | undefined): (row: ReadRow$1) => StyleColor | null;
|
|
@@ -6755,9 +6759,11 @@ interface PipelineBoardProps {
|
|
|
6755
6759
|
* item 5) — `ViewSwitcher` hands the ones its view shows. Left out, cards carry none.
|
|
6756
6760
|
*/
|
|
6757
6761
|
dateFields?: readonly Field$1[] | undefined;
|
|
6762
|
+
/** This person may make records here: each stage ends in "+ New" (Notion's board, v7 item 4). */
|
|
6763
|
+
canAdd?: boolean | undefined;
|
|
6758
6764
|
className?: string | undefined;
|
|
6759
6765
|
}
|
|
6760
|
-
declare function PipelineBoard({ tableId, rows, titleKey, measure, filter, onMeasureChange, onOpenRecord, onMoved, onChanged, style, dateFields, className, }: PipelineBoardProps): react.JSX.Element;
|
|
6766
|
+
declare function PipelineBoard({ tableId, rows, titleKey, measure, filter, onMeasureChange, onOpenRecord, onMoved, onChanged, style, dateFields, canAdd, className, }: PipelineBoardProps): react.JSX.Element;
|
|
6761
6767
|
|
|
6762
6768
|
/** The source's Dimensions, as the door says them; a choice and a relation read by their words. */
|
|
6763
6769
|
declare function drillDimensionsOf(def: DrillDefinition | null, labels: ReadonlyMap<string, ReadonlyMap<string, string>>): MatrxDrillDimension[];
|
package/dist/index.d.ts
CHANGED
|
@@ -3999,6 +3999,8 @@ interface CalendarViewProps {
|
|
|
3999
3999
|
dateField: Field$1;
|
|
4000
4000
|
/** The table's columns, for the End and Colour by pickers and the default colour. */
|
|
4001
4001
|
fields?: readonly Field$1[] | undefined;
|
|
4002
|
+
/** The fields each card shows after its title (the view's Card fields, v7 item 4). */
|
|
4003
|
+
cardFields?: readonly Field$1[] | undefined;
|
|
4002
4004
|
/** The far tables' columns, so a lookup of one date is offered as an End (`useFarFields`). */
|
|
4003
4005
|
farFields?: FarFields | undefined;
|
|
4004
4006
|
/**
|
|
@@ -4048,7 +4050,7 @@ declare function packOverlaps<T extends {
|
|
|
4048
4050
|
col: number;
|
|
4049
4051
|
cols: number;
|
|
4050
4052
|
}>;
|
|
4051
|
-
declare function CalendarView({ tableId, rows, dateField, fields, farFields, endKey, onEndFieldChange, endKept, titleField, onOpenRecord, onMoved, onColorFieldChange, canCreate, note, style, defaultMinutes, snapMinutes, initialDate, initialMode, className, }: CalendarViewProps): react.JSX.Element;
|
|
4053
|
+
declare function CalendarView({ cardFields, tableId, rows, dateField, fields, farFields, endKey, onEndFieldChange, endKept, titleField, onOpenRecord, onMoved, onColorFieldChange, canCreate, note, style, defaultMinutes, snapMinutes, initialDate, initialMode, className, }: CalendarViewProps): react.JSX.Element;
|
|
4052
4054
|
|
|
4053
4055
|
type TimelineZoom = "day" | "week" | "month" | "quarter";
|
|
4054
4056
|
declare const TIMELINE_ZOOMS: readonly TimelineZoom[];
|
|
@@ -4060,6 +4062,8 @@ interface TimelineSettings {
|
|
|
4060
4062
|
colorKey: string | null;
|
|
4061
4063
|
}
|
|
4062
4064
|
interface TimelineViewProps {
|
|
4065
|
+
/** The fields each bar shows after its title (the view's Card fields, v7 item 4). */
|
|
4066
|
+
cardFields?: readonly Field$1[] | undefined;
|
|
4063
4067
|
/** The table the records live in — the undo history's table. */
|
|
4064
4068
|
tableId: Uuid;
|
|
4065
4069
|
rows: readonly ReadRow$1[];
|
|
@@ -4097,7 +4101,7 @@ interface TimelineViewProps {
|
|
|
4097
4101
|
declare function onlyCandidate(candidates: readonly Field$1[]): string | null;
|
|
4098
4102
|
/** The columns a timeline can lay lanes out by: a choice, a person, a link, yes / no, or a worked-out column. */
|
|
4099
4103
|
declare function groupableFields(all: readonly Field$1[]): Field$1[];
|
|
4100
|
-
declare function TimelineView({ tableId, rows, fields, farFields, titleField, startKey, endKey, groupKey, colorKey, onSettingsChange, layoutKept, onOpenRecord, onMoved, note, style, initialZoom, initialDate, className, }: TimelineViewProps): react.JSX.Element;
|
|
4104
|
+
declare function TimelineView({ cardFields, tableId, rows, fields, farFields, titleField, startKey, endKey, groupKey, colorKey, onSettingsChange, layoutKept, onOpenRecord, onMoved, note, style, initialZoom, initialDate, className, }: TimelineViewProps): react.JSX.Element;
|
|
4101
4105
|
|
|
4102
4106
|
/** The colour of each record's card under `colorKey` (null: the table's own decorations only). */
|
|
4103
4107
|
declare function useRowColorBy(all: readonly Field$1[], colorKey: string | null, style?: TableStyle | undefined): (row: ReadRow$1) => StyleColor | null;
|
|
@@ -6755,9 +6759,11 @@ interface PipelineBoardProps {
|
|
|
6755
6759
|
* item 5) — `ViewSwitcher` hands the ones its view shows. Left out, cards carry none.
|
|
6756
6760
|
*/
|
|
6757
6761
|
dateFields?: readonly Field$1[] | undefined;
|
|
6762
|
+
/** This person may make records here: each stage ends in "+ New" (Notion's board, v7 item 4). */
|
|
6763
|
+
canAdd?: boolean | undefined;
|
|
6758
6764
|
className?: string | undefined;
|
|
6759
6765
|
}
|
|
6760
|
-
declare function PipelineBoard({ tableId, rows, titleKey, measure, filter, onMeasureChange, onOpenRecord, onMoved, onChanged, style, dateFields, className, }: PipelineBoardProps): react.JSX.Element;
|
|
6766
|
+
declare function PipelineBoard({ tableId, rows, titleKey, measure, filter, onMeasureChange, onOpenRecord, onMoved, onChanged, style, dateFields, canAdd, className, }: PipelineBoardProps): react.JSX.Element;
|
|
6761
6767
|
|
|
6762
6768
|
/** The source's Dimensions, as the door says them; a choice and a relation read by their words. */
|
|
6763
6769
|
declare function drillDimensionsOf(def: DrillDefinition | null, labels: ReadonlyMap<string, ReadonlyMap<string, string>>): MatrxDrillDimension[];
|