valtech-components 4.0.1019 → 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.
Files changed (26) hide show
  1. package/esm2022/lib/components/molecules/date-input/date-input.component.mjs +3 -3
  2. package/esm2022/lib/components/molecules/file-input/file-input.component.mjs +3 -3
  3. package/esm2022/lib/components/molecules/hint/hint.component.mjs +3 -3
  4. package/esm2022/lib/components/molecules/number-picker/number-picker.component.mjs +3 -3
  5. package/esm2022/lib/components/molecules/password-input/password-input.component.mjs +3 -3
  6. package/esm2022/lib/components/molecules/pin-input/pin-input.component.mjs +3 -3
  7. package/esm2022/lib/components/molecules/text-input/text-input.component.mjs +3 -3
  8. package/esm2022/lib/components/organisms/field-schema-editor/field-schema-editor.component.mjs +18 -1
  9. package/esm2022/lib/components/organisms/field-schema-editor/field-schema-editor.i18n.mjs +5 -3
  10. package/esm2022/lib/components/organisms/field-schema-editor/types.mjs +1 -1
  11. package/esm2022/lib/components/organisms/form/form.component.mjs +32 -7
  12. package/esm2022/lib/components/organisms/survey-builder/survey-builder.component.mjs +4 -1
  13. package/esm2022/lib/components/types.mjs +1 -1
  14. package/esm2022/lib/services/forms/form-schema-builder.service.mjs +3 -1
  15. package/esm2022/lib/services/forms/types.mjs +1 -1
  16. package/esm2022/lib/services/i18n/default-content.mjs +3 -1
  17. package/esm2022/lib/version.mjs +2 -2
  18. package/fesm2022/valtech-components.mjs +74 -23
  19. package/fesm2022/valtech-components.mjs.map +1 -1
  20. package/lib/components/organisms/field-schema-editor/field-schema-editor.component.d.ts +1 -0
  21. package/lib/components/organisms/field-schema-editor/types.d.ts +3 -0
  22. package/lib/components/organisms/form/form.component.d.ts +1 -0
  23. package/lib/components/types.d.ts +3 -1
  24. package/lib/services/forms/types.d.ts +1 -0
  25. package/lib/version.d.ts +1 -1
  26. 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
- /** Help text (shown below input, for validation hints) */
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 */
@@ -29,6 +29,7 @@ export interface FieldSchemaDef {
29
29
  placeholderEn?: string;
30
30
  hint?: string;
31
31
  hintText?: string;
32
+ noteText?: string;
32
33
  /** @deprecated Solo lectura de esquemas viejos. */
33
34
  hintEs?: string;
34
35
  /** @deprecated Solo lectura de esquemas viejos. */
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.1019";
5
+ export declare const VERSION = "4.0.1021";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.1019",
3
+ "version": "4.0.1021",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"