kw
279e6b846f
docs: Correct comments for FormControl ( #58352 )
...
PR Close #58352
2025-03-06 10:36:47 -08:00
Samuel Perez
83abe5f606
docs: fix all brokens links on the API pages ( #59162 )
...
This PR fix is for the broken links on the API
pages mentioned in issue #57591 .
PR Close #59162
2025-03-04 20:07:24 +00:00
arturovt
c4126c7b9a
refactor(forms): tree-shake _checkParentType in production ( #60041 )
...
In this commit, we move `_checkParentType` to a separate function to avoid a redundant prototype method in production.
PR Close #60041
2025-02-25 14:12:44 -05:00
Jessica Janiuk
3fd6551cae
docs: remove todo from jsdoc ( #60042 )
...
This removes TODO from a JSDoc block that made it show up on adev.
PR Close #60042
2025-02-21 11:16:48 -05:00
arturovt
b2947e83f7
refactor(forms): remove _checkFormPresent and move directly to ngOnChanges ( #59741 )
...
In this commit, we remove `_checkFormPresent` because it is a no-op in production. We move its body directly into `ngOnChanges` to eliminate the redundant method from the prototype. Previously, `_checkFormPresent` was being called with no body in production each time `ngOnChanges` was executed.
PR Close #59741
2025-02-19 15:22:13 +00:00
Matthieu Riegler
cf36951f83
fix(forms): Fix typing on FormRecord. ( #59993 )
...
Priori to this change, `ɵRawValue` of a `FormRecord` returned a `Partial`. This commit fixes it.
fixes #59985
PR Close #59993
2025-02-18 19:28:36 +00:00
Jeremias Peier
fa0c3e3210
feat(forms): support type set in form validators ( #45793 )
...
Previously, using `Validators.required`, `Validators.minLength` and `Validators.maxLength` validators don't work with sets because a set has the `size` property instead of the `length` property. This change enables the validators to be working with sets.
PR Close #45793
2025-02-05 08:59:55 -08:00
arturovt
e4838310c9
refactor(forms): wrap _checkParentType with ngDevMode ( #59489 )
...
The `_checkParentType` bodies are wrapped with `ngDevMode`, meaning they act as no-ops in production. We can wrap the actual calls to `_checkParentType` with `ngDevMode` to prevent calling no-op functions in production
PR Close #59489
2025-01-24 11:51:36 +01:00
hawkgs
b9155b5121
docs: set syntax highlighting to the remaining Markdown code examples blocks ( #59088 )
...
There are some code blocks that slipped through the initial Regex-es.
Related to #59026
PR Close #59088
2025-01-14 15:14:02 -05:00
arturovt
854a5616bf
refactor(forms): drop CALL_SET_DISABLED_STATE name in production ( #59430 )
...
In this commit, we drop the `CALL_SET_DISABLED_STATE` injection token name in production.
PR Close #59430
2025-01-09 09:21:00 -05:00
hawkgs
b8b6c8c77a
refactor(docs-infra): convert code-example-s that have only region param to @example-s ( #59004 )
...
Replace all <code-example>-s within TS files that contain only a path and a region with JSDoc @example-s.
PR Close #59004
2024-12-04 18:05:59 +01:00
hawkgs
0513fbc9fc
docs: set syntax highlighting of code examples MD code blocks ( #59026 )
...
Set the syntax highlighting based on the code examples' language.
PR Close #59026
2024-12-04 17:30:28 +01:00
Kristiyan Kostadinov
cebf2555e7
refactor(forms): work around another TypeScript 5.7 issue ( #58782 )
...
Reworks the changes from #58731 , because they didn't cover all use cases.
PR Close #58782
2024-11-21 16:36:15 +00:00
Kristiyan Kostadinov
4a18dc03a1
fix(forms): work around TypeScript 5.7 issue ( #58731 )
...
Adjusts the return type of `FormBuilder.group` to work around https://github.com/Microsoft/TypeScript/issues/60506 .
PR Close #58731
2024-11-19 12:18:00 -08:00
Alan Agius
7de7c52769
build: remove usages of useDefineForClassFields: false ( #58297 )
...
When setting `"useDefineForClassFields": false`, static fields are compiled within a block that relies on the `this` context. This output makes it more difficult for bundlers to treeshake and eliminate unused code.
PR Close #58297
2024-10-28 12:26:05 -07:00
Andrew Kushnir
1f4533807e
Revert "fix(forms): fix FormRecord type inference ( #50750 )" ( #58315 )
...
This reverts commit 18b6f3339f .
PR Close #58315
2024-10-22 14:04:45 -07:00
Andrew Kushnir
79d9be3e63
Revert "feat(forms): add ability to clear a FormRecord ( #50750 )" ( #58315 )
...
This reverts commit 3e7d724037 .
PR Close #58315
2024-10-22 14:04:45 -07:00
Andrew Kushnir
a5b0394313
Revert "test(forms): add unit test ( #50750 )" ( #58315 )
...
This reverts commit b0c4c1fd2b .
PR Close #58315
2024-10-22 14:04:45 -07:00
Emmanuel Roux
b0c4c1fd2b
test(forms): add unit test ( #50750 )
...
Add unit test for statusChange events
PR Close #50750
2024-10-22 07:36:22 -07:00
Emmanuel Roux
3e7d724037
feat(forms): add ability to clear a FormRecord ( #50750 )
...
Add new `clear()` method to `FormRecord`
PR Close #50750
2024-10-22 07:36:22 -07:00
emmanuelroux
18b6f3339f
fix(forms): fix FormRecord type inference ( #50750 )
...
Updates type inference in `ɵElement` to make `FormRecord` take precedence over `FormGroup`
PR Close #50750
2024-10-22 07:36:22 -07:00
Matthieu Riegler
09df589e31
refactor(core): Migrate all packages with the explicit-standalone-flag schematic. ( #58160 )
...
All components, directives and pipes will now use standalone as default.
Non-standalone decorators have now `standalone: false`.
PR Close #58160
2024-10-14 14:58:57 +00:00
Matthieu Riegler
186b52449a
docs: add info on AbstractControl.source type. ( #58094 )
...
The source can be of any type and can't be inferred from `T`
fixes #58076
PR Close #58094
2024-10-07 08:21:55 -07:00
Matthieu Riegler
84b6896956
refactor(platform-server): Add an ssr benchmark setup. ( #57647 )
...
In order to investigate the performances of SSR, this commit introduces a benchmark suite which will measure several step of the rendering.
PR Close #57647
2024-10-04 10:45:22 -07:00
Joey Perrott
9dbe6fc18b
refactor: update license text to point to angular.dev ( #57901 )
...
Update license text to point to angular.dev instead of angular.io
PR Close #57901
2024-09-24 15:33:00 +02:00
Matthieu Riegler
6c9abd38fb
refactor(forms): lift circular deps ( #55881 )
...
`import type` to the rescue.
PR Close #55881
2024-09-23 16:24:05 +02:00
Matthieu Riegler
ea1447532a
docs: remove @searchKeywords ( #57560 )
...
This tag is not supported.
fixes #57540
PR Close #57560
2024-08-28 08:49:05 -07:00
Andrew Scott
2431f206d7
refactor(forms): Update status, touched, and pristine to use private setter ( #56573 )
...
This refactor updates the touched, status, and pristine properties to
have a private setter.
PR Close #56573
2024-06-26 08:47:39 -07:00
Joey Perrott
0bd55a684f
refactor(docs-infra): complete removal of aio directory ( #56496 )
...
Finish removal of aio directory as it is no longer used or relied upon.
PR Close #56496
2024-06-18 12:26:00 -07:00
Andrew Scott
00bde8b1c2
fix(forms): Make NgControlStatus host bindings OnPush compatible ( #55720 )
...
This commit makes the host bindings of `NgControlStatus[Group]`
compatible with `OnPush` components. Note that this intentionally _does not_
expose any new APIs in the forms module. The goal is only to remove
unpreventable `ExpressionChangedAfterItHasBeenCheckedError` in the forms
code that developers do not have control over.
PR Close #55720
2024-06-18 11:35:34 -07:00