@ai-matrx/records-ui 0.102.21 → 0.103.2
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 +21 -0
- package/dist/index.cjs +202 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +202 -62
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +10 -2
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +10 -2
- package/dist/pickers.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2270,6 +2270,11 @@ interface GridProps {
|
|
|
2270
2270
|
searchOverride?: string | null | undefined;
|
|
2271
2271
|
/** Every change of the term, from the embedded magnifier or the override (a controlled host's echo). */
|
|
2272
2272
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
2273
|
+
/**
|
|
2274
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
2275
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
2276
|
+
*/
|
|
2277
|
+
searchBox?: boolean | undefined;
|
|
2273
2278
|
/** The new-row line's words ("New page"). Default "Add row". */
|
|
2274
2279
|
newRowLabel?: string | undefined;
|
|
2275
2280
|
/**
|
|
@@ -2988,6 +2993,12 @@ interface ConditionGroupProps {
|
|
|
2988
2993
|
* person builds them — the depth the store compiles.
|
|
2989
2994
|
*/
|
|
2990
2995
|
allowNesting?: boolean;
|
|
2996
|
+
/**
|
|
2997
|
+
* How many levels of groups a person may make below the whole condition (Notion's advanced
|
|
2998
|
+
* filter: 2 — a group, and a group inside it). Left out, no limit. A deeper saved question still
|
|
2999
|
+
* draws; only "Add a group" stops at the limit.
|
|
3000
|
+
*/
|
|
3001
|
+
maxDepth?: number | undefined;
|
|
2991
3002
|
/** How deep this group sits (0 = the whole condition). Set by the builder itself. */
|
|
2992
3003
|
depth?: number;
|
|
2993
3004
|
/** A nested group can take itself away; the outermost one cannot. */
|
|
@@ -3000,7 +3011,7 @@ interface ConditionGroupProps {
|
|
|
3000
3011
|
* writing one condition never meets a control for a problem they do not have. A nested group
|
|
3001
3012
|
* always shows its joiner: it is a box with its own and / or, and that is the whole point of it.
|
|
3002
3013
|
*/
|
|
3003
|
-
declare function ConditionGroup({ lead, expr, fields, onChange, emptyLabel, allowNesting, depth, onRemove, className, }: ConditionGroupProps): react.JSX.Element;
|
|
3014
|
+
declare function ConditionGroup({ lead, expr, fields, onChange, emptyLabel, allowNesting, maxDepth, depth, onRemove, className, }: ConditionGroupProps): react.JSX.Element;
|
|
3004
3015
|
|
|
3005
3016
|
/** The longest name a table keeps; a longer one is said, never cut. */
|
|
3006
3017
|
declare const TABLE_NAME_MAX = 120;
|
|
@@ -3219,6 +3230,12 @@ interface PickOrAddChip {
|
|
|
3219
3230
|
interface PickOrAddProps {
|
|
3220
3231
|
/** The trigger's accessible name, e.g. "Pick for Category". */
|
|
3221
3232
|
triggerLabel: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* The trigger's height. "field" (the default) is the height of the text box beside it in a form
|
|
3235
|
+
* (WALK3-FIX, 2026-10-07: Pick/Choose sat 4px shorter than the date box in the same grid row);
|
|
3236
|
+
* "compact" keeps the small button a filter row or a chooser draws.
|
|
3237
|
+
*/
|
|
3238
|
+
triggerSize?: "field" | "compact" | undefined;
|
|
3222
3239
|
/** The trigger's visible word, e.g. "Pick", "Change", "Choose". */
|
|
3223
3240
|
triggerText: string;
|
|
3224
3241
|
triggerId?: string | undefined;
|
|
@@ -3271,7 +3288,7 @@ interface PickOrAddProps {
|
|
|
3271
3288
|
*/
|
|
3272
3289
|
multi?: boolean | undefined;
|
|
3273
3290
|
}
|
|
3274
|
-
declare function PickOrAdd({ triggerLabel, triggerText, triggerId, open, onOpenChange, search, onSearch, items, onPick, notice, empty, add, foot, footNote, onEnterWithNoMatch, anchored, children, chips, multi, onEscape, }: PickOrAddProps): react.JSX.Element;
|
|
3291
|
+
declare function PickOrAdd({ triggerSize, triggerLabel, triggerText, triggerId, open, onOpenChange, search, onSearch, items, onPick, notice, empty, add, foot, footNote, onEnterWithNoMatch, anchored, children, chips, multi, onEscape, }: PickOrAddProps): react.JSX.Element;
|
|
3275
3292
|
|
|
3276
3293
|
/** What the panel says while the chosen list is empty. */
|
|
3277
3294
|
declare const ENTITY_REFERENCE_KINDS_MISSING = "Choose at least one kind of thing this column points at.";
|
|
@@ -3980,6 +3997,11 @@ interface ViewSwitcherProps {
|
|
|
3980
3997
|
/** The viewer's own search (`GridProps.searchOverride`): this viewer only, never saved, asked of the store. */
|
|
3981
3998
|
searchOverride?: string | null | undefined;
|
|
3982
3999
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
4000
|
+
/**
|
|
4001
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
4002
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
4003
|
+
*/
|
|
4004
|
+
searchBox?: boolean | undefined;
|
|
3983
4005
|
/** The grid's new-row line words (`GridProps.newRowLabel`). */
|
|
3984
4006
|
newRowLabel?: string | undefined;
|
|
3985
4007
|
className?: string | undefined;
|
|
@@ -4011,7 +4033,7 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
|
|
|
4011
4033
|
*/
|
|
4012
4034
|
membership: string;
|
|
4013
4035
|
};
|
|
4014
|
-
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onCloseRecord, onMoved, onNewRecordForm, onAskWhoChanged, pageSize: pageSizeAsked, titleField, filter, onClearFilter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, embedded, sortOverride, searchOverride, onSearchChange, newRowLabel, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
4036
|
+
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onCloseRecord, onMoved, onNewRecordForm, onAskWhoChanged, pageSize: pageSizeAsked, titleField, filter, onClearFilter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, embedded, sortOverride, searchOverride, onSearchChange, searchBox, newRowLabel, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
4015
4037
|
|
|
4016
4038
|
type CalendarMode = "month" | "week" | "day" | "list";
|
|
4017
4039
|
interface CalendarViewProps {
|
|
@@ -6066,6 +6088,11 @@ interface TablePageProps$1 {
|
|
|
6066
6088
|
*/
|
|
6067
6089
|
searchOverride?: string | null | undefined;
|
|
6068
6090
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
6091
|
+
/**
|
|
6092
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
6093
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
6094
|
+
*/
|
|
6095
|
+
searchBox?: boolean | undefined;
|
|
6069
6096
|
/** Rows per page for every layout. */
|
|
6070
6097
|
pageSize?: number | undefined;
|
|
6071
6098
|
/**
|
|
@@ -6544,6 +6571,11 @@ interface EntityTablePageProps {
|
|
|
6544
6571
|
/** The viewer's own search, handed by the host; asked of the door. Never saved. */
|
|
6545
6572
|
searchOverride?: string | null | undefined;
|
|
6546
6573
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
6574
|
+
/**
|
|
6575
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
6576
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
6577
|
+
*/
|
|
6578
|
+
searchBox?: boolean | undefined;
|
|
6547
6579
|
/** Beside the title row's controls (the host's own). */
|
|
6548
6580
|
actions?: ReactNode;
|
|
6549
6581
|
className?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -2270,6 +2270,11 @@ interface GridProps {
|
|
|
2270
2270
|
searchOverride?: string | null | undefined;
|
|
2271
2271
|
/** Every change of the term, from the embedded magnifier or the override (a controlled host's echo). */
|
|
2272
2272
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
2273
|
+
/**
|
|
2274
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
2275
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
2276
|
+
*/
|
|
2277
|
+
searchBox?: boolean | undefined;
|
|
2273
2278
|
/** The new-row line's words ("New page"). Default "Add row". */
|
|
2274
2279
|
newRowLabel?: string | undefined;
|
|
2275
2280
|
/**
|
|
@@ -2988,6 +2993,12 @@ interface ConditionGroupProps {
|
|
|
2988
2993
|
* person builds them — the depth the store compiles.
|
|
2989
2994
|
*/
|
|
2990
2995
|
allowNesting?: boolean;
|
|
2996
|
+
/**
|
|
2997
|
+
* How many levels of groups a person may make below the whole condition (Notion's advanced
|
|
2998
|
+
* filter: 2 — a group, and a group inside it). Left out, no limit. A deeper saved question still
|
|
2999
|
+
* draws; only "Add a group" stops at the limit.
|
|
3000
|
+
*/
|
|
3001
|
+
maxDepth?: number | undefined;
|
|
2991
3002
|
/** How deep this group sits (0 = the whole condition). Set by the builder itself. */
|
|
2992
3003
|
depth?: number;
|
|
2993
3004
|
/** A nested group can take itself away; the outermost one cannot. */
|
|
@@ -3000,7 +3011,7 @@ interface ConditionGroupProps {
|
|
|
3000
3011
|
* writing one condition never meets a control for a problem they do not have. A nested group
|
|
3001
3012
|
* always shows its joiner: it is a box with its own and / or, and that is the whole point of it.
|
|
3002
3013
|
*/
|
|
3003
|
-
declare function ConditionGroup({ lead, expr, fields, onChange, emptyLabel, allowNesting, depth, onRemove, className, }: ConditionGroupProps): react.JSX.Element;
|
|
3014
|
+
declare function ConditionGroup({ lead, expr, fields, onChange, emptyLabel, allowNesting, maxDepth, depth, onRemove, className, }: ConditionGroupProps): react.JSX.Element;
|
|
3004
3015
|
|
|
3005
3016
|
/** The longest name a table keeps; a longer one is said, never cut. */
|
|
3006
3017
|
declare const TABLE_NAME_MAX = 120;
|
|
@@ -3219,6 +3230,12 @@ interface PickOrAddChip {
|
|
|
3219
3230
|
interface PickOrAddProps {
|
|
3220
3231
|
/** The trigger's accessible name, e.g. "Pick for Category". */
|
|
3221
3232
|
triggerLabel: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* The trigger's height. "field" (the default) is the height of the text box beside it in a form
|
|
3235
|
+
* (WALK3-FIX, 2026-10-07: Pick/Choose sat 4px shorter than the date box in the same grid row);
|
|
3236
|
+
* "compact" keeps the small button a filter row or a chooser draws.
|
|
3237
|
+
*/
|
|
3238
|
+
triggerSize?: "field" | "compact" | undefined;
|
|
3222
3239
|
/** The trigger's visible word, e.g. "Pick", "Change", "Choose". */
|
|
3223
3240
|
triggerText: string;
|
|
3224
3241
|
triggerId?: string | undefined;
|
|
@@ -3271,7 +3288,7 @@ interface PickOrAddProps {
|
|
|
3271
3288
|
*/
|
|
3272
3289
|
multi?: boolean | undefined;
|
|
3273
3290
|
}
|
|
3274
|
-
declare function PickOrAdd({ triggerLabel, triggerText, triggerId, open, onOpenChange, search, onSearch, items, onPick, notice, empty, add, foot, footNote, onEnterWithNoMatch, anchored, children, chips, multi, onEscape, }: PickOrAddProps): react.JSX.Element;
|
|
3291
|
+
declare function PickOrAdd({ triggerSize, triggerLabel, triggerText, triggerId, open, onOpenChange, search, onSearch, items, onPick, notice, empty, add, foot, footNote, onEnterWithNoMatch, anchored, children, chips, multi, onEscape, }: PickOrAddProps): react.JSX.Element;
|
|
3275
3292
|
|
|
3276
3293
|
/** What the panel says while the chosen list is empty. */
|
|
3277
3294
|
declare const ENTITY_REFERENCE_KINDS_MISSING = "Choose at least one kind of thing this column points at.";
|
|
@@ -3980,6 +3997,11 @@ interface ViewSwitcherProps {
|
|
|
3980
3997
|
/** The viewer's own search (`GridProps.searchOverride`): this viewer only, never saved, asked of the store. */
|
|
3981
3998
|
searchOverride?: string | null | undefined;
|
|
3982
3999
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
4000
|
+
/**
|
|
4001
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
4002
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
4003
|
+
*/
|
|
4004
|
+
searchBox?: boolean | undefined;
|
|
3983
4005
|
/** The grid's new-row line words (`GridProps.newRowLabel`). */
|
|
3984
4006
|
newRowLabel?: string | undefined;
|
|
3985
4007
|
className?: string | undefined;
|
|
@@ -4011,7 +4033,7 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
|
|
|
4011
4033
|
*/
|
|
4012
4034
|
membership: string;
|
|
4013
4035
|
};
|
|
4014
|
-
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onCloseRecord, onMoved, onNewRecordForm, onAskWhoChanged, pageSize: pageSizeAsked, titleField, filter, onClearFilter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, embedded, sortOverride, searchOverride, onSearchChange, newRowLabel, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
4036
|
+
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onCloseRecord, onMoved, onNewRecordForm, onAskWhoChanged, pageSize: pageSizeAsked, titleField, filter, onClearFilter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, embedded, sortOverride, searchOverride, onSearchChange, searchBox, newRowLabel, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
4015
4037
|
|
|
4016
4038
|
type CalendarMode = "month" | "week" | "day" | "list";
|
|
4017
4039
|
interface CalendarViewProps {
|
|
@@ -6066,6 +6088,11 @@ interface TablePageProps$1 {
|
|
|
6066
6088
|
*/
|
|
6067
6089
|
searchOverride?: string | null | undefined;
|
|
6068
6090
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
6091
|
+
/**
|
|
6092
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
6093
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
6094
|
+
*/
|
|
6095
|
+
searchBox?: boolean | undefined;
|
|
6069
6096
|
/** Rows per page for every layout. */
|
|
6070
6097
|
pageSize?: number | undefined;
|
|
6071
6098
|
/**
|
|
@@ -6544,6 +6571,11 @@ interface EntityTablePageProps {
|
|
|
6544
6571
|
/** The viewer's own search, handed by the host; asked of the door. Never saved. */
|
|
6545
6572
|
searchOverride?: string | null | undefined;
|
|
6546
6573
|
onSearchChange?: ((search: string) => void) | undefined;
|
|
6574
|
+
/**
|
|
6575
|
+
* `false`: the embedded grid draws no magnifier of its own — the host draws one in its own toolbar
|
|
6576
|
+
* row and hands the term through `searchOverride` (Spaces N-19). Default `true`.
|
|
6577
|
+
*/
|
|
6578
|
+
searchBox?: boolean | undefined;
|
|
6547
6579
|
/** Beside the title row's controls (the host's own). */
|
|
6548
6580
|
actions?: ReactNode;
|
|
6549
6581
|
className?: string | undefined;
|