(royale-asjs) branch develop updated: Jewel: Fix issue in DateChooser where Buttons next/previous without setup text property were sized incorrectly

2024-01-15 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 5b69700c38 Jewel: Fix issue in DateChooser where Buttons next/previous 
without setup text property were sized incorrectly
5b69700c38 is described below

commit 5b69700c38bb7bdc3a5ae9f0882d95c5457ce59d
Author: Piotr Zarzycki 
AuthorDate: Mon Jan 15 14:44:04 2024 +0100

Jewel: Fix issue in DateChooser where Buttons next/previous without setup 
text property were sized incorrectly

- Text properties on buttons shouldn't be needed in case of DateChooser. I 
have added min/max width/height for buttons next/prev
- Remove in DateField redundant setup of text on Button
---
 frameworks/projects/Jewel/src/main/resources/defaults.css | 4 
 .../royale/org/apache/royale/jewel/beads/views/DateChooserView.as | 2 --
 .../main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as  | 1 -
 frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass  | 3 +++
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css 
b/frameworks/projects/Jewel/src/main/resources/defaults.css
index 05e417b80f..259886a350 100644
--- a/frameworks/projects/Jewel/src/main/resources/defaults.css
+++ b/frameworks/projects/Jewel/src/main/resources/defaults.css
@@ -646,6 +646,10 @@ j|VirtualDataGridColumnList {
 .jewel.datechooser .jewel.table .jewel.tableheadercell.buttonsRow 
.viewSelector::after {
   content: " ";
 }
+.jewel.datechooser .jewel.table .jewel.tableheadercell.buttonsRow 
.previousButton, .jewel.datechooser .jewel.table 
.jewel.tableheadercell.buttonsRow .nextButton {
+  min-width: 40px;
+  min-height: 40px;
+}
 .jewel.datechooser .jewel.table .jewel.tableheadercell.buttonsRow 
.previousButton::after, .jewel.datechooser .jewel.table 
.jewel.tableheadercell.buttonsRow .nextButton::after {
   content: " ";
   position: absolute;
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateChooserView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateChooserView.as
index ee0068f0b8..38a920b02f 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateChooserView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateChooserView.as
@@ -158,11 +158,9 @@ package org.apache.royale.jewel.beads.views
_viewSelector.className = "viewSelector";

_previousButton = new Button();
-   _previousButton.text = "<";
_previousButton.className = "previousButton";

_nextButton = new Button();
-   _nextButton.text = ">";
_nextButton.className = "nextButton";
 
_table = new DateChooserTable();
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as
index aebdf22d28..bd17951a83 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as
@@ -153,7 +153,6 @@ package org.apache.royale.jewel.beads.views
COMPILE::JS {
 _button.element.setAttribute('tabindex', -1);
}
-   _button.text = "";
getHost().addElement(_button);
 
COMPILE::SWF {
diff --git 
a/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass 
b/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass
index 7dc894e612..a620cdb292 100644
--- a/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass
+++ b/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass
@@ -41,6 +41,9 @@ $datechooser-tableitem-size: 38px
 
 .viewSelector::after
 content: ' '
+.previousButton, .nextButton
+min-width: 40px
+min-height: 40px
 .previousButton::after, .nextButton::after
 content: ' '
 position: absolute



[royale-asjs] branch develop updated (dfa37337c1 -> a662217daf)

2023-06-16 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


from dfa37337c1 New bead to set ComboBox List width of Jewel ComboBox
 new d00188bf73 Remove call to parent to create the tooltip
 new e0709ec081 Adding dispatchEvent
 new a662217daf Merge pull request #1223 from cdouine39/patch-3

The 13578 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 frameworks/projects/MXRoyale/src/main/royale/mx/controls/Button.as | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)



[royale-asjs] branch develop updated: Jewel: Add missing method implementation on SWF side

2023-05-19 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 1cce4873cc Jewel: Add missing method implementation on SWF side
1cce4873cc is described below

commit 1cce4873cc70b3c847d3362c6a3e47d5a4e9d021
Author: Piotr Zarzycki 
AuthorDate: Fri May 19 13:36:57 2023 +0200

Jewel: Add missing method implementation on SWF side

- Resolve issue ambiguous reference to Event
---
 .../royale/jewel/beads/layouts/TileHorizontalLayout.as| 15 +++
 .../royale/jewel/beads/layouts/TileVerticalLayout.as  | 12 +---
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
index 13455eb670..fc419d2e20 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
@@ -122,7 +122,14 @@ package org.apache.royale.jewel.beads.layouts
return dispatcher.dispatchEvent(event);
}
 
+   COMPILE::SWF
+   public function willTrigger(type:String):Boolean
+   {
+   return false;
+   }
+
//IEventDispatcher (shared)
+
public function hasEventListener(type:String):Boolean
{
return dispatcher.hasEventListener(type);
@@ -138,12 +145,12 @@ package org.apache.royale.jewel.beads.layouts
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.8
 */
-   override public function beadsAddedHandler(event:Event = 
null):void
+   override public function 
beadsAddedHandler(event:org.apache.royale.events.Event = null):void
{
super.beadsAddedHandler();
 
hostComponent.replaceClass("tile");
-   hostComponent.dispatchEvent(new Event("layoutNeeded"));
+   hostComponent.dispatchEvent(new 
org.apache.royale.events.Event("layoutNeeded"));

COMPILE::JS{
//OSUtils.getOS() == OSUtils.MAC_OS || 
OSUtils.getOS() == OSUtils.IOS_OS ??
@@ -348,7 +355,7 @@ package org.apache.royale.jewel.beads.layouts
}
 
private var _oldScrollWidth:Number;
-   private function observedChangeSize(event:Event):void
+   private function 
observedChangeSize(event:org.apache.royale.events.Event):void
{
COMPILE::JS{
if(_oldScrollWidth != 
hostComponent.element.scrollWidth)
@@ -591,7 +598,7 @@ package org.apache.royale.jewel.beads.layouts
else

child.positioner.style.marginRight = null;

-   child.dispatchEvent(new 
Event('sizeChanged'));
+   child.dispatchEvent(new 
org.apache.royale.events.Event('sizeChanged'));
}
return true;
}
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
index 37f7f33909..09a1eb11ec 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileVerticalLayout.as
@@ -126,6 +126,12 @@ package org.apache.royale.jewel.beads.layouts
return dispatcher.dispatchEvent(event);
}
 
+   COMPILE::SWF
+   public function willTrigger(type:String):Boolean
+   {
+   return false;
+   }
+
//IEventDispatcher (shared)
public function hasEventListener(type:String):Boolean
{
@@ -142,12 +148,12 @@ package org.apache.royale.jewel.beads.layouts
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.8
 */
-   override public function beadsAddedHandler(event:Event = 
null):void
+   override public function 
beadsAddedHandler(event:org.apache.ro

[royale-asjs] branch develop updated: Basic: Remove redundant event listener registration - event listeners are being register in setDataProvider method

2023-05-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 5d418b8ab4 Basic: Remove redundant event listener registration - event 
listeners are being register in setDataProvider method
5d418b8ab4 is described below

commit 5d418b8ab40e306c61d5db64041f35d8d2c5619a
Author: Piotr Zarzycki 
AuthorDate: Wed May 17 10:20:43 2023 +0200

Basic: Remove redundant event listener registration - event listeners are 
being register in setDataProvider method
---
 .../org/apache/royale/html/beads/EasyDataProviderChangeNotifier.as  | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/EasyDataProviderChangeNotifier.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/EasyDataProviderChangeNotifier.as
index 1e99045215..c29ac110b1 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/EasyDataProviderChangeNotifier.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/EasyDataProviderChangeNotifier.as
@@ -68,13 +68,13 @@ package org.apache.royale.html.beads
if (!dataProvider && !changeEventName)

selectionModel.addEventListener("dataProviderChanged", setFirstDataProvider);

-   } else
+   }
+   else
{
if(dataProvider == selectionModel.dataProvider)
return;
detachEventListeners();
setDataProvider();
-   attachEventListeners();
}
}

@@ -91,7 +91,9 @@ package org.apache.royale.html.beads
{
dataProvider = selectionModel.dataProvider as 
IArrayList;
if(dataProvider)
+   {
attachEventListeners();
+   }
}

/**



[royale-asjs] branch develop updated: Jewel: Add manual implementation of IEventDispatcher to Tile layouts

2023-05-16 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 e7094edaae Jewel: Add manual implementation of IEventDispatcher to 
Tile layouts
e7094edaae is described below

commit e7094edaae64bccf9fc532715537779da3507628
Author: Piotr Zarzycki 
AuthorDate: Tue May 16 14:43:34 2023 +0200

Jewel: Add manual implementation of IEventDispatcher to Tile layouts

- Compiler generates automatically IEventDispatcher implementation based on 
[Bindable] tag on some properties - unfortunately for some reason it was only 
SWF implementation which is not needed in JS only version of framework
---
 .../jewel/beads/layouts/TileHorizontalLayout.as| 74 -
 .../jewel/beads/layouts/TileVerticalLayout.as  | 77 --
 2 files changed, 144 insertions(+), 7 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
index 53c8d555e2..13455eb670 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/TileHorizontalLayout.as
@@ -20,16 +20,19 @@ package org.apache.royale.jewel.beads.layouts
 {
COMPILE::SWF
{
-   import org.apache.royale.core.IUIBase;
+   import org.apache.royale.core.IUIBase;
+   import flash.events.Event;
}
+
import org.apache.royale.core.IBorderPaddingMarginValuesImpl;
import org.apache.royale.core.ILayoutView;
import org.apache.royale.core.UIBase;
import org.apache.royale.core.ValuesManager;
import org.apache.royale.core.layout.EdgeData;
-   import org.apache.royale.core.layout.ILayoutStyleProperties;
import org.apache.royale.events.Event;
import org.apache.royale.utils.OSUtils;
+   import org.apache.royale.events.EventDispatcher;
+   import org.apache.royale.events.IEventDispatcher;
import org.apache.royale.utils.observeElementSize;
 
/**
@@ -43,7 +46,7 @@ package org.apache.royale.jewel.beads.layouts
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.8
 */
-   public class TileHorizontalLayout extends SimpleHorizontalLayout 
implements ILayoutStyleProperties
+   public class TileHorizontalLayout extends SimpleHorizontalLayout 
implements IEventDispatcher
{
/**
 *  constructor.
@@ -60,6 +63,71 @@ package org.apache.royale.jewel.beads.layouts
 
public static const LAYOUT_TYPE_NAMES:String = "layout 
horizontal tile";
 
+   private var _dispatcher:IEventDispatcher;
+   /**
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.11
+*/
+   public function get dispatcher():IEventDispatcher
+   {
+   if (!_dispatcher)
+   {
+   _dispatcher = new EventDispatcher(this) as 
IEventDispatcher;
+   }
+
+   return _dispatcher;
+   }
+
+   public function set dispatcher(value:IEventDispatcher):void
+   {
+   _dispatcher = value;
+   }
+
+   //IEventDispatcher JS
+   COMPILE::JS
+   public function addEventListener(type:String, handler:Function, 
opt_capture:Boolean = false, opt_handlerScope:Object = null):void
+   {
+   dispatcher.addEventListener(type, handler, opt_capture, 
opt_handlerScope);
+   }
+
+   COMPILE::JS
+   public function removeEventListener(type:String, 
handler:Function, opt_capture:Boolean = false, opt_handlerScope:Object = 
null):void
+   {
+   dispatcher.removeEventListener(type, handler, 
opt_capture, opt_handlerScope);
+   }
+
+   COMPILE::JS
+   public function dispatchEvent(event:Object):Boolean
+   {
+   return dispatcher.dispatchEvent(event);
+   }
+
+   //IEventDispatcher SWF
+   COMPILE::SWF
+   public function addEventListener(type:String, 
listener:Function, useCapture:Boolean = false, priority:int = 0, 
useWeakReference:Boolean = false):void
+   {
+   dispatcher.addEventListener(type, listener, useCapture, 
priority, useWea

[royale-asjs] branch develop updated (8ce5f306b1 -> 007e6976e7)

2023-05-16 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


from 8ce5f306b1 DataGridNavigateItems bead was not working on 
VirtualDataGrid along with many other beads
 add 007e6976e7 Manually switch in main pom.xml to 0.9.11-SNAPSHOT to fix 
build

No new revisions were added by this update.

Summary of changes:
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



[royale-asjs] branch develop updated: Basic: Fix issue where in scenario of providing object in dataProvider contains fields either null or undefined causes display [object Object] instead of empty st

2022-08-12 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 9cf3840b26 Basic: Fix issue where in scenario of providing object in 
dataProvider contains fields either null or undefined causes display [object 
Object] instead of empty string
9cf3840b26 is described below

commit 9cf3840b2646f57a312a121db17a991766307fef
Author: Piotr Zarzycki 
AuthorDate: Fri Aug 12 11:54:54 2022 +0200

Basic: Fix issue where in scenario of providing object in dataProvider 
contains fields either null or undefined causes display [object Object] instead 
of empty string

Example of dp object: {firstName: "Piotr", lastName: null}
---
 .../royale/org/apache/royale/html/util/getLabelFromData.as | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/util/getLabelFromData.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/util/getLabelFromData.as
index 18aa873040..1581f0c21b 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/util/getLabelFromData.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/util/getLabelFromData.as
@@ -65,9 +65,17 @@ package org.apache.royale.html.util
 }
 
 var label:String = data["label"];
-if(label != null){
+if(label != null)
+{
 return label;
 }
+
+if (obj is IHasLabelField && (obj as IHasLabelField).labelField &&
+(data[(obj as IHasLabelField).labelField] == null || data[(obj 
as IHasLabelField).labelField] == undefined))
+{
+return "";
+}
+
 return "" + data;
 
 }



[royale-asjs] branch develop updated: MX ADG: Removing "itemsCreated" cause it causes redundant calls for layoutNeeded in ADG

2022-04-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 de2fb81e06 MX ADG: Removing "itemsCreated" cause it causes redundant 
calls for layoutNeeded in ADG
de2fb81e06 is described below

commit de2fb81e06d979ed5ecf08c669cf6923d0aa7274
Author: Piotr Zarzycki 
AuthorDate: Wed Apr 20 10:39:46 2022 +0200

MX ADG: Removing "itemsCreated" cause it causes redundant calls for 
layoutNeeded in ADG

- Changes will be discussed on Dev list
---
 .../DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index ff9ead028e..c2788b097c 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -80,7 +80,6 @@ package mx.controls.advancedDataGridClasses
 resetCollectionCursor();
 currentIndex = (dp.length > 0) ? 0 : -1;
 
-   sendStrandEvent(_strand, "itemsCreated");
super.dataProviderChangeHandler(event);
 }
 



[royale-asjs] branch develop updated: MX ADG: Bring back "itemsCreated" in order to discuss changes later on

2022-04-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 d363b1197a MX ADG: Bring back "itemsCreated" in order to discuss 
changes later on
d363b1197a is described below

commit d363b1197a678d84547eea414373180ac9494bf9
Author: Piotr Zarzycki 
AuthorDate: Wed Apr 20 10:27:09 2022 +0200

MX ADG: Bring back "itemsCreated" in order to discuss changes later on
---
 .../DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index 7d28fd2c63..ff9ead028e 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -80,7 +80,7 @@ package mx.controls.advancedDataGridClasses
 resetCollectionCursor();
 currentIndex = (dp.length > 0) ? 0 : -1;
 
-   //sendStrandEvent(_strand, "itemsCreated");
+   sendStrandEvent(_strand, "itemsCreated");
super.dataProviderChangeHandler(event);
 }
 



[royale-asjs] branch develop updated: MX ADG: Bring back currentIndex initialization when items are created

2022-04-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 a764489fd7 MX ADG: Bring back currentIndex initialization when items 
are created
a764489fd7 is described below

commit a764489fd7632201c4804e02ac44d5a141a64010
Author: Piotr Zarzycki 
AuthorDate: Wed Apr 20 10:19:52 2022 +0200

MX ADG: Bring back currentIndex initialization when items are created
---
 .../DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index da146c32bc..7d28fd2c63 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -78,8 +78,9 @@ package mx.controls.advancedDataGridClasses
 return;
 
 resetCollectionCursor();
-currentIndex = -1;
+currentIndex = (dp.length > 0) ? 0 : -1;
 
+   //sendStrandEvent(_strand, "itemsCreated");
super.dataProviderChangeHandler(event);
 }
 



[royale-asjs] branch develop updated: MX ADG: Remove redundant event listener - it's already been registered in parent class

2022-04-19 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 1456bea114 MX ADG: Remove redundant event listener - it's already been 
registered in parent class
1456bea114 is described below

commit 1456bea11428380b4e356dc85f7a003434f5fecb
Author: Piotr Zarzycki 
AuthorDate: Tue Apr 19 12:48:56 2022 +0200

MX ADG: Remove redundant event listener - it's already been registered in 
parent class

- Remove "itemsCreated" which was redundant and caused Null Pointer 
Exceptions in some cases when HierarchicalData was used
- Move reset cursor to separate function for reuse purposes
---
 .../royale/html/beads/VirtualDataContainerView.as  |  2 --
 ...actoryForICollectionViewAdvancedDataGridData.as | 34 --
 2 files changed, 19 insertions(+), 17 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualDataContainerView.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualDataContainerView.as
index 85a58f1d61..12b89e78a5 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualDataContainerView.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/VirtualDataContainerView.as
@@ -57,8 +57,6 @@ package org.apache.royale.html.beads
{
_strand = value;
super.strand = value;
-   
-   host.addEventListener("beadsAdded", beadsAddedHandler);
}

 /**
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index eea390d130..da146c32bc 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -22,6 +22,8 @@ package mx.controls.advancedDataGridClasses
import mx.collections.ICollectionView;
import mx.collections.IViewCursor;
 
+   import org.apache.royale.core.IIndexedItemRenderer;
+   import org.apache.royale.core.IIndexedItemRendererInitializer;
import org.apache.royale.core.IItemRendererOwnerView;
import org.apache.royale.core.IStrandWithModelView;
import org.apache.royale.events.Event;
@@ -44,7 +46,10 @@ package mx.controls.advancedDataGridClasses
  */
public class 
DataItemRendererFactoryForICollectionViewAdvancedDataGridData extends 
VirtualDataItemRendererFactoryBase
{
-/**
+   private var cursor:IViewCursor;
+   private var currentIndex:int;
+
+   /**
  *  Constructor.
  *
  *  @langversion 3.0
@@ -72,24 +77,12 @@ package mx.controls.advancedDataGridClasses
 if (!dp)
 return;
 
-if (cursor) cursor.finalizeThis();
-cursor = dp.createCursor();
-currentIndex = (dp.length > 0) ? 0 : -1;
-
-// listen for individual items being added in the future.
-//var dped:IEventDispatcher = dp as IEventDispatcher;
-//dped.addEventListener(CollectionEvent.ITEM_ADDED, 
itemAddedHandler);
-//dped.addEventListener(CollectionEvent.ITEM_REMOVED, 
itemRemovedHandler);
-//dped.addEventListener(CollectionEvent.ITEM_UPDATED, 
itemUpdatedHandler);
+resetCollectionCursor();
+currentIndex = -1;
 
-   sendStrandEvent(_strand, "itemsCreated");
super.dataProviderChangeHandler(event);
 }
 
-private var cursor:IViewCursor;
-private var currentIndex:int;
-   
-
 /**
  *  Get a item for a given index.
  *
@@ -123,5 +116,16 @@ package mx.controls.advancedDataGridClasses
 currentIndex = index;
return cursor.current;
 }
+
+   private function resetCollectionCursor():void
+   {
+   if (cursor)
+   {
+   cursor.finalizeThis();
+   }
+
+   var dp:ICollectionView = dataProviderModel.dataProvider 
as ICollectionView;
+   cursor = dp.createCursor();
+   }
}
 }



[royale-asjs] branch develop updated: MX ADG: Bring back previous orders of events

2022-04-15 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 6ebec62da6 MX ADG: Bring back previous orders of events
6ebec62da6 is described below

commit 6ebec62da61d215c1ad3ddfbca743858d3453902
Author: Piotr Zarzycki 
AuthorDate: Fri Apr 15 10:37:29 2022 +0200

MX ADG: Bring back previous orders of events
---
 .../DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index a8f494a4c7..eea390d130 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -82,9 +82,8 @@ package mx.controls.advancedDataGridClasses
 //dped.addEventListener(CollectionEvent.ITEM_REMOVED, 
itemRemovedHandler);
 //dped.addEventListener(CollectionEvent.ITEM_UPDATED, 
itemUpdatedHandler);
 
-   super.dataProviderChangeHandler(event);
-
sendStrandEvent(_strand, "itemsCreated");
+   super.dataProviderChangeHandler(event);
 }
 
 private var cursor:IViewCursor;



[royale-asjs] branch develop updated: MX ADG: Missing import of sendStrandEvent

2022-04-14 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 be988435e5 MX ADG: Missing import of sendStrandEvent
be988435e5 is described below

commit be988435e56b0cfe8e2ee52acb58f55c3f3adc3c
Author: Piotr Zarzycki 
AuthorDate: Thu Apr 14 12:10:54 2022 +0200

MX ADG: Missing import of sendStrandEvent
---
 .../DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index 671b9207af..a8f494a4c7 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -28,7 +28,8 @@ package mx.controls.advancedDataGridClasses
import org.apache.royale.events.IEventDispatcher;
import org.apache.royale.html.beads.IListView;
import org.apache.royale.html.beads.VirtualDataItemRendererFactoryBase;
-   
+   import org.apache.royale.utils.sendStrandEvent;
+
 /**
  *  The DataItemRendererFactoryForHierarchicalData class reads a
  *  HierarchicalData object and creates an item renderer for every



[royale-asjs] branch develop updated: MX ADG: Remove redundant call of item renderers clean up and use method from parent

2022-04-14 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 80706bcf9b MX ADG: Remove redundant call of item renderers clean up 
and use method from parent
80706bcf9b is described below

commit 80706bcf9b7e46ad2a994ec9f6dbf0d2b339312d
Author: Piotr Zarzycki 
AuthorDate: Thu Apr 14 12:01:31 2022 +0200

MX ADG: Remove redundant call of item renderers clean up and use method 
from parent
---
 ...mRendererFactoryForICollectionViewAdvancedDataGridData.as | 12 +---
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
index 80c8739ca0..671b9207af 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/DataItemRendererFactoryForICollectionViewAdvancedDataGridData.as
@@ -80,13 +80,10 @@ package mx.controls.advancedDataGridClasses
 //dped.addEventListener(CollectionEvent.ITEM_ADDED, 
itemAddedHandler);
 //dped.addEventListener(CollectionEvent.ITEM_REMOVED, 
itemRemovedHandler);
 //dped.addEventListener(CollectionEvent.ITEM_UPDATED, 
itemUpdatedHandler);
-
-var view:IListView = (_strand as IStrandWithModelView).view as 
IListView;
-var dataGroup:IItemRendererOwnerView = view.dataGroup;
-dataGroup.removeAllItemRenderers();
-rendererMap = {};
-IEventDispatcher(_strand).dispatchEvent(new Event("itemsCreated"));
-IEventDispatcher(_strand).dispatchEvent(new Event("layoutNeeded"));
+
+   super.dataProviderChangeHandler(event);
+
+   sendStrandEvent(_strand, "itemsCreated");
 }
 
 private var cursor:IViewCursor;
@@ -106,6 +103,7 @@ package mx.controls.advancedDataGridClasses
 override public function getItemAt(index:int):Object
 {
 var delta:int = index - currentIndex;
+
 if (currentIndex == -1)
 {
 cursor.seek(CursorBookmark.FIRST, index);



[royale-asjs] branch develop updated: MX ToolTipBead: Add MouseEvent.CLICK to handle removal of tooltip

2022-04-05 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 c613581ed4 MX ToolTipBead: Add MouseEvent.CLICK to handle removal of 
tooltip
c613581ed4 is described below

commit c613581ed4ade57f604cb2abd3f9ebc423449a56
Author: Piotr Zarzycki 
AuthorDate: Tue Apr 5 11:13:46 2022 +0200

MX ToolTipBead: Add MouseEvent.CLICK to handle removal of tooltip

- In some circumstances MouseEvent.MOUSE_DOWN is not enough - this is very 
edge case where for some reason MOUSE_DOWN is not triggered - the consideration 
is to remove completely MOUSE_DOWN in favour of CLICK
- Remove some unused vars in Basic ToolTipBead
---
 .../apache/royale/html/accessories/ToolTipBead.as  |  2 --
 .../main/royale/mx/controls/beads/ToolTipBead.as   | 37 --
 2 files changed, 14 insertions(+), 25 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/ToolTipBead.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/ToolTipBead.as
index 261bd3458a..919f976d79 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/ToolTipBead.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/ToolTipBead.as
@@ -169,7 +169,6 @@ package org.apache.royale.html.accessories
var xFactor:Number = 1;
var yFactor:Number = 1;
var pt:Point;
-   var relative:Boolean = _xPos > TOP &&  _yPos > TOP;
 
if (_xPos == LEFT) {
xFactor = Number.POSITIVE_INFINITY;
@@ -210,7 +209,6 @@ package org.apache.royale.html.accessories
{
(_strand as 
IEventDispatcher).removeEventListener(MouseEvent.MOUSE_OUT, rollOutHandler, 
false);
 
-   var comp:IUIBase = _strand as IUIBase;
if (tt) {
host.popUpParent.removeElement(tt);
tt = null;
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as
index ab3f4fa7fa..f48312ddc7 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/ToolTipBead.as
@@ -36,30 +36,9 @@ package mx.controls.beads
{
super();
}
-   
-   /** 
-*  @copy org.apache.royale.core.IBead#strand
-*
-*  @langversion 3.0
-*  @playerversion Flash 10.2
-*  @playerversion AIR 2.6
-*  @productversion Royale 0.0
-*/
-   override public function set strand(value:IStrand):void
-   {
-   super.strand = value;
-   
IEventDispatcher(value).addEventListener(MouseEvent.MOUSE_DOWN, 
mouseDownHandler, false);
-   }
-   
-   /**
-* @private
-*/
-   private function mouseDownHandler(event:MouseEvent):void
-   {
-   super.rollOutHandler(event);
-   }
-
+
 private var _isError:Boolean;
+
 public function get isError():Boolean
 {
 return _isError;
@@ -72,6 +51,10 @@ package mx.controls.beads
 override protected function rollOverHandler(event:MouseEvent):void
 {
 super.rollOverHandler(event);
+
+   listenOnStrand(MouseEvent.MOUSE_DOWN, rollOutHandler);
+   listenOnStrand(MouseEvent.CLICK, rollOutHandler);
+
 COMPILE::JS
 {
 if (tt)
@@ -82,6 +65,14 @@ package mx.controls.beads
 }
 }
 
+   override public function removeTip():void
+   {
+   super.removeTip();
+
+   listenOnStrand(MouseEvent.MOUSE_DOWN, rollOutHandler, 
false, true);
+   listenOnStrand(MouseEvent.CLICK, rollOutHandler, false, 
true);
+   }
+
COMPILE::JS
private function adjustInsideBoundsIfNecessary():void{ //could 
override determinePosition instead
var screen:Rectangle = 
((FlexGlobals.topLevelApplication as UIComponent).systemManager as 
SystemManager).screen;



[royale-asjs] branch develop updated: Update version properties for compiler and typedefs to 0.9.10-SNAPSHOT

2022-03-28 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 e10718a  Update version properties for compiler and typedefs to 
0.9.10-SNAPSHOT
e10718a is described below

commit e10718a4676f51d9e31aeae88675f9a3628a964b
Author: Piotr Zarzycki 
AuthorDate: Mon Mar 28 13:03:43 2022 +0200

Update version properties for compiler and typedefs to 0.9.10-SNAPSHOT

It is somehow missed during release creation process
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index d6ce2fb..a646aac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,8 +55,8 @@
 3.5.4
 
 1.2.1
-
0.9.9-SNAPSHOT
-0.9.9-SNAPSHOT
+
0.9.10-SNAPSHOT
+0.9.10-SNAPSHOT
 
 JSRoyale
 true


[royale-asjs] branch develop updated: MxRoyale: Make sure to have similar behavior with Flex when value selection of is same as current one

2022-02-08 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 5eafdec  MxRoyale: Make sure to have similar behavior with Flex when 
value selection of is same as current one
5eafdec is described below

commit 5eafdec092c5cbad4d9e820b08221285d8148394
Author: Piotr Zarzycki 
AuthorDate: Tue Feb 8 13:21:11 2022 +0100

MxRoyale: Make sure to have similar behavior with Flex when value selection 
of is same as current one
---
 .../MXRoyale/src/main/royale/mx/controls/RadioButton.as   | 15 +--
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as
index 2d65f17..044224a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RadioButton.as
@@ -319,14 +319,17 @@ public class RadioButton extends Button
  */
 override public function set selected(value:Boolean):void
 {
-super.selected = value;
-COMPILE::JS
+if (this.selected != value)
 {
-(rbicon.element as HTMLInputElement).checked = value;
+super.selected = value;
+COMPILE::JS
+{
+(rbicon.element as HTMLInputElement).checked = value;
+}
+if (group != null)
+group.setSelection(this, false);
+dispatchEvent(new Event("selectedChanged"));
 }
-if (group != null)
-group.setSelection(this, false);
-dispatchEvent(new Event("selectedChanged"));
 }
 
 
//--


[royale-asjs] branch develop updated: MXRoyale: Fix warning with variable duplication in TabNavigatorView

2022-01-19 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 ddf3ae7  MXRoyale: Fix warning with variable duplication in 
TabNavigatorView
ddf3ae7 is described below

commit ddf3ae7dfe075378033190ed1890210e6e88c0b4
Author: Piotr Zarzycki 
AuthorDate: Wed Jan 19 13:32:34 2022 +0100

MXRoyale: Fix warning with variable duplication in TabNavigatorView
---
 .../MXRoyale/src/main/royale/mx/containers/beads/TabNavigatorView.as  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/TabNavigatorView.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/TabNavigatorView.as
index d1e5b02..092e4db 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/TabNavigatorView.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/TabNavigatorView.as
@@ -200,17 +200,17 @@ public class TabNavigatorView extends GroupView
 var oldIndex:int = (tabBar.model as ISelectionModel).selectedIndex;
 (tabBar as TabBar).dataProvider = tabDP;
 
+var tabNavigator:TabNavigator = _strand as TabNavigator;
 if (oldIndex == -1 && n > 0)
 {
 (tabBar.model as ISelectionModel).selectedIndex = 0;
-var tabNavigator:TabNavigator = _strand as TabNavigator;
+   
 if (tabNavigator)
 {
 tabNavigator.selectedIndex = 0;
 }
 } else {
 if (removeIndex != -1 ) {
-var tabNavigator:TabNavigator = _strand as TabNavigator;
 if (removeIndex == tabDP.length) removeIndex--;
 if (tabNavigator)
 {


[royale-asjs] branch develop updated: MxRoyale: Add Moonshine IDE file to DataGridExample

2022-01-13 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 9fb1525  MxRoyale: Add Moonshine IDE file to DataGridExample
9fb1525 is described below

commit 9fb152590fd43cdd0155ac0949b38d283b3d3c2d
Author: Piotr Zarzycki 
AuthorDate: Thu Jan 13 15:47:50 2022 +0100

MxRoyale: Add Moonshine IDE file to DataGridExample
---
 .../DataGridExample/DataGridExample.as3proj| 123 +
 1 file changed, 123 insertions(+)

diff --git a/examples/mxroyale/DataGridExample/DataGridExample.as3proj 
b/examples/mxroyale/DataGridExample/DataGridExample.as3proj
new file mode 100644
index 000..f9cddef
--- /dev/null
+++ b/examples/mxroyale/DataGridExample/DataGridExample.as3proj
@@ -0,0 +1,123 @@
+
+
+
+  
+
+
+
+
+
+
+
+
+
+  
+  !-- Other classes to be compiled into your SWF --
+  
+
+  
+  
+
+  
+  
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+
+
+  
+  
+  
+  
+
+  
+  
+  null
+  null
+  False
+  
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+null
+null
+null
+null
+  
+
\ No newline at end of file


[royale-asjs] branch develop updated: MXRoyale: Fix issue where internal component TabBar of view stack wasn't updated properly when index was selected programmaticaly

2022-01-04 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 be99cbe  MXRoyale: Fix issue where internal component TabBar of view 
stack wasn't updated properly when index was selected programmaticaly
be99cbe is described below

commit be99cbe270eccf5e5eadb260cf3d4413ab8be71c
Author: Piotr Zarzycki <24554795+piotrzarzyck...@users.noreply.github.com>
AuthorDate: Tue Jan 4 11:39:22 2022 +0100

MXRoyale: Fix issue where internal component TabBar of view stack wasn't 
updated properly when index was selected programmaticaly
---
 .../MXRoyale/src/main/royale/mx/containers/TabNavigator.as | 14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as
index 74f9d10..69cf7e0 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/TabNavigator.as
@@ -31,7 +31,8 @@ import mx.controls.TabBar;
 import org.apache.royale.core.IBeadView;
 import org.apache.royale.core.IChild;
 import org.apache.royale.events.Event;
-
+import org.apache.royale.html.util.getModelByType;
+import org.apache.royale.core.ISelectionModel;
 //--
 //  Styles
 //--
@@ -506,6 +507,17 @@ public class TabNavigator extends ViewStack implements 
IFocusManagerComponent
 return tnView.contentArea.getElementAt(index);
 }
 
+/**
+ * @private
+ * @royaleignorecoercion org.apache.royale.html.beads.TabNavigatorView
+ */
+override protected function commitSelectedIndex(newIndex:int):void
+{
+super.commitSelectedIndex(newIndex);
+
+var tnView:TabNavigatorView = view as TabNavigatorView;
+(tnView.tabBar as TabBar).selectedIndex = newIndex;
+}
 }
 
 }


[royale-asjs] branch develop updated: MXRoyale Example: Add separated example for TabNavigator

2021-12-30 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 531d303  MXRoyale Example: Add separated example for TabNavigator
531d303 is described below

commit 531d3039db23356d81c06953925dba2831e2606b
Author: Piotr Zarzycki <24554795+piotrzarzyck...@users.noreply.github.com>
AuthorDate: Thu Dec 30 10:26:22 2021 +0100

MXRoyale Example: Add separated example for TabNavigator
---
 .../TabNavigatorExample.as3proj| 122 +
 examples/mxroyale/TabNavigatorExample/build.xml|  55 ++
 examples/mxroyale/TabNavigatorExample/pom.xml  |  61 +++
 .../src/main/royale/TabNavigatorExample.mxml   |  58 ++
 4 files changed, 296 insertions(+)

diff --git a/examples/mxroyale/TabNavigatorExample/TabNavigatorExample.as3proj 
b/examples/mxroyale/TabNavigatorExample/TabNavigatorExample.as3proj
new file mode 100644
index 000..eb532a6
--- /dev/null
+++ b/examples/mxroyale/TabNavigatorExample/TabNavigatorExample.as3proj
@@ -0,0 +1,122 @@
+
+
+
+  
+
+
+
+
+
+
+
+
+
+  
+  !-- Other classes to be compiled into your SWF --
+  
+
+  
+  
+
+  
+  
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+
+
+  
+  
+  
+  
+
+  
+  
+  null
+  null
+  False
+  
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+Apple iPad
+null
+null
+null
+  
+
diff --git a/examples/mxroyale/TabNavigatorExample/build.xml 
b/examples/mxroyale/TabNavigatorExample/build.xml
new file mode 100644
index 000..62250e0
--- /dev/null
+++ b/examples/mxroyale/TabNavigatorExample/build.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/mxroyale/TabNavigatorExample/pom.xml 
b/examples/mxroyale/TabNavigatorExample/pom.xml
new file mode 100644
index 000..4a5a09c
--- /dev/null
+++ b/examples/mxroyale/TabNavigatorExample/pom.xml
@@ -0,0 +1,61 @@
+
+http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>
+  4.0.0
+
+  
+org.apache.royale.examples
+examples-mxroyale
+0.9.9-SNAPSHOT
+  
+
+  TabNavigatorExample-MXRoyale
+  0.9.9-SNAPSHOT
+  swf
+
+  Apache Royale: Examples: MXRoyale: TabNavigatorExample
+
+  
+
+  
+org.apache.royale.compiler
+royale-maven-plugin
+true
+
+  TabNavigatorExample.mxml
+  true
+  ${royale.targets}
+  false
+
+  
+
+  
+
+  
+
+  org.apache.royale.framework
+  BasicTheme
+  0.9.9-SNAPSHOT
+  swc
+  theme
+  js
+
+  
+
+
diff --git 
a/examples/mxroyale/TabNavigatorExample/src/main/royale/TabNavigatorExample.mxml
 
b/examples/mxroyale/TabNavigatorExample/src/main/royale/TabNavigatorExample.mxml
new file mode 100644
index 000..8b6c9e8
--- /dev/null
+++ 
b/examples/mxroyale/TabNavigatorExample/src/main/royale/TabNavigatorExample.mxml
@@ -0,0 +1,58 @@
+
+
+http://ns.adobe.com/mxml/2009;
+   xmlns:mx="library://ns.apache.org/royale/mx"
+   width="600" height="400" >
+
+   
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file


[royale-asjs] branch develop updated: MenuExample: Add Moonshine IDE file to example

2021-12-28 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 8bfe4a9  MenuExample: Add Moonshine IDE file to example
8bfe4a9 is described below

commit 8bfe4a96a37a3a45441793694a9893bbd5f50d4f
Author: Piotr Zarzycki <24554795+piotrzarzyck...@users.noreply.github.com>
AuthorDate: Tue Dec 28 11:55:40 2021 +0100

MenuExample: Add Moonshine IDE file to example

- Fix compilation error and improve pom file to satisfy maven
---
 examples/royale/MenuExample/MenuExample.as3proj| 123 +
 examples/royale/MenuExample/pom.xml|   4 +-
 .../MenuExample/src/main/royale/MenuExample.mxml   |   4 +-
 3 files changed, 127 insertions(+), 4 deletions(-)

diff --git a/examples/royale/MenuExample/MenuExample.as3proj 
b/examples/royale/MenuExample/MenuExample.as3proj
new file mode 100644
index 000..67dddbd
--- /dev/null
+++ b/examples/royale/MenuExample/MenuExample.as3proj
@@ -0,0 +1,123 @@
+
+
+
+  
+
+
+
+
+
+
+
+
+
+  
+  !-- Other classes to be compiled into your SWF --
+  
+
+  
+  
+
+  
+  
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+
+
+  
+  
+  
+  
+
+  
+  
+  null
+  null
+  False
+  
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+null
+null
+null
+null
+  
+
diff --git a/examples/royale/MenuExample/pom.xml 
b/examples/royale/MenuExample/pom.xml
index ec716a9..c4f5c17 100644
--- a/examples/royale/MenuExample/pom.xml
+++ b/examples/royale/MenuExample/pom.xml
@@ -32,14 +32,14 @@
   Apache Royale: Examples: Royale: MenuExample
   
   
-   src/main/royale
+   src
 
   
 org.apache.royale.compiler
 royale-maven-plugin
 true
 
-  MenuExample.mxml
+  main/royale/MenuExample.mxml
   true
   ${royale.targets}
 
diff --git a/examples/royale/MenuExample/src/main/royale/MenuExample.mxml 
b/examples/royale/MenuExample/src/main/royale/MenuExample.mxml
index 16d58f9..75ad3bc 100644
--- a/examples/royale/MenuExample/src/main/royale/MenuExample.mxml
+++ b/examples/royale/MenuExample/src/main/royale/MenuExample.mxml
@@ -22,7 +22,7 @@
xmlns:local="*"
xmlns:models="models.*"
xmlns:js="library://ns.apache.org/royale/basic" 
-   >
+   xmlns:royale="main.royale.*">



@@ -31,6 +31,6 @@

-->

-   
+   

 


[royale-asjs] branch develop updated (e1c3057 -> 080e26b)

2021-10-05 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


from e1c3057  code-tidy: reduce build noise from unused/invalid imports
 new eedacf4  Revert Changes moved to the strand setter.
 new a87f32f  Cleaning duplicate lines
 new 080e26b  Merge pull request #1154 from 
mjesteve/Jewel_VirtualComboBoxPupUp_customItemRenderer_2

The 12864 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../royale/jewel/beads/views/ComboBoxView.as   | 28 ++
 .../jewel/beads/views/VirtualComboBoxPopUpView.as  | 24 +--
 2 files changed, 25 insertions(+), 27 deletions(-)


[royale-asjs] branch develop updated (d965af7 -> 2942ad0)

2021-10-04 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


from d965af7  try to fix mxtests.  rawChildren might need to be redirected 
through Container's strandChildren if there are other problems
 new 6cfcd05  Jewel VirtualComboBox only recognises itemRenderers assigned 
via className. Those set through property "itemRenderer" in the mxml tag are 
not recognised. When creating the List associated to the dropdown/popup, in 
VirtualComboBoxPopUpView, the itemRenderer assigned to the VirtualCombobox must 
be mapped to it.
 new 57aa556  Changes moved to the strand setter.
 new 2942ad0  Merge pull request #1153 from 
mjesteve/Jewel_VirtualComboBoxPopUpView_CustomItemRenderer

The 12859 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/royale/jewel/beads/views/VirtualComboBoxPopUpView.as  | 9 +
 1 file changed, 9 insertions(+)


[royale-asjs] branch develop updated: Jewel Validator: Handle scenario where there is no error tip but we still would like to know whether error occurs

2021-09-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 8a4bfa9  Jewel Validator: Handle scenario where there is no error tip 
but we still would like to know whether error occurs
8a4bfa9 is described below

commit 8a4bfa9853f6fb9093571b560d36a962b51bfdb4
Author: Piotr Zarzycki 
AuthorDate: Tue Sep 21 12:26:11 2021 +0200

Jewel Validator: Handle scenario where there is no error tip but we still 
would like to know whether error occurs
---
 .../royale/jewel/beads/validators/Validator.as   | 20 ++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
index adcf9eb..bf311c5 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
@@ -228,8 +228,24 @@ package org.apache.royale.jewel.beads.validators
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 */
-   public function get isError():Boolean {
-   return (_errorTip != null);
+   public function get isError():Boolean
+   {
+   if (!noErrorTip)
+   {
+   return (_errorTip != null);
+   }
+   else
+   {
+   COMPILE::JS
+   {
+   return 
hostClassList.contains("errorBorder");
+   }
+
+   COMPILE::SWF
+   {
+   return false;
+   }
+   }
}
 
/**


[royale-asjs] 03/03: Jewel Validator: Add "noErrorTip" property which prevents from displaying error tooltip near required field

2021-09-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 9f6f459610c7de831f2a02eb5925bbd7ed3f4a01
Author: Piotr Zarzycki 
AuthorDate: Fri Sep 17 11:49:44 2021 +0200

Jewel Validator: Add "noErrorTip" property which prevents from displaying 
error tooltip near required field
---
 .../royale/jewel/beads/validators/Validator.as | 54 --
 1 file changed, 39 insertions(+), 15 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
index 3e2fb64..adcf9eb 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
@@ -300,6 +300,25 @@ package org.apache.royale.jewel.beads.validators
 _requiredFieldError = value;
}
 
+   private var _noErrorTip:Boolean;
+   /**
+*  If true removes displaying error tip
+*  Default false
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.9
+*/
+   public function get noErrorTip():Boolean
+   {
+   return _noErrorTip;
+   }
+   public function set noErrorTip(value:Boolean):void
+   {
+   _noErrorTip = value;
+   }
+
/**
 *  Performs validation and return the result.
 *  When result is false(invalid), errorTip appears on the 
control.
@@ -367,26 +386,31 @@ package org.apache.royale.jewel.beads.validators
if (!errorText)
return;
 
-   if (_errorTip == null) {
-   _errorTip = new ErrorTipLabel();
+   if (!noErrorTip) {
+   if (_errorTip == null) {
+   _errorTip = new ErrorTipLabel();
 
-   _host = UIUtils.findPopUpHost(hostComponent);
-   _host.popUpParent.addElement(_errorTip, false);
-   
IEventDispatcher(_host.popUpParent).addEventListener("cleanValidationErrors", 
cleanValidationErrorsHandler);
-   }
-   COMPILE::JS
-   {
-   
hostComponent.element.addEventListener("blur",removeTip);
-   }
+   _host = 
UIUtils.findPopUpHost(hostComponent);
+   _host.popUpParent.addElement(_errorTip, 
false);
+   
IEventDispatcher(_host.popUpParent).addEventListener("cleanValidationErrors", 
cleanValidationErrorsHandler);
+   }
+   COMPILE::JS
+   {
+   
hostComponent.element.addEventListener("blur", removeTip);
+   }
 
-_errorTip.text = errorText;
+   _errorTip.text = errorText;
+
+   COMPILE::JS
+   {
+   window.addEventListener('resize', 
repositionHandler, false);
+   window.addEventListener('scroll', 
repositionHandler, true);
+   repositionHandler();
+   }
+   }
 
COMPILE::JS
{
-   window.addEventListener('resize', 
repositionHandler, false);
-   window.addEventListener('scroll', 
repositionHandler, true);
-   repositionHandler();
-
createErrorBorder();
}
}


[royale-asjs] 01/03: Jewel Validator: Add FormValidatorWithoutSnackbar validator which prevents from displaying snackbar in case of errors

2021-09-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit b2906996cfa20a17ae48c06a48cb799227ebf4d3
Author: Piotr Zarzycki 
AuthorDate: Fri Sep 17 11:46:37 2021 +0200

Jewel Validator: Add FormValidatorWithoutSnackbar validator which prevents 
from displaying snackbar in case of errors
---
 .../Jewel/src/main/resources/jewel-manifest.xml|  1 +
 .../validators/FormValidatorWithoutSnackbar.as | 52 ++
 2 files changed, 53 insertions(+)

diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml 
b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index 5d95488..45b50c7 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -106,6 +106,7 @@
 
 
 
+
 
 
 
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
new file mode 100644
index 000..6c74240
--- /dev/null
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
@@ -0,0 +1,52 @@
+
+//
+//  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.
+//
+
+package org.apache.royale.jewel.beads.validators
+{
+import org.apache.royale.jewel.beads.validators.FormValidator;
+import org.apache.royale.events.Event;
+
+   public class FormValidatorWithoutSnackbar extends FormValidator 
+   {
+   public function FormValidatorWithoutSnackbar()
+   {
+   super();
+   }
+
+   /**
+*  Override of the base class dispatchValidEvent in order to 
remove snackbar notification.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.9
+*/
+   override protected function dispatchValidEvent():void
+   {
+   //Override this method in order to remove snackbar 
notification
+   if (isError)
+   {
+   hostComponent.dispatchEvent(new 
Event("invalid"));
+   }
+   else
+   {
+   hostComponent.dispatchEvent(new Event("valid"));
+   }
+   }
+   }
+}
\ No newline at end of file


[royale-asjs] 02/03: Jewel Validator: Add class description for FormValidatorWithoutSnackbar

2021-09-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit ba777153c63a32f409ee4f43b405f1ae062b9fc5
Author: Piotr Zarzycki 
AuthorDate: Fri Sep 17 11:48:35 2021 +0200

Jewel Validator: Add class description for FormValidatorWithoutSnackbar
---
 .../jewel/beads/validators/FormValidatorWithoutSnackbar.as| 11 ++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
index 6c74240..ef6a32d 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidatorWithoutSnackbar.as
@@ -20,7 +20,16 @@ package org.apache.royale.jewel.beads.validators
 {
 import org.apache.royale.jewel.beads.validators.FormValidator;
 import org.apache.royale.events.Event;
-
+
+   /**
+*  The FormValidatorWithoutSnackbar class is a specialty bead that can 
be used with
+*  form control. It prevents from displaying Snackbar notification in 
case of errors.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.9
+*/
public class FormValidatorWithoutSnackbar extends FormValidator 
{
public function FormValidatorWithoutSnackbar()


[royale-asjs] branch develop updated (34624f1 -> 9f6f459)

2021-09-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


from 34624f1  Jewel FormValidator: Extract error check to separate method 
to easier extend
 new b290699  Jewel Validator: Add FormValidatorWithoutSnackbar validator 
which prevents from displaying snackbar in case of errors
 new ba77715  Jewel Validator: Add class description for 
FormValidatorWithoutSnackbar
 new 9f6f459  Jewel Validator: Add "noErrorTip" property which prevents 
from displaying error tooltip near required field

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../Jewel/src/main/resources/jewel-manifest.xml|  1 +
 ...alidator.as => FormValidatorWithoutSnackbar.as} | 55 ++
 .../royale/jewel/beads/validators/Validator.as | 54 +++--
 3 files changed, 64 insertions(+), 46 deletions(-)
 copy 
frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/{SelectedItemNullValidator.as
 => FormValidatorWithoutSnackbar.as} (58%)


[royale-asjs] branch develop updated: Jewel FormValidator: Extract error check to separate method to easier extend

2021-09-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 34624f1  Jewel FormValidator: Extract error check to separate method 
to easier extend
34624f1 is described below

commit 34624f1a528b8761e168331efc527a0b3baf7352
Author: Piotr Zarzycki 
AuthorDate: Fri Sep 17 10:29:28 2021 +0200

Jewel FormValidator: Extract error check to separate method to easier extend
---
 .../royale/jewel/beads/validators/FormValidator.as | 23 --
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
index 27ce15b..d73a1f2 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/FormValidator.as
@@ -89,12 +89,7 @@ package org.apache.royale.jewel.beads.validators
override public function validate(event:Event = null):Boolean {
_isError = false;
 iterateAll(hostComponent as Group, true);
-   if (isError) {
-if (requiredFieldError) Snackbar.show(requiredFieldError);
-   hostComponent.dispatchEvent(new 
Event("invalid"));
-   } else {
-   hostComponent.dispatchEvent(new Event("valid"));
-   }
+   dispatchValidEvent();
 
return !isError;
}
@@ -155,5 +150,21 @@ package org.apache.royale.jewel.beads.validators
}
 iterateAll(below, false, onlyVisible);
}
+
+   protected function dispatchValidEvent():void
+   {
+   if (isError)
+   {
+   if (requiredFieldError)
+   {
+   Snackbar.show(requiredFieldError);
+   }
+   hostComponent.dispatchEvent(new 
Event("invalid"));
+   }
+   else
+   {
+   hostComponent.dispatchEvent(new Event("valid"));
+   }
+   }
}
 }


[royale-asjs] branch develop updated: Jewel Validator: Extract create/destroy error border to separate method

2021-09-02 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 1d282e8  Jewel Validator: Extract create/destroy error border to 
separate method
1d282e8 is described below

commit 1d282e8d4e16e67d176f6b3009f7115e46f546cc
Author: Piotr Zarzycki 
AuthorDate: Thu Sep 2 15:05:08 2021 +0200

Jewel Validator: Extract create/destroy error border to separate method
---
 .../royale/jewel/beads/validators/Validator.as | 32 +++---
 1 file changed, 22 insertions(+), 10 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
index a3e5cdd..3e2fb64 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
@@ -383,15 +383,20 @@ package org.apache.royale.jewel.beads.validators
 
COMPILE::JS
{
-   window.addEventListener('resize', repositionHandler, 
false);
-   window.addEventListener('scroll', repositionHandler, 
true);
-   repositionHandler();
+   window.addEventListener('resize', 
repositionHandler, false);
+   window.addEventListener('scroll', 
repositionHandler, true);
+   repositionHandler();
+
+   createErrorBorder();
}
+   }
 
-   COMPILE::JS
+   COMPILE::JS
+   protected function createErrorBorder():void
+   {
+   if (!hostClassList.contains("errorBorder"))
{
-   if (!hostClassList.contains("errorBorder"))
-   hostClassList.add("errorBorder");
+   hostClassList.add("errorBorder");
}
}
 
@@ -498,21 +503,28 @@ package org.apache.royale.jewel.beads.validators
 {
COMPILE::JS
{
-   window.removeEventListener('resize', repositionHandler, 
false);
-   window.removeEventListener('scroll', repositionHandler, 
true);
+   window.removeEventListener('resize', 
repositionHandler, false);
+   window.removeEventListener('scroll', 
repositionHandler, true);
}
 if (_errorTip) {

IEventDispatcher(_host.popUpParent).removeEventListener("cleanValidationErrors",
 destroyErrorTip);
 _host.popUpParent.removeElement(_errorTip);
_errorTip = null;
}
+
COMPILE::JS
{
+   destroyErrorBorder();
+   }
+}
+
+   COMPILE::JS
+   protected function destroyErrorBorder():void
+   {
if (hostClassList && 
hostClassList.contains("errorBorder"))
{
hostClassList.remove("errorBorder");
}
-   }
-}
+   }
}
 }


[royale-asjs] branch develop updated: jewel-alert: Make AlertView more pleasent for extending

2021-08-25 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 f7f2f95  jewel-alert: Make AlertView more pleasent for extending
f7f2f95 is described below

commit f7f2f95b78c59e5858fd784c548d970494cc4af5
Author: Piotr Zarzycki 
AuthorDate: Wed Aug 25 18:09:18 2021 +0200

jewel-alert: Make AlertView more pleasent for extending

- Extract content creation of Alert to separate protected method
- Add curly brackets to some condition in Alert class
---
 .../main/royale/org/apache/royale/jewel/Alert.as   |  6 +++-
 .../apache/royale/jewel/beads/views/AlertView.as   | 34 +-
 2 files changed, 25 insertions(+), 15 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Alert.as 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Alert.as
index 72aa408..e06961b 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Alert.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Alert.as
@@ -241,7 +241,7 @@ package org.apache.royale.jewel
  *  @playerversion AIR 2.6
  *  @productversion Royale 0.9.4
  */
-   static public function show(message:String, title:String="", 
flags:uint=Alert.OK, parent:Object = null, modal:Boolean = true) : Alert
+   static public function show(message:String, title:String="", 
flags:uint=Alert.OK, parent:Object = null, modal:Boolean = true):Alert
{
var alert:Alert = new Alert();
alert.message = message;
@@ -249,9 +249,13 @@ package org.apache.royale.jewel
alert.flags = flags;

if(modal)
+   {
alert.showModal(parent);
+   }
else
+   {
alert.show(parent);
+   }
 
return alert;
}
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
index 4412a51..f20677f 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
@@ -165,14 +165,7 @@ package org.apache.royale.jewel.beads.views
IParent(_strand).addElement(titleBar);
 
// Text
-   label = new Label();
-   label.multiline = true;
-   label.html = alertModel.message ? alertModel.message : 
"";
-   
-   content = new VGroup();
-   content.addClass("content");
-   content.addElement(label);
-   IParent(_strand).addElement(content);
+   createContent();

// controlBar
createButtons();
@@ -186,7 +179,20 @@ package org.apache.royale.jewel.beads.views
setTimeout(prepareForPopUp,  300);
}
 
-   private function prepareForPopUp():void
+   protected function createContent():void
+   {
+   // Text
+   label = new Label();
+   label.multiline = true;
+   label.html = alertModel.message ? alertModel.message : 
"";
+
+   content = new VGroup();
+   content.addClass("content");
+   content.addElement(label);
+   IParent(_strand).addElement(content);
+   }
+
+   protected function prepareForPopUp():void
 {
COMPILE::JS
{
@@ -194,7 +200,7 @@ package org.apache.royale.jewel.beads.views
}
}
 
-   private function createButtons():void
+   protected function createButtons():void
{
COMPILE::SWF
{
@@ -297,7 +303,7 @@ package org.apache.royale.jewel.beads.views
/**
 * @private
 */
-   private function handleOK(event:MouseEvent):void
+   protected function handleOK(event:MouseEvent):void
{
// create some custom event where the detail value
 

[royale-asjs] branch develop updated: Jewel Validator: Create separate handler for "cleanValidationErrors" event

2021-06-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 9357039  Jewel Validator: Create separate handler for 
"cleanValidationErrors" event
9357039 is described below

commit 93570392b1cd9442d632b1a956998a4b4a487669
Author: Piotr Zarzycki 
AuthorDate: Mon Jun 21 13:55:14 2021 +0200

Jewel Validator: Create separate handler for "cleanValidationErrors" event
---
 .../royale/org/apache/royale/jewel/beads/validators/Validator.as | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
index 3116b79..a3e5cdd 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
@@ -372,7 +372,7 @@ package org.apache.royale.jewel.beads.validators
 
_host = UIUtils.findPopUpHost(hostComponent);
_host.popUpParent.addElement(_errorTip, false);
-   
IEventDispatcher(_host.popUpParent).addEventListener("cleanValidationErrors", 
destroyErrorTip);
+   
IEventDispatcher(_host.popUpParent).addEventListener("cleanValidationErrors", 
cleanValidationErrorsHandler);
}
COMPILE::JS
{
@@ -410,7 +410,7 @@ package org.apache.royale.jewel.beads.validators
window.removeEventListener('scroll', repositionHandler, 
true);
}
if(_errorTip){
-   
IEventDispatcher(_errorTip.parent).removeEventListener("cleanValidationErrors", 
destroyErrorTip);
+   
IEventDispatcher(_errorTip.parent).removeEventListener("cleanValidationErrors", 
cleanValidationErrorsHandler);
_errorTip.parent.removeElement(_errorTip);
_errorTip = null;
}
@@ -481,6 +481,11 @@ package org.apache.royale.jewel.beads.validators
return pt;
}
 
+   protected function 
cleanValidationErrorsHandler(event:Event):void
+   {
+   destroyErrorTip();
+   }
+
 /**
  *  Destroy the created errorTip
 *


[royale-asjs] branch develop updated: maven-distribution: Add tar.gz archive as distribution

2021-05-12 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 ba55b7a  maven-distribution: Add tar.gz archive as distribution
ba55b7a is described below

commit ba55b7a3b6122a6c9b770555683a826322183a0d
Author: Piotr Zarzycki 
AuthorDate: Wed May 12 10:51:14 2021 +0200

maven-distribution: Add tar.gz archive as distribution
---
 distribution/src/main/assembly/bin-without-swf.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/distribution/src/main/assembly/bin-without-swf.xml 
b/distribution/src/main/assembly/bin-without-swf.xml
index 7b1ddd7..9a26838 100644
--- a/distribution/src/main/assembly/bin-without-swf.xml
+++ b/distribution/src/main/assembly/bin-without-swf.xml
@@ -22,7 +22,7 @@ under the License.
   bin
   
 zip
-
+tar.gz
   
   
 
src/main/assembly/component-royale.xml


[royale-asjs] branch develop updated: jewel-datechooser: DateChooser doesn't need height for each cell

2021-04-07 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 c0f44ee  jewel-datechooser: DateChooser doesn't need height for each 
cell
c0f44ee is described below

commit c0f44eeaf995c5ef0135fc8d8ab0334be2958f7f
Author: Piotr Zarzycki 
AuthorDate: Wed Apr 7 19:54:07 2021 +0200

jewel-datechooser: DateChooser doesn't need height for each cell
---
 frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass 
b/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass
index 0e2cd07..75c9802 100644
--- a/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass
+++ b/frameworks/projects/Jewel/src/main/sass/components/_datechooser.sass
@@ -29,6 +29,9 @@ $datechooser-tableitem-size: 38px
 min-width: 324px
 min-height: 364px
 
+.jewel.tablecell
+height: auto
+
 .jewel.tableheadercell
 
 .jewel.tableheadercell.buttonsRow
@@ -55,7 +58,6 @@ $datechooser-tableitem-size: 38px
 .jewel.tableitem
 // width: $datechooser-tableitem-size
 // height: $datechooser-tableitem-size
-
 .calendar
 &.item
 


[royale-asjs] branch develop updated: Basic Tree: Fix Tree expanding by dispatching properly event in controller MX Tree: Adjust used tree controller to do not dispatch unwanted events (reference #109

2021-04-02 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 4904715  Basic Tree: Fix Tree expanding by dispatching properly event 
in controller MX Tree: Adjust used tree controller to do not dispatch unwanted 
events (reference #1098)
4904715 is described below

commit 4904715c932166b2f2ff57dd9882f9ec286989d3
Author: Piotr Zarzycki 
AuthorDate: Fri Apr 2 13:34:39 2021 +0200

Basic Tree: Fix Tree expanding by dispatching properly event in controller
MX Tree: Adjust used tree controller to do not dispatch unwanted events 
(reference #1098)
---
 .../controllers/TreeSingleSelectionMouseController.as  | 14 +-
 .../treeClasses/TreeSingleSelectionMouseController.as  |  8 ++--
 2 files changed, 19 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as
index d7b08a7..ae16a4c 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as
@@ -25,6 +25,7 @@ package org.apache.royale.html.beads.controllers
import org.apache.royale.events.ItemClickedEvent;
import org.apache.royale.events.ItemRemovedEvent;
import org.apache.royale.utils.sendStrandEvent;
+   import org.apache.royale.utils.sendEvent;
 
/**
 *  The TreeSingleSelectionMouseController class is a controller for 
@@ -76,7 +77,18 @@ package org.apache.royale.html.beads.controllers
sendStrandEvent(_strand,"change");
*/
}
-   
+
+   override protected function 
selectedHandler(event:ItemClickedEvent):void
+   {
+   super.selectedHandler(event);
+
+   var itemExpandedEvent:ItemClickedEvent = new 
ItemClickedEvent("itemExpanded");
+   itemExpandedEvent.index = event.index;
+   itemExpandedEvent.data = event.data;
+
+   sendEvent(event.target as IEventDispatcher, 
itemExpandedEvent);
+   }
+
/**
 * @royaleignorecoercion 
org.apache.royale.events.IEventDispatcher
 */
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/TreeSingleSelectionMouseController.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/TreeSingleSelectionMouseController.as
index 820cc06..835cc72 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/TreeSingleSelectionMouseController.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/TreeSingleSelectionMouseController.as
@@ -29,6 +29,7 @@ package mx.controls.treeClasses
import org.apache.royale.events.IEventDispatcher;
import org.apache.royale.events.ItemClickedEvent;
import 
org.apache.royale.html.beads.controllers.TreeSingleSelectionMouseController;
+   import org.apache.royale.utils.sendEvent;
 
/**
 *  The TreeSingleSelectionMouseController class is a controller for 
@@ -61,9 +62,12 @@ package mx.controls.treeClasses
 */
override protected function 
selectedHandler(event:ItemClickedEvent):void
{
-   super.selectedHandler(event);   
+   listModel.selectedIndex = event.index;
+   listModel.selectedItem = event.data;
+   sendEvent(listView.host,"change");
+
var newEvent:ItemClickEvent = new 
ItemClickEvent(ItemClickEvent.ITEM_CLICK);
-newEvent.index = event.index;
+   newEvent.index = event.index;
 IEventDispatcher(_strand).dispatchEvent(newEvent);
}   
 


[royale-asjs] branch develop updated: Basic Tree: Update Moonshine IDE project file

2021-04-01 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 b18f97f  Basic Tree: Update Moonshine IDE project file
b18f97f is described below

commit b18f97f111d50440166ce11b6f88fffaf28109ac
Author: Piotr Zarzycki 
AuthorDate: Thu Apr 1 14:01:26 2021 +0200

Basic Tree: Update Moonshine IDE project file
---
 examples/royale/TreeExample/TreeExample.as3proj | 101 +++-
 1 file changed, 65 insertions(+), 36 deletions(-)

diff --git a/examples/royale/TreeExample/TreeExample.as3proj 
b/examples/royale/TreeExample/TreeExample.as3proj
index b6a1207..693c50b 100644
--- a/examples/royale/TreeExample/TreeExample.as3proj
+++ b/examples/royale/TreeExample/TreeExample.as3proj
@@ -1,87 +1,116 @@
 
 
 
   
-
 
+
+
 
-
 
+
 
-
 
+
   
   !-- Other classes to be compiled into your SWF --
+  
+
+  
   
 
   
   
+  
   
-
-
-
 
-
+
+
+
 
-
-
-
+
 
-
-
-
-
+
+
+
 
-
-
-
 
-
-
+
+
+
 
+
+
+
+
+
+
+
   
+  
+
+
+
+
+
+
+  
+  
+  
+  
+  
+
+  
   
   
   
   
   
   
+  
   
 
   
   
   null
   null
+  False
   
-
+
 
+
+
 
+
+
 
   
   
-
-
+
 
-
 
-null
+
+
+
+
+
+Apple iPad
 null
 null
 null


[royale-asjs] branch develop updated: MXRoyale: Fix issue where removing item from ArrayCollection wasn't reflected in UI of DataGrid

2021-03-09 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 41b43a3  MXRoyale: Fix issue where removing item from ArrayCollection 
wasn't reflected in UI of DataGrid
41b43a3 is described below

commit 41b43a3afe723f273926730c643f10086d663826
Author: Piotr Zarzycki 
AuthorDate: Tue Mar 9 17:44:10 2021 +0100

MXRoyale: Fix issue where removing item from ArrayCollection wasn't 
reflected in UI of DataGrid
---
 ...ataItemRendererFactoryForICollectionViewData.as | 50 +-
 1 file changed, 29 insertions(+), 21 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
index 7c66982..ee32f90 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/DataItemRendererFactoryForICollectionViewData.as
@@ -39,7 +39,6 @@ package mx.controls.listClasses
 import org.apache.royale.core.SimpleCSSStyles;
 import org.apache.royale.core.UIBase;
 import org.apache.royale.core.ValuesManager;
-import org.apache.royale.events.CollectionEvent;
 import org.apache.royale.events.Event;
 import org.apache.royale.events.EventDispatcher;
 import org.apache.royale.events.IEventDispatcher;
@@ -103,10 +102,10 @@ package mx.controls.listClasses
 
 // listen for individual items being added in the future.
 var dped:IEventDispatcher = dp as IEventDispatcher;
-
dped.addEventListener(org.apache.royale.events.CollectionEvent.ITEM_ADDED, 
itemAddedHandler);
-
dped.addEventListener(org.apache.royale.events.CollectionEvent.ITEM_REMOVED, 
itemRemovedHandler);
-
dped.addEventListener(org.apache.royale.events.CollectionEvent.ITEM_UPDATED, 
itemUpdatedHandler);
-dped.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, 
collectionChangeHandler);
+   //First remove if it's already added
+   
dped.removeEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, 
collectionChangeHandler);
+
+   
dped.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, 
collectionChangeHandler);
 
 super.dataProviderChangeHandler(event);
 }
@@ -136,7 +135,7 @@ package mx.controls.listClasses
 * @royaleignorecoercion 
org.apache.royale.core.IIndexedItemRenderer
 * @royaleignorecoercion 
org.apache.royale.events.IEventDispatcher
 */
-   protected function 
itemAddedHandler(event:org.apache.royale.events.CollectionEvent):void
+   protected function itemAddedHandler(event:CollectionEvent):void
{
if (!dataProviderModel)
return;
@@ -148,15 +147,15 @@ package mx.controls.listClasses
 var dataGroup:IItemRendererOwnerView = view.dataGroup;
 
var ir:IIndexedItemRenderer = 
itemRendererFactory.createItemRenderer() as IIndexedItemRenderer;
-   dataGroup.addItemRendererAt(ir, event.index);
+   dataGroup.addItemRendererAt(ir, event.location);
 
-var data:Object = event.item;
-(itemRendererInitializer as 
IIndexedItemRendererInitializer).initializeIndexedItemRenderer(ir, data, 
event.index);
+var data:Object = event.items.pop();
+(itemRendererInitializer as 
IIndexedItemRendererInitializer).initializeIndexedItemRenderer(ir, data, 
event.location);
 ir.data = data;

// update the index values in the itemRenderers to 
correspond to their shifted positions.
var n:int = dataGroup.numItemRenderers;
-   for (var i:int = event.index; i < n; i++)
+   for (var i:int = event.location; i < n; i++)
{
ir = dataGroup.getItemRendererAt(i) as 
IIndexedItemRenderer;
ir.index = i;
@@ -172,7 +171,7 @@ package mx.controls.listClasses
(_strand as IEventDispatcher).dispatchEvent(new 
Event("layoutNeeded"));
}

-   protected function 
itemRemovedHandler(event:org.apache.royale.events.CollectionEvent):void
+   protected function 
itemRemovedHandler(event:Colle

[royale-asjs] branch develop updated: SparkRoyale: Add implementation of removeAllElements in Group

2021-03-04 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 ec4116b  SparkRoyale: Add implementation of removeAllElements in Group
ec4116b is described below

commit ec4116ba3a1a25b7c7b8d98c18f92c55d0ae891e
Author: Piotr Zarzycki 
AuthorDate: Thu Mar 4 14:55:14 2021 +0100

SparkRoyale: Add implementation of removeAllElements in Group
---
 .../SparkRoyale/src/main/royale/spark/components/Group.as | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
index 226629f..4e8e5c4 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
@@ -24,6 +24,7 @@ import mx.core.IUIComponent;
 import spark.components.supportClasses.GroupBase;
 import mx.core.mx_internal;
 import mx.core.IVisualElement;
+import org.apache.royale.core.IChild;
 /*
 import flash.display.BlendMode;
 import flash.display.DisplayObject;
@@ -277,7 +278,12 @@ public class Group extends GroupBase /*implements 
IVisualElementContainer,

 public function removeAllElements():void
 {
-   // not implemented
+for (var i:int = numElements - 1; i >= 0; i--)
+{
+var el:IChild = getElementAt(i);
+
+removeElement(el);
+}
 }
 
 public function set mouseEnabledWhereTransparent(value:Boolean):void



[royale-asjs] branch develop updated: Add TLF to Maven distribution Royale build

2021-02-18 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 e980e95  Add TLF to Maven distribution Royale build
e980e95 is described below

commit e980e9547008e2ab03673db45d590c84c6a0f50d
Author: Piotr Zarzycki 
AuthorDate: Thu Feb 18 13:29:20 2021 +0100

Add TLF to Maven distribution Royale build
---
 distribution/pom.xml | 13 +
 1 file changed, 13 insertions(+)

diff --git a/distribution/pom.xml b/distribution/pom.xml
index aed4c25..6edf262 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -257,6 +257,13 @@
 
 
   org.apache.royale.framework
+  TLF
+  0.9.8-SNAPSHOT
+  swc
+  js
+
+
+  org.apache.royale.framework
   Jewel
   0.9.8-SNAPSHOT
   swc
@@ -713,6 +720,12 @@
 
 
   org.apache.royale.framework
+  TLF
+  0.9.8-SNAPSHOT
+  swc
+
+
+  org.apache.royale.framework
   Jewel
   0.9.8-SNAPSHOT
   swc



[royale-asjs] branch develop updated: MXRoyale: Fix type of event in hidDropFeedback method to align with original implementation

2021-01-08 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 6489b06  MXRoyale: Fix type of event in hidDropFeedback method to 
align with original implementation
6489b06 is described below

commit 6489b064aee3249f3393b7054e685a6afc852e81
Author: Piotr Zarzycki 
AuthorDate: Fri Jan 8 16:12:26 2021 +

MXRoyale: Fix type of event in hidDropFeedback method to align with 
original implementation
---
 .../MXRoyale/src/main/royale/mx/controls/listClasses/ListBase.as   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/ListBase.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/ListBase.as
index e4bf07e..420a7c0 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/ListBase.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/ListBase.as
@@ -31,6 +31,7 @@ import mx.core.ScrollPolicy;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.events.CollectionEvent;
+import mx.events.DragEvent;
 import mx.utils.UIDUtil;
 
 import org.apache.royale.core.ContainerBaseStrandChildren;
@@ -1108,7 +1109,7 @@ use namespace mx_internal;
 *  @playerversion AIR 1.1
 *  @productversion Flex 3
 */
-   public function hideDropFeedback(event:Object):void
+   public function hideDropFeedback(event:DragEvent):void
{
//To Do
trace("hideDropFeedback is not implemented");



[royale-asjs] branch develop updated: SparkRoyale: Fix displaying data label based on labelFunction in DropDownList

2021-01-04 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 12c1e89  SparkRoyale: Fix displaying data label based on labelFunction 
in DropDownList
12c1e89 is described below

commit 12c1e8913f196b6e0e437190c18e758692ff09af
Author: pzarzycki 
AuthorDate: Mon Jan 4 17:36:40 2021 +

SparkRoyale: Fix displaying data label based on labelFunction in 
DropDownList
---
 .../royale/spark/components/beads/DropDownListView.as| 11 +--
 .../royale/spark/components/supportClasses/ListBase.as   | 16 
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
index 9312f01..80c882c 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
@@ -109,9 +109,16 @@ package spark.components.beads
 }
 else
 {
-
+var ddl:DropDownList = (this.host as DropDownList);
+if (ddl["labelFunction"] != null)
+{
+label.label = 
ddl["labelFunction"](selectionModel.selectedItem);
+}
+else
+{
+label.label = getLabelFromData(selectionModel, 
selectionModel.selectedItem);
+}
 }
-label.label = 
getLabelFromData(selectionModel,selectionModel.selectedItem);
 }
 
 /**
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index ef0e1c5..65da669 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -739,9 +739,9 @@ public class ListBase  extends SkinnableContainer
 /**
  *  @private
  */
-/* private var _labelFunction:Function; 
+ private var _labelFunction:Function;
 
-[Inspectable(category="Data")] */
+/*[Inspectable(category="Data")] */
 
 /**
  *  A user-supplied function to run on each item to determine its label.  
@@ -765,10 +765,10 @@ public class ListBase  extends SkinnableContainer
  *  @playerversion AIR 1.5
  *  @productversion Royale 0.9.4
  */
-/* public function get labelFunction():Function
+public function get labelFunction():Function
 {
 return _labelFunction;
-} */
+}
 
 /**
  *  @private
@@ -776,10 +776,10 @@ public class ListBase  extends SkinnableContainer
 // not implemeneted
 public function set labelFunction(value:Function):void
 {
-//if (value == _labelFunction)
-//return;
-//
-//_labelFunction = value;
+if (value == _labelFunction)
+return;
+
+_labelFunction = value;
 //labelFieldOrFunctionChanged = true;
 //invalidateProperties(); 
 }



[royale-asjs] branch develop updated (cadad31 -> 640b751)

2020-12-31 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


from cadad31  jewel-datefield-beads: organize and clean imports
 add 640b751  Jewel DateFieldView: Make some method protected to easier 
extending

No new revisions were added by this update.

Summary of changes:
 .../main/royale/org/apache/royale/jewel/beads/views/DateFieldView.as  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



[royale-asjs] branch develop updated: HTML: Add "download" attribute to hyperlink

2020-12-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 aea5421  HTML: Add "download" attribute to hyperlink
aea5421 is described below

commit aea542135dcdb170c551a89f4b7dae54bbd35d75
Author: Piotr Zarzycki 
AuthorDate: Sun Dec 20 14:21:52 2020 +0100

HTML: Add "download" attribute to hyperlink
---
 .../royale/org/apache/royale/html/elements/A.as| 22 +-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
index 8b187d0..f6be9e8 100644
--- 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
+++ 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as
@@ -88,7 +88,27 @@ package org.apache.royale.html.elements
 _target = value;
 setAttribute('target', value);
}
-   
+
+   private var _download:String = "";
+
+   /**
+*  Prompts the user to save the linked URL instead of 
navigating to it
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.8
+*/
+   public function get download():String
+   {
+   return _download;
+   }
+   public function set download(value:String):void
+   {
+   _download = value;
+   setAttribute('download', value);
+   }
+
private var _rel:String = "";
 /**
  *  The rel attribute specifies the relationship between the current 
document and the linked document.



[royale-asjs] branch develop updated: SparkRoyale: Make some properties in DropDownListView protected to get easy way for extend

2020-12-19 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 7c794cf  SparkRoyale: Make some properties in DropDownListView 
protected to get easy way for extend
7c794cf is described below

commit 7c794cfbf48a6ab4fc4d97df09cfdba579e2860e
Author: Piotr Zarzycki 
AuthorDate: Sun Dec 20 02:09:46 2020 +0100

SparkRoyale: Make some properties in DropDownListView protected to get easy 
way for extend
---
 .../src/main/royale/spark/components/beads/DropDownListView.as| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
index b862b7c..9312f01 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
@@ -73,7 +73,7 @@ package spark.components.beads
  */
 public var label:Button;
 
-private var selectionModel:ISelectionModel;
+protected var selectionModel:ISelectionModel;
 
 /**
  */
@@ -101,7 +101,7 @@ package spark.components.beads
 
 }
 
-private function selectionChangeHandler(event:Event):void
+protected function selectionChangeHandler(event:Event):void
 {
 if (selectionModel.selectedItem == null)
 {



[royale-asjs] branch develop updated: Change Spark Scroller to allow viewport to be set after Scroller is added to its parent.

2020-12-19 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 3ac4c32  Change Spark Scroller to allow viewport to be set after 
Scroller is added to its parent.
 new f8d680f  Merge pull request #1018 from 
estanglerbm/sparkscroller-viewport
3ac4c32 is described below

commit 3ac4c3291a244ad6808a1757fbffd8671d27be8d
Author: Edward Stangler 
AuthorDate: Wed Dec 9 20:15:41 2020 -0600

Change Spark Scroller to allow viewport to be set after Scroller is added 
to its parent.
---
 .../src/main/royale/spark/components/Scroller.as   | 14 +-
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
index 3330ecd..0cd296e 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Scroller.as
@@ -1116,6 +1116,15 @@ public class Scroller extends SkinnableComponent
  */
 private function installViewport():void
 {
+if (!viewport) return;
+
+   // moved from addedToParent()
+   var vp:UIComponent = _viewport as UIComponent;
+   if (vp.isWidthSizedToContent())
+   vp.setWidth(width);
+   if (vp.isHeightSizedToContent())
+   vp.setHeight(height);
+
 /*  SWF?
 if (skin && viewport)
 {*/
@@ -3895,11 +3904,6 @@ public class Scroller extends SkinnableComponent
 override public function addedToParent():void
 {
 super.addedToParent();
-   var vp:UIComponent = _viewport as UIComponent;
-   if (vp.isWidthSizedToContent())
-   vp.setWidth(width);
-   if (vp.isHeightSizedToContent())
-   vp.setHeight(height);
 installViewport();
 }
 



[royale-asjs] branch develop updated: MXRoyale: Add implementation of item renderer change which allows user dynamically change already created item renderer

2020-12-18 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 8f9df0b  MXRoyale: Add implementation of item renderer change which 
allows user dynamically change already created item renderer
8f9df0b is described below

commit 8f9df0baa6fcb8c4500579476ae07d593724d7fd
Author: Piotr Zarzycki 
AuthorDate: Fri Dec 18 13:57:55 2020 +0100

MXRoyale: Add implementation of item renderer change which allows user 
dynamically change already created item renderer
---
 .../main/royale/mx/controls/beads/DataGridView.as  | 45 --
 .../mx/controls/dataGridClasses/DataGridColumn.as  | 25 
 2 files changed, 59 insertions(+), 11 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
index b5011cf..c129123 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridView.as
@@ -123,12 +123,31 @@ COMPILE::JS{
 }
 
 protected function columnsChanged(event:Event):void{
-if (columnLists == null) createLists()
-else recreateLists();
+if (columnLists == null)
+{
+createLists()
+}
+else
+{
+recreateLists();
+}
 handleColumnsInvalid(null);
 }
 
-
+protected function itemRendererChangedHandler(event:Event):void
+{
+var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) 
as IDataGridModel;
+if (sharedModel.columns != null)
+{
+for (var i:int = 0; i < sharedModel.columns.length; i++)
+{
+var col:DataGridColumn = (sharedModel.columns[i] as 
DataGridColumn);
+col.removeEventListener("itemRendererChanged", 
itemRendererChangedHandler);
+}
+}
+columnsChanged(event);
+}
+
 protected function handleCollectionChanged(event:Event):void
 {
 if (columnLists == null) return;
@@ -203,13 +222,32 @@ COMPILE::JS{
 {
 generateCols();
 createLists();
+
 (header as DataGridButtonBar).dataProvider = 
sharedModel.columns;
 }
 if (sharedModel.columns == null)
 return;
+
+registerRendererChange();
+
 super.handleDataProviderChanged(event);
 }
 
+private function registerRendererChange():void
+{
+var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) 
as IDataGridModel;
+if (sharedModel.columns == null || sharedModel.dataProvider == 
null) return;
+
+for (var i:int=0; i < sharedModel.columns.length; i++)
+{
+var col:DataGridColumn = (sharedModel.columns[i] as 
DataGridColumn);
+if (!col.hasEventListener("itemRendererChanged"))
+{
+col.addEventListener("itemRendererChanged", 
itemRendererChangedHandler);
+}
+}
+}
+
 /**
  *  @private
  *  Searches the iterator to determine columns.
@@ -317,6 +355,7 @@ COMPILE::JS{
 (sharedModel.columns[i] as 
DataGridColumn).itemRenderer = host.itemRenderer;
 }
 }
+
 super.createLists();
 }
 
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
index 575c1f4..05bfb0b 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
@@ -30,7 +30,6 @@ import mx.controls.listClasses.IListItemRenderer;
 import mx.core.ClassFactory;
 import mx.core.ContextualClassFactory;
 import mx.core.IEmbeddedFontRegistry;
-import mx.core.IFactory;
 import mx.core.IFlexModuleFactory;
 import mx.core.IIMESupport;
 import mx.core.Singleton;
@@ -41,8 +40,8 @@ import mx.utils.StringUtil;
 import mx.core.UIComponent;
 import mx.core.mx_internal;
 import mx.controls.TextInput;
-import mx.core.IFactory;
 import mx.core.ClassFactory;
+import mx.core.IFactory;
 use namespace mx_internal;
 
 import org.apache.royale.events.Event;
@@ -895,11 +894,11 @@ public class DataGridColumn extends 
org.apache.royale.html.supportClasses.DataGr


[royale-asjs] branch develop updated: SparkRoyale: Add implementation of attachSkin which helps initialize properly components uses SkinnableComponent class to init skin

2020-12-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 0a3955b  SparkRoyale: Add implementation of attachSkin which helps 
initialize properly components uses SkinnableComponent class to init skin
0a3955b is described below

commit 0a3955b4da689cf3ecbdcde5d5e131dd5ccd4806
Author: pzarzycki 
AuthorDate: Thu Dec 17 18:41:04 2020 +

SparkRoyale: Add implementation of attachSkin which helps initialize 
properly components uses SkinnableComponent class to init skin

ViewPort shouldn't add skin if it's already created
---
 .../spark/components/beads/SparkSkinViewport.as|  5 +-
 .../supportClasses/SkinnableComponent.as   | 67 +-
 2 files changed, 70 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinViewport.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinViewport.as
index b5dc6df..b8af175 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinViewport.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinViewport.as
@@ -96,7 +96,10 @@ public class SparkSkinViewport extends EventDispatcher 
implements IBead, IViewpo
 var c:Class = ValuesManager.valuesImpl.getValue(value, "skinClass") as 
Class;
 if (c)
 {
-host.setSkin(new c());
+if (!host.skin)
+{
+host.setSkin(new c());
+}
 host.skin.addEventListener("initComplete", initCompleteHandler);
 contentArea = host.skin; // temporary assigment so that 
SkinnableXXContainer.addElement can add the skin
 }
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
index b7083f2..19f5caa 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableComponent.as
@@ -296,7 +296,72 @@ public class SkinnableComponent extends UIComponent
invalidateSkinState();
 dispatchEvent(new Event("skinChanged"));
 }
-
+
+/**
+ *  Create the skin for the component.
+ *  You do not call this method directly.
+ *  Flex calls it automatically when it calls 
createChildren() or
+ *  the UIComponent.commitProperties() method.
+ *  Typically, a subclass of SkinnableComponent does not override this 
method.
+ *
+ *  This method instantiates the skin for the component,
+ *  adds the skin as a child of the component, and
+ *  resolves all part associations for the skin
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+protected function attachSkin():void
+{
+// Class
+if (!skin)
+{
+var skinClass:Class = getStyle("skinClass") as Class;
+
+if (skinClass)
+setSkin( new skinClass() );
+}
+
+if (skin)
+{
+   // skin.owner = this;
+
+// As a convenience if someone has declared hostComponent
+// we assign a reference to ourselves.  If the hostComponent
+// property exists as a direct result of utilizing [HostComponent]
+// metadata it will be strongly typed. We need to do more work
+// here and only assign if the type exactly matches our component
+// type.
+if ("hostComponent" in skin)
+{
+try
+{
+Object(skin).hostComponent = this;
+}
+catch (err:Error) {}
+}
+
+// the skin's styles should be the same as the components
+  //  skin.styleName = this;
+
+// Note: The Spark PanelAccImpl adds a child Sprite at index 0.
+// The skin should be in front of that.
+super.addChild(skin);
+
+//skin.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, 
skin_propertyChangeHandler);
+}
+else
+{
+   // throw(new Error(resourceManager.getString("components", 
"skinNotFound", [this])));
+}
+
+findSkinParts();
+
+invalidateSkinState();
+}
+
 /**
  * @private 
  * 



[royale-asjs] branch develop updated: SparkRoyale: Improve handle itemRendererFunction in DataGroup - Implement some sort of working label property in ItemRenderer

2020-12-14 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 3cfd8aa  SparkRoyale: Improve handle itemRendererFunction in DataGroup 
- Implement some sort of working label property in ItemRenderer
3cfd8aa is described below

commit 3cfd8aa4db48b0ded5527cb0ebf8d3125a87b895
Author: pzarzycki 
AuthorDate: Tue Dec 15 07:55:16 2020 +

SparkRoyale: Improve handle itemRendererFunction in DataGroup
- Implement some sort of working label property in ItemRenderer
---
 .../src/main/royale/spark/components/DataGroup.as  | 23 ++
 .../components/supportClasses/ItemRenderer.as  | 27 +++---
 2 files changed, 27 insertions(+), 23 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DataGroup.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DataGroup.as
index b5ffa41..b920669 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DataGroup.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/DataGroup.as
@@ -556,8 +556,13 @@ public class DataGroup extends GroupBase implements 
IItemRendererProvider, IStra
  */
 public function get itemRendererFunction():Function // not implemeneted
 {
-//return _itemRendererFunction;
-   return null;
+var itemRendererFunctionBead:ItemRendererFunctionBead = 
getBeadByType(ItemRendererFunctionBead) as ItemRendererFunctionBead;
+   if (itemRendererFunctionBead)
+{
+return itemRendererFunctionBead.itemRendererFunction;
+}
+
+return null;
 }
 
 /**
@@ -565,13 +570,13 @@ public class DataGroup extends GroupBase implements 
IItemRendererProvider, IStra
  */
 public function set itemRendererFunction(value:Function):void
 {
-   var itemRendererFunctionBead:ItemRendererFunctionBead = 
getBeadByType(ItemRendererFunctionBead) as ItemRendererFunctionBead;
-   if (!itemRendererFunctionBead)
-   {
-   itemRendererFunctionBead = new ItemRendererFunctionBead();
-   addBead(itemRendererFunctionBead);
-   }
-   itemRendererFunctionBead.itemRendererFunction = value;
+var itemRendererFunctionBead:ItemRendererFunctionBead = 
getBeadByType(ItemRendererFunctionBead) as ItemRendererFunctionBead;
+if (!itemRendererFunctionBead)
+{
+itemRendererFunctionBead = new ItemRendererFunctionBead();
+addBead(itemRendererFunctionBead);
+}
+itemRendererFunctionBead.itemRendererFunction = value;
 }
 
 //--
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
index f599776..eb34517 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ItemRenderer.as
@@ -610,12 +610,6 @@ public class ItemRenderer extends DataRenderer implements 
IItemRenderer
 //invalidateRendererState();
 }
 }
-
-// not implemented
-public function get label():String {return "label"} 
-
-// not implemented
-public function set label(value:String):void {}
 
 //--
 //  label
@@ -625,9 +619,9 @@ public class ItemRenderer extends DataRenderer implements 
IItemRenderer
  *  @private 
  *  Storage var for label
  */ 
-   /*  private var _label:String = "";
+ private var _label:String = "";
 
-[Bindable("labelChanged")] */
+[Bindable("labelChanged")]
 
 /**
  *  @inheritDoc 
@@ -639,15 +633,15 @@ public class ItemRenderer extends DataRenderer implements 
IItemRenderer
  *  @playerversion AIR 1.5
  *  @productversion Royale 0.9.4
  */
-/* public function get label():String
+public function get label():String
 {
 return _label;
-} */
+}
 
 /**
  *  @private
  */ 
-/* public function set label(value:String):void
+ public function set label(value:String):void
 {
 if (value == _label)
 return;
@@ -656,11 +650,16 @@ public class ItemRenderer extends DataRenderer implements 
IItemRenderer
 
 // Push the label down into the labelDisplay,
 // if it exists
-if (labelDisplay)
-labelDisplay.text = _label;
+COMPILE::JS
+{
+if (this.element) {
+//labelDisplay.text = _label;
+this.element.textContent = value;
+}
+  

[royale-asjs] branch develop updated: CruxQuickStart Example: Update Moonshine IDE project file

2020-12-14 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 497ca70  CruxQuickStart Example: Update Moonshine IDE project file
497ca70 is described below

commit 497ca7061745e14d337beb26d6a511a971b8896d
Author: Piotr Zarzycki 
AuthorDate: Mon Dec 14 18:03:44 2020 +0100

CruxQuickStart Example: Update Moonshine IDE project file
---
 .../crux/CruxQuickStart/CruxQuickStart.as3proj | 74 --
 1 file changed, 40 insertions(+), 34 deletions(-)

diff --git a/examples/crux/CruxQuickStart/CruxQuickStart.as3proj 
b/examples/crux/CruxQuickStart/CruxQuickStart.as3proj
index a7dd58a..8db8a9a 100644
--- a/examples/crux/CruxQuickStart/CruxQuickStart.as3proj
+++ b/examples/crux/CruxQuickStart/CruxQuickStart.as3proj
@@ -19,15 +19,15 @@
 -->
 
   
-
-
-
-
 
-
 
-
+
+
+
+
+
 
+
   
   !-- Other classes to be compiled into your SWF --
   
@@ -40,38 +40,41 @@
   
   
 
+
+
+
+
 
-
-
-
-
-
+
+
+
 
+
 
-
+
+
 
 
-
-
-
-
-
+
+
 
-
-
-
-
+
+
+
+
   
   
+
 
-
 
+
+
 
-  
-  
-  
-  
-  
+  
+  
+  
+  
+  
 
   
   
@@ -83,6 +86,7 @@
 
   
   
+  
   
 
   
@@ -91,23 +95,25 @@
   null
   False
   
+
+
 
-
 
 
+
 
-
 
-
   
   
-
+
+
 
-
 
-
 
-null
+
+
+
+Apple iPad
 null
 null
 null



[royale-asjs] branch develop updated: MXRoyale: ToggleButtonBar should use ListSingleSelectionMouseController from MX package to mimic original behavior from Flex

2020-12-11 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 a2a5fd0  MXRoyale: ToggleButtonBar should use 
ListSingleSelectionMouseController from MX package to mimic original behavior 
from Flex
a2a5fd0 is described below

commit a2a5fd0777efd11d1e0ab38a283b5b5b8c95cdb2
Author: pzarzycki 
AuthorDate: Sat Dec 12 02:11:07 2020 +

MXRoyale: ToggleButtonBar should use ListSingleSelectionMouseController 
from MX package to mimic original behavior from Flex
---
 frameworks/projects/MXRoyale/src/main/resources/defaults.css | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/resources/defaults.css 
b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
index 1f5dd07..9a16916 100644
--- a/frameworks/projects/MXRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
@@ -558,7 +558,7 @@ ToggleButtonBar
 {
IBeadModel: 
ClassReference("org.apache.royale.html.beads.models.ButtonBarModel");
IBeadView:  
ClassReference("org.apache.royale.html.beads.ButtonBarView");   

-   IBeadController: 
ClassReference("org.apache.royale.html.beads.controllers.ListSingleSelectionMouseController");
+   IBeadController: 
ClassReference("mx.controls.listClasses.ListSingleSelectionMouseController");
IBeadLayout: 
ClassReference("org.apache.royale.html.beads.layouts.ButtonBarLayout");
IDataProviderItemRendererMapper: 
ClassReference("org.apache.royale.html.beads.TextItemRendererFactoryForArrayData");
IItemRendererInitializer: 
ClassReference("org.apache.royale.html.beads.ListItemRendererInitializer");



[royale-asjs] branch develop updated: MXRoyale: Add labelField to have control over displayed text on ToggleButtonBar

2020-12-10 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 38a71ae  MXRoyale: Add labelField to have control over displayed text 
on ToggleButtonBar
38a71ae is described below

commit 38a71ae3e063d2d6655cefd90d11dd7a976c37b5
Author: Piotr Zarzycki 
AuthorDate: Thu Dec 10 16:15:22 2020 +0100

MXRoyale: Add labelField to have control over displayed text on 
ToggleButtonBar
---
 .../src/main/royale/mx/controls/ToggleButtonBar.as | 24 +-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as
index 832b4ad..77dc8c4 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as
@@ -353,11 +353,33 @@ public class ToggleButtonBar extends UIComponent 
implements ILayoutParent, ILayo
 //   bSelectionChanged = true;
 //   bSelectedIndexChanged = true;
 //  invalidateDisplayList();
-return;
 // }
 //commitSelectedIndex(value);
 }
 
+/**
+ *  The name of the field in the data provider items to display
+ *  as the label.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ *  @royaleignorecoercion org.apache.royale.core.ISelectionModel
+ */
+public function get labelField():String
+{
+return (model as ISelectionModel).labelField;
+}
+
+/**
+ *  @private
+ *  @royaleignorecoercion org.apache.royale.core.ISelectionModel
+ */
+public function set labelField(value:String):void
+{
+(model as ISelectionModel).labelField = value;
+}
 
//--
 //
 //  Overridden properties



[royale-asjs] branch develop updated: Jewel ListView: Fix issue where making dataProvider = null to any component which is using ListView bead causes NPE

2020-12-04 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 a2fc29b  Jewel ListView: Fix issue where making dataProvider = null to 
any component which is using ListView bead causes NPE
a2fc29b is described below

commit a2fc29b2905fca2ad72ff8147851683d6c85083e
Author: Piotr Zarzycki 
AuthorDate: Fri Dec 4 12:29:03 2020 +0100

Jewel ListView: Fix issue where making dataProvider = null to any component 
which is using ListView bead causes NPE
---
 .../src/main/royale/org/apache/royale/jewel/beads/views/ListView.as | 2 ++
 1 file changed, 2 insertions(+)

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 473d9b4..b33a069 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
@@ -188,6 +188,8 @@ package org.apache.royale.jewel.beads.views
 */
public function scrollToIndex(index:int):Boolean
{
+   if (index == -1) return false;
+   
var scrollArea:HTMLElement = (_strand as 
IStyledUIBase).element;
var oldScroll:Number = scrollArea.scrollTop;
 



[royale-asjs] branch develop updated: SparkRoyale: Add ResizeMode in the right place fixes latest Pushmina changes

2020-12-02 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 49061ea  SparkRoyale: Add ResizeMode in the right place fixes latest 
Pushmina changes
49061ea is described below

commit 49061ea0590f507800cc4fda5164553f7d4bf551
Author: Piotr Zarzycki 
AuthorDate: Wed Dec 2 12:55:30 2020 +0100

SparkRoyale: Add ResizeMode in the right place fixes latest Pushmina changes
---
 .../src/main/royale/spark/components/ResizeMode.as | 70 ++
 1 file changed, 70 insertions(+)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/ResizeMode.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/ResizeMode.as
new file mode 100644
index 000..873bd01
--- /dev/null
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/ResizeMode.as
@@ -0,0 +1,70 @@
+
+//
+//  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.
+//
+
+
+package spark.components
+{
+
+/**
+ *  The ResizeMode class defines an enumeration of the modes 
+ *  a component uses to resize its children in the dimensions
+ *  specified by the layout system.
+ *
+ *  The component can change its own dimensions (width and 
height)
+ *  and re-layout its children appropriately (this is the default resize 
mode).
+ *
+ *  An alternative option for the component is to change its scale, in 
which case
+ *  the children don't need to change at all. This option is supported by 
Group.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public final class ResizeMode
+{
+/**
+ *  Resizes by changing the width and height.
+ *
+ *  The component always sizes itself and then lays out 
+ *  its children at the actual size specified by the layout or the 
user.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public static const NO_SCALE:String = "noScale";
+
+/**
+ *  Resizes by setting the scaleX 
+ *  and scaleY properties.
+ *
+ *  The component always sizes itself and then lays out 
+ *  its children at its measured size. 
+ *  The scale is adjusted to match the specified size by the layout or the 
user.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+public static const SCALE:String = "scale";
+}
+
+}



[royale-asjs] branch develop updated: SparkRoyale: Add bead SparkSkinWithClipAndEnableScrollinvViewport to respect property clipAndEnableScrolling

2020-11-27 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 da5e8c2  SparkRoyale: Add bead 
SparkSkinWithClipAndEnableScrollinvViewport to respect property 
clipAndEnableScrolling
da5e8c2 is described below

commit da5e8c2c1debd0ddb47fbbaea7c2fcc4e260cfae
Author: Piotr Zarzycki 
AuthorDate: Fri Nov 27 13:06:40 2020 +0100

SparkRoyale: Add bead SparkSkinWithClipAndEnableScrollinvViewport to 
respect property clipAndEnableScrolling
---
 .../src/main/resources/spark-royale-manifest.xml   |  1 +
 .../src/main/royale/SparkRoyaleClasses.as  |  1 +
 .../SparkSkinWithClipAndEnableScrollingViewport.as | 69 ++
 .../spark/components/supportClasses/GroupBase.as   |  2 +-
 4 files changed, 72 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml 
b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
index c7ca5bb..31d3ede 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
+++ 
b/frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml
@@ -35,6 +35,7 @@



+   



diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as 
b/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as
index ca38116..59bbdba 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/SparkRoyaleClasses.as
@@ -93,6 +93,7 @@ internal class SparkRoyaleClasses
 import spark.components.beads.GroupView; GroupView;
 import spark.components.beads.SkinnableContainerView; 
SkinnableContainerView;
 import spark.components.beads.SparkSkinScrollingViewport; 
SparkSkinScrollingViewport;
+   import 
spark.components.beads.SparkSkinWithClipAndEnableScrollingViewport; 
SparkSkinWithClipAndEnableScrollingViewport;
 import spark.components.beads.DropDownListView; DropDownListView;
 import spark.components.beads.TitleWindowView; TitleWindowView;
 import spark.components.beads.controllers.DropDownListController; 
DropDownListController;
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinWithClipAndEnableScrollingViewport.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinWithClipAndEnableScrollingViewport.as
new file mode 100644
index 000..279309b
--- /dev/null
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinWithClipAndEnableScrollingViewport.as
@@ -0,0 +1,69 @@
+
+//
+//  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.
+//
+
+
+package spark.components.beads
+{
+import spark.core.IViewport;
+
+/**
+ *  @private
+ *  The viewport that loads a Spark Skin.
+ */
+public class SparkSkinWithClipAndEnableScrollingViewport extends 
SparkSkinScrollingViewport
+{
+
//--
+//
+//  Constructor
+//
+
//--
+
+/**
+ *  Constructor.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public function SparkSkinWithClipAndEnableScrollingViewport()
+{
+super();
+}
+
+/**
+ * Subclasses override this method to change scrolling behavior
+ */
+COMPILE::JS
+override protected function setScrollStyle():void
+{
+var viewPort:IViewport = contentArea as IViewport;
+if (viewPort != null)
+{
+//Make sur

[royale-asjs] branch develop updated: SparkRoyale: Make similar behavior to Flex for components. If component has some viewport bead it will override clipAndEnableScrolling behavior. If doesn't have c

2020-11-25 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 85a8b58  SparkRoyale: Make similar behavior to Flex for components. If 
component has some viewport bead it will override clipAndEnableScrolling 
behavior. If doesn't have clipAndEnableScrolling sets to false will sets 
overflow to "visible" - which hopefully replicates Flex behavior
85a8b58 is described below

commit 85a8b586ee78015eec8dfe3d801f211b5231232d
Author: Piotr Zarzycki 
AuthorDate: Thu Nov 26 08:00:37 2020 +0100

SparkRoyale: Make similar behavior to Flex for components. If component has 
some viewport bead it will override clipAndEnableScrolling behavior. If doesn't 
have clipAndEnableScrolling sets to false will sets overflow to "visible" - 
which hopefully replicates Flex behavior
---
 .../spark/components/beads/SparkSkinScrollingViewport.as| 13 +
 .../royale/spark/components/supportClasses/GroupBase.as |  2 +-
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
index 6e2d296..5ecbdb2 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
@@ -86,18 +86,7 @@ public class SparkSkinScrollingViewport extends 
SparkSkinViewport implements ISc
 COMPILE::JS
 protected function setScrollStyle():void
 {
-var viewPortArea:IViewport = contentArea as IViewport;
-if (viewPortArea && !viewPortArea.clipAndEnableScrolling)
-{
-if (contentArea.element.style.overflow != "unset")
-{
-contentArea.element.style.overflow = "unset";
-}
-}
-else
-{
-contentArea.element.style.overflow = "auto";
-}
+contentArea.element.style.overflow = "auto";
 }
 
 COMPILE::SWF
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
index 939079e..3ce13ff 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
@@ -790,7 +790,7 @@ public class GroupBase extends UIComponent implements 
ILayoutParent, IContainer,
 {
 COMPILE::JS
 {
-element.style.overflow = value ? "auto" : "unset";
+element.style.overflow = value ? "auto" : "visible";
 }
 COMPILE::SWF
 {



[royale-asjs] branch develop updated: SparkRoyale: Make clipAndEnableScrolling true default temporary - discussing more proper approach - it helps properly working stuff in JS

2020-11-25 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 b31bc50  SparkRoyale: Make clipAndEnableScrolling true default 
temporary - discussing more proper approach - it helps properly working stuff 
in JS
b31bc50 is described below

commit b31bc50f9b6249be89c6de092428b1ee38523a69
Author: Piotr Zarzycki 
AuthorDate: Wed Nov 25 20:41:05 2020 +0100

SparkRoyale: Make clipAndEnableScrolling true default temporary - 
discussing more proper approach - it helps properly working stuff in JS
---
 .../src/main/royale/spark/components/supportClasses/GroupBase.as| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
index 3c36a34..939079e 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
@@ -759,7 +759,7 @@ public class GroupBase extends UIComponent implements 
ILayoutParent, IContainer,
 //  clipAndEnableScrolling
 //--
 
-private var _clipAndEnableScrolling:Boolean = false;
+private var _clipAndEnableScrolling:Boolean = true;
 
 /**
  *  @copy spark.core.IViewport#clipAndEnableScrolling



[royale-asjs] branch develop updated: SparkRoyale: Start respecting clipAndEnableScrolling property provided by skin/IViewPort part of component - clipAndEnableScrolling set overflow to "unset" instea

2020-11-25 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 00c5b6c  SparkRoyale: Start respecting clipAndEnableScrolling property 
provided by skin/IViewPort part of component - clipAndEnableScrolling  set 
overflow to "unset" instead "none" which is proper value for that property
00c5b6c is described below

commit 00c5b6c687fdf29164f58d4cc66d858bafd07dd5
Author: Piotr Zarzycki 
AuthorDate: Wed Nov 25 19:54:42 2020 +0100

SparkRoyale: Start respecting clipAndEnableScrolling property provided by 
skin/IViewPort part of component
- clipAndEnableScrolling  set overflow to "unset" instead "none" which is 
proper value for that property
---
 .../components/beads/SparkSkinScrollingViewport.as | 18 --
 .../spark/components/supportClasses/GroupBase.as   |  2 +-
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
index 14ac721..6e2d296 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SparkSkinScrollingViewport.as
@@ -21,7 +21,10 @@ package spark.components.beads
 {
 
 import mx.core.mx_internal;
-use namespace mx_internal;
+
+import spark.core.IViewport;
+
+use namespace mx_internal;
 
 import spark.components.supportClasses.GroupBase;
 import spark.components.supportClasses.SkinnableComponent;
@@ -83,7 +86,18 @@ public class SparkSkinScrollingViewport extends 
SparkSkinViewport implements ISc
 COMPILE::JS
 protected function setScrollStyle():void
 {
-contentArea.element.style.overflow = "auto";
+var viewPortArea:IViewport = contentArea as IViewport;
+if (viewPortArea && !viewPortArea.clipAndEnableScrolling)
+{
+if (contentArea.element.style.overflow != "unset")
+{
+contentArea.element.style.overflow = "unset";
+}
+}
+else
+{
+contentArea.element.style.overflow = "auto";
+}
 }
 
 COMPILE::SWF
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
index 4b7a890..3c36a34 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/GroupBase.as
@@ -790,7 +790,7 @@ public class GroupBase extends UIComponent implements 
ILayoutParent, IContainer,
 {
 COMPILE::JS
 {
-element.style.overflow = value ? "auto" : "none";
+element.style.overflow = value ? "auto" : "unset";
 }
 COMPILE::SWF
 {



[royale-asjs] branch develop updated: MXRoyale: Make fontFamily working in UIComponent

2020-11-23 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 ac85bde  MXRoyale: Make fontFamily working in UIComponent
ac85bde is described below

commit ac85bde807820d80f135a2c6b2f65f001014e294
Author: Piotr Zarzycki 
AuthorDate: Mon Nov 23 19:16:03 2020 +0100

MXRoyale: Make fontFamily working in UIComponent
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index 074e470..8577c7b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -4847,12 +4847,11 @@ COMPILE::JS
  */
 public function get fontFamily():Object
 {
-trace("fontFamily not implemented");
-return 0;
+return ValuesManager.valuesImpl.getValue(this, "fontFamily");
 }
 public function set fontFamily(value:Object):void
 {
-trace("fontFamily not implemented");
+setStyle("fontFamily", value);
 }
[Inspectable(category="General")]




[royale-asjs] branch develop updated: HTML: Support srcObject property in Video - Add missing return types for methods

2020-10-30 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 6a22b6c  HTML: Support srcObject property in Video -  Add missing 
return types for methods
6a22b6c is described below

commit 6a22b6cf321ba93e518bfea7f42b6d96b8488dff
Author: Piotr Zarzycki 
AuthorDate: Fri Oct 30 12:15:36 2020 +0100

HTML: Support srcObject property in Video
-  Add missing return types for methods
---
 .../org/apache/royale/html/elements/Video.as   | 42 --
 1 file changed, 39 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
index e26e694..459c4a6 100644
--- 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
+++ 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
@@ -50,6 +50,42 @@ package org.apache.royale.html.elements
super();
}
 
+COMPILE::SWF
+private var _source:Object;
+
+/**
+ *  Stream object for Video
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.9.8
+ */
+public function get source():Object
+{
+COMPILE::SWF
+{
+return _source;
+}
+
+COMPILE::JS
+{
+return element["srcObject"];
+}
+}
+
+public function set source(value:Object):void
+{
+COMPILE::SWF
+{
+_source = value;
+}
+COMPILE::JS
+{
+element["srcObject"] = value;
+}
+}
+
COMPILE::SWF
 private var _autoplay:Boolean;
 
@@ -119,7 +155,7 @@ package org.apache.royale.html.elements
  *  @playerversion AIR 2.6
  *  @productversion Royale 0.9.8
  */
-public function play()
+public function play():void
 {
 COMPILE::JS
 {
@@ -136,7 +172,7 @@ package org.apache.royale.html.elements
  *  @playerversion AIR 2.6
  *  @productversion Royale 0.9.8
  */
-public function pause()
+public function pause():void
 {
 COMPILE::JS
 {
@@ -154,7 +190,7 @@ package org.apache.royale.html.elements
  *  @playerversion AIR 2.6
  *  @productversion Royale 0.9.8
  */
-public function load()
+public function load():void
 {
 COMPILE::JS
 {



[royale-asjs] branch develop updated: HTML: Add couple of missing methods to Video - play, pause, load and property paused

2020-10-29 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 2c8a0b6  HTML: Add couple of missing methods to Video - play, pause, 
load and property paused
2c8a0b6 is described below

commit 2c8a0b6d7894b0dd8e84400d5e8ab628e306c2e1
Author: Piotr Zarzycki 
AuthorDate: Thu Oct 29 16:33:32 2020 +0100

HTML: Add couple of missing methods to Video - play, pause, load and 
property paused
---
 .../org/apache/royale/html/elements/Video.as   | 81 +-
 1 file changed, 79 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
index f06e434..e26e694 100644
--- 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
+++ 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
@@ -54,12 +54,12 @@ package org.apache.royale.html.elements
 private var _autoplay:Boolean;
 
 /**
- *  Whether the input is autofocused
+ *  Whether the video is autoplay
  *
  *  @langversion 3.0
  *  @playerversion Flash 10.2
  *  @playerversion AIR 2.6
- *  @productversion Royale 0.9
+ *  @productversion Royale 0.9.8
  */
 public function get autoplay():Boolean
 {
@@ -73,6 +73,7 @@ package org.apache.royale.html.elements
 return (element as HTMLVideoElement).autoplay;
 }
 }
+
 public function set autoplay(value:Boolean):void
 {
 COMPILE::SWF
@@ -85,6 +86,82 @@ package org.apache.royale.html.elements
 }
 }
 
+COMPILE::SWF
+private var _paused:Boolean;
+
+/**
+ *  Whether the video is paused
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.9.8
+ */
+public function get paused():Boolean
+{
+COMPILE::SWF
+{
+return _paused;
+}
+
+COMPILE::JS
+{
+return (element as HTMLVideoElement).paused;
+}
+}
+
+COMPILE::JS
+/**
+ *  Start video
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.9.8
+ */
+public function play()
+{
+COMPILE::JS
+{
+(element as HTMLMediaElement).play();
+}
+}
+
+COMPILE::JS
+/**
+ *  Pause video
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.9.8
+ */
+public function pause()
+{
+COMPILE::JS
+{
+(element as HTMLMediaElement).pause();
+}
+}
+
+COMPILE::JS
+/**
+ *  Resets the media element to its initial state and begins the 
process of selecting
+ *  a media source and loading the media in preparation for playback 
to begin at the beginning.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.9.8
+ */
+public function load()
+{
+COMPILE::JS
+{
+(element as HTMLMediaElement).load();
+}
+}
+
 COMPILE::JS
 override protected function createElement():WrappedHTMLElement
 {



[royale-asjs] branch develop updated: HTML: Add video tag

2020-10-28 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 b004a40  HTML: Add video tag
b004a40 is described below

commit b004a40a6b3a16b7ee7b68f9c099b46f5bb479c9
Author: Piotr Zarzycki 
AuthorDate: Wed Oct 28 20:33:02 2020 +0100

HTML: Add video tag
---
 .../HTML/src/main/resources/html-manifest.xml  |  2 +-
 .../org/apache/royale/html/elements/Video.as   | 94 ++
 2 files changed, 95 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/HTML/src/main/resources/html-manifest.xml 
b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
index 03b03c0..19ff917 100644
--- a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
@@ -68,6 +68,7 @@
 
 
 
+
 
 
 
@@ -115,5 +116,4 @@
 
 
 
-
 
diff --git 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
new file mode 100644
index 000..f06e434
--- /dev/null
+++ 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Video.as
@@ -0,0 +1,94 @@
+
+//
+//  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.
+//
+
+package org.apache.royale.html.elements
+{
+COMPILE::JS
+{
+import org.apache.royale.core.WrappedHTMLElement;
+   import org.apache.royale.html.util.addElementToWrapper;
+}
+import org.apache.royale.html.NodeElementBase;
+
+   /**
+*  The Video class represents an HTML  element
+ *  
+*  
+ *  @toplevel
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.8
+*/
+   public class Video extends NodeElementBase
+   {
+   /**
+*  constructor.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.9.8
+*/
+   public function Video()
+   {
+   super();
+   }
+
+   COMPILE::SWF
+private var _autoplay:Boolean;
+
+/**
+ *  Whether the input is autofocused
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion Royale 0.9
+ */
+public function get autoplay():Boolean
+{
+COMPILE::SWF
+{
+return _autoplay;
+}
+
+COMPILE::JS
+{
+return (element as HTMLVideoElement).autoplay;
+}
+}
+public function set autoplay(value:Boolean):void
+{
+COMPILE::SWF
+{
+_autoplay = value;
+}
+COMPILE::JS
+{
+(element as HTMLVideoElement).autoplay = value;
+}
+}
+
+COMPILE::JS
+override protected function createElement():WrappedHTMLElement
+{
+   return addElementToWrapper(this,'video');
+}
+}
+}



[royale-asjs] branch develop updated: SparkRoyale: Another fix for TileWindow missing import in SWF build

2020-10-27 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 a23ff22  SparkRoyale: Another fix for TileWindow missing import in SWF 
build
a23ff22 is described below

commit a23ff22dda546b0655a962f6a266dbaa727e6629
Author: Piotr Zarzycki 
AuthorDate: Tue Oct 27 19:27:44 2020 +0100

SparkRoyale: Another fix for TileWindow missing import in SWF build
---
 .../SparkRoyale/src/main/royale/spark/components/TitleWindow.as   | 4 
 1 file changed, 4 insertions(+)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
index 3e70e2b..c34aa2c 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
@@ -43,6 +43,10 @@ use namespace mx_internal; */
 import org.apache.royale.events.Event;
 }
 
+COMPILE::SWF
+{
+import flash.events.Event;
+}
 //--
 //  Events
 //--



[royale-asjs] branch develop updated: SparkRoyale: Fix missing import Event in TitleWindow

2020-10-27 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 7132390  SparkRoyale: Fix missing import Event in TitleWindow
7132390 is described below

commit 7132390406e10e00ee92baeaeca68be21d945af6
Author: Piotr Zarzycki 
AuthorDate: Tue Oct 27 18:13:06 2020 +0100

SparkRoyale: Fix missing import Event in TitleWindow
---
 .../SparkRoyale/src/main/royale/spark/components/TitleWindow.as   | 4 
 1 file changed, 4 insertions(+)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
index 9781b86..3e70e2b 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TitleWindow.as
@@ -38,6 +38,10 @@ import spark.events.TitleWindowBoundsEvent;
 use namespace mx_internal; */
 import mx.events.CloseEvent;
 import mx.events.MouseEvent;
+COMPILE::JS
+{
+import org.apache.royale.events.Event;
+}
 
 //--
 //  Events



[royale-asjs] branch develop updated: MXRoyale: Add Timer implementation with TimerEvent. Timer extends org.apache.royale.utils.Timer and dispatch TimerEvent.TIMER_COMPLETE

2020-10-23 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 6647d85  MXRoyale: Add Timer implementation with TimerEvent. Timer 
extends org.apache.royale.utils.Timer and dispatch TimerEvent.TIMER_COMPLETE
6647d85 is described below

commit 6647d85103f89b45baa4b61560bb8331dfdff8bd
Author: pzarzycki 
AuthorDate: Fri Oct 23 12:28:11 2020 +0100

MXRoyale: Add Timer implementation with TimerEvent. Timer extends 
org.apache.royale.utils.Timer and dispatch TimerEvent.TIMER_COMPLETE
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as|   3 +
 .../src/main/royale/mx/events/TimerEvent.as| 115 +
 .../MXRoyale/src/main/royale/mx/utils/Timer.as |  70 +
 3 files changed, 188 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as 
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index d091291..9aeed54 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -352,6 +352,9 @@ internal class MXRoyaleClasses

import mx.utils.NameUtil; NameUtil;
import mx.core.BitmapAsset; BitmapAsset;
+
+   import mx.events.TimerEvent; TimerEvent;
+   import mx.utils.Timer; Timer;
 }
 
 }
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/events/TimerEvent.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/events/TimerEvent.as
new file mode 100644
index 000..50d625a
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/TimerEvent.as
@@ -0,0 +1,115 @@
+
+//
+//  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.
+//
+
+
+package mx.events
+{
+ import org.apache.royale.events.Event;
+ import org.apache.royale.events.IRoyaleEvent;
+
+/**
+ *  The TimeEvent class represents event objects specific to Timer
+ *
+ *  @see mx.utils.Timer
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ *  @productversion Royale 0.9.8
+ */
+public class TimerEvent extends Event
+{
+
//--
+//
+//  Class constants
+//
+
//--
+/**
+ *
+ *  @eventType timerComplete
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ *  @productversion Royale 0.9.8
+ */
+public static const TIMER:String = "timer";
+
+/**
+ *
+ *  @eventType timerComplete
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ *  @productversion Royale 0.9.8
+ */
+public static const TIMER_COMPLETE:String = "timerComplete";
+
+
//--
+//
+//  Constructor
+//
+
//--
+
+/**
+ *  Constructor.
+ *
+ *  @param type The event type; indicates the action that caused the 
event.
+ *
+ *  @param bubbles Specifies whether the event can bubble up the 
display list hierarchy.
+ *
+ *  @param cancelable Specifies whether the behavior associated with 
the event can be prevented.
+ *
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ *  @productversion Royale 0.9

[royale-asjs] branch develop updated: MXRoyale: Add and fix StateChangeEvent to compilation - Fix BitmapAsset by removing unused flash import

2020-10-22 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 9642095  MXRoyale: Add and fix StateChangeEvent to compilation - Fix 
BitmapAsset by removing unused flash import
9642095 is described below

commit 964209527c8016141759272a66e62bfba9d24100
Author: pzarzycki 
AuthorDate: Thu Oct 22 12:10:04 2020 +0100

MXRoyale: Add and fix StateChangeEvent to compilation
- Fix BitmapAsset by removing unused flash import
---
 frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as   | 2 +-
 frameworks/projects/MXRoyale/src/main/royale/mx/core/BitmapAsset.as   | 1 -
 .../projects/MXRoyale/src/main/royale/mx/events/StateChangeEvent.as   | 4 ++--
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as 
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 5df4854..d091291 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -34,7 +34,7 @@ internal class MXRoyaleClasses
import mx.effects.AnimateProperty; AnimateProperty;
//import mx.effects.easing.Cubic; Cubic;
//import mx.effects.easing.Quintic; Quintic;
-   //import mx.events.StateChangeEvent; StateChangeEvent;
+   import mx.events.StateChangeEvent; StateChangeEvent;
//import mx.graphics.BitmapFill; BitmapFill;
//import mx.graphics.BitmapFillMode; BitmapFillMode;
//import mx.managers.PopUpManagerChildList; PopUpManagerChildList;
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/core/BitmapAsset.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/BitmapAsset.as
index d8e3e68..5ebe0e1 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/BitmapAsset.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/BitmapAsset.as
@@ -21,7 +21,6 @@ package mx.core
 {
 
 import org.apache.royale.display.BitmapData;
-import flash.display.DisplayObjectContainer;
 import org.apache.royale.events.Event;
 import org.apache.royale.geom.Point;
 import mx.system.ApplicationDomain;
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/events/StateChangeEvent.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/events/StateChangeEvent.as
index 417d6df..5666058 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/events/StateChangeEvent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/StateChangeEvent.as
@@ -36,7 +36,7 @@ import org.apache.royale.events.Event;
  */
 public class StateChangeEvent extends Event
 {
-include "../core/Version.as";
+//include "../core/Version.as";
 

//--
//
@@ -195,7 +195,7 @@ public class StateChangeEvent extends Event
/**
 *  @private
 */
-   override public function clone():Event
+   override public function cloneEvent():Event
{
return new StateChangeEvent(type, bubbles, cancelable,

oldState, newState);



[royale-asjs] branch develop updated: MXRoyale: Add showHeaders stub to DataGrid

2020-10-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 e71438c  MXRoyale: Add showHeaders stub to DataGrid
e71438c is described below

commit e71438cf588229bf8f0a3268faada2f19e20c2e0
Author: Piotr Zarzycki 
AuthorDate: Wed Oct 21 14:51:37 2020 +0200

MXRoyale: Add showHeaders stub to DataGrid
---
 .../src/main/royale/mx/controls/DataGrid.as| 42 ++
 1 file changed, 42 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
index fb4c4da..3bfb21b 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
@@ -838,6 +838,48 @@ public class DataGrid extends DataGridListBase/*ListBase*/ 
implements IDataGrid/
 invalidateDisplayList();*/
 }
 
+/**
+ *  @private
+ *  Storage for the showHeaders property.
+ */
+private var _showHeaders:Boolean = true;
+
+[Bindable("showHeadersChanged")]
+  //  [Inspectable(category="General", defaultValue="true")]
+
+/**
+ *  A flag that indicates whether the control should show
+ *  column headers.
+ *  If true, the control shows column headers.
+ *
+ *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public function get showHeaders():Boolean
+{
+return _showHeaders;
+}
+
+/**
+ *  @private
+ */
+public function set showHeaders(value:Boolean):void
+{
+if (value == _showHeaders)
+return;
+
+_showHeaders = value;
+/*itemsSizeChanged = true;
+
+invalidateDisplayList();
+
+dispatchEvent(new Event("showHeadersChanged"));*/
+}
+
 [Inspectable(environment="none")]
 
 



[royale-asjs] branch develop updated: MXRoyale: Add headerHeight stub to DataGrid

2020-10-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 10d9788  MXRoyale: Add headerHeight stub to DataGrid
10d9788 is described below

commit 10d9788d2402f01c4d6645cca08ec531aee2a397
Author: Piotr Zarzycki 
AuthorDate: Wed Oct 21 14:10:59 2020 +0200

MXRoyale: Add headerHeight stub to DataGrid
---
 .../src/main/royale/mx/controls/DataGrid.as| 38 ++
 1 file changed, 38 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
index 329cc05..fb4c4da 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
@@ -800,6 +800,44 @@ public class DataGrid extends DataGridListBase/*ListBase*/ 
implements IDataGrid/
  */
 public var sortableColumns:Boolean = true;
 
+/**
+ *  @private
+ *  Storage for the headerHeight property.
+ */
+   /* mx_internal*/ private var _headerHeight:Number = 22;
+
+[Bindable("resize")]
+//[Inspectable(category="General", defaultValue="22")]
+
+/**
+ *  The height of the header cell of the column, in pixels.
+ *  If set explicitly, that height will be used for all of
+ *  the headers. If not set explicitly,
+ *  the height will based on style settings and the header
+ *  renderer.
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public function get headerHeight():Number
+{
+return _headerHeight;
+}
+
+/**
+ *  @private
+ */
+public function set headerHeight(value:Number):void
+{
+_headerHeight = value;
+   /* _explicitHeaderHeight = true;
+itemsSizeChanged = true;
+
+invalidateDisplayList();*/
+}
+
 [Inspectable(environment="none")]
 
 



[royale-asjs] branch develop updated: MXRoyale: Add headerStyleName to DataGridColumn stub

2020-10-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 cebdb4b  MXRoyale: Add headerStyleName to DataGridColumn stub
cebdb4b is described below

commit cebdb4b3b28ede20626e70d9f12115fe81e4a627
Author: pzarzycki 
AuthorDate: Wed Oct 21 13:09:08 2020 +0100

MXRoyale: Add headerStyleName to DataGridColumn stub
---
 .../src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
index ce162e6..82ba89f 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
@@ -81,7 +81,7 @@ import org.apache.royale.html.supportClasses.DataGridColumn;
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-//[Style(name="headerStyleName", type="String", inherit="no")]
+[Style(name="headerStyleName", type="String", inherit="no")]
 
 /**
  *  The number of pixels between the container's left border and its content 



[royale-asjs] branch develop updated: MXRoyale: Add sortableColumns stub

2020-10-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 c41b686  MXRoyale: Add sortableColumns stub
c41b686 is described below

commit c41b686c767f671acf6bc1eb8d8d03b8807f9b65
Author: Piotr Zarzycki 
AuthorDate: Wed Oct 21 13:41:28 2020 +0200

MXRoyale: Add sortableColumns stub
---
 .../src/main/royale/mx/controls/DataGrid.as| 33 ++
 1 file changed, 33 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
index 4d8c296..329cc05 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
@@ -767,6 +767,39 @@ public class DataGrid extends DataGridListBase/*ListBase*/ 
implements IDataGrid/
  */
 public var resizableColumns:Boolean = true;
 
+/**
+ *  A flag that indicates whether the user can sort the data provider items
+ *  by clicking on a column header cell.
+ *  If true, the user can sort the data provider items by
+ *  clicking on a column header cell.
+ *  The DataGridColumn.dataField property of the column
+ *  or the DataGridColumn.sortCompareFunction property
+ *  of the column is used as the sort field.
+ *  If a column is clicked more than once
+ *  the sort alternates between ascending and descending order.
+ *  If true, individual columns can be made to not respond
+ *  to a click on a header by setting the column's sortable
+ *  property to false.
+ *
+ *  When a user releases the mouse button over a header cell, the 
DataGrid
+ *  control dispatches a headerRelease event if both
+ *  this property and the column's sortable property are true.
+ *  If no handler calls the preventDefault() method on the 
event, the
+ *  DataGrid sorts using that column's 
DataGridColumn.dataField or
+ *  DataGridColumn.sortCompareFunction properties.
+ *
+ *  @default true
+ *
+ *  @see mx.controls.dataGridClasses.DataGridColumn#dataField
+ *  @see mx.controls.dataGridClasses.DataGridColumn#sortCompareFunction
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public var sortableColumns:Boolean = true;
+
 [Inspectable(environment="none")]
 
 



[royale-asjs] branch develop updated: MXRoyale: Add missing draggableColumns, resizibleColumns and verticalGridLines stubs

2020-10-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 acf568f  MXRoyale: Add missing draggableColumns, resizibleColumns and 
verticalGridLines stubs
acf568f is described below

commit acf568f919db132a86df7c89bfa968b9ec58296a
Author: Piotr Zarzycki 
AuthorDate: Wed Oct 21 13:26:46 2020 +0200

MXRoyale: Add missing draggableColumns, resizibleColumns and 
verticalGridLines stubs
---
 .../src/main/royale/mx/controls/DataGrid.as| 56 +-
 1 file changed, 54 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
index 659987a..4d8c296 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DataGrid.as
@@ -298,7 +298,7 @@ import org.apache.royale.core.ValuesManager;
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-//[Style(name="verticalGridLines", type="Boolean", inherit="no")]
+[Style(name="verticalGridLines", type="Boolean", inherit="no")]
 
 /**
  *  A flag that indicates whether to show horizontal grid lines between
@@ -748,6 +748,25 @@ public class DataGrid extends DataGridListBase/*ListBase*/ 
implements IDataGrid/
 //
 
//--
 
+
+/**
+ *  A flag that indicates whether the user can change the size of the
+ *  columns.
+ *  If true, the user can stretch or shrink the columns of
+ *  the DataGrid control by dragging the grid lines between the header 
cells.
+ *  If true, individual columns must also have their
+ *  resizable properties set to false to
+ *  prevent the user from resizing a particular column.
+ *
+ *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public var resizableColumns:Boolean = true;
+
 [Inspectable(environment="none")]
 
 
@@ -809,7 +828,40 @@ public class DataGrid extends DataGridListBase/*ListBase*/ 
implements IDataGrid/
 value = value? value.slice() : value;
 IDataGridModel(model).columns = value;
 }
-   
+
+/**
+ *  @private
+ *  Storage for the draggableColumns property.
+ */
+private var _draggableColumns:Boolean = true;
+
+[Inspectable(defaultValue="true")]
+
+/**
+ *  A flag that indicates whether the user is allowed to reorder columns.
+ *  If true, the user can reorder the columns
+ *  of the DataGrid control by dragging the header cells.
+ *
+ *  @default true
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public function get draggableColumns():Boolean
+{
+return _draggableColumns;
+}
+
+/**
+ *  @private
+ */
+public function set draggableColumns(value:Boolean):void
+{
+_draggableColumns = value;
+}
+
 /**
  * @private
  */



[royale-asjs] branch develop updated: SparkRoyale: Add more stubs in List

2020-10-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 3a82401  SparkRoyale: Add more stubs in List
3a82401 is described below

commit 3a82401d8eac61f92894b70c5d63bb97d80333a1
Author: pzarzycki 
AuthorDate: Wed Oct 21 12:04:46 2020 +0100

SparkRoyale: Add more stubs in List
---
 .../SparkRoyale/src/main/royale/spark/components/List.as | 16 
 .../royale/spark/components/supportClasses/ListBase.as   | 10 +-
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
index 56d8650..590f1ef 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/List.as
@@ -219,7 +219,7 @@ use namespace mx_internal;
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */ 
-//[Style(name="horizontalScrollPolicy", type="String", inherit="no", 
enumeration="off,on,auto")]
+[Style(name="horizontalScrollPolicy", type="String", inherit="no", 
enumeration="off,on,auto")]
 
 /**
  *  @copy spark.components.supportClasses.GroupBase#style:rollOverColor
@@ -306,7 +306,7 @@ use namespace mx_internal;
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */ 
-//[Style(name="verticalScrollPolicy", type="String", inherit="no", 
enumeration="off,on,auto")]
+[Style(name="verticalScrollPolicy", type="String", inherit="no", 
enumeration="off,on,auto")]
 
 //--
 //  Other metadata
@@ -666,10 +666,10 @@ public class List extends ListBase implements 
IFocusManagerComponent
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-/* override public function get useVirtualLayout():Boolean
-{
+ override public function get useVirtualLayout():Boolean
+ {
 return super.useVirtualLayout;
-} */
+ }
 
 /**
  *  Overrides the inherited default property , it is true for this class.
@@ -687,10 +687,10 @@ public class List extends ListBase implements 
IFocusManagerComponent
  *  @playerversion AIR 1.5
  *  @productversion Flex 4
  */
-/* override public function set useVirtualLayout(value:Boolean):void
-{
+ override public function set useVirtualLayout(value:Boolean):void
+ {
 super.useVirtualLayout = value;
-} */
+ }
 
 
 
//--
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index 8b734fb..ec70142 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -1076,7 +1076,7 @@ public class ListBase  extends SkinnableContainer
 /**
  *  @private
  */
-//private var _useVirtualLayout:Boolean = false;
+private var _useVirtualLayout:Boolean = false;
 
 /**
  *  Sets the value of the useVirtualLayout property
@@ -1092,10 +1092,10 @@ public class ListBase  extends SkinnableContainer
  *  @playerversion AIR 1.5
  *  @productversion Royale 0.9.4
  */
-/* public function get useVirtualLayout():Boolean
+public function get useVirtualLayout():Boolean
 {
 return (layout) ? layout.useVirtualLayout : _useVirtualLayout;
-} */
+}
 
 /**
  *  @private
@@ -1106,7 +1106,7 @@ public class ListBase  extends SkinnableContainer
  *  however in this case, always honoring the layout's useVirtalLayout 
property seems 
  *  less likely to cause confusion.
  */
-/* public function set useVirtualLayout(value:Boolean):void
+ public function set useVirtualLayout(value:Boolean):void
 {
 if (value == useVirtualLayout)
 return;
@@ -1114,7 +1114,7 @@ public class ListBase  extends SkinnableContainer
 _useVirtualLayout = value;
 if (layout)
 layout.useVirtualLayout = value;
-} */
+}
 
 
//--
 //



[royale-asjs] branch develop updated: MXRoyale: Add missing styles indicatorGap in Form SparkRoyale: Add BasicInheritingTextStyle and use it in SkinnableContainer

2020-10-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 7ce3b96  MXRoyale: Add missing styles indicatorGap in Form 
SparkRoyale: Add BasicInheritingTextStyle and use it in SkinnableContainer
7ce3b96 is described below

commit 7ce3b961119db72a0af26aa2c21449b54899e207
Author: pzarzycki 
AuthorDate: Tue Oct 20 14:46:20 2020 +0100

MXRoyale: Add missing styles indicatorGap in Form
SparkRoyale: Add BasicInheritingTextStyle and use it in SkinnableContainer
---
 .../MXRoyale/src/main/royale/mx/containers/Form.as |   2 +-
 .../royale/spark/components/SkinnableContainer.as  |   4 +-
 .../styles/metadata/BasicInheritingTextStyles.as   | 606 +
 3 files changed, 609 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Form.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Form.as
index babeca7..1620f5c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Form.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Form.as
@@ -53,7 +53,7 @@ use namespace mx_internal;
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-//[Style(name="indicatorGap", type="Number", format="Length", inherit="yes")]
+[Style(name="indicatorGap", type="Number", format="Length", inherit="yes")]
 
 /**
  *  Width of the form labels.
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
index 1c07a8b..fc467ce 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -99,8 +99,8 @@ import org.apache.royale.utils.loadBeadFromValuesManager;
  */
 //[Event(name="elementRemove", type="spark.events.ElementExistenceEvent")]
 
-/* include "../styles/metadata/BasicInheritingTextStyles.as"
-include "../styles/metadata/AdvancedInheritingTextStyles.as"
+ include "../styles/metadata/BasicInheritingTextStyles.as"
+/*include "../styles/metadata/AdvancedInheritingTextStyles.as"
 include "../styles/metadata/SelectionFormatTextStyles.as"
  */
 /**
diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/styles/metadata/BasicInheritingTextStyles.as
 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/styles/metadata/BasicInheritingTextStyles.as
new file mode 100644
index 000..3b5c679
--- /dev/null
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/styles/metadata/BasicInheritingTextStyles.as
@@ -0,0 +1,606 @@
+
+//
+//  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.
+//
+
+
+/**
+ *  Specifies the baseline to which the dominant baseline aligns.
+ *
+ *  For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.alignmentBaseline
+ *
+ *  For the Mobile theme, this is not supported.
+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#alignmentBaseline
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *  @playerversion AIR 1.5
+ *  @productversion Flex 4
+ */
+//[Style(name="alignmentBaseline", type="String", 
enumeration="useDominantBaseline,roman,ascent,descent,ideographicTop,ideographicCenter,ideographicBottom",
 inherit="yes")]
+
+/**
+ *  Amount to shift the baseline.
+ *
+ *  For the Spark theme, see
+ *  flashx.textLayout.formats.ITextLayoutFormat.baselineShift.
+ *
+ *  For the Mobile theme, this is not supported.
+ *
+ *  @see flashx.textLayout.formats.ITextLayoutFormat#baselineShift
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 10
+ *

[royale-asjs] branch develop updated: MXRoyale: Add missing removeAllCursors method to CursorManager

2020-10-19 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 33301b6  MXRoyale: Add missing removeAllCursors method to CursorManager
33301b6 is described below

commit 33301b6cee2b0c9f762f8a1f54d1062c7d056f6a
Author: pzarzycki 
AuthorDate: Mon Oct 19 16:28:22 2020 +0100

MXRoyale: Add missing removeAllCursors method to CursorManager
---
 .../projects/MXRoyale/src/main/royale/mx/managers/CursorManager.as| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/CursorManager.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/CursorManager.as
index 5f37894..5d868b7 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/CursorManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/CursorManager.as
@@ -387,10 +387,10 @@ public class CursorManager
  *  @playerversion AIR 1.1
  *  @productversion Royale 0.9.3
  */
-/* public static function removeAllCursors():void
+ public static function removeAllCursors():void
 {
 impl.removeAllCursors();
-} */
+}
 
 /**
  *  Displays the busy cursor.



[royale-asjs] branch develop updated: Update TourDeJewel Moonshine IDE project file

2020-10-15 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 d154ad2  Update TourDeJewel Moonshine IDE project file
d154ad2 is described below

commit d154ad25c5778795c413f1c8a4ae3d0d2943ca90
Author: Piotr Zarzycki 
AuthorDate: Thu Oct 15 13:10:15 2020 +0200

Update TourDeJewel Moonshine IDE project file
---
 examples/jewel/TourDeJewel/TourDeJewel.as3proj | 62 +++---
 1 file changed, 36 insertions(+), 26 deletions(-)

diff --git a/examples/jewel/TourDeJewel/TourDeJewel.as3proj 
b/examples/jewel/TourDeJewel/TourDeJewel.as3proj
index 4322fef..efffd7c 100644
--- a/examples/jewel/TourDeJewel/TourDeJewel.as3proj
+++ b/examples/jewel/TourDeJewel/TourDeJewel.as3proj
@@ -19,27 +19,40 @@
 -->
 
   
-
-
-
-
 
-
 
+
 
+
+
+
+
 
   
   !-- Other classes to be compiled into your SWF --
+  
+
+  
   
 
   
   
   
   
+
+
+
+
+
+
+
+
+
+
+
 
 
 
-
 
 
 
@@ -47,27 +60,20 @@
 
 
 
-
-
-
-
-
-
-
 
-
-
-
+
   
   
+
+
+
 
 
-
 
-  
-  
-  
-  
+  
+  
+  
+  
 
   
   
@@ -79,6 +85,7 @@
 
   
   
+  
   
 
   
@@ -87,22 +94,25 @@
   null
   False
   
-
-
-
 
 
+
 
+
+
+
 
   
   
-
+
+
 
 
 
+
 
 
-null
+Apple iPad
 null
 null
 null



[royale-asjs] 01/01: Update Moonshine IDE file for examples/royale/RemoteObjectAMFTest example

2020-09-25 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit ecff4af7e464a90291be040a953afdfaf7acfa02
Author: Piotr Zarzycki 
AuthorDate: Fri Sep 25 15:04:36 2020 +0200

Update Moonshine IDE file for examples/royale/RemoteObjectAMFTest example
---
 .../RemoteObjectAMFTest.as3proj| 77 --
 1 file changed, 42 insertions(+), 35 deletions(-)

diff --git a/examples/royale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj 
b/examples/royale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj
index 5664075..0d6288f 100644
--- a/examples/royale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj
+++ b/examples/royale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj
@@ -1,32 +1,32 @@
 
 
 
   
-
 
-
-
+
 
-
 
+
 
+
+
 
   
   !-- Other classes to be compiled into your SWF --
@@ -39,32 +39,35 @@
   
   
   
+
+
+
+
 
-
+
+
+
 
-
-
 
 
-
-
-
+
+
+
 
+
 
 
-
 
 
 
 
 
-
-
-
   
   
+
 
 
+
 
 
   
@@ -79,6 +82,7 @@
   
   
   
+  
   
 
   
@@ -87,22 +91,25 @@
   null
   False
   
-
-
 
-
+
 
+
+
 
-
+
+
   
   
-
-
-
-
 
+
 
-null
+
+
+
+
+
+Apple iPad
 null
 null
 null



[royale-asjs] branch develop updated (a6b34d3 -> ecff4af)

2020-09-25 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


 discard a6b34d3  Merge branch 'develop' of 
https://github.com/apache/royale-asjs into develop
 discard a57545f  Got new emulation stubs to compile
 discard a259d5f  Comment out Version.as references
 discard eb0e161  VideoDisplay stub - remove all but API
 discard 6fc9e97  Get rid of more flash dependencies in new emulation stubs
 discard 8a3bb0e  Adding some spark filter dependency stubs
 discard 55b8c1e  Replacing some flash with royale objects
 discard 2e72832  Adding some mx stubs
 discard ce49439  Some spark subs
 new ecff4af  Update Moonshine IDE file for 
examples/royale/RemoteObjectAMFTest example

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (a6b34d3)
\
 N -- N -- N   refs/heads/develop (ecff4af)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../RemoteObjectAMFTest.as3proj|   77 +-
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as|   12 -
 .../mx/collections/errors/ItemPendingError.as  |  133 --
 .../mx/controls/scrollClasses/ScrollThumb.as   |  230 --
 .../main/royale/mx/effects/EffectTargetFilter.as   |  331 ---
 .../MXRoyale/src/main/royale/mx/effects/IEffect.as |  692 --
 .../main/royale/mx/effects/IEffectTargetHost.as|  122 -
 .../mx/effects/effectClasses/PropertyChanges.as|  151 --
 .../MXRoyale/src/main/royale/mx/events/RSLEvent.as |  363 ---
 .../main/royale/mx/filters/BaseDimensionFilter.as  |  235 --
 .../src/main/royale/mx/filters/BaseFilter.as   |   76 -
 .../src/main/royale/mx/filters/IBitmapFilter.as|   48 -
 .../mx/skins/halo/DataGridHeaderSeparator.as   |  116 -
 .../royale/spark/components/ButtonBarButton.as |  284 ---
 .../main/royale/spark/components/IItemRenderer.as  |  120 -
 .../spark/components/SkinnableDataContainer.as |  810 ---
 .../main/royale/spark/components/VideoDisplay.as   | 2466 
 .../spark/components/mediaClasses/ScrubBar.as  |  276 ---
 .../spark/components/mediaClasses/VolumeBar.as |  582 -
 .../supportClasses/ButtonBarHorizontalLayout.as|  285 ---
 .../src/main/royale/spark/effects/AnimateColor.as  |  163 --
 .../src/main/royale/spark/effects/Fade.as  |   28 -
 .../src/main/royale/spark/effects/Resize.as|  294 ---
 .../src/main/royale/spark/effects/SetAction.as |  179 --
 .../src/main/royale/spark/effects/easing/IEaser.as |   71 -
 .../src/main/royale/spark/effects/easing/Power.as  |  154 --
 .../royale/spark/events/TitleWindowBoundsEvent.as  |  283 ---
 .../main/royale/spark/filters/ColorMatrixFilter.as |  145 --
 .../main/royale/spark/filters/DropShadowFilter.as  |  362 ---
 .../src/main/royale/spark/filters/GlowFilter.as|  267 ---
 .../src/main/royale/spark/primitives/Ellipse.as|  355 ---
 .../src/main/royale/spark/skins/SparkButtonSkin.as |  529 -
 .../fullScreen/PlayPauseButtonSkin.mxml|  142 --
 .../mediaClasses/fullScreen/ScrubBarSkin.mxml  |  135 --
 .../mediaClasses/fullScreen/VolumeBarSkin.mxml |   88 -
 .../mediaClasses/normal/PlayPauseButtonSkin.mxml   |  214 --
 .../spark/mediaClasses/normal/ScrubBarSkin.mxml|  178 --
 .../spark/mediaClasses/normal/VolumeBarSkin.mxml   |  112 -
 .../src/main/royale/spark/utils/LabelUtil.as   |  130 --
 39 files changed, 42 insertions(+), 11196 deletions(-)
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/collections/errors/ItemPendingError.as
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/controls/scrollClasses/ScrollThumb.as
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/effects/EffectTargetFilter.as
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffect.as
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/effects/IEffectTargetHost.as
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/effects/effectClasses/PropertyChanges.as
 delete mode 100644 
frameworks/projects/MXRoyale/src/main/royale/mx/events/RSLEvent.as

[royale-asjs] branch develop updated: Add Moonshine IDE project file to RemoteObjectAMFTest

2020-09-23 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 2929a9e  Add Moonshine IDE project file to RemoteObjectAMFTest
2929a9e is described below

commit 2929a9ed24e91fcd01da7e477fdcb4728ba24432
Author: Piotr Zarzycki 
AuthorDate: Thu Sep 24 07:46:18 2020 +0200

Add Moonshine IDE project file to RemoteObjectAMFTest
---
 .../RemoteObjectAMFTest.as3proj| 121 +
 1 file changed, 121 insertions(+)

diff --git a/examples/mxroyale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj 
b/examples/mxroyale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj
new file mode 100644
index 000..b07e54e
--- /dev/null
+++ b/examples/mxroyale/RemoteObjectAMFTest/RemoteObjectAMFTest.as3proj
@@ -0,0 +1,121 @@
+
+
+
+  
+
+
+
+
+
+
+
+
+
+  
+  !-- Other classes to be compiled into your SWF --
+  
+
+  
+  
+
+  
+  
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+  
+  
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+
+
+  
+  
+  
+  
+
+  
+  
+  null
+  null
+  False
+  
+
+
+
+
+
+
+
+
+  
+  
+
+
+
+
+
+
+
+
+null
+null
+null
+null
+  
+
\ No newline at end of file



[royale-asjs] branch jewel-datagrid-updates updated (2858143 -> 703206d)

2020-08-10 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch jewel-datagrid-updates
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


from 2858143  jewe-datagrid: restore Piotr example that had problems before 
this update
 add a403014  jewel-datagrid: update all themes with latest datagrid styles 
changes
 add 2af3137  jewel-sectioncontent: fix an issue with sizing in components 
inside SectionContent containers. Since SC default state is hidden, that made 
components inside report 0 for width and height instead getting the right size, 
This should hopefully solve other layout issues
 add 7b4d963  jewel-NullLayout: make layout report true
 add dd761da  Revert "jewel-sectioncontent: fix an issue with sizing in 
components inside SectionContent containers. Since SC default state is hidden, 
that made components inside report 0 for width and height instead getting the 
right size, This should hopefully solve other layout issues"
 add 1399876  jewel-sectioncontent: Better solution to fix the issue with 
sizing in components inside SectionContent containers.
 add 67a54a3  Make columns immutable for internal use. getter/setter works 
on copies.
 add 6ce5070  more Jewel Datagrid tuning, with updated example in TdJ
 add ce5910d  basic: some clean of imports
 add 703206d  basic: add comment

No new revisions were added by this update.

Summary of changes:
 .../src/main/royale/DataGridPlayGround.mxml| 102 +
 .../html/beads/models/ArraySelectionModel.as   |   3 +-
 .../beads/models/DataGridCollectionViewModel.as|  26 +-
 .../royale/html/beads/models/DataProviderModel.as  |   4 +-
 .../models/MultiSelectionCollectionViewModel.as|   6 +-
 .../models/SingleSelectionCollectionViewModel.as   |   2 +-
 .../supportClasses/StyledUIItemRendererBase.as |   4 +-
 .../org/apache/royale/jewel/SectionContent.as  |   5 +-
 .../jewel/beads/layouts/DataGridColumnLayout.as|   8 +-
 .../royale/jewel/beads/layouts/DataGridLayout.as   |  15 ++-
 .../royale/jewel/beads/layouts/NullLayout.as   |  10 +-
 .../royale/jewel/beads/views/DataGridView.as   |   1 +
 .../supportClasses/datagrid/DataGridColumnWidth.as |  13 ++-
 .../org/apache/royale/utils/observeElementSize.as  |  24 ++---
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  19 +++-
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 .../src/main/resources/defaults.css|  22 -
 50 files changed, 825 insertions(+), 154 deletions(-)



[royale-asjs] branch develop updated: URLStream: Add missing COMPILE::JS

2020-08-07 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 cbff6d3  URLStream: Add missing COMPILE::JS
cbff6d3 is described below

commit cbff6d3d87e43d8e65da08f9c65bb726035a8c10
Author: Piotr Zarzycki 
AuthorDate: Fri Aug 7 12:55:16 2020 +0200

URLStream: Add missing COMPILE::JS
---
 .../projects/Network/src/main/royale/org/apache/royale/net/URLStream.as  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
 
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
index e5e3671..4bdec9a 100644
--- 
a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
+++ 
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
@@ -176,6 +176,7 @@ package org.apache.royale.net
}
}
 
+   COMPILE::JS
protected function createXmlHttpRequest():void
{
xhr = new XMLHttpRequest();



[royale-asjs] branch develop updated: URLStream: Add function for creating HMLHttpRequest to helps extend URLStream

2020-08-07 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 1f2a718  URLStream: Add function for creating HMLHttpRequest to helps 
extend URLStream
1f2a718 is described below

commit 1f2a718c723754c220efe594a70851ae72da87dd
Author: Piotr Zarzycki 
AuthorDate: Fri Aug 7 11:56:52 2020 +0200

URLStream: Add function for creating HMLHttpRequest to helps extend 
URLStream
---
 .../Network/src/main/royale/org/apache/royale/net/URLStream.as   | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
 
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
index 92e0273..e5e3671 100644
--- 
a/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
+++ 
b/frameworks/projects/Network/src/main/royale/org/apache/royale/net/URLStream.as
@@ -115,7 +115,8 @@ package org.apache.royale.net
{
COMPILE::JS {
requestStatus = 0;
-   xhr = new XMLHttpRequest();
+   createXmlHttpRequest();
+
xhr.open(urlRequest.method, urlRequest.url);
xhr.responseType = "arraybuffer";
xhr.addEventListener("readystatechange", 
xhr_onreadystatechange,false);
@@ -174,6 +175,12 @@ package org.apache.royale.net
flashUrlStream.load(req);
}
}
+
+   protected function createXmlHttpRequest():void
+   {
+   xhr = new XMLHttpRequest();
+   }
+
/**
 * send is a protected function in js so a subclass can attach 
an upload listener
 * without rewriting the whole load() function



[royale-asjs] branch develop updated: jewel-datagrid: Make sharedModel protected to increase ability for extending

2020-07-24 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 46581a7  jewel-datagrid: Make sharedModel protected to increase 
ability for extending
46581a7 is described below

commit 46581a7a7c9ef7b6ec511a2ece3081ea63206e7f
Author: Piotr Zarzycki 
AuthorDate: Fri Jul 24 12:05:26 2020 +0200

jewel-datagrid: Make sharedModel protected to increase ability for extending
---
 .../royale/jewel/beads/views/DataGridView.as   | 33 +++---
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
index 0a27cf0..fbb9db1 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
@@ -79,11 +79,12 @@ package org.apache.royale.jewel.beads.views
 }
 
 private var _dg:IDataGrid = _strand as IDataGrid;
-private var _sharedModel:IDataGridModel;
 private var _header:DataGridButtonBar;
 private var _listArea:IUIBase;
 private var _lists:Array = [];
-
+
+protected var sharedModel:IDataGridModel;
+
 override public function set strand(value:IStrand):void
{
super.strand = value;
@@ -92,9 +93,9 @@ package org.apache.royale.jewel.beads.views
 _presentationModel = _dg.presentationModel as 
IDataGridPresentationModel;
 
 // see if there is a presentation model already in place. if not, 
add one.
-_sharedModel = _dg.model as IDataGridModel;
-
IEventDispatcher(_sharedModel).addEventListener("dataProviderChanged", 
handleDataProviderChanged);
-
IEventDispatcher(_sharedModel).addEventListener("selectedIndexChanged", 
handleSelectedIndexChanged);
+sharedModel = _dg.model as IDataGridModel;
+
IEventDispatcher(sharedModel).addEventListener("dataProviderChanged", 
handleDataProviderChanged);
+
IEventDispatcher(sharedModel).addEventListener("selectedIndexChanged", 
handleSelectedIndexChanged);
 
 listenOnStrand("initComplete", initCompleteHandler);
 
@@ -111,7 +112,7 @@ package org.apache.royale.jewel.beads.views
 // header
 var headerClass:Class = ValuesManager.valuesImpl.getValue(host, 
"headerClass") as Class;
 _header = new headerClass() as DataGridButtonBar;
-_header.dataProvider = new ArrayList(_sharedModel.columns);
+_header.dataProvider = new ArrayList(sharedModel.columns);
 _header.emphasis = (_dg as IEmphasis).emphasis;
 _header.labelField = "label";
 
@@ -119,7 +120,7 @@ package org.apache.royale.jewel.beads.views
 var bblayout:ButtonBarLayout = new headerLayoutClass() as 
ButtonBarLayout;
 _header.addBead(bblayout as IBead);
 _header.addBead(new Viewport() as IBead);
-_sharedModel.headerModel = _header.model as IBeadModel;
+sharedModel.headerModel = _header.model as IBeadModel;
 _dg.strandChildren.addElement(_header as IChild);
 
 // columns
@@ -128,7 +129,7 @@ package org.apache.royale.jewel.beads.views
 (_listArea as StyledUIBase).tabIndex = 0;
 _dg.strandChildren.addElement(_listArea as IChild);
 
-if (_sharedModel.columns)
+if (sharedModel.columns)
 createLists();
 }
 
@@ -145,9 +146,9 @@ package org.apache.royale.jewel.beads.views
 // get the name of the class to use for the columns
 var columnClass:Class = ValuesManager.valuesImpl.getValue(host, 
"columnClass") as Class;
 
-for (var i:int=0; i < _sharedModel.columns.length; i++)
+for (var i:int=0; i < sharedModel.columns.length; i++)
 {
-var dataGridColumn:IDataGridColumn = _sharedModel.columns[i] 
as IDataGridColumn;
+var dataGridColumn:IDataGridColumn = sharedModel.columns[i] as 
IDataGridColumn;
 
 var list:IDataGridColumnList = new columnClass();
 
@@ -162,7 +163,7 @@ package org.apache.royale.jewel.beads.views
 if (i == 0) {
 list.className = "first";
 }
-else if (i == _sharedModel.columns.length-1) {
+else if (i == sharedModel.columns.length-1) {
 list.className = "last";

[royale-asjs] branch develop updated: jewel-datagrid: Make more DataGridView methods protected

2020-07-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 ed76a66  jewel-datagrid: Make more DataGridView methods protected
 new d1e8614  Merge branch 'develop' of 
https://github.com/apache/royale-asjs into develop
ed76a66 is described below

commit ed76a667f0022c980677ecf155ba58c3a0e9a328
Author: Piotr Zarzycki 
AuthorDate: Mon Jul 20 16:10:10 2020 +0200

jewel-datagrid: Make more DataGridView methods protected
---
 .../main/royale/org/apache/royale/jewel/beads/views/DataGridView.as   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
index 3a4018d..0a27cf0 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
@@ -298,7 +298,7 @@ package org.apache.royale.jewel.beads.views
  * @royaleignorecoercion org.apache.royale.core.IDataGridModel
  * @royaleignorecoercion 
org.apache.royale.jewel.supportClasses.datagrid.IDataGridColumnList
  */
-private function handleColumnListSelectionChange(event:Event):void
+protected function handleColumnListSelectionChange(event:Event):void
 {
 var list:IDataGridColumnList = event.target as IDataGridColumnList;
 _sharedModel.selectedIndex = list.selectedIndex;
@@ -320,7 +320,7 @@ package org.apache.royale.jewel.beads.views
  * @royaleignorecoercion org.apache.royale.core.IDataGridModel
  * @royaleignorecoercion 
org.apache.royale.jewel.supportClasses.datagrid.IDataGridColumnList
  */
-private function handleColumnListRollOverChange(event:Event):void
+protected function handleColumnListRollOverChange(event:Event):void
 {
 var list:IDataGridColumnList = event.target as IDataGridColumnList;
 _sharedModel.rollOverIndex = list.rollOverIndex;



[royale-asjs] branch develop updated: jewel-datagrid: Making DataGridView a bit more better for extending

2020-07-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 309a60d  jewel-datagrid: Making DataGridView a bit more better for 
extending
309a60d is described below

commit 309a60d1def98f3e957ae474d9d134e1a6d169c5
Author: Piotr Zarzycki 
AuthorDate: Mon Jul 20 10:03:29 2020 +0200

jewel-datagrid: Making DataGridView a bit more better for extending
---
 .../main/royale/org/apache/royale/jewel/beads/views/DataGridView.as | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
index 1b26bcb..3a4018d 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
@@ -96,6 +96,8 @@ package org.apache.royale.jewel.beads.views
 
IEventDispatcher(_sharedModel).addEventListener("dataProviderChanged", 
handleDataProviderChanged);
 
IEventDispatcher(_sharedModel).addEventListener("selectedIndexChanged", 
handleSelectedIndexChanged);
 
+listenOnStrand("initComplete", initCompleteHandler);
+
 createChildren();
}
 
@@ -104,10 +106,8 @@ package org.apache.royale.jewel.beads.views
 /**
 * @private
 */
-   private function createChildren():void
+   protected function createChildren():void
{
-listenOnStrand("initComplete", initCompleteHandler);
-
 // header
 var headerClass:Class = ValuesManager.valuesImpl.getValue(host, 
"headerClass") as Class;
 _header = new headerClass() as DataGridButtonBar;



[royale-asjs] branch develop updated: jewel-datagrid: Using getter instead private property for column list

2020-07-20 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 8389ec8  jewel-datagrid: Using getter instead private property for 
column list
8389ec8 is described below

commit 8389ec86b3b213c2f438498028d150f929a6ace7
Author: Piotr Zarzycki 
AuthorDate: Mon Jul 20 09:42:46 2020 +0200

jewel-datagrid: Using getter instead private property for column list
---
 .../org/apache/royale/jewel/beads/views/DataGridView.as  | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
index 8197980..1b26bcb 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as
@@ -178,7 +178,7 @@ package org.apache.royale.jewel.beads.views
 (list as StyledUIBase).tabIndex = -1;
 
 (_listArea as IParent).addElement(list as IChild);
-_lists.push(list);
+columnLists.push(list);
 }
 }
 
@@ -245,9 +245,9 @@ package org.apache.royale.jewel.beads.views

dp.addEventListener(CollectionEvent.ALL_ITEMS_REMOVED, 
handleItemAddedAndRemoved);
 }
 
-for (var i:int=0; i < _lists.length; i++)
+for (var i:int=0; i < columnLists.length; i++)
 {
-var list:IDataGridColumnList = _lists[i] as 
IDataGridColumnList;
+var list:IDataGridColumnList = columnLists[i] as 
IDataGridColumnList;
 list.dataProvider = dp;
 }
 
@@ -283,9 +283,9 @@ package org.apache.royale.jewel.beads.views
 {
 var newIndex:int = _sharedModel.selectedIndex;
 
-for (var i:int=0; i < _lists.length; i++)
+for (var i:int=0; i < columnLists.length; i++)
 {
-var list:IDataGridColumnList = _lists[i] as 
IDataGridColumnList;
+var list:IDataGridColumnList = columnLists[i] as 
IDataGridColumnList;
 list.selectedIndex = newIndex;
 }
 host.dispatchEvent(new Event('selectionChanged'));
@@ -325,9 +325,9 @@ package org.apache.royale.jewel.beads.views
 var list:IDataGridColumnList = event.target as IDataGridColumnList;
 _sharedModel.rollOverIndex = list.rollOverIndex;
 
-for(var i:int=0; i < _lists.length; i++) {
-if (list != _lists[i]) {
-var otherList:IDataGridColumnList = _lists[i] as 
IDataGridColumnList;
+for(var i:int=0; i < columnLists.length; i++) {
+if (list != columnLists[i]) {
+var otherList:IDataGridColumnList = columnLists[i] as 
IDataGridColumnList;
 otherList.rollOverIndex = list.rollOverIndex;
 }
 }



[royale-asjs] branch develop updated (a52a454 -> f007d93)

2020-07-06 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


 discard a52a454  Revert "jewel-list: Add bead 
NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but 
preserve selection behavior"
 new f007d93  jewel-list: Add bead 
NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but 
preserve selection behavior

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (a52a454)
\
 N -- N -- N   refs/heads/develop (f007d93)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../Jewel/src/main/resources/jewel-manifest.xml|  3 ++-
 .../ClassSelectorListSelectableItemRendererBead.as |  2 +-
 ...ClassSelectorListSelectableItemRendererBead.as} | 23 +++---
 3 files changed, 14 insertions(+), 14 deletions(-)
 copy 
frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/{NoClassSelectorListSelectableItemRendererBead.as
 => NoHoverClassSelectorListSelectableItemRendererBead.as} (77%)



[royale-asjs] 01/01: jewel-list: Add bead NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but preserve selection behavior

2020-07-06 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit f007d93fb63a518a5cf59964460e755543b6c383
Author: Piotr Zarzycki 
AuthorDate: Mon Jul 6 19:15:35 2020 +0200

jewel-list: Add bead NoHoverClassSelectorListSelectableItemRendererBead 
which disable hover, but preserve selection behavior
---
 .../Jewel/src/main/resources/jewel-manifest.xml|  3 ++-
 .../ClassSelectorListSelectableItemRendererBead.as |  2 +-
 ...rClassSelectorListSelectableItemRendererBead.as | 23 +++---
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml 
b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index e575c79..866850f 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -237,7 +237,8 @@
 
 
 
-
+
+
 
 
 
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ClassSelectorListSelectableItemRendererBead.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ClassSelectorListSelectableItemRendererBead.as
index f30b29f..0af820c 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ClassSelectorListSelectableItemRendererBead.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/ClassSelectorListSelectableItemRendererBead.as
@@ -45,7 +45,7 @@ package org.apache.royale.jewel.beads.itemRenderers
{
}
 
-   private var ir:IClassSelectorListSupport;
+   protected var ir:IClassSelectorListSupport;

override public function set strand(value:IStrand):void
{
diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
index 2e6c0a9..6cfbcd4 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
@@ -18,10 +18,8 @@
 

 package org.apache.royale.jewel.beads.itemRenderers
 {
-import org.apache.royale.html.beads.SelectableItemRendererBeadBase;
-
/**
-*  NoClassSelectorListRuntimeSelectableItemRendererBead bead disables 
selection visuals
+*  NoHoverClassSelectorListSelectableItemRendererBead bead disables 
hover visuals
 *
 *  @viewbead
 *  @langversion 3.0
@@ -29,7 +27,7 @@ package org.apache.royale.jewel.beads.itemRenderers
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.8
 */
-   public class NoClassSelectorListSelectableItemRendererBead extends 
SelectableItemRendererBeadBase
+   public class NoHoverClassSelectorListSelectableItemRendererBead extends 
ClassSelectorListSelectableItemRendererBead
{
/**
 *  constructor.
@@ -39,19 +37,20 @@ package org.apache.royale.jewel.beads.itemRenderers
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.8
 */
-   public function NoClassSelectorListSelectableItemRendererBead()
-   {
-   }
-   
-   override public function set down(value:Boolean):void
+   public function 
NoHoverClassSelectorListSelectableItemRendererBead()
{
-   // don't allow down state
}
-   
+
override public function set hovered(value:Boolean):void
{
// don't allow down hovered
}
-   
+   /**
+* @private
+*/
+   override public function updateRenderer():void
+   {
+   ir.toggleClass("selected", selected);
+   }
}
 }



[royale-asjs] branch develop updated: Revert "jewel-list: Add bead NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but preserve selection behavior"

2020-07-06 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 a52a454  Revert "jewel-list: Add bead 
NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but 
preserve selection behavior"
a52a454 is described below

commit a52a45497696884a55f311aefbc9faa6d7659be5
Author: Piotr Zarzycki 
AuthorDate: Mon Jul 6 19:15:35 2020 +0200

Revert "jewel-list: Add bead 
NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but 
preserve selection behavior"

This reverts commit 88c586e595f90f5a0ffb782b38aae8a89a3315d6.
---
 ...rClassSelectorListSelectableItemRendererBead.as | 57 --
 1 file changed, 57 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
deleted file mode 100644
index 2e6c0a9..000
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
+++ /dev/null
@@ -1,57 +0,0 @@
-
-//
-//  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.
-//
-
-package org.apache.royale.jewel.beads.itemRenderers
-{
-import org.apache.royale.html.beads.SelectableItemRendererBeadBase;
-
-   /**
-*  NoClassSelectorListRuntimeSelectableItemRendererBead bead disables 
selection visuals
-*
-*  @viewbead
-*  @langversion 3.0
-*  @playerversion Flash 10.2
-*  @playerversion AIR 2.6
-*  @productversion Royale 0.8
-*/
-   public class NoClassSelectorListSelectableItemRendererBead extends 
SelectableItemRendererBeadBase
-   {
-   /**
-*  constructor.
-*
-*  @langversion 3.0
-*  @playerversion Flash 10.2
-*  @playerversion AIR 2.6
-*  @productversion Royale 0.8
-*/
-   public function NoClassSelectorListSelectableItemRendererBead()
-   {
-   }
-   
-   override public function set down(value:Boolean):void
-   {
-   // don't allow down state
-   }
-   
-   override public function set hovered(value:Boolean):void
-   {
-   // don't allow down hovered
-   }
-   
-   }
-}



[royale-asjs] branch develop updated: jewel-list: Add bead NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but preserve selection behavior

2020-07-06 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 88c586e  jewel-list: Add bead 
NoHoverClassSelectorListSelectableItemRendererBead which disable hover, but 
preserve selection behavior
88c586e is described below

commit 88c586e595f90f5a0ffb782b38aae8a89a3315d6
Author: Piotr Zarzycki 
AuthorDate: Mon Jul 6 19:06:22 2020 +0200

jewel-list: Add bead NoHoverClassSelectorListSelectableItemRendererBead 
which disable hover, but preserve selection behavior
---
 ...rClassSelectorListSelectableItemRendererBead.as | 57 ++
 1 file changed, 57 insertions(+)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
new file mode 100644
index 000..2e6c0a9
--- /dev/null
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/itemRenderers/NoHoverClassSelectorListSelectableItemRendererBead.as
@@ -0,0 +1,57 @@
+
+//
+//  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.
+//
+
+package org.apache.royale.jewel.beads.itemRenderers
+{
+import org.apache.royale.html.beads.SelectableItemRendererBeadBase;
+
+   /**
+*  NoClassSelectorListRuntimeSelectableItemRendererBead bead disables 
selection visuals
+*
+*  @viewbead
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.8
+*/
+   public class NoClassSelectorListSelectableItemRendererBead extends 
SelectableItemRendererBeadBase
+   {
+   /**
+*  constructor.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion Royale 0.8
+*/
+   public function NoClassSelectorListSelectableItemRendererBead()
+   {
+   }
+   
+   override public function set down(value:Boolean):void
+   {
+   // don't allow down state
+   }
+   
+   override public function set hovered(value:Boolean):void
+   {
+   // don't allow down hovered
+   }
+   
+   }
+}



[royale-asjs] branch develop updated: jewel-CollapsibleNavigationSectionRenderer: Remove checking whether item is open to allow retrieve selected child item for any case

2020-05-29 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 73e9187  jewel-CollapsibleNavigationSectionRenderer: Remove checking 
whether item is open to allow retrieve selected child item for any case
73e9187 is described below

commit 73e918795d2cf2cb3808278c4a9489dffe5b4a97
Author: Piotr Zarzycki 
AuthorDate: Fri May 29 14:00:17 2020 +0200

jewel-CollapsibleNavigationSectionRenderer: Remove checking whether item is 
open to allow retrieve selected child item for any case
---
 .../royale/jewel/itemRenderers/CollapsibleNavigationSectionRenderer.as  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/CollapsibleNavigationSectionRenderer.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/CollapsibleNavigationSectionRenderer.as
index 7032c06..e84936d 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/CollapsibleNavigationSectionRenderer.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/CollapsibleNavigationSectionRenderer.as
@@ -96,7 +96,7 @@ package org.apache.royale.jewel.itemRenderers
}

public function getSelectedSubmenuItem():Object {
-   if (childNavigation && open) return 
childNavigation.selectedItem;
+   if (childNavigation) return 
childNavigation.selectedItem;
return null;
}
 



[royale-asjs] branch develop updated: RoutToParameters: Forgot to rename field

2020-04-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 94a8919  RoutToParameters: Forgot to rename field
94a8919 is described below

commit 94a891940c5fae55d91e7ecf49551777c5510a22
Author: Piotr Zarzycki 
AuthorDate: Tue Apr 21 10:20:49 2020 +0200

RoutToParameters: Forgot to rename field
---
 .../src/main/royale/org/apache/royale/routing/RouteToParameters.as| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
index 2e097c1..8d4d5a8 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
@@ -22,7 +22,7 @@ package org.apache.royale.routing
   import org.apache.royale.events.ValueEvent;
   import org.apache.royale.core.IStrand;
   import org.apache.royale.events.Event;
-  
+
   [DefaultProperty("routes")]
   public class RouteToParameters extends Bead
   {
@@ -55,7 +55,7 @@ package org.apache.royale.routing
 trailing = hash.slice(index);
 hash = hash.slice(0,index);
   }
-  ev.value = hash + paramStr + trailing;
+  event.value = hash + paramStr + trailing;
 
 }
 



[royale-asjs] branch develop updated: RouteToParameters: Add missing event param in stateChange

2020-04-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 a5e8109  RouteToParameters: Add missing event param in stateChange
a5e8109 is described below

commit a5e810909b8bf4c73216d403abd2730319f15b7e
Author: Piotr Zarzycki 
AuthorDate: Tue Apr 21 10:04:15 2020 +0200

RouteToParameters: Add missing event param in stateChange
---
 .../royale/org/apache/royale/routing/RouteToParameters.as   | 13 +++--
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
index b4ccafe..2e097c1 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
@@ -21,7 +21,8 @@ package org.apache.royale.routing
   import org.apache.royale.core.Bead;
   import org.apache.royale.events.ValueEvent;
   import org.apache.royale.core.IStrand;
-
+  import org.apache.royale.events.Event;
+  
   [DefaultProperty("routes")]
   public class RouteToParameters extends Bead
   {
@@ -43,9 +44,9 @@ package org.apache.royale.routing
   listenOnStrand("stateChange",stateChanged)
 }
 
-protected function urlNeeded(ev:ValueEvent):void
+protected function urlNeeded(event:ValueEvent):void
 {
-  var hash:String = ev.value;
+  var hash:String = event.value;
   var paramStr:String = buildParameterString();
   var trailing:String = "";
   var index:int = hash.indexOf("#");
@@ -58,9 +59,9 @@ package org.apache.royale.routing
 
 }
 
-protected function urlReceived(ev:ValueEvent):void
+protected function urlReceived(event:ValueEvent):void
 {
-  var hash:String = ev.value;
+  var hash:String = event.value;
   var index:int = hash.indexOf("?");
   if(index == -1)//no params
 return;
@@ -73,7 +74,7 @@ package org.apache.royale.routing
   host.routeState.parameters = parseParameters(hash);
 }
 
-protected function stateChanged():void
+protected function stateChanged(event:Event):void
 {
   var params:Object = host.routeState.parameters;
   // apply routes



[royale-asjs] branch develop updated: RouteToParameters: Make handlers protected

2020-04-21 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 fa4e6bd  RouteToParameters: Make handlers protected
fa4e6bd is described below

commit fa4e6bdf58ea30f68d5efc0e9cc98318d4f0d293
Author: Piotr Zarzycki 
AuthorDate: Tue Apr 21 09:24:36 2020 +0200

RouteToParameters: Make handlers protected
---
 .../main/royale/org/apache/royale/routing/RouteToParameters.as| 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
index 0c6d0b9..b4ccafe 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as
@@ -42,7 +42,8 @@ package org.apache.royale.routing
   listenOnStrand("urlReceived",urlReceived);
   listenOnStrand("stateChange",stateChanged)
 }
-private function urlNeeded(ev:ValueEvent):void
+
+protected function urlNeeded(ev:ValueEvent):void
 {
   var hash:String = ev.value;
   var paramStr:String = buildParameterString();
@@ -57,7 +58,7 @@ package org.apache.royale.routing
 
 }
 
-private function urlReceived(ev:ValueEvent):void
+protected function urlReceived(ev:ValueEvent):void
 {
   var hash:String = ev.value;
   var index:int = hash.indexOf("?");
@@ -71,7 +72,8 @@ package org.apache.royale.routing
   }
   host.routeState.parameters = parseParameters(hash);
 }
-private function stateChanged():void
+
+protected function stateChanged():void
 {
   var params:Object = host.routeState.parameters;
   // apply routes



[royale-asjs] branch develop updated: tour-de-jewel: Add DataGrid example which shows issue with rowHeight when data of cells are big

2020-04-10 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 cf2b1c4  tour-de-jewel: Add DataGrid example which shows issue with 
rowHeight when data of cells are big
 new 9f5b79e  Merge branch 'develop' of 
https://github.com/apache/royale-asjs into develop
cf2b1c4 is described below

commit cf2b1c49102d52c48d734edb3e2489e64f4c9816
Author: Piotr Zarzycki 
AuthorDate: Fri Apr 10 15:41:21 2020 +0200

tour-de-jewel: Add DataGrid example which shows issue with rowHeight when 
data of cells are big
---
 .../src/main/royale/DataGridPlayGround.mxml| 24 --
 .../src/main/royale/models/ListsModel.as   | 16 +++
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml 
b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index ea14359..7722f75 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -22,8 +22,7 @@ limitations under the License.

xmlns:html="library://ns.apache.org/royale/html" 

xmlns:js="library://ns.apache.org/royale/basic"

xmlns:models="models.*" 
-   
xmlns:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml"
-   
>
+   
xmlns:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml">




@@ -456,7 +455,28 @@ limitations under the License.



+   
+   
+   
+   
+   
+   
+   
+   
+   
 
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   

[royale-asjs] branch develop updated: Adjust cleanup after moving TourDeJewel

2020-03-24 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 7499534  Adjust cleanup after moving TourDeJewel
7499534 is described below

commit 74995346657fcf558a3884679cc0a8b3fc4c01ce
Author: Piotr Zarzycki 
AuthorDate: Tue Mar 24 16:03:47 2020 +0100

Adjust cleanup after moving TourDeJewel
---
 examples/build.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/build.xml b/examples/build.xml
index 0d5a5b7..f910d00 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -160,7 +160,7 @@
 
 
 
-
+
 
 
 



[royale-asjs] branch develop updated: Adjust ant build after moving TourDeJewel to different folder

2020-03-24 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 151571c  Adjust ant build after moving TourDeJewel to different folder
151571c is described below

commit 151571cf6cbcae6412c7aff3e089cfd032f6bd6e
Author: Piotr Zarzycki 
AuthorDate: Tue Mar 24 16:01:50 2020 +0100

Adjust ant build after moving TourDeJewel to different folder
---
 examples/build.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/build.xml b/examples/build.xml
index 2c0d6cb..0d5a5b7 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -98,7 +98,7 @@
 
 
 
-
+

 
 



[royale-asjs] branch develop updated: tour-de-jewel: Add another DataGrid to show issue with height="100%"

2020-03-17 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 851d820  tour-de-jewel: Add another DataGrid to show issue with 
height="100%"
851d820 is described below

commit 851d8201043721e793ad76f3e2c450bad96b889f
Author: Piotr Zarzycki 
AuthorDate: Tue Mar 17 13:28:13 2020 +0100

tour-de-jewel: Add another DataGrid to show issue with height="100%"
---
 .../src/main/royale/DataGridPlayGround.mxml| 25 ++
 1 file changed, 25 insertions(+)

diff --git 
a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml 
b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index 5a9a296..49f8789 100644
--- a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -487,6 +487,31 @@ limitations under the License.



+   
+   
+   
+   
+   
+
+   
+   
+   
+   

+   
+   
+   
+   
+   
+   
+   
+   
+   

 
 



[royale-asjs] branch develop updated: tour-de-jewel: Add DataGrid example to show issue with setup fixed size on initComplete

2020-03-15 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 17def01  tour-de-jewel: Add DataGrid example to show issue with setup 
fixed size on initComplete
 new ca5f696  Merge branch 'develop' of 
https://github.com/apache/royale-asjs into develop
17def01 is described below

commit 17def018f4f9651839f336bf02a542835eabfaf4
Author: Piotr Zarzycki 
AuthorDate: Sun Mar 15 10:29:53 2020 +0100

tour-de-jewel: Add DataGrid example to show issue with setup fixed size on 
initComplete
---
 .../src/main/royale/DataGridPlayGround.mxml| 43 ++
 1 file changed, 36 insertions(+), 7 deletions(-)

diff --git 
a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml 
b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index 7774fc3..5a9a296 100644
--- a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -18,11 +18,12 @@ limitations under the License.
 
 -->
 http://ns.adobe.com/mxml/2009; 
-   xmlns:j="library://ns.apache.org/royale/jewel" 
-   xmlns:html="library://ns.apache.org/royale/html" 
-   xmlns:js="library://ns.apache.org/royale/basic"
-   xmlns:models="models.*" 
-   xmlns:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml">
+   
xmlns:j="library://ns.apache.org/royale/jewel" 
+   
xmlns:html="library://ns.apache.org/royale/html" 
+   
xmlns:js="library://ns.apache.org/royale/basic"
+   
xmlns:models="models.*" 
+   
xmlns:c="components.*" sourceCodeUrl="DataGridPlayGround.mxml"
+   
initComplete="onDataGridPlayGroundInitComplete(event)">




 
@@ -458,6 +462,31 @@ limitations under the License.



+   
+   
+   
+   
+   
+
+   
+   
+   
+   

+   
+   
+   
+   
+   
+   
+   
+   
+   

 
 



[royale-asjs] branch develop updated: Add additional example to depict DataGrid real use case

2020-03-13 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz 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 f47ce4d  Add additional example to depict DataGrid real use case
f47ce4d is described below

commit f47ce4dfe8e9806f5c83e426ff16f713fd07568f
Author: Piotr Zarzycki 
AuthorDate: Fri Mar 13 15:15:50 2020 +0100

Add additional example to depict DataGrid real use case
---
 .../src/main/royale/DataGridPlayGround.mxml| 27 +-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git 
a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml 
b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index 4608f65..7774fc3 100644
--- a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -432,7 +432,32 @@ limitations under the License.



-   
+   
+   
+   
+   
+   
+
+   
+   
+   
+   

+   
+   
+   
+   
+   
+   
+   
+   
+   

 
 



[royale-asjs.wiki] branch master updated: Fix typo in report

2020-03-06 Thread piotrz
This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-asjs.wiki.git


The following commit(s) were added to refs/heads/master by this push:
 new 074e34a  Fix typo in report
074e34a is described below

commit 074e34a4bbb1a9a1dde9659a6d6f304c70754b0b
Author: Piotr Zarzycki 
AuthorDate: Fri Mar 6 11:23:17 2020 +0100

Fix typo in report
---
 Board-Report-2020-3.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Board-Report-2020-3.md b/Board-Report-2020-3.md
index 8b9b793..0cdd1a3 100644
--- a/Board-Report-2020-3.md
+++ b/Board-Report-2020-3.md
@@ -12,7 +12,7 @@ There are no issues requiring board attention at this time.
 ## ACTIVITY
 - We are still investing a lot of time to support users who wanted to port 
their application from Flex to Apache Royale. 
 - Emulation of Flex components has been significant improved and it can be 
used with success for porting most of the existing MX components and some of 
the Spark.
-- WE have made significant refactoring towards better modularization of item 
rendereres.
+- We have made significant refactoring towards better modularization of item 
rendereres.
 - The gap with missing in Jewel UI set ButtonBar and DataGrid has been 
successfully filled.
 - Royale compiler gets an improvement in data binding area.
 - Royale Docs continues to be improved as the project is developed.



  1   2   3   4   5   6   7   8   >