RE: Load time is very slow

2022-01-12 Thread Maria Jose Esteve
Great ;P thx Hiedra De: Harbs Enviado el: jueves, 13 de enero de 2022 0:28 Para: users@royale.apache.org Asunto: Re: Load time is very slow The branch is a breaking change (libraries will need to be recompiled to work after merging). I still have some work to do, and it’ll likely be a couple/

Re: Load time is very slow

2022-01-12 Thread Harbs
The branch is a breaking change (libraries will need to be recompiled to work after merging). I still have some work to do, and it’ll likely be a couple/few weeks before I can get to that. > On Jan 13, 2022, at 1:25 AM, Maria Jose Esteve wrote: > > Hi, @Harb, the branches "feature/ROYALE_INTE

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Harbs
OK. > On Jan 13, 2022, at 12:37 AM, Alex Harui wrote: > > The problem is that some output might look like this: > > bar.Foo.prototype.ROYALE_CLASS_INFO = { name: “Foo”. qName: “bar.Foo” }; > > And the minifier will rename qName in the output differently in the main app > vs the module: >

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Alex Harui
The problem is that some output might look like this: bar.Foo.prototype.ROYALE_CLASS_INFO = { name: “Foo”. qName: “bar.Foo” }; And the minifier will rename qName in the output differently in the main app vs the module: In the main app: bar.Foo..prototype.ROYALE_CLASS_INFO = { name: “Foo”. a: “b

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Harbs
Didn’t totally grok what you said. Can you give a practical difference in when it would be used? > On Jan 12, 2022, at 7:39 PM, Alex Harui wrote: > > The option I added takes a list of members and post-processes. I think all > other options change what is output during the compilation and >

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Alex Harui
The option I added takes a list of members and post-processes. I think all other options change what is output during the compilation and -js-dynamic-access-unknown-members doesn’t take a list of members. -Alex From: Harbs Reply-To: "users@royale.apache.org" Date: Wednesday, January 12, 2022

Re: Spectrum UI components

2022-01-12 Thread Roman Isitua
Understood. Thanks. On Wed, Jan 12, 2022 at 5:14 PM Harbs wrote: > > > On Jan 12, 2022, at 6:08 PM, Roman Isitua wrote: > > What is the purpose of ? since it was no > longer necessary > > > It’s necessary in Royale Basic to use ArrayLists. > > In Spectrum, there’s a default ListModel which c

Re: Spectrum UI components

2022-01-12 Thread Harbs
> On Jan 12, 2022, at 6:08 PM, Roman Isitua wrote: > > What is the purpose of ? since it was no > longer necessary It’s necessary in Royale Basic to use ArrayLists. In Spectrum, there’s a default ListModel which correctly handles both both Array and ArrayList data. > > Also, another

Re: Spectrum UI components

2022-01-12 Thread Harbs
Yeah. You probably need these: (handles modifying single items to the ArrayList) (handles removeAll()) > On Jan 12, 2022, at 5:23 PM, Roman Isitua wrote: > > The base component for the mxml is a FlexContainer. > > I have attached it to this mail. You can have a look. > > > On Wed, Ja

Re: Spectrum UI components

2022-01-12 Thread Roman Isitua
The base component for the mxml is a FlexContainer. I have attached it to this mail. You can have a look. On Wed, Jan 12, 2022 at 4:19 PM Harbs wrote: > How are you assigning the ArrayList? What’s the base component for the > MXML? > > You might need to add ContainerDataBinding. > > On Jan 12,

Re: Spectrum UI components

2022-01-12 Thread Harbs
Also: If you need the list to dynamically update itself you might need EasyDataProviderChangeNotifier like I have below. > On Jan 12, 2022, at 5:19 PM, Harbs wrote: > > How are you assigning the ArrayList? What’s the base component for the MXML? > > You might need to add ContainerDataBinding.

Re: Spectrum UI components

2022-01-12 Thread Harbs
How are you assigning the ArrayList? What’s the base component for the MXML? You might need to add ContainerDataBinding. > On Jan 12, 2022, at 5:08 PM, Roman Isitua wrote: > > I have tested it again. No errors. > > > > On Wed, Jan 12, 2022 at 3:54 PM Harbs > wr

Re: Spectrum UI components

2022-01-12 Thread Roman Isitua
I have tested it again. No errors. On Wed, Jan 12, 2022 at 3:54 PM Harbs wrote: > Do you get an error of some kind? > > On Jan 12, 2022, at 4:29 PM, Roman Isitua wrote: > > Sorry, what I meant to say is that the arrayList does not render. > > For example when I use Array as follows > > >

Re: Spectrum UI components

2022-01-12 Thread Harbs
Do you get an error of some kind? > On Jan 12, 2022, at 4:29 PM, Roman Isitua wrote: > > Sorry, what I meant to say is that the arrayList does not render. > > For example when I use Array as follows > > > > >labelField="description" dataProvider="{menuItemLi

Re: Spectrum UI components

2022-01-12 Thread Harbs
Here’s the list of beads I’m using for a Spectrum List elsewhere (you don’t necessarily need ArrayListSelectionModel): > On Jan 12, 2022, at 4:18 PM, Harbs wrote: > >> It's not working. > > What’s not working? > >> Did I apply it correctly ? > > Looks like it. > >> Anoth

Re: Spectrum UI components

2022-01-12 Thread Harbs
> It's not working. What’s not working? > Did I apply it correctly ? Looks like it. > Another question, which one do you use for your apps in production ? I usually use Arrays. The css code was copied from one of my apps which uses an ArrayList in a Spectrum List.. > On Jan 12, 2022, at 4:0

Re: Spectrum UI components

2022-01-12 Thread Roman Isitua
I have attempted the second approach. It's not working. I am not sure I am applying it correctly. See how I defined it. Note: in the commented out code above, I supplied an array. It works fine. Did I apply it

Re: Spectrum UI components

2022-01-12 Thread Harbs
Any one of those three should work. > On Jan 12, 2022, at 3:09 PM, Harbs wrote: > > CSS: > #uploadsList{ > IBeadModel: > ClassReference("org.apache.royale.html.beads.models.ArrayListSelectionModel"); > IDataProviderItemRendererMapper: > ClassReference("org.apache.royale.html.beads.DataItem

Re: Spectrum UI components

2022-01-12 Thread Harbs
CSS: #uploadsList{ IBeadModel: ClassReference("org.apache.royale.html.beads.models.ArrayListSelectionModel"); IDataProviderItemRendererMapper: ClassReference("org.apache.royale.html.beads.DataItemRendererFactoryForArrayList"); } MXML: ActionScript: addBead(new ArrayListSel

Re: Spectrum UI components

2022-01-12 Thread Roman Isitua
How can this be applied let say for example on an sp:List ? As a bead ? Let's say I want to use arrayList as data provider. On Wed, 12 Jan 2022, 13:41 Harbs, wrote: > Yes.The default IDataProviderItemRendererMapper is > DataItemRendererFactoryForArrayData. > > If you are using collections yo

Re: Spectrum UI components

2022-01-12 Thread Harbs
Yes.The default IDataProviderItemRendererMapper is DataItemRendererFactoryForArrayData. If you are using collections you should use DataItemRendererFactoryForArrayList or DataItemRendererFactoryForCollectionView instead. HTH, Harbs > On Jan 12, 2022, at 1:35 PM, Roman Isitua wrote: > > Hence

Re: Spectrum UI components

2022-01-12 Thread Roman Isitua
Hence the reason, I need to confirm from Harbs the array data type that is supported in spectrum. On Tue, 11 Jan 2022, 21:33 Maria Jose Esteve, wrote: > Hi, > > From what I see in the "ListModel.as" code it allows Object, IArray and > IArrayList. > > > > Hiedra > > > > *De:* Roman Isitua > *E

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Roman Isitua
Thanks for the update. I will pull the release modules branch source, build and test again. One question what compilation options should be used for this test ? Load externs, externs, link report ? Which options should be applied for the main and which option should be used for the module ? >

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Harbs
How is this different than -js-dynamic-access-unknown-members? > On Jan 12, 2022, at 10:04 AM, Alex Harui wrote: > > I added a -prevent-rename-object-keys compiler option that works as a > post-processor. It scans the js files being copied into bin/js-debug and > adds quotes around things.

Re: Compiling Modules (was Re: Load time is very slow)

2022-01-12 Thread Greg Dove
Sounds great Alex! I will try to check it out early next week. I especially like this: "Another difference is that the new compiler strategy doesn’t use custom overrides of Closure Compiler passes which was fragile and will make it easier to upgrade to newer versions of Closure Compiler." I trie