@ai-matrx/records-ui 0.92.1 → 0.93.0
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 +25 -0
- package/dist/index.cjs +3631 -3409
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +3393 -3171
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1821,6 +1821,13 @@ interface GridProps {
|
|
|
1821
1821
|
* the store compiles both into the one WHERE clause.
|
|
1822
1822
|
*/
|
|
1823
1823
|
filter?: StoreFilter$1 | undefined;
|
|
1824
|
+
/**
|
|
1825
|
+
* Clear the question `filter` carries (the view's own filter), for the "No rows match these
|
|
1826
|
+
* filters" screen's Clear filters. Left out, that screen clears only the grid's own search and
|
|
1827
|
+
* column filters, and when `filter` alone holds every row back it says so instead of offering a
|
|
1828
|
+
* button that could not clear it.
|
|
1829
|
+
*/
|
|
1830
|
+
onClearFilter?: (() => void) | undefined;
|
|
1824
1831
|
/** Opened from a row's handle, Space or the row menu. A host that has a record page passes its own. */
|
|
1825
1832
|
onOpenRecord?: ((recordId: Uuid) => void) | undefined;
|
|
1826
1833
|
/**
|
|
@@ -1889,7 +1896,7 @@ interface GridProps {
|
|
|
1889
1896
|
footer?: FooterPlacement | undefined;
|
|
1890
1897
|
className?: string | undefined;
|
|
1891
1898
|
}
|
|
1892
|
-
declare function Grid({ tableId, pageSize, filter, onOpenRecord, openRecordId, onAddField, onNewRecordForm, toolbarActions, editable, presentation, onPresentationChange, viewOrder, footer, className, onAskWhoChanged, }: GridProps): react.JSX.Element;
|
|
1899
|
+
declare function Grid({ tableId, pageSize, filter, onClearFilter, onOpenRecord, openRecordId, onAddField, onNewRecordForm, toolbarActions, editable, presentation, onPresentationChange, viewOrder, footer, className, onAskWhoChanged, }: GridProps): react.JSX.Element;
|
|
1893
1900
|
|
|
1894
1901
|
/** Answers "what is the record with this id called", for one Field's values. */
|
|
1895
1902
|
type LabelLookup = (field: Field$1, id: string) => string | null;
|
|
@@ -2771,6 +2778,11 @@ interface ViewSwitcherProps {
|
|
|
2771
2778
|
* store's Rule shape). The grid, the board's headings and the numbers all ask it.
|
|
2772
2779
|
*/
|
|
2773
2780
|
filter?: StoreFilter | undefined;
|
|
2781
|
+
/**
|
|
2782
|
+
* Clear the question `filter` carries, for the "No rows match these filters" screen of every
|
|
2783
|
+
* layout. Left out, that screen says the view's filter holds every row back without a button.
|
|
2784
|
+
*/
|
|
2785
|
+
onClearFilter?: (() => void) | undefined;
|
|
2774
2786
|
/**
|
|
2775
2787
|
* The HOST layout showing now (`RecordsUiHost.layouts`, by id), or null for the
|
|
2776
2788
|
* package's own. Controlled by the page, because the address names it.
|
|
@@ -2826,7 +2838,7 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
|
|
|
2826
2838
|
*/
|
|
2827
2839
|
membership: string;
|
|
2828
2840
|
};
|
|
2829
|
-
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onMoved, onNewRecordForm, onAskWhoChanged, pageSize, titleField, filter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
2841
|
+
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onMoved, onNewRecordForm, onAskWhoChanged, pageSize, titleField, filter, onClearFilter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
2830
2842
|
|
|
2831
2843
|
/** What the screen says above the list, so nobody has to be told twice that nothing was destroyed. */
|
|
2832
2844
|
declare const ARCHIVE_MEANS = "Archiving never destroys anything. A record you remove from the grid waits here until somebody brings it back.";
|
package/dist/index.d.ts
CHANGED
|
@@ -1821,6 +1821,13 @@ interface GridProps {
|
|
|
1821
1821
|
* the store compiles both into the one WHERE clause.
|
|
1822
1822
|
*/
|
|
1823
1823
|
filter?: StoreFilter$1 | undefined;
|
|
1824
|
+
/**
|
|
1825
|
+
* Clear the question `filter` carries (the view's own filter), for the "No rows match these
|
|
1826
|
+
* filters" screen's Clear filters. Left out, that screen clears only the grid's own search and
|
|
1827
|
+
* column filters, and when `filter` alone holds every row back it says so instead of offering a
|
|
1828
|
+
* button that could not clear it.
|
|
1829
|
+
*/
|
|
1830
|
+
onClearFilter?: (() => void) | undefined;
|
|
1824
1831
|
/** Opened from a row's handle, Space or the row menu. A host that has a record page passes its own. */
|
|
1825
1832
|
onOpenRecord?: ((recordId: Uuid) => void) | undefined;
|
|
1826
1833
|
/**
|
|
@@ -1889,7 +1896,7 @@ interface GridProps {
|
|
|
1889
1896
|
footer?: FooterPlacement | undefined;
|
|
1890
1897
|
className?: string | undefined;
|
|
1891
1898
|
}
|
|
1892
|
-
declare function Grid({ tableId, pageSize, filter, onOpenRecord, openRecordId, onAddField, onNewRecordForm, toolbarActions, editable, presentation, onPresentationChange, viewOrder, footer, className, onAskWhoChanged, }: GridProps): react.JSX.Element;
|
|
1899
|
+
declare function Grid({ tableId, pageSize, filter, onClearFilter, onOpenRecord, openRecordId, onAddField, onNewRecordForm, toolbarActions, editable, presentation, onPresentationChange, viewOrder, footer, className, onAskWhoChanged, }: GridProps): react.JSX.Element;
|
|
1893
1900
|
|
|
1894
1901
|
/** Answers "what is the record with this id called", for one Field's values. */
|
|
1895
1902
|
type LabelLookup = (field: Field$1, id: string) => string | null;
|
|
@@ -2771,6 +2778,11 @@ interface ViewSwitcherProps {
|
|
|
2771
2778
|
* store's Rule shape). The grid, the board's headings and the numbers all ask it.
|
|
2772
2779
|
*/
|
|
2773
2780
|
filter?: StoreFilter | undefined;
|
|
2781
|
+
/**
|
|
2782
|
+
* Clear the question `filter` carries, for the "No rows match these filters" screen of every
|
|
2783
|
+
* layout. Left out, that screen says the view's filter holds every row back without a button.
|
|
2784
|
+
*/
|
|
2785
|
+
onClearFilter?: (() => void) | undefined;
|
|
2774
2786
|
/**
|
|
2775
2787
|
* The HOST layout showing now (`RecordsUiHost.layouts`, by id), or null for the
|
|
2776
2788
|
* package's own. Controlled by the page, because the address names it.
|
|
@@ -2826,7 +2838,7 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
|
|
|
2826
2838
|
*/
|
|
2827
2839
|
membership: string;
|
|
2828
2840
|
};
|
|
2829
|
-
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onMoved, onNewRecordForm, onAskWhoChanged, pageSize, titleField, filter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
2841
|
+
declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onMoved, onNewRecordForm, onAskWhoChanged, pageSize, titleField, filter, onClearFilter, hostLayout, onHostLayoutChange, chooser, openExport, viewId, onOrderPlaced, footer, className, }: ViewSwitcherProps): react.JSX.Element;
|
|
2830
2842
|
|
|
2831
2843
|
/** What the screen says above the list, so nobody has to be told twice that nothing was destroyed. */
|
|
2832
2844
|
declare const ARCHIVE_MEANS = "Archiving never destroys anything. A record you remove from the grid waits here until somebody brings it back.";
|