Re: AW: How to put an example online

2016-12-30 Thread OmPrakash Muppirala
I can work on the permanent solution after I wrap up the Flex team page app
(i.e. soon)

Chris, I am thinking of setting up a Jenkins web hook that builds and posts
a new TourDeFlexJS web app every time a commit is made to a new
TourDeFlexJS git repo.

The website can be my personal github site for now.  We can figure out if
we want to do a new website or new subdomain on apache.org or simply a
folder on flex.apache.org later.

What do you think?

Thanks,
Om

On Dec 30, 2016 2:08 PM, "Alex Harui"  wrote:

>
>
> On 12/30/16, 10:24 AM, "piotrz"  wrote:
>
> >PKumar,
> >
> >I think that may be our last step once we finished all work on components
> >[1] itself.
> >
> >[1] https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components
>
> Any volunteer is welcome to start now.  Should we create a new git repo
> for a TourDeFlexJS?  Seems like it should be a different release so it can
> be updated independently of the FlexJS SDK?  Or should it all be in one
> bundle?
>
> Thoughts?
> -Alex
>
>


Re: AW: How to put an example online

2016-12-30 Thread Alex Harui


On 12/30/16, 10:24 AM, "piotrz"  wrote:

>PKumar,
>
>I think that may be our last step once we finished all work on components
>[1] itself.
>
>[1] https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components

Any volunteer is welcome to start now.  Should we create a new git repo
for a TourDeFlexJS?  Seems like it should be a different release so it can
be updated independently of the FlexJS SDK?  Or should it all be in one
bundle?

Thoughts?
-Alex



Re: AW: How to put an example online

2016-12-30 Thread Alex Harui


On 12/30/16, 11:22 AM, "omup...@gmail.com on behalf of OmPrakash
Muppirala"  wrote:

>If no one has objections, I will put this up on my personal github site
>for
>now.

Are you setting up CI for it as well or just posting the output?

I can probably also get this running on apacheflexbuilds.  More places,
the better, IMO.

-Alex



RE: [FlexJS] Slider valueChange not working

2016-12-30 Thread Josh Tynjala
Yishay and Piotr,

It might help Carlos if you can open up the browser's developer tools when
the demo fails and post any errors you see in the console. Even if he can't
reproduce himself, a null reference or something at a specific line might
be enough of a clue.

- Josh

On Dec 30, 2016 11:41 AM, "Yishay Weiss"  wrote:

It works on my windows 10 machine on Chrome, FF, IE. Edge doesn’t show the
slider button for some reason.

Nice demo. I think when people see the source code, alongside the elegant
result, they’ll be all the more curious about FlexJS.



From: Carlos Rovira
Sent: Friday, December 30, 2016 3:19 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] Slider valueChange not working



Maybe others on windows could test it?


El El vie, 30 dic 2016 a las 11:49, piotrz 
escribió:

> It's working on Edge and Firefox on my PC.
>
>
>
>
>
>
>
> -
>
> Apache Flex PMC
>
> piotrzarzyck...@gmail.com
>
> --
>
> View this message in context:
> http://apache-flex-development.247.n4.nabble.
com/FlexJS-Slider-valueChange-not-working-tp56846p57667.html
>
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>


Re: AW: How to put an example online

2016-12-30 Thread Carlos Rovira
Sorry to begin late to the thread. I just tried the link and is working for
me, but is very slow, don't know if is due to my poor internet connection
here in my wifi and/or apache build servers having huge load or not prepare
to serve this content.

Om If you want to upload to your personal GitHub that would be great.

I want to take advantage of this live example to throw some tweets and make
some noise again, and see if we get more peoples eye attraction :)

Thanks!

Carlos


2016-12-30 20:22 GMT+01:00 OmPrakash Muppirala :

> If no one has objections, I will put this up on my personal github site for
> now.
>
> Thanks,
> Om
>
> On Dec 30, 2016 10:41 AM, "piotrz"  wrote:
>
> > PKumar,
> >
> > I think that may be our last step once we finished all work on components
> > [1] itself.
> >
> > [1] https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components
> >
> > Piotr
> >
> >
> >
> > -
> > Apache Flex PMC
> > piotrzarzyck...@gmail.com
> > --
> > View this message in context: http://apache-flex-
> > development.247.n4.nabble.com/How-to-put-an-example-
> > online-tp57619p57686.html
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
> >
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread Carlos Rovira
Thanks Yishay, for take a look and for the nice words :)

Since we are building the exact HTML in the MDL examples, I think that if
ours is failing, so that should be happening with official MDL library...

2016-12-30 20:41 GMT+01:00 Yishay Weiss :

> It works on my windows 10 machine on Chrome, FF, IE. Edge doesn’t show the
> slider button for some reason.
>
> Nice demo. I think when people see the source code, alongside the elegant
> result, they’ll be all the more curious about FlexJS.
>
>
>
> *From: *Carlos Rovira 
> *Sent: *Friday, December 30, 2016 3:19 PM
> *To: *dev@flex.apache.org
> *Subject: *Re: [FlexJS] Slider valueChange not working
>
>
> Maybe others on windows could test it?
>
>
> El El vie, 30 dic 2016 a las 11:49, piotrz 
> escribió:
>
> > It's working on Edge and Firefox on my PC.
> >
> >
> >
> >
> >
> >
> >
> > -
> >
> > Apache Flex PMC
> >
> > piotrzarzyck...@gmail.com
> >
> > --
> >
> > View this message in context:
> > http://apache-flex-development.247.n4.nabble.
> com/FlexJS-Slider-valueChange-not-working-tp56846p57667.html
> >
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
> >
> >
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


RE: [FlexJS] Slider valueChange not working

2016-12-30 Thread Yishay Weiss
It works on my windows 10 machine on Chrome, FF, IE. Edge doesn’t show the 
slider button for some reason.

Nice demo. I think when people see the source code, alongside the elegant 
result, they’ll be all the more curious about FlexJS.



From: Carlos Rovira
Sent: Friday, December 30, 2016 3:19 PM
To: dev@flex.apache.org
Subject: Re: [FlexJS] Slider valueChange not working



Maybe others on windows could test it?


El El vie, 30 dic 2016 a las 11:49, piotrz 
escribió:

> It's working on Edge and Firefox on my PC.
>
>
>
>
>
>
>
> -
>
> Apache Flex PMC
>
> piotrzarzyck...@gmail.com
>
> --
>
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-Slider-valueChange-not-working-tp56846p57667.html
>
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>


Re: AW: How to put an example online

2016-12-30 Thread OmPrakash Muppirala
If no one has objections, I will put this up on my personal github site for
now.

Thanks,
Om

On Dec 30, 2016 10:41 AM, "piotrz"  wrote:

> PKumar,
>
> I think that may be our last step once we finished all work on components
> [1] itself.
>
> [1] https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components
>
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/How-to-put-an-example-
> online-tp57619p57686.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: AW: How to put an example online

2016-12-30 Thread piotrz
PKumar,

I think that may be our last step once we finished all work on components
[1] itself.

[1] https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/How-to-put-an-example-online-tp57619p57686.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Support for CSS calc() function

2016-12-30 Thread Alex Harui


On 12/30/16, 8:30 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:

>Hi Alex, a brief summary in this email of where we should look, classes
>involved and some explanations of what should we find would be a great
>place to start. thanks!

It looks like calc() is a function.  It looks like the compiler already
handles some functions like ClassReference() and local(), so I think the
trick is to copy how ClassReference is used in the lexer and parser.  The
lexer is:

compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSS.g

The parser is:
compiler/src/main/antlr3/org/apache/flex/compiler/internal/css/CSSTree.g


The parser creates instances of classes that represent the CSS.  A new
class definition for calc() is probably needed.

Then in 
compiler-jx/src/main/java/org/apache/flex/compiler/internal/driver/js/flexj
s/JSCSSCompilationSession.java
The emitCSS method re-generates the CSS file from the data structure.

Thanks,
-Alex



Re: [FlexJS] Cleaning up in the compiler

2016-12-30 Thread Christofer Dutz
Hi Alex,

Well I don’t really care where the Ant scripts are … from my point of view I 
would suggest to have all build scripts in the root of the module they belong 
to, or in some direct sub-directory which indicates it’s build relevance 
(“build”/”ant” or something similar). Stuff in the src/main/resources directly 
goes into the produced jar artifact, which might not be what we intended to be, 
or do they have to go in there … you mention the installer? If the installer 
needs this file to know how to download dependencies, then it might be good to 
keep it in there. If it’s not needed in the jar, but just needed by two 
different Ant scripts, I would prefer the module-root-option. 

But as that doesn’t interfere with the Maven build and all we have in the worst 
case, is a strange Ant script that no one needs, so that’s not an itch I would 
need immediate scratching. I was just surprised and was interested in the 
background.

Chris



Am 30.12.16, 18:59 schrieb "Alex Harui" :



On 12/30/16, 8:38 AM, "Christofer Dutz"  wrote:

>Ok … so I did something … hope it’s correct … I was a little surprised to
>find Ant build scripts in “src/main/resources” and “src/test/resources”
>any reason for packing in these parts of the build scripts into the final
>jar?

I thought that's where you wanted them.  Downloads.xml doesn't need to go
in the jar, but it is shared by both build.xml and installer.xml so it
goes in the binary artifacts.  We can move it if you want.

-Alex





Re: [FlexJS] Cleaning up in the compiler

2016-12-30 Thread Alex Harui


On 12/30/16, 8:38 AM, "Christofer Dutz"  wrote:

>Ok … so I did something … hope it’s correct … I was a little surprised to
>find Ant build scripts in “src/main/resources” and “src/test/resources”
>any reason for packing in these parts of the build scripts into the final
>jar?

I thought that's where you wanted them.  Downloads.xml doesn't need to go
in the jar, but it is shared by both build.xml and installer.xml so it
goes in the binary artifacts.  We can move it if you want.

-Alex



Re: AW: How to put an example online

2016-12-30 Thread PKumar
I  have seen the following URL without login.

https://s.apache.org/MDLExample

Controls are looking great. it will be better if we can use individual
control and create demo for other users. As we have example in tour de flex.



--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/How-to-put-an-example-online-tp57619p57681.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread OmPrakash Muppirala
On Dec 30, 2016 8:31 AM, "Carlos Rovira" 
wrote:

In the examples I found there's no sub items, but we should look to see if
there's more. I think that should be supported, if not a menu with only one
 level seems very limited to me...



Angular Material has menu with sub menus.  We should definitely support
that.

Thanks,
Om


2016-12-30 16:54 GMT+01:00 Alex Harui :

>
>
> On 12/30/16, 2:31 AM, "piotrz"  wrote:
>
> >In other words our Menu will be some kind of MDL List form.
>
> For a simple Menu this should be fine.  For a Menu with sub-menus, it will
> need many of the things Tree needs.  I don't know if MDL has a Tree, or
> not.
>
> Just me thinking out loud...
> -Alex
>
>


--

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread piotrz
If I understand correctly it is planned for v2 [1] of MDL. I need to think
about support sub menu. In theory one of my item renderer MenuItem could be
submenu.

[1] https://github.com/google/material-design-lite/issues/4235

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Menu-with-dataProvider-and-itemRenderer-API-tp57637p57679.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Cleaning up in the compiler

2016-12-30 Thread Christofer Dutz
Ok … so I did something … hope it’s correct … I was a little surprised to find 
Ant build scripts in “src/main/resources” and “src/test/resources” any reason 
for packing in these parts of the build scripts into the final jar?

Chris

Am 30.12.16, 17:23 schrieb "Christofer Dutz" :

Well It should be pushed as Jenkins is already building it ;-)

https://builds.apache.org/view/E-G/view/Flex/job/FlexJS%20Pipeline/job/feature-autobuild%252Fcleanup/5/

But I started writing that email two days ago and had it waiting in the 
background till I noticed that I never sent it.

I’ll give it a try …

Chris

Am 30.12.16, 17:08 schrieb "Alex Harui" :



On 12/30/16, 3:39 AM, "Christofer Dutz"  
wrote:

>Hi,
>
>Today I created a new branch “feature-autobuild/cleanup” in which I am
>planning on cleaning up stuff. As a first test, I replaced usages of
>“System.out.print(ln)” and “System.err.print(ln)” with Log4J 2 loggers
>and made sure we have a CI build for this. It would be great if someone
>from the Ant fraction could update the Ant build to pull in the two
>additional Ant libraries. And as I am expecting on eventually 
scratching
>some more itches … is there a way I could simply add the jars without
>having update the Ant scripts. I’m sort of thinking of adding some 
items
>to a list and not having to add 3 or 4 new targets that have to be
>integrated in several places?

I haven't seen emails on commits@ for this.  Did you already push it?
Adding new dependencies should be as simple as copying the pattern in
downloads.xml.  I'd be fine if you just took a guess at it even if it
isn't perfect.  That would save those who support the Ant builds time of
having to figure out which exact URL to use.

Thanks,
-Alex







Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread Carlos Rovira
In the examples I found there's no sub items, but we should look to see if
there's more. I think that should be supported, if not a menu with only one
 level seems very limited to me...

2016-12-30 16:54 GMT+01:00 Alex Harui :

>
>
> On 12/30/16, 2:31 AM, "piotrz"  wrote:
>
> >In other words our Menu will be some kind of MDL List form.
>
> For a simple Menu this should be fine.  For a Menu with sub-menus, it will
> need many of the things Tree needs.  I don't know if MDL has a Tree, or
> not.
>
> Just me thinking out loud...
> -Alex
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Support for CSS calc() function

2016-12-30 Thread Carlos Rovira
Hi Alex, a brief summary in this email of where we should look, classes
involved and some explanations of what should we find would be a great
place to start. thanks!

2016-12-30 16:48 GMT+01:00 Alex Harui :

>
>
> On 12/30/16, 1:15 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
> 
> wrote:
>
> >Hi Om,
> >
> >I suggest you log a bug in Jira and assign it to Alex, since he fixed many
> >other CSS bugs. We are getting close to get a decent CSS support in FlexJS
> >:)
>
> Definitely file a JIRA.  But Om, or anybody, is welcome to try to follow
> the patterns in the compiler and make the fix themselves.  I'll definitely
> offer advice if someone else wants to learn more about how to do this.  I
> don't want to be the only one who can fix these things.
>
> -Alex
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Cleaning up in the compiler

2016-12-30 Thread Christofer Dutz
Well It should be pushed as Jenkins is already building it ;-)
https://builds.apache.org/view/E-G/view/Flex/job/FlexJS%20Pipeline/job/feature-autobuild%252Fcleanup/5/

But I started writing that email two days ago and had it waiting in the 
background till I noticed that I never sent it.

I’ll give it a try …

Chris

Am 30.12.16, 17:08 schrieb "Alex Harui" :



On 12/30/16, 3:39 AM, "Christofer Dutz"  wrote:

>Hi,
>
>Today I created a new branch “feature-autobuild/cleanup” in which I am
>planning on cleaning up stuff. As a first test, I replaced usages of
>“System.out.print(ln)” and “System.err.print(ln)” with Log4J 2 loggers
>and made sure we have a CI build for this. It would be great if someone
>from the Ant fraction could update the Ant build to pull in the two
>additional Ant libraries. And as I am expecting on eventually scratching
>some more itches … is there a way I could simply add the jars without
>having update the Ant scripts. I’m sort of thinking of adding some items
>to a list and not having to add 3 or 4 new targets that have to be
>integrated in several places?

I haven't seen emails on commits@ for this.  Did you already push it?
Adding new dependencies should be as simple as copying the pattern in
downloads.xml.  I'd be fine if you just took a guess at it even if it
isn't perfect.  That would save those who support the Ant builds time of
having to figure out which exact URL to use.

Thanks,
-Alex





Re: [FlexJS] Cleaning up in the compiler

2016-12-30 Thread Alex Harui


On 12/30/16, 3:39 AM, "Christofer Dutz"  wrote:

>Hi,
>
>Today I created a new branch “feature-autobuild/cleanup” in which I am
>planning on cleaning up stuff. As a first test, I replaced usages of
>“System.out.print(ln)” and “System.err.print(ln)” with Log4J 2 loggers
>and made sure we have a CI build for this. It would be great if someone
>from the Ant fraction could update the Ant build to pull in the two
>additional Ant libraries. And as I am expecting on eventually scratching
>some more itches … is there a way I could simply add the jars without
>having update the Ant scripts. I’m sort of thinking of adding some items
>to a list and not having to add 3 or 4 new targets that have to be
>integrated in several places?

I haven't seen emails on commits@ for this.  Did you already push it?
Adding new dependencies should be as simple as copying the pattern in
downloads.xml.  I'd be fine if you just took a guess at it even if it
isn't perfect.  That would save those who support the Ant builds time of
having to figure out which exact URL to use.

Thanks,
-Alex



Re: [FlexJS, MDL] SnackbarModel and events

2016-12-30 Thread Alex Harui


On 12/30/16, 1:38 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:
>
>I  really does not talk to introduce new events, in Slider, I must to get
>the slider change event that the MDL control is dispatching and then make
>our slider flexjs component throw a "valueChange" flexjs event. I think
>most of the time we will do this since is how MDL framework controls
>works.
>My question was more about, if we should call "valueChange" event as is or
>call it  only "change" like MDL does. I think we both likes flexjs name
>"valueChange"

I would prefer "change".  It seems to be a common expectation.  Lots of
controls dispatch it.  FWIW, "valueChange" is being used for properties
with [Bindable] that don't specify their own event name (in regular Flex
it was called "propertyChange" but not everything that changes is a
property).

Another thing to think about is whether you need to package up all of the
things in a ValueChangeEvent like the property name, old value, and new
value.  The data binding code definitely needs property name to
distinguish one bindable property change from another, but I think most
control users don't need it and can just easily look at the current value
of the control.  Then the code doesn't have to waste time packaging up
that extra data.

Of course, other opinions are welcome...
-Alex



Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread Alex Harui


On 12/30/16, 2:31 AM, "piotrz"  wrote:

>In other words our Menu will be some kind of MDL List form.

For a simple Menu this should be fine.  For a Menu with sub-menus, it will
need many of the things Tree needs.  I don't know if MDL has a Tree, or
not.

Just me thinking out loud...
-Alex



Re: [FlexJS] Support for CSS calc() function

2016-12-30 Thread Alex Harui


On 12/30/16, 1:15 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
 wrote:

>Hi Om,
>
>I suggest you log a bug in Jira and assign it to Alex, since he fixed many
>other CSS bugs. We are getting close to get a decent CSS support in FlexJS
>:)

Definitely file a JIRA.  But Om, or anybody, is welcome to try to follow
the patterns in the compiler and make the fix themselves.  I'll definitely
offer advice if someone else wants to learn more about how to do this.  I
don't want to be the only one who can fix these things.

-Alex



Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread Carlos Rovira
Rigth, i'm off and don't hace access to code but I think  menu could be a
list and menuitem could be a itemrenderer but be free to experiment :)



El El vie, 30 dic 2016 a las 11:47, piotrz 
escribió:

> I went through List implementation and see that contents of data provider
> is
>
> handled by: "IDataProviderItemRendererMapper" implementation. It creates
>
> item renderers for my view.
>
>
>
> I think I could go with following implementation:
>
>
>
> MenuView will implement IListView or event extends current ListView.
>
> MenuItem will extend ListItemRenderer.
>
>
>
> In other words our Menu will be some kind of MDL List form.
>
>
>
> Let me know what do you think.
>
>
>
> Piotr
>
>
>
>
>
>
>
> -
>
> Apache Flex PMC
>
> piotrzarzyck...@gmail.com
>
> --
>
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Menu-with-dataProvider-and-itemRenderer-API-tp57637p57666.html
>
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread Carlos Rovira
Maybe others on windows could test it?


El El vie, 30 dic 2016 a las 11:49, piotrz 
escribió:

> It's working on Edge and Firefox on my PC.
>
>
>
>
>
>
>
> -
>
> Apache Flex PMC
>
> piotrzarzyck...@gmail.com
>
> --
>
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-Slider-valueChange-not-working-tp56846p57667.html
>
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>


[FlexJS] Cleaning up in the compiler

2016-12-30 Thread Christofer Dutz
Hi,

Today I created a new branch “feature-autobuild/cleanup” in which I am planning 
on cleaning up stuff. As a first test, I replaced usages of 
“System.out.print(ln)” and “System.err.print(ln)” with Log4J 2 loggers and made 
sure we have a CI build for this. It would be great if someone from the Ant 
fraction could update the Ant build to pull in the two additional Ant 
libraries. And as I am expecting on eventually scratching some more itches … is 
there a way I could simply add the jars without having update the Ant scripts. 
I’m sort of thinking of adding some items to a list and not having to add 3 or 
4 new targets that have to be integrated in several places?

Chris




Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread piotrz
It's working on Edge and Firefox on my PC.



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Slider-valueChange-not-working-tp56846p57667.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread piotrz
I went through List implementation and see that contents of data provider is
handled by: "IDataProviderItemRendererMapper" implementation. It creates
item renderers for my view. 

I think I could go with following implementation:

MenuView will implement IListView or event extends current ListView.
MenuItem will extend ListItemRenderer.

In other words our Menu will be some kind of MDL List form. 

Let me know what do you think.

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Menu-with-dataProvider-and-itemRenderer-API-tp57637p57666.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread Carlos Rovira
I copied from the Peter example "ListExample"

2016-12-30 11:14 GMT+01:00 piotrz :

> Carlos,
>
> One question why you didn't use "DataItemRendererFactoryForArrayData" from
> core package in List ? You just copied and create new class
> "ItemRendererFactoryForArrayData" - I don't see diffs.
>
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Menu-with-
> dataProvider-and-itemRenderer-API-tp57637p57662.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread Carlos Rovira
Could you try in Firefox?

2016-12-30 11:18 GMT+01:00 piotrz :

> I will try later on second laptop and yes I'm on Windows 10. Maybe
> something
> is wrong with my Chrome. :)
>
> Piotr
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-Slider-valueChange-
> not-working-tp56846p57663.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread piotrz
I will try later on second laptop and yes I'm on Windows 10. Maybe something
is wrong with my Chrome. :)

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Slider-valueChange-not-working-tp56846p57663.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread piotrz
Carlos,

One question why you didn't use "DataItemRendererFactoryForArrayData" from
core package in List ? You just copied and create new class
"ItemRendererFactoryForArrayData" - I don't see diffs.

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Menu-with-dataProvider-and-itemRenderer-API-tp57637p57662.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread Carlos Rovira
Hi Piotr,

just tried in Safari (is what I use most of the time), Google Chrome and
Firefox and all is ok.
I'm on macOS Sierra, you are on windows? maybe the OS is making some
problem?

2016-12-30 10:58 GMT+01:00 piotrz :

> I've cleared browser catche before I tested it.
>
>
>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-Slider-valueChange-
> not-working-tp56846p57659.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread Carlos Rovira
2016-12-29 18:41 GMT+01:00 piotrz :

> Hi Carlos,
>
> Since I've finished Snackbar I can take next task. :) I see that Menu need
> to be updated with dataProvider and item renderer API.
> I will probably go same direction as you went with Lists - using
> ISelectionModel. I'm going also introduce in "core" package MenuEvent with
> ITEM_CLICK constant and new controller which handle click on menu item.
>
> Probably I will need to split Menu component into "Menu" and "MenuView"
> class.
>
> Let me know if you have any thoughts about that or different idea.
>
> Piotr
>
>
>
That's great Piotr :)

Right, we need to do something like in mdl List, and I think we should
introduce Controller and View like in Slider
I was thinking about it since I don't like to split in many pieces that
only will introduce complexity, but the reason to do it is prepare the
components for a SWF implementation.







>
> -
> Apache Flex PMC
> piotrzarzyck...@gmail.com
> --
> View this message in context: http://apache-flex-
> development.247.n4.nabble.com/FlexJS-MDL-Menu-with-
> dataProvider-and-itemRenderer-API-tp57637.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread piotrz
I've cleared browser catche before I tested it.



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Slider-valueChange-not-working-tp56846p57659.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread piotrz
Carlos,

And it's started :) It do not work on my Chrome, but working in other
browsers. Could you give a try on your Chrome if you have.

Thanks,
Piotr




-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Slider-valueChange-not-working-tp56846p57658.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Probable design to support runtime update to DataGrid component

2016-12-30 Thread piotrz
As for 1: Even if they in original source - we should probably unregister
them once we get what we want. 
Definately Peter will know better.

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Probable-design-to-support-runtime-update-to-DataGrid-component-tp57626p57657.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS, MDL] SnackbarModel and events

2016-12-30 Thread Carlos Rovira
> Carlos,
>
> In my opinion we should use FlexJS event and not introduce new code for
> that. Although if you have some specific idea with bootstraper feel free to
> show.
>
> Piotr
>

I  really does not talk to introduce new events, in Slider, I must to get
the slider change event that the MDL control is dispatching and then make
our slider flexjs component throw a "valueChange" flexjs event. I think
most of the time we will do this since is how MDL framework controls works.
My question was more about, if we should call "valueChange" event as is or
call it  only "change" like MDL does. I think we both likes flexjs name
"valueChange"


Re: [FlexJS, MDL] Menu with dataProvider and itemRenderer API

2016-12-30 Thread piotrz
Hi Alex,

Thanks. That definately make sense to me. I'll try to look deeper into List
or some other component and reuse "selected" or "change". I'm rather
thinking about "change" - cause "selected" brings to mind something which is
constant from UI point of view. When you click on the menu you expect some
action immediately.

Piotr



-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Menu-with-dataProvider-and-itemRenderer-API-tp57637p57655.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Slider valueChange not working

2016-12-30 Thread Carlos Rovira
Hi Piotr,

just checked and rebuild and Slider valueChange is working as I left. You
can check the examples in MDLExample > Sliders page

​


Re: [FlexJS] Support for CSS calc() function

2016-12-30 Thread Carlos Rovira
Hi Om,

I suggest you log a bug in Jira and assign it to Alex, since he fixed many
other CSS bugs. We are getting close to get a decent CSS support in FlexJS
:)

thanks

2016-12-30 9:04 GMT+01:00 OmPrakash Muppirala :

> I'm trying to use the calc() function [1] in my CSS like this:
>
> .demo-card-wide.mdl-card {
> width: calc((100% - 50px)/3);
> }
>
> I'm using the calc() function to create 3 columns of equal width regardless
> of browser size.
>
> With FlexJS, I'm seeing a compile error:
>
> C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_
> MDL\src\main\flex\App.mxml(1):
> col: 1 CSSTree.g: node from line 0:0 mismatched tree node:  token: [@251,1846:1860='((100%  - 50px)',<5>,59:13], resync={
>   width: calc((100%  - 50px)/3;
> }> expecting I_DECL
>
> 
> ^
>
> C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_
> MDL\src\main\flex\App.mxml(60):
> col: 14
> C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_
> MDL\src\main\flex\App.mxml
> line 59:13 mismatched input '((100%  - 50px)' expecting BLOCK_END
>
>
> C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_
> MDL\src\main\flex\App.mxml(60):
> col: 31
> C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_
> MDL\src\main\flex\App.mxml
> line 59:30 no viable alternative at character ')'
>
> Can support for calc() be added to FlexJS?  Even though it is termed an
> experimental feature, this has become quite common in the recent times [2]
>
> [1] https://developer.mozilla.org/en-US/docs/Web/CSS/calc
> [2] http://caniuse.com/#feat=calc
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


Re: [FlexJS] MDL List layout

2016-12-30 Thread Carlos Rovira
Hi Om,

we didn't create any "layout" yet in MDL like in FlexJS, but the ones
exposed in MDL (Grid,...) and we should think about it If we can introduce
some layout beads or if MDL components and layouts has it as native
implementations.

for example, "flow" is considered in Grid component, since the mdl grid is
flow by default (or at least this seems it happens to me). So If you put a
mdl:Grid container and inside some elements (i.e: Cards) and resize the
browser you'll see it "flowing"




2016-12-30 9:09 GMT+01:00 OmPrakash Muppirala :

> Carlos/Piotr,
>
> What is the right way to horizontal flow layout for an mdl:List?
>
> I tried using the HorizontalFlowLayout, but I don't think they are
> compatible.
>
> I ended up doing this:
>
> .membersList {
> display: flex !important;
> flex-direction: row;
> flex-wrap: wrap;
> justify-content: space-between;
> }
>
> The !important on the display is required because by default mdl:List uses
> block.
>
> In general, the layout-ing stuff is a bit confusing with MDL.  The
> components themselves work great, though!
>
> Thoughts?
>
> Thanks,
> Om
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.


[FlexJS] MDL List layout

2016-12-30 Thread OmPrakash Muppirala
Carlos/Piotr,

What is the right way to horizontal flow layout for an mdl:List?

I tried using the HorizontalFlowLayout, but I don't think they are
compatible.

I ended up doing this:

.membersList {
display: flex !important;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}

The !important on the display is required because by default mdl:List uses
block.

In general, the layout-ing stuff is a bit confusing with MDL.  The
components themselves work great, though!

Thoughts?

Thanks,
Om


[FlexJS] Support for CSS calc() function

2016-12-30 Thread OmPrakash Muppirala
I'm trying to use the calc() function [1] in my CSS like this:

.demo-card-wide.mdl-card {
width: calc((100% - 50px)/3);
}

I'm using the calc() function to create 3 columns of equal width regardless
of browser size.

With FlexJS, I'm seeing a compile error:

C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_MDL\src\main\flex\App.mxml(1):
col: 1 CSSTree.g: node from line 0:0 mismatched tree node: ,59:13], resync={
  width: calc((100%  - 50px)/3;
}> expecting I_DECL


^

C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_MDL\src\main\flex\App.mxml(60):
col: 14
C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_MDL\src\main\flex\App.mxml
line 59:13 mismatched input '((100%  - 50px)' expecting BLOCK_END


C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_MDL\src\main\flex\App.mxml(60):
col: 31
C:\p\flexroot\git\flex-asjs\examples\flexjs\FlexTeamPage_MDL\src\main\flex\App.mxml
line 59:30 no viable alternative at character ')'

Can support for calc() be added to FlexJS?  Even though it is termed an
experimental feature, this has become quite common in the recent times [2]

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/calc
[2] http://caniuse.com/#feat=calc