Re: YFiles, EPL, Apache

2020-02-03 Thread Carlos Rovira
 FWIW the vast majoriy of our previous yFiles FLEX customers has
> successfully migrated to "native web" technologies and is now happily
> using yFiles for HTML: With the current state of Apache Royale and the
> web, we don't see that Apache Royale has gained enough traction that
> would justify the efforts.
> We currently believe that creating the diagramming part using "classic"
> TypeScript/JavaScript and wrapping the resulting component up in a
> small
> Royale component with a tiny API surface is the superios and more
> efficient approach.
>
>
> From: Yishay Weiss<mailto:yishayj...@hotmail.com>
> Sent: Sunday, January 12, 2020 11:37 PM
> To: dev@royale.apache.org<mailto:dev@royale.apache.org>
> Subject: RE: YFiles, EPL, Apache
>
> Ok, I contacted them. I’ll let you guys know.
>
> 
> From: Carlos Rovira 
> Sent: Sunday, January 12, 2020 6:58:17 PM
> To: dev@royale.apache.org 
> Subject: Re: YFiles, EPL, Apache
>
> Hi,
>
> I think you should contact yFiles directly and talk with them about it.
> That's better to try to figure if something could be wrong in the
> future.
>
> My understanding is that he should be able to give you permission
> since it
> implies make his commercial lib to clients that want to use in Royale.
> So that clientes will still need to pay for the commercial version,
> while
> if no typedefs are done, it will be more difficult to do.
>
>
>
> El dom., 12 ene. 2020 a las 16:30, Yishay Weiss (<
> yishayj...@hotmail.com>)
> escribió:
>
> >
> > Hi,
> >
> > Before I start making inquiries in legal I wonder if anyone here can
> give
> > me some guidance.
> >
> > I want to create typedefs for yFiles [1], using an externs [2] file
> that’s
> > under an EPL [3]. Should that be a problem?
> >
> > This issue [4] makes me extra cautious.
> >
> > Thanks.
> >
> > [1]
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.yworks.com%2Fproducts%2Fyfiles-for-htmldata=02%7C01%7Caharui%40adobe.com%7C66186391c530443d461a08d7a8aa063c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637163320511043981sdata=Npg5YtRwd5zq%2FWS4j6himOFsks3KQbWtLzT6NWMaa9k%3Dreserved=0
> > [2]
> >
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fhonzabrecka%2Fts-to-goog%2Fmaster%2Fexterns%2Fyfiles.extern.jsdata=02%7C01%7Caharui%40adobe.com%7C66186391c530443d461a08d7a8aa063c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637163320511043981sdata=s4sGRY%2FMI1sD7tXtvBVO5Kh45g3oNaB74uKrkX5ai0Q%3Dreserved=0
> > [3]
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhonzabrecka%2Fts-to-goog%2Fblob%2Fmaster%2FLICENSEdata=02%7C01%7Caharui%40adobe.com%7C66186391c530443d461a08d7a8aa063c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637163320511043981sdata=aUYLW%2F8ECnasuSpWTIADvowB0sbpKHvE%2FxQQuD%2B3k3s%3Dreserved=0
> > [4]
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDefinitelyTyped%2FDefinitelyTyped%2Fissues%2F23310data=02%7C01%7Caharui%40adobe.com%7C66186391c530443d461a08d7a8aa063c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637163320511043981sdata=JWYeQW9X%2BvGAeq8yNSafl5Kf7UjvzwDZMVC2hefcpjM%3Dreserved=0
> >
>
>
> --
> Carlos Rovira
>
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C66186391c530443d461a08d7a8aa063c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637163320511043981sdata=SOfL8dXGeOs1PFkmha4JvnARMv5rgOIKgUfOCpEONUQ%3Dreserved=0
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Jewel TodoMVC Example

2020-02-02 Thread Carlos Rovira
Hi Harbs,

about the Chrome issue, I think I identify it as a problem when the url
does not have "hash" includes (ends in .html). In this case Chrome seems to
have that strange behavior. Can be something we need to address in our
implementation?

Thanks



El lun., 3 feb. 2020 a las 1:04, Carlos Rovira ()
escribió:

> Hi Harbs,
>
> I fixed toggles, but while it works ok in Safari and Firefox works
> perfectly fine, in Chrome I can see a rendering issue that seems a bug in
> Chrome when click back/forth browsers buttons. A grey border appears for
> the previous selected toggle. Code updates right, so I think not a Royale
> issue.
>
> Another thing I saw was the change of SharedObject for LocalStorage. Not
> sure I like that change, since you had to add two processing methods
> "getItemStore" and "setItemStorage", that needs to iterate the stored data
> parsing all json into objects and adding that to an Array. This example is
> good to show where Royale is better than other techs, and I think one is
> SharedObject that does that for you. SharedObject just saves the array, and
> behind scenes encodes the Array of TodoVO items in AMF , thanks to the
> RemoteClass metadata in TodoVO and the ClassAlias bead in main app. then
> retrieves it directly again decoding it for you, so the user does not need
> to do loops nor decode inner objects itself (imagine the each TodoVO has
> inner collections with typed subjects, all this is handled by SharedObject
> and AMF for you! :), why lose time looping through objects? that's one of
> the things why we're doing Royale and not going direct javascript, React,
> or other, isn't it??.
>
> I even announce it in social media as an example showing the use of
> SharedObject. So, if you don't have any problem with it I prefer to revert
> to SharedObject.
>
> Thanks for updating Routing :), do you plan to move to it's own
> library/swc?
>
> thanks!
>
> Carlos
>
>
>
>
>
> El dom., 2 feb. 2020 a las 23:57, Carlos Rovira ()
> escribió:
>
>> Thanks Andrew and Harbs,
>> @Harbs, I'll check it and get back to you.
>>
>> El dom., 2 feb. 2020 a las 15:49, Andrew Wetmore ()
>> escribió:
>>
>>> Tiny quibble:
>>>
>>> I have seven items on my to-do list. The indicator at the bottom left
>>> says
>>> "7 item left". That should be "items" in the plural when the count is
>>> anything but 1.
>>>
>>> a
>>>
>>> On Sat, Feb 1, 2020 at 6:34 PM Harbs  wrote:
>>>
>>> > Carlos,
>>> >
>>> > I made some improvements to Router and I changed the todo app to use
>>> the
>>> > new router features which automatically sync state with the router.
>>> >
>>> > Something is odd with Jewel ToggleButtons and state. I’m not sure what
>>> it
>>> > is, but once the buttons are clicked once, they never revert to an
>>> > unselected state.
>>> >
>>> > Can you look at the feature/router branch and see if you can figure out
>>> > what’s wrong?
>>> >
>>> > > On Feb 1, 2020, at 3:34 AM, Carlos Rovira 
>>> > wrote:
>>> > >
>>> > > Thanks for the feedback Andrew, much appreciated! :)
>>> > >
>>> > > just uploaded a new version now, I finish all, even the check box
>>> style
>>> > to match todomvc. This is the new URL:
>>> > >
>>> > > https://royale.apache.org/todomvc-jewel/ <
>>> > https://royale.apache.org/todomvc-jewel/>
>>> > >
>>> > > And the changes:
>>> > >
>>> > > - Jewel CheckBox look change to mimic todomvc style
>>> > > - toggleAll change style if all items is marked/unmaked
>>> > > - Item edit mode now exits with "click outside"
>>> > > - Item edit mode now removes the item if user removes all text
>>> > > - Finish little style things through all example to match todomvc as
>>> > much as possible
>>> > >
>>> > > About the max number of chars, it seems that is not on the original
>>> > TodoMVC, so I didn't implement it, since I think we need to just mimic
>>> what
>>> > they have.
>>> > >
>>> > > If you (or others) find other issues please let me know, so we can
>>> make
>>> > it as accurate as possible to todomvc.
>>> > >
>>> > > I consider it complete now, unless new bugs arise :)
>>> > >
&g

Re: Jewel TodoMVC Example

2020-02-02 Thread Carlos Rovira
Hi Harbs,

I fixed toggles, but while it works ok in Safari and Firefox works
perfectly fine, in Chrome I can see a rendering issue that seems a bug in
Chrome when click back/forth browsers buttons. A grey border appears for
the previous selected toggle. Code updates right, so I think not a Royale
issue.

Another thing I saw was the change of SharedObject for LocalStorage. Not
sure I like that change, since you had to add two processing methods
"getItemStore" and "setItemStorage", that needs to iterate the stored data
parsing all json into objects and adding that to an Array. This example is
good to show where Royale is better than other techs, and I think one is
SharedObject that does that for you. SharedObject just saves the array, and
behind scenes encodes the Array of TodoVO items in AMF , thanks to the
RemoteClass metadata in TodoVO and the ClassAlias bead in main app. then
retrieves it directly again decoding it for you, so the user does not need
to do loops nor decode inner objects itself (imagine the each TodoVO has
inner collections with typed subjects, all this is handled by SharedObject
and AMF for you! :), why lose time looping through objects? that's one of
the things why we're doing Royale and not going direct javascript, React,
or other, isn't it??.

I even announce it in social media as an example showing the use of
SharedObject. So, if you don't have any problem with it I prefer to revert
to SharedObject.

Thanks for updating Routing :), do you plan to move to it's own library/swc?

thanks!

Carlos





El dom., 2 feb. 2020 a las 23:57, Carlos Rovira ()
escribió:

> Thanks Andrew and Harbs,
> @Harbs, I'll check it and get back to you.
>
> El dom., 2 feb. 2020 a las 15:49, Andrew Wetmore ()
> escribió:
>
>> Tiny quibble:
>>
>> I have seven items on my to-do list. The indicator at the bottom left says
>> "7 item left". That should be "items" in the plural when the count is
>> anything but 1.
>>
>> a
>>
>> On Sat, Feb 1, 2020 at 6:34 PM Harbs  wrote:
>>
>> > Carlos,
>> >
>> > I made some improvements to Router and I changed the todo app to use the
>> > new router features which automatically sync state with the router.
>> >
>> > Something is odd with Jewel ToggleButtons and state. I’m not sure what
>> it
>> > is, but once the buttons are clicked once, they never revert to an
>> > unselected state.
>> >
>> > Can you look at the feature/router branch and see if you can figure out
>> > what’s wrong?
>> >
>> > > On Feb 1, 2020, at 3:34 AM, Carlos Rovira 
>> > wrote:
>> > >
>> > > Thanks for the feedback Andrew, much appreciated! :)
>> > >
>> > > just uploaded a new version now, I finish all, even the check box
>> style
>> > to match todomvc. This is the new URL:
>> > >
>> > > https://royale.apache.org/todomvc-jewel/ <
>> > https://royale.apache.org/todomvc-jewel/>
>> > >
>> > > And the changes:
>> > >
>> > > - Jewel CheckBox look change to mimic todomvc style
>> > > - toggleAll change style if all items is marked/unmaked
>> > > - Item edit mode now exits with "click outside"
>> > > - Item edit mode now removes the item if user removes all text
>> > > - Finish little style things through all example to match todomvc as
>> > much as possible
>> > >
>> > > About the max number of chars, it seems that is not on the original
>> > TodoMVC, so I didn't implement it, since I think we need to just mimic
>> what
>> > they have.
>> > >
>> > > If you (or others) find other issues please let me know, so we can
>> make
>> > it as accurate as possible to todomvc.
>> > >
>> > > I consider it complete now, unless new bugs arise :)
>> > >
>> > > Thanks!
>> > >
>> > > Carlos
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > El vie., 31 ene. 2020 a las 16:00, Andrew Wetmore (<
>> cottag...@gmail.com
>> > <mailto:cottag...@gmail.com>>) escribió:
>> > > This is very good!
>> > >
>> > > There seems to be no maximum limit to the number of characters in a
>> > note; certainly there is no character count or anything to let me know
>> if I
>> > am coming close to a limit.
>> > >
>> > > A more serious problem occurs when you create an entry, then double
>> > click to edit it, and remove all the contents from the entry. The

Re: Quick check on Express Datagrid

2020-02-02 Thread Carlos Rovira
Hi Greg,

I think that Basic relies on Array instead of a collection class, and maybe
other way to solve it per instance should be to add the "
DataItemRendererFactoryForCollectionView" to the beads array via MXML. But
maybe since DataGrid composes List, it could not be possible, so maybe this
fall back to the options you named, and probably people will want to solve
this at app level so all express DGs will use ArrayList instead of Array.

Anyway this is very interesting to see how flexible is the bead subsystem
to switch between Array, ArrayList or ArrayCollection for lots of
components (be or not nested in others).

Hope Alex or others give its opinion

Thanks




El lun., 3 feb. 2020 a las 0:28, Greg Dove () escribió:

> I have not really used Express, apart from an attempt to use it for a Crux
> example where I had some difficulty with the renderer set up for DataGrid,
> which (at that time) I worked around quickly with a monkey patch in the
> example instead of investigating the problem at the source.
>
> I want to get rid of the monkey patch, and fix that example.
>
> The issue appears to be that the Express Datagrid model uses ArrayList as
> dataProvider, but the default render factory creates renderers that expect
> Array as dataProvider, so this combination seems wrong. I wanted to check
> this because I really have had zero experience with Express and based
> on the css it seems like this was intended to be addressed using 'typeName'
> lookup for the rendererfactory but that seems not to be working.
>
> I can address the issue by doing the following in Express:
>
> 1)
> Adding the following to express-manifest.xml :
>
>  class="org.apache.royale.html.supportClasses.DataGridColumnList"
> lookupOnly="true" />
>
> 2. Changing the following in Express defaults.css :
>
> .DataGridColumnList { ...styles follow
>
> (remove '.') to:
>
>  DataGridColumnList { ...styles follow
>
>
> Those 2 small changes appear to fix the issue, but I'm not sure if it is
> 'correct' for Express. Is this how it is intended to be?
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: ClassSelectorList

2020-02-02 Thread Carlos Rovira
Hi Harbs,

no. when we initially made this feature it was for element, but if you
check most of the Jewel controls and containers redefine positioner since
to have more html structure to make it possible to style them
appropriately. So usually you want to use style positioner and use CSS to
target inner elements (event "element" itself) through cascading

Check Jewel for plenty of example that combine createElement + positioner
in *.as classes plus corresponding .sass file.

El dom., 2 feb. 2020 a las 22:12, Harbs () escribió:

> Why does ClassSelectorList use positioner instead of element? I would
> think that the class names should be applied to the element rather than the
> positioner.



-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Jewel TodoMVC Example

2020-02-02 Thread Carlos Rovira
Thanks Andrew and Harbs,
@Harbs, I'll check it and get back to you.

El dom., 2 feb. 2020 a las 15:49, Andrew Wetmore ()
escribió:

> Tiny quibble:
>
> I have seven items on my to-do list. The indicator at the bottom left says
> "7 item left". That should be "items" in the plural when the count is
> anything but 1.
>
> a
>
> On Sat, Feb 1, 2020 at 6:34 PM Harbs  wrote:
>
> > Carlos,
> >
> > I made some improvements to Router and I changed the todo app to use the
> > new router features which automatically sync state with the router.
> >
> > Something is odd with Jewel ToggleButtons and state. I’m not sure what it
> > is, but once the buttons are clicked once, they never revert to an
> > unselected state.
> >
> > Can you look at the feature/router branch and see if you can figure out
> > what’s wrong?
> >
> > > On Feb 1, 2020, at 3:34 AM, Carlos Rovira 
> > wrote:
> > >
> > > Thanks for the feedback Andrew, much appreciated! :)
> > >
> > > just uploaded a new version now, I finish all, even the check box style
> > to match todomvc. This is the new URL:
> > >
> > > https://royale.apache.org/todomvc-jewel/ <
> > https://royale.apache.org/todomvc-jewel/>
> > >
> > > And the changes:
> > >
> > > - Jewel CheckBox look change to mimic todomvc style
> > > - toggleAll change style if all items is marked/unmaked
> > > - Item edit mode now exits with "click outside"
> > > - Item edit mode now removes the item if user removes all text
> > > - Finish little style things through all example to match todomvc as
> > much as possible
> > >
> > > About the max number of chars, it seems that is not on the original
> > TodoMVC, so I didn't implement it, since I think we need to just mimic
> what
> > they have.
> > >
> > > If you (or others) find other issues please let me know, so we can make
> > it as accurate as possible to todomvc.
> > >
> > > I consider it complete now, unless new bugs arise :)
> > >
> > > Thanks!
> > >
> > > Carlos
> > >
> > >
> > >
> > >
> > >
> > > El vie., 31 ene. 2020 a las 16:00, Andrew Wetmore (<
> cottag...@gmail.com
> > <mailto:cottag...@gmail.com>>) escribió:
> > > This is very good!
> > >
> > > There seems to be no maximum limit to the number of characters in a
> > note; certainly there is no character count or anything to let me know
> if I
> > am coming close to a limit.
> > >
> > > A more serious problem occurs when you create an entry, then double
> > click to edit it, and remove all the contents from the entry. The app
> seems
> > to get into a funny state. I think the best behavior would be to delete
> the
> > entry if it is saved with no contents.
> > >
> > > a
> > >
> > > On Fri, Jan 31, 2020 at 7:13 AM Carlos Rovira  > <mailto:carlosrov...@apache.org>> wrote:
> > > Thanks Om and Ramazan! :)
> > >
> > > The source code was posted in the initial comment on this thread ;)
> > >
> > > Best
> > >
> > > Carlos
> > >
> > >
> > >
> > > El vie., 31 ene. 2020 a las 1:34, Ramazan Ergüder Bekrek (<
> > e.bek...@yandex.com <mailto:e.bek...@yandex.com>>) escribió:
> > > Carlos can you point out where is the source code for this?
> > >
> > > I remember trying to learn React the first time just to do this
> > application and
> > > it was such a pain to learn the framework. Now that I can code it with
> > Actionscript
> > > I'm getting excited.
> > >
> > > Thank you for your contribution
> > >
> > >
> > >
> > > 31.01.2020, 00:58, "OmPrakash Muppirala"  > omup...@gmail.com>>:
> > > Carlos,
> > >
> > > This is simply amazing.  Great job on porting the standard TodoMVC app
> > to Royale!
> > >
> > > Om
> > >
> > > On Thu, Jan 30, 2020 at 2:27 PM Carlos Rovira  > <mailto:carlosrov...@apache.org>> wrote:
> > > Hi All,
> > >
> > > just upload a first version of TodoMVC to the website. It implements
> all
> > functionality, with Routing and Local Storage included.
> > > Is done with Jewel UI Set showing how you can customize look and feel
> of
> > included components (Button, Toggles, List, TextInput, BarRow...).
> > >

Re: [royale-asjs] branch develop updated: License header for .md files

2020-02-02 Thread Carlos Rovira
Hi Harbs,
maven was failing, and I checked that we have rest of readme.txt files with
licenses. I was thinking about remove readmes from rat, but finally get how
to add it with out make it visible in GitHub

El dom., 2 feb. 2020 a las 11:04, Harbs () escribió:

> I don’t think readme files need headers
>
> > On Feb 2, 2020, at 11:28 AM, carlosrov...@apache.org wrote:
> >
> > This is an automated email from the ASF dual-hosted git repository.
> >
> > carlosrovira pushed a commit to branch develop
> > in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
> >
> >
> > The following commit(s) were added to refs/heads/develop by this push:
> > new 55a5494  License header for .md files
> > 55a5494 is described below
> >
> > commit 55a549464338cfff39ef8922cd4e7bb85ea2c26d
> > Author: Carlos Rovira 
> > AuthorDate: Sun Feb 2 10:27:58 2020 +0100
> >
> >License header for .md files
> > ---
> > examples/jewel/todomvc/readme.md | 37
> +++--
> > 1 file changed, 19 insertions(+), 18 deletions(-)
> >
> > diff --git a/examples/jewel/todomvc/readme.md
> b/examples/jewel/todomvc/readme.md
> > index ba67cc6..73c6ed4 100644
> > --- a/examples/jewel/todomvc/readme.md
> > +++ b/examples/jewel/todomvc/readme.md
> > @@ -1,21 +1,22 @@
> >
> -
> > -//
> > -//  Licensed to the Apache Software Foundation (ASF) under one or more
> > -//  contributor license agreements.  See the NOTICE file distributed
> with
> > -//  this work for additional information regarding copyright ownership.
> > -//  The ASF licenses this file to You under the Apache License, Version
> 2.0
> > -//  (the "License"); you may not use this file except in compliance with
> > -//  the License.  You may obtain a copy of the License at
> > -//
> > -//  http://www.apache.org/licenses/LICENSE-2.0
> > -//
> > -//  Unless required by applicable law or agreed to in writing, software
> > -//  distributed under the License is distributed on an "AS IS" BASIS,
> > -//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> > -//  See the License for the specific language governing permissions and
> > -//  limitations under the License.
> > -//
> >
> -////////
> > +
> > +
> > # Apache Royale TodoMVC Example
> >
> >> Apache Royale™ is a productive, open-source frontend application
> technology that lets you code in MXML & AS3 and output to different
> formats, included Javascript and SWF.
> >
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Jewel TodoMVC Example

2020-01-31 Thread Carlos Rovira
Thanks for the feedback Andrew, much appreciated! :)

just uploaded a new version now, I finish all, even the check box style to
match todomvc. This is the new URL:

https://royale.apache.org/todomvc-jewel/

And the changes:

- Jewel CheckBox look change to mimic todomvc style
- toggleAll change style if all items is marked/unmaked
- Item edit mode now exits with "click outside"
- Item edit mode now removes the item if user removes all text
- Finish little style things through all example to match todomvc as much
as possible

About the max number of chars, it seems that is not on the original
TodoMVC, so I didn't implement it, since I think we need to just mimic what
they have.

If you (or others) find other issues please let me know, so we can make it
as accurate as possible to todomvc.

I consider it complete now, unless new bugs arise :)

Thanks!

Carlos





El vie., 31 ene. 2020 a las 16:00, Andrew Wetmore ()
escribió:

> This is very good!
>
> There seems to be no maximum limit to the number of characters in a note;
> certainly there is no character count or anything to let me know if I am
> coming close to a limit.
>
> A more serious problem occurs when you create an entry, then double click
> to edit it, and remove all the contents from the entry. The app seems to
> get into a funny state. I think the best behavior would be to delete the
> entry if it is saved with no contents.
>
> a
>
> On Fri, Jan 31, 2020 at 7:13 AM Carlos Rovira 
> wrote:
>
>> Thanks Om and Ramazan! :)
>>
>> The source code was posted in the initial comment on this thread ;)
>>
>> Best
>>
>> Carlos
>>
>>
>>
>> El vie., 31 ene. 2020 a las 1:34, Ramazan Ergüder Bekrek (<
>> e.bek...@yandex.com>) escribió:
>>
>>> Carlos can you point out where is the source code for this?
>>>
>>> I remember trying to learn React the first time just to do this
>>> application and
>>> it was such a pain to learn the framework. Now that I can code it with
>>> Actionscript
>>> I'm getting excited.
>>>
>>> Thank you for your contribution
>>>
>>>
>>>
>>> 31.01.2020, 00:58, "OmPrakash Muppirala" :
>>>
>>> Carlos,
>>>
>>> This is simply amazing.  Great job on porting the standard TodoMVC app
>>> to Royale!
>>>
>>> Om
>>>
>>> On Thu, Jan 30, 2020 at 2:27 PM Carlos Rovira 
>>> wrote:
>>>
>>> Hi All,
>>>
>>> just upload a first version of TodoMVC to the website. It implements all
>>> functionality, with Routing and Local Storage included.
>>> Is done with Jewel UI Set showing how you can customize look and feel of
>>> included components (Button, Toggles, List, TextInput, BarRow...).
>>> Still I need to customize the main checkboxes to match the real example
>>> to finish it completely ( I still didn't have time). Hope to do soon.
>>>
>>> I'll plan to do another version with Crux, so people could see the
>>> diferences between both, but I worked hard to make this very MVC, ensuring
>>> separation is done correctly, using, events, models, views and controllers.
>>> Let me know what you think or if you find any bug or some issue:
>>>
>>> https://royale.apache.org/todomvc
>>>
>>> I expect to send to the original website (http://todomvc.com) when is
>>> finished completely and see if they can aggregate.
>>>
>>> Source code is here for you to browse:
>>>
>>> https://github.com/apache/royale-asjs/tree/develop/examples/jewel/todomvc
>>>
>>> I'll write about some issues I found tomorrow while writing this, in the
>>> other hand I felt this experiment was a pleasure to do since Royale seems
>>> very robust today as a technology, and we can call it 1.0. Things like
>>> Routing, LocalStorage, Components are mostly all there to use.
>>>
>>> This was my first experiment customizing visuals in Jewel and I think it
>>> was very quick to do it.
>>>
>>> I tried to make all the example well organized and commented, and expect
>>> to write some docs about it. As always problem is time.
>>>
>>> HTH.
>>>
>>> --
>>> Carlos Rovira
>>> http://about.me/carlosrovira
>>>
>>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/
>
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Jewel TodoMVC Example

2020-01-31 Thread Carlos Rovira
Thanks Om and Ramazan! :)

The source code was posted in the initial comment on this thread ;)

Best

Carlos



El vie., 31 ene. 2020 a las 1:34, Ramazan Ergüder Bekrek (<
e.bek...@yandex.com>) escribió:

> Carlos can you point out where is the source code for this?
>
> I remember trying to learn React the first time just to do this
> application and
> it was such a pain to learn the framework. Now that I can code it with
> Actionscript
> I'm getting excited.
>
> Thank you for your contribution
>
>
>
> 31.01.2020, 00:58, "OmPrakash Muppirala" :
>
> Carlos,
>
> This is simply amazing.  Great job on porting the standard TodoMVC app to
> Royale!
>
> Om
>
> On Thu, Jan 30, 2020 at 2:27 PM Carlos Rovira 
> wrote:
>
> Hi All,
>
> just upload a first version of TodoMVC to the website. It implements all
> functionality, with Routing and Local Storage included.
> Is done with Jewel UI Set showing how you can customize look and feel of
> included components (Button, Toggles, List, TextInput, BarRow...).
> Still I need to customize the main checkboxes to match the real example to
> finish it completely ( I still didn't have time). Hope to do soon.
>
> I'll plan to do another version with Crux, so people could see the
> diferences between both, but I worked hard to make this very MVC, ensuring
> separation is done correctly, using, events, models, views and controllers.
> Let me know what you think or if you find any bug or some issue:
>
> https://royale.apache.org/todomvc
>
> I expect to send to the original website (http://todomvc.com) when is
> finished completely and see if they can aggregate.
>
> Source code is here for you to browse:
>
> https://github.com/apache/royale-asjs/tree/develop/examples/jewel/todomvc
>
> I'll write about some issues I found tomorrow while writing this, in the
> other hand I felt this experiment was a pleasure to do since Royale seems
> very robust today as a technology, and we can call it 1.0. Things like
> Routing, LocalStorage, Components are mostly all there to use.
>
> This was my first experiment customizing visuals in Jewel and I think it
> was very quick to do it.
>
> I tried to make all the example well organized and commented, and expect
> to write some docs about it. As always problem is time.
>
> HTH.
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Changes in Core IDateChooserModel interface breaking Jewel

2020-01-30 Thread Carlos Rovira
Hi Alex,

I send this to 2 other threads yesterday, but seems it was missed by you.
You added a new method to Core IDateChooseModel interface that Jewel
implements.
So Jewel is failing to build.
I think the change is just needed by MXRoyale but not for Jewel, so not
seems PAYG
Can you move to some interface that is not the main one used by the rest of
sets?

Actually I was reported from three different people about this problem, and
said I was reported to you

Thanks!

-- 
Carlos Rovira
http://about.me/carlosrovira


Jewel TodoMVC Example

2020-01-30 Thread Carlos Rovira
Hi All,

just upload a first version of TodoMVC to the website. It implements all
functionality, with Routing and Local Storage included.
Is done with Jewel UI Set showing how you can customize look and feel of
included components (Button, Toggles, List, TextInput, BarRow...).
Still I need to customize the main checkboxes to match the real example to
finish it completely ( I still didn't have time). Hope to do soon.

I'll plan to do another version with Crux, so people could see the
diferences between both, but I worked hard to make this very MVC, ensuring
separation is done correctly, using, events, models, views and controllers.
Let me know what you think or if you find any bug or some issue:

https://royale.apache.org/todomvc

I expect to send to the original website (http://todomvc.com) when is
finished completely and see if they can aggregate.

Source code is here for you to browse:

https://github.com/apache/royale-asjs/tree/develop/examples/jewel/todomvc

I'll write about some issues I found tomorrow while writing this, in the
other hand I felt this experiment was a pleasure to do since Royale seems
very robust today as a technology, and we can call it 1.0. Things like
Routing, LocalStorage, Components are mostly all there to use.

This was my first experiment customizing visuals in Jewel and I think it
was very quick to do it.

I tried to make all the example well organized and commented, and expect to
write some docs about it. As always problem is time.

HTH.

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: SharedObject should be in Storage lib

2020-01-30 Thread Carlos Rovira
Hi Alex,

I'm a huge fan of AMF and I think is worth it to use with the current
SharedObject implementation done by Greg that already support AMF.
Of course others could use other options. As you say, we need to give
options.


El jue., 30 ene. 2020 a las 21:16, Alex Harui ()
escribió:

> SharedObjectJSON sounds useful and a good alternative short of AMF.  I'm
> sure you're not surprised to hear me say that we should give users choices
> depending on their needs.  If they only need to store simple values,
> LocalStorage should work.
>
> I think we do have Strong-Type to JSON and back with the JSONReviver and
> friends in the Reflection SWC.   I wonder if that would work with
> SharedObjectJSON.
>
> My 2 cents,
> -Alex
>
> On 1/30/20, 12:03 PM, "Greg Dove"  wrote:
>
> I think the browser can store objects already? Perhaps there is some
> way to
> do that, but I could not find anything for localStorage:
> ' The keys and the values are *always strings* (note that, as with
> objects,
> integer keys will be automatically converted to strings). '
>
>  The LSO version is an emulation of Flash, so needs AMF to match
> behaviour.
> But it doesn't cover everything from the flash version.
>
> I made a separate version ' SharedObjectJSON' that uses JSON, and has
> no
> AMF dependency:
>
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fblob%2Fdevelop%2Fframeworks%2Fprojects%2FMXRoyale%2Fsrc%2Fmain%2Froyale%2Fmx%2Fnet%2FSharedObjectJSON.asdata=02%7C01%7Caharui%40adobe.com%7C003f6fe86e174c93b69908d7a5bf6b4c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637160113867588036sdata=b3EqPdXjr2x87PdM5Gg7NUy072eEMo%2FfpSc1NPvnkII%3Dreserved=0
> I'd also suggest the JSON version would be probably a good option for
> new
> projects that don't need strongly typed instances serialized.
>
> I used TDD for working on those. Both of the implementations are tested
> across swf and js, but I did not add tests to the CI build tests, and I
> can't remember all the reasons why now, but some tests required manual
> page
> refresh to test automatic flush etc.
>
>
>
> On Fri, Jan 31, 2020 at 8:42 AM Alex Harui 
> wrote:
>
> > Hi Carlos,
> >
> > I probably don't understand your use case.  I would not recommend to
> new
> > projects to use AMF to store data locally.  I think the browser can
> store
> > objects already?  And I would think the difficulty of re-coding
>     > SharedObject.setProperty to LocalStorage.setItem would be worth the
> effort.
> >
> > I must be missing something.
> > -Alex
> >
> > On 1/30/20, 11:35 AM, "Carlos Rovira" 
> wrote:
> >
> > Hi Alex,
> >
> > I tried this and reverted the commit since it has more things to
> be
> > considered. LSO can be considered part of the AMF set of code,
> and
> > depends
> > on AMF classes that are currently in MXRoyale, for that reason
> Greg
> > created
> > there and not in Storage. These classes will need to be
> refactored out
> > of
> > MXRoyale as we already planned months ago. Right now we need to
> > exclude CSS
> > from MXRoyale, to avoid mess with other CSS. Another reason for
> me (and
> > maven users) is to avoid have APIs that you don't need (a thing
> that I
> > know
> > is not very important for you or others that could prefer all
> APIs at
> > hand,
> > but that I care for).
> >
> > A side from that I think MXRoyale needs to focus on MX and
> SparkRoyale
> > on
> > Spark, as well someday hope I can create MXRPC that have all RPC,
> > HTTPService, LSO,... If you remember we already talked about this
> > months
> > ago, and I tried, but was more time at that moment, and needed
> to left
> > the
> > work in a branch.
> >
> > LSO is a flash class and has the benefits of use AMF encoding and
> > decoding, what
> > I think is a cool feature to consider (many not for others) and
> > there's no
> > MX counterpart, is now part of the emulation due to the AMF
> issue, but
> > will
> > need to be in MXRPC lib.
> >
> > I tried LSO for the TodoMVC.com example I'm working on (since is
> part
> > of
> > the specifications in the todomvc.com site), and did not want
> to add
> > to the
>

Re: [royale-asjs] branch develop updated: shared-object: Move LSO to Storage since is not flex

2020-01-30 Thread Carlos Rovira
Hi Alex,
yes, I tried a solution but didn't worked. So reverted it. Thanks for
letting me know.

Please take a look at the problem with the IDateChooserModel I said. People
trying to build Jewel can't due to the new method added.
I think that method should go to another interface used for MXRoyale only.
IMHO is nor PAYG.
thanks!

Carlos


El jue., 30 ene. 2020 a las 18:36, Alex Harui ()
escribió:

> I may be misreading this commit, but IMO, other than SparkRoyale, no other
> SWC should have dependencies on mx packages.
>
> My 2 cents,
> -Alex
>
> On 1/30/20, 9:08 AM, "carlosrov...@apache.org" 
> wrote:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> carlosrovira pushed a commit to branch develop
> in repository
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.gitdata=02%7C01%7Caharui%40adobe.com%7Cab25da29e7564854025208d7a5a6f7c4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637160008858204818sdata=xzvyb6ODRUsLVF4lUSZvZB2gYu7q7ZUSjVaUj6A%2Bbk4%3Dreserved=0
>
>
> The following commit(s) were added to refs/heads/develop by this push:
>  new 3209e52  shared-object: Move LSO to Storage since is not flex
> 3209e52 is described below
>
> commit 3209e52d831c8121a1a86f08a86088bde0fa4911
> Author: Carlos Rovira 
> AuthorDate: Thu Jan 30 18:07:36 2020 +0100
>
> shared-object: Move LSO to Storage since is not flex
> ---
>  .../MXRoyale/src/main/royale/MXRoyaleClasses.as|   2 -
>  .../Network/src/main/royale/NetworkClasses.as  |   2 +
>  .../src/main/royale/mx/events/NetStatusEvent.as| 220
> ++---
>  frameworks/projects/Storage/pom.xml|  14 ++
>  .../Storage/src/main/royale/StorageClasses.as  |   3 +
>  .../org/apache/royale/storage}/SharedObject.as |   9 +-
>  .../royale/storage}/SharedObjectFlushStatus.as |  12 +-
>  .../org/apache/royale/storage}/SharedObjectJSON.as |   8 +-
>  8 files changed, 143 insertions(+), 127 deletions(-)
>
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> index e519b85..428850a 100644
> --- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> +++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
> @@ -184,8 +184,6 @@ internal class MXRoyaleClasses
> import mx.formatters.NumberBaseRoundType; NumberBaseRoundType;
> import mx.formatters.CurrencyFormatter; CurrencyFormatter;
> import mx.events.CalendarLayoutChangeEvent;
> CalendarLayoutChangeEvent;
> -   import mx.net.SharedObject; SharedObject;
> -   import mx.net.SharedObjectJSON; SharedObjectJSON;
> import mx.modules.ModuleManager; ModuleManager;
> import mx.events.DragEvent; DragEvent;
> import mx.formatters.DateBase; DateBase;
> diff --git
> a/frameworks/projects/Network/src/main/royale/NetworkClasses.as
> b/frameworks/projects/Network/src/main/royale/NetworkClasses.as
> index 4bd645b..a30dfd8 100644
> --- a/frameworks/projects/Network/src/main/royale/NetworkClasses.as
> +++ b/frameworks/projects/Network/src/main/royale/NetworkClasses.as
> @@ -45,6 +45,8 @@ package
>  import org.apache.royale.net.remoting.messages.RoyaleClient;
> RoyaleClient;
>
> import org.apache.royale.net.remoting.amf.AMFBinaryData;
> AMFBinaryData;
> +
> +import mx.events.NetStatusEvent; NetStatusEvent;
>
>  // import org.apache.royale.reflection.registerClassAlias;
>  // //RpcClassAliasInitializer
> diff --git
> a/frameworks/projects/MXRoyale/src/main/royale/mx/events/NetStatusEvent.as
> b/frameworks/projects/Network/src/main/royale/mx/events/NetStatusEvent.as
> similarity index 96%
> rename from
> frameworks/projects/MXRoyale/src/main/royale/mx/events/NetStatusEvent.as
> rename to
> frameworks/projects/Network/src/main/royale/mx/events/NetStatusEvent.as
> index 63f3f5e..63a88fb 100644
> ---
> a/frameworks/projects/MXRoyale/src/main/royale/mx/events/NetStatusEvent.as
> +++
> b/frameworks/projects/Network/src/main/royale/mx/events/NetStatusEvent.as
> @@ -1,110 +1,110 @@
>
> -
> -//
> -//  Licensed to the Apache Software Foundation (ASF) under one or more
> -//  contributor license agreements.  See the NOTICE file distributed
> with
> -//  this work for additional information regarding copyright
> ownership.
> -//  The ASF licenses

Re: SharedObject should be in Storage lib

2020-01-30 Thread Carlos Rovira
Hi Alex,

I tried this and reverted the commit since it has more things to be
considered. LSO can be considered part of the AMF set of code, and depends
on AMF classes that are currently in MXRoyale, for that reason Greg created
there and not in Storage. These classes will need to be refactored out of
MXRoyale as we already planned months ago. Right now we need to exclude CSS
from MXRoyale, to avoid mess with other CSS. Another reason for me (and
maven users) is to avoid have APIs that you don't need (a thing that I know
is not very important for you or others that could prefer all APIs at hand,
but that I care for).

A side from that I think MXRoyale needs to focus on MX and SparkRoyale on
Spark, as well someday hope I can create MXRPC that have all RPC,
HTTPService, LSO,... If you remember we already talked about this months
ago, and I tried, but was more time at that moment, and needed to left the
work in a branch.

LSO is a flash class and has the benefits of use AMF encoding and
decoding, what
I think is a cool feature to consider (many not for others) and there's no
MX counterpart, is now part of the emulation due to the AMF issue, but will
need to be in MXRPC lib.

I tried LSO for the TodoMVC.com example I'm working on (since is part of
the specifications in the todomvc.com site), and did not want to add to the
pom MXRoyale to not confuse new comers, anyway, there's no way for now, and
we need to left as is.

Anyway I'm very satisfied with the example since we can see Royale is now
very robust in many aspects :). Hope to finish it soon and share.

Thanks

Carlos




El jue., 30 ene. 2020 a las 18:28, Alex Harui ()
escribió:

> I don't know if it would be more "general" since it would be
> Flash-specific, but re-use of code from Storage is always a great goal.
> The MXRoyale components re-use quite a bit of code from Basic.
>
> Taking a quick look at the ASDoc, SharedObject offers both Local and
> Remote flavors and a "connect(NetConnection)" API which is probably not
> needed for locally storing some data and would drag in dependencies for
> NetConnection emulation from MXRoyale.  Meanwhile,
> org.apache.royale.storage.LocalStorage seems to have a similar API to the
> subset of SharedObject that folks would actually use for a  local
> SharedObject, so the MXRoyale emulation of SharedObject would probably
> subclass or wrap LocalStorage.
>
> Of course, I could be wrong...
> -Alex
>
> On 1/30/20, 9:05 AM, "Harbs"  wrote:
>
> Possibly a MX version with Flash APIs should use a more general
> version from Storage?
>
> > On Jan 30, 2020, at 5:45 PM, Alex Harui 
> wrote:
> >
> > I don't know LSO or the Storage SWC that well, but there is some
> sort of LocalStorageProvider.as file already in Storage.
> >
> > IMO, if you are planning to 100% emulate the Flash LSO, that should
> go in MXRoyale.  A more platform-independent API for local storage should
> go in Storage.  I don't know what is already there.
> >
> > My 2 cents,
> > -Alex
> >
> > On 1/30/20, 7:23 AM, "Carlos Rovira" 
> wrote:
> >
> >Hi,
> >
> >I was searching for some Flex counter part to the LSO classes in
> MXRoyale
>     >but didn't find anything.
> >So if nobody opposite I'll move to the Storage library that seems
> its
> >natural place.
> >
> >Thanks
> >
> >--
> >Carlos Rovira
> >
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Ca79b7a12ace243a1de7008d7a5a69466%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637160007186377921sdata=lNxcjfaUNG%2BbuqsOk4O3KDm0e9fmoZPmZF72yVBmOw8%3Dreserved=0
> >
> >
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


SharedObject should be in Storage lib

2020-01-30 Thread Carlos Rovira
Hi,

I was searching for some Flex counter part to the LSO classes in MXRoyale
but didn't find anything.
So if nobody opposite I'll move to the Storage library that seems its
natural place.

Thanks

-- 
Carlos Rovira
http://about.me/carlosrovira


Fwd: [MAVEN-BUILD] Royale-asjs - Build # 2597 - Still Failing

2020-01-30 Thread Carlos Rovira
Hi Alex,

this addition to Core's IDateChooserModel :

/**
* If true, the DateChooser will dispatch change
* events even if the date clicked is the selected date.
* This flag is used by DateField to get the
* dropdown to dismiss when clicking the selected date.
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
function get disableChangeCheck():Boolean;
function set disableChangeCheck(value:Boolean):void;


does not seems needed by all UI sets, for example Jewel does not needed it.
Can you move to some other place?

Thanks

-- Forwarded message -
De: Apache Jenkins Server 
Date: jue., 30 ene. 2020 a las 12:36
Subject: [MAVEN-BUILD] Royale-asjs - Build # 2597 - Still Failing
To: , 


The Apache Jenkins build system has built Royale-asjs (build #2597)

Status: Still Failing

Check console output at https://builds.apache.org/job/Royale-asjs/2597/ to
view the results.


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: [royale-asjs] branch develop updated: ToolTipRemovalWhenItemRemoved: new bead to abstract best practice showcased in #697

2020-01-28 Thread Carlos Rovira
Hi Yishay,
please go ahead and do the changes
thanks!

El mar., 28 ene. 2020 a las 11:55, Yishay Weiss ()
escribió:

> Thanks for adding this. Since this behavior could be desirable in all
> component sets I’d like to suggest the following:
>
>
>   1.  Move it to Basic
>   2.  Create an interface ITooltipBead which includes removeTip()
>   3.  Have all tooltip beads implement it
>   4.  Use strand.getBeadByType(ITooltipBead) instead of requiring a
> tooltip param
>
> Do you agree?
>
> If you don’t have time I can do this.
>
> From: carlosrov...@apache.org<mailto:carlosrov...@apache.org>
> Sent: Tuesday, January 28, 2020 11:34 AM
> To: comm...@royale.apache.org<mailto:comm...@royale.apache.org>
> Subject: [royale-asjs] branch develop updated:
> ToolTipRemovalWhenItemRemoved: new bead to abstract best practice showcased
> in #697
>
> This is an automated email from the ASF dual-hosted git repository.
>
> carlosrovira pushed a commit to branch develop
> in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
>
>
> The following commit(s) were added to refs/heads/develop by this push:
>  new 93c5612  ToolTipRemovalWhenItemRemoved: new bead to abstract best
> practice showcased in #697
> 93c5612 is described below
>
> commit 93c5612fb36e8c450d6b8c2ff2b69b789c8461ee
> Author: Carlos Rovira 
> AuthorDate: Tue Jan 28 10:34:22 2020 +0100
>
> ToolTipRemovalWhenItemRemoved: new bead to abstract best practice
> showcased in #697
> ---
>  .../royale/itemRenderers/IconListItemRenderer.mxml |  27 +
>  .../Jewel/src/main/resources/jewel-manifest.xml|   2 +
>  .../itemRenderers/ToolTipRemovalWhenItemRemoved.as | 116
> +
>  3 files changed, 119 insertions(+), 26 deletions(-)
>
> diff --git
> a/examples/royale/TourDeJewel/src/main/royale/itemRenderers/IconListItemRenderer.mxml
> b/examples/royale/TourDeJewel/src/main/royale/itemRenderers/IconListItemRenderer.mxml
> index 906630b..b7c54d0 100644
> ---
> a/examples/royale/TourDeJewel/src/main/royale/itemRenderers/IconListItemRenderer.mxml
> +++
> b/examples/royale/TourDeJewel/src/main/royale/itemRenderers/IconListItemRenderer.mxml
> @@ -29,32 +29,6 @@ limitations under the License.
>  import
> org.apache.royale.jewel.beads.views.ListView;
>
>  import vos.IconListVO;
> -
> -private var host:List;
> -
> -/**
> - * listen to "itemRemoved" event dispatched from the List
> - */
> -override public function addedToParent():void
> -{
> -super.addedToParent();
> -
> -var view:ListView = this.itemRendererParent as ListView;
> -host = view.host as List;
> -IEventDispatcher(host).addEventListener("itemRemoved",
> handleItemRemoved);
> -}
> -
> -/**
> - * check if the renderer (item) is the current and in that
> case ensure remove listener and tip.
> - */
> -protected function
> handleItemRemoved(event:ItemRemovedEvent):void
> -{
> -if(event.item == this)
> -{
> -
> IEventDispatcher(host).removeEventListener("itemRemoved",
> handleItemRemoved);
> -tt.removeTip();
> -}
> -}
>
>  [Bindable("dataChange")]
>  public function get iconList():IconListVO
> @@ -83,6 +57,7 @@ limitations under the License.
>  
>  
>  
> +
>  
>
>   visible="{iconList ? iconList.icon != null : false}"
> click="clickCloseButton()"/>
> diff --git
> a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
> b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
> index 1b6d9a9..44d1bce 100644
> --- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
> +++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
> @@ -222,6 +222,8 @@
>   class="org.apache.royale.jewel.beads.itemRenderers.UpdateTableRowForArrayListData"
> />
>
>   class="org.apache.royale.jewel.beads.itemRenderers.RemoveAllItemRendererForArrayListData"
> />
> +
> + class="org.apache.royale.jewel.beads.itemRenderers.ToolTipRemovalWhenItemRemoved"
> />
>
>  
>
> diff --git
> a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ToolTipRemovalWhenItemRemoved.as
> b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/Too

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Carlos Rovira
Hi again :),

I still didn't see the code, but was imagining how I'd like to use this
feature.

Some thoughts:

1.- Could be possible to have it as a bead for UIBase components a side of
the UIGraphicBase that could still be convenient for some cases?



<-- This could be a custom bead with the graphics
code and the drawings can be created in a element created by a base bead
(Maybe IGraphicsBead? and a GraphicsBead)
   


2.- Could be possible even declare graphics instructions in MXML?
Inside a js:GraphicsBead tag add things like:





(don't know right now if this could not be optimal, or maybe will require
compiler optimization to remove all the extra code and translate to simple
SWF/ SVG instructions)

I thinking looking at the code of your example will help to imagine how all
this could be modeled/applied

thanks

Carlos




El mar., 28 ene. 2020 a las 9:44, Carlos Rovira ()
escribió:

> Hi Greg,
>
> very cool! :)
> Hope to play with it very soon :)
>
> Do you plan to add your "graphics browser example" to examples?
>
> Thanks for working on this! :)
>
> Carlos
>
> El mar., 28 ene. 2020 a las 3:28, Greg Dove ()
> escribió:
>
>> FYI, I just pushed the WIP on that.
>>
>> to use it in code, there is a UIGraphicsBase target.
>> I'm still not happy with that, so it could change over time. At the moment
>> the svg 'child' in javascript that is used as the 'rendered output'
>> participates in the child element count for that class. Ideally it should
>> not do that and should always be behind the children. Obviously there are
>> different ways to make that work including adding a separate 'children'
>> div
>> container, but I wanted to see if there was a way to keep the native
>> implementation as siblings but avoid the '0' indexed svg element from
>> showing up in the normal api for child elements.
>>
>> Anyhow, a simple way to start working with this is as follows:
>>
>> Assuming you have the following in mxml;
>>
>> 
>>
>> then you could do the following somewhere inside a script block:
>> (assuming: import org.apache.royale.display.Graphics; )
>>
>> var graphics:Graphics = Graphics.getInstanceFor(jsGraphicsTarget);
>> {now use 'graphics' similar to how you would for swf here}
>>
>>
>> On Tue, Jan 21, 2020 at 8:18 AM Greg Dove  wrote:
>>
>> > Thanks for checking that, Carlos. I think it should be quick to add this
>> > to Royale after I am back from vacation.
>> >
>> >
>> >
>> > On Mon, 20 Jan 2020, 01:21 Carlos Rovira, 
>> wrote:
>> >
>> >> Hi Greg,
>> >>
>> >> awesome work! Hope you can get ANT working soon. Although I think is
>> not
>> >> required and you can get to that at a later time when you have the
>> time. I
>> >> think the most important thing is not break maven/ant builds and not
>> >> affect
>> >> current code. Saving that, I think is safe to commit the work, and
>> then go
>> >> incremental from that point. I use to work in that way. If something
>> can
>> >> break build or running code, so it can be ensure integrity in one
>> commit,
>> >> then is better to work in a branch and merge as soon as you get the
>> safe
>> >> state.
>> >>
>> >> Thanks for working on that. it will make Royale even more interesting.
>> I
>> >> think it could be great to use in Jewel for some graphic improvements
>> :)
>> >>
>> >> Looking at the example, I went through all and see all working good or
>> >> with
>> >> the issues already mentioned in the text part (Mitter, Bitmap repeat
>> >> Error,...). Is curious to see that lines and curves seems to render
>> better
>> >> now in browsers than in Flash Player where still lacks of some weird
>> >> representations when going from rect to curve.
>> >>
>> >> We'll be showing this as soon as you commit to develop in social
>> networks.
>> >> I think this can be of interest  for many people out there that can see
>> >> Royale reaching new and important capabilities.
>> >>
>> >> Congrats for what you have achieved here!! Is awesome! :)
>> >>
>> >>
>> >>
>> >> El dom., 19 ene. 2020 a las 4:01, Greg Dove ()
>> >> escribió:
>> >>
>> >> > Just quickly, to add to the list at the bottom of the last email
>> >> > another thing you can do is download the rendered svg.
>> >> > It s

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Carlos Rovira
Hi Greg,

very cool! :)
Hope to play with it very soon :)

Do you plan to add your "graphics browser example" to examples?

Thanks for working on this! :)

Carlos

El mar., 28 ene. 2020 a las 3:28, Greg Dove ()
escribió:

> FYI, I just pushed the WIP on that.
>
> to use it in code, there is a UIGraphicsBase target.
> I'm still not happy with that, so it could change over time. At the moment
> the svg 'child' in javascript that is used as the 'rendered output'
> participates in the child element count for that class. Ideally it should
> not do that and should always be behind the children. Obviously there are
> different ways to make that work including adding a separate 'children' div
> container, but I wanted to see if there was a way to keep the native
> implementation as siblings but avoid the '0' indexed svg element from
> showing up in the normal api for child elements.
>
> Anyhow, a simple way to start working with this is as follows:
>
> Assuming you have the following in mxml;
>
> 
>
> then you could do the following somewhere inside a script block:
> (assuming: import org.apache.royale.display.Graphics; )
>
> var graphics:Graphics = Graphics.getInstanceFor(jsGraphicsTarget);
> {now use 'graphics' similar to how you would for swf here}
>
>
> On Tue, Jan 21, 2020 at 8:18 AM Greg Dove  wrote:
>
> > Thanks for checking that, Carlos. I think it should be quick to add this
> > to Royale after I am back from vacation.
> >
> >
> >
> > On Mon, 20 Jan 2020, 01:21 Carlos Rovira, 
> wrote:
> >
> >> Hi Greg,
> >>
> >> awesome work! Hope you can get ANT working soon. Although I think is not
> >> required and you can get to that at a later time when you have the
> time. I
> >> think the most important thing is not break maven/ant builds and not
> >> affect
> >> current code. Saving that, I think is safe to commit the work, and then
> go
> >> incremental from that point. I use to work in that way. If something can
> >> break build or running code, so it can be ensure integrity in one
> commit,
> >> then is better to work in a branch and merge as soon as you get the safe
> >> state.
> >>
> >> Thanks for working on that. it will make Royale even more interesting. I
> >> think it could be great to use in Jewel for some graphic improvements :)
> >>
> >> Looking at the example, I went through all and see all working good or
> >> with
> >> the issues already mentioned in the text part (Mitter, Bitmap repeat
> >> Error,...). Is curious to see that lines and curves seems to render
> better
> >> now in browsers than in Flash Player where still lacks of some weird
> >> representations when going from rect to curve.
> >>
> >> We'll be showing this as soon as you commit to develop in social
> networks.
> >> I think this can be of interest  for many people out there that can see
> >> Royale reaching new and important capabilities.
> >>
> >> Congrats for what you have achieved here!! Is awesome! :)
> >>
> >>
> >>
> >> El dom., 19 ene. 2020 a las 4:01, Greg Dove ()
> >> escribió:
> >>
> >> > Just quickly, to add to the list at the bottom of the last email
> >> > another thing you can do is download the rendered svg.
> >> > It should open in Inkscape or Illustrator. I have been mainly using
> >> > Inkscape to check that, I think it is more accurate in terms of
> >> conforming
> >> > with svg spec.
> >> >
> >> >
> >> > On Sun, Jan 19, 2020 at 3:41 PM Greg Dove 
> wrote:
> >> >
> >> > >
> >> > > Just a quick update on where I am at with the above.
> >> > > I was hoping to get the the current code for this in before I go on
> >> > > vacation for the next week, but I won't be able to do that (I need
> to
> >> > work
> >> > > through the build side of things, I have only got maven working so
> >> far).
> >> > >
> >> > > I have been focused recently on BitmapData support and have what I
> >> think
> >> > > is an adequate starting point for this.
> >> > > it is really only supporting setPixel, setPixel32, fillRect, lock,
> >> > unlock,
> >> > > dispose. I did add a couple of other methods, but have not really
> >> started
> >> > > to test those yet.
> >> > >
> >> > > If you are interested you can test this and let me know of

Re: Renderers doesn't support States

2020-01-28 Thread Carlos Rovira
ok, I separate States to a new MXMLStatesItemRenderer.
For Jewel, that uses StyledItemRenderer as the base class now extend this
new one to get states support by default

El lun., 27 ene. 2020 a las 21:49, Alex Harui ()
escribió:

> Classes in Basic should remain PAYG.  That would imply that MXML States
> support would go in a subclass of MXMLItemRenderer.
>
> My 2 cents,
> -Alex
>
> On 1/27/20, 10:58 AM, "Carlos Rovira"  wrote:
>
> Hi,
>
> today while working on a TodoMVC version in Royale notice that
> ItemRenderers does not support States.
> So I'm going to add it, but want to ask the best point to do. IMO it
> could
> be in MXMLItemRenderer.
>
> thoughts?
>
> --
> Carlos Rovira
>
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cc7aba0e4270d4ac63b4b08d7a35aedd1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637157483241210726sdata=3AxmqnEZIC1BGXIulf8e1oHqv8sp%2Fu6jesN%2FF%2FiljlQ%3Dreserved=0
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Renderers doesn't support States

2020-01-27 Thread Carlos Rovira
Hi,

today while working on a TodoMVC version in Royale notice that
ItemRenderers does not support States.
So I'm going to add it, but want to ask the best point to do. IMO it could
be in MXMLItemRenderer.

thoughts?

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: [VSCode - asconfigc] sdk referenced in tasks.json

2020-01-27 Thread Carlos Rovira
Hi Josh,
it seems ok to me. If nobody has nothing in the next hour or so, I'll do
the change
thanks

El lun., 27 ene. 2020 a las 17:00, Josh Tynjala ()
escribió:

> If the projects in the Royale repos include .vscode/tasks.json, they should
> use the built-in tasks that are provided by the extension.
>
> {
> "type": "actionscript",
> "debug": true,
> "problemMatcher": [],
> "group": "build"
> },
> {
> "type": "actionscript",
> "debug": false,
> "problemMatcher": [],
> "group": "build"
> }
>
> We should not require users to install asconfigc from npm. It's an extra
> step that adds unnecessary complexity for new contributors.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jan 27, 2020 at 7:07 AM Carlos Rovira 
> wrote:
>
> > Hi,
> >
> > recently in TDJ I changed asconfigc task to use this:
> >
> > "windows": {
> > "args": [
> > "--sdk=C:\\Apache\\royale-asjs"
> > ]
> > },
> > "osx": {
> > "args": [
> > "--sdk=${env:ROYALE_HOME}"
> > ]
> > },
> >
> > to this :
> >
> > "args": [
> > "--sdk=${config:as3mxml.sdk.framework}"
> > ],
> >
> > I want to propose to change in all framework, unless someone see some
> > problem in doing that, avoiding the hardcoded paths for windows or depend
> > on ROYALE_HOME, that users could not have set.
> > I asume that asconfigc is used by people using VSCode so they have
> > settings.json with as3mxml.sdk.framework defined
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


[VSCode - asconfigc] sdk referenced in tasks.json

2020-01-27 Thread Carlos Rovira
Hi,

recently in TDJ I changed asconfigc task to use this:

"windows": {
"args": [
"--sdk=C:\\Apache\\royale-asjs"
]
},
"osx": {
"args": [
"--sdk=${env:ROYALE_HOME}"
]
},

to this :

"args": [
"--sdk=${config:as3mxml.sdk.framework}"
],

I want to propose to change in all framework, unless someone see some
problem in doing that, avoiding the hardcoded paths for windows or depend
on ROYALE_HOME, that users could not have set.
I asume that asconfigc is used by people using VSCode so they have
settings.json with as3mxml.sdk.framework defined

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: [royale-asjs] branch develop updated: Missing imports

2020-01-27 Thread Carlos Rovira
Hi,

why this kind of problems are not shown in Maven builds? (I suppose Harbs
added since ANT build failed), any clue?
thanks

El lun., 27 ene. 2020 a las 14:59,  escribió:

> This is an automated email from the ASF dual-hosted git repository.
>
> harbs pushed a commit to branch develop
> in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
>
>
> The following commit(s) were added to refs/heads/develop by this push:
>  new 23813cb  Missing imports
> 23813cb is described below
>
> commit 23813cb32465df2765ccba2ae389d9a491c7ab5c
> Author: Harbs 
> AuthorDate: Mon Jan 27 15:58:57 2020 +0200
>
> Missing imports
> ---
>  .../Jewel/src/main/royale/org/apache/royale/jewel/ToggleButton.as
> | 1 +
>  .../src/main/royale/org/apache/royale/jewel/beads/controls/ToolTip.as
> | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git
> a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ToggleButton.as
> b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ToggleButton.as
> index 99fd2a6..08ccbe0 100644
> ---
> a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ToggleButton.as
> +++
> b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ToggleButton.as
> @@ -21,6 +21,7 @@ package org.apache.royale.jewel
>  COMPILE::SWF
>  {
>  import flash.events.MouseEvent;
> +   import org.apache.royale.core.IToggleButtonModel;
>  }
>  COMPILE::JS
>  {
> diff --git
> a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/ToolTip.as
> b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/ToolTip.as
> index 975b000..3bae5b9 100644
> ---
> a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/ToolTip.as
> +++
> b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/ToolTip.as
> @@ -30,6 +30,7 @@ package org.apache.royale.jewel.beads.controls
> import org.apache.royale.utils.OSUtils;
> import org.apache.royale.utils.PointUtils;
> import org.apache.royale.utils.UIUtils;
> +   import org.apache.royale.events.Event;
>
> /**
>  *  The ToolTip class is a specialty bead that can be used with
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: ItemRenderer musings (was Re: "has" vs "is": sharing code, swapping out subsystems, and more...)

2020-01-27 Thread Carlos Rovira
rFactory variants could extend some base class and have
> overridable methods or a few more composited beads to abstract the
> differences in the variants.  I think the 4 steps in the Factory are:
>
> 1) get next item
> 2) create the renderer
> 3) parent it
> 4) set data on the renderer
>
> Currently only #2 is done with a bead.  #1 and #4 probably could be as
> well (or by overriding a method in the base class).
>
> The challenge is for #4 to try to allow different sets of properties to be
> passed to the renderer.  The index should be passed if the renderer wants
> it, and the data and the itemrendererview/parent.
>
> C) The renderers may also need a refactor.  StringItemRenderer should
> presume that data is a String.  It should not use getLabelFromData.
> DataItemRenderer should assume there is a data object and a
> dataField/labelField.  That's why there is a TextItemRendererFactory and a
> DataItemRendererFactory.  The former assumes the data is a String, the
> latter assumes the data is an instance of an object.
>
> A renderer in the Express package can have more if statements and check if
> labelField is being used or not.
>
> D) We might look at abstracting the computation of the label for a
> renderer.  That feels like it would be too heavy in many cases, but right
> now we call getLabelFromData anyway.
>
> Thoughts?
> -Alex
>
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Apache Royale Jewel - ToolTip issues

2020-01-24 Thread Carlos Rovira
Hi Jose,

Can you fill two separate issues in GitHub [1] with the minimum sample code
so I can reproduce and  see the problems?
probably I couldn't take a look until next week.

Thanks in advance for reporting these issues! :)

Carlos

[1] https://github.com/apache/royale-asjs/issues




El vie., 24 ene. 2020 a las 10:50, Jose Andres Veiga ()
escribió:

> I have a couple issues using tooltip bead:
>
> 1st The situation is as follows, I have a button with a tooltip, the
> button is a “lock / unlock”  toogle. When selected, "unlock" is displayed
> and when is not selected, "lock" is displayed as tooltip text ...
>
> The problem: Only when button loses mouse focus and gets it again, the
> tooltip text is updated.
>
> 2nd The second situation is a jewel list, I have a custom ListItemRender,
> so I add a tooltip to each item. When you click on one of those options,
> the selected item must disappear.
>
> The problem: the element we select disappears, but the tooltip that is
> being displayed is not deleted and stills showing when his parent is gone.
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Building Royale project with Maven throws NPE

2020-01-23 Thread Carlos Rovira
Right, I know it

El jue., 23 ene. 2020 a las 16:59, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> CRLF problem and build issue with ant distribution are two separate issues.
>
> czw., 23 sty 2020 o 16:39 Carlos Rovira 
> napisał(a):
>
> > Hi,
> >
> > about maven distribution sdk I think it was before the good_home fix
> > about the other problem I think you refer to the CRFL problem, I really
> > don't know what could it be. Hope you get to the core of the problem
> >
> >
> > El jue., 23 ene. 2020 a las 16:33, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> > > Unfortunately building using [1] trough Moonshine still doesn't work.
> I'm
> > > looking into something to get more data.
> > > Still didn't check fully your Maven distribution, but first check was
> > > unsuccessful and Moonshine reported some messages which I need to
> check -
> > > why that happen.
> > >
> > > [1]
> > >
> > >
> >
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/676/
> > >
> > > czw., 23 sty 2020 o 16:30 Carlos Rovira 
> > > napisał(a):
> > >
> > > > Hi Piotr,
> > > >
> > > > great to hear that :)
> > > > additionally I had confirmation from Josh that distribution SDK was
> as
> > > well
> > > > working for him.
> > > > So I think we got it :)
> > > >
> > > > El jue., 23 ene. 2020 a las 16:28, Piotr Zarzycki (<
> > > > piotrzarzyck...@gmail.com>) escribió:
> > > >
> > > > > Maven build for our application back to normal and I was able to
> > > produce
> > > > > release/debug files.
> > > > >
> > > > > śr., 22 sty 2020 o 16:05 Piotr Zarzycki  >
> > > > > napisał(a):
> > > > >
> > > > > > Build is in progress. Once it's finish I will check ->
> > > > > > https://builds.apache.org/job/Royale-compiler/1257/
> > > > > >
> > > > > > śr., 22 sty 2020 o 15:54 Carlos Rovira 
> > > > > > napisał(a):
> > > > > >
> > > > > >> Hi Piotr,
> > > > > >> latest commit seems to fix the problem. Let me know if all is
> now
> > ok
> > > > > >> sorry for the inconvenience
> > > > > >> Carlos
> > > > > >>
> > > > > >> El mié., 22 ene. 2020 a las 13:51, Carlos Rovira (<
> > > > > >> carlosrov...@apache.org>)
> > > > > >> escribió:
> > > > > >>
> > > > > >> > Hi Piotr,
> > > > > >> >
> > > > > >> > I can see the problem is related to my latest commit in
> compiler
> > > to
> > > > > >> solve
> > > > > >> > the GOOG_HOME problem.
> > > > > >> > going to fix it
> > > > > >> >
> > > > > >> > El mié., 22 ene. 2020 a las 13:31, Carlos Rovira (<
> > > > > >> carlosrov...@apache.org>)
> > > > > >> > escribió:
> > > > > >> >
> > > > > >> >> Hi Piotr,
> > > > > >> >>
> > > > > >> >> ok, now I understand... It's clear that I broke something
> since
> > > > > trying
> > > > > >> to
> > > > > >> >> build now with Maven is generating the same issue ;)
> > > > > >> >> I was focused on making build works for IDEs, that didn't
> test
> > > > normal
> > > > > >> >> maven path yesterday.
> > > > > >> >> I'll be looking over it to find where is the problem
> > > > > >> >> Sorry for the confusion! :)
> > > > > >> >>
> > > > > >> >> El mié., 22 ene. 2020 a las 13:27, Carlos Rovira (<
> > > > > >> >> carlosrov...@apache.org>) escribió:
> > > > > >> >>
> > > > > >> >>> Hi Piotr,
> > > > > >> >>>
> > > > > >> >>> before understand the mistake, I downloaded and tested SDK
> > from
> > > > > >> Jenkins
> > > > > >> >>> (build #2552 that was the latest created

Re: Building Royale project with Maven throws NPE

2020-01-23 Thread Carlos Rovira
Hi,

about maven distribution sdk I think it was before the good_home fix
about the other problem I think you refer to the CRFL problem, I really
don't know what could it be. Hope you get to the core of the problem


El jue., 23 ene. 2020 a las 16:33, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Unfortunately building using [1] trough Moonshine still doesn't work. I'm
> looking into something to get more data.
> Still didn't check fully your Maven distribution, but first check was
> unsuccessful and Moonshine reported some messages which I need to check -
> why that happen.
>
> [1]
>
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/676/
>
> czw., 23 sty 2020 o 16:30 Carlos Rovira 
> napisał(a):
>
> > Hi Piotr,
> >
> > great to hear that :)
> > additionally I had confirmation from Josh that distribution SDK was as
> well
> > working for him.
> > So I think we got it :)
> >
> > El jue., 23 ene. 2020 a las 16:28, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> > > Maven build for our application back to normal and I was able to
> produce
> > > release/debug files.
> > >
> > > śr., 22 sty 2020 o 16:05 Piotr Zarzycki 
> > > napisał(a):
> > >
> > > > Build is in progress. Once it's finish I will check ->
> > > > https://builds.apache.org/job/Royale-compiler/1257/
> > > >
> > > > śr., 22 sty 2020 o 15:54 Carlos Rovira 
> > > > napisał(a):
> > > >
> > > >> Hi Piotr,
> > > >> latest commit seems to fix the problem. Let me know if all is now ok
> > > >> sorry for the inconvenience
> > > >> Carlos
> > > >>
> > > >> El mié., 22 ene. 2020 a las 13:51, Carlos Rovira (<
> > > >> carlosrov...@apache.org>)
> > > >> escribió:
> > > >>
> > > >> > Hi Piotr,
> > > >> >
> > > >> > I can see the problem is related to my latest commit in compiler
> to
> > > >> solve
> > > >> > the GOOG_HOME problem.
> > > >> > going to fix it
> > > >> >
> > > >> > El mié., 22 ene. 2020 a las 13:31, Carlos Rovira (<
> > > >> carlosrov...@apache.org>)
> > > >> > escribió:
> > > >> >
> > > >> >> Hi Piotr,
> > > >> >>
> > > >> >> ok, now I understand... It's clear that I broke something since
> > > trying
> > > >> to
> > > >> >> build now with Maven is generating the same issue ;)
> > > >> >> I was focused on making build works for IDEs, that didn't test
> > normal
> > > >> >> maven path yesterday.
> > > >> >> I'll be looking over it to find where is the problem
> > > >> >> Sorry for the confusion! :)
> > > >> >>
> > > >> >> El mié., 22 ene. 2020 a las 13:27, Carlos Rovira (<
> > > >> >> carlosrov...@apache.org>) escribió:
> > > >> >>
> > > >> >>> Hi Piotr,
> > > >> >>>
> > > >> >>> before understand the mistake, I downloaded and tested SDK from
> > > >> Jenkins
> > > >> >>> (build #2552 that was the latest created) and build TDJ with
> > VSCode
> > > >> and all
> > > >> >>> worked ok (the same output as with Maven distribution created
> > > locally)
> > > >> >>> Don't know if that report can be of help for you.
> > > >> >>>
> > > >> >>>
> > > >> >>>
> > > >> >>> El mié., 22 ene. 2020 a las 13:22, Piotr Zarzycki (<
> > > >> >>> piotrzarzyck...@gmail.com>) escribió:
> > > >> >>>
> > > >> >>>> Exactly we are not discussion any stuff related to distribution
> > :)
> > > We
> > > >> >>>> are
> > > >> >>>> discussion at some point that maybe for some reason your
> changes
> > > >> >>>> influence
> > > >> >>>> somehow compiler or anything else which end up with above
> error.
> > > >> Maybe
> > > >> >>>> that
> > > >> >>>> closure upgrade - I don't know. I look forward to hea

Re: Building Royale project with Maven throws NPE

2020-01-23 Thread Carlos Rovira
Hi Piotr,

great to hear that :)
additionally I had confirmation from Josh that distribution SDK was as well
working for him.
So I think we got it :)

El jue., 23 ene. 2020 a las 16:28, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Maven build for our application back to normal and I was able to produce
> release/debug files.
>
> śr., 22 sty 2020 o 16:05 Piotr Zarzycki 
> napisał(a):
>
> > Build is in progress. Once it's finish I will check ->
> > https://builds.apache.org/job/Royale-compiler/1257/
> >
> > śr., 22 sty 2020 o 15:54 Carlos Rovira 
> > napisał(a):
> >
> >> Hi Piotr,
> >> latest commit seems to fix the problem. Let me know if all is now ok
> >> sorry for the inconvenience
> >> Carlos
> >>
> >> El mié., 22 ene. 2020 a las 13:51, Carlos Rovira (<
> >> carlosrov...@apache.org>)
> >> escribió:
> >>
> >> > Hi Piotr,
> >> >
> >> > I can see the problem is related to my latest commit in compiler to
> >> solve
> >> > the GOOG_HOME problem.
> >> > going to fix it
> >> >
> >> > El mié., 22 ene. 2020 a las 13:31, Carlos Rovira (<
> >> carlosrov...@apache.org>)
> >> > escribió:
> >> >
> >> >> Hi Piotr,
> >> >>
> >> >> ok, now I understand... It's clear that I broke something since
> trying
> >> to
> >> >> build now with Maven is generating the same issue ;)
> >> >> I was focused on making build works for IDEs, that didn't test normal
> >> >> maven path yesterday.
> >> >> I'll be looking over it to find where is the problem
> >> >> Sorry for the confusion! :)
> >> >>
> >> >> El mié., 22 ene. 2020 a las 13:27, Carlos Rovira (<
> >> >> carlosrov...@apache.org>) escribió:
> >> >>
> >> >>> Hi Piotr,
> >> >>>
> >> >>> before understand the mistake, I downloaded and tested SDK from
> >> Jenkins
> >> >>> (build #2552 that was the latest created) and build TDJ with VSCode
> >> and all
> >> >>> worked ok (the same output as with Maven distribution created
> locally)
> >> >>> Don't know if that report can be of help for you.
> >> >>>
> >> >>>
> >> >>>
> >> >>> El mié., 22 ene. 2020 a las 13:22, Piotr Zarzycki (<
> >> >>> piotrzarzyck...@gmail.com>) escribió:
> >> >>>
> >> >>>> Exactly we are not discussion any stuff related to distribution :)
> We
> >> >>>> are
> >> >>>> discussion at some point that maybe for some reason your changes
> >> >>>> influence
> >> >>>> somehow compiler or anything else which end up with above error.
> >> Maybe
> >> >>>> that
> >> >>>> closure upgrade - I don't know. I look forward to hear more from
> >> someone
> >> >>>> what could know the reason of my issue.
> >> >>>>
> >> >>>> śr., 22 sty 2020 o 13:16 Carlos Rovira 
> >> >>>> napisał(a):
> >> >>>>
> >> >>>> > Hi Piotr,
> >> >>>> >
> >> >>>> > El mié., 22 ene. 2020 a las 13:00, Piotr Zarzycki (<
> >> >>>> > piotrzarzyck...@gmail.com>) escribió:
> >> >>>> >
> >> >>>> > >
> >> >>>> > >
> >> >>>> > > Nope. Let's pretend that you have clean PC. You have downloaded
> >> your
> >> >>>> > Royale
> >> >>>> > > application which contains pom.xml - You do "mvn clean
> install" -
> >> >>>> All the
> >> >>>> > > dependencies will be downloaded from Apache Maven Central
> >> >>>> repository -
> >> >>>> > > which is being updated by every build ->
> >> >>>> > > https://builds.apache.org/job/Royale-asjs/ - Do you understand
> >> now
> >> >>>> what
> >> >>>> > > I'm
> >> >>>> > > using now ?
> >> >>>> > >
> >> >>>> > >
> >> >>>> > Ok, but in that case, you are not trying "distribution" 

Re: Maven Distribution SDK fixed and working for IDEs

2020-01-23 Thread Carlos Rovira
Hi Piotr,

right, are simplified too and does not have any profile or variable.

"-U clean install" is standard maven commands, nothing to do with us in
particular, so you can left that
"-P main,utils" are not needed anymore, since now there's no
differentiation between a "first build" against rest of builds.


El jue., 23 ene. 2020 a las 15:32, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Hi Carlos,
>
> Builds for framework is updated. What about compiler and typedefs ? For
> compiler on the server we have:
>
> -U clean install
> -P -main,utils
>
> It looks like that those profiles also deprecated - can you confirm ?
>
> Thanks,
> Piotr
>
> śr., 22 sty 2020 o 18:37 Carlos Rovira 
> napisał(a):
>
> > Hi Piotr,
> >
> > it surprise me that due all the changes done in maven builds.a.o was not
> > failing. I've even didn't repare that will need to be updated.
> >
> > These profiles does not exist anymore:
> > generate-swf,generate-swcs-for-swf,main,build-distribution,build-examples
> >
> > Here's the updated doc for maven simplified [1]
> >
> > In sort:
> >
> > 1.- Only env var needed in Maven now is FLASHPLAYER_DEBUGGER
> > 2.- Build from an empty repo is now more reliable (something that was a
> > real headache)
> > 3.- Profiles are reduced to:
> >
> >
> >- with-ui-testsuite
> >- option-with-swf
> >- with-examples
> >- with-distribution
> >
> > Can you upgrade builds.a.o to use this profiles?
> >
> > [1]
> >
> https://github.com/apache/royale-asjs/wiki/Build-Apache-Royale-with-Maven
> >
> >
> >
> >
> > El mié., 22 ene. 2020 a las 17:40, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> > > Carlos,
> > >
> > > What has change more in case of Maven build for framework? On
> builds.a.o
> > we
> > > have following command which running royale-asjs. It looks like
> something
> > > is missing, cause I have removed locally my org.apache.royale folder
> from
> > > .m2 and start building PureMVC to swc. [1] - It throws exception now.
> > >
> > > Could not resolve dependencies for project
> > > org.puremvc:puremvc-royale-as3-multicore-framework:swc:0.1.0-SNAPSHOT:
> > > Failure to find org.apache.royale.framework:Core:swc:swf:0.9.7-SNAPSHOT
> > in
> > > https://repository.apache.org/content/repositories/snapshots was
> cached
> > in
> > > the local repository, resolution will not be reattempted until the
> update
> > > interval of apache-snapshots has elapsed or updates are forced
> > >
> > > Above means that it probably doesn't exists in Apache Maven central...
> > >
> > > Command on builds.a.o:
> > >
> > > -U
> > > clean
> > > deploy
> > > -P
> > >
> > >
> >
> generate-swf,generate-swcs-for-swf,main,build-distribution,build-examples,apache-snapshots-enabled
> > >
> > >
> >
> -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=sometoken
> > >
> > >
> >
> -Dwebdriver.gecko.driver=F:\jenkins\tools\geckodriver\0.23.0\win64\geckodriver.exe
> > > -Dgenerate.swf.swcs=true
> > > -Dgenerate.swf
> > >
> > > [1] https://github.com/piotrzarzycki21/puremvc-as3-multicore-framework
> > >
> > > Thanks,
> > > Piotr
> > >
> > > śr., 22 sty 2020 o 12:29 Piotr Zarzycki 
> > > napisał(a):
> > >
> > > > Ok let's wait to see whether someone actually know what is the
> version.
> > > >
> > > > śr., 22 sty 2020 o 12:27 Carlos Rovira 
> > > > napisał(a):
> > > >
> > > >> Hi Piotr,
> > > >>
> > > >> I explained in this thread that I couldn't find in maven the same
> > exact
> > > >> version that ANT one, I put the closest in date available from maven
> > > >> I proposed as well if we can upgrade ANT/MAVEN to the same one that
> > > works.
> > > >> Other thing is that maybe I fail in the search and the version could
> > > >> exists, in that case hope other can indicate the maven descriptor to
> > > >> update
> > > >> it.
> > > >>
> > > >> thanks
> > > >>
> > > >>
> > > >>
> > > >> El mié., 22 ene. 2020 a las 12:11, Piotr Zarzycki (<
> > > >> 

Re: Generating Royale API report failing on Mac

2020-01-22 Thread Carlos Rovira
Hi,

this could be something to do with changes done by me? if so I'm on Mac not
Windows

El mié., 22 ene. 2020 a las 17:11, Alex Harui ()
escribió:

>
>
> On 1/22/20, 4:57 AM, "Piotr Zarzycki"  wrote:
>
> Hi,
>
> This is the day of failing.
>
> I've definitely had days like this...
>
> Another issue which I'm struggling with is
> failing API report generation with SDK Nightly build [1] for a simple
> Hello
> World Flex app.
>
>
>
> /Users/piotr/Downloads/apache-royale-0.9.7-bin-js/royale-asjs/bin/mxmlc:
> /bin/sh^M: bad interpreter: No such file or directory
>
> Do you have any idea why it may happen ?
>
> That usually means that the mxmlc script has Windows line endings.
>
> -Alex
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Maven Distribution SDK fixed and working for IDEs

2020-01-22 Thread Carlos Rovira
Hi Piotr,

it surprise me that due all the changes done in maven builds.a.o was not
failing. I've even didn't repare that will need to be updated.

These profiles does not exist anymore:
generate-swf,generate-swcs-for-swf,main,build-distribution,build-examples

Here's the updated doc for maven simplified [1]

In sort:

1.- Only env var needed in Maven now is FLASHPLAYER_DEBUGGER
2.- Build from an empty repo is now more reliable (something that was a
real headache)
3.- Profiles are reduced to:


   - with-ui-testsuite
   - option-with-swf
   - with-examples
   - with-distribution

Can you upgrade builds.a.o to use this profiles?

[1]
https://github.com/apache/royale-asjs/wiki/Build-Apache-Royale-with-Maven




El mié., 22 ene. 2020 a las 17:40, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Carlos,
>
> What has change more in case of Maven build for framework? On builds.a.o we
> have following command which running royale-asjs. It looks like something
> is missing, cause I have removed locally my org.apache.royale folder from
> .m2 and start building PureMVC to swc. [1] - It throws exception now.
>
> Could not resolve dependencies for project
> org.puremvc:puremvc-royale-as3-multicore-framework:swc:0.1.0-SNAPSHOT:
> Failure to find org.apache.royale.framework:Core:swc:swf:0.9.7-SNAPSHOT in
> https://repository.apache.org/content/repositories/snapshots was cached in
> the local repository, resolution will not be reattempted until the update
> interval of apache-snapshots has elapsed or updates are forced
>
> Above means that it probably doesn't exists in Apache Maven central...
>
> Command on builds.a.o:
>
> -U
> clean
> deploy
> -P
>
> generate-swf,generate-swcs-for-swf,main,build-distribution,build-examples,apache-snapshots-enabled
>
> -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=sometoken
>
> -Dwebdriver.gecko.driver=F:\jenkins\tools\geckodriver\0.23.0\win64\geckodriver.exe
> -Dgenerate.swf.swcs=true
> -Dgenerate.swf
>
> [1] https://github.com/piotrzarzycki21/puremvc-as3-multicore-framework
>
> Thanks,
> Piotr
>
> śr., 22 sty 2020 o 12:29 Piotr Zarzycki 
> napisał(a):
>
> > Ok let's wait to see whether someone actually know what is the version.
> >
> > śr., 22 sty 2020 o 12:27 Carlos Rovira 
> > napisał(a):
> >
> >> Hi Piotr,
> >>
> >> I explained in this thread that I couldn't find in maven the same exact
> >> version that ANT one, I put the closest in date available from maven
> >> I proposed as well if we can upgrade ANT/MAVEN to the same one that
> works.
> >> Other thing is that maybe I fail in the search and the version could
> >> exists, in that case hope other can indicate the maven descriptor to
> >> update
> >> it.
> >>
> >> thanks
> >>
> >>
> >>
> >> El mié., 22 ene. 2020 a las 12:11, Piotr Zarzycki (<
> >> piotrzarzyck...@gmail.com>) escribió:
> >>
> >> > Why you didn't use exactly the same version ? Maybe this is the reason
> >> why
> >> > my application is failing.
> >> >
> >> > I see this in Maven:
> >> > 
> >> > com.google.javascript
> >> > closure-compiler
> >> > v20181210
> >> > 
> >> > 
> >> > org.clojure
> >> > google-closure-library
> >> > 0.0-20190213-2033d5d9
> >> > 
> >> >
> >> > śr., 22 sty 2020 o 10:52 Carlos Rovira 
> >> > napisał(a):
> >> >
> >> > > Hi Alex,
> >> > >
> >> > > I didn't put the latest one. Used the closest one in dates to the
> one
> >> in
> >> > > ANT. Should be that valid? And how can I ensure compatibility? Where
> >> to
> >> > > check that?
> >> > > But what I really want to do is update ANT/MAVEN to the same one
> that
> >> is
> >> > ok
> >> > > for all of us. We need to ensure one that is available for both.
> >> > >
> >> > > thanks
> >> > >
> >> > >
> >> > > El mié., 22 ene. 2020 a las 2:41, Alex Harui
> >> ( >> > >)
> >> > > escribió:
> >> > >
> >> > > > You may not want the latest closure library.  You probably want
> one
> >> > that
> >> > > > is compatible with the closure compiler.
> >> > > >
> >> > > > HTH,
> >> > > > -Alex
> >> > > >
> >> > > > On 1/21/20, 5:20 PM,

Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,
latest commit seems to fix the problem. Let me know if all is now ok
sorry for the inconvenience
Carlos

El mié., 22 ene. 2020 a las 13:51, Carlos Rovira ()
escribió:

> Hi Piotr,
>
> I can see the problem is related to my latest commit in compiler to solve
> the GOOG_HOME problem.
> going to fix it
>
> El mié., 22 ene. 2020 a las 13:31, Carlos Rovira ()
> escribió:
>
>> Hi Piotr,
>>
>> ok, now I understand... It's clear that I broke something since trying to
>> build now with Maven is generating the same issue ;)
>> I was focused on making build works for IDEs, that didn't test normal
>> maven path yesterday.
>> I'll be looking over it to find where is the problem
>> Sorry for the confusion! :)
>>
>> El mié., 22 ene. 2020 a las 13:27, Carlos Rovira (<
>> carlosrov...@apache.org>) escribió:
>>
>>> Hi Piotr,
>>>
>>> before understand the mistake, I downloaded and tested SDK from Jenkins
>>> (build #2552 that was the latest created) and build TDJ with VSCode and all
>>> worked ok (the same output as with Maven distribution created locally)
>>> Don't know if that report can be of help for you.
>>>
>>>
>>>
>>> El mié., 22 ene. 2020 a las 13:22, Piotr Zarzycki (<
>>> piotrzarzyck...@gmail.com>) escribió:
>>>
>>>> Exactly we are not discussion any stuff related to distribution :) We
>>>> are
>>>> discussion at some point that maybe for some reason your changes
>>>> influence
>>>> somehow compiler or anything else which end up with above error. Maybe
>>>> that
>>>> closure upgrade - I don't know. I look forward to hear more from someone
>>>> what could know the reason of my issue.
>>>>
>>>> śr., 22 sty 2020 o 13:16 Carlos Rovira 
>>>> napisał(a):
>>>>
>>>> > Hi Piotr,
>>>> >
>>>> > El mié., 22 ene. 2020 a las 13:00, Piotr Zarzycki (<
>>>> > piotrzarzyck...@gmail.com>) escribió:
>>>> >
>>>> > >
>>>> > >
>>>> > > Nope. Let's pretend that you have clean PC. You have downloaded your
>>>> > Royale
>>>> > > application which contains pom.xml - You do "mvn clean install" -
>>>> All the
>>>> > > dependencies will be downloaded from Apache Maven Central
>>>> repository -
>>>> > > which is being updated by every build ->
>>>> > > https://builds.apache.org/job/Royale-asjs/ - Do you understand now
>>>> what
>>>> > > I'm
>>>> > > using now ?
>>>> > >
>>>> > >
>>>> > Ok, but in that case, you are not trying "distribution" so really
>>>> don't
>>>> > understand.
>>>> > I though we were discussing the new fixed distribution that creates a
>>>> SDK
>>>> > in target folder or in the folder you specify (if use
>>>> > -DdistributionTargetFolder var)
>>>> > IOW, ant and maven continue to do the same as before, since there's no
>>>> > changes out side of distribution (just class paths set ups for maven
>>>> > generated artifacts that until now was empty or pointing to not
>>>> existing
>>>> > resources)
>>>> >
>>>> >
>>>> > > No I don't have to and I shouldn't have to - I'm using artifacts
>>>> from
>>>> > > Apache Maven Central.
>>>> > >
>>>> > >
>>>> > In that case you're not testing distribution. Jenkins builds the same
>>>> as
>>>> > always. Other case will be if we can change Jenkins to build with
>>>> > distribution and then provide that SDK to download, that will be the
>>>> proper
>>>> > way, and what the rest of projects using maven does in fact.
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > > --
>>>> > > Carlos Rovira
>>>> > > http://about.me/carlosrovira
>>>> > >
>>>> > >
>>>> > >
>>>> > >
>>>> >
>>>>
>>>>
>>>> --
>>>>
>>>> Piotr Zarzycki
>>>>
>>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>>> <https://www.patreon.com/piotrzarzycki>*
>>>>
>>>
>>>
>>> --
>>> Carlos Rovira
>>> http://about.me/carlosrovira
>>>
>>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,

I can see the problem is related to my latest commit in compiler to solve
the GOOG_HOME problem.
going to fix it

El mié., 22 ene. 2020 a las 13:31, Carlos Rovira ()
escribió:

> Hi Piotr,
>
> ok, now I understand... It's clear that I broke something since trying to
> build now with Maven is generating the same issue ;)
> I was focused on making build works for IDEs, that didn't test normal
> maven path yesterday.
> I'll be looking over it to find where is the problem
> Sorry for the confusion! :)
>
> El mié., 22 ene. 2020 a las 13:27, Carlos Rovira ()
> escribió:
>
>> Hi Piotr,
>>
>> before understand the mistake, I downloaded and tested SDK from Jenkins
>> (build #2552 that was the latest created) and build TDJ with VSCode and all
>> worked ok (the same output as with Maven distribution created locally)
>> Don't know if that report can be of help for you.
>>
>>
>>
>> El mié., 22 ene. 2020 a las 13:22, Piotr Zarzycki (<
>> piotrzarzyck...@gmail.com>) escribió:
>>
>>> Exactly we are not discussion any stuff related to distribution :) We are
>>> discussion at some point that maybe for some reason your changes
>>> influence
>>> somehow compiler or anything else which end up with above error. Maybe
>>> that
>>> closure upgrade - I don't know. I look forward to hear more from someone
>>> what could know the reason of my issue.
>>>
>>> śr., 22 sty 2020 o 13:16 Carlos Rovira 
>>> napisał(a):
>>>
>>> > Hi Piotr,
>>> >
>>> > El mié., 22 ene. 2020 a las 13:00, Piotr Zarzycki (<
>>> > piotrzarzyck...@gmail.com>) escribió:
>>> >
>>> > >
>>> > >
>>> > > Nope. Let's pretend that you have clean PC. You have downloaded your
>>> > Royale
>>> > > application which contains pom.xml - You do "mvn clean install" -
>>> All the
>>> > > dependencies will be downloaded from Apache Maven Central repository
>>> -
>>> > > which is being updated by every build ->
>>> > > https://builds.apache.org/job/Royale-asjs/ - Do you understand now
>>> what
>>> > > I'm
>>> > > using now ?
>>> > >
>>> > >
>>> > Ok, but in that case, you are not trying "distribution" so really
>>> don't
>>> > understand.
>>> > I though we were discussing the new fixed distribution that creates a
>>> SDK
>>> > in target folder or in the folder you specify (if use
>>> > -DdistributionTargetFolder var)
>>> > IOW, ant and maven continue to do the same as before, since there's no
>>> > changes out side of distribution (just class paths set ups for maven
>>> > generated artifacts that until now was empty or pointing to not
>>> existing
>>> > resources)
>>> >
>>> >
>>> > > No I don't have to and I shouldn't have to - I'm using artifacts from
>>> > > Apache Maven Central.
>>> > >
>>> > >
>>> > In that case you're not testing distribution. Jenkins builds the same
>>> as
>>> > always. Other case will be if we can change Jenkins to build with
>>> > distribution and then provide that SDK to download, that will be the
>>> proper
>>> > way, and what the rest of projects using maven does in fact.
>>> >
>>> >
>>> >
>>> >
>>> > > --
>>> > > Carlos Rovira
>>> > > http://about.me/carlosrovira
>>> > >
>>> > >
>>> > >
>>> > >
>>> >
>>>
>>>
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>> <https://www.patreon.com/piotrzarzycki>*
>>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,

ok, now I understand... It's clear that I broke something since trying to
build now with Maven is generating the same issue ;)
I was focused on making build works for IDEs, that didn't test normal maven
path yesterday.
I'll be looking over it to find where is the problem
Sorry for the confusion! :)

El mié., 22 ene. 2020 a las 13:27, Carlos Rovira ()
escribió:

> Hi Piotr,
>
> before understand the mistake, I downloaded and tested SDK from Jenkins
> (build #2552 that was the latest created) and build TDJ with VSCode and all
> worked ok (the same output as with Maven distribution created locally)
> Don't know if that report can be of help for you.
>
>
>
> El mié., 22 ene. 2020 a las 13:22, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
>> Exactly we are not discussion any stuff related to distribution :) We are
>> discussion at some point that maybe for some reason your changes influence
>> somehow compiler or anything else which end up with above error. Maybe
>> that
>> closure upgrade - I don't know. I look forward to hear more from someone
>> what could know the reason of my issue.
>>
>> śr., 22 sty 2020 o 13:16 Carlos Rovira 
>> napisał(a):
>>
>> > Hi Piotr,
>> >
>> > El mié., 22 ene. 2020 a las 13:00, Piotr Zarzycki (<
>> > piotrzarzyck...@gmail.com>) escribió:
>> >
>> > >
>> > >
>> > > Nope. Let's pretend that you have clean PC. You have downloaded your
>> > Royale
>> > > application which contains pom.xml - You do "mvn clean install" - All
>> the
>> > > dependencies will be downloaded from Apache Maven Central repository -
>> > > which is being updated by every build ->
>> > > https://builds.apache.org/job/Royale-asjs/ - Do you understand now
>> what
>> > > I'm
>> > > using now ?
>> > >
>> > >
>> > Ok, but in that case, you are not trying "distribution" so really
>> don't
>> > understand.
>> > I though we were discussing the new fixed distribution that creates a
>> SDK
>> > in target folder or in the folder you specify (if use
>> > -DdistributionTargetFolder var)
>> > IOW, ant and maven continue to do the same as before, since there's no
>> > changes out side of distribution (just class paths set ups for maven
>> > generated artifacts that until now was empty or pointing to not existing
>> > resources)
>> >
>> >
>> > > No I don't have to and I shouldn't have to - I'm using artifacts from
>> > > Apache Maven Central.
>> > >
>> > >
>> > In that case you're not testing distribution. Jenkins builds the same as
>> > always. Other case will be if we can change Jenkins to build with
>> > distribution and then provide that SDK to download, that will be the
>> proper
>> > way, and what the rest of projects using maven does in fact.
>> >
>> >
>> >
>> >
>> > > --
>> > > Carlos Rovira
>> > > http://about.me/carlosrovira
>> > >
>> > >
>> > >
>> > >
>> >
>>
>>
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,

before understand the mistake, I downloaded and tested SDK from Jenkins
(build #2552 that was the latest created) and build TDJ with VSCode and all
worked ok (the same output as with Maven distribution created locally)
Don't know if that report can be of help for you.



El mié., 22 ene. 2020 a las 13:22, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Exactly we are not discussion any stuff related to distribution :) We are
> discussion at some point that maybe for some reason your changes influence
> somehow compiler or anything else which end up with above error. Maybe that
> closure upgrade - I don't know. I look forward to hear more from someone
> what could know the reason of my issue.
>
> śr., 22 sty 2020 o 13:16 Carlos Rovira 
> napisał(a):
>
> > Hi Piotr,
> >
> > El mié., 22 ene. 2020 a las 13:00, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> > >
> > >
> > > Nope. Let's pretend that you have clean PC. You have downloaded your
> > Royale
> > > application which contains pom.xml - You do "mvn clean install" - All
> the
> > > dependencies will be downloaded from Apache Maven Central repository -
> > > which is being updated by every build ->
> > > https://builds.apache.org/job/Royale-asjs/ - Do you understand now
> what
> > > I'm
> > > using now ?
> > >
> > >
> > Ok, but in that case, you are not trying "distribution" so really
> don't
> > understand.
> > I though we were discussing the new fixed distribution that creates a SDK
> > in target folder or in the folder you specify (if use
> > -DdistributionTargetFolder var)
> > IOW, ant and maven continue to do the same as before, since there's no
> > changes out side of distribution (just class paths set ups for maven
> > generated artifacts that until now was empty or pointing to not existing
> > resources)
> >
> >
> > > No I don't have to and I shouldn't have to - I'm using artifacts from
> > > Apache Maven Central.
> > >
> > >
> > In that case you're not testing distribution. Jenkins builds the same as
> > always. Other case will be if we can change Jenkins to build with
> > distribution and then provide that SDK to download, that will be the
> proper
> > way, and what the rest of projects using maven does in fact.
> >
> >
> >
> >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> > >
> > >
> > >
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,

El mié., 22 ene. 2020 a las 13:00, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

>
>
> Nope. Let's pretend that you have clean PC. You have downloaded your Royale
> application which contains pom.xml - You do "mvn clean install" - All the
> dependencies will be downloaded from Apache Maven Central repository -
> which is being updated by every build ->
> https://builds.apache.org/job/Royale-asjs/ - Do you understand now what
> I'm
> using now ?
>
>
Ok, but in that case, you are not trying "distribution" so really don't
understand.
I though we were discussing the new fixed distribution that creates a SDK
in target folder or in the folder you specify (if use
-DdistributionTargetFolder var)
IOW, ant and maven continue to do the same as before, since there's no
changes out side of distribution (just class paths set ups for maven
generated artifacts that until now was empty or pointing to not existing
resources)


> No I don't have to and I shouldn't have to - I'm using artifacts from
> Apache Maven Central.
>
>
In that case you're not testing distribution. Jenkins builds the same as
always. Other case will be if we can change Jenkins to build with
distribution and then provide that SDK to download, that will be the proper
way, and what the rest of projects using maven does in fact.




> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
>
>


Re: Routing (was Re: Spectrum Components)

2020-01-22 Thread Carlos Rovira
Hi Harbs,

thanks for taking a look, I'll try to apply your suggestions and see if I
can make it work.

If you plan to work in that new Routing implementation, I'll wait for it to
write about it in blog and social media, since better to point people to
the more elaborated one. I as well recommend you to make it end in its own
"Routing.swc" since I think it deserves it.

As Alex dream on possibilities, I want as well to dream and I think
nowadays, a part from pure client navigation, we have server navigation,
and as other royale features people will soon try to do it. In the case of
Routing, people will want to have URLs for concrete items retrieved from
database and we should support it (was what we discussed before that in
that case, we'll be able to not have # in the url but just a friendly
permalink). Hope we can support that, since we'll be great to create, lets
say, a blog app, and as user browse posts and navigate to see a full posst,
he gets as well a friendly URL with no anchors that can be indexable by
google and retrieved (i.e, the same as Wordpress)

Thanks





El mar., 21 ene. 2020 a las 23:57, Alex Harui ()
escribió:

> If we're dreaming of the future possible implementations, one vision is
> that the route paths are computed from the currentStates of Containers.
> That might have the least setup required, it would almost be automatic.
>
> IOW, Containers have both a label and currentState property. A routing
> implementation could scan the DOM for contaners and build the path from
> label/currentState pairs.
>
> Of course, I could be wrong...
>
> -Alex
>
>
> On 1/21/20, 1:33 PM, "Harbs"  wrote:
>
> I’ve also been thinking about the router in general, and I came up
> with an idea on how to do it with beads.
>
> It’ll probably take me a few days until I implement the changes…
>
> In addition to , I think we can also offer
>  which would allow different routers to be attached to
> different places in the application and each level of the hierarchy can
> take care of its own state.
>
> Harbs
>
> > On Jan 21, 2020, at 11:29 PM, Harbs  wrote:
> >
> > FWIW, I’d like to write a version of a router which allows for more
> declarative syntax for routing to components.
> >
> > Something like this:
> > 
> > 
> > 
> >  title=“Layouts”/>
> >  title=“Grids”/>
> >  title=“Button Bar”/>
> > etc...
> > 
> > 
> > 
> >
> >> On Jan 21, 2020, at 11:20 PM, Harbs  harbs.li...@gmail.com>> wrote:
> >>
> >> To see what I mean about href links, check out this page and click
> on a link:
> >> http://spectrum-royale/SpectrumBrowser/bin/js-debug/#!link <
> http://spectrum-royale/SpectrumBrowser/bin/js-debug/#!link>
> >>
> >> Then use the side panel to navigate to the same pages.
> >>
> >>> On Jan 21, 2020, at 11:18 PM, Harbs  <mailto:harbs.li...@gmail.com>> wrote:
> >>>
> >>> The problem is the href in the  element in the nav. The hash is
> being changed to “#" after the router redirects.
> >>>
> >>> You need to handle routing in one of two ways (and not both).
> >>> 1. Use setState()
> >>> 2. Use href links
> >>>
> >>> To do #1, you need to remove the href from the  elements (or
> use something else such as a div or li).
> >>>
> >>> If you use href links, the logic of actually switching the views
> should be handled by the router, so for example in Card, the href should
> be  #card_panel or #!card_panel.
> >>>
> >>> Then setNavSelection will work.
> >>>
> >>> The downside of the second method is that I’m not sure how to set
> the title. Maybe that should be a separate method that can be called.
> >>>
> >>>> On Jan 21, 2020, at 8:48 PM, Carlos Rovira <
> carlosrov...@apache.org <mailto:carlosrov...@apache.org>> wrote:
> >>>>
> >>>> Hi Harbs,
> >>>>
> >>>> this paste is the MainContent.mxml from TDJ with the changes I
> tried:
> >>>>
> >>>>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2Fez6aqdata=02%7C01%7Caharui%40adobe.com%7C6962e0e5e92a48ed2e2008d79eb97fc1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637152391862520246sdata=j0E5U49VHJMKuW7u1fMxfKJ85tC2LyPr8ZTAR2yz3%2Fo%3Dreserved=0
> <
> https://nam04.safelinks.protection.outlook.com/?url=https%3A

Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Yes, I tried, and worked from js_only links, but as I did, I recall that
does not have any sense, since is the normal sdk Jenkins is building.
So reset...since I think we are not understanding to each one :)

Your first email talk about you building your project with maven. I suppose
that you build distribution SDK right?
That didn't work, since the error was the one Josh stated yesterday to me
privately (about having GOOG_HOME set) and I fixed around 12h by now.

So to fix that...you must build maven distribution with latest fixes and
feed your IDE with that distribution/SDK and report if you have some
problems.

>From that point we can go on

Thanks


El mié., 22 ene. 2020 a las 12:37, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> You will try to download from which Jenkins? - Do you refer to ->
> https://builds.apache.org/job/Royale-asjs/ or >
>
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/
>  ?
>
> śr., 22 sty 2020 o 12:32 Carlos Rovira 
> napisał(a):
>
> > Hi Piotr,
> >
> > one thing I already said is that currently Maven distribution is SWF and
> > JS, (not JS only). I requested Chris that I want to get JS only as well,
> so
> > I need him to guide me for this change. Anyway, distribution requires the
> > profile "option-with-swf" to work (in other case it fails and inform
> about
> > that requirement)
> >
> > I'll try to download from Jenkins and see what happens, since I just
> tested
> > locally.
> >
> > Thanks
> >
> >
> > El mié., 22 ene. 2020 a las 12:13, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> > > It is possible that Moonshine issue build which is based on
> > >
> > >
> >
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/
> > > -
> > > may be something different than I reported after build by Maven.
> > >
> > > śr., 22 sty 2020 o 12:03 Piotr Zarzycki 
> > > napisał(a):
> > >
> > > > Carlos,
> > > >
> > > > Just to make sure that you understand. When I'm building my
> > application I
> > > > don't relay on local build from sources - I only rely on what Jenkins
> > is
> > > > building. In case of Maven it would be
> > > > https://builds.apache.org/job/Royale-asjs/ in case of Moonshine it
> > would
> > > > be
> > > >
> > >
> >
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/
> > > >
> > > >
> > > > Thanks,
> > > > Piotr
> > > >
> > > > śr., 22 sty 2020 o 12:00 Piotr Zarzycki 
> > > > napisał(a):
> > > >
> > > >> In case of Maven I have used this ->
> > > >> https://builds.apache.org/job/Royale-asjs/2551/ and that
> > > >> https://builds.apache.org/job/Royale-compiler/1255/ - Those builds
> > > >> should contains your changes.
> > > >>
> > > >> śr., 22 sty 2020 o 11:58 Carlos Rovira 
> > > >> napisał(a):
> > > >>
> > > >>> Hi Piotr,
> > > >>>
> > > >>> first I need to know about the other email I sent just now, if
> you're
> > > >>> using
> > > >>> latest sources, and depending on that will go over this
> > > >>>
> > > >>>
> > > >>> El mié., 22 ene. 2020 a las 10:40, Piotr Zarzycki (<
> > > >>> piotrzarzyck...@gmail.com>) escribió:
> > > >>>
> > > >>> > Ok doing build trough Moonshine it's actually also failing. I did
> > > build
> > > >>> > with -debug=false and got following exception:
> > > >>> >
> > > >>> > : Internal error: java.nio.file.InvalidPathException: Illegal
> char
> > > <:>
> > > >>> at
> > > >>> > index 4:
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> file:///THIS_WAS_FULL_PATH_BUT_I_HAD_TO_DELETE_DUE_TO_confidentiality_src/net/prominic/utils/UtilsCore.as
> > > >>> >
> > > >>> >
> > > >>>
> > >
> >
> sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)sun.nio.fs.WindowsPat

Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,

one thing I already said is that currently Maven distribution is SWF and
JS, (not JS only). I requested Chris that I want to get JS only as well, so
I need him to guide me for this change. Anyway, distribution requires the
profile "option-with-swf" to work (in other case it fails and inform about
that requirement)

I'll try to download from Jenkins and see what happens, since I just tested
locally.

Thanks


El mié., 22 ene. 2020 a las 12:13, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> It is possible that Moonshine issue build which is based on
>
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/
> -
> may be something different than I reported after build by Maven.
>
> śr., 22 sty 2020 o 12:03 Piotr Zarzycki 
> napisał(a):
>
> > Carlos,
> >
> > Just to make sure that you understand. When I'm building my application I
> > don't relay on local build from sources - I only rely on what Jenkins is
> > building. In case of Maven it would be
> > https://builds.apache.org/job/Royale-asjs/ in case of Moonshine it would
> > be
> >
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/
> >
> >
> > Thanks,
> > Piotr
> >
> > śr., 22 sty 2020 o 12:00 Piotr Zarzycki 
> > napisał(a):
> >
> >> In case of Maven I have used this ->
> >> https://builds.apache.org/job/Royale-asjs/2551/ and that
> >> https://builds.apache.org/job/Royale-compiler/1255/ - Those builds
> >> should contains your changes.
> >>
> >> śr., 22 sty 2020 o 11:58 Carlos Rovira 
> >> napisał(a):
> >>
> >>> Hi Piotr,
> >>>
> >>> first I need to know about the other email I sent just now, if you're
> >>> using
> >>> latest sources, and depending on that will go over this
> >>>
> >>>
> >>> El mié., 22 ene. 2020 a las 10:40, Piotr Zarzycki (<
> >>> piotrzarzyck...@gmail.com>) escribió:
> >>>
> >>> > Ok doing build trough Moonshine it's actually also failing. I did
> build
> >>> > with -debug=false and got following exception:
> >>> >
> >>> > : Internal error: java.nio.file.InvalidPathException: Illegal char
> <:>
> >>> at
> >>> > index 4:
> >>> >
> >>> >
> >>>
> file:///THIS_WAS_FULL_PATH_BUT_I_HAD_TO_DELETE_DUE_TO_confidentiality_src/net/prominic/utils/UtilsCore.as
> >>> >
> >>> >
> >>>
> sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)sun.nio.fs.AbstractPath.resolveSibling(AbstractPath.java:66)com.google.javascript.jscomp.SourceMapResolver.getRelativePath(SourceMapResolver.java:102)com.google.javascript.jscomp.Compiler.getSourceMapping(Compiler.java:2898)com.google.javascript.jscomp.LightweightMessageFormatter.format(LightweightMessageFormatter.java:95)com.google.javascript.jscomp.LightweightMessageFormatter.formatError(LightweightMessageFormatter.java:74)com.google.javascript.jscomp.JSError.format(JSError.java:163)com.google.javascript.jscomp.LoggerErrorManager.println(LoggerErrorManager.java:53)com.google.javascript.jscomp.BasicErrorManager.generateReport(BasicErrorManager.java:39)com.google.javascript.jscomp.ThreadSafeDelegatingErrorManager.generateReport(ThreadSafeDelegatingErrorManager.java:39)com.google.javascript.jscomp.Compiler.generateReport(Compiler.java:766)com.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apache.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCompilerWrapper.java:164)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:568)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:441)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:265)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:222)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:369)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:304)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:262)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:244)
> >>> >
> >>> > I'm not really sure if this is the problem with path of the file or
> >>> > something in the code. :/
> >>> >
> >>> > Tha

Re: Maven Distribution SDK fixed and working for IDEs

2020-01-22 Thread Carlos Rovira
Hi Piotr,

I explained in this thread that I couldn't find in maven the same exact
version that ANT one, I put the closest in date available from maven
I proposed as well if we can upgrade ANT/MAVEN to the same one that works.
Other thing is that maybe I fail in the search and the version could
exists, in that case hope other can indicate the maven descriptor to update
it.

thanks



El mié., 22 ene. 2020 a las 12:11, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Why you didn't use exactly the same version ? Maybe this is the reason why
> my application is failing.
>
> I see this in Maven:
> 
> com.google.javascript
> closure-compiler
> v20181210
> 
> 
> org.clojure
> google-closure-library
> 0.0-20190213-2033d5d9
> 
>
> śr., 22 sty 2020 o 10:52 Carlos Rovira 
> napisał(a):
>
> > Hi Alex,
> >
> > I didn't put the latest one. Used the closest one in dates to the one in
> > ANT. Should be that valid? And how can I ensure compatibility? Where to
> > check that?
> > But what I really want to do is update ANT/MAVEN to the same one that is
> ok
> > for all of us. We need to ensure one that is available for both.
> >
> > thanks
> >
> >
> > El mié., 22 ene. 2020 a las 2:41, Alex Harui ( >)
> > escribió:
> >
> > > You may not want the latest closure library.  You probably want one
> that
> > > is compatible with the closure compiler.
> > >
> > > HTH,
> > > -Alex
> > >
> > > On 1/21/20, 5:20 PM, "Carlos Rovira"  wrote:
> > >
> > > Hi,
> > >
> > > Josh discover that there was an issue. If we have GOOG_HOME env var
> > the
> > > maven distribution worked right, but if you don't have, compilation
> > > fails.
> > > I have it in my system while developing this. So I just fixed it
> some
> > > minutes ago.
> > >
> > > One thing: There's no maven artifact for the closure-library
> > v20180910
> > > (the
> > > one used by ANT), next one is 0.0-20190213-2033d5d9, so we need to
> > use
> > > that
> > > for maven (or maybe I was too bad trying to find the corresponding
> > > maven
> > > artifact, so if someone knows, please let me know!).
> > >
> > > So, can we upgrade ANT to v20190213 too? From now on, we should
> check
> > > versions exists for ANT and MAVEN artifacts.
> > >
> > > @Piotr Zarzycki   let me know if you
> can
> > > get it
> > > work with latest changes just done.
> > >
> > > Thanks
> > >
> > >
> > >
> > > El mar., 21 ene. 2020 a las 17:53, Carlos Rovira (<
> > > carlosrov...@apache.org>)
> > > escribió:
> > >
> > > > Hi Piotr,
> > > >
> > > > yes, you're using an old command, maven was extremely simplified
> > > thanks to
> > > > Chris Dutz contribution 1 or 2 months ago.
> > > > 'generate.swf.swcs' does not exists. Check the instructions I put
> > or
> > > go to
> > > > the updated docs here [1]. I updated that page to have all the
> > > latest valid
> > > > info.
> > > >
> > > > I'm planing with Chris, to work soon in more improvements:
> > > >
> > > > 1.- Make Maven distribution for js-only (just removing
> > > -option-with-swf
> > > > that now is required)
> > > > 2.- Try to have just one repo
> > > > 3.- Simplify release process based on 2 (and yes having ANT into
> > > account)
> > > >
> > > > I will want to release every 1 to 2 month.
> > > >
> > > > [1]
> > > >
> > >
> >
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FBuild-Apache-Royale-with-Mavendata=02%7C01%7Caharui%40adobe.com%7C41fecf4f430141353a9408d79ed93489%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637152528044882676sdata=3WB3dPQgbwSjThq13W8hGfJpYgaiVWxFgYScQknT0Zs%3Dreserved=0
> > > >
> > > > El mar., 21 ene. 2020 a las 17:40, Piotr Zarzycki (<
> > > > piotrzarzyck...@gmail.com>) escribió:
> > > >
> > > >> Ok it looks like it my fault. I didn't catch up full
> instruction.
> > > Let me
> > > >> try again.
> > > >>
> > > >> wt., 21 sty 2020

Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
xecute(DefaultMaven.java:305)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)org.apache.maven.cli.MavenCli.main(MavenCli.java:192)sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>
> Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:498)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> >
> >
> > Anyone know what it could be ? I don't have such errors when I'm building
> > stuff using Moonshine. - I have used in that case following version of
> > Nightly [1]
> >
> > [1]
> >
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/665/
> >
> > Thanks,
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Building Royale project with Maven throws NPE

2020-01-22 Thread Carlos Rovira
Hi Piotr,

this error was the issue yesterday without the GOOG_HOME patch.
did you rebuild today with latest fixes in compiler and framework?


El mié., 22 ene. 2020 a las 10:19, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Hi Guys,
>
> I have just tired build our project with Maven (we are using it when wanted
> to deploy version on the server) and I'm getting following compilation
> error:
>
> got null for string/internal.js
> > got null for debug/errorcontext.js
> > got null for debug/debug.js
> > Internal error: java.lang.NullPointerException
> >
> com.google.javascript.jscomp.Compiler.newTracer(Compiler.java:1256)com.google.javascript.jscomp.Compiler.generateReport(Compiler.java:765)com.google.javascript.jscomp.Compiler.compile(Compiler.java:751)org.apache.royale.compiler.utils.JSClosureCompilerWrapper.compile(JSClosureCompilerWrapper.java:164)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:568)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:441)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:265)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:222)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:369)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:304)org.apache.royale.compiler.clients.MXMLJSC.execute(MXMLJSC.java:234)org.apache.royale.maven.BaseMojo.execute(BaseMojo.java:375)org.apache.royale.maven.CompileAppMojo.execute(CompileAppMojo.java:107)org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)org.apache.maven.cli.MavenCli.main(MavenCli.java:192)sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >
> Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:498)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>
>
> Anyone know what it could be ? I don't have such errors when I'm building
> stuff using Moonshine. - I have used in that case following version of
> Nightly [1]
>
> [1]
>
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/665/
>
> Thanks,
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Maven Distribution SDK fixed and working for IDEs

2020-01-22 Thread Carlos Rovira
Hi Alex,

I didn't put the latest one. Used the closest one in dates to the one in
ANT. Should be that valid? And how can I ensure compatibility? Where to
check that?
But what I really want to do is update ANT/MAVEN to the same one that is ok
for all of us. We need to ensure one that is available for both.

thanks


El mié., 22 ene. 2020 a las 2:41, Alex Harui ()
escribió:

> You may not want the latest closure library.  You probably want one that
> is compatible with the closure compiler.
>
> HTH,
> -Alex
>
> On 1/21/20, 5:20 PM, "Carlos Rovira"  wrote:
>
> Hi,
>
> Josh discover that there was an issue. If we have GOOG_HOME env var the
> maven distribution worked right, but if you don't have, compilation
> fails.
> I have it in my system while developing this. So I just fixed it some
> minutes ago.
>
> One thing: There's no maven artifact for the closure-library v20180910
> (the
> one used by ANT), next one is 0.0-20190213-2033d5d9, so we need to use
> that
> for maven (or maybe I was too bad trying to find the corresponding
> maven
> artifact, so if someone knows, please let me know!).
>
> So, can we upgrade ANT to v20190213 too? From now on, we should check
> versions exists for ANT and MAVEN artifacts.
>
> @Piotr Zarzycki   let me know if you can
> get it
>     work with latest changes just done.
>
> Thanks
>
>
>
> El mar., 21 ene. 2020 a las 17:53, Carlos Rovira (<
> carlosrov...@apache.org>)
> escribió:
>
> > Hi Piotr,
> >
> > yes, you're using an old command, maven was extremely simplified
> thanks to
> > Chris Dutz contribution 1 or 2 months ago.
> > 'generate.swf.swcs' does not exists. Check the instructions I put or
> go to
> > the updated docs here [1]. I updated that page to have all the
> latest valid
> > info.
> >
> > I'm planing with Chris, to work soon in more improvements:
> >
> > 1.- Make Maven distribution for js-only (just removing
> -option-with-swf
> > that now is required)
> > 2.- Try to have just one repo
> > 3.- Simplify release process based on 2 (and yes having ANT into
> account)
> >
> > I will want to release every 1 to 2 month.
> >
> > [1]
> >
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FBuild-Apache-Royale-with-Mavendata=02%7C01%7Caharui%40adobe.com%7C41fecf4f430141353a9408d79ed93489%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637152528044882676sdata=3WB3dPQgbwSjThq13W8hGfJpYgaiVWxFgYScQknT0Zs%3Dreserved=0
> >
> > El mar., 21 ene. 2020 a las 17:40, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> >> Ok it looks like it my fault. I didn't catch up full instruction.
> Let me
> >> try again.
> >>
> >> wt., 21 sty 2020 o 17:29 Piotr Zarzycki 
> >> napisał(a):
> >>
> >> > Hi Carlos,
> >> >
> >> > When I'm running this [1] on my Mac distribution is not
> generated. :/
> >> > Whole SDK is being build successfully, but without distribution.
> I don't
> >> > have any errors.
> >> >
> >> > [1] mvn clean install -DskipTests -Drat.skip=true
> >> -Dgenerate.swf.swcs=true
> >> >
> -DdistributionTargetFolder=/Users/piotr/Downloads/royale/test_release
> >> >
> >> > Thanks,
> >> > Piotr
> >> >
> >> >
> >> > wt., 21 sty 2020 o 12:44 Carlos Rovira 
> >> > napisał(a):
> >> >
> >> >> Hi Antonis,
> >> >>
> >> >> all this does not affect FB, so don't worry about it. But we
> hope you
> >> try
> >> >> to migrate to some newer IDE in the future! ;)
> >> >>
> >> >> Carlos
> >> >>
> >> >>
> >> >>
> >> >> El mar., 21 ene. 2020 a las 12:26, Antonis Kalodimos (<
> >> >> antonis.kalodi...@gmail.com>) escribió:
> >> >>
> >> >> > This sounds good news for someone to be involved with royale.
> >> >> > Please i someone of you who know the requirements don't break
> the
> >> royale
> >> >> > ability to be used and in the flashbuilder. Even it is old is a
> >> >> standard i
> &g

Re: Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi,

Josh discover that there was an issue. If we have GOOG_HOME env var the
maven distribution worked right, but if you don't have, compilation fails.
I have it in my system while developing this. So I just fixed it some
minutes ago.

One thing: There's no maven artifact for the closure-library v20180910 (the
one used by ANT), next one is 0.0-20190213-2033d5d9, so we need to use that
for maven (or maybe I was too bad trying to find the corresponding maven
artifact, so if someone knows, please let me know!).

So, can we upgrade ANT to v20190213 too? From now on, we should check
versions exists for ANT and MAVEN artifacts.

@Piotr Zarzycki   let me know if you can get it
work with latest changes just done.

Thanks



El mar., 21 ene. 2020 a las 17:53, Carlos Rovira ()
escribió:

> Hi Piotr,
>
> yes, you're using an old command, maven was extremely simplified thanks to
> Chris Dutz contribution 1 or 2 months ago.
> 'generate.swf.swcs' does not exists. Check the instructions I put or go to
> the updated docs here [1]. I updated that page to have all the latest valid
> info.
>
> I'm planing with Chris, to work soon in more improvements:
>
> 1.- Make Maven distribution for js-only (just removing -option-with-swf
> that now is required)
> 2.- Try to have just one repo
> 3.- Simplify release process based on 2 (and yes having ANT into account)
>
> I will want to release every 1 to 2 month.
>
> [1]
> https://github.com/apache/royale-asjs/wiki/Build-Apache-Royale-with-Maven
>
> El mar., 21 ene. 2020 a las 17:40, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
>> Ok it looks like it my fault. I didn't catch up full instruction. Let me
>> try again.
>>
>> wt., 21 sty 2020 o 17:29 Piotr Zarzycki 
>> napisał(a):
>>
>> > Hi Carlos,
>> >
>> > When I'm running this [1] on my Mac distribution is not generated. :/
>> > Whole SDK is being build successfully, but without distribution. I don't
>> > have any errors.
>> >
>> > [1] mvn clean install -DskipTests -Drat.skip=true
>> -Dgenerate.swf.swcs=true
>> > -DdistributionTargetFolder=/Users/piotr/Downloads/royale/test_release
>> >
>> > Thanks,
>> > Piotr
>> >
>> >
>> > wt., 21 sty 2020 o 12:44 Carlos Rovira 
>> > napisał(a):
>> >
>> >> Hi Antonis,
>> >>
>> >> all this does not affect FB, so don't worry about it. But we hope you
>> try
>> >> to migrate to some newer IDE in the future! ;)
>> >>
>> >> Carlos
>> >>
>> >>
>> >>
>> >> El mar., 21 ene. 2020 a las 12:26, Antonis Kalodimos (<
>> >> antonis.kalodi...@gmail.com>) escribió:
>> >>
>> >> > This sounds good news for someone to be involved with royale.
>> >> > Please i someone of you who know the requirements don't break the
>> royale
>> >> > ability to be used and in the flashbuilder. Even it is old is a
>> >> standard i
>> >> > think for the old users that are searching where to jump for upgrade
>> >> their
>> >> > apps
>> >> >
>> >> > Thank you, continue the great job that you are doing.
>> >> >
>> >> > Στις Τρί, 21 Ιαν 2020 στις 1:15 μ.μ., ο/η Piotr Zarzycki <
>> >> > piotrzarzyck...@gmail.com> έγραψε:
>> >> >
>> >> > > Hi Carlos,
>> >> > >
>> >> > > Congrats! Could you provide on mailing list command to build
>> framework
>> >> > with
>> >> > > distribution, so users could know how to do that.
>> >> > >
>> >> > > Thanks,
>> >> > > Piotr
>> >> > >
>> >> > > wt., 21 sty 2020 o 12:12 Carlos Rovira 
>> >> > > napisał(a):
>> >> > >
>> >> > > > Hi,
>> >> > > >
>> >> > > > just fixed the maven distribution, and now it creates a valid SDK
>> >> that
>> >> > > can
>> >> > > > be used with IDEs. I think this is a long awaited fix.
>> >> > > >
>> >> > > > So with the new maven distribution the generated SDK allows you
>> to
>> >> get
>> >> > > > code intelligence and IDEs can find compilers and use it to get a
>> >> valid
>> >> > > > compilation. I tried only VSCode with Josh AS3 extension,
>> hope
>> >> > > others
>> >> > > >

Re: Routing (was Re: Spectrum Components)

2020-01-21 Thread Carlos Rovira
Hi Harbs,

this paste is the MainContent.mxml from TDJ with the changes I tried:

https://paste.apache.org/ez6aq

You can override whole file in your local and try to compile to see
results. I'm sure you'll get the right way to work for your code.

Thanks

Carlos



El mar., 21 ene. 2020 a las 19:31, Harbs () escribió:

> Oops. I thought this email went out yesterday…
>
> I have very little time today.
>
> Can you show me the code you tried?
>
> > On Jan 20, 2020, at 8:01 PM, Carlos Rovira 
> wrote:
> >
> > Hi Harbs,
> >
> > thanks for adding this. I think it will deserve some blog example, since
> is
> > something people requested in social media.
> > Can you please add it to Tour De Jewel? I tried but, I get two problems:
> > 1.- back/forth buttons are not working
> > 2.- previous button seems to register more than once the same state.
> > Thanks
> >
> > Carlos
> >
> >
> > El lun., 20 ene. 2020 a las 14:38, Harbs ()
> escribió:
> >
> >> I don’t remember how deep linking worked, but the concept is similar.
> >> Routing is the modern term.
> >>
> >> FWIW, here’s an article on routing strategies vis a vis url paths:
> >> https://codecraft.tv/courses/angular/routing/routing-strategies/ <
> >> https://codecraft.tv/courses/angular/routing/routing-strategies/>
> >>
> >>> On Jan 20, 2020, at 3:33 PM, Andrew Wetmore 
> wrote:
> >>>
> >>> Thanks for this. In what way is this different from deep linking in
> Flex,
> >>> apart from the name?
> >>>
> >>> On Mon, Jan 20, 2020 at 8:30 AM Harbs  >> harbs.li...@gmail.com>> wrote:
> >>>
> >>>> Not sure what you’re looking for. I tried to document the class as
> best
> >> as
> >>>> I could:
> >>>>
> >>>>
> >>
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> >> <
> >>
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> >>>
> >>>> <
> >>>>
> >>
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> >> <
> >>
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> >>>
> >>>>>
> >>>>
> >>>> * “Routing” uses the browser history APIs to allow forward and back
> >>>> navigation.
> >>>> * When the hash of a URL is changed, the router dispatches an event
> >>>> * The state of the strand component can be automatically synced to the
> >>>> Router routeState.state value.
> >>>> * The application can call either setState() to add a point to the
> >> browser
> >>>> history, or:
> >>>> * call renderState() to add a point and trigger a state change in the
> >> app
> >>>> (i.e. diapatch an event fro the browser)
> >>>>
> >>>> Helpful?
> >>>>
> >>>> Some JS frameworks let you declaratively declare routes for a router,
> >> that
> >>>> might be something worth looking into, but I was not sure what that
> >> would
> >>>> look like in Royale.
> >>>>
> >>>>> On Jan 20, 2020, at 3:22 PM, Andrew Wetmore 
> >> wrote:
> >>>>>
> >>>>> @harbs, would you have a chance to blurt out some text about
> "routing",
> >>>> and
> >>>>> especially how and where it differs from "deep linking" in Flex? We
> >> need
> >>>>> some documentation about this and I thought I knew where I was going
> to
> >>>> go
> >>>>> with it until I saw this as an example of routing.
> >>>>>
> >>>>> Does not have to be finished textbullet points and pointers would
> >> be
> >>>>> fine. I can then rework it for the help docs.
> >>>>>
> >>>>> Thanks!
> >>>>>
> >>>>> On Mon, Jan 20, 2020 at 8:09 AM Harbs  wrote:
> >>>>>
> >>>>>> It’s declared h

Re: Routing (was Re: Spectrum Components)

2020-01-21 Thread Carlos Rovira
Hi Harbs,

do you have time to add Router to TDJ?
Thanks

El lun., 20 ene. 2020 a las 19:01, Carlos Rovira ()
escribió:

> Hi Harbs,
>
> thanks for adding this. I think it will deserve some blog example, since
> is something people requested in social media.
> Can you please add it to Tour De Jewel? I tried but, I get two problems:
> 1.- back/forth buttons are not working
> 2.- previous button seems to register more than once the same state.
> Thanks
>
> Carlos
>
>
> El lun., 20 ene. 2020 a las 14:38, Harbs ()
> escribió:
>
>> I don’t remember how deep linking worked, but the concept is similar.
>> Routing is the modern term.
>>
>> FWIW, here’s an article on routing strategies vis a vis url paths:
>> https://codecraft.tv/courses/angular/routing/routing-strategies/ <
>> https://codecraft.tv/courses/angular/routing/routing-strategies/>
>>
>> > On Jan 20, 2020, at 3:33 PM, Andrew Wetmore 
>> wrote:
>> >
>> > Thanks for this. In what way is this different from deep linking in
>> Flex,
>> > apart from the name?
>> >
>> > On Mon, Jan 20, 2020 at 8:30 AM Harbs > harbs.li...@gmail.com>> wrote:
>> >
>> >> Not sure what you’re looking for. I tried to document the class as
>> best as
>> >> I could:
>> >>
>> >>
>> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
>> <
>> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
>> >
>> >> <
>> >>
>> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
>> <
>> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
>> >
>> >>>
>> >>
>> >> * “Routing” uses the browser history APIs to allow forward and back
>> >> navigation.
>> >> * When the hash of a URL is changed, the router dispatches an event
>> >> * The state of the strand component can be automatically synced to the
>> >> Router routeState.state value.
>> >> * The application can call either setState() to add a point to the
>> browser
>> >> history, or:
>> >> * call renderState() to add a point and trigger a state change in the
>> app
>> >> (i.e. diapatch an event fro the browser)
>> >>
>> >> Helpful?
>> >>
>> >> Some JS frameworks let you declaratively declare routes for a router,
>> that
>> >> might be something worth looking into, but I was not sure what that
>> would
>> >> look like in Royale.
>> >>
>> >>> On Jan 20, 2020, at 3:22 PM, Andrew Wetmore 
>> wrote:
>> >>>
>> >>> @harbs, would you have a chance to blurt out some text about
>> "routing",
>> >> and
>> >>> especially how and where it differs from "deep linking" in Flex? We
>> need
>> >>> some documentation about this and I thought I knew where I was going
>> to
>> >> go
>> >>> with it until I saw this as an example of routing.
>> >>>
>> >>> Does not have to be finished textbullet points and pointers would
>> be
>> >>> fine. I can then rework it for the help docs.
>> >>>
>> >>> Thanks!
>> >>>
>> >>> On Mon, Jan 20, 2020 at 8:09 AM Harbs  wrote:
>> >>>
>> >>>> It’s declared here:
>> >>>>
>> >>>>
>> >>
>> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/MainView.mxml#L213
>> >>>>
>> >>>> And used here:
>> >>>>
>> >>>>
>> >>
>> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/MainView.mxml#L131
>> >>>>
>> >>>> here:
>> >>>>
>> >>>>
>> >>
>> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/MainView.mxml#L167
>> >>>>
>> >>>> and here:
>> >>>>
>> >>>>
>> >>
>> https://githu

Re: Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi Piotr,

yes, you're using an old command, maven was extremely simplified thanks to
Chris Dutz contribution 1 or 2 months ago.
'generate.swf.swcs' does not exists. Check the instructions I put or go to
the updated docs here [1]. I updated that page to have all the latest valid
info.

I'm planing with Chris, to work soon in more improvements:

1.- Make Maven distribution for js-only (just removing -option-with-swf
that now is required)
2.- Try to have just one repo
3.- Simplify release process based on 2 (and yes having ANT into account)

I will want to release every 1 to 2 month.

[1]
https://github.com/apache/royale-asjs/wiki/Build-Apache-Royale-with-Maven

El mar., 21 ene. 2020 a las 17:40, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Ok it looks like it my fault. I didn't catch up full instruction. Let me
> try again.
>
> wt., 21 sty 2020 o 17:29 Piotr Zarzycki 
> napisał(a):
>
> > Hi Carlos,
> >
> > When I'm running this [1] on my Mac distribution is not generated. :/
> > Whole SDK is being build successfully, but without distribution. I don't
> > have any errors.
> >
> > [1] mvn clean install -DskipTests -Drat.skip=true
> -Dgenerate.swf.swcs=true
> > -DdistributionTargetFolder=/Users/piotr/Downloads/royale/test_release
> >
> > Thanks,
> > Piotr
> >
> >
> > wt., 21 sty 2020 o 12:44 Carlos Rovira 
> > napisał(a):
> >
> >> Hi Antonis,
> >>
> >> all this does not affect FB, so don't worry about it. But we hope you
> try
> >> to migrate to some newer IDE in the future! ;)
> >>
> >> Carlos
> >>
> >>
> >>
> >> El mar., 21 ene. 2020 a las 12:26, Antonis Kalodimos (<
> >> antonis.kalodi...@gmail.com>) escribió:
> >>
> >> > This sounds good news for someone to be involved with royale.
> >> > Please i someone of you who know the requirements don't break the
> royale
> >> > ability to be used and in the flashbuilder. Even it is old is a
> >> standard i
> >> > think for the old users that are searching where to jump for upgrade
> >> their
> >> > apps
> >> >
> >> > Thank you, continue the great job that you are doing.
> >> >
> >> > Στις Τρί, 21 Ιαν 2020 στις 1:15 μ.μ., ο/η Piotr Zarzycki <
> >> > piotrzarzyck...@gmail.com> έγραψε:
> >> >
> >> > > Hi Carlos,
> >> > >
> >> > > Congrats! Could you provide on mailing list command to build
> framework
> >> > with
> >> > > distribution, so users could know how to do that.
> >> > >
> >> > > Thanks,
> >> > > Piotr
> >> > >
> >> > > wt., 21 sty 2020 o 12:12 Carlos Rovira 
> >> > > napisał(a):
> >> > >
> >> > > > Hi,
> >> > > >
> >> > > > just fixed the maven distribution, and now it creates a valid SDK
> >> that
> >> > > can
> >> > > > be used with IDEs. I think this is a long awaited fix.
> >> > > >
> >> > > > So with the new maven distribution the generated SDK allows you to
> >> get
> >> > > > code intelligence and IDEs can find compilers and use it to get a
> >> valid
> >> > > > compilation. I tried only VSCode with Josh AS3 extension,
> hope
> >> > > others
> >> > > > using Moonshine can provide feedback.
> >> > > >
> >> > > > Additionally you get the normal maven way of build with "mvn
> >> install"
> >> > > that
> >> > > > will be more near to your deploy needs.
> >> > > >
> >> > > > So people using Maven does not need to use ANT anymore to
> generate a
> >> > > valid
> >> > > > SDK, and we get finally to have two independent ways of building
> >> > > separated
> >> > > > one from the other.
> >> > > >
> >> > > > I'll be doing some refining this days with classpaths since I left
> >> some
> >> > > > versions hardcoded that I want to remove to make it valid as we
> >> change
> >> > > > versions.
> >> > > >
> >> > > > I'll be upgrading maven docs to reflect this change.
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > Carlos Rovira
> >> > > > http://about.me/carlosrovira
> >> > > >
> >> > > >
> >> > >
> >> > > --
> >> > >
> >> > > Piotr Zarzycki
> >> > >
> >> > > Patreon: *https://www.patreon.com/piotrzarzycki
> >> > > <https://www.patreon.com/piotrzarzycki>*
> >> > >
> >> >
> >>
> >>
> >> --
> >> Carlos Rovira
> >> http://about.me/carlosrovira
> >>
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: [VSCode] Tour De Jewel assets are not copied

2020-01-21 Thread Carlos Rovira
Thanks Josh! That worked! :)

El mar., 21 ene. 2020 a las 16:39, Josh Tynjala ()
escribió:

> In asconfig.json, set copySourcePathAssets to true. Then, add
> resources/assets to the source-path compiler option.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Jan 21, 2020 at 6:24 AM Carlos Rovira 
> wrote:
>
> > Hi Josh,
> >
> > TDJ has in asconfigc.json configured "copySourcePathAssets": true
> >
> > I was expecting all files in "resources/assets" was copied to js-debug
> and
> > js-release, but I don't get anything but two files that comes from
> > JewelTheme library.
> >
> > In maven I need to add some maven code to copy it.
> > In VSCode I don't know how that is handled but I suppose we need
> something
> > to do that copy of files automatically.
> >
> > What can I do to solve this for compiling TDJ with VSCode?
> >
> > Thanks
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


[VSCode] Tour De Jewel assets are not copied

2020-01-21 Thread Carlos Rovira
Hi Josh,

TDJ has in asconfigc.json configured "copySourcePathAssets": true

I was expecting all files in "resources/assets" was copied to js-debug and
js-release, but I don't get anything but two files that comes from
JewelTheme library.

In maven I need to add some maven code to copy it.
In VSCode I don't know how that is handled but I suppose we need something
to do that copy of files automatically.

What can I do to solve this for compiling TDJ with VSCode?

Thanks

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi Antonis,

all this does not affect FB, so don't worry about it. But we hope you try
to migrate to some newer IDE in the future! ;)

Carlos



El mar., 21 ene. 2020 a las 12:26, Antonis Kalodimos (<
antonis.kalodi...@gmail.com>) escribió:

> This sounds good news for someone to be involved with royale.
> Please i someone of you who know the requirements don't break the royale
> ability to be used and in the flashbuilder. Even it is old is a standard i
> think for the old users that are searching where to jump for upgrade their
> apps
>
> Thank you, continue the great job that you are doing.
>
> Στις Τρί, 21 Ιαν 2020 στις 1:15 μ.μ., ο/η Piotr Zarzycki <
> piotrzarzyck...@gmail.com> έγραψε:
>
> > Hi Carlos,
> >
> > Congrats! Could you provide on mailing list command to build framework
> with
> > distribution, so users could know how to do that.
> >
> > Thanks,
> > Piotr
> >
> > wt., 21 sty 2020 o 12:12 Carlos Rovira 
> > napisał(a):
> >
> > > Hi,
> > >
> > > just fixed the maven distribution, and now it creates a valid SDK that
> > can
> > > be used with IDEs. I think this is a long awaited fix.
> > >
> > > So with the new maven distribution the generated SDK allows you to get
> > > code intelligence and IDEs can find compilers and use it to get a valid
> > > compilation. I tried only VSCode with Josh AS3 extension, hope
> > others
> > > using Moonshine can provide feedback.
> > >
> > > Additionally you get the normal maven way of build with "mvn install"
> > that
> > > will be more near to your deploy needs.
> > >
> > > So people using Maven does not need to use ANT anymore to generate a
> > valid
> > > SDK, and we get finally to have two independent ways of building
> > separated
> > > one from the other.
> > >
> > > I'll be doing some refining this days with classpaths since I left some
> > > versions hardcoded that I want to remove to make it valid as we change
> > > versions.
> > >
> > > I'll be upgrading maven docs to reflect this change.
> > >
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> > >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi Piotr, good idea :)

This is what we have in the wiki. Notice that you can use maven wrapper
(mvnw) if you does not have maven installed locally (it will handle all
foro you). This will build all with tests, examples and distribution SDK:

#!/bin/bashexport
FLASHPLAYER_DEBUGGER="/Users/christofer.dutz/Devtools/Adobe/Flash/FlashPlayer-32.0/Flash
Player.app/Contents/MacOS/Flash Player Debugger"cd royale-compiler
./mvnw installcd ../royale-typedefs
./mvnw installcd ../royale-asjs
./mvnw install -P
with-examples,with-distribution,with-ui-testsuite,option-with-swf
-Dwebdriver.gecko.driver=/Users/christofer.dutz/Downloads/geckodriver


TO BUILD JUST SDK
=

*distribution requires "option-with-swf"* (one thing to improve would be to
remove swf dependency to create a js-only sdk), so the minimum will be:

*mvn clean install -P with-distribution,option-with-swf
-DdistributionTargetFolder=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-sdk*

(notice that here I added a target sdk folder to create SDK in that folder
for convenience).

finally if you have maven updated and just want to create distribution you
can just do:

*cd /distribution*

mvn clean install
-DdistributionTargetFolder=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven

This will just execute the creation of the SDK.

HTH.

Carlos


El mar., 21 ene. 2020 a las 12:15, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Hi Carlos,
>
> Congrats! Could you provide on mailing list command to build framework
> with distribution, so users could know how to do that.
>
> Thanks,
> Piotr
>
> wt., 21 sty 2020 o 12:12 Carlos Rovira 
> napisał(a):
>
>> Hi,
>>
>> just fixed the maven distribution, and now it creates a valid SDK that
>> can be used with IDEs. I think this is a long awaited fix.
>>
>> So with the new maven distribution the generated SDK allows you to get
>> code intelligence and IDEs can find compilers and use it to get a valid
>> compilation. I tried only VSCode with Josh AS3 extension, hope others
>> using Moonshine can provide feedback.
>>
>> Additionally you get the normal maven way of build with "mvn install"
>> that will be more near to your deploy needs.
>>
>> So people using Maven does not need to use ANT anymore to generate a
>> valid SDK, and we get finally to have two independent ways of building
>> separated one from the other.
>>
>> I'll be doing some refining this days with classpaths since I left some
>> versions hardcoded that I want to remove to make it valid as we change
>> versions.
>>
>> I'll be upgrading maven docs to reflect this change.
>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Maven Distribution SDK fixed and working for IDEs

2020-01-21 Thread Carlos Rovira
Hi,

just fixed the maven distribution, and now it creates a valid SDK that can
be used with IDEs. I think this is a long awaited fix.

So with the new maven distribution the generated SDK allows you to get code
intelligence and IDEs can find compilers and use it to get a valid
compilation. I tried only VSCode with Josh AS3 extension, hope others
using Moonshine can provide feedback.

Additionally you get the normal maven way of build with "mvn install" that
will be more near to your deploy needs.

So people using Maven does not need to use ANT anymore to generate a valid
SDK, and we get finally to have two independent ways of building separated
one from the other.

I'll be doing some refining this days with classpaths since I left some
versions hardcoded that I want to remove to make it valid as we change
versions.

I'll be upgrading maven docs to reflect this change.



-- 
Carlos Rovira
http://about.me/carlosrovira


Re: [royale-asjs] branch develop updated: Added Router

2020-01-20 Thread Carlos Rovira
Hi Alex,

I think one of the problems is something I just get to know recently in
other discussion. With ANT all SWCs are available. With Maven you set
dependencies when you need it. I don't like how ANT manages it (don't know
if is something we set that way, or something ANT imposes). I think having
all libs available, will potentially generate various issues. I remember
put a list in other thread, but I'll put here what I remember:

1.- Having all classes available can make users and developers use
definitions that can entangle libraries unnecessarily if don't have special
care. Is easy to go fast and depend on something that a library makes
available for you instead of taking the time to use some interfaces or make
the code more smart to not use certain dependencies. Having all classes at
hand does not help on this. While having just the set of libraries that you
really required will ensure you use just the code you should use. In case
you can't will mean something must be refactored to offer the right
structures, libraries and definitions to the user.

2.- A usability thing (not as dangerous as point 1), is that you end having
in IDEs all the classes. That means you can have 7/8 Button classes, and
you probably only want just 1. If I work with Jewel, probably will want
just Jewel Button, and not having in code intelligence the rest (buttons
from basic, express, createjs, jQuery, mdl, etc...). It's a bit cumbersome
to go through all Button classes hitting CTRL+SPACE on and IDE. That can be
solved creating configs, but that's not an easy task, and a bit cumbersome
to do, and just the opposite to PAYG applied to how to configure a project.

We have other things like the CSS you commented or the extra processing of
classes that will never be needed, but maybe we're going a bit off topic
with this.
I think far beyond other ANT/MAVEN things, all build systems should put
available all libs to use, but the user should enable each one to avoid
potential problems and ensure codification is done in the proper way,
without mixing definitions that can pull from a tree or other ones not
wanted, enforcing PAYG.


Re: [royale-asjs] branch develop updated: Added Router

2020-01-20 Thread Carlos Rovira
tePart,document.title);
> >+_routeState.path = paths;
> >+_routeState.parameters = parseParameters(splitParts[1]);
> >+  }
> >+}
> >+private function parseParameters(query:String):Object
> >+{
> >+  var urlVars:Object;
> >+  if(query){
> >+var vars:Array = query.split("&");
> >+if(vars.length){
> >+  urlVars = {};
> >+}
> >+for (var i:int=0;i >+var pair:Array = vars[i].split("=");
> >+urlVars[pair[0]] = pair[1] == undefined ? undefined
> : decodeURIComponent(pair[1]);
> >+}
> >+  }
> >+  return urlVars;
> >+}
> >+
> >+private function buildHash():String
> >+{
> >+  var hash:String = "#!";
> >+  if(_routeState.path && routeState.path.length){
> >+hash += (_routeState.path.join("/") + "/");
> >+  }
> >+  if(_routeState.state){
> >+hash += _routeState.state;
> >+  }
> >+  hash+= buildParameterString();
> >+  return hash;
> >+}
> >+private function buildParameterString():String{
> >+  var retVal:String = "";
> >+  if(_routeState.parameters){
> >+retVal += "?";
> >+for(var x:String in _routeState.parameters){
> >+  retVal += x;
> >+  if(_routeState.parameters[x] != undefined){
> >+retVal += "=" +
> encodeURIComponent(_routeState.parameters[x]);
> >+retVal += "&";
> >+  }
> >+}
> >+//remove trailing &
> >+retVal = retVal.slice(0, -1);
> >+  }
> >+
> >+  return retVal;
> >+}
> >+
> >+private var _routeState:RouteState;
> >+
> >+public function get routeState():RouteState
> >+{
> >+  if(!_routeState){
> >+_routeState = new RouteState();
> >+  }
> >+  return _routeState;
> >+}
> >+
> >+public function set routeState(value:RouteState):void
> >+{
> >+  _routeState = value;
> >+}
> >+/**
> >+ * Commits the current state to the browsing history
> >+ *  @langversion 3.0
> >+ *  @playerversion Flash 10.2
> >+ *  @playerversion AIR 2.6
> >+ *  @productversion Royale 0.9.7
> >+ */
> >+public function setState():void
> >+{
> >+  COMPILE::JS
> >+  {
> >+
> window.history.pushState({"title":_routeState.title},_routeState.title,buildHash());
> >+if(_routeState.title)
> >+{
> >+  document.title = _routeState.title;
> >+}
> >+  }
> >+}
> >+/**
> >+ * Same as setState, but also notifies of the state change
> >+ *  @langversion 3.0
> >+ *  @playerversion Flash 10.2
> >+ *  @playerversion AIR 2.6
> >+ *  @productversion Royale 0.9.7
> >+ */
> >+public function renderState():void
> >+{
> >+  setState();
> >+  if(syncState)
> >+  {
> >+assert(_strand is IStatesObject,"syncState can only be
> used on IStatesObjects");
> >+(_strand as IStatesObject).currentState =
> _routeState.state;
> >+  }
> >+  dispatchEvent(new Event("stateChange"));
> >+}
> >+private function setTitle():void
> >+{
> >+  COMPILE::JS
> >+  {
> >+if(window.history.state){
> >+  document.title = window.history.state["title"];
> >+} else {
> >+  document.title = initialTitle;
> >+}
> >+  }
> >+}
> >+/**
> >+ * Goes forward in the history
> >+ *  @langversion 3.0
> >+ *  @playerversion Flash 10.2
> >+ *  @playerversion AIR 2.6
> >+ *  @productversion Royale 0.9.7
> >+ */
> >+public function forward():void{
> >+  COMPILE::JS
> >+  {
> >+ window.history.forward();
> >+ setTitle();
> >+ parseHash();
> >+  }
> >+}
> >+/**
> >+ * Goes backwards in the history
> >+ *  @langversion 3.0
> >+ *  @playerversion Flash 10.2
> >+ *  @playerversion AIR 2.6
> >+ *  @productversion Royale 0.9.7
> >+ */
> >+public function back():void{
> >+  COMPILE::JS
> >+  {
> >+ window.history.back();
> >+ setTitle();
> >+ parseHash();
> >+  }
> >+}
> >+
> >+/**
> >+ * Moved the specified number of steps (forward or
> backwards) in the history
> >+ * calling it with 0 or no value will reload the page.
> >+ *  @langversion 3.0
> >+ *  @playerversion Flash 10.2
> >+ *  @playerversion AIR 2.6
> >+ *  @productversion Royale 0.9.7
> >+ */
> >+public function go(steps:int=0):void{
> >+  COMPILE::JS
> >+  {
> >+ window.history.go(steps);
> >+ parseHash();
> >+  }
> >+}
> >+
> >+  }
> >+}
> >\ No newline at end of file
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: ms.messaging.Consumer

2020-01-20 Thread Carlos Rovira
Hi Yishay,

our first migrated application (in production since April), uses Consumer.
Greg made that work as part of the RemoteObject/AMF changes that was
pending at that time. So I think is safe to work with. In case something is
not working, you should contact Greg since he knows that part very well.




El lun., 20 ene. 2020 a las 18:38, Yishay Weiss ()
escribió:

> Hi,
>
> We are evaluating some client needs and have run across code using
> mx.messaging.Consumer. Has anyone got this working? Are there examples?
>
> Thanks.
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Routing (was Re: Spectrum Components)

2020-01-20 Thread Carlos Rovira
Hi Harbs,

thanks for adding this. I think it will deserve some blog example, since is
something people requested in social media.
Can you please add it to Tour De Jewel? I tried but, I get two problems:
1.- back/forth buttons are not working
2.- previous button seems to register more than once the same state.
Thanks

Carlos


El lun., 20 ene. 2020 a las 14:38, Harbs () escribió:

> I don’t remember how deep linking worked, but the concept is similar.
> Routing is the modern term.
>
> FWIW, here’s an article on routing strategies vis a vis url paths:
> https://codecraft.tv/courses/angular/routing/routing-strategies/ <
> https://codecraft.tv/courses/angular/routing/routing-strategies/>
>
> > On Jan 20, 2020, at 3:33 PM, Andrew Wetmore  wrote:
> >
> > Thanks for this. In what way is this different from deep linking in Flex,
> > apart from the name?
> >
> > On Mon, Jan 20, 2020 at 8:30 AM Harbs  harbs.li...@gmail.com>> wrote:
> >
> >> Not sure what you’re looking for. I tried to document the class as best
> as
> >> I could:
> >>
> >>
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> <
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> >
> >> <
> >>
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> <
> https://github.com/apache/royale-asjs/blob/6cbc5559bcc99bf2ceb3e033747ca3680b3b0d91/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/Router.as
> >
> >>>
> >>
> >> * “Routing” uses the browser history APIs to allow forward and back
> >> navigation.
> >> * When the hash of a URL is changed, the router dispatches an event
> >> * The state of the strand component can be automatically synced to the
> >> Router routeState.state value.
> >> * The application can call either setState() to add a point to the
> browser
> >> history, or:
> >> * call renderState() to add a point and trigger a state change in the
> app
> >> (i.e. diapatch an event fro the browser)
> >>
> >> Helpful?
> >>
> >> Some JS frameworks let you declaratively declare routes for a router,
> that
> >> might be something worth looking into, but I was not sure what that
> would
> >> look like in Royale.
> >>
> >>> On Jan 20, 2020, at 3:22 PM, Andrew Wetmore 
> wrote:
> >>>
> >>> @harbs, would you have a chance to blurt out some text about "routing",
> >> and
> >>> especially how and where it differs from "deep linking" in Flex? We
> need
> >>> some documentation about this and I thought I knew where I was going to
> >> go
> >>> with it until I saw this as an example of routing.
> >>>
> >>> Does not have to be finished textbullet points and pointers would
> be
> >>> fine. I can then rework it for the help docs.
> >>>
> >>> Thanks!
> >>>
> >>> On Mon, Jan 20, 2020 at 8:09 AM Harbs  wrote:
> >>>
> >>>> It’s declared here:
> >>>>
> >>>>
> >>
> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/MainView.mxml#L213
> >>>>
> >>>> And used here:
> >>>>
> >>>>
> >>
> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/MainView.mxml#L131
> >>>>
> >>>> here:
> >>>>
> >>>>
> >>
> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/view/MainView.mxml#L167
> >>>>
> >>>> and here:
> >>>>
> >>>>
> >>
> https://github.com/unhurdle/spectrum-royale/blob/master/SpectrumBrowser/src/models/Theme.as#L20
> >>>>
> >>>>> On Jan 20, 2020, at 3:03 PM, Harbs  wrote:
> >>>>>
> >>>>> I created a Router bead which I’m now using in the demo app.
> >>>>>
> >>>>> Here’s two very different states:
> >>>>>
> >>>>> https://unhurdle.github.io/spectrum-royale/#!combobox?colorstop=dark
> >>>>> https://unhurdle.github.io/spectrum-royale/#!asset_list
> &g

Re: Spectrum Components

2020-01-20 Thread Carlos Rovira
Hi Harbs,

about routing, I expect urls will be more like permalinks without the need
of !# chars. Is this possible?

This:
https://unhurdle.github.io/spectrum-royale/bar_loader

instead of this:
https://unhurdle.github.io/spectrum-royale/#!bar_loader

And have it as a library "Routing" that we could use.
As any other framework out there, is something that they support with some
API, and I think is one of the things we already don't offer.
Would be great to have for 1.0, since is something people will want very
soon in their tests for sure.

What do you think?

Carlos



El lun., 20 ene. 2020 a las 7:31, Harbs () escribió:

> Good catch. Thanks!
>
> > On Jan 20, 2020, at 1:52 AM, Andrew Wetmore  wrote:
> >
> > Small thing, but I think the code example for "Avatar" is reversed,
> > implying that the first of the two images is disabled rather than the
> > second.
> >
> > On Sun, Jan 19, 2020 at 6:42 PM Harbs  wrote:
> >
> >> FYI, I just added routing to the demo app. It was pretty painless,
> >> although I’d like to make it even simpler…
> >>
> >> https://unhurdle.github.io/spectrum-royale/#!bar_loader <
> >> https://unhurdle.github.io/spectrum-royale/#!bar_loader>
> >>
> >>
> >>> On Jan 15, 2020, at 7:08 PM, Harbs  wrote:
> >>>
> >>> FYI, I just updated the project readme with a link to the demo and some
> >> markup to show what a full Royale app looks like:
> >>> https://github.com/unhurdle/spectrum-royale <
> >> https://github.com/unhurdle/spectrum-royale>
> >>>
> >>>
> >>>> On Jan 13, 2020, at 1:30 AM, Harbs  >> harbs.li...@gmail.com>> wrote:
> >>>>
> >>>> FYI, I’ve been working on filling out a demo the Spectrum Royale
> >> components:
> >>>> https://unhurdle.github.io/spectrum-royale/ <
> >> https://unhurdle.github.io/spectrum-royale/>
> >>>>
> >>>> I’m going to be filling them out over the next week…
> >>>>
> >>>> Harbs
> >>>
> >>
> >>
> >
> > --
> > Andrew Wetmore
> >
> > http://cottage14.blogspot.com/
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Weird exception with using [Bindable] on top of VO properties and class itself

2020-01-19 Thread Carlos Rovira
Hi Piotr,

could you identify what commit in compiler is the one that starts the
problem? that will help to identify what modification is the one that need
to be revised

thanks

El dom., 19 ene. 2020 a las 15:46, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Hi Guys,
>
> We have updated SDK to the latest one and after building our application we
> are getting some weird exception. I have reported more about that in
> following comments along with some small part of the code from our app. [1]
> Any help or thoughts are welcome.
>
> [1]
> https://github.com/apache/royale-asjs/issues/639#issuecomment-576011588
>
>
> Thanks,
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: SWF Graphics api emulation -WIP

2020-01-19 Thread Carlos Rovira
javascript and flash. Note that BitmapData api is not yet fleshed out
> very
> > much at all.
> > 3. You can (at least on Chome and some other browsers) send the currently
> > executed code to the javascript console. You can then copy, paste, and
> > change some values before pressing enter to execute the same code with
> > different settings. It will then run that code in both javascript and
> > flash.
> > 3. You can open the javascript console and do a bunch of arbitrary stuff.
> > When you are doing that, simply imagine you already have imports for
> > Matrix, BitmapData, Rectangle, and that you can simple type
> > 'graphics.{myGraphicsMethodHere}' for the target graphics context.
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Powered-by Royale logo?

2020-01-18 Thread Carlos Rovira
Hi Andrew,

I can do that, since I designed it. But since we're still with the 1.0
release in mind, I could do it some months in the future. Don't think is
priority right now since I don't see people using it this days.

El sáb., 18 ene. 2020 a las 12:50, Andrew Wetmore ()
escribió:

> We have a pretty nice logo to start with, so it may be possible  to put a
> powered-by version together without too much grief. I will mock up a couple
> if nobody else gets to it first..
>
> On Sat, Jan 18, 2020 at 3:25 AM Alex Harui 
> wrote:
>
> > Back when the "Powered By" logos came out, the Flex community feedback
> was
> > strongly against the graphic design of the logo.  I petitioned the ASF
> for
> > permission to modify the logo and was denied, so I did not pursue
> adoption
> > of a "Powered By" logo by the Flex community.   For those reasons, I did
> > not pursue adoption of a "Powered By" logo for Royale either.
> >
> > If someone wants to drive the adoption of the "Powered By" logo for
> Royale
> > I would probably support it.  I'd be ok with a logo that may not be great
> > from a graphic design perspective.
> >
> > -Alex
> >
> > On 1/17/20, 12:25 PM, "Andrew Wetmore"  wrote:
> >
> > I am editing the ASF guidelines about branding and trademarks, and
> > noted
> > this: "Projects are encouraged to create a variation of their main
> > logo as
> > a "Powered By..." or " *Project* Inside" logo. This logo may be used
> by
> > third parties to denote that they build products or services using
> the
> > associated product. "
> >
> > Do we have such a logo for Apache Royale that people can display in
> > their
> > applications?
> >
> > Andrew
> >
> > --
> > Andrew Wetmore
> >
> >
> >
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcottage14.blogspot.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C58e534818c544cb04c2b08d79b8b6f18%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637148895476946717sdata=qvNMdq%2B5IAjopjCGrIBc0cM5kR8jwKuDS37d9KEhxU8%3Dreserved=0
> >
> >
> >
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Build failed in Jenkins: Royale_ASDoc_Example #500

2020-01-17 Thread Carlos Rovira
roke;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\LineChart.as(180):
> col: 22 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.stroke = stroke;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\LineChart.as(181):
> col: 22 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.lineSegmentRenderer = new
> ClassFactory(LineRenderer);
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\PlotChart.as(158):
> col: 22 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.fill = fill;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\PlotChart.as(159):
> col: 22 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.itemRenderer = skin;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\PlotChart.as(160):
> col: 22 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.radius = radius
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(213):
> col: 6 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.fill =  defaultFill;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(214):
> col: 6 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.areaFill =
> defaultFill;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(215):
> col: 6 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.areaStroke =
> emptyStroke;
>  [java] ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\charts\styles\HaloDefaults.as(216):
> col: 6 Encountered this keyword within closure. Value of this will not be
> the same as enclosing scope.
>  [java]
>  [java] this.lineStroke =
> defaultStroke;
>  [java]         ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\skins\spark\FormItemSkin.mxml(169):
> col: 30 Data binding will not be able to detect assignments to 'x'.
>  [java]
>  [java]   [java]  ^
>  [java]
>  [java]
> C:\jenkins\workspace\royale-asjs\frameworks\projects\SparkRoyale\src\main\royale\spark\skins\spark\FormItemSkin.mxml(169):
> col: 83 Data binding will not be able to detect assignments to 'y'.
>  [java]
>  [java]   [java]
>^
>  [java]
>  [java] 78.3401256 seconds
>  [java] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xms384m
> -Xmx2g
>  [java] Java Result: 3
>
> BUILD FAILED
> <
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/Royale_ASDoc_Example/500/artifact/examples/royale/ASDoc/build.xml>:50:
> The following error occurred while executing this line:
> <
> http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/Royale_ASDoc_Example/500/artifact/examples/royale/ASDoc/build.xml>:156:
> condition satisfied
>
> Total time: 5 minutes 54 seconds
> Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xms384m -Xmx2g
> Build step 'Invoke Ant' marked build as failure
> Skipped archiving because build is not successful
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: To Do MVC

2020-01-17 Thread Carlos Rovira
Hi,

I was thinking on make a TODO List example with Jewel and Crux soon for our
blog examples.
Do you think make sense for todomvc website?

El vie., 17 ene. 2020 a las 14:58, Harbs () escribió:

> It would probably be a good idea to create a Royale version of ToDo MVC to
> add to their site:
> http://todomvc.com/
>
> Any takers? ;-)
>
> Harbs



-- 
Carlos Rovira
http://about.me/carlosrovira


hasOwnProperty() not working ( was Re: "has" vs "is": sharing code, swapping out subsystems, and more...)

2020-01-17 Thread Carlos Rovira
Hi Yishay,

can you share some code declaration example so I can try something similar?

I think the code I tried was this (can ensure 100%): if(!(_strand as
Object).hasOwnProperty("datagrid"))
for a Strand that is a normal Jewel List (that is not IDataGridColumnList,
the only one that supports "datagrid" property) the if block was executed.
So the if block was executing in all cases.
So I figured this was not supported right as in Flash or was a bug, although
if we are trying to support AS3 right that should be working fine.

Thanks

Carlos



El jue., 16 ene. 2020 a las 19:10, Yishay Weiss ()
escribió:

> We do use [1]  hasOwnProperty(). What went wrong? Maybe this needs to be
> in a different thread though, because the original thread is more about a
> getBeadByType() search.
>
> [1]
> https://github.com/apache/royale-asjs/blob/781c2ed44f7f64110fd011b617949c1faae5f158/frameworks/projects/MXRoyale/src/main/royale/mx/charts/renderers/CircleItemRenderer.as#L141
>
> From: Carlos Rovira<mailto:carlosrov...@apache.org>
> Sent: Thursday, January 16, 2020 11:50 AM
> To: dev@royale.apache.org<mailto:dev@royale.apache.org>
> Subject: Re: "has" vs "is": sharing code, swapping out subsystems, and
> more...
>
> Hi,
>
> recently I want to do a "has" instead of "is", but I couldn't.
> I'm not talking about at "bead" level, just something like we use to do in
> Flash (hasOwnProperty)
>
> Taking the code in [1]. I'd like to change this
>
> if(!(_strand is IDataGridColumnList))
>
> for something like this
>
> if(_strand.hasOwnProperty("datagrid"))
>
> in order to avoid check against the IDataGridColumnList interface, that
> users using List but not using DataGrid, will not need to compile in his
> apps (adding all that datagrid code burden)
>
>
> [1]
>
> https://github.com/apache/royale-asjs/blob/56dbe7a33e66f104a882654ce00c7a1074296725/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddListItemRendererForArrayListData.as#L154
>
> --
Carlos Rovira
http://about.me/carlosrovira


Re: "has" vs "is": sharing code, swapping out subsystems, and more...

2020-01-16 Thread Carlos Rovira
Hi,

recently I want to do a "has" instead of "is", but I couldn't.
I'm not talking about at "bead" level, just something like we use to do in
Flash (hasOwnProperty)

Taking the code in [1]. I'd like to change this

if(!(_strand is IDataGridColumnList))

for something like this

if(_strand.hasOwnProperty("datagrid"))

in order to avoid check against the IDataGridColumnList interface, that
users using List but not using DataGrid, will not need to compile in his
apps (adding all that datagrid code burden)


[1]
https://github.com/apache/royale-asjs/blob/56dbe7a33e66f104a882654ce00c7a1074296725/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddListItemRendererForArrayListData.as#L154


El jue., 16 ene. 2020 a las 7:44, Alex Harui ()
escribió:

> You are welcome to try and see how many cache hits it gets.  I think in
> renderers, we ask once per renderer.  I'm not sure there is a faster way to
> do the first lookup of "is", but for "has" we could change the lookup and
> save time.
>
> On 1/15/20, 10:38 PM, "Greg Dove"  wrote:
>
> For the  'something is ISomeInterface'
> I had wondered in the past if these types of lookups could be
> incrementally
> cached on the 'is' target (after first lookup), that might make sense
> for
> interfaces, which are the deepest checks I think?
> caching result (could optionally create the Map)
> ISomeInterface['implMap'].set(something.constructor, isResult )
>
> then earlier in the interface checks, it could do something like:
>  if (ISomeInterface['implMap']  &&
> ISomeInterface['implMap'].has(something.constructor) ) return
> ISomeInterface['implMap'].get(something.constructor)
>
> I realize its extra code, but it should be quite a bit faster over
> time I
> think.
>
> On Thu, Jan 16, 2020 at 7:20 PM Alex Harui 
> wrote:
>
> > Hi,
> >
> > Several different threads have brought up issues with sharing code
> between
> > component sets.  Other threads have offered different and clever
> ways to
> > do various things like how MXML is applied to a component.
> Meanwhile, over
> > in MX emulation, I was starting to copy some code from Basic to
> MXRoyale to
> > get the various MX components to be valid item renderers.  MXRoyale
> is
> > using Basic's item renderer architecture which is better
> encapsulated:  the
> > renderer draws its hovered and selected state.  In Flex, the List
> draws
> > over the renderer, which makes it hard to customize the way the
> renderer
> > will look when hovered and selected.
> >
> > It finally occurred to me that one of the reasons we end up copying
> code
> > is because we are still using too many "is" checks instead of "has"
> > checks.  I'm not even sure we have any "has" checks in the Royale
> > framework.  I was afraid of the overhead of a "has" check, but I'm
> starting
> > to change my mind because:
> >
> > 1) The "is" check actually runs a fair amount of code, especially for
> > (comp is ISomeInterface)
> > 2) The length of bead arrays don't seem too long.
> >
> > A "has" check calls getBeadByType(ISomeInterface), so it actually
> will run
> > the (bead is ISomeInterface) on potentially the entire strand
> array/vector,
> > although we could speed that up by annotating beads or keeping track
> of
> > what is on the strand.  But the code sharing/reuse potential of this
> > pattern seems significant to me.
> >
> > For example, it could change how hard it is to make a component
> usable as
> > a top tag in MXML.  Instead of the component having to implement
> certain
> > methods, the component could have a bead installed and the
> > MXMLDataInterpreter could talk to that bead instead of the component.
> >
> > In the case of the item renderers, instead of testing if the
> renderer "is"
> > ISelectableLIstItemRenderer, it could ask if the created widget
> "has" an
> > ISelectableLIstItemRenderer bead and the logic in that bead can be
> reused
> > in both Basic and MXRoyale without being copied.
> >
> > Some code, like Container overrides of addElement probably can't be
> > refactored into a "has".  But I wonder how many other things could.
> I'm
> > not sure I would move everything that could be moved into a shared
> bead.
> > We'd have to think about the overhead on small components and apps.
> But
> > for MXML support and Item Renderer support, it seems to make sense.
> >
> > Anyway, I will look into refactoring the item renderer code in a
> few days
> > unless feedback indicates otherwise.  Bugs like #676 and #681
> inspired this
> > post.
> >
> > Of course, I could be wrong...
> > -Alex
> >
> >
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Fixing Maven Distribution

2020-01-16 Thread Carlos Rovira
Hi Piotr,

thanks. I open TDJ in VSCode and build with Run Task > "build with
asconfigc"

This outputs:


> Executing task: asconfigc
--sdk=/Users/carlosrovira/Dev/Royale/Source/royale-asjs <

Configuration options in asconfig.json require Apache Royale. Path to SDK
is not valid: /Users/carlosrovira/Dev/Royale/Source/royale-asjs
El proceso del terminal finalizó con el código de salida: 1

Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo.


But my maven sdk is in

{
"as3mxml.sdk.framework":
"/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven"
}

(this is my configuration from .vscode/settings.json)

So maybe could be an IDE issue? seems like VSCode is not taking right SDK
from settings.xml, and don't know where is getting the old path (
--sdk=/Users/carlosrovira/Dev/Royale/Source/royale-asjs )

Maybe Josh could give some light here.

Thanks

Carlos


El jue., 16 ene. 2020 a las 7:23, Piotr Zarzycki ()
escribió:

> Hi Carlos,
>
> I was talking about most common user scenario, where user open the project
> and hit Build. - Project is being build using SDK without Maven or Ant
> stuff. In order to test what I'm talking about:
>
> Open TourDeJewel (using asconfig.json which is part of the example - not
> your custom Maven oriented etc.) and choose Terminal -> Run Task... VSCode
> behind the stage run in console command which is building your project,
> based on instructions from asconfig.json. - I bet it will fail with SDK
> prepared with Maven.
>
> Thanks,
> Piotr
>
>
> śr., 15 sty 2020 o 23:50 Carlos Rovira 
> napisał(a):
>
> > Hi Piotr,
> >
> > Finally I get some time to get over this issue.
> > I was trying to see what we need to fix maven distribution.
> > I run
> >
> > mvn install -P option-with-swf,with-distribution
> >
> > I get royale-asjs/distribution/target/...
> >
> > and inside I have the Royale Maven SDK generated.
> >
> > Then I copied to my SDKs folder and unpacked it, and point my IDE to it.
> >
> > As you reported recently, I have code intelligence working. So it seems
> the
> > SDK is well formed
> >
> > At this point, since my workflow is "maven driven". I have all ok, since
> my
> > IDE build command run "mvn install", and the I click my button for
> running
> > in a browser.
> > So far so good :)
> >
> > I remember you said the SDK was not valid since it was not able to run
> from
> > IDE. I'm trying to understand what's the problem. Can you elaborate over
> > that?
> >
> > Thanks
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: empty class names

2020-01-16 Thread Carlos Rovira
For me is ok to change to have just one way. I think it will be beneficial
too. Taking some code like the one I posted, what's the proposal to get the
same?
Some example code to showcase would be the best to understand

El jue., 16 ene. 2020 a las 5:38, Alex Harui ()
escribió:

>
>
> On 1/15/20, 2:20 PM, "Carlos Rovira"  wrote:
>
> We're already using UIBase APIs in HTML elements. Example is used in
> all
> screens in Tour De Jewel check this link [1], for an example with Pre
> tag.
>
> I understand that's how it is currently coded.  I believe we are
> discussing whether that is right or not.  I'm now unclear on the API goals
> for the HTML components.  "usually" it is not advised to have two ways to
> do some task via the API.
>
> -Alex
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Fixing Maven Distribution

2020-01-15 Thread Carlos Rovira
Hi Piotr,

Finally I get some time to get over this issue.
I was trying to see what we need to fix maven distribution.
I run

mvn install -P option-with-swf,with-distribution

I get royale-asjs/distribution/target/...

and inside I have the Royale Maven SDK generated.

Then I copied to my SDKs folder and unpacked it, and point my IDE to it.

As you reported recently, I have code intelligence working. So it seems the
SDK is well formed

At this point, since my workflow is "maven driven". I have all ok, since my
IDE build command run "mvn install", and the I click my button for running
in a browser.
So far so good :)

I remember you said the SDK was not valid since it was not able to run from
IDE. I'm trying to understand what's the problem. Can you elaborate over
that?

Thanks


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: empty class names

2020-01-15 Thread Carlos Rovira
We're already using UIBase APIs in HTML elements. Example is used in all
screens in Tour De Jewel check this link [1], for an example with Pre tag.

[1]
https://github.com/apache/royale-asjs/blob/bcffaeea1d28347b554c2f5dc723dffc28bf6fce/examples/royale/TourDeJewel/src/main/royale/components/ExampleAndSourceCodeTabbedSectionContent.as#L102

El mié., 15 ene. 2020 a las 20:20, Alex Harui ()
escribió:

>
>
> On 1/15/20, 10:47 AM, "Harbs"  wrote:
>
> If that’s the case, the HTML element components need a new base class.
>
> Pretty much the entire HTML component set does not use beads and
> doesn’t require classes. Are you saying they shouldn’t be based on UIBase?
>
> Yes, that makes sense to put them on some other base.  What else from
> UIBase do they really need?  I'll bet most of the APIs are not used or
> should be pass-through like "width" unless you think they should be some
> sort of hybrid.  They don't need typenames, explicitWidth/Height, or
> probably even addedToParent().
>
> Would be a good way to find out where we assume UIBase and not IUIBase.
>
> -Alex
>
> > On Jan 15, 2020, at 7:17 PM, Alex Harui 
> wrote:
> >
> > I would argue it is a bug for any subclass of UIBase to not have a
> class.
> >
> > "All" UIBase subclasses should be comprised of beads, and the beads
> should have defaults overridable in the CSS.  So, IMO, if you want to add a
> debug-time check for no specified typenames, that's fine, but we shouldn't
> be checking in release mode.
> >
> > Of course, I could be wrong...
> > -Alex
> >
> > On 1/15/20, 2:20 AM, "Harbs"  wrote:
> >
> >Currently when an element is added to a parent, the following is
> called:
> >
> >setClassName(computeFinalClassNames());
> >
> >Because there’s no check there to determine if a class name was
> actually set, you can end up with elements with empty class names like so:
> , .
> >
> >While this has no visual effect, it does clutter up the dom
> markup in the browser (and might have a non-zero effect on performance —
> although this is likely minuscule).
> >
> >I’d like to get rid of the empty assignments. I can either do
> that in UIBase, or in the HTML package for those classes.
> >
> >My preference is to add it to UIBase —  both because I think it
> belongs there and because it’s going to be very messy adding it to
> subclasses. The code is in the middle of addedToParent.
> >
> >Thoughts?
> >Harbs
> >
>
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: [royale-asjs] branch develop updated: Reversed logic on number lookup in AllCSSValuesImpl

2020-01-15 Thread Carlos Rovira
engthUnit;
> > +return value;
> > +}
> > +
> > +
> > }
> > }
> > diff --git
> a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
> b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
> > index c2221c1..5c5273b 100644
> > ---
> a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
> > +++
> b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/SimpleCSSValuesImpl.as
> > @@ -748,10 +748,7 @@ package org.apache.royale.core
> >   if (typeof(value) == 'function')
> continue;
> >   cssString += p + ": ";
> >   if (typeof(value) == 'number') {
> > - if (colorStyles[p])
> > - value = CSSUtils.attributeFromColor(value
> as uint);
> > - else
> > - value = value.toString() + 'px';
> > +value = processNumberStyle(p,value);
> >   }
> >   else if (p == 'backgroundImage') {
> >   if (p.indexOf('url') != 0)
> > @@ -764,6 +761,14 @@ package org.apache.royale.core
> >   ss.insertRule(cssString,
> ss.cssRules.length);
> >   }
> > }
> > +COMPILE::JS
> > +protected function processNumberStyle(prop:String,value:*):*{
> > +if (colorStyles[prop])
> > +value = CSSUtils.attributeFromColor(value);
> > +else if (numericStyles[prop])
> > +return value;
> > +return value + 'px';
> > +}
> >
> >   COMPILE::JS
> >   private var ss:CSSStyleSheet;
> > @@ -871,12 +876,7 @@ package org.apache.royale.core
> > if (value === undefined)
> > continue;
> > if (typeof(value) == 'number') {
> > -if (colorStyles[p])
> > -value = CSSUtils.attributeFromColor(value);
> > -else if (numericStyles[p])
> > -value = value.toString();
> > -else
> > -value = value.toString() + 'px';
> > +value = processNumberStyle(p,value);
> > }
> > else if (p == 'backgroundImage' && value.indexOf('url')
> != 0) {
> > value = 'url(' + value + ')';
> >
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: empty class names

2020-01-15 Thread Carlos Rovira
I'm ok to do that, since I think having a clean DOM is very important and
helps at a later time when trying to debug or fix issues.
That came at a cost of a check, for sure others can argument about this is
not PAYG, but my perception is that we should apply PAYG intelligently and
not just 100% of cases without think where it can fit or not depending on
other necessities and points of view. IOW, this makes us be smarter in how
we apply principles to see all grey tones, in opposite to try to go just
Black or White.

Thanks



El mié., 15 ene. 2020 a las 11:20, Harbs () escribió:

> Currently when an element is added to a parent, the following is called:
>
> setClassName(computeFinalClassNames());
>
> Because there’s no check there to determine if a class name was actually
> set, you can end up with elements with empty class names like so:  class="">, .
>
> While this has no visual effect, it does clutter up the dom markup in the
> browser (and might have a non-zero effect on performance —  although this
> is likely minuscule).
>
> I’d like to get rid of the empty assignments. I can either do that in
> UIBase, or in the HTML package for those classes.
>
> My preference is to add it to UIBase —  both because I think it belongs
> there and because it’s going to be very messy adding it to subclasses. The
> code is in the middle of addedToParent.
>
> Thoughts?
> Harbs



-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Trying to make the daily build with maven, but is broken

2020-01-14 Thread Carlos Rovira
Hi,
The problem is that "img" now is not allowed in html:Div
some of the latest changes make it invalid.
@Harbs I commented the two images in RoyaleSite.
Hope you can take a look to fix it and restore that tow images back

Thanks


El mar., 14 ene. 2020 a las 8:21, Carlos Rovira ()
escribió:

> Hi Harbs,
>
> some of the latest changes makes build brake. Can you take. a look?:
>
> Loading configuration:
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/RoyaleSite/target/compile-swf-config.xml
>
>
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml(68):
> col: 21 Error: This attribute is unexpected. It will be ignored.
>
>
> http://royale.codeoscopic.com/wp-content/uploads/2017/10/apache-royale-logo-footer-circle-grey.svg"/>Apache
> Royale™ is a highly productive open source application technology for
> building expressive frontend applications that outputs to different formats
> and deploy consistently on all major browsers, desktops and devices.
>
> ^
>
>
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml(69):
> col: 21 Error: This attribute is unexpected. It will be ignored.
>
>
> http://royale.codeoscopic.com/wp-content/uploads/2017/10/Apache_PoweredBy.svg;
> />
>
> ^
>
>
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml(68):
> col: 21 This attribute is unexpected. It will be ignored.
>
>
> http://royale.codeoscopic.com/wp-content/uploads/2017/10/apache-royale-logo-footer-circle-grey.svg"/>Apache
> Royale™ is a highly productive open source application technology for
> building expressive frontend applications that outputs to different formats
> and deploy consistently on all major browsers, desktops and devices.
>
> ^
>
>
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml(69):
> col: 21 This attribute is unexpected. It will be ignored.
>
>
> http://royale.codeoscopic.com/wp-content/uploads/2017/10/Apache_PoweredBy.svg;
> />
>
> ^
>
>
> 0.188070813 seconds
>
> [*INFO*]
> **
>
> [*INFO*] *Reactor Summary for Apache Royale: Framework: Parent
> 0.9.7-SNAPSHOT:*
>
> [*INFO*]
>
> [*INFO*] Apache Royale: Framework: Parent ... *SUCCESS*
> [  3.585 s]
>
> [*INFO*] Apache Royale: Framework ... *SUCCESS*
> [  0.431 s]
>
> [*INFO*] Apache Royale: Framework: Fonts  *SUCCESS*
> [  1.187 s]
>
> [*INFO*] Apache Royale: Framework: Libs . *SUCCESS*
> [  0.933 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Language ... *SUCCESS*
> [  2.546 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Core ... *SUCCESS*
> [  5.520 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Binding  *SUCCESS*
> [  0.907 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Graphics ... *SUCCESS*
> [  1.543 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Collections  *SUCCESS*
> [  1.041 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Basic .. *SUCCESS*
> [  7.818 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Charts . *SUCCESS*
> [  1.888 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Effects  *SUCCESS*
> [  1.130 s]
>
> [*INFO*] Apache Royale: Framework: Libs: CreateJS ... *SUCCESS*
> [  1.014 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Reflection . *SUCCESS*
> [  0.964 s]
>
> [*INFO*] Apache Royale: Framework: Libs: DragDrop ... *SUCCESS*
> [  1.187 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Express  *SUCCESS*
> [  0.870 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Formatters . *SUCCESS*
> [  0.603 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Network  *SUCCESS*
> [  1.267 s]
>
> [*INFO*] Apache Royale: Framework: Libs: XML  *SUCCESS*
> [  0.913 s]
>
> [*INFO*] Apache Royale: Framework: Libs: MXRoyale ... *SUCCESS* [
> 21.975 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Crux ... *SUCCESS*
> [  1.720 s]
>
> [*INFO*] Apache Royale: Framework: Libs: Flat ... *SUCCESS*
> [  0.749 s]
>
> [*INFO*] Apache Royale: F

Re: Private vars in MXML

2020-01-14 Thread Carlos Rovira
Interesting, never tried. I think that's clearly a bug. Only public members
should be allowed.
private or protected should throw error

El mar., 14 ene. 2020 a las 0:04, Harbs () escribió:

> http://ns.adobe.com/mxml/2009;
>xmlns:js="library://ns.apache.org/royale/basic" >
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> There’s two private vars there: “lastIndex", and “_width".
>
> This compiles with no warnings or errors.
>
> > On Jan 14, 2020, at 12:56 AM, Josh Tynjala 
> wrote:
> >
> > Do you have some example code?
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Mon, Jan 13, 2020 at 2:21 PM Harbs  wrote:
> >
> >> I just noticed that there’s no compiler error while specifying private
> var
> >> values in MXML.
> >>
> >> It looks like it’s compiled “correctly” too.
> >>
> >> I assume this is a bug?
> >>
> >> Harbs
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Evaluating brackets

2020-01-14 Thread Carlos Rovira
Hi,

what's clear is that sometimes trying to do this kind of things in mxml is
difficult, and I remember experimenting a lot in Flex doing things like
that. As well thinking in adding more texts and other things in MXML for
TDJ and sometimes is not easy or we can do it. As you notice is the long
tail of difficult things that not all users will do, but will need to get
over there at some point.


Re: Spectrum Components

2020-01-13 Thread Carlos Rovira
Hi Andrew,

for MDL you can point to some examples in the Piotr site:

MDLExample was like a Tour De MDL app to showcase all MDL build in Royale.
I was moved to Piotr's site since legacy Apache can hold it (the same as
Spectrum): https://transpiledactionscript.com/examples/MDLExample/

a PureMVC-MDL example:
https://transpiledactionscript.com/examples/PureMVCEmployeeAdminMDL/

Thanks

El lun., 13 ene. 2020 a las 22:48, Andrew Wetmore ()
escribió:

> I will set up those pages. Then we can see about getting the texts right
> before we deploy them to the table of contents.
>
> On Mon, Jan 13, 2020 at 5:28 PM Carlos Rovira 
> wrote:
>
> > Right Andrew,
> >
> > Other sibling node can be MDL too. For what I understand MDL is like
> > Spectrum, both are js/css libraries that conform UI Sets in js. In Royale
> > we're wrapping it to make available in AS3 for Royale. And MDL was
> already
> > complete
> >
> > just my 2
> >
> >
> > El lun., 13 ene. 2020 a las 20:33, Andrew Wetmore ( >)
> > escribió:
> >
> > > What if we added a page under "Frameworks and Libraries", sibling to
> > > "Crux", called "Spectrum Royale"? Plenty of room then to add pages
> about
> > > other flavors of using CSS and JS libraries with Royale.
> > >
> > > a
> > >
> > > On Mon, Jan 13, 2020 at 2:32 PM Carlos Rovira  >
> > > wrote:
> > >
> > > > Hi Andrew, Harbs,
> > > >
> > > > I think we need to reference Spectrum and as well MDL since both
> wraps
> > > > css/js library with Royale.
> > > > We need to start some docs sections with that since we have various
> > > options
> > > > (while others like createjs, or jquery, are just experiments that
> does
> > > not
> > > > try to go further but give some example about how to do something
> like
> > > > that.
> > > >
> > > > just my 2
> > > >
> > > > Carios
> > > >
> > > > El lun., 13 ene. 2020 a las 16:20, Andrew Wetmore (<
> > cottag...@gmail.com
> > > >)
> > > > escribió:
> > > >
> > > > > @Harbs   let us know when we should feature
> > > this
> > > > in
> > > > > the same way we do Tour de Jewel, and in the user docs.
> > > > >
> > > > > I am looking at Adobe's Spectrum pages and can easily write a
> couple
> > of
> > > > > paragraphs about what Spectrum is. I will need some input from you
> > and
> > > > what
> > > > > you have found in merging Royale and Spectrum.
> > > > >
> > > > > Really lovely stuff to see.
> > > > >
> > > > > On Mon, Jan 13, 2020 at 11:03 AM Harbs 
> > wrote:
> > > > >
> > > > > > FWIW here’s a comparison of the summaries of first page loads:
> > > > > >
> > > > > > Royale:
> > > > > > https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA <
> > > > > > https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA>
> > > > > >
> > > > > > React:
> > > > > > https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA <
> > > > > > https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA>
> > > > > >
> > > > > > Compare the Scripting and Rendering times of the two. The
> contrast
> > is
> > > > > > stark.
> > > > > >
> > > > > > > On Jan 13, 2020, at 4:47 PM, Harbs 
> > wrote:
> > > > > > >
> > > > > > > Adobe’s showcase of Spectrum is done using React:
> > > > > > >
> https://opensource.adobe.com/spectrum-css/components/accordion/
> > <
> > > > > > https://opensource.adobe.com/spectrum-css/components/accordion/>
> > > > > > >
> > > > > > > The original showcase was so slow that they had to break the
> demo
> > > > into
> > > > > > separate pages. (It could be that made sense anyway.)
> > > > > > >
> > > > > > > It’s not a complete one-to-one comparison, but I’m going to try
> > and
> > > > > make
> > > > > > it as close as I can. Once I’m done, we can write about it more
> > > > > > intelligently. :-)
> > > > > >

Re: Evaluating brackets

2020-01-13 Thread Carlos Rovira
I don't think is a bug too.
If you want to translate to plain text you must escape it, or better make
whole in a var in AS3 and display the value.

El lun., 13 ene. 2020 a las 18:46, Alex Harui ()
escribió:

> If I understand the scenario correctly, I don't think that's a bug.  XML
> characters are translated into UTF-8 characters which are then parsed.  The
> MXML Compiler is scanning all values for binding expressions.
>
> It would be a bug if there is no way to escape {} in a value so that it
> isn't seen as a binding expression.  I honestly don't know if there is a
> way or not.  I would check Flex documentation and use the Flex compiler to
> see if you can get {} to show up in a Flex label, then try the same syntax
> in Royale.
>
> My 2 cents,
> -Alex
>
> On 1/13/20, 4:31 AM, "Harbs"  wrote:
>
> I have the following markup:
>
>  size="4" style="white-space:break-spaces;”/>
>
> I’m trying to display markup in the text property of a component.
>
> It shoould be displayed as:
>  Object]”/>
>
> It looks to me like the Royale compiler is evaluating the brackets in
> the text.
>
> FWIW, I also tried:
>  style="white-space:break-spaces;"/>
>
> and got the same result.
>
> I think this is a bug. Thoughts?
>
> Harbs
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Trying to make the daily build with maven, but is broken

2020-01-13 Thread Carlos Rovira
rk: Libs: RoyaleUnitUI ... *SKIPPED*

[*INFO*] Apache Royale: Framework: Libs: Text ... *SKIPPED*

[*INFO*] Apache Royale: Framework: Libs: TLF  *SKIPPED*



-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Spectrum Components

2020-01-13 Thread Carlos Rovira
Right Andrew,

Other sibling node can be MDL too. For what I understand MDL is like
Spectrum, both are js/css libraries that conform UI Sets in js. In Royale
we're wrapping it to make available in AS3 for Royale. And MDL was already
complete

just my 2


El lun., 13 ene. 2020 a las 20:33, Andrew Wetmore ()
escribió:

> What if we added a page under "Frameworks and Libraries", sibling to
> "Crux", called "Spectrum Royale"? Plenty of room then to add pages about
> other flavors of using CSS and JS libraries with Royale.
>
> a
>
> On Mon, Jan 13, 2020 at 2:32 PM Carlos Rovira 
> wrote:
>
> > Hi Andrew, Harbs,
> >
> > I think we need to reference Spectrum and as well MDL since both wraps
> > css/js library with Royale.
> > We need to start some docs sections with that since we have various
> options
> > (while others like createjs, or jquery, are just experiments that does
> not
> > try to go further but give some example about how to do something like
> > that.
> >
> > just my 2
> >
> > Carios
> >
> > El lun., 13 ene. 2020 a las 16:20, Andrew Wetmore ( >)
> > escribió:
> >
> > > @Harbs   let us know when we should feature
> this
> > in
> > > the same way we do Tour de Jewel, and in the user docs.
> > >
> > > I am looking at Adobe's Spectrum pages and can easily write a couple of
> > > paragraphs about what Spectrum is. I will need some input from you and
> > what
> > > you have found in merging Royale and Spectrum.
> > >
> > > Really lovely stuff to see.
> > >
> > > On Mon, Jan 13, 2020 at 11:03 AM Harbs  wrote:
> > >
> > > > FWIW here’s a comparison of the summaries of first page loads:
> > > >
> > > > Royale:
> > > > https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA <
> > > > https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA>
> > > >
> > > > React:
> > > > https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA <
> > > > https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA>
> > > >
> > > > Compare the Scripting and Rendering times of the two. The contrast is
> > > > stark.
> > > >
> > > > > On Jan 13, 2020, at 4:47 PM, Harbs  wrote:
> > > > >
> > > > > Adobe’s showcase of Spectrum is done using React:
> > > > > https://opensource.adobe.com/spectrum-css/components/accordion/ <
> > > > https://opensource.adobe.com/spectrum-css/components/accordion/>
> > > > >
> > > > > The original showcase was so slow that they had to break the demo
> > into
> > > > separate pages. (It could be that made sense anyway.)
> > > > >
> > > > > It’s not a complete one-to-one comparison, but I’m going to try and
> > > make
> > > > it as close as I can. Once I’m done, we can write about it more
> > > > intelligently. :-)
> > > > >
> > > > > Harbs
> > > > >
> > > > >> On Jan 13, 2020, at 4:35 PM, Carlos Rovira <
> carlosrov...@apache.org
> > > > <mailto:carlosrov...@apache.org>> wrote:
> > > > >>
> > > > >> Hi Harbs,
> > > > >>
> > > > >> Amazing! :)
> > > > >>
> > > > >> Can you share more about your comparison?
> > > > >> I think that could be something to share in our social media
> right?
> > > > people
> > > > >> should know about this progress, since performance is something
> that
> > > > users
> > > > >> pursue as one of the most wanted things to choose one tech over
> > > another.
> > > > >> But to make this valid, compared things should have a similar base
> > to
> > > be
> > > > >> comparable. I don't know too much about Spectrum components, but I
> > > > >> understand that you are working on a Royale implementation and
> > someone
> > > > did
> > > > >> a React implementation, and you're comparing a switch of screen
> or a
> > > > >> component for the same component/screen using both
> implementations.
> > > > Another
> > > > >> interesting thing would be to know about what component/screen
> we're
> > > > >> talking about.
> > > > >>
> > > > >> Thanks! :)

Re: Spectrum Components

2020-01-13 Thread Carlos Rovira
Hi Andrew, Harbs,

I think we need to reference Spectrum and as well MDL since both wraps
css/js library with Royale.
We need to start some docs sections with that since we have various options
(while others like createjs, or jquery, are just experiments that does not
try to go further but give some example about how to do something like that.

just my 2

Carios

El lun., 13 ene. 2020 a las 16:20, Andrew Wetmore ()
escribió:

> @Harbs   let us know when we should feature this in
> the same way we do Tour de Jewel, and in the user docs.
>
> I am looking at Adobe's Spectrum pages and can easily write a couple of
> paragraphs about what Spectrum is. I will need some input from you and what
> you have found in merging Royale and Spectrum.
>
> Really lovely stuff to see.
>
> On Mon, Jan 13, 2020 at 11:03 AM Harbs  wrote:
>
> > FWIW here’s a comparison of the summaries of first page loads:
> >
> > Royale:
> > https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA <
> > https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA>
> >
> > React:
> > https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA <
> > https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA>
> >
> > Compare the Scripting and Rendering times of the two. The contrast is
> > stark.
> >
> > > On Jan 13, 2020, at 4:47 PM, Harbs  wrote:
> > >
> > > Adobe’s showcase of Spectrum is done using React:
> > > https://opensource.adobe.com/spectrum-css/components/accordion/ <
> > https://opensource.adobe.com/spectrum-css/components/accordion/>
> > >
> > > The original showcase was so slow that they had to break the demo into
> > separate pages. (It could be that made sense anyway.)
> > >
> > > It’s not a complete one-to-one comparison, but I’m going to try and
> make
> > it as close as I can. Once I’m done, we can write about it more
> > intelligently. :-)
> > >
> > > Harbs
> > >
> > >> On Jan 13, 2020, at 4:35 PM, Carlos Rovira  > <mailto:carlosrov...@apache.org>> wrote:
> > >>
> > >> Hi Harbs,
> > >>
> > >> Amazing! :)
> > >>
> > >> Can you share more about your comparison?
> > >> I think that could be something to share in our social media right?
> > people
> > >> should know about this progress, since performance is something that
> > users
> > >> pursue as one of the most wanted things to choose one tech over
> another.
> > >> But to make this valid, compared things should have a similar base to
> be
> > >> comparable. I don't know too much about Spectrum components, but I
> > >> understand that you are working on a Royale implementation and someone
> > did
> > >> a React implementation, and you're comparing a switch of screen or a
> > >> component for the same component/screen using both implementations.
> > Another
> > >> interesting thing would be to know about what component/screen we're
> > >> talking about.
> > >>
> > >> Thanks! :)
> > >>
> > >> Carlos
> > >>
> > >>
> > >> El lun., 13 ene. 2020 a las 15:23, Harbs ( > <mailto:harbs.li...@gmail.com>>) escribió:
> > >>
> > >>> FYI, I took the opportunity to compare a similar React implementation
> > to
> > >>> the Royale one.
> > >>>
> > >>> Switching component views in React took about 500 ms, while in Royale
> > it
> > >>> took under 40 ms.
> > >>> Royale:
> > >>> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc <
> > https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc> <
> > >>> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc <
> > https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc>>
> > >>>
> > >>> React:
> > >>> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU <
> > https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU> <
> > >>> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU <
> > https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU>>
> > >>>
> > >>> This confirms my suspicion that we have a huge performance advantage
> > with
> > >>> Royale…
> > >>>
> > >>> Harbs
> > >>>
> > >>>> On Jan 13, 2020,

Re: Spectrum Components

2020-01-13 Thread Carlos Rovira
Awesome! If you don't mind I'd like to publish it. I think we can do more
writing later, with more data, but give this pill would be beneficial,
taking into account that our audience is not so big, but that could make
some eyes turn to us

El lun., 13 ene. 2020 a las 16:03, Harbs () escribió:

> FWIW here’s a comparison of the summaries of first page loads:
>
> Royale:
> https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA <
> https://www.evernote.com/l/AI9q-KtmIU5Fz5O055Z6VSNW1dWEGERugUA>
>
> React:
> https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA <
> https://www.evernote.com/l/AI9U13oQWlRAo7HzY4ZiTz5xuLU6MJbITpA>
>
> Compare the Scripting and Rendering times of the two. The contrast is
> stark.
>
> > On Jan 13, 2020, at 4:47 PM, Harbs  wrote:
> >
> > Adobe’s showcase of Spectrum is done using React:
> > https://opensource.adobe.com/spectrum-css/components/accordion/ <
> https://opensource.adobe.com/spectrum-css/components/accordion/>
> >
> > The original showcase was so slow that they had to break the demo into
> separate pages. (It could be that made sense anyway.)
> >
> > It’s not a complete one-to-one comparison, but I’m going to try and make
> it as close as I can. Once I’m done, we can write about it more
> intelligently. :-)
> >
> > Harbs
> >
> >> On Jan 13, 2020, at 4:35 PM, Carlos Rovira  <mailto:carlosrov...@apache.org>> wrote:
> >>
> >> Hi Harbs,
> >>
> >> Amazing! :)
> >>
> >> Can you share more about your comparison?
> >> I think that could be something to share in our social media right?
> people
> >> should know about this progress, since performance is something that
> users
> >> pursue as one of the most wanted things to choose one tech over another.
> >> But to make this valid, compared things should have a similar base to be
> >> comparable. I don't know too much about Spectrum components, but I
> >> understand that you are working on a Royale implementation and someone
> did
> >> a React implementation, and you're comparing a switch of screen or a
> >> component for the same component/screen using both implementations.
> Another
> >> interesting thing would be to know about what component/screen we're
> >> talking about.
> >>
> >> Thanks! :)
> >>
> >> Carlos
> >>
> >>
> >> El lun., 13 ene. 2020 a las 15:23, Harbs ( <mailto:harbs.li...@gmail.com>>) escribió:
> >>
> >>> FYI, I took the opportunity to compare a similar React implementation
> to
> >>> the Royale one.
> >>>
> >>> Switching component views in React took about 500 ms, while in Royale
> it
> >>> took under 40 ms.
> >>> Royale:
> >>> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc <
> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc> <
> >>> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc <
> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc>>
> >>>
> >>> React:
> >>> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU <
> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU> <
> >>> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU <
> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU>>
> >>>
> >>> This confirms my suspicion that we have a huge performance advantage
> with
> >>> Royale…
> >>>
> >>> Harbs
> >>>
> >>>> On Jan 13, 2020, at 3:06 PM, Carlos Rovira  <mailto:carlosrov...@apache.org>>
> >>> wrote:
> >>>>
> >>>> Hi Harbs,
> >>>>
> >>>> cool to see that showcased!.
> >>>> I think apps that demo code is very needed to make people understand
> >>>> quickly what a concrete code or library can do for them.
> >>>>
> >>>> Thanks :)
> >>>>
> >>>> Carlos
> >>>>
> >>>> El lun., 13 ene. 2020 a las 11:06, Harbs ( <mailto:harbs.li...@gmail.com>>)
> >>> escribió:
> >>>>
> >>>>> That would be great. (fixed your suggestions)
> >>>>>
> >>>>> FYI, the code for the panes is here:
> >>>>>
> >>>
> https://github.com/unhurdle/spectrum-royale/tree/master/SpectrumBrowser/src/view/panes
> <
> https://github.com/unhurdle/sp

Re: Spectrum Components

2020-01-13 Thread Carlos Rovira
Hi Harbs,

Amazing! :)

Can you share more about your comparison?
I think that could be something to share in our social media right? people
should know about this progress, since performance is something that users
pursue as one of the most wanted things to choose one tech over another.
But to make this valid, compared things should have a similar base to be
comparable. I don't know too much about Spectrum components, but I
understand that you are working on a Royale implementation and someone did
a React implementation, and you're comparing a switch of screen or a
component for the same component/screen using both implementations. Another
interesting thing would be to know about what component/screen we're
talking about.

Thanks! :)

Carlos


El lun., 13 ene. 2020 a las 15:23, Harbs () escribió:

> FYI, I took the opportunity to compare a similar React implementation to
> the Royale one.
>
> Switching component views in React took about 500 ms, while in Royale it
> took under 40 ms.
> Royale:
> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc <
> https://www.evernote.com/l/AI_tvFQmLmxMIKoex5T3iLbCL5E7Y2XqGQc>
>
> React:
> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU <
> https://www.evernote.com/l/AI-kSFHyYHFCWou_2mp4I-jqIB1toKyMryU>
>
> This confirms my suspicion that we have a huge performance advantage with
> Royale…
>
> Harbs
>
> > On Jan 13, 2020, at 3:06 PM, Carlos Rovira 
> wrote:
> >
> > Hi Harbs,
> >
> > cool to see that showcased!.
> > I think apps that demo code is very needed to make people understand
> > quickly what a concrete code or library can do for them.
> >
> > Thanks :)
> >
> > Carlos
> >
> > El lun., 13 ene. 2020 a las 11:06, Harbs ()
> escribió:
> >
> >> That would be great. (fixed your suggestions)
> >>
> >> FYI, the code for the panes is here:
> >>
> https://github.com/unhurdle/spectrum-royale/tree/master/SpectrumBrowser/src/view/panes
> >>
> >>> On Jan 13, 2020, at 1:43 AM, Andrew Wetmore 
> wrote:
> >>>
> >>> This will be great! By the way, if you want any text review I would be
> >>> happy to help. For example, "Varients" should be "Variants"
> >>>
> >>> On Sun, Jan 12, 2020 at 7:30 PM Harbs  wrote:
> >>>
> >>>> FYI, I’ve been working on filling out a demo the Spectrum Royale
> >>>> components:
> >>>> https://unhurdle.github.io/spectrum-royale/ <
> >>>> https://unhurdle.github.io/spectrum-royale/>
> >>>>
> >>>> I’m going to be filling them out over the next week…
> >>>>
> >>>> Harbs
> >>>
> >>>
> >>>
> >>> --
> >>> Andrew Wetmore
> >>>
> >>> http://cottage14.blogspot.com/
> >>
> >>
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Spectrum Components

2020-01-13 Thread Carlos Rovira
Hi Harbs,

cool to see that showcased!.
I think apps that demo code is very needed to make people understand
quickly what a concrete code or library can do for them.

Thanks :)

Carlos

El lun., 13 ene. 2020 a las 11:06, Harbs () escribió:

> That would be great. (fixed your suggestions)
>
> FYI, the code for the panes is here:
> https://github.com/unhurdle/spectrum-royale/tree/master/SpectrumBrowser/src/view/panes
>
> > On Jan 13, 2020, at 1:43 AM, Andrew Wetmore  wrote:
> >
> > This will be great! By the way, if you want any text review I would be
> > happy to help. For example, "Varients" should be "Variants"
> >
> > On Sun, Jan 12, 2020 at 7:30 PM Harbs  wrote:
> >
> >> FYI, I’ve been working on filling out a demo the Spectrum Royale
> >> components:
> >> https://unhurdle.github.io/spectrum-royale/ <
> >> https://unhurdle.github.io/spectrum-royale/>
> >>
> >> I’m going to be filling them out over the next week…
> >>
> >> Harbs
> >
> >
> >
> > --
> > Andrew Wetmore
> >
> > http://cottage14.blogspot.com/
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: YFiles, EPL, Apache

2020-01-12 Thread Carlos Rovira
Hi,

I think you should contact yFiles directly and talk with them about it.
That's better to try to figure if something could be wrong in the future.

My understanding is that he should be able to give you permission since it
implies make his commercial lib to clients that want to use in Royale.
So that clientes will still need to pay for the commercial version, while
if no typedefs are done, it will be more difficult to do.



El dom., 12 ene. 2020 a las 16:30, Yishay Weiss ()
escribió:

>
> Hi,
>
> Before I start making inquiries in legal I wonder if anyone here can give
> me some guidance.
>
> I want to create typedefs for yFiles [1], using an externs [2] file that’s
> under an EPL [3]. Should that be a problem?
>
> This issue [4] makes me extra cautious.
>
> Thanks.
>
> [1] https://www.yworks.com/products/yfiles-for-html
> [2]
> https://raw.githubusercontent.com/honzabrecka/ts-to-goog/master/externs/yfiles.extern.js
> [3] https://github.com/honzabrecka/ts-to-goog/blob/master/LICENSE
> [4] https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23310
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: List of existing emulations?

2020-01-10 Thread Carlos Rovira
he.org>
> > > > > Subject: List of existing emulations?
> > > > >
> > > > > Hi, all
> > > > >
> > > > > Do we have a list of all existing Royale emulations and,
> > ideally, what
> > > > Flex
> > > > > component or function each one emulates and where someone could
> > find
> > > the
> > > > > code? I think it might be useful to have such a list on a cwiki
> > page so
> > > > > people could update it easily as additional emulations become
> > > available.
> > > > >
> > > > > I can start the page, if we don't have such a list already, but
> > > obviously
> > > > > people with knowledge would have to help build the list.
> > > > >
> > > > > a
> > > > >
> > > > > --
> > > > > Andrew Wetmore
> > > > >
> > > > >
> >
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcottage14.blogspot.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C86c5f33547d54719083808d79509d73a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637141741811092694sdata=O%2Fs0YqiZgsTKYl8n8CKa2cz3HEl9tnb2ZwBQD78yONc%3Dreserved=0
> > > > >
> > > > >
> > > >
> > > > --
> > > > Andrew Wetmore
> > > >
> > > >
> >
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcottage14.blogspot.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C86c5f33547d54719083808d79509d73a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637141741811092694sdata=O%2Fs0YqiZgsTKYl8n8CKa2cz3HEl9tnb2ZwBQD78yONc%3Dreserved=0
> > > >
> > >
> > >
> > > --
> > >
> > > Piotr Zarzycki
> > >
> > > Patreon: *
> >
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7Caharui%40adobe.com%7C86c5f33547d54719083808d79509d73a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637141741811092694sdata=ugd7%2FGV881ex4Xd5KhtheUORNaUCEMwAlFIQhFsChtU%3Dreserved=0
> > > <
> >
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7Caharui%40adobe.com%7C86c5f33547d54719083808d79509d73a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637141741811092694sdata=ugd7%2FGV881ex4Xd5KhtheUORNaUCEMwAlFIQhFsChtU%3Dreserved=0
> > >*
> > >
> > >
> >
> > --
> > Andrew Wetmore
> >
> >
> >
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcottage14.blogspot.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C86c5f33547d54719083808d79509d73a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637141741811092694sdata=O%2Fs0YqiZgsTKYl8n8CKa2cz3HEl9tnb2ZwBQD78yONc%3Dreserved=0
> >
> >
> >
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Flexlib Emulation

2020-01-09 Thread Carlos Rovira
Hi Takeshita,

I didn't take a look at the pom.xml but for sure it was an old flexmojos
pom that will no be useful at all.
You can use a pom.xml from any other Royale library to setup quickly. Take
for example the one in Jewel, Binding, or any other one.
I suppose you'll put it with the rest of libs in royale to contribute at
some point, right? so that way will be the easiest. You can as well mimic a
build.xml too for ANT, since it will be needed to.

regarding name, since mx in royale is MXRoyale, and spark is SparkRoyale,
my suggestion is to call it following that pattern and call it
"FlexlibRoyale", since "royalelib" can easily be confusing (In fact I have
2 projects using already "royalelib".

Thanks for taking the time to do this! I think many others will be happy to
have it  :)

Carlos



El jue., 9 ene. 2020 a las 18:59, Alex Harui ()
escribió:

>
>
> On 1/9/20, 9:43 AM, "Takeshita Shoichiro"  wrote:
>
> Hi,
>
> I'll try to develop emulation components for flexlib.
>
> Several questions in the meantime.
>
> Flexlib consists of about 500 files, mostly .as, .png, and .gif.
>
> However, there are also the following .fla and .swf files.
>
> \flexlib-master\flexlib-master\examples\MDI\src\MacOS9.swf
> \flexlib-master\flexlib-master\examples\MDI\src\WindowsXP_default.swf
> \flexlib-master\flexlib-master\examples\MDI\src\assets\swf\Blue.swf
>
> \flexlib-master\flexlib-master\examples\MDI\src\assets\swf\BrushedMetal.swf
>
> \flexlib-master\flexlib-master\examples\MDI\src\assets\swf\WindowsAssets.swf
>
> \flexlib-master\flexlib-master\examples\TreeGrid\src\assets\defaultTreeAssets.fla
>
> \flexlib-master\flexlib-master\examples\TreeGrid\src\assets\defaultTreeAssets.swf
>
> \flexlib-master\flexlib-master\examples\TreeGrid\src\assets\treeAssets.fla
>
> \flexlib-master\flexlib-master\examples\TreeGrid\src\assets\treeAssets.swf
> \flexlib-master\flexlib-master\library\src\flexlib\assets\assets.fla
> \flexlib-master\flexlib-master\library\src\flexlib\assets\assets.swf
>
> \flexlib-master\flexlib-master\library\src\flexlib\assets\defaultTreeAssets.fla
>
> \flexlib-master\flexlib-master\library\src\flexlib\assets\defaultTreeAssets.swf
>
> \flexlib-master\flexlib-master\library\src\flexlib\controls\iconLoaderClasses\assets\Assets.fla
>
> \flexlib-master\flexlib-master\library\src\flexlib\controls\iconLoaderClasses\assets\Assets.swf
>
> 1. How to treat these files?  Do these files bring an impact to the
> emulation work?
>
> I would ignore those files for right now.  If they are referenced as
> embedded assets in the code, comment out the embed directive since Royale
> doesn't support that right now and try to get the code to compile and run.
> Then it will probably be more obvious what the asset was supposed to do and
> we can discuss how to replace whatever is missing.
>
> 2. To compile the emulated flexlib, can I use the pom.xml included in
> this
> repository?
>
> If you want to use Maven that's fine, but I took a quick look at the POM
> and it will need to be modified so it uses Royale instead of Flex and does
> not push the artifacts to the same folder as flexlib.  You may want to call
> this project royalelib instead.
>
> If you are more familiar with Ant, it is fine to just start with Ant.  At
> some point we will make builds work for both Ant and Maven.
>
> Thanks,
> -Alex
>
> Thanks for your advice in advance.
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Jewel: PopUpView.as exception

2020-01-09 Thread Carlos Rovira
Hi Maria Jose,

just applied a fix. Thanks for notifying about it!

I'll be changing setTimeOut calls for something like requestAnimationFrame
at some time. When I develop this code, I had issues for different
browsers. Now that we have more browser control, we can do smarter
management and maybe left setTimeOut as a fallback for browsers that does
not work with better methods.

Thanks! :)



El mié., 8 ene. 2020 a las 19:32, Maria Jose Esteve ()
escribió:

> Hi,
> In the PopUpView.as class, we use popUpVisible property to change his
> visibility.
> To display his content, we use the "setTimeout" function, which executes
> the prepareForPopUp function after 300 milliseconds:
>
> setTimeout(prepareForPopUp,  300);
>
> If you show and hide in a short time frame, the prepareForPopUp event
> fires after the value of the _popUp variable has been set to NULL causing
> exception:
>
> TypeError: Cannot read property 'addClass' of null
>
> Would it be correct to verify the _PopUp value before calling it? ...
> Something like
>
> private function prepareForPopUp():void
> {
> +if (_popUp)
> +_popUp.addClass("open");
>
> COMPILE::JS
> {
> //avoid scroll in html
> document.body.classList.add("viewport");
>         //cancelAnimationFrame(rq);
> }
> }
>
>
> Thank you,
> Hiedra.
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Error after compiled develop branch

2020-01-08 Thread Carlos Rovira
Hi Maria Jose,
fix is already done in this
commit: 3652f3d72e9d2258077850708d475bd8294f8fca (jewel-themes: fix usage
of separated themes that was broken due to a recent optimization)
sorry for the inconvenience

El mié., 8 ene. 2020 a las 16:48, Maria Jose Esteve ()
escribió:

> Thank you for your attention Carlos.
>
> We already compile.
> I will be attentive to progress.
>
> Thank you,
> Hiedra
>
> -Mensaje original-
> De: Carlos Rovira 
> Enviado el: miércoles, 8 de enero de 2020 16:03
> Para: dev@royale.apache.org
> Asunto: Re: Error after compiled develop branch
>
> Hi Maria Jose,
>
> thanks for reporting. I could reproduce that bug. I'll be fixing now.
> In the meantime, please, change the pom.xml with the 3 jewel theme
> dependencies with the master jewel theme:
>
> 
> org.apache.royale.framework
> JewelTheme
> 0.9.7-SNAPSHOT
> swc
> theme
> js
> 
>
> In this way you'll be able to compile
> I'll report here when this problem is resolved, hopefully very soon And
> sorry for the inconvenience, this was introduced when I develop this days
> the runtime theme switch feature Thanks!
>
> Carlos
>
> El mié., 8 ene. 2020 a las 14:10, Maria Jose Esteve ()
> escribió:
>
> > Hi,
> > this morning we have compiled the develop branch of the sdk 0.9.7 and,
> > since then, we cannot compile our application (maven).
> >
> > This is an excerpt from the log:
> >
> > ...
> > [DEBUG] Skipped remote request for
> > org.apache.royale.framework:Basic:0.9.7-SNAPSHOT/maven-metadata.xml
> > locally installed metadata up-to-date.
> > [INFO] Executing MXMLC in tool group Royale with args:
> > [-load-config=D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\royal
> > eapp\royalelogin\target\compile-app-config.xml,
> > -js-default-initializers=true, -source-map=true,
> > -compiler.exclude-defaults-css-files=MXRoyale-0.9.7-SNAPSHOT-js.swc:de
> > faults.css,
> > -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDe
> > -keep-as3-metadata+stroy,ViewAdded,ViewRemoved,Bindable,Transient,
> > -keep-code-with-metadata=Inject,
> > -js-output=D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\royaleap
> > p\royalelogin\target\javascript,
> > -compiler.targets=JSRoyale,
> > D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\royaleapp\royalelog
> > in\src\main\royale\App.mxml]
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(82):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:visited
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(82):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:visited
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(82):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:visited
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(86):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:hover
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(86):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:hover
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(86):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:hover
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(90):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:active
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondary-Red-Theme-0.9.7-SNAPSHOT-js.swc:defaults.css(90):
> > col: 2 Error: Type selector without namespace prefix requires a
> > default namespace to be defined. a:active
> >
> >
> >
> D:\Desarrollo_Royale\Proyectos\Splus\Splus.develop\Jewel-Light-NoFlat-Secondar

Re: CSS Downloaded Twice (was Re: Including CSS in apps)

2020-01-08 Thread Carlos Rovira
Hi Alex,

   - Are we using normal CSS rules in Royale Code? (If not why we load
>again in code and encode all that simple CSS rules that are
> processed by
>Browsers)
> Royale has a ValuesManager.  The various IValuesImpls implement enough CSS
> to get some app to work.  I'm pretty sure nobody has done a full CSS
> implementation yet.
>

My question here was more about the current CSS rules (the same used by
browsers, not particularl royale ones like ClassReference), if we really
need to encode since don't know if that rules are used in royale AS3 code


>
>- Can we separate royale rules (i.e: ClassReference) from normal
> rules
>and load normal ones via browsers css and royale ones vía JS?
> Don't know.  Probably.  But maintaining the list of what to exclude may
> not be worth the effort.
>

In Jewel, I end separating as follows:

   - Jewel.SWC: Has only royale CSS rules (beads needed by Jewel
   components) and some CSS rules that are mostly structural. For example,
   display: flex, position: relative, or z-index: 1 or overflow: auto to name
   a few. Those are rules that will be always needed to make a component show
   in a determined way. I think this CSS rules should not be part of a themes,
   although in some cases could be (very few cases), and in that case people
   could override in a theme.
   - JewelTheme.SWC: This theme, or any other one based on the same
   principles has just real theme rules that can change, for example:
   background, border, border-radious, fonts, color, and so on. All these make
   a difference in how the components are visualized and I determined that are
   the properties that makes sense to make part of a theme.

But I have one case, that I did as an experiment (maybe could change in the
future). I created "gap" that is used by jewel components in layouts. This
one is processed since is a Royale one, something similar to a bead.


>- Can we reprocess royale css rules again at later time? (When doing
>runtime theme switch, I'm only switching normal standard rules by
> loading a
>normal CSS file, but what If I want to change beads in components
> or other
>things like that? Can I do that? If so how can I load that at
> runtime and
>process?
> Basic doesn't yet have support for runtime loading of CSS (AFAIK).  But
> folks are welcome to add it in a PAYG manner.


For me this will be interesting to make the runtime CSS in Jewel extend to
all Royale capabilities. For now is just for CSS browser rules.
What class-method should I look to try to do this? IOW, where in the royale
basic lifecycle should this be implemented?
Should this be a bead? Any guidance here's welcome to imagine how this
could be


>
>
   - What means that framework code doesn't need to call
>"getComputedStyles()"? and why should framework do that?
> ValuesManager is called ValuesManager on purpose: to not imply that there
> must be a CSS subsystem determining the values.  In fact, some really
> simple apps don't need CSS at all and can use, for example,
> SimpleValuesImpl.
>

That means, that If I switch to SimpleValuesImpl in a Jewel App, I can
avoid to have all CSS browser rules twice?


>
> The code in the framework (and sometimes the application) needs to know
> default values for things.  By separating the defaults from the code that
> uses it, it makes it easier for folks to change it and helps make sure we
> don't have unnecessary dependencies.
>
> I can quickly think of 3 categories of default values.  There might be
> more:
> 1) default beads
> 2) default values that are not CSS-compliant (MX Emulation of
> "horizontalCenter")
> 3) default values that are CSS-compliant
>

1 and 2 is clear to me. What I don't understand is the need of 3, since
this is done by the browser right?


>
> In the Royale component lifecycle, a component is instantiated, then some
> properties are assigned, including custom beads, then the component is
> added to a parent where default beads are added.  Values in categories 1 &
> 2 must be encoded somehow.  The browser will barf if we try to put that
> stuff in a CSS file.  Some stuff in Category 3  is never asked for (color),
> but some stuff is.  If you ask for the width or height, we need to check
> the CSS to see if it has been specified there.  getComputedStyle is
> supposedly expensive, so the current implementation in UIBase checks for a
> locally set style, then tries for offsetHeight/Width.   That seems to be
> working well enough for now.  Subclasses can always do something else.
>

ok I think I understand now the reasons. Thanks


>
> If someone wants to try using getComputedStyle, they should create a
> branch, build some tests, and see

Re: Error after compiled develop branch

2020-01-08 Thread Carlos Rovira
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time:  32.670 s
> [INFO] Finished at: 2020-01-08T14:00:46+01:00
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.royale.compiler:royale-maven-plugin:0.9.7-SNAPSHOT:compile-app
> (default-compile-app) on project royalelogin: There were errors during the
> build. Got return code 3 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal
> org.apache.royale.compiler:royale-maven-plugin:0.9.7-SNAPSHOT:compile-app
> (default-compile-app) on project royalelogin: There were errors during the
> build. Got return code 3
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:215)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:498)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.MojoExecutionException: There were
> errors during the build. Got return code 3
> at org.apache.royale.maven.BaseMojo.handleExitCode (BaseMojo.java:382)
> at org.apache.royale.maven.BaseMojo.execute (BaseMojo.java:376)
> at org.apache.royale.maven.CompileAppMojo.execute
> (CompileAppMojo.java:107)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:137)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:210)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:498)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)
> [ERROR]
>
> Has it happened to someone else?
> How can I report this error if it is?
>
> Thank you,
> Hiedra.
>


-- 
Carlos Rovira
http://about.me/carlosrovira


CSS Downloaded Twice (was Re: Including CSS in apps)

2020-01-07 Thread Carlos Rovira
Hi,

About having CSS downloaded twice, I think is a very interesting topic to
know more info about.
I understand that for non-conforming CSS royale rules like ClassReference
is ok, but for normal CSS rules, seems to me a waste of resources, right?

Questions I have about this:


   - Are we using normal CSS rules in Royale Code? (If not why we load
   again in code and encode all that simple CSS rules that are processed by
   Browsers)
   - Can we separate royale rules (i.e: ClassReference) from normal rules
   and load normal ones via browsers css and royale ones vía JS?
   - Can we reprocess royale css rules again at later time? (When doing
   runtime theme switch, I'm only switching normal standard rules by loading a
   normal CSS file, but what If I want to change beads in components or other
   things like that? Can I do that? If so how can I load that at runtime and
   process?
   - What means that framework code doesn't need to call
   "getComputedStyles()"? and why should framework do that?

Thanks


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Including CSS in apps

2020-01-07 Thread Carlos Rovira
Hi Harbs,

about duplicate  elements: I solved it recently in TDJ by adding "id"
to link. The "loadCSS" method now returns that "id". I store it in TDJ so I
can remove the link element (and that remove all styles in the browser
too). Maybe we can have some Manager class (maybe a bead to use in
Application) that be in charge of ensuring link tags are unique.

About having CSS downloaded twice. I understand that for non conforming CSS
royale rules like ClassReference, but for normal CSS rules, seems to me a
waste of resources, right?
Maybe there are many things in that concrete topic and will deserve a new
thread about it to understand it completely. For example: Are we using
normal CSS rules in Royale? Can we separate royale rules from normal rules
and load normal ones via browsers css and royale ones vía JS? Can we
reprocess royale css rules again at later time? what means that framework
code does not need to call getComputedStyles()? and why should framework do
that?... I think this is very interesting now that Harbs are working on
Spectrum and I recently worked on runtime theme switching.






El mar., 7 ene. 2020 a las 9:16, Harbs () escribió:

> For js and image/svg files this is probably a complete solution. For CSS,
> there also needs to be code to load the CSS.
>
> I guess a combination of include_file and inject_html might work, but then
> we still have the problem of duplicate  injection and combined CSS
> would not be properly referenced.
>
> > For Problem #1, instead of inject_html we could add something like
> "include_file" that would reference a file in a SWC.  Then folks could have
> images, css, js, whatever, added to the output file.  I think that wouldn't
> be too hard to do.  There is already code in the compiler copying stuff out
> of a SWC
>
> > On Jan 7, 2020, at 12:11 AM, Alex Harui 
> wrote:
> >
> >
> >
> > On 1/6/20, 12:45 PM, "Harbs"  wrote:
> >
> >Yes. JS specific.
> >
> >It would be very hard to do a SWF compatible build of Spectrum.
> >
> > So to me, this isn't so much about CSS as it is about externs.  CSS that
> is processed by the compiler is intended for multi-platform CSS.
> Multi-platform CSS is encoded for use by ValuesManager and implementations
> on other platforms.  As Carlos noted in a recent thread, CSS is sort of
> downloaded twice by Royale JS output, once in its .css file form for
> consumption by the browser, and a second time as encoded CSS for use by the
> framework and application code.  That avoids having the framework code call
> getComputedStyles() and allows non-comforming CSS like
> ClassReference("SomeBead").  Although there certainly could be a better way
> to handle this.
> >
> > On the other hand, the inject_html and externs are about 3rd-party or
> external JS implementations.  There have been other threads about how to
> handle inject_html and have it inject local references to .js files.  Right
> now I think all inject_html use cases reference code on a CDN or some
> canonical URL on the internet.  It feels like this is the same problem and
> why you started by asking about inject_html.  You don't really need the
> compiler to look at this CSS, you really want some amount of css and/or js
> (and maybe even html) to be linked into the output instead of referenced by
> URL.  Although it sounds like you are also looking to aggregate these bits
> and pieces of external css or js into fewer files.
> >
> > So I recommend approaching the problem in two pieces: 1) what is the
> best way to add js and css to the output files and 2) once you have some
> set, can you aggregate it into fewer files?
> >
> > Problem #2 sounds straightforward: search the output folder and combine
> files.  I guess it might be important what order you combine CSS files.
> >
> > For Problem #1, instead of inject_html we could add something like
> "include_file" that would reference a file in a SWC.  Then folks could have
> images, css, js, whatever, added to the output file.  I think that wouldn't
> be too hard to do.  There is already code in the compiler copying stuff out
> of a SWC
> >
> > My 2 cents,
> > -Alex
> >
> >> On Jan 6, 2020, at 8:56 PM, Alex Harui 
> wrote:
> >>
> >> But is that CSS platform-specific, or will that same CSS be needed if
> you were to try to implement Spectrum in SWF?  IMO, that's a key question
> for how we solve this problem.
> >
> >
> >
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Apache Royale PMC member joins the ASF staff

2020-01-07 Thread Carlos Rovira
Great Andrew! :)

El dom., 5 ene. 2020 a las 20:05, Harbs () escribió:

> Nice. :-)
>
>
> > On Jan 5, 2020, at 8:34 PM, Andrew Wetmore  wrote:
> >
> > https://blogs.apache.org/infra/entry/another-oar-in-the-water
> >
> > --
> > Andrew Wetmore
> >
> > http://cottage14.blogspot.com/
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: About Jewel Table component

2020-01-07 Thread Carlos Rovira
Hi Yishay,

El dom., 5 ene. 2020 a las 12:39, Yishay Weiss ()
escribió:

> Piotr knows more about this than I do, but again, I’m not sure we are the
> right people to ask because we’ve been using it as a Grid replacement so
> what we actually need is the DataGrid API. What’s your issue with
> selectedItem/selectedProperty? The fact that these refer to cells rather
> than rows is probably a feature because that’s what distinguishes it from
> Grid.
>

I'm starting lo see it that way. I remember left the component to do other
urgent work, and at that time my feeling was that the API was not ok.
Maybe was due to me going as fast as possible from coding that to the other
tasks. Now revisiting the component seems to me almost ok...or nothing is
making me feel unconfortable with the API, and don't remember the reasons I
had at that time.

Anyway, all experience reported by you and Piotr is welcomed to know more.

I think this component has some useful features like the HTML/table layout,
the colapsan/rowspan feature and the header label alignments. Of course is
very oriented to the HTML world ;)

Thanks!


-- 
Carlos Rovira
http://about.me/carlosrovira


CSS styles in minified .js

2020-01-05 Thread Carlos Rovira
Hi,

I'm seeing CSS styles in TourDeJewel release version .js
Strings like:

'.jewel.item.primary.hovered',function(){this.background=3976689}

Is this right?

I expected styles coming from minified css

Thanks

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: About Jewel Table component

2020-01-05 Thread Carlos Rovira
Thanks Yishay,
did you find the API ok? (I refer to
"selectedItem"/"selectedItemProperty"), I'm thinking to left it as is.
Maybe DataGrid could be ok for some cases, but Table has some other
advantages too.
thanks

El dom., 5 ene. 2020 a las 7:52, Yishay Weiss ()
escribió:

> We've been using it as a grid replacement. We'll probably switch to grid
> now that you've got that working.
> ________
> From: Carlos Rovira 
> Sent: Friday, January 3, 2020 5:50:24 PM
> To: dev@royale.apache.org 
> Subject: About Jewel Table component
>
> Hi,
>
> one of the things for 1.0 was ensuring APIs are ok.
> When I created Jewel Table I left with API methods I was not happy
> "selectedItem"/"selectedItemProperty"or comment
> I found now the time to revisit the component and right now I don't see the
> reason I didn't like it at that time.
>
> Maybe people will end using new Jewel DataGrid, although seems Table can
> have as well some interesting uses.
> Don't know, I really didn't need to use it in a real app for now.
>
> Can others share his experience?
> Should we left the component as is?
> Some issues with that component or comments about it?
>
> I just updated the TDJ example to remove the "Work In Progress" warning.
> My intention is left the component in its current way, but depend of others
> comment to finish my decision
>
> Thanks! :)
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


-- 
Carlos Rovira
http://about.me/carlosrovira


About Jewel Table component

2020-01-03 Thread Carlos Rovira
Hi,

one of the things for 1.0 was ensuring APIs are ok.
When I created Jewel Table I left with API methods I was not happy
"selectedItem"/"selectedItemProperty"or comment
I found now the time to revisit the component and right now I don't see the
reason I didn't like it at that time.

Maybe people will end using new Jewel DataGrid, although seems Table can
have as well some interesting uses.
Don't know, I really didn't need to use it in a real app for now.

Can others share his experience?
Should we left the component as is?
Some issues with that component or comments about it?

I just updated the TDJ example to remove the "Work In Progress" warning.
My intention is left the component in its current way, but depend of others
comment to finish my decision

Thanks! :)

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Jewel ButtonBar and DataGrid first iteration! :)

2019-12-29 Thread Carlos Rovira
Hi Fred,

thanks, I'm glad you think so, I was thinking the same as you, that this is
the missing piece :)
About sorting, yes, I'll be implementing in the next days. My TODO list for
the next days is:

* Try different ItemRenderers and try to make more accesible from
DataGridColumn some basic and useful things. Probably will need to use its
own DataGridItemRenderer as default. For now internal columns (that are
Jewel Lists use ListItemRenderer)
* Make a Blog Example about it and docs.
* Once I see layout completely work, I'll go with sorting columns
* Other things I see as well are reposition,  resizing columns and editing
cells, hope I could work on that too...

Best

Carlos


El dom., 29 dic. 2019 a las 9:56,  escribió:

> Hi Carlos,
>
> Thanks for this work on DataGrid. For me it was the last missing component
> needed to make business applications.
>
> Do you think adding sorting columns on header click ?
>
> Regards
>
> Le 28.12.2019 11:37, Carlos Rovira a écrit :
>
> Hi all,
>
> just want to share a tweet about the latest iteration of Jewel DataGrid.
> This covers scrolling and other issues with dimensions and sizing.
> Will try other examples in the next days adding combos, checks and more
> item renderer visualizations.
>
> https://twitter.com/ApacheRoyale/status/1210870204001116160
>
> As always share,  retweet and enjoy!! :)
>
> Carlos
>
>
>
> El vie., 13 dic. 2019 a las 1:20, Greg Dove ()
> escribió:
>
> That looks awesome! Great work, Carlos :)
>
>
> On Fri, Dec 13, 2019 at 1:15 PM Carlos Rovira 
> wrote:
>
> Hi Andrew,
>
> you can see a new version of TDJ uploaded with the current examples :
> https://royale.apache.org/tourdejewel/#
>
> Enjoy! :)
>
> Carlos
>
>
>
> El vie., 13 dic. 2019 a las 1:12, Andrew Wetmore ()
> escribió:
>
> This is great news! I can't wait to play with them.
>
> On Thu, Dec 12, 2019 at 8:05 PM Carlos Rovira 
>
> wrote:
>
> Hi,
>
> just committed my work on Jewel ButtonBar and DataGrid. I think these
> components was long awaited and finally we have it here! :)
>
> Just let you know that I tried my best to have this iteration as most
> stable as possible, but consider that I still need to do some work in
>
> some
>
> areas.
> I wanted to try to have the API stable so don't need a change when
> completing next iterations, but this is nothing I can guarantee ;)
>
> ButtonBar supports typical emphasis styles in Jewel Buttons as well
>
> other
>
> things from Jewel Layouts. I think I'll need to make its own
>
> extension
>
> of
>
> the model
> and I'm still thinking about the different width types from Basic
>
> version.
>
> I must see if the current ones are sufficient of I need to implement
>
> more.
>
>
> About DataGrid, I wanted to have a first version where:
>
>- roll over is supported (this will do with a change of styles to
>
> be
>
>more flexible and can be controlled not only by hover with the
>
> mouse)
>
>- Have a default width like in flex where columns are sized to 1/n
>columns of the total available space
>- Have a layout based on columnWidths
>- Get an initial Jewel look and feel that as well have the things
>
> in
>
>ButtonBar like emphasis color
>
> Still to do most important:
>
>- sorting of columns
>- resizing of columns
>
> Other things that should come (depending on how important are this
>
> ones):
>
>
>- editable cells
>- reordering of columns
>
> Tour De Jewel has a few initial examples, and I hope to add more like
> ButtonBar with icons in the buttons or other kind of renderers like
> ToggleButton? will see...
>
> A couple of things more:
>
>
>- Since this components comes from the work in Basic, many of the
>
> design
>
>is from there, but while transforming to Jewel I could see some
>
> things
>
> that
>I could fix that maybe could be good to make as well in Basic
>
> versions,
>
> for
>example, Basic DataGridView creates most of the things in
>
> initComplete
>
>handler, while in Jewel all is done in the strand - createChildren
> method.
>There's some methods and events in Basic version not used that
>
> could
>
> be
>
>cleaned, and many events for "layoutNeeded" dispatched that seems
>
> can
>
> be
>
>removed, and other things that could be compared to try to improve
>
> Basic
>
>one.
>- I know she things in Jewel versions to be fixed from tomorrow,
>
> so
>
>think that this is a first version of complex components, so I'll
> continue

Jewel inherintance fixed

2019-12-29 Thread Carlos Rovira
Hi,

as part of the conversation about width and NaN, other problem was unveiled
in Jewel UI Set.
It was about the problem from some components to have StyledUIBase that
provides different support for jewel styling and other components (mostly
containers) composed that functionality but still inherit from UIBase
instead StyledUIBase. That always was lacking coherence in Jewel. I solved
this today following the pattern Alex make in MXRoyale by recomposing
internal classes to extend from StyledUIBase. This should make things in
Jewel more coherent for people working in components and other things that
use to be more internal or hidden.



-- 
Carlos Rovira
http://about.me/carlosrovira


defaults x, y in UIBase

2019-12-28 Thread Carlos Rovira
Hi,

while making te copy/paste of the code for width/height, I see we already
has implemented defaults for x and y.
making a git blame reveal it was me around 2 years ago. I completely forgot
about that. Seems I already had the same problems for x,y
I can move that code to StyledUIBase too, I suppose it the most coherent if
no one oppose.

-- 
Carlos Rovira
http://about.me/carlosrovira


Re: Trying an implementation "inheritWidth" function on StyledUIBase

2019-12-28 Thread Carlos Rovira
o go the same I use, that is
change underlaying browser style width values and making royale components
state not aligned to it.

HTH

Carlos


>
> My 2 cents,
> -Alex
>
> El vie., 27 dic. 2019 a las 14:00, Harbs ()
> escribió:
>
> > I would implement it differently:
> >
> > COMPILE::SWF//assuming this works in SWF
> > public function
> > inheritDimensions(width:Boolean=true,height:Boolean=true):void{
> >   if(width){
> > this.width = NaN;
> >   }
> >   if(height){
> > this.height = NaN;
> >   }
> > }
> > COMPILE::JS
> > public function
> > inheritDimensions(width:Boolean=true,height:Boolean=true):void{
> > if(width){
> >   _width = _explicitWidth = _percentWidth = NaN;
> >   this.positioner.style.width = null;
> > }
> > if(height){
> >   _height = _explicitHeight = _percentHeight = NaN;
> >   this.positioner.style.height = null;
> > }
> > // do we need to dispatch an event?
> > }
> >
> > > 1.- *I loose ternary operato**rs*. I mean expressions like:
> > *button.width
> > > = **condition ? 200 : NaN;*
> >
> > Like I already said, I think this kind of code is bug-prone, so I
> don’t
> > share your concern.
> >
> > > 2.- *Lose opportunity to do binding in MXML*. I mean expressions
> like:
> > > *button.width
> > > = "{condition ? 200 : NaN}”*
> >
> > You can create a subclass of Button in your application with custom
> > setters if this is a concern.
> >
> > > 3.- *Duplicating `style.width` instruction*. In setWidth the
> > > positioner.style.width is set to "NaNpx" then we reach the
> > > "setInheritWidth" to remove to null. No collateral problems, but
> just
> > seems
> > > poor code.
> >
> > My implementation solves this problem. Ideally I’d like to solve the
> > problem of accessing private vars from utility functions, but that’s
> > another topic.
> >
> >
> > HTH,
> > Harbs
> > > On Dec 27, 2019, at 2:03 PM, Carlos Rovira <
> carlosrov...@apache.org>
> > wrote:
> > >
> > > public function setInheritWidth(noEvent:Boolean = false):void
> > > {
> > > setWidth(NaN);//we need _width = NaN
> > > COMPILE::JS
> > > {
> > > this.positioner.style.width = null;//remove style.width after
> setWidth
> > sets
> > > _width to "NaNpx" for JS
> > > }
> > > }
> >
> >
>
> --
> Carlos Rovira
>
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C39715e51de7749703a2b08d78addbb1a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637130557240362094sdata=yeDSDeCKTNK1jeg8unPRrxVTKMvd8mmqBE%2F6FmJxC%2FQ%3Dreserved=0
>
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira


<    5   6   7   8   9   10   11   12   13   14   >