[MAVEN-BUILD] Royale-typedefs - Build # 601 - Still Failing
The Apache Jenkins build system has built Royale-typedefs (build #601) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-typedefs/601/ to view the results.
[MAVEN-BUILD] Royale-asjs - Build # 1019 - Fixed
The Apache Jenkins build system has built Royale-asjs (build #1019) Status: Fixed Check console output at https://builds.apache.org/job/Royale-asjs/1019/ to view the results.
[MAVEN-BUILD] Royale-asjs - Build # 1018 - Still Failing
The Apache Jenkins build system has built Royale-asjs (build #1018) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-asjs/1018/ to view the results.
[royale-asjs] branch develop updated: fix update in table component
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 dea3cd4 fix update in table component dea3cd4 is described below commit dea3cd4d9ed0c67cbbf0e26d3cf48105538a0ec5 Author: Carlos Rovira AuthorDate: Wed Aug 29 00:47:37 2018 +0200 fix update in table component --- .../UpdateTableItemRendererForArrayListData.as | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/UpdateTableItemRendererForArrayListData.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/UpdateTableItemRendererForArrayListData.as index 3675c4f..68c7ae3 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/UpdateTableItemRendererForArrayListData.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/UpdateTableItemRendererForArrayListData.as @@ -29,6 +29,8 @@ package org.apache.royale.jewel.beads.itemRenderers import org.apache.royale.events.Event; import org.apache.royale.events.IEventDispatcher; import org.apache.royale.jewel.beads.models.TableModel; + import org.apache.royale.jewel.supportClasses.table.TableCell; + import org.apache.royale.jewel.supportClasses.table.TableRow; /** * Handles the update of an itemRenderer in a Table component once the corresponding @@ -53,7 +55,6 @@ package org.apache.royale.jewel.beads.itemRenderers { } - protected var _strand:IStrand; /** * @copy org.apache.royale.core.IStrand @@ -122,10 +123,17 @@ package org.apache.royale.jewel.beads.itemRenderers */ protected function handleItemUpdated(event:CollectionEvent):void { -var ir:ISelectableItemRenderer = itemRendererParent.getItemRendererForIndex(event.index) as ISelectableItemRenderer; + var ir:ISelectableItemRenderer; + var cell:TableCell; + var processedRow:TableRow = itemRendererParent.getElementAt(event.index) as TableRow; + var n:int = processedRow.numElements; + for (var i:int = 0; i < n; i++) + { + cell = processedRow.getElementAt(i) as TableCell; + ir = cell.getElementAt(0) as ISelectableItemRenderer; + setData(ir, event.item, event.index); + } -setData(ir, event.item, event.index); - (_strand as IEventDispatcher).dispatchEvent(new Event("layoutNeeded")); }
[royale-asjs] branch develop updated: fix remove a row in table component
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 096c50a fix remove a row in table component 096c50a is described below commit 096c50af2fba68f0c005b76b8a4b3023db01a57f Author: Carlos Rovira AuthorDate: Wed Aug 29 00:36:58 2018 +0200 fix remove a row in table component --- .../AddTableItemRendererForArrayListData.as| 9 +++-- .../RemoveTableItemRendererForArrayListData.as | 23 -- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as index 1150310..c826e5c 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as @@ -19,7 +19,6 @@ package org.apache.royale.jewel.beads.itemRenderers { import org.apache.royale.core.IBead; - import org.apache.royale.core.IDataProviderModel; import org.apache.royale.core.IItemRendererClassFactory; import org.apache.royale.core.IItemRendererParent; import org.apache.royale.core.IList; @@ -32,13 +31,11 @@ package org.apache.royale.jewel.beads.itemRenderers import org.apache.royale.events.CollectionEvent; import org.apache.royale.events.Event; import org.apache.royale.events.IEventDispatcher; - import org.apache.royale.utils.loadBeadFromValuesManager; + import org.apache.royale.html.supportClasses.DataItemRenderer; + import org.apache.royale.jewel.beads.itemRenderers.ITextItemRenderer; import org.apache.royale.jewel.beads.models.TableModel; import org.apache.royale.jewel.supportClasses.table.TableColumn; - import org.apache.royale.jewel.beads.itemRenderers.ITextItemRenderer; - import org.apache.royale.jewel.supportClasses.table.TBodyContentArea; - import org.apache.royale.html.supportClasses.DataItemRenderer; - import org.apache.royale.collections.ICollectionView; + import org.apache.royale.utils.loadBeadFromValuesManager; /** * Handles the adding of an itemRenderer in a Table component once the corresponding datum has been added diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/RemoveTableItemRendererForArrayListData.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/RemoveTableItemRendererForArrayListData.as index bdfcf44..06685ba 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/RemoveTableItemRendererForArrayListData.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/RemoveTableItemRendererForArrayListData.as @@ -19,17 +19,17 @@ package org.apache.royale.jewel.beads.itemRenderers { import org.apache.royale.core.IBead; - import org.apache.royale.core.IDataProviderModel; import org.apache.royale.core.IItemRendererParent; import org.apache.royale.core.IList; import org.apache.royale.core.ISelectableItemRenderer; import org.apache.royale.core.ISelectionModel; import org.apache.royale.core.IStrand; - import org.apache.royale.core.UIBase; import org.apache.royale.events.CollectionEvent; import org.apache.royale.events.Event; import org.apache.royale.events.IEventDispatcher; import org.apache.royale.jewel.beads.models.TableModel; + import org.apache.royale.jewel.supportClasses.table.TableCell; + import org.apache.royale.jewel.supportClasses.table.TableRow; /** * Handles the removal of an itemRenderer in a Table component once the corresponding @@ -122,20 +122,23 @@ package org.apache.royale.jewel.beads.itemRenderers */ protected function handleItemRemoved(event:CollectionEvent):void { - var parent:UIBase = itemRendererParent as UIBase; var ir:ISelectableItemRenderer; - - // for(var j:int = 0; j < model.columns.length; j++) - // { - ir = parent.getElementAt(event.index) as ISelectableItemRenderer; + var cell:TableCell; + var processedRow:TableRow = itemRendererParent.getElementAt(event.index) as TableRow; + while (processedRow.numElements > 0) { +
[royale-asjs] branch develop updated: avoid listeners to remain when change dataProvider
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 b32d34d avoid listeners to remain when change dataProvider b32d34d is described below commit b32d34d1822c2b169a26a9534fa574a05705d165 Author: Carlos Rovira AuthorDate: Wed Aug 29 00:04:18 2018 +0200 avoid listeners to remain when change dataProvider --- .../src/main/royale/TablePlayGround.mxml | 2 +- .../AddTableItemRendererForArrayListData.as| 20 - .../RemoveListItemRendererForArrayListData.as | 7 +++- .../RemoveTableItemRendererForArrayListData.as | 49 ++ .../UpdateListItemRendererForArrayListData.as | 9 +++- .../UpdateTableItemRendererForArrayListData.as | 41 +++--- .../royale/jewel/itemRenderers/ListItemRenderer.as | 2 +- .../jewel/itemRenderers/TableItemRenderer.as | 2 +- 8 files changed, 63 insertions(+), 69 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml b/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml index 05b9d9e..72acba0 100644 --- a/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml @@ -240,7 +240,7 @@ limitations under the License. public function removeItemAt():void { - (table.dataProvider as ArrayList).removeAll(); + (table.dataProvider as ArrayList).removeItemAt(0); // tablesModel.guitarrists.removeItemAt(0); } diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as index 1b489c5..1150310 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as @@ -62,11 +62,8 @@ package org.apache.royale.jewel.beads.itemRenderers public function AddTableItemRendererForArrayListData() { } - + protected var _strand:IStrand; - -protected var labelField:String; - /** * @copy org.apache.royale.core.IStrand * @@ -80,7 +77,11 @@ package org.apache.royale.jewel.beads.itemRenderers _strand = value; IEventDispatcher(value).addEventListener("initComplete", initComplete); } + +protected var labelField:String; + protected var model:TableModel; + /** * finish setup * @@ -132,8 +133,7 @@ package org.apache.royale.jewel.beads.itemRenderers { var presentationModel:IListPresentationModel = _strand.getBeadByType(IListPresentationModel) as IListPresentationModel; var column:TableColumn; - var tbody:TBodyContentArea = itemRendererParent as TBodyContentArea; -var ir:ITextItemRenderer; + var ir:ITextItemRenderer; var index:int = event.index * model.columns.length; for(var j:int = 0; j < model.columns.length; j++) @@ -145,7 +145,7 @@ package org.apache.royale.jewel.beads.itemRenderers ir = column.itemRenderer.newInstance() as ITextItemRenderer; } else { - ir = itemRendererFactory.createItemRenderer(tbody) as ITextItemRenderer; + ir = itemRendererFactory.createItemRenderer(itemRendererParent) as ITextItemRenderer; } labelField = column.dataField; @@ -163,11 +163,11 @@ package org.apache.royale.jewel.beads.itemRenderers } // update the index values in the itemRenderers to correspond to their shifted positions. - var n:int = tbody.numElements; + var n:int = itemRendererParent.numElements; var d:DataItemRenderer; for (var i:int = event.index; i < n; i++) { - d = tbody.getItemRendererForIndex(i) as DataItemRenderer; + d =
[MAVEN-BUILD] Royale-asjs - Build # 1017 - Failure
The Apache Jenkins build system has built Royale-asjs (build #1017) Status: Failure Check console output at https://builds.apache.org/job/Royale-asjs/1017/ to view the results.
[MAVEN-BUILD] Royale-typedefs - Build # 600 - Still Failing
The Apache Jenkins build system has built Royale-typedefs (build #600) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-typedefs/600/ to view the results.
[MAVEN-BUILD] Royale-asjs - Build # 1016 - Fixed
The Apache Jenkins build system has built Royale-asjs (build #1016) Status: Fixed Check console output at https://builds.apache.org/job/Royale-asjs/1016/ to view the results.
[royale-asjs] branch develop updated: preparing to fix remove and update in table component
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 b3452ed preparing to fix remove and update in table component b3452ed is described below commit b3452edcb476ab538f72de3da34770d5b4ac35fa Author: Carlos Rovira AuthorDate: Tue Aug 28 20:44:56 2018 +0200 preparing to fix remove and update in table component --- .../JewelExample/src/main/royale/ListPlayGround.mxml | 2 ++ .../JewelExample/src/main/royale/TablePlayGround.mxml | 13 - .../Jewel/src/main/resources/jewel-manifest.xml| 6 +- .../AddTableItemRendererForArrayListData.as| 10 +- .../RemoveAllItemRendererForArrayListData.as | 10 +- .../RemoveListItemRendererForArrayListData.as | 12 ++-- ...a.as => RemoveTableItemRendererForArrayListData.as} | 18 +- .../UpdateListItemRendererForArrayListData.as | 14 +++--- ...a.as => UpdateTableItemRendererForArrayListData.as} | 14 +++--- 9 files changed, 54 insertions(+), 45 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml index a55f912..eea0870 100644 --- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml @@ -72,6 +72,7 @@ limitations under the License. public function removeItemAt():void { (iconList.dataProvider as ArrayList).removeItemAt(0); + // listModel.iconListData.removeItemAt(0); } public function updateFirstItem():void @@ -80,6 +81,7 @@ limitations under the License. item.label = "What??"; item.icon = MaterialIconType.ACCESSIBILITY; (iconList.dataProvider as ArrayList).itemUpdated(item); + // listModel.iconListData.itemUpdated(item); } public function removeAllData():void diff --git a/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml b/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml index 2a57edd..05b9d9e 100644 --- a/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml @@ -192,8 +192,8 @@ limitations under the License. - + + @@ -240,14 +240,17 @@ limitations under the License. public function removeItemAt():void { - tablesModel.guitarrists.removeItemAt(0); + (table.dataProvider as ArrayList).removeAll(); + // tablesModel.guitarrists.removeItemAt(0); } public function updateFirstItem():void { - var item:Object = tablesModel.guitarrists.getItemAt(0); + var item:Object = (table.dataProvider as ArrayList).getItemAt(0); item.guitarrist = "Mango"; - tablesModel.guitarrists.itemUpdated(item); + item.year = 2001; + (table.dataProvider as ArrayList).itemUpdated(item); + // tablesModel.guitarrists.itemUpdated(item); } public function removeAllData():void diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml index 4b61bce..b3b1090 100644 --- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml +++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml @@ -126,9 +126,13 @@ - + + + + + diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/AddTableItemRendererForArrayListData.as
[royale-asjs] branch develop updated: Fix remove and update renderers in List component
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 7fd7d35 Fix remove and update renderers in List component 7fd7d35 is described below commit 7fd7d359e75c16309242e1434821297fdd926581 Author: Carlos Rovira AuthorDate: Tue Aug 28 20:16:57 2018 +0200 Fix remove and update renderers in List component --- .../src/main/royale/ListPlayGround.mxml| 5 +++-- .../src/main/royale/TablePlayGround.mxml | 8 +++ .../src/main/royale/models/ListsModel.as | 18 +++ .../Jewel/src/main/resources/jewel-manifest.xml| 4 ++-- .../AddListItemRendererForArrayListData.as | 4 ++-- .../AddTableItemRendererForArrayListData.as| 4 ++-- .../RemoveAllItemRendererForArrayListData.as | 2 +- ...s => RemoveListItemRendererForArrayListData.as} | 18 +++ ...s => UpdateListItemRendererForArrayListData.as} | 26 +++--- .../royale/jewel/itemRenderers/ListItemRenderer.as | 8 +++ 10 files changed, 49 insertions(+), 48 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml index 25def76..a55f912 100644 --- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml @@ -78,6 +78,7 @@ limitations under the License. { var item:IconListVO = (iconList.dataProvider as ArrayList).getItemAt(0) as IconListVO; item.label = "What??"; + item.icon = MaterialIconType.ACCESSIBILITY; (iconList.dataProvider as ArrayList).itemUpdated(item); } @@ -130,8 +131,8 @@ limitations under the License. sourcePropertyName="iconListData" destinationPropertyName="dataProvider" /> - - + + diff --git a/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml b/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml index a2d5bf5..2a57edd 100644 --- a/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/TablePlayGround.mxml @@ -38,7 +38,7 @@ limitations under the License. - + @@ -185,15 +185,15 @@ limitations under the License. - + - - + diff --git a/examples/royale/JewelExample/src/main/royale/models/ListsModel.as b/examples/royale/JewelExample/src/main/royale/models/ListsModel.as index 880951f..b76d480 100644 --- a/examples/royale/JewelExample/src/main/royale/models/ListsModel.as +++ b/examples/royale/JewelExample/src/main/royale/models/ListsModel.as @@ -42,15 +42,15 @@ package models } private var _avengers:ArrayList = new ArrayList([ - {nickname: "Iron Man"}, - {nickname: "Hulk"}, - {nickname: "Thor"}, - {nickname: "Captain America"}, -{nickname: "Black Widow"}, -
[MAVEN-BUILD] Royale-asjs - Build # 1015 - Still Failing
The Apache Jenkins build system has built Royale-asjs (build #1015) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-asjs/1015/ to view the results.
[MAVEN-BUILD] Royale-asjs - Build # 1014 - Still Failing
The Apache Jenkins build system has built Royale-asjs (build #1014) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-asjs/1014/ to view the results.
[royale-asjs] branch develop updated: minor fixes to example
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 b060cbd minor fixes to example b060cbd is described below commit b060cbd9eb5e31932fe06cd35d4a72c86a6c6761 Author: Carlos Rovira AuthorDate: Tue Aug 28 14:31:51 2018 +0200 minor fixes to example --- examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml index e54a52f..25def76 100644 --- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml @@ -111,7 +111,7 @@ limitations under the License. - + @@ -151,8 +151,8 @@ limitations under the License. tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" phoneDenominator="1"> - - + +
[MAVEN-BUILD] Royale-asjs - Build # 1013 - Failure
The Apache Jenkins build system has built Royale-asjs (build #1013) Status: Failure Check console output at https://builds.apache.org/job/Royale-asjs/1013/ to view the results.
[royale-asjs] branch develop updated: fix fiere change event in List when change selectedIndex or selectedItem
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 0737fda fix fiere change event in List when change selectedIndex or selectedItem 0737fda is described below commit 0737fda30b161543b0c838d82ca79d7cf8cead01 Author: Carlos Rovira AuthorDate: Tue Aug 28 14:14:10 2018 +0200 fix fiere change event in List when change selectedIndex or selectedItem --- examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml| 6 +- .../src/main/royale/org/apache/royale/jewel/beads/views/ListView.as | 5 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml index 11568a2..e54a52f 100644 --- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml @@ -106,9 +106,13 @@ limitations under the License. - + + + + + diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as index 16a59c4..65f04ee 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ListView.as @@ -18,13 +18,14 @@ package org.apache.royale.jewel.beads.views { - import org.apache.royale.html.beads.DataContainerView; import org.apache.royale.core.IBead; import org.apache.royale.core.IRollOverModel; import org.apache.royale.core.ISelectableItemRenderer; import org.apache.royale.core.ISelectionModel; import org.apache.royale.core.IStrand; import org.apache.royale.events.Event; + import org.apache.royale.events.IEventDispatcher; + import org.apache.royale.html.beads.DataContainerView; /** * The ListView class creates the visual elements of the org.apache.royale.jewel.List @@ -76,6 +77,8 @@ package org.apache.royale.jewel.beads.views ir.selected = true; lastSelectedIndex = listModel.selectedIndex; + + IEventDispatcher(_strand).dispatchEvent(new Event("change")); } protected var lastRollOverIndex:int = -1;
[royale-asjs] branch develop updated: make external change in ComboBox fire change event
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 6fa503a make external change in ComboBox fire change event 6fa503a is described below commit 6fa503a6fab8dd28f6de94b25f9b46d72bcd33c9 Author: Carlos Rovira AuthorDate: Tue Aug 28 14:05:58 2018 +0200 make external change in ComboBox fire change event --- .../JewelExample/src/main/royale/DropDownListPlayGround.mxml | 8 examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml | 9 ++--- .../royale/org/apache/royale/jewel/beads/views/ComboBoxView.as | 3 ++- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml index 0512bf5..568246d 100644 --- a/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml @@ -26,19 +26,19 @@ limitations under the License. diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml index 49aecdb..11568a2 100644 --- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml @@ -34,6 +34,7 @@ limitations under the License. private var _simple:ArrayList = new ArrayList(["Blueberries", "Bananas", "Lemons", "Oranges", "Watermelons", "Apples", "Cherries", "Coconuts", "Figs", "Grapes", "Kiwis", "Mangos"]); + [Bindable] public function get simple():ArrayList { return _simple @@ -102,13 +103,7 @@ limitations under the License. phoneNumerator="1" phoneDenominator="1"> - - - - - + diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as index 14e8c8c..bb698a7 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/ComboBoxView.as @@ -25,7 +25,6 @@ package org.apache.royale.jewel.beads.views import org.apache.royale.core.ValuesManager; import org.apache.royale.jewel.TextInput; import org.apache.royale.jewel.Button; - import org.apache.royale.jewel.Button; import org.apache.royale.jewel.List; import org.apache.royale.events.IEventDispatcher; import org.apache.royale.events.Event; @@ -190,6 +189,8 @@ package org.apache.royale.jewel.beads.views protected function handleItemChange(event:Event):void { itemChangeAction(); + + IEventDispatcher(_strand).dispatchEvent(new Event("change")); } /**
[royale-asjs] branch develop updated: update jewel themes with new DropDownStyles
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 abf2f72 update jewel themes with new DropDownStyles abf2f72 is described below commit abf2f72d0757153d047dea11ee695185cd6b4d13 Author: Carlos Rovira AuthorDate: Tue Aug 28 13:46:07 2018 +0200 update jewel themes with new DropDownStyles --- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 46 +- .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + .../src/main/resources/defaults.css| 45 + 24 files changed, 216 insertions(+), 876 deletions(-) diff --git a/frameworks/themes/Jewel-Dark-NoFlat-Primary-Amethyst-Theme/src/main/resources/defaults.css b/frameworks/themes/Jewel-Dark-NoFlat-Primary-Amethyst-Theme/src/main/resources/defaults.css index 2065831..1982c07 100644 --- a/frameworks/themes/Jewel-Dark-NoFlat-Primary-Amethyst-Theme/src/main/resources/defaults.css +++ b/frameworks/themes/Jewel-Dark-NoFlat-Primary-Amethyst-Theme/src/main/resources/defaults.css @@ -371,46 +371,18 @@ j|Card { } .jewel.dropdownlist { - cursor: pointer; - display: inline-block; - margin: 0; - padding: 10px 16px; - min-width: 74px; - min-height: 34px; - background: linear-gradient(#66, #4c4c4c); + width: 200px; + height: 38px; + background-color: linear-gradient(#7f7f7f, #737373); + background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(0.00, -1.00)' fill='%23C92CC6' fill-rule='nonzero'%3E%3Cg transform='translate(-2.00, 0.00)'%3E%3Cpolygon transform='translate(8.00, 4.705000) scale(1, -1) translate(-8.00, -4.705000) ' points='3.41 8.41 8 3.83 12.59 8.41 14 7 8 1 2 7'%3E%3C/polygon%3 [...] + background-size: 8%; + background-position: 170px center; + background-repeat: no-repeat; border: 1px solid #33; - box-shadow: inset 0 1px 0 #8c8c8c; - border-radius: 3px; - font-family: "Lato", sans-serif; - font-size: 1em; - font-weight: bold; - color: #FF; - text-transform: uppercase; - text-decoration: none; - text-shadow: 0 -1px 0 rgba(13, 13, 13, 0.7); -} -.jewel.dropdownlist:hover, .jewel.dropdownlist:hover:focus { - background: linear-gradient(#595959, #404040); - border: 1px solid #262626; -} -.jewel.dropdownlist:active, .jewel.dropdownlist:active:focus { - background: linear-gradient(#404040, #262626); - border: 1px solid #0d0d0d; - box-shadow: inset 0px 1px 3px 0px rgba(50, 50, 50, 0.5); + border-radius: 0.25rem; } .jewel.dropdownlist:focus { - outline: none; - border: 1px solid #33; - box-shadow: inset 0px 0px 0px 1px rgba(217, 217, 217, 0.5), inset 0 1px 0 rgba(229, 229, 229, 0.6); -} -.jewel.dropdownlist[disabled] { - cursor: unset; - background: #404040; - border: 1px solid #0d0d0d; - box-shadow: none; - color: #737373; - font-weight: 400; - text-shadow: unset; + border: 1px solid #8a1e88; } .fonticon.dark { diff --git
[royale-asjs] branch develop updated: fix numeric stepper positioning for phone/tablets
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 ee92b4d fix numeric stepper positioning for phone/tablets ee92b4d is described below commit ee92b4d99bfca8a382f40504cc7da263b5ba652c Author: Carlos Rovira AuthorDate: Tue Aug 28 13:42:30 2018 +0200 fix numeric stepper positioning for phone/tablets --- .../projects/Jewel/src/main/resources/defaults.css | 17 + .../Jewel/src/main/sass/components/_numericstepper.sass | 16 ++-- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css index d88aed4..8087032 100644 --- a/frameworks/projects/Jewel/src/main/resources/defaults.css +++ b/frameworks/projects/Jewel/src/main/resources/defaults.css @@ -2799,8 +2799,8 @@ j|Navigation { } .jewel.numericstepper .jewel.textinput { z-index: 1; -position: absolute; -left: 58px; +position: relative; +left: 38px; } } j|NumericStepper { @@ -2834,17 +2834,18 @@ j|NumericStepper { } @media (max-width: 992px) { + .jewel.spinner { +position: relative; +left: -112px; +flex-direction: row; +width: auto; + } .jewel.spinner .jewel.button { width: 39px; height: 38px; } - .jewel.spinner .jewel.button.up { -position: absolute; -left: 20px; - } .jewel.spinner .jewel.button.down { -position: absolute; -left: 169px; +left: 110px; } } j|Spinner { diff --git a/frameworks/projects/Jewel/src/main/sass/components/_numericstepper.sass b/frameworks/projects/Jewel/src/main/sass/components/_numericstepper.sass index bbac3cf..084b6b1 100644 --- a/frameworks/projects/Jewel/src/main/sass/components/_numericstepper.sass +++ b/frameworks/projects/Jewel/src/main/sass/components/_numericstepper.sass @@ -35,8 +35,8 @@ $numericstepper-button-yoffset: calc(50% - #{$numericstepper-button-height/2}) height: 39px .jewel.textinput z-index: 1 -position: absolute -left: 58px +position: relative +left: 38px j|NumericStepper IBeadModel: ClassReference("org.apache.royale.jewel.beads.models.RangeModel") @@ -85,16 +85,20 @@ j|NumericStepper @media (max-width: $desktop) .jewel.spinner +position: relative +left: -112px +flex-direction: row +width: auto .jewel.button width: 39px height: 38px &.up -position: absolute -left: 20px +// position: absolute +// left: 20px &.down -position: absolute -left: 169px +// position: absolute +left: 110px j|Spinner
[royale-asjs] branch develop updated: Improve ddl & cmb examples
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 c95fd4f Improve ddl & cmb examples c95fd4f is described below commit c95fd4ffb44daac5e1a275c398c5cffadede1947 Author: Carlos Rovira AuthorDate: Tue Aug 28 13:11:47 2018 +0200 Improve ddl & cmb examples --- .../src/main/royale/DropDownListPlayGround.mxml| 64 +- .../src/main/royale/ListPlayGround.mxml| 6 +- .../royale/org/apache/royale/jewel/ComboBox.as | 13 + .../royale/jewel/beads/views/DropDownListView.as | 9 +-- 4 files changed, 59 insertions(+), 33 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml index e57c3e2..0512bf5 100644 --- a/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml @@ -24,23 +24,21 @@ limitations under the License. xmlns:models="models.*"> - @@ -54,31 +52,39 @@ limitations under the License. - - + - + + + + + - - + - + + + + + @@ -87,15 +93,19 @@ limitations under the License. - - + - + + + + + @@ -103,16 +113,20 @@ limitations under the License. - - + - + + + + + diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml index 3fcdd5e..49aecdb 100644 --- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml @@ -110,7 +110,11 @@ limitations under the License. - + + + + + diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as index e329e29..f108c59 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as @@ -25,6 +25,19 @@ package org.apache.royale.jewel import
[MAVEN-BUILD] Royale-typedefs - Build # 599 - Still Failing
The Apache Jenkins build system has built Royale-typedefs (build #599) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-typedefs/599/ to view the results.
[MAVEN-BUILD] Royale-asjs - Build # 1012 - Fixed
The Apache Jenkins build system has built Royale-asjs (build #1012) Status: Fixed Check console output at https://builds.apache.org/job/Royale-asjs/1012/ to view the results.
[royale-asjs] branch develop updated: add labelField to CombBox and improve examples
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 349522b add labelField to CombBox and improve examples 349522b is described below commit 349522b61d13aa64f75f06c61350bf2346ef24ae Author: Carlos Rovira AuthorDate: Tue Aug 28 11:59:46 2018 +0200 add labelField to CombBox and improve examples --- .../src/main/royale/DropDownListPlayGround.mxml| 62 .../src/main/royale/models/ListsModel.as | 17 + .../royale/org/apache/royale/jewel/ComboBox.as | 82 +- 3 files changed, 132 insertions(+), 29 deletions(-) diff --git a/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml index e943b62..e57c3e2 100644 --- a/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml +++ b/examples/royale/JewelExample/src/main/royale/DropDownListPlayGround.mxml @@ -27,12 +27,20 @@ limitations under the License. @@ -54,15 +62,43 @@ limitations under the License. - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -76,8 +112,8 @@ limitations under the License. - - + + diff --git a/examples/royale/JewelExample/src/main/royale/models/ListsModel.as b/examples/royale/JewelExample/src/main/royale/models/ListsModel.as index 9f3e468..880951f 100644 --- a/examples/royale/JewelExample/src/main/royale/models/ListsModel.as +++ b/examples/royale/JewelExample/src/main/royale/models/ListsModel.as @@ -41,6 +41,23 @@ package models return _watchmen; } + private var _avengers:ArrayList = new ArrayList([ + {nickname: "Iron Man"}, + {nickname: "Hulk"}, + {nickname: "Thor"}, + {nickname: "Captain America"}, +{nickname: "Black Widow"}, +{nickname: "Hawkeye"}, +{nickname: "Vision"}, +{nickname: "Scarlet Witch"}, +{nickname: "Spiderman"} + ]); + public function get avengers():ArrayList + { + return _avengers; + } + + /** * Used in the List example. diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as index 93988f6..e329e29 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ComboBox.as @@ -18,11 +18,12 @@ package org.apache.royale.jewel { -import org.apache.royale.core.IUIBase; import org.apache.royale.core.StyledUIBase; - import org.apache.royale.core.IComboBoxModel; -import org.apache.royale.jewel.beads.models.ComboBoxModel; + import org.apache.royale.core.ISelectionModel; + import org.apache.royale.core.IDataProviderModel; + import org.apache.royale.core.IListPresentationModel; + import org.apache.royale.jewel.beads.models.ListPresentationModel; [Event(name="change", type="org.apache.royale.events.Event")] @@ -40,7 +41,7 @@ package
[MAVEN-BUILD] Royale-compiler - Build # 479 - Failure
The Apache Jenkins build system has built Royale-compiler (build #479) Status: Failure Check console output at https://builds.apache.org/job/Royale-compiler/479/ to view the results.