@nivaro/react 0.1.141 → 0.1.142
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/dist/full.css +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.js +25305 -24956
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1692,13 +1692,15 @@ declare interface ImportValidationReport {
|
|
|
1692
1692
|
truncated: boolean;
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
|
-
export declare function InlineTableField({ relatedCollection, manyField, parentId, parentCollection, layoutId, showRowRevisions, rowComments, allowRevisionRestore, saveMode, showLineNumbers, enableReorder, parentCascades, rowRules, columnPresets, defaultPreset, drawerRelations, parentContextFields, uniqueBy, sortField, sortDir, sectionGroupBy, freezeFirstColumn, rowFilter, rowDefaults, allocateDrawer, autoAllocate, rowBulkActions, uploadTemplate, submissionErrors, prefillParentId, parentFieldKey, readOnly }: {
|
|
1695
|
+
export declare function InlineTableField({ relatedCollection, manyField, parentId, parentCollection, layoutId, showRowRevisions, rowComments, allowRevisionRestore, saveMode, showLineNumbers, enableReorder, parentCascades, rowRules, columnPresets, defaultPreset, drawerRelations, parentContextFields, uniqueBy, sortField, sortDir, sectionGroupBy, freezeFirstColumn, rowFilter, rowDefaults, allocateDrawer, autoAllocate, rowBulkActions, uploadTemplate, submissionErrors, prefillParentId, parentFieldKey, readOnly, emptyLabel }: {
|
|
1696
1696
|
relatedCollection: string;
|
|
1697
1697
|
manyField: string;
|
|
1698
1698
|
parentId: string;
|
|
1699
1699
|
/** Same table display, but no editing: hides the Add toolbar, + Add row,
|
|
1700
1700
|
* row delete/undo, and blocks cell edit entry. */
|
|
1701
1701
|
readOnly?: boolean;
|
|
1702
|
+
/** Names the empty state ("No deployments yet") instead of a bare "No rows". */
|
|
1703
|
+
emptyLabel?: string;
|
|
1702
1704
|
parentCollection?: string;
|
|
1703
1705
|
layoutId?: number | null;
|
|
1704
1706
|
showRowRevisions?: boolean;
|
|
@@ -2667,13 +2669,15 @@ export declare function QueryStatStrip({ stats, rows, effectiveParams, loading }
|
|
|
2667
2669
|
loading: boolean;
|
|
2668
2670
|
}): JSX.Element | null;
|
|
2669
2671
|
|
|
2670
|
-
export declare function QueryTable({ rows, config, onRowClick, pivotYear, rowActions }: {
|
|
2672
|
+
export declare function QueryTable({ rows, config, onRowClick, pivotYear, rowActions, emptyLabel }: {
|
|
2671
2673
|
rows: Array<Record<string, unknown>>;
|
|
2672
2674
|
config?: QueryTableConfig;
|
|
2673
2675
|
/** Makes rows clickable (hover highlight); receives the (post-grouping) row. */
|
|
2674
2676
|
onRowClick?: (row: Record<string, unknown>) => void;
|
|
2675
2677
|
/** Resolved pivot year (from the widget's params) — overrides config.pivot.year. */
|
|
2676
2678
|
pivotYear?: number;
|
|
2679
|
+
/** Names the empty state ("No deployments yet") instead of a bare "No data". */
|
|
2680
|
+
emptyLabel?: string;
|
|
2677
2681
|
/** Trailing action buttons per row (and on the totals row, receiving null). */
|
|
2678
2682
|
rowActions?: Array<{
|
|
2679
2683
|
label: string;
|
|
@@ -3384,7 +3388,7 @@ declare interface ReviewListStatusOption {
|
|
|
3384
3388
|
require_note?: boolean;
|
|
3385
3389
|
}
|
|
3386
3390
|
|
|
3387
|
-
export declare function ReviewListWidget({ data, config, loading, error, onRefetch, hostRecordId }: ReviewListWidgetProps): JSX.Element;
|
|
3391
|
+
export declare function ReviewListWidget({ data, config, loading, error, onRefetch, hostRecordId, emptyLabel }: ReviewListWidgetProps): JSX.Element;
|
|
3388
3392
|
|
|
3389
3393
|
declare interface ReviewListWidgetProps {
|
|
3390
3394
|
data: ReviewListResult | null;
|
|
@@ -3395,6 +3399,8 @@ declare interface ReviewListWidgetProps {
|
|
|
3395
3399
|
/** Host record id (the workflow the widget is slotted on) — forwarded to
|
|
3396
3400
|
* action_endpoint as workflow_id so a rejection note can anchor to it. */
|
|
3397
3401
|
hostRecordId?: string | number | null;
|
|
3402
|
+
/** Names the empty state instead of a bare 'No rows'. */
|
|
3403
|
+
emptyLabel?: string;
|
|
3398
3404
|
}
|
|
3399
3405
|
|
|
3400
3406
|
export declare function RevisionsPanel({ collection, item, onRollback, triggerClassName, inlineTableFields, open, onOpenChange }: {
|