@ng-forge/dynamic-forms-bootstrap 0.6.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-forge/dynamic-forms-bootstrap",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Bootstrap 5 integration for @ng-forge/dynamic-forms. Pre-built Bootstrap form components.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -28,10 +28,10 @@
28
28
  "node": ">=20"
29
29
  },
30
30
  "peerDependencies": {
31
- "@angular/common": "~21.1.0",
32
- "@angular/core": "~21.1.0",
33
- "@angular/forms": "~21.1.0",
34
- "@ng-forge/dynamic-forms": "~0.6.0",
31
+ "@angular/common": "~21.2.0",
32
+ "@angular/core": "~21.2.0",
33
+ "@angular/forms": "~21.2.0",
34
+ "@ng-forge/dynamic-forms": "~0.7.0",
35
35
  "rxjs": ">=7.0.0"
36
36
  },
37
37
  "module": "fesm2022/ng-forge-dynamic-forms-bootstrap.mjs",
@@ -469,6 +469,22 @@ declare class BsTextareaFieldComponent implements BsTextareaComponent {
469
469
  readonly validationMessages: _angular_core.InputSignal<ValidationMessages | undefined>;
470
470
  readonly defaultValidationMessages: _angular_core.InputSignal<ValidationMessages | undefined>;
471
471
  readonly meta: _angular_core.InputSignal<TextareaMeta | undefined>;
472
+ /**
473
+ * Reference to the native textarea element.
474
+ * Used to imperatively sync the readonly attribute since Angular Signal Forms'
475
+ * [field] directive doesn't sync FieldState.readonly() to the DOM.
476
+ */
477
+ private readonly textareaRef;
478
+ /**
479
+ * Computed signal that extracts the readonly state from the field.
480
+ */
481
+ private readonly isReadonly;
482
+ /**
483
+ * Workaround: Angular Signal Forms' [field] directive does NOT sync the readonly
484
+ * attribute to the DOM. This effect imperatively sets/removes the readonly attribute
485
+ * on the native textarea element whenever the readonly state changes.
486
+ */
487
+ private readonly syncReadonlyToDom;
472
488
  readonly resolvedErrors: _angular_core.Signal<_ng_forge_dynamic_forms_integration.ResolvedError[]>;
473
489
  readonly showErrors: _angular_core.Signal<boolean>;
474
490
  readonly errorsToDisplay: _angular_core.Signal<_ng_forge_dynamic_forms_integration.ResolvedError[]>;