5190 Commits

Author SHA1 Message Date
George Kalpakas 0c9d33cb51 refactor(docs-infra): replace use of deprecated Compiler with createNgModuleRef() (#44293)
Remove a use of the deprecated `Compiler` class in `ElementsLoader` and
use the `createNgModuleRef()` function instead.

PR Close #44293
2021-12-01 11:56:47 -08:00
George Kalpakas 98c1d91759 refactor(docs-infra): remove obsolete ViewEngine code path from ElementsLoader (#44293)
Remove a code path that was only reached in ViewEngine mode and is now
(with the removal of ViewEngine) obsolete.

PR Close #44293
2021-12-01 11:56:47 -08:00
Kristiyan Kostadinov c92095c201 refactor(docs-infra): clean up entryComponents usages (#44257)
Cleans up some usages of `entryComponents` from AIO.

PR Close #44257
2021-11-30 13:49:46 -05:00
George Kalpakas efd329f063 fix(docs-infra): fix the main content layout (#44282)
Fix the layout of the main docs content on both small and large screens.
On small screens, content could overlap with the floating ToC, while on
large screens the content was not centered correctly (see screenshots
below).

(For reference, this was accidentally broken in #44236.)

**Before:**
- ![content on small screen before](https://user-images.githubusercontent.com/8604205/143491577-97255ee7-f79d-4c95-9287-ff2afeb5b29d.png)
- ![content on large screen before](https://user-images.githubusercontent.com/8604205/143491582-2c19f7a2-d5ad-475a-a58b-e449efc492a9.png)

**After:**
- ![content on small screen after](https://user-images.githubusercontent.com/8604205/143491580-a405f650-cd4a-4804-8e65-422fc91f4c6e.png)
- ![content on large screen after](https://user-images.githubusercontent.com/8604205/143491585-d0d2e914-a1a2-45ba-8e6b-b9546aa80354.png)

PR Close #44282
2021-11-29 17:21:14 -05:00
dario-piotrowicz 90db2b0355 fix(docs-infra): add safari-only media query for aio footer flex (#44266)
safari handles rem based media queries differently so in order to
provide a similar user-experience to safari users, add a new
safari-only media query for the footer's flex container

resolves #44242

PR Close #44266
2021-11-29 12:37:44 -05:00
Pete Bacon Darwin 101b2cc6e5 fix(docs-infra): ensure deprecated styling is not overridden (#44275)
The `.code-anchor` styling was overriding the `.deprecated-api-item` styling.
The `text-decoration` is not needed on `.code-anchor` since it inherits this from the `a` rule in the typography.scss file.

Fixes #44264

PR Close #44275
2021-11-29 12:36:23 -05:00
Christian-E b13be73e9f docs: fix filename of the file containing the 'routes'-array in lazy loading guide (#44297)
PR Close #44297
2021-11-29 12:35:45 -05:00
Doug Parker db5bcbb7b7 docs: document ng update support guarantees (#44142)
PR Close #44142
2021-11-24 18:56:32 +00:00
dario-piotrowicz 92a65845de docs(animations): remove incorrect information regarding animateChild (#44216)
Remove incorrect information present in the angular.io animations documentation
stating that animateChild does not work with route transition animations
as that turned out not to be true

This PR effectively reverts the changes make in PR: #44014

For more context see issue #30477

PR Close #44216
2021-11-24 18:54:22 +00:00
dario-piotrowicz d0dcea1258 docs(core): improve viewEncapsulation documentation (#44151)
Slighlty improve the `viewEncapsulation` documentation (both in code
comments and content files) to make it more clear and understandable.

See https://github.com/angular/angular/pull/44099#discussion_r745890903

PR Close #44151
2021-11-24 18:53:45 +00:00
dario-piotrowicz b9362f088e fix(docs-infra): move aio footer inside mat-sidenav-container (#44236)
currently the aio footer sits outside the mat-sidenav-container, as a
result when the mat-sidenav in over mode appears, the footer is not
placed under the sidenav backdrop, move the footer inside the
mat-sidenav-container so that it does

PR Close #44236
2021-11-24 17:04:01 +00:00
Artur 4fb53b6bd3 docs: fix issue link in v13 release notes (#44258)
See:  #44181
PR Close #44258
2021-11-24 17:02:57 +00:00
George Kalpakas 28d7e64222 build(docs-infra): upgrade cli command docs sources to 1390fc8c9 (#44251)
Updating [angular#13.0.x](https://github.com/angular/angular/tree/13.0.x) from
[cli-builds#13.0.x](https://github.com/angular/cli-builds/tree/13.0.x).

##
Relevant changes in
[commit range](https://github.com/angular/cli-builds/compare/afd86f0cd...1390fc8c9):

**Modified**
- help/new.json

PR Close #44251
2021-11-23 17:09:23 +00:00
Renovate Bot d9c99f7d44 build: update dependency @angular-eslint/eslint-plugin-template to v13 (#44224)
PR Close #44224
2021-11-22 20:18:00 +00:00
George Kalpakas 67aa0c12c1 refactor(elements): remove unneeded Custom Elements polyfill from docs examples (#44214) (#44233)
In PR #43975, the `Angular Elements` guide was updated to remove
mentions of the Custom Elements-related polyfills, since they are no
longer necessary in v13+ (due to all CLI projects being ES2015+ and all
supported browsers natively supporting Custom Elements).

This commit updates the related docs example boilerplate to not include
the unneeded `@webcomponents/custom-elements` polyfill.

PR Close #44214

PR Close #44233
2021-11-22 17:37:01 +00:00
George Kalpakas 70cfbcc116 docs(docs-infra): remove obsolete mention of skipping HTTPS-related audits (#44214) (#44233)
Since commit 6e40551394, the
`audit-web-app` script no longer needs to skip HTTPS-related audits.
Update the docs comment to reflect that.

PR Close #44214

PR Close #44233
2021-11-22 17:37:01 +00:00
Renovate Bot a643649ae8 build: update dependency @angular-eslint/eslint-plugin to v13 (#44223)
PR Close #44223
2021-11-22 17:36:00 +00:00
David Shevitz 76adfc03d0 docs: add two new overview pages: developer-guide-overview and understanding-angular-overview (#44091)
PR Close #44091
2021-11-20 00:12:10 +00:00
Douglas Parker d09857f9cc docs: add dynamic import() ES module change to v13 release notes (#44181)
Closes angular/angular-cli#22159.

See: https://github.com/angular/angular-cli/issues/22159#issuecomment-969251924

PR Close #44181
2021-11-19 22:27:40 +00:00
dario-piotrowicz 69f25bd687 fix(docs-infra): remove negative margin (#44126)
remove the top padding for the homepage article, instead of
having that top padding and moving the element up via a
negative bottom margin in the intro section

note: the result is identical except for when the article's media query
is applied, the difference is barely noticeable anyways

PR Close #44126
2021-11-19 19:32:29 +00:00
dario-piotrowicz 541a87d489 fix(docs-infra): fix aio homepage breaking on certain widths (#44126)
the aio homepage has a fixed width for its hero content,
that is not handling well certain window widths, fix that by removing
the fixed width and tweaking related media queries

PR Close #44126
2021-11-19 19:32:29 +00:00
Renovate Bot 2c9940c249 build: update dependency @angular-eslint/builder to v13 (#44222)
PR Close #44222
2021-11-19 18:43:59 +00:00
Renovate Bot dbe4a36716 build: update dependency @angular-eslint/template-parser to v13 (#44226)
PR Close #44226
2021-11-19 18:43:11 +00:00
Ravi Chandra b61c2bec01 docs: remove tslint references from file structure document (guide/file-structure) (#44202)
remove tslint references from the file structure documentation as angular cli no more generates tslint configuration files by default

Fixes #44163

PR Close #44202
2021-11-18 10:21:32 -08:00
Renovate Bot eedb88b48c build: update dependency lighthouse to v9 (#44184)
PR Close #44184
2021-11-18 10:20:39 -08:00
Renovate Bot 76f390be95 build: update angular (#44145)
PR Close #44145
2021-11-18 10:17:16 -08:00
profanis fa46db8f43 docs: add profanis to GDE resources (#44147)
PR Close #44147
2021-11-17 10:32:26 -08:00
fusho-takahashi 158ad09945 docs: Adding type annotation to ngOnInit() to make it consistent with the class structure produced by the CLI (#43579)
PR Close #43579
2021-11-16 14:09:52 -08:00
Armen Vardanyan f218644784 docs: add armen vardanyan to GDE resources (#43919)
PR Close #43919
2021-11-16 14:09:01 -08:00
Ramesh Thiruchelvam 83d22847ee test: type spy objects in test example (#44170)
Example for test doesn't use typing for Jasmine Spy objects. Updated 
them with `SpyObj<T>` typing as in the Angular Documentation.

See https://angular.io/guide/testing-services

PR Close #44170
2021-11-16 09:38:43 -08:00
Paul Gschwendtner 9c47b77b05 build: sync all lock file and package.json updates from next with patch (#44134)
With the goal of avoiding more conflicts with build changes that should
go into both patch + next in general, this commit brings the lock files
+ `package.json` files from patch branch to the equivalent contents of
the next branch, except for the actual `version` field.

PR Close #44134
2021-11-10 23:33:11 +00:00
ileil 5ae679deb8 docs: update review tag to topic (#44008)
PR Close #44008
2021-11-10 19:29:13 +00:00
Pavan Kumar Jadda 2256734fea docs: updates typescript configuration file links (#44131)
The links for `tsconfig.json` target and module sections no longer valid. This commit updates the document with correct links
PR Close #44131
2021-11-10 17:37:03 +00:00
kreuzerk c3d925f400 docs: including additional assets into libraries (#44076)
PR Close #44076
2021-11-09 20:54:22 +00:00
George Kalpakas 47a5136bae build(docs-infra): remove unnecessary work-around for SW config generation (#44114)
Since angular.io is now updated to a version that includes the fix
from #43679, the work-around added in
841c5aebbf can now be removed.

PR Close #44114
2021-11-09 18:08:20 +00:00
dario-piotrowicz c6d023b39f fix(docs-infra): prevent automatic linking of 'number' (#44000)
add 'number' to the ignoreGenericWords set so that it doesn't get
wrongly linked to the decimalPipe during the aio docs generation
as it is a generic typescript term

PR Close #44000
2021-11-09 18:03:39 +00:00
dario-piotrowicz 1434fad0bf refactor(docs-infra): remove eslint directive comments from examples (#43831)
Linting has recently been removed from the examples provided in angular.io
(see PRs #43592 and #43746) such removal effects the downloadable and
stackblitz examples but linting is still generally used in the examples
in the aio project itself (they are being migrated from tslint to eslint in
PR #43218) thus eslint directive comments are still necessary in the code itself.

So the comments need to be present but need not to be exposed to the users
(not in the zips, stackblitzes nor docs themselves), these changes are
removing such comments during the examples' parsing phase (effectively
removing them from all three sources mentioned above).

Original discussion: https://github.com/angular/angular/pull/43218#discussion_r697305494

resolves #43788

PR Close #43831
2021-11-09 18:02:33 +00:00
profanis b7d27aaf54 docs(animations): express the seconds in numbers (#40098)
I've noticed that the seconds are expressed both by using numbers and words.
For example, the doc says `0.5 second` and not `half second`.
I believe is more readable to express them by using numbers and is consistent too.

PR Close #40098
2021-11-09 18:01:47 +00:00
Pete Bacon Darwin 644e1e2f8f docs: update getting started tutorial to use StackBlitz web-containers (#44085)
Previous commits changed the docs to use web-container versions for StackBlitz examples.
This commit updates the content of the tutorial to match.

Fixes #44079

PR Close #44085
2021-11-08 18:12:17 +00:00
Pete Bacon Darwin 65fd656444 build(docs-infra): remove link to custom Stackblitz for running tests (#44085)
Previously there was a custom version of the testing app for Stackblitz that would run the tests in the browser.
With the web-container approach, this is no longer necessary since the tests can be run directly from the command line.

Fixes #44047

PR Close #44085
2021-11-08 18:12:17 +00:00
Pete Bacon Darwin 0f64a35ade build(docs-infra): ensure necessary boilerplate files appear in Stackblitz examples (#44085)
The `tsconfig.app.json` and similar were not appearing in the generated Stackblitz examples.

PR Close #44085
2021-11-08 18:12:17 +00:00
Pete Bacon Darwin 091db9c325 build(docs-infra): remove unused code (#44085)
This import was not being used and so it is redundant and can be removed.

PR Close #44085
2021-11-08 18:12:17 +00:00
Pete Bacon Darwin 0c6c4d815e docs: add Angular 13 support information (#44098)
Closes #44097

PR Close #44098
2021-11-08 17:03:59 +00:00
Michael Urban db37f029b7 docs(animations): update developers on state of package (#44014)
Notify developers that @angular/animations package has been "significantly de-prioritized"

`animateChild` documentation now references #30477

References #30477# Please enter the commit message for your changes. Lines starting

PR Close #44014
2021-11-08 17:03:29 +00:00
George Kalpakas 7e0c7cefe5 build(docs-infra): fix SystemJS-based docs examples (#43868)
Previously, the SystemJS-based docs examples (typically `ngUpgrade`
examples) were not compatible with Angular v13 (due to the removal of
UMD bundles from the published packages).

This commit makes the examples compatible with Angular v13 and
re-enables the tests for all SystemJS-based examples on CI.

PR Close #43868
2021-11-08 17:01:16 +00:00
George Kalpakas 23d56d7469 build(docs-infra): include systemjs as a dependency to SystemJS-based docs examples (#43868)
Due to an oversight, the `systemjs` package was previously not included
as a dependency in the boilerplate `package.json` file for
SystemJS-based docs examples, despite it being required by the app.

PR Close #43868
2021-11-08 17:01:16 +00:00
George Kalpakas f367efb14d docs(upgrade): minor fixes to the upgrade guide (#43868)
Includes the following fixes:
- Remove unused `format` attribute from `<code-example>` elements
- Explicitly mention that the starting point for the "Phonecat Upgrade
  Tutorial" is the 1.5.x version of the original Phonecat tutorial
  (since the original tutorial has since been updated to use AngularJS
  v1.8.x and use npm instead of bower).

PR Close #43868
2021-11-08 17:01:16 +00:00
Joe Martin (Crowdstaffing) 8566b78191 docs: update link (#44017)
Update link to match heading.

PR Close #44017
2021-11-08 17:00:18 +00:00
George Kalpakas f3d9e117d2 build(docs-infra): update Angular CLI/framework/Material to final v13 RCs in docs examples (#44030)
This commit updates the docs examples to the latest prerelease versions
of Angular CLI, framework and CDK/Material.

It also updates the apps to more closely align with new apps CLI apps.
See also the [diff][1] between a basic v13.0.0-rc.0 CLI app and a
v13.0.0-rc.2 one.

[1]: cexbrayat/angular-cli-diff@13.0.0-rc.0...13.0.0-rc.2

PR Close #44030
2021-11-08 16:59:47 +00:00
Paul Gschwendtner f477d0cc55 build(docs-infra): update AIO to angular framework/components/cli final RCs (#44030)
Updates AIO to the latest v13 release-candidate version of all
Angular-owned packages, such as Angular CDK and Angular Material.

Applies changes needed for the v13 CLI as performed by the CLI
through `ng update`:

https://github.com/angular/angular-cli/tree/7ff8c5350ea2e49574dd659adae02215957d2685/packages/schematics/angular/migrations/update-13.

Additionally, the web components polyfill has been removed as all browsers
supported by Angular seem to support custom elements v1 natively, according to:

* https://caniuse.com/custom-elementsv1
* https://www.webcomponents.org/ (scroll down to browser support)

Co-authored-by: George Kalpakas <kalpakas.g@gmail.com>

PR Close #44030
2021-11-08 16:59:47 +00:00