-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an Angular wrapper #7860
Comments
Watching. |
Additional testing and review will take place later this week, and should be available as part of |
Will the wrapper be aimed at the latest shipping version of Angular? Angular 17 is scheduled for release next week. I did some limited testing on it with @arcgis/core and didn't see any issues (other than the broken data binding). We'll also need to do some basic sanity testing with Angular Control Flow and @arcgis/core + components. |
**Related Issue:** #7860 ## Summary Add a package of angular components that wrap the web component library following [Stencil's documentation](https://stenciljs.com/docs/v2/angular). There were a lot of type related build errors and I ended up adding three patches: 1. Rebuild the web component library if the CC types aren't generated correctly as a workaround for ionic-team/stencil#3239 2. Fix a couple type import paths for event details that were generated by `@stencil/angular-output-target`. Not sure if this one is an issue on our end or theirs. 3. A JSDOM types error that [other people also experienced when using stencil's angular output target](DefinitelyTyped/DefinitelyTyped#57467 (reply in thread)). All of the build/CI stuff is working correctly. It was a bit wonky at first because we need an angular workspace just to build a single component library. --------- Co-authored-by: Anveshreddy mekala <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Installed and assigned for verification. |
**Related Issue:** #7860 ## Summary Angular has an unusual workflow where you need to `cd` into the library's `dist` directory and run `npm publish` from there. I found related Lerna issues that culminated in the ability to publish a particular package from a different directory. This is the doc I found for the config option: https://github.com/lerna/lerna/tree/main/libs/commands/publish#publishconfigdirectory Unfortunately, it didn't end up working, so `v1.10.1-next.3` of the angular wrapper is broken. I'm not aware of a way to test the results of `lerna publish` without actually publishing. I ended up copying the config from the `arcgis-web-components` repo's angular wrapper once I remembered they use Lerna.
**Related Issue:** #7860 ## Summary Angular has an unusual workflow where you need to `cd` into the library's `dist` directory and run `npm publish` from there. I found related Lerna issues that culminated in the ability to publish a particular package from a different directory. This is the doc I found for the config option: https://github.com/lerna/lerna/tree/main/libs/commands/publish#publishconfigdirectory Unfortunately, it didn't end up working, so `v1.10.1-next.3` of the angular wrapper is broken. I'm not aware of a way to test the results of `lerna publish` without actually publishing. I ended up copying the config from the `arcgis-web-components` repo's angular wrapper once I remembered they use Lerna.
Awesome, new typings make the use of the components much easier. When it comes to Angular, it would be great to add support for native reactive forms. It is quite simple to extend the generated directives and I made an example for couple of components. In case you would be interested, I would be keen to contribute and add some tests. |
Verified with the Side note: @martinbojnansky Thanks for the insights, would you be able to file an enhancement request for a follow-up regarding the native reactive forms? We'd love to have additional contributions and tests added if its of interest in filing, too. 💪🏻 |
**Related Issue:** #7860 ## Summary Adds the angular package to our issue templates for: a11y, bugs, enhancements, and refactors.
@geospatialem Great! A request #8249 created. |
**Related Issue:** #7860 ## Summary Adds the angular package to our issue templates for: a11y, bugs, enhancements, and refactors.
**Related Issue:** #7860 ## Summary Adds the angular package to our issue templates for: a11y, bugs, enhancements, and refactors.
**Related Issue:** #7860 ## Summary Adds the angular package to our issue templates for: a11y, bugs, enhancements, and refactors.
Check existing issues
Description
Determine feasibility and implement an Angular wrapper, similar to the React wrapper to support users working in the Angular framework.
This came up at DevSummit and UC, where users were asking for integration with their Angular applications.
Acceptance Criteria
Criteria taken from Stencil's docs after installing the
@stencil\angular-output-target
dependency:@Output()
and will not emit across component boundaries.[ngModel]
.CUSTOM_ELEMENTS_SCHEMA
in all modules consuming your Stencil components.Relevant Info
Additional framework integration support from Stencil's documentation.
Could potentially mitigate the issue identified in #7729 cc: @andygup
Which Component
All components
Example Use Case
No response
Priority impact
p3 - want for upcoming milestone
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: