@ai-matrx/records-ui 0.115.39 → 0.115.40
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 +12 -0
- package/dist/index.cjs +229 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +226 -105
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -845,6 +845,13 @@ interface RecordsUiHost {
|
|
|
845
845
|
* Never a Share button that opens nothing.
|
|
846
846
|
*/
|
|
847
847
|
share?: (subject: ShareSubject) => ReactNode;
|
|
848
|
+
/**
|
|
849
|
+
* OPTIONAL. WHO CAN SEE AND EDIT ONE COLUMN (access-setup PLAN §12, Store Tables). The column header's
|
|
850
|
+
* "Who can see and edit…" item hands the column to this port, which returns the host's People involved
|
|
851
|
+
* panel (it says who loses sight before anything is saved; table admins change it, never an agent).
|
|
852
|
+
* Unbound, the item is ABSENT. The grid owns open/closed; the host owns the panel.
|
|
853
|
+
*/
|
|
854
|
+
columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
|
|
848
855
|
/**
|
|
849
856
|
* OPTIONAL. THE ARCHIVED-ORGANIZATION DOOR (lane ARCHIVED-ORG-RESTORE). When the store refuses because the
|
|
850
857
|
* organization is archived, `RefusalNotice` says so and asks this port two things: `state` - may THIS person
|
|
@@ -993,6 +1000,17 @@ interface ShareSubject {
|
|
|
993
1000
|
/** Close the dialog. The control owns the open/closed state, the host owns the dialog. */
|
|
994
1001
|
onClose: () => void;
|
|
995
1002
|
}
|
|
1003
|
+
/** One column, handed to the host's "Who can see and edit" panel. */
|
|
1004
|
+
interface ColumnAccessSubject {
|
|
1005
|
+
tableId: Uuid;
|
|
1006
|
+
fieldId: Uuid;
|
|
1007
|
+
/** The column's name as the grid shows it. */
|
|
1008
|
+
name: string;
|
|
1009
|
+
/** Close the panel. */
|
|
1010
|
+
onClose: () => void;
|
|
1011
|
+
/** Called after the panel saved a change, so the grid re-reads the Table's columns. */
|
|
1012
|
+
onChanged: () => void;
|
|
1013
|
+
}
|
|
996
1014
|
/** One member of the organization, in the words a person reads. */
|
|
997
1015
|
interface OrganizationMember {
|
|
998
1016
|
/** The platform's user id. This is what a Person record carries as `user_id`. */
|
|
@@ -2286,9 +2304,16 @@ interface ImportWizardProps {
|
|
|
2286
2304
|
* needs to refresh behind the panel — never for closing it.
|
|
2287
2305
|
*/
|
|
2288
2306
|
onWrote?: ((written: number) => void) | undefined;
|
|
2307
|
+
/**
|
|
2308
|
+
* A BRAND-NEW TABLE HAS NOTHING TO REVIEW (2026-10-11). "Next: columns" in the New table window
|
|
2309
|
+
* made the table and stopped at this screen; a person who read the button as "make my table" was
|
|
2310
|
+
* left with an empty table holding only Title. With `autoRun` the import runs by itself the moment
|
|
2311
|
+
* the plan is ready and the Import button would be pressable, and the report is what is shown.
|
|
2312
|
+
*/
|
|
2313
|
+
autoRun?: boolean | undefined;
|
|
2289
2314
|
className?: string | undefined;
|
|
2290
2315
|
}
|
|
2291
|
-
declare function ImportWizard({ tableId, source, onDone, onWrote, className }: ImportWizardProps): react.JSX.Element;
|
|
2316
|
+
declare function ImportWizard({ tableId, source, onDone, onWrote, autoRun, className }: ImportWizardProps): react.JSX.Element;
|
|
2292
2317
|
|
|
2293
2318
|
/** The run a table's notice is about: the newest finished one that refused rows. */
|
|
2294
2319
|
declare function runToNotice(runs: ReadonlyArray<ImportRun>): ImportRun | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -845,6 +845,13 @@ interface RecordsUiHost {
|
|
|
845
845
|
* Never a Share button that opens nothing.
|
|
846
846
|
*/
|
|
847
847
|
share?: (subject: ShareSubject) => ReactNode;
|
|
848
|
+
/**
|
|
849
|
+
* OPTIONAL. WHO CAN SEE AND EDIT ONE COLUMN (access-setup PLAN §12, Store Tables). The column header's
|
|
850
|
+
* "Who can see and edit…" item hands the column to this port, which returns the host's People involved
|
|
851
|
+
* panel (it says who loses sight before anything is saved; table admins change it, never an agent).
|
|
852
|
+
* Unbound, the item is ABSENT. The grid owns open/closed; the host owns the panel.
|
|
853
|
+
*/
|
|
854
|
+
columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
|
|
848
855
|
/**
|
|
849
856
|
* OPTIONAL. THE ARCHIVED-ORGANIZATION DOOR (lane ARCHIVED-ORG-RESTORE). When the store refuses because the
|
|
850
857
|
* organization is archived, `RefusalNotice` says so and asks this port two things: `state` - may THIS person
|
|
@@ -993,6 +1000,17 @@ interface ShareSubject {
|
|
|
993
1000
|
/** Close the dialog. The control owns the open/closed state, the host owns the dialog. */
|
|
994
1001
|
onClose: () => void;
|
|
995
1002
|
}
|
|
1003
|
+
/** One column, handed to the host's "Who can see and edit" panel. */
|
|
1004
|
+
interface ColumnAccessSubject {
|
|
1005
|
+
tableId: Uuid;
|
|
1006
|
+
fieldId: Uuid;
|
|
1007
|
+
/** The column's name as the grid shows it. */
|
|
1008
|
+
name: string;
|
|
1009
|
+
/** Close the panel. */
|
|
1010
|
+
onClose: () => void;
|
|
1011
|
+
/** Called after the panel saved a change, so the grid re-reads the Table's columns. */
|
|
1012
|
+
onChanged: () => void;
|
|
1013
|
+
}
|
|
996
1014
|
/** One member of the organization, in the words a person reads. */
|
|
997
1015
|
interface OrganizationMember {
|
|
998
1016
|
/** The platform's user id. This is what a Person record carries as `user_id`. */
|
|
@@ -2286,9 +2304,16 @@ interface ImportWizardProps {
|
|
|
2286
2304
|
* needs to refresh behind the panel — never for closing it.
|
|
2287
2305
|
*/
|
|
2288
2306
|
onWrote?: ((written: number) => void) | undefined;
|
|
2307
|
+
/**
|
|
2308
|
+
* A BRAND-NEW TABLE HAS NOTHING TO REVIEW (2026-10-11). "Next: columns" in the New table window
|
|
2309
|
+
* made the table and stopped at this screen; a person who read the button as "make my table" was
|
|
2310
|
+
* left with an empty table holding only Title. With `autoRun` the import runs by itself the moment
|
|
2311
|
+
* the plan is ready and the Import button would be pressable, and the report is what is shown.
|
|
2312
|
+
*/
|
|
2313
|
+
autoRun?: boolean | undefined;
|
|
2289
2314
|
className?: string | undefined;
|
|
2290
2315
|
}
|
|
2291
|
-
declare function ImportWizard({ tableId, source, onDone, onWrote, className }: ImportWizardProps): react.JSX.Element;
|
|
2316
|
+
declare function ImportWizard({ tableId, source, onDone, onWrote, autoRun, className }: ImportWizardProps): react.JSX.Element;
|
|
2292
2317
|
|
|
2293
2318
|
/** The run a table's notice is about: the newest finished one that refused rows. */
|
|
2294
2319
|
declare function runToNotice(runs: ReadonlyArray<ImportRun>): ImportRun | null;
|