-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TypeScript and Angular 5 support #82
Comments
We'll discuss about your question. |
That would be great. This calendar rocks. |
Thanks @mristo for your attention. |
Hi, I have started working on this issue as a hobby project. But ran into some CSS issues. I have created a trim down version to demonstrate it in a Typescript only project (not angular). |
I'm on it. |
Oh, I found something wrong in the minified Thank you! |
@dongsik-yoo Cool, I have updated it as directed. Now I don't see day numbers. The same link please check. |
@amanvishnani Good, the only what you have to do is set height of container. |
@dongsik-yoo Thanks for the help. |
@amanvishnani You're welcome. Are you working on making typescript wrapper? |
@dongsik-yoo My primary goal is to make it work on Angular with Typescript by creating a component wrapper around it, which could be reused by installing as npm dependency and, importing module and components from it. |
@amanvishnani Great! It will be awesome! I'm look forward to your good package. |
hello all, working on something similar, available at https://github.com/brnrds/ngx-tui-dev/tree/master/projects/ngx-tui-calendar/src/lib or via currently broken, getting ERROR Error: StaticInjectorError(AppModule)[NgxTuiCalendarComponent -> ElementRef]: in Angular 5/6 @amanvishnani maybe we can merge these efforts? |
@brnrds Sure we can work collaboratively on this project, I was hoping if we could host repository somewhere on this organization itself. This will keep all related repositories at one place. @dongsik-yoo What do you think? |
@brnrds @amanvishnani Amazing. |
@amanvishnani @dongsik-yoo so far my progress has been to emulate the approach in https://github.com/mattlewis92/angular-gauge/blob/master/src/gauge.component.ts to make a wrapper for tui.calendar. @amanvishnani feel free to submit pull requests, or move the code in the repo above to a new one. |
@brnrds @amanvishnani Good news! |
Code inside this lib will help you a lot. It is Angular wrapper of Echarts, which provides directive and service to use echart. It shows how to handle window resize, option changes, and other events. It would be also useful to wrap |
And using directive would be better than wrapper component, because getting viewport from DOM does not work well inside component. So these lines should not work as expected... you might have to manually pass height and width. Or you need a bunch of glue code for setting component's host style. @dongsik-yoo |
I am in favor of either one of |
It might be And we can create If you write angular project with
"dependencies": {
~~~
"@tui/angular": "1.0.0",
"@tui/calendar": "1.0.0",
"@tui/chart": "1.0.0"
}
~~~
"styles": [
"../node_modules/@tui/calendar/tui-calendar.min.css",
"../node_modules/@tui/chart/tui-chart.min.css"
],
"scripts": [
"../node_modules/@tui/calendar/tui-calendar.min.js",
"../node_modules/@tui/chart/tui-chart.min.js"
]
imports: [
~~~
TuiModule.forRoot()
]
<tui-calendar [options]="calendarOptions"></tui-calendar>
<tui-chart [options]="chartOptions"></tui-chart>
<!-- <tui-editor></tui-editor> (Error!) --> |
Thanks for the pull request, @amanvishnani ! Also for the reference @icepeng :-) Busy with a few tasks but I'll push an update as soon as I figure out how to actually show the calendar. As for the repository name, while all suggestions seem viable, I particularly like '@tui/...' because it would make things organized as more Toast UI projects have their Angular wrappers. My suggestion is to keep working for now on the repository @amanvishnani is already contributing to, and once it's actually working create to "official" repository under your organization, and I'll delete this temporary one. Also, input on best practices is most welcome, since I'm a relative newcomer to Angular (and client-side in general) and would like to contribute to a good implementation that can be used as reference for other TUI Angular wrappers. |
@icepeng As you point, @amanvishnani @brnrds We have a discussion to determine the repository name and package name convention. I'll let you know when I have a decision. |
Hello all, things just got rather busy around here and I'll only have time/availability to work on this from the 2018/05/21 onward. If @amanvishnani or other contributors send pull requests I'll gladly merge them, or I can transfer ownership, whichever there is consensus about. |
Good news, had a chance to pick this up yesterday, and António, a colleague, also helped out. This is now working: https://github.com/brnrds/ngx-tui-dev , pending adding type/interface definitions for the library's classes and installation instructions. |
@dongsik-yoo Thanks for the reply.
Thanks! |
NHN Entertainment offers a new repository for angular wrapper. https://github.com/nhnent/tui.ngx-calendar. Thank you @kartikbb @mristo @amanvishnani @brnrds @worthy7 @icepeng @srinek . And another TOAST UI Family, Grid v3.0 has been released. New awesome theme and Tree+Grid feature. Please take a look. This grid has beed adopted by many company at their back office. |
Good news. If we create other Angular wrapper for TOAST UI, then we have to create each repositories like I prefer to have only one package |
Hmm nah. Angular Material is going to rely on a lot of common base components, TUI doesn't. If one uses Angular Material then it's expected that you would use most of the modules. It's not like that with TUI. |
I thought too many repos would be created in nhnent organization in future, but it might be ok for now. |
@brnrds Do you have write access to the new repo? Can you deal with my PR's please? |
@worthy7 I merged your PR. |
Can you also NPM Release? This kinda needs to be a regular thing if possible
…On Mon, 9 Jul 2018 at 17:01, 유동식 ***@***.***> wrote:
@worthy7 <https://github.com/Worthy7> I merged your PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEirH5SCvz42MjsYOhPSdearAjj1QKkCks5uEw3PgaJpZM4Tqtx0>
.
|
I have no idea how to release packages but I can learn. Thanks
…On Mon, 9 Jul 2018 at 17:43, 유동식 ***@***.***> wrote:
@worthy7 <https://github.com/Worthy7> Did you get the npm access
permission from @brnrds <https://github.com/brnrds> ?
There is possibility that I make a mistake because I don't know about this
wrapper.
I think it's better that you and @brnrds <https://github.com/brnrds>
release the npm package.
What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEirHx9twC7BhoCwbgA-VDbfqmSF7ydTks5uExeegaJpZM4Tqtx0>
.
|
Anyone knows why I am getting the errors above? |
|
@vindiezel23 The wrappers of tui-calendar are maintained by community and users. So ngx-tui-calendar's users will be grateful for you if you send us PR. |
@dongsik-yoo Well, someone needs to be in charge of pushing and fixing NPM packages. |
@brnrds poke |
@dongsik-yoo Can you please give me NPM permission for now and I'll see what I can do |
Done. @worthy7 has been added as a maintainer. |
@dongsik-yoo How do you want this to work exactly? Or, I become a contributer on the repo, and I manage it all. It makes no sense for me to have NPM permission but not GitHub permission. Let me know which one works for you - I don't mind either way, and I can tell you how to use NPM publish properly since I figured it out today. |
@worthy7 Actually, I have to choose first option that you suggest. Because NHN Entertainment has the company's management policy of their repositories. I also agree with you about different permission between NPM and Github. But it can't be done with this NHN repository. How about using another independent repository again? |
So who in NHN is going to check Pull requests and publish to NPM? Remove my permission from NPM then. I would rather keep this simple for myself. At some point I think that NHN should be contributing to this angular version anyway, so keeping the repo with you guys seems logical. |
@dongsik-yoo Please merge in my pull request for ReadOnly, then the NPM changes one, and try to publish to NPM yourself then :-) |
@dongsik-yoo @worthy7 , is there any update on the Angular 5/6/7 wrapper for this component? |
@nicholasgcoles It's completely dead and it looks like it will stay that way. |
Typescript interface is here v1.9.1. |
Do you plan to introduce TypeScript and Angular 5 support anytime in near future?
The text was updated successfully, but these errors were encountered: