@xrmforge/typegen 0.12.0 → 0.12.1
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/LICENSE +21 -21
- package/dist/index.d.ts +6 -7
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/docs/architecture/13-helpers.md +1 -1
- package/docs/architektur/13-helpers.md +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ import { select, parseLookup, typedForm } from '@xrmforge/helpers';
|
|
|
27
27
|
|
|
28
28
|
**typedForm() Proxy:**
|
|
29
29
|
- `typedForm<TForm>(formContext)` - Returns a proxy where `form.name` delegates to `getAttribute('name')`
|
|
30
|
-
- GET trap: Property access delegates to getAttribute(); `$context` returns raw FormContext;
|
|
30
|
+
- GET trap: Property access delegates to getAttribute(); `$context` returns raw FormContext; `controls.fieldName` returns the typed control (getControl())
|
|
31
31
|
- SET trap: Throws TypeError forcing `.setValue()` usage
|
|
32
32
|
- HAS trap: Checks if attribute exists on the form
|
|
33
33
|
|
|
@@ -27,7 +27,7 @@ import { select, parseLookup, typedForm } from '@xrmforge/helpers';
|
|
|
27
27
|
|
|
28
28
|
**typedForm()-Proxy:**
|
|
29
29
|
- `typedForm<TForm>(formContext)` - Gibt einen Proxy zurück, bei dem `form.name` an `getAttribute('name')` delegiert
|
|
30
|
-
- GET-Trap: Property-Zugriff delegiert an getAttribute(); `$context` gibt den rohen FormContext zurück;
|
|
30
|
+
- GET-Trap: Property-Zugriff delegiert an getAttribute(); `$context` gibt den rohen FormContext zurück; `controls.fieldName` gibt das typisierte Control zurück (getControl())
|
|
31
31
|
- SET-Trap: Wirft TypeError und erzwingt die Verwendung von `.setValue()`
|
|
32
32
|
- HAS-Trap: Prüft, ob ein Attribut auf dem Formular existiert
|
|
33
33
|
|