@nivaro/react 0.1.208 → 0.1.209
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/index.d.ts +14 -2
- package/dist/index.js +18489 -18387
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1226,7 +1226,7 @@ export declare interface FieldInterfaceProps {
|
|
|
1226
1226
|
itemId: string | null;
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
-
export declare function FieldRenderer({ field, value, onChange, relations, collection, itemId, cascadeFilter, requiredParentLabel, narrowedBy, onCountChange, displayOnly, prefillParentId }: {
|
|
1229
|
+
export declare function FieldRenderer({ field, value, onChange, relations, collection, itemId, cascadeFilter, requiredParentLabel, narrowedBy, onCountChange, displayOnly, prefillParentId, pinnedOption }: {
|
|
1230
1230
|
field: CMSField;
|
|
1231
1231
|
value: unknown;
|
|
1232
1232
|
onChange: (v: unknown) => void;
|
|
@@ -1244,6 +1244,11 @@ export declare function FieldRenderer({ field, value, onChange, relations, colle
|
|
|
1244
1244
|
onCountChange?: (count: number) => void;
|
|
1245
1245
|
displayOnly?: boolean;
|
|
1246
1246
|
prefillParentId?: string;
|
|
1247
|
+
/** M2O pickers: a floating first option (see RelationCombobox `pinned`). */
|
|
1248
|
+
pinnedOption?: {
|
|
1249
|
+
id: unknown;
|
|
1250
|
+
tag?: string;
|
|
1251
|
+
} | null;
|
|
1247
1252
|
}): JSX.Element;
|
|
1248
1253
|
|
|
1249
1254
|
export declare type FieldState = {
|
|
@@ -3340,10 +3345,17 @@ export declare function RelatedRecordsPanel({ collection, itemId, title, default
|
|
|
3340
3345
|
defaultExpanded?: boolean;
|
|
3341
3346
|
}): JSX.Element;
|
|
3342
3347
|
|
|
3343
|
-
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy }: {
|
|
3348
|
+
export declare function RelationCombobox({ collection, value, onChange, disabled, placeholder, extraFilter, autoSelectSingle, optionSort, requiredParent, facets, fieldKey, narrowedBy, pinned }: {
|
|
3344
3349
|
collection: string;
|
|
3345
3350
|
value: unknown;
|
|
3346
3351
|
onChange: (v: unknown) => void;
|
|
3352
|
+
/** A "floating" option shown FIRST regardless of search or sort — the
|
|
3353
|
+
* project's default CIFA for a materials line, say. Label = the option's
|
|
3354
|
+
* own display label; `tag` is the small badge beside it ("Default"). */
|
|
3355
|
+
pinned?: {
|
|
3356
|
+
id: unknown;
|
|
3357
|
+
tag?: string;
|
|
3358
|
+
} | null;
|
|
3347
3359
|
disabled?: boolean;
|
|
3348
3360
|
placeholder?: string;
|
|
3349
3361
|
extraFilter?: Record<string, unknown>;
|