@nivaro/react 0.1.259 → 0.1.260
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 +36 -1
- package/dist/index.js +23451 -22963
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -894,6 +894,36 @@ export declare function CommentPanel({ collection, item, title, defaultExpanded,
|
|
|
894
894
|
onQueueComment?: (text: string) => void;
|
|
895
895
|
}): React_2.JSX.Element;
|
|
896
896
|
|
|
897
|
+
/**
|
|
898
|
+
* Comparison series for an inline grid (`options.compare_series`).
|
|
899
|
+
*
|
|
900
|
+
* A second, read-only line of figures under the grid's own cells — "what
|
|
901
|
+
* actually happened" beside "what was planned" — fetched from an endpoint the
|
|
902
|
+
* layout names. The grid stays domain-blind: the endpoint says which row key
|
|
903
|
+
* and columns it speaks about, which columns are closed (final), the verdict
|
|
904
|
+
* it wants shown, and what each figure is made of. Any month × key planning
|
|
905
|
+
* grid whose "what really happened" lives elsewhere fits the contract — the
|
|
906
|
+
* nouns (what a detail row IS, what the grid's own figures are called) come
|
|
907
|
+
* from the endpoint too, so this file never names a domain.
|
|
908
|
+
*
|
|
909
|
+
* Contract (endpoint response, under `data`):
|
|
910
|
+
* label 'Actual' — the series name
|
|
911
|
+
* plan_label 'Plan' — what the grid's own figures are called (default 'Plan')
|
|
912
|
+
* unit { one, many } — the noun for a detail row (default entry/entries)
|
|
913
|
+
* key_field the grid column that identifies a row (e.g. 'year')
|
|
914
|
+
* columns the grid columns the series speaks about
|
|
915
|
+
* rows[] { key, values: {column: number}, details?: {column: DetailRow[]} }
|
|
916
|
+
* closed_through 'YYYY-MM' | null — month columns at or before it are final
|
|
917
|
+
* closed_rule one sentence explaining how a month closes
|
|
918
|
+
* status { key, label, tone, reason } | null — the verdict + why
|
|
919
|
+
* figures[] { label, value, format } — strip chips beside the grid's own
|
|
920
|
+
*/
|
|
921
|
+
declare interface CompareSeriesConfig {
|
|
922
|
+
/** `/my-extension/actuals/{{$parent.id}}` — `{{$parent.<field>}}` tokens read the parent draft. */
|
|
923
|
+
endpoint: string;
|
|
924
|
+
label?: string;
|
|
925
|
+
}
|
|
926
|
+
|
|
897
927
|
export declare type ComponentOverrides = {
|
|
898
928
|
text?: default_2.ComponentType<FieldComponentProps>;
|
|
899
929
|
textarea?: default_2.ComponentType<FieldComponentProps>;
|
|
@@ -2000,7 +2030,7 @@ export declare function InboundCallersView({ hours: initialHours }: {
|
|
|
2000
2030
|
hours?: number;
|
|
2001
2031
|
}): JSX.Element;
|
|
2002
2032
|
|
|
2003
|
-
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, rowMatchPanel, lineSla, rowLints, stats, sumCap, spreadRemaining, submissionErrors, prefillParentId, parentFieldKey, readOnly, emptyLabel, editorMode }: {
|
|
2033
|
+
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, rowMatchPanel, lineSla, rowLints, stats, compareSeries, sumCap, spreadRemaining, submissionErrors, prefillParentId, parentFieldKey, readOnly, emptyLabel, editorMode }: {
|
|
2004
2034
|
relatedCollection: string;
|
|
2005
2035
|
manyField: string;
|
|
2006
2036
|
parentId: string;
|
|
@@ -2069,6 +2099,11 @@ export declare function InlineTableField({ relatedCollection, manyField, parentI
|
|
|
2069
2099
|
* edits and the row being typed into included) and `{{$count}}`. A
|
|
2070
2100
|
* negative result reads red when `negative` is 'danger'. */
|
|
2071
2101
|
stats?: GridStatConfig[] | null;
|
|
2102
|
+
/** options.compare_series — a second, read-only line of figures under the
|
|
2103
|
+
* cells ("what actually happened" beside the plan) fetched from an endpoint
|
|
2104
|
+
* the layout names; closed columns shade, a verdict chip leads the strip,
|
|
2105
|
+
* each figure opens the rows behind it. See CompareSeries.tsx. */
|
|
2106
|
+
compareSeries?: CompareSeriesConfig | null;
|
|
2072
2107
|
/** options.sum_cap — refuse to save/stage a row when `field` summed over the
|
|
2073
2108
|
* grid (this row's draft included) would exceed `cap` (same tokens as
|
|
2074
2109
|
* stats). The client twin of the server's sum_cap validation rule. */
|