@ai-matrx/records-ui 0.101.9 → 0.101.11
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 +15 -0
- package/dist/index.cjs +4930 -4313
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +4476 -3849
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2944,6 +2944,19 @@ declare function TableRenameDialog({ tableId, name, open, onOpenChange, onRename
|
|
|
2944
2944
|
onRenamed?: ((name: string) => void) | undefined;
|
|
2945
2945
|
}): react.JSX.Element;
|
|
2946
2946
|
|
|
2947
|
+
/** The view's column look, when the host has one to change: which columns are hidden, and its own order. */
|
|
2948
|
+
interface ColumnsLook {
|
|
2949
|
+
/** Field keys the view hides. */
|
|
2950
|
+
hidden: readonly string[];
|
|
2951
|
+
/** The view's own column order (field keys), or null when the view draws in the table's order. */
|
|
2952
|
+
order: readonly string[] | null;
|
|
2953
|
+
/** Write the view's next look. `order` is null when the view keeps no order of its own. */
|
|
2954
|
+
onChange: (next: {
|
|
2955
|
+
hidden: string[];
|
|
2956
|
+
order: string[] | null;
|
|
2957
|
+
}) => Promise<unknown> | unknown;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2947
2960
|
interface FieldProposalRow {
|
|
2948
2961
|
id: string;
|
|
2949
2962
|
/** What the agent proposed, in the Field shape the store would store. */
|
|
@@ -2972,9 +2985,14 @@ interface TableSettingsProps {
|
|
|
2972
2985
|
* confirm above it. One archive path, whichever control pressed it.
|
|
2973
2986
|
*/
|
|
2974
2987
|
archiveAsked?: number | undefined;
|
|
2988
|
+
/**
|
|
2989
|
+
* The open view's column look (hidden columns, its own order), when the host has one: the
|
|
2990
|
+
* columns list then shows and hides columns, and its one Save writes the look too.
|
|
2991
|
+
*/
|
|
2992
|
+
columns?: ColumnsLook | undefined;
|
|
2975
2993
|
className?: string | undefined;
|
|
2976
2994
|
}
|
|
2977
|
-
declare function TableSettings({ tableId, proposals, onAcceptProposal, onRejectProposal, archiveAsked, className, }: TableSettingsProps): react.JSX.Element;
|
|
2995
|
+
declare function TableSettings({ tableId, proposals, onAcceptProposal, onRejectProposal, archiveAsked, columns, className, }: TableSettingsProps): react.JSX.Element;
|
|
2978
2996
|
|
|
2979
2997
|
/** Whether a Table document marks the table as Foundation. Absent is no — the store's own rule. */
|
|
2980
2998
|
declare function isFoundationTable(table: Pick<Table, "foundation"> | {
|
package/dist/index.d.ts
CHANGED
|
@@ -2944,6 +2944,19 @@ declare function TableRenameDialog({ tableId, name, open, onOpenChange, onRename
|
|
|
2944
2944
|
onRenamed?: ((name: string) => void) | undefined;
|
|
2945
2945
|
}): react.JSX.Element;
|
|
2946
2946
|
|
|
2947
|
+
/** The view's column look, when the host has one to change: which columns are hidden, and its own order. */
|
|
2948
|
+
interface ColumnsLook {
|
|
2949
|
+
/** Field keys the view hides. */
|
|
2950
|
+
hidden: readonly string[];
|
|
2951
|
+
/** The view's own column order (field keys), or null when the view draws in the table's order. */
|
|
2952
|
+
order: readonly string[] | null;
|
|
2953
|
+
/** Write the view's next look. `order` is null when the view keeps no order of its own. */
|
|
2954
|
+
onChange: (next: {
|
|
2955
|
+
hidden: string[];
|
|
2956
|
+
order: string[] | null;
|
|
2957
|
+
}) => Promise<unknown> | unknown;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2947
2960
|
interface FieldProposalRow {
|
|
2948
2961
|
id: string;
|
|
2949
2962
|
/** What the agent proposed, in the Field shape the store would store. */
|
|
@@ -2972,9 +2985,14 @@ interface TableSettingsProps {
|
|
|
2972
2985
|
* confirm above it. One archive path, whichever control pressed it.
|
|
2973
2986
|
*/
|
|
2974
2987
|
archiveAsked?: number | undefined;
|
|
2988
|
+
/**
|
|
2989
|
+
* The open view's column look (hidden columns, its own order), when the host has one: the
|
|
2990
|
+
* columns list then shows and hides columns, and its one Save writes the look too.
|
|
2991
|
+
*/
|
|
2992
|
+
columns?: ColumnsLook | undefined;
|
|
2975
2993
|
className?: string | undefined;
|
|
2976
2994
|
}
|
|
2977
|
-
declare function TableSettings({ tableId, proposals, onAcceptProposal, onRejectProposal, archiveAsked, className, }: TableSettingsProps): react.JSX.Element;
|
|
2995
|
+
declare function TableSettings({ tableId, proposals, onAcceptProposal, onRejectProposal, archiveAsked, columns, className, }: TableSettingsProps): react.JSX.Element;
|
|
2978
2996
|
|
|
2979
2997
|
/** Whether a Table document marks the table as Foundation. Absent is no — the store's own rule. */
|
|
2980
2998
|
declare function isFoundationTable(table: Pick<Table, "foundation"> | {
|