@marianmeres/collection-types 2.5.0 → 2.6.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/dist/schema.d.ts +7 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -63,12 +63,18 @@ export interface MoneyConfig {
|
|
|
63
63
|
/** Optional ISO currency code, for surfaces that render a symbol (e.g. "USD"). */
|
|
64
64
|
currency?: string;
|
|
65
65
|
}
|
|
66
|
+
/** Configuration for `textarea` fields (`_html.type: "textarea"`). */
|
|
67
|
+
export interface TextareaConfig {
|
|
68
|
+
/** Visible row count. Absent → the compact, input-like default (1 row). A
|
|
69
|
+
* higher value makes the field read as a textarea (e.g. a description). */
|
|
70
|
+
rows?: number;
|
|
71
|
+
}
|
|
66
72
|
/** Configuration for _html schema keyword */
|
|
67
73
|
export interface SchemaHtmlConfig {
|
|
68
74
|
/** Field type for UI rendering */
|
|
69
75
|
type?: SchemaHtmlType;
|
|
70
76
|
/** Type-specific configuration */
|
|
71
|
-
_type_config?: RelationTypeConfig | AssetTypeConfig | SelectConfig | KeyValuesConfig | MoneyConfig;
|
|
77
|
+
_type_config?: RelationTypeConfig | AssetTypeConfig | SelectConfig | KeyValuesConfig | MoneyConfig | TextareaConfig;
|
|
72
78
|
/** Display label (can be localized) */
|
|
73
79
|
label?: MaybeLocalized<string>;
|
|
74
80
|
/** Display description (can be localized) */
|