valtech-components 4.0.1020 → 4.0.1021
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/esm2022/lib/components/molecules/date-input/date-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +3 -3
- package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +3 -3
- package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +3 -3
- package/esm2022/lib/components/organisms/field-schema-editor/field-schema-editor.component.mjs +18 -1
- package/esm2022/lib/components/organisms/field-schema-editor/field-schema-editor.i18n.mjs +5 -3
- package/esm2022/lib/components/organisms/field-schema-editor/types.mjs +1 -1
- package/esm2022/lib/components/organisms/form/form.component.mjs +32 -5
- package/esm2022/lib/components/organisms/survey-builder/survey-builder.component.mjs +4 -1
- package/esm2022/lib/components/types.mjs +1 -1
- package/esm2022/lib/services/forms/form-schema-builder.service.mjs +3 -1
- package/esm2022/lib/services/forms/types.mjs +1 -1
- package/esm2022/lib/services/i18n/default-content.mjs +3 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +72 -19
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/field-schema-editor/field-schema-editor.component.d.ts +1 -0
- package/lib/components/organisms/field-schema-editor/types.d.ts +3 -0
- package/lib/components/organisms/form/form.component.d.ts +1 -0
- package/lib/components/types.d.ts +3 -1
- package/lib/services/forms/types.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -45,6 +45,7 @@ export declare class FieldSchemaEditorComponent implements OnInit {
|
|
|
45
45
|
readonly labelControl: FormControl<string>;
|
|
46
46
|
readonly placeholderControl: FormControl<string>;
|
|
47
47
|
readonly hintControl: FormControl<string>;
|
|
48
|
+
readonly noteControl: FormControl<string>;
|
|
48
49
|
readonly sectionControl: FormControl<string>;
|
|
49
50
|
readonly requiredControl: FormControl<boolean>;
|
|
50
51
|
readonly typeControl: FormControl<string>;
|
|
@@ -18,6 +18,7 @@ export interface EditableFieldDef {
|
|
|
18
18
|
label: string;
|
|
19
19
|
placeholderText: string;
|
|
20
20
|
hintText: string;
|
|
21
|
+
noteText?: string;
|
|
21
22
|
type: string;
|
|
22
23
|
required: boolean;
|
|
23
24
|
sectionId?: string;
|
|
@@ -61,6 +62,8 @@ export interface FieldSchemaEditorMetadata {
|
|
|
61
62
|
/** Default true. */
|
|
62
63
|
showHint?: boolean;
|
|
63
64
|
/** Default true. */
|
|
65
|
+
showNote?: boolean;
|
|
66
|
+
/** Default true. */
|
|
64
67
|
showSection?: boolean;
|
|
65
68
|
state?: ComponentState;
|
|
66
69
|
}
|
|
@@ -144,6 +144,7 @@ export declare class FormComponent implements OnInit, OnChanges, DoCheck {
|
|
|
144
144
|
setSimpleMultiSelected(fieldName: string, optionId: string, selected: boolean): void;
|
|
145
145
|
booleanYesLabel(): string;
|
|
146
146
|
booleanNoLabel(): string;
|
|
147
|
+
fieldHelpLabel(field: InputMetadata): string;
|
|
147
148
|
/**
|
|
148
149
|
* Adapter — convierte un `InputMetadata` (con type=TEXTAREA) a `TextareaInputMetadata`.
|
|
149
150
|
* Defaults sensatos: autoGrow + counter habilitado, 4-12 rows.
|
|
@@ -110,8 +110,10 @@ export type InputMetadata = {
|
|
|
110
110
|
label: string;
|
|
111
111
|
/** Field name */
|
|
112
112
|
name: string;
|
|
113
|
-
/**
|
|
113
|
+
/** Contextual help text shown next to the field label. */
|
|
114
114
|
hint: string;
|
|
115
|
+
/** Note shown below the input. */
|
|
116
|
+
note?: string;
|
|
115
117
|
/** Description text (shown below label, explains the field purpose) */
|
|
116
118
|
description?: string;
|
|
117
119
|
/** Input placeholder */
|
package/lib/version.d.ts
CHANGED