git commit: [flex-asjs] [refs/heads/feature/mdl] - CardInner containers and effects

2016-11-03 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl 1b7c1aa67 -> 89913ce17


CardInner containers and effects


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/89913ce1
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/89913ce1
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/89913ce1

Branch: refs/heads/feature/mdl
Commit: 89913ce17bcd3611a8337731ccaeffa8568aa866
Parents: 1b7c1aa
Author: Carlos Rovira 
Authored: Fri Nov 4 00:33:19 2016 +0100
Committer: Carlos Rovira 
Committed: Fri Nov 4 00:33:19 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml| 15 +--
 .../src/main/resources/mdl-styles.css   |  4 +-
 .../flex/org/apache/flex/mdl/CardActions.as |  4 +-
 .../main/flex/org/apache/flex/mdl/CardMedia.as  |  6 +-
 .../org/apache/flex/mdl/CardSupportingText.as   |  4 +-
 .../main/flex/org/apache/flex/mdl/CardTitle.as  |  4 +-
 .../org/apache/flex/mdl/beads/CardEffect.as | 24 ++---
 .../apache/flex/mdl/beads/CardInnerEffect.as| 98 
 .../apache/flex/mdl/supportClasses/CardInner.as | 81 
 .../src/main/resources/mdl-manifest.xml |  2 +
 10 files changed, 215 insertions(+), 27 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/89913ce1/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index dff092f..9f3fb79 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -124,20 +124,23 @@ limitations under the License.
 
 
 
-
+
 
-
+
 
-
-
+
+
 
 
-
+
 
 
-
+
 
 
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/89913ce1/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
--
diff --git a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css 
b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
index 42db67d..bd344c1 100644
--- a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
+++ b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
@@ -38,4 +38,6 @@ Image
vertical-align: top;
IBeadModel: 
ClassReference("org.apache.flex.html.beads.models.ImageModel");
IBeadView:  ClassReference("org.apache.flex.html.beads.ImageView");
-}
\ No newline at end of file
+}
+
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/89913ce1/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardActions.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardActions.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardActions.as
index 5328dc8..c821a2b 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardActions.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardActions.as
@@ -18,7 +18,7 @@
 

 package org.apache.flex.mdl
 {
-   import org.apache.flex.core.ContainerBase;
+   import org.apache.flex.mdl.supportClasses.CardInner;
 
 COMPILE::JS
 {
@@ -40,7 +40,7 @@ package org.apache.flex.mdl
 *  @playerversion AIR 2.6
 *  @productversion FlexJS 0.0
 */
-   public class CardActions extends ContainerBase
+   public class CardActions extends CardInner
{
/**
 *  constructor.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/89913ce1/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardMedia.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CardMedia.as
 

git commit: [flex-asjs] [refs/heads/feature/mdl] - Card component and subcomponents

2016-11-03 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl 5b11176ae -> 1b7c1aa67


Card component and subcomponents


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1b7c1aa6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1b7c1aa6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1b7c1aa6

Branch: refs/heads/feature/mdl
Commit: 1b7c1aa6742308a2e76a3715735e4f77b466b8bb
Parents: 5b11176
Author: Carlos Rovira 
Authored: Thu Nov 3 23:20:52 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 23:20:52 2016 +0100

--
 examples/flexjs/MDLExample/pom.xml  |  6 --
 .../flexjs/MDLExample/src/main/flex/App.mxml| 36 +--
 .../src/main/resources/mdl-styles.css   |  7 ++
 .../src/main/flex/org/apache/flex/mdl/Card.as   | 81 
 .../flex/org/apache/flex/mdl/CardActions.as | 80 
 .../main/flex/org/apache/flex/mdl/CardMedia.as  | 80 
 .../org/apache/flex/mdl/CardSupportingText.as   | 80 
 .../main/flex/org/apache/flex/mdl/CardTitle.as  | 80 
 .../org/apache/flex/mdl/beads/CardEffect.as | 98 
 .../src/main/resources/mdl-manifest.xml |  6 ++
 10 files changed, 539 insertions(+), 15 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1b7c1aa6/examples/flexjs/MDLExample/pom.xml
--
diff --git a/examples/flexjs/MDLExample/pom.xml 
b/examples/flexjs/MDLExample/pom.xml
index 17fc28d..3a31b25 100644
--- a/examples/flexjs/MDLExample/pom.xml
+++ b/examples/flexjs/MDLExample/pom.xml
@@ -57,12 +57,6 @@
   true
   
${basedir}/src/main/resources/mdl-js-index-template.html
   
-compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css
-  
-
-  mdl-styles.css
-  ../src/main/resources/mdl-styles.css
-
-  
 
   
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1b7c1aa6/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 8b3ebbc..dff092f 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -27,6 +27,8 @@ limitations under the License.
 
 
 
+ 
+
 
 
 
@@ -122,17 +124,33 @@ limitations under the License.
 
 
 
-
-
-
-
-
-
-
+
 
-
+
 
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1b7c1aa6/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
--
diff --git a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css 
b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
index 3da8515..42db67d 100644
--- a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
+++ b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
@@ -32,3 +32,10 @@ Application
padding: 10px;
margin: 10px;
 }
+
+Image
+{
+   vertical-align: top;
+   IBeadModel: 
ClassReference("org.apache.flex.html.beads.models.ImageModel");
+   IBeadView:  ClassReference("org.apache.flex.html.beads.ImageView");
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1b7c1aa6/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Card.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Card.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Card.as
new 

git commit: [flex-falcon] [refs/heads/develop] - switch from goog.base (actually ClassName.base) to ClassName.superClass_.property.apply because base() doesn't seem to handle super calls to methods ot

2016-11-03 Thread aharui
Repository: flex-falcon
Updated Branches:
  refs/heads/develop f83b5b58b -> 2c8becbcb


switch from goog.base (actually ClassName.base) to 
ClassName.superClass_.property.apply because base() doesn't seem to handle 
super calls to methods other than with the same method name that was called


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/2c8becbc
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/2c8becbc
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/2c8becbc

Branch: refs/heads/develop
Commit: 2c8becbcb22052105d8a614196f1d36db6b909ec
Parents: f83b5b5
Author: Alex Harui 
Authored: Thu Nov 3 14:48:35 2016 -0700
Committer: Alex Harui 
Committed: Thu Nov 3 14:48:35 2016 -0700

--
 .../internal/codegen/js/JSEmitterTokens.java|  1 +
 .../codegen/js/jx/BinaryOperatorEmitter.java| 28 +
 .../codegen/js/jx/MemberAccessEmitter.java  | 13 ++--
 .../codegen/js/jx/SuperCallEmitter.java | 64 +++-
 .../js/flexjs/TestFlexJSAccessorMembers.java|  8 +--
 .../codegen/js/flexjs/TestFlexJSClass.java  |  6 +-
 .../js/flexjs/TestFlexJSExpressions.java|  6 +-
 .../mxml/flexjs/TestFlexJSMXMLScript.java   |  2 +-
 .../flexjs/projects/super/Base_result.js|  6 +-
 9 files changed, 86 insertions(+), 48 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2c8becbc/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSEmitterTokens.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSEmitterTokens.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSEmitterTokens.java
index 82935af..be2aafc 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSEmitterTokens.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/JSEmitterTokens.java
@@ -23,6 +23,7 @@ import org.apache.flex.compiler.codegen.IEmitterTokens;
 public enum JSEmitterTokens implements IEmitterTokens
 {
 ARGUMENTS("arguments"),
+APPLY("apply"),
 CALL("call"),
 CONFIGURABLE("configurable"),
 CONSTRUCTOR("constructor"),

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2c8becbc/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
--
diff --git 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
index 0e237d2..98ada1a 100644
--- 
a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
@@ -26,6 +26,7 @@ import org.apache.flex.compiler.definitions.IDefinition;
 import org.apache.flex.compiler.definitions.metadata.IMetaTag;
 import org.apache.flex.compiler.definitions.metadata.IMetaTagAttribute;
 import org.apache.flex.compiler.internal.codegen.as.ASEmitterTokens;
+import org.apache.flex.compiler.internal.codegen.js.JSEmitterTokens;
 import org.apache.flex.compiler.internal.codegen.js.JSSubEmitter;
 import org.apache.flex.compiler.internal.codegen.js.flexjs.JSFlexJSDocEmitter;
 import org.apache.flex.compiler.internal.codegen.js.flexjs.JSFlexJSEmitter;
@@ -121,34 +122,35 @@ public class BinaryOperatorEmitter extends JSSubEmitter 
implements

getModel().getCurrentClass().getQualifiedName()));

 write(ASEmitterTokens.MEMBER_ACCESS);
-write(JSGoogEmitterTokens.GOOG_BASE);
-write(ASEmitterTokens.PAREN_OPEN);
-write(ASEmitterTokens.THIS);
-writeToken(ASEmitterTokens.COMMA);
-write(ASEmitterTokens.SINGLE_QUOTE);
+write(JSGoogEmitterTokens.SUPERCLASS);
+write(ASEmitterTokens.MEMBER_ACCESS);
 write(JSFlexJSEmitterTokens.SETTER_PREFIX);
 write(rnodeDef.getBaseName());
-write(ASEmitterTokens.SINGLE_QUOTE);
+write(ASEmitterTokens.MEMBER_ACCESS);
+write(JSEmitterTokens.APPLY);
+write(ASEmitterTokens.PAREN_OPEN);
+write(ASEmitterTokens.THIS);
 writeToken(ASEmitterTokens.COMMA);
-
+ 

[19/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - CheckBox and RadioButton examples

2016-11-03 Thread carlosrovira
CheckBox and RadioButton examples


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e3fc1367
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e3fc1367
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e3fc1367

Branch: refs/heads/feature/mdl
Commit: e3fc1367b04ca562e043eb0a05db506102c49c04
Parents: 3294531
Author: Carlos Rovira 
Authored: Mon Oct 17 17:59:17 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/src/main/flex/App.mxml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e3fc1367/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 242df22..209efae 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -63,9 +63,11 @@ limitations under the License.
 
 
 
-
+
 
 
+
+
 
 
 



[03/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL Slider

2016-11-03 Thread carlosrovira
MDL Slider


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/64bea059
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/64bea059
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/64bea059

Branch: refs/heads/feature/mdl
Commit: 64bea059fa7e8c396675c2e7cfc1917382071524
Parents: 36caa0a
Author: Carlos Rovira 
Authored: Wed Nov 2 23:39:59 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/pom.xml  |  12 +-
 .../flexjs/MDLExample/src/main/flex/App.mxml|   2 +
 .../main/resources/mdl-js-index-template.html   |   1 +
 .../src/main/flex/MDLClasses.as |  24 +-
 .../src/main/flex/org/apache/flex/mdl/Slider.as | 261 +++
 .../src/main/resources/defaults.css |   9 +-
 .../src/main/resources/mdl-manifest.xml |   1 +
 7 files changed, 289 insertions(+), 21 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64bea059/examples/flexjs/MDLExample/pom.xml
--
diff --git a/examples/flexjs/MDLExample/pom.xml 
b/examples/flexjs/MDLExample/pom.xml
index 1503b57..17fc28d 100644
--- a/examples/flexjs/MDLExample/pom.xml
+++ b/examples/flexjs/MDLExample/pom.xml
@@ -44,12 +44,6 @@
 
   20.0
   App.mxml
-  
-
-  defaults.css
-  ../src/main/resources/defaults.css
-
-  
 
 
   
@@ -63,6 +57,12 @@
   true
   
${basedir}/src/main/resources/mdl-js-index-template.html
   
-compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css
+  
+
+  mdl-styles.css
+  ../src/main/resources/mdl-styles.css
+
+  
 
   
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64bea059/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 9f76732..dca2da1 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -102,6 +102,8 @@ limitations under the License.
 
 
 
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64bea059/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html
--
diff --git 
a/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html 
b/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html
index 9eaf780..a2ce192 100644
--- a/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html
+++ b/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html
@@ -20,6 +20,7 @@



+  

   https://fonts.googleapis.com/icon?family=Material+Icons;>
   https://code.getmdl.io/1.2.1/material.indigo-pink.min.css;>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64bea059/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
--
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as 
b/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
index c0ea571..7a8d043 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
@@ -19,19 +19,19 @@
 package
 {
 
-/**
- *  @private
- *  This class is used to link additional classes into mdl.swc
- *  beyond those that are found by dependecy analysis starting
- *  from the classes specified in manifest.xml.
- */
-internal class MDLClasses
-{  
-   COMPILE::SWF
-   {
-   //import org.apache.flex.mdl.beads.TextPromptBead; 
TextPromptBead;
+   /**
+   *  @private
+   *  This class is used to link additional classes into mdl.swc
+   *  beyond those that are found by dependecy analysis starting
+   *  from the classes specified in manifest.xml.
+   */
+   internal class MDLClasses
+   {   
+   COMPILE::SWF
+   {
+   //import org.apache.flex.mdl.beads.TextPromptBead; 
TextPromptBead;
+   }
}
-}
 
 }
 


[20/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Remove css defaults fro HTML.swc and some update to actual components implementation fixing styles and behaviors

2016-11-03 Thread carlosrovira
Remove css defaults fro HTML.swc and some update to actual components 
implementation fixing styles and behaviors


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/73557fa0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/73557fa0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/73557fa0

Branch: refs/heads/feature/mdl
Commit: 73557fa00365d0c7e41454e232a6d04cce1d50e6
Parents: 50513e2
Author: Carlos Rovira 
Authored: Mon Oct 24 20:19:06 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/pom.xml  |  1 +
 .../flexjs/MDLExample/src/main/flex/App.mxml| 18 +--
 .../src/main/flex/org/apache/flex/mdl/Button.as | 13 
 .../main/flex/org/apache/flex/mdl/CheckBox.as   | 32 +--
 .../flex/org/apache/flex/mdl/RadioButton.as | 33 ++--
 .../main/flex/org/apache/flex/mdl/TextInput.as  | 18 +--
 6 files changed, 82 insertions(+), 33 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/73557fa0/examples/flexjs/MDLExample/pom.xml
--
diff --git a/examples/flexjs/MDLExample/pom.xml 
b/examples/flexjs/MDLExample/pom.xml
index 207dab5..3a31b25 100644
--- a/examples/flexjs/MDLExample/pom.xml
+++ b/examples/flexjs/MDLExample/pom.xml
@@ -56,6 +56,7 @@
 
   true
   
${basedir}/src/main/resources/mdl-js-index-template.html
+  
-compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css
 
   
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/73557fa0/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 636b72b..a50dbeb 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -33,11 +33,9 @@ limitations under the License.
  
 
 
-
-
-
-
-
+
+
+
 
 
 add
@@ -54,23 +52,23 @@ limitations under the License.
 
 
 
-
+
 
 
-
+
 
 
 
 
-
+
 
 
-
+
 
 
 
 
-
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/73557fa0/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
index 61bcc20..7c17757 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
@@ -63,20 +63,19 @@ package org.apache.flex.mdl
 positioner.style.position = 'relative';
 element.flexjs_wrapper = this;
 
-element.className = 'mdl-button mdl-js-button';
-   className = "";
-   typeNames = "MDLButton";
-   return element;
+   className = typeNames = "mdl-button mdl-js-button";
+   
+return element;
}
 
-public static const RAISED_EFFECT:String = "mdl-button--raised";
+/*public static const RAISED_EFFECT:String = "mdl-button--raised";
 public static const FAB_EFFECT:String = "mdl-button--fab";
 public static const MINI_FAB_EFFECT:String = "mdl-button--mini-fab";
 public static const ICON_EFFECT:String = "mdl-button--icon";
 public static const COLORED_EFFECT:String = "mdl-button--colored";
 public static const PRIMARY_EFFECT:String = "mdl-button--primary";
 public static const ACCENT_EFFECT:String = "mdl-button--accent";
-public static const RIPPLE_EFFECT:String = "mdl-js-ripple-effect";
+public static const RIPPLE_EFFECT:String = "mdl-js-ripple-effect";*/
 
 private var _mdlEffect:String = "";
 
@@ -90,7 +89,7 @@ 

[29/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Fix to complain with the last refactor

2016-11-03 Thread carlosrovira
Fix to complain with the last refactor


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/36caa0a4
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/36caa0a4
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/36caa0a4

Branch: refs/heads/feature/mdl
Commit: 36caa0a4b391d30dc76d52020a7ec22213e4fe83
Parents: 6970cd1
Author: Carlos Rovira 
Authored: Wed Nov 2 19:27:22 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/36caa0a4/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as
index e3142b2..b9d1a6b 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPrompt.as
@@ -138,11 +138,11 @@ package org.apache.flex.mdl.beads
var model:Object = UIBase(_strand).model;

if (model.text != null && model.text.length > 0 ) {
-   if (promptAdded) 
UIBase(_strand).removeChild(promptField);
+   if (promptAdded) 
UIBase(_strand).$displayObjectContainer.removeChild(promptField);
promptAdded = false;
}
else {
-   if (!promptAdded) 
UIBase(_strand).addChild(promptField);
+   if (!promptAdded) 
UIBase(_strand).$displayObjectContainer.addChild(promptField);
promptField.text = prompt;
promptAdded = true;
}



[16/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Some text input and example changes

2016-11-03 Thread carlosrovira
Some text input and example changes


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d91459b4
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d91459b4
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d91459b4

Branch: refs/heads/feature/mdl
Commit: d91459b492fa77b2f06a6171f41886772c157239
Parents: 837e60a
Author: Carlos Rovira 
Authored: Mon Oct 17 16:16:59 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml| 57 ++--
 .../main/flex/org/apache/flex/mdl/TextInput.as  |  9 ++--
 2 files changed, 34 insertions(+), 32 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d91459b4/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 937d8d2..242df22 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -30,39 +30,42 @@ limitations under the License.
 
 
 
-
-
-
-
-
-
-
-add
-
+http://www.google.com;> 
 
-
-add
-
+
+
+
+
+
+   
+
+add
+
 
-
-
-
-
-
-
+
+mood
+
 
-
+
+
+
+
+
+
 
-
+
+add
+
 
-
-
-
-http://www.google.com;>
-
-
-
+ 
 
+
+
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d91459b4/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
index dace484..4617678 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
@@ -59,8 +59,7 @@ package org.apache.flex.mdl
 var input:HTMLInputElement;
 var label:HTMLLabelElement;
 var textNode:Text;
-//element = document.createElement('input') as WrappedHTMLElement;
-
+
 div = document.createElement('div') as HTMLDivElement;
 div.className = "mdl-textfield mdl-js-textfield";
 
@@ -71,15 +70,15 @@ package org.apache.flex.mdl
 label = document.createElement('label') as HTMLLabelElement;
 label.className = "mdl-textfield__label";
 
-textNode = document.createTextNode('Text...') as Text;
+textNode = document.createTextNode('') as Text;
 label.appendChild(textNode);
-//element.className = 'TextInput';
-//typeNames = 'TextInput';
 
 div.appendChild(input);
 div.appendChild(label);
 
 element = div as WrappedHTMLElement;
+//element.className = 'TextInput';
+typeNames = 'TextInput';
 
 //attach input handler to dispatch flexjs change event when user 
write in textinput
 //goog.events.listen(element, 'change', killChangeHandler);



[12/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Introducing js:Form

2016-11-03 Thread carlosrovira
Introducing js:Form


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f5064bae
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f5064bae
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f5064bae

Branch: refs/heads/feature/mdl
Commit: f5064bae447da6d291adbba801a480fb9c08b236
Parents: 4f90ead
Author: Carlos Rovira 
Authored: Mon Oct 17 11:54:29 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/src/main/flex/App.mxml | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f5064bae/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 37e9e6a..b94a0d7 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -56,11 +56,12 @@ limitations under the License.
 
 
 
-
-
-
-
-
+http://www.google.com;>
+
+
+
+
+
 
 
 



[07/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Add MDL module to pom

2016-11-03 Thread carlosrovira
Add MDL module to pom


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ed67c7ac
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ed67c7ac
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ed67c7ac

Branch: refs/heads/feature/mdl
Commit: ed67c7ace9bb20cc53b4f34eef6f0fe2086e7dd1
Parents: 029b581
Author: Carlos Rovira 
Authored: Fri Oct 14 20:52:53 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 frameworks/projects/pom.xml | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ed67c7ac/frameworks/projects/pom.xml
--
diff --git a/frameworks/projects/pom.xml b/frameworks/projects/pom.xml
index 63d5252..653e34a 100644
--- a/frameworks/projects/pom.xml
+++ b/frameworks/projects/pom.xml
@@ -48,6 +48,7 @@
 HTML5
 JQuery
 Language
+MaterialDesignLite
 Mobile
 Network
 Reflection



[26/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - ButtonEffectBead in place

2016-11-03 Thread carlosrovira
ButtonEffectBead in place


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/84043e95
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/84043e95
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/84043e95

Branch: refs/heads/feature/mdl
Commit: 84043e9543305f70ec8c99bef0cd40b6929c12fc
Parents: 8296baa
Author: Carlos Rovira 
Authored: Wed Oct 26 20:03:10 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  10 +-
 .../main/flex/org/apache/flex/mdl/CheckBox.as   |  12 -
 .../flex/org/apache/flex/mdl/RadioButton.as |  12 -
 .../apache/flex/mdl/beads/ButtonEffectBead.as   | 253 +++
 .../org/apache/flex/mdl/beads/EffectBead.as |   9 -
 .../src/main/resources/defaults.css |   8 +-
 .../src/main/resources/mdl-manifest.xml |   1 +
 7 files changed, 266 insertions(+), 39 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/84043e95/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 82126a4..e618658 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -39,7 +39,7 @@ limitations under the License.
 
 
 
-
+
 
 add
 
@@ -47,7 +47,7 @@ limitations under the License.
 
 
 
-
+
 
 face
 
@@ -55,20 +55,20 @@ limitations under the License.
 
 
 
-
+
 
 
 
 
 
 
-
+
 
 
 
 
 
-
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/84043e95/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
index 58d3ba2..4f2bf9e 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
@@ -53,18 +53,6 @@ package org.apache.flex.mdl
{
super();
}
-
-private var _mdlEffect:String = "";
-
-public function get mdlEffect():String
-{
-return _mdlEffect;
-}
-
-public function set mdlEffect(value:String):void
-{
-_mdlEffect = value;
-}
}
 
 COMPILE::JS

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/84043e95/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
index 0f8237d..e0933d2 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -53,18 +53,6 @@ package org.apache.flex.mdl
{
super();
}
-
-private var _mdlEffect:String = "";
-
-public function get mdlEffect():String
-{
-return _mdlEffect;
-}
-
-public function set mdlEffect(value:String):void
-{
-_mdlEffect = value;
-}
}
 
 COMPILE::JS


[10/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - More Buttons, I think we need "disabled" html attribute implementation

2016-11-03 Thread carlosrovira
More Buttons, I think we need "disabled" html attribute implementation


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5a2e5bc2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5a2e5bc2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5a2e5bc2

Branch: refs/heads/feature/mdl
Commit: 5a2e5bc2e8b6a3ce8ca631c7843d432ce2b29895
Parents: 34bad47
Author: Carlos Rovira 
Authored: Sun Oct 16 21:10:10 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml| 35 +---
 1 file changed, 31 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5a2e5bc2/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index b19b9b4..37e9e6a 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -30,11 +30,38 @@ limitations under the License.
 
 
 
-
-   add
-
+
+
+
+
+
+
+
+add
+
 
-
+
+add
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 



[14/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Use of mdl:TextInput

2016-11-03 Thread carlosrovira
Use of mdl:TextInput


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c92cde2e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c92cde2e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c92cde2e

Branch: refs/heads/feature/mdl
Commit: c92cde2ebc65ac0b01cfccd66553f7a79e1ddbaf
Parents: 2ab005b
Author: Carlos Rovira 
Authored: Mon Oct 17 13:40:57 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/src/main/flex/App.mxml | 2 ++
 1 file changed, 2 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c92cde2e/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index b94a0d7..937d8d2 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -53,6 +53,8 @@ limitations under the License.
 
 
 
+
+
 
 
 



[25/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Disabled bead

2016-11-03 Thread carlosrovira
Disabled bead


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6753b42a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6753b42a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6753b42a

Branch: refs/heads/feature/mdl
Commit: 6753b42a8201d9afed557b6d28626ab056fd17f1
Parents: c0cd0a5
Author: Carlos Rovira 
Authored: Wed Oct 26 23:19:29 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  3 +-
 .../flex/org/apache/flex/mdl/beads/Disabled.as  | 80 
 .../src/main/resources/mdl-manifest.xml |  1 +
 3 files changed, 83 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6753b42a/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 0507f21..472f556 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -65,10 +65,11 @@ limitations under the License.
 
 
 
-
+
 
 
 
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6753b42a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/Disabled.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/Disabled.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/Disabled.as
new file mode 100644
index 000..46067ff
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/Disabled.as
@@ -0,0 +1,80 @@
+
+//
+//  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.flex.mdl.beads
+{  
+   import org.apache.flex.core.IBead;
+   import org.apache.flex.core.IStrand;
+   import org.apache.flex.core.UIBase;
+   import org.apache.flex.events.Event;
+   import org.apache.flex.events.IEventDispatcher;
+   
+   /**
+*  The Disabled bead class is a specialty bead that can be used to 
disable a MDL control.
+*  
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*/
+   public class Disabled implements IBead
+   {
+   /**
+*  constructor.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*/
+   public function Disabled()
+   {
+   }
+   
+   private var _strand:IStrand;
+   
+   /**
+*  @copy org.apache.flex.core.IBead#strand
+*  
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*  @flexjsignorecoercion HTMLInputElement
+*  @flexjsignorecoercion org.apache.flex.core.UIBase;
+*/
+   public function set strand(value:IStrand):void
+   {
+   _strand = value;
+   
+   COMPILE::JS
+  

[11/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - fix MDL swc to use the correct Button

2016-11-03 Thread carlosrovira
fix MDL swc to use the correct Button


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/4f90ead5
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/4f90ead5
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/4f90ead5

Branch: refs/heads/feature/mdl
Commit: 4f90ead51a0c1454c3516365247b748b914bad8e
Parents: 5a2e5bc
Author: Alex Harui 
Authored: Sun Oct 16 21:25:09 2016 -0700
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../src/main/flex/org/apache/flex/mdl/Button.as | 5 +++--
 .../MaterialDesignLite/src/main/resources/mdl-manifest.xml  | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4f90ead5/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
index 11f218c..7f836f6 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
@@ -66,8 +66,9 @@ package org.apache.flex.mdl
 override protected function createElement():WrappedHTMLElement
 {
 var button:HTMLButtonElement;
-
-element = button = document.createElement('button') as 
HTMLButtonElement;
+
+button = document.createElement('button') as HTMLButtonElement;
+element = button as WrappedHTMLElement;
 button.className = 'mdl-button mdl-js-button mdl-button--fab 
mdl-button--colored';
 
 positioner = element;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/4f90ead5/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml 
b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
index 68dffad..897aab5 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
+++ b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
@@ -21,7 +21,7 @@
 
 
 
-
+
 
 
 



[18/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Effect Bead classes for various components

2016-11-03 Thread carlosrovira
Effect Bead classes for various components


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c0cd0a56
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c0cd0a56
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c0cd0a56

Branch: refs/heads/feature/mdl
Commit: c0cd0a56115d3085f098bb6243e80eeff75fca80
Parents: 84043e9
Author: Carlos Rovira 
Authored: Wed Oct 26 20:57:57 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  20 +-
 .../org/apache/flex/mdl/beads/ButtonEffect.as   | 228 +
 .../apache/flex/mdl/beads/ButtonEffectBead.as   | 253 ---
 .../org/apache/flex/mdl/beads/EffectBead.as |  98 ---
 .../flex/org/apache/flex/mdl/beads/MDLEffect.as | 105 
 .../apache/flex/mdl/beads/TextInputEffect.as|  97 +++
 .../org/apache/flex/mdl/beads/TextPrompt.as | 151 +++
 .../org/apache/flex/mdl/beads/TextPromptBead.as | 151 ---
 .../src/main/resources/mdl-manifest.xml |   7 +-
 9 files changed, 595 insertions(+), 515 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c0cd0a56/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index e618658..0507f21 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -39,7 +39,7 @@ limitations under the License.
 
 
 
-
+
 
 add
 
@@ -47,7 +47,7 @@ limitations under the License.
 
 
 
-
+
 
 face
 
@@ -55,20 +55,20 @@ limitations under the License.
 
 
 
-
+
 
 
 
 
 
 
-
+
 
 
 
 
 
-
+
 
 
 
@@ -76,13 +76,13 @@ limitations under the License.
 
 
 
-
+
 
 
 
 
-
-
+
+
 
 
 
@@ -90,13 +90,13 @@ limitations under the License.
 
 
 
-
+
 
 
 
 
 
-
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c0cd0a56/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/ButtonEffect.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/ButtonEffect.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/ButtonEffect.as
new file mode 100644
index 000..e33d5ef
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/ButtonEffect.as
@@ -0,0 +1,228 @@
+
+//
+//  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 

[06/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - First MDL commit. This is a Material Design Google SWC project to create components with Google MDL look and feel

2016-11-03 Thread carlosrovira
First MDL commit. This is a Material Design Google SWC project  to create 
components with Google MDL look and feel


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/029b581b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/029b581b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/029b581b

Branch: refs/heads/feature/mdl
Commit: 029b581bfa6bdb7503a2c1207283c8ca3f8c3eeb
Parents: 019d1d2
Author: Carlos Rovira 
Authored: Fri Oct 14 20:51:28 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../projects/MaterialDesignLite/build.xml   | 116 ++
 frameworks/projects/MaterialDesignLite/pom.xml  | 117 +++
 .../src/main/config/compile-as-config.xml   |  87 ++
 .../src/main/flex/MDLClasses.as |  37 ++
 .../src/main/flex/org/apache/flex/mdl/Button.as |  81 +
 .../src/main/resources/defaults.css |  25 
 .../src/main/resources/mdl-as-manifest.xml  |  26 +
 .../src/main/resources/mdl-manifest.xml |  27 +
 8 files changed, 516 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/029b581b/frameworks/projects/MaterialDesignLite/build.xml
--
diff --git a/frameworks/projects/MaterialDesignLite/build.xml 
b/frameworks/projects/MaterialDesignLite/build.xml
new file mode 100644
index 000..b61453d
--- /dev/null
+++ b/frameworks/projects/MaterialDesignLite/build.xml
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/029b581b/frameworks/projects/MaterialDesignLite/pom.xml
--
diff --git a/frameworks/projects/MaterialDesignLite/pom.xml 
b/frameworks/projects/MaterialDesignLite/pom.xml
new file mode 100644
index 000..d5fde11
--- /dev/null
+++ b/frameworks/projects/MaterialDesignLite/pom.xml
@@ -0,0 +1,117 @@
+
+
+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/xsd/maven-4.0.0.xsd;>
+  4.0.0
+
+  
+org.apache.flex.flexjs.framework
+projects
+0.8.0-SNAPSHOT
+  
+
+  MaterialDesignLite
+  0.8.0-SNAPSHOT
+  swc
+
+  Apache Flex - FlexJS: Framework: Libs: Material Design Lite
+
+  
+src/main/flex
+
+  
+org.apache.flex.flexjs.compiler
+flexjs-maven-plugin
+${flexjs.compiler.version}
+true
+
+  
+
+  library://ns.apache.org/flexjs/mdl
+  
${project.basedir}/src/main/resources/mdl-manifest.xml
+
+
+  as
+  library://ns.apache.org/flexjs/mdl
+  
${project.basedir}/src/main/resources/mdl-as-manifest.xml
+
+  
+  
+MDLClasses
+  
+  
+
+  defaults.css
+  ../src/main/resources/defaults.css
+
+  
+  true
+
+  
+
+  
+
+  
+
+  org.apache.flex.flexjs.framework
+  Core
+  0.8.0-SNAPSHOT
+  swc
+
+
+  org.apache.flex.flexjs.framework
+  Core
+  0.8.0-SNAPSHOT
+  swc
+  typedefs
+
+
+  org.apache.flex.flexjs.framework
+  Binding
+  0.8.0-SNAPSHOT
+  swc
+
+
+  org.apache.flex.flexjs.framework
+  Graphics
+  0.8.0-SNAPSHOT
+  swc
+
+
+  org.apache.flex.flexjs.framework
+  Collections
+  0.8.0-SNAPSHOT
+  swc
+
+
+  org.apache.flex.flexjs.framework
+  HTML
+  0.8.0-SNAPSHOT
+  swc
+
+
+  org.apache.flex.flexjs.framework
+  HTML
+  0.8.0-SNAPSHOT
+  swc
+  typedefs
+
+  
+
+


[23/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL TextPromptBead in place

2016-11-03 Thread carlosrovira
MDL TextPromptBead in place


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3da70649
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3da70649
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3da70649

Branch: refs/heads/feature/mdl
Commit: 3da7064966e040846bfaf877b1bd525fdb2f902c
Parents: a593dd9
Author: Carlos Rovira 
Authored: Wed Oct 26 12:29:26 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  12 +-
 .../src/main/flex/MDLClasses.as |   2 +-
 .../main/flex/org/apache/flex/mdl/TextInput.as  |  16 +-
 .../org/apache/flex/mdl/beads/TextPromptBead.as | 151 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 5 files changed, 178 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3da70649/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 3924dba..9f1be78 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -55,8 +55,16 @@ limitations under the License.
 
 
 
-
-
+
+
+
+
+
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3da70649/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
--
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as 
b/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
index 733728e..c0ea571 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/MDLClasses.as
@@ -29,7 +29,7 @@ internal class MDLClasses
 {  
COMPILE::SWF
{
-   //import org.apache.flex.flat.beads.CSSScrollBarView; 
CSSScrollBarView;
+   //import org.apache.flex.mdl.beads.TextPromptBead; 
TextPromptBead;
}
 }
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3da70649/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
index 87f9c5a..c8244a4 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
@@ -17,6 +17,8 @@
 

 package org.apache.flex.mdl
 {
+import org.apache.flex.core.ITextModel;
+   import org.apache.flex.events.Event;
import org.apache.flex.html.TextInput;
 
 COMPILE::JS
@@ -52,6 +54,16 @@ package org.apache.flex.mdl
 COMPILE::JS
 {
 private var _textNode:Text;
+
+public function get textNode():Text
+{
+return _textNode;
+}
+
+public function set textNode(value:Text):void
+{
+_textNode = value;
+}
 }
 
 /**
@@ -78,7 +90,7 @@ package org.apache.flex.mdl
 var label:HTMLLabelElement = document.createElement('label') as 
HTMLLabelElement;
 label.className = "mdl-textfield__label";
 
-var textNode:Text = document.createTextNode('') as Text;
+textNode = document.createTextNode('') as Text;
 label.appendChild(textNode);
 
 div.appendChild(input);
@@ -110,5 +122,7 @@ package org.apache.flex.mdl
 positioner.className = positioner.className + " " + _mdlEffect;
 }
 }
+
+
}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3da70649/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPromptBead.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/TextPromptBead.as
 

[17/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-03 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/32945319
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/32945319
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/32945319

Branch: refs/heads/feature/mdl
Commit: 32945319baa6f1fc7a1178bddfc0143d6d650561
Parents: d91459b
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32945319/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  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.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[21/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Fixed radio button

2016-11-03 Thread carlosrovira
Fixed radio button


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e9dd895f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e9dd895f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e9dd895f

Branch: refs/heads/feature/mdl
Commit: e9dd895f8d6bef61fea4ac1a894dd114f5349b7f
Parents: 73557fa
Author: Carlos Rovira 
Authored: Tue Oct 25 00:06:03 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 84 
 1 file changed, 33 insertions(+), 51 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e9dd895f/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
index d19ce78..ee79872 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -26,6 +26,7 @@ package org.apache.flex.mdl
 {
 import org.apache.flex.core.UIBase;
 import org.apache.flex.core.WrappedHTMLElement;
+import org.apache.flex.html.supportClasses.RadioButtonIcon;
 }
 
 /**
@@ -74,8 +75,8 @@ package org.apache.flex.mdl
  */
 public static var radioCounter:int = 0;
 
-private var input:HTMLInputElement;
 private var radio:HTMLSpanElement;
+private var icon:RadioButtonIcon;
 private var label:HTMLLabelElement;
 private var textNode:Text;
 
@@ -88,22 +89,19 @@ package org.apache.flex.mdl
  */
 override protected function createElement():WrappedHTMLElement
 { 
-// hide this eleement
-input = document.createElement('input') as HTMLInputElement;
-input.type = 'radio';
-input.className = 'mdl-radio__button';
-input.id = '_radio_' + radioCounter++;
-input.addEventListener('change', selectionChangeHandler, false);  
+icon = new RadioButtonIcon();
+icon.className = 'mdl-radio__button';
+icon.id = '_radio_' + RadioButton.radioCounter++;
+
+textNode = document.createTextNode('') as Text;
 
 radio = document.createElement('span') as HTMLSpanElement;
 radio.className = 'mdl-radio__label';
 radio.addEventListener('mouseover', mouseOverHandler, false);
 radio.addEventListener('mouseout', mouseOutHandler, false);
 
-textNode = document.createTextNode('') as Text;
-
 label = document.createElement('label') as HTMLLabelElement;
-label.appendChild(input);
+label.appendChild(icon.element);
 label.appendChild(radio);
 radio.appendChild(textNode);
 label.style.position = 'relative';
@@ -112,10 +110,10 @@ package org.apache.flex.mdl
 
 positioner = element;
 positioner.style.position = 'relative';
-(input as WrappedHTMLElement).flexjs_wrapper = this;
-(radio as WrappedHTMLElement).flexjs_wrapper = this;
-element.flexjs_wrapper = this;
+(element as WrappedHTMLElement).flexjs_wrapper = this;
 (textNode as WrappedHTMLElement).flexjs_wrapper = this;
+(icon.element as WrappedHTMLElement).flexjs_wrapper = this;
+(radio as WrappedHTMLElement).flexjs_wrapper = this;
 
 className = typeNames = 'mdl-radio mdl-js-radio';
 
@@ -158,20 +156,16 @@ package org.apache.flex.mdl
 {
 super.id = value;
 label.id = value;
-input.id = value;
+icon.element.id = value;
 }
 
-/**
- * @flexjsignorecoercion String
- */
 public function get groupName():String
 {
-return input.name as String;
+return (icon.element as HTMLInputElement).name as String;
 }
-
 public function set groupName(value:String):void
 {
-input.name = value;
+(icon.element as HTMLInputElement).name = value;
 }
 
 public function get text():String
@@ -184,74 +178,62 @@ package org.apache.flex.mdl
 textNode.nodeValue = value;
 }
 
+/** @export */
 public function get selected():Boolean

[28/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL Slider fixes

2016-11-03 Thread carlosrovira
MDL Slider fixes


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c73de483
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c73de483
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c73de483

Branch: refs/heads/feature/mdl
Commit: c73de483936e6b7170aff41b2bea00aedabe6951
Parents: 64bea05
Author: Carlos Rovira 
Authored: Thu Nov 3 11:00:15 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  4 ++-
 .../src/main/flex/org/apache/flex/mdl/Slider.as | 37 +++-
 2 files changed, 24 insertions(+), 17 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c73de483/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index dca2da1..8487f5b 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -102,7 +102,9 @@ limitations under the License.
 
 
 
-
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c73de483/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
index 2587227..31267ad 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
@@ -87,7 +87,7 @@ package org.apache.flex.mdl
 
COMPILE::JS
{
-   (element as HTMLInputElement).value = "" + 
value;
+   (element as HTMLInputElement).value = 
IRangeModel(model).value.toString();
}
}

@@ -109,7 +109,7 @@ package org.apache.flex.mdl
 
COMPILE::JS
{
-   (element as HTMLInputElement).min = "" + value;
+   (element as HTMLInputElement).min = 
IRangeModel(model).minimum.toString();
}
}

@@ -131,7 +131,7 @@ package org.apache.flex.mdl
 
COMPILE::JS
{
-   (element as HTMLInputElement).max = "" + value;
+   (element as HTMLInputElement).max = 
IRangeModel(model).maximum.toString();
}

}
@@ -170,6 +170,11 @@ package org.apache.flex.mdl
 public function set stepSize(value:Number):void
 {
 IRangeModel(model).stepSize = value;
+
+   COMPILE::JS
+   {
+   (element as HTMLInputElement).step = 
IRangeModel(model).stepSize.toString();
+   }
 }
 
 COMPILE::JS
@@ -191,33 +196,33 @@ package org.apache.flex.mdl
 COMPILE::JS
 override protected function createElement():WrappedHTMLElement
 {
-input = document.createElement('input') as HTMLInputElement;
-   input.type = "range";
-   //input.min = "0";
-   //input.max = "100";
-   //input.value = "0";
+   var p:HTMLElement = document.createElement('p') as 
HTMLElement;
+p.style.width = '300px';
 
+   input = document.createElement('input') as 
HTMLInputElement;
+   input.type = "range";
+   input.value = IRangeModel(model).value.toString();
+   input.min = IRangeModel(model).minimum.toString();
+   input.max = IRangeModel(model).maximum.toString();
+   input.step = IRangeModel(model).stepSize.toString();
+   input.className = 'mdl-slider mdl-js-slider';
 
-//input.style.width = '200px';
-//input.style.height = '30px';
+   p.appendChild(input);
 
element = input as WrappedHTMLElement;
 
 //track = new SliderTrackView();
-//addBead(track);
-
+//addBead(track);

[02/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Badge and BadgeElement

2016-11-03 Thread carlosrovira
Badge and BadgeElement


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5b11176a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5b11176a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5b11176a

Branch: refs/heads/feature/mdl
Commit: 5b11176ae20a14ec5e69133461a1107d4c271842
Parents: c73de48
Author: Carlos Rovira 
Authored: Thu Nov 3 20:15:00 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  28 +++
 .../src/main/flex/org/apache/flex/mdl/Badge.as  | 233 +++
 .../src/main/flex/org/apache/flex/mdl/Slider.as |  16 +-
 .../org/apache/flex/mdl/beads/BadgeEffect.as| 121 ++
 .../src/main/resources/mdl-manifest.xml |   2 +
 5 files changed, 390 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b11176a/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 8487f5b..8b3ebbc 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -106,6 +106,34 @@ limitations under the License.
 
 
 
+
+http://flex.apache.org;>
+
+
+
+
+
+http://flex.apache.org"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b11176a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
new file mode 100644
index 000..fa4ffd1
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
@@ -0,0 +1,233 @@
+
+//
+//  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.flex.mdl
+{
+   import org.apache.flex.core.UIBase;
+
+COMPILE::JS
+{
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+   /**
+*  The Badge class provides a MDL UI-like appearance for a badge.
+*  A Badge is an onscreen notification element consists of a small 
circle, 
+ *  typically containing a number or other characters, that appears in 
+ *  proximity to another object
+*  
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*/
+   public class Badge extends UIBase
+   {
+   /**
+*  constructor.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*/
+   public function Badge()
+   {
+   super();
+   }
+   
+private var _type:Number = 0;
+public static const LINK_TYPE:Number = 0;
+public static const TEXT_TYPE:Number = 1;
+public static const 

[05/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Text Input with floating text

2016-11-03 Thread carlosrovira
Text Input with floating text


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/50513e2d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/50513e2d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/50513e2d

Branch: refs/heads/feature/mdl
Commit: 50513e2d2839ef44b0a1789480e90f7302f71a0e
Parents: 8150e17
Author: Carlos Rovira 
Authored: Wed Oct 19 02:21:37 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  5 ++-
 .../main/flex/org/apache/flex/mdl/TextInput.as  | 45 +++-
 2 files changed, 48 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50513e2d/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 95dad1b..636b72b 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -57,7 +57,9 @@ limitations under the License.
 
 
 
-
+
+
+
 
 
 
@@ -66,6 +68,7 @@ limitations under the License.
 
 
 
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50513e2d/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
index 4617678..48d71bf 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
@@ -49,8 +49,17 @@ package org.apache.flex.mdl
super();
}

+COMPILE::JS
+{
+private var _textNode:Text;
+}
+
 /**
  * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLDivElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion Text
  */
 COMPILE::JS
 override protected function createElement():WrappedHTMLElement
@@ -70,7 +79,7 @@ package org.apache.flex.mdl
 label = document.createElement('label') as HTMLLabelElement;
 label.className = "mdl-textfield__label";
 
-textNode = document.createTextNode('') as Text;
+_textNode = textNode = document.createTextNode('') as Text;
 label.appendChild(textNode);
 
 div.appendChild(input);
@@ -94,5 +103,39 @@ package org.apache.flex.mdl
 return element;
 }
 
+private var _mdlEffect:String = "";
+
+public function get mdlEffect():String
+{
+return _mdlEffect;
+}
+
+public function set mdlEffect(value:String):void
+{
+_mdlEffect = value;
+COMPILE::JS 
+{
+element.className = 'mdl-textfield mdl-js-textfield ' + 
_mdlEffect;
+}
+}
+
+/**
+ *  @private
+ *  @flexjsignorecoercion HTMLInputElement
+ */
+   override public function set text(value:String):void
+   {
+COMPILE::SWF
+{
+//inSetter = true;
+//ITextModel(model).text = value;
+//inSetter = false;
+}
+COMPILE::JS
+{
+_textNode.text = value;
+dispatchEvent(new Event('textChange'));
+}
+   }
}
 }



[04/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Changes to Button and examples

2016-11-03 Thread carlosrovira
Changes to Button and examples


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8150e17b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8150e17b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8150e17b

Branch: refs/heads/feature/mdl
Commit: 8150e17b8ed7a6b29193c8fe5b2a1f788dd02312
Parents: e3fc136
Author: Carlos Rovira 
Authored: Wed Oct 19 00:49:48 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml| 32 +
 .../src/main/flex/org/apache/flex/mdl/Button.as | 69 
 2 files changed, 57 insertions(+), 44 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8150e17b/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 209efae..95dad1b 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -30,44 +30,42 @@ limitations under the License.
 
 
 
-http://www.google.com;> 
+ 
 
 
 
 
 
 
-   
-
+
+
+
 add
-
+
 
-
-mood
-
+
+
+face
+
 
 
-
+
 
-
+
 
-
-
-
-add
-
-
- 
+
 
 
 
 
 
 
-
+
+
 
 
 
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8150e17b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
index 7f836f6..61bcc20 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
@@ -18,13 +18,10 @@
 

 package org.apache.flex.mdl
 {
-COMPILE::SWF
-{
-import org.apache.flex.html.Button;
-}
+import org.apache.flex.html.TextButton;
+
 COMPILE::JS
 {
-import org.apache.flex.core.UIBase;
 import org.apache.flex.core.WrappedHTMLElement;
 }
 
@@ -37,8 +34,7 @@ package org.apache.flex.mdl
  *  @playerversion AIR 2.6
  *  @productversion FlexJS 0.0
  */
-COMPILE::SWF
-   public class Button extends org.apache.flex.html.Button
+   public class Button extends TextButton
{
 /**
  *  Constructor.
@@ -52,31 +48,50 @@ package org.apache.flex.mdl
{
super();
}
-   }
-
-COMPILE::JS
-public class Button extends UIBase
-{
-private var button:HTMLButtonElement;
 
 /**
- * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
- * @flexjsignorecoercion HTMLButtonElement
- */
-override protected function createElement():WrappedHTMLElement
-{
-var button:HTMLButtonElement;
-
-button = document.createElement('button') as HTMLButtonElement;
-element = button as WrappedHTMLElement;
-button.className = 'mdl-button mdl-js-button mdl-button--fab 
mdl-button--colored';
+* @private
+* @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+*/
+   COMPILE::JS
+   override protected function createElement():WrappedHTMLElement
+   {
+element = document.createElement('button') as WrappedHTMLElement;
+

[15/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL CheckBox impl

2016-11-03 Thread carlosrovira
MDL CheckBox impl


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/837e60a7
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/837e60a7
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/837e60a7

Branch: refs/heads/feature/mdl
Commit: 837e60a79ebe81ad4be5618934b419cdb62d58d9
Parents: c92cde2
Author: Carlos Rovira 
Authored: Mon Oct 17 16:16:22 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../main/flex/org/apache/flex/mdl/CheckBox.as   | 162 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 163 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/837e60a7/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
new file mode 100644
index 000..082b99f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
@@ -0,0 +1,162 @@
+
+//
+//  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.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.CheckBox;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+import org.apache.flex.events.Event;
+}
+
+/**
+ *  The CheckBox class provides a MDL UI-like appearance for
+ *  a CheckBox.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class CheckBox extends org.apache.flex.html.CheckBox
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function CheckBox()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class CheckBox extends UIBase
+{
+
+private var input:HTMLInputElement;
+private var checkbox:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{
+label = document.createElement('label') as HTMLLabelElement;
+label.className = 'mdl-checkbox mdl-js-checkbox 
mdl-js-ripple-effect';
+element = label as WrappedHTMLElement;
+
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'checkbox';
+input.className = 'mdl-checkbox__input';
+//input.addEventListener('change', selectionChangeHandler, 
false);
+label.appendChild(input);
+
+checkbox = document.createElement('span') as HTMLSpanElement;
+checkbox.className = 'mdl-checkbox__label';
+//checkbox.addEventListener('mouseover', mouseOverHandler, 
false);
+//checkbox.addEventListener('mouseout', mouseOutHandler, 
false);
+label.appendChild(checkbox);
+ 

[09/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Use changes in falcon to inline HTML

2016-11-03 Thread carlosrovira
Use changes in falcon to inline HTML


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/34bad479
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/34bad479
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/34bad479

Branch: refs/heads/feature/mdl
Commit: 34bad47990010968a4a4a6168aa49f61c62dec79
Parents: 49521d3
Author: Carlos Rovira 
Authored: Sun Oct 16 11:05:38 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/src/main/flex/App.mxml | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/34bad479/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 4ad2a62..b19b9b4 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -20,7 +20,8 @@ limitations under the License.
 http://ns.adobe.com/mxml/2009;
 xmlns:js="library://ns.apache.org/flexjs/basic"
 xmlns:local="*"
-xmlns:mdl="library://ns.apache.org/flexjs/mdl">
+xmlns:mdl="library://ns.apache.org/flexjs/mdl"
+xmlns="http://www.w3.org/1999/xhtml;>
 
 
 
@@ -29,9 +30,9 @@ limitations under the License.
 
 
 
-
-   
-
+
+   add
+
 
 
 



[13/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL TextInput

2016-11-03 Thread carlosrovira
MDL TextInput


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2ab005bd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2ab005bd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2ab005bd

Branch: refs/heads/feature/mdl
Commit: 2ab005bd9ea8c69576a002bcf5d07d585e5a4bb6
Parents: f5064ba
Author: Carlos Rovira 
Authored: Mon Oct 17 13:40:29 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../main/flex/org/apache/flex/mdl/TextInput.as  | 99 
 .../src/main/resources/mdl-manifest.xml |  2 +-
 2 files changed, 100 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2ab005bd/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
new file mode 100644
index 000..dace484
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/TextInput.as
@@ -0,0 +1,99 @@
+//
+//  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.flex.mdl
+{
+   import org.apache.flex.html.TextInput;
+
+COMPILE::JS
+{
+import goog.events;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The TextInput class provides a Material Design Library UI-like 
appearance for
+ *  a TextInput.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public class TextInput extends org.apache.flex.html.TextInput
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function TextInput()
+   {
+   super();
+   }
+   
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ */
+COMPILE::JS
+override protected function createElement():WrappedHTMLElement
+{
+var div:HTMLDivElement;
+var input:HTMLInputElement;
+var label:HTMLLabelElement;
+var textNode:Text;
+//element = document.createElement('input') as WrappedHTMLElement;
+
+div = document.createElement('div') as HTMLDivElement;
+div.className = "mdl-textfield mdl-js-textfield";
+
+input = document.createElement('input') as HTMLInputElement;
+input.setAttribute('type', 'text');
+input.className = 'mdl-textfield__input';
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-textfield__label";
+
+textNode = document.createTextNode('Text...') as Text;
+label.appendChild(textNode);
+//element.className = 'TextInput';
+//typeNames = 'TextInput';
+
+div.appendChild(input);
+div.appendChild(label);
+
+element = div as WrappedHTMLElement;
+
+//attach input handler to dispatch flexjs change event when user 
write in textinput
+//goog.events.listen(element, 'change', killChangeHandler);
+goog.events.listen(input, 'input', textChangeHandler);
+
+positioner = element;
+positioner.style.position = 'relative';
+(div as WrappedHTMLElement).flexjs_wrapper = this;
+(input as WrappedHTMLElement).flexjs_wrapper = this;

[24/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL EffectBead in place (for now using a string, maybe better change to boolean flags)

2016-11-03 Thread carlosrovira
MDL EffectBead in place (for now using a string, maybe better change to boolean 
flags)


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8296baae
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8296baae
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8296baae

Branch: refs/heads/feature/mdl
Commit: 8296baae3e3724b39586cc41f58ab01304719504
Parents: 3da7064
Author: Carlos Rovira 
Authored: Wed Oct 26 12:57:18 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  45 ++--
 .../src/main/flex/org/apache/flex/mdl/Button.as |  25 -
 .../main/flex/org/apache/flex/mdl/CheckBox.as   |  16 ---
 .../flex/org/apache/flex/mdl/RadioButton.as |  17 ---
 .../main/flex/org/apache/flex/mdl/TextInput.as  |  20 +---
 .../org/apache/flex/mdl/beads/EffectBead.as | 107 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 7 files changed, 145 insertions(+), 86 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8296baae/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 9f1be78..82126a4 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -37,21 +37,40 @@ limitations under the License.
 
 
 
-
+
+
+
+
 add
 
 
 
-
+
+
+
+
 face
 
 
 
-
+
+
+
+
+
+
 
-
+
+
+
+
+
 
-
+
+
+
+
+
 
 
 
@@ -60,18 +79,26 @@ limitations under the License.
 
 
 
-
+
 
+
 
 
 
 
 
 
-
-
+
+
+
+
+
 
-
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8296baae/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
index 7c17757..27116c4 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Button.as
@@ -67,30 +67,5 @@ package org.apache.flex.mdl

 return element;
}
-
-/*public static const RAISED_EFFECT:String = "mdl-button--raised";
-public static const FAB_EFFECT:String = "mdl-button--fab";
-public static const MINI_FAB_EFFECT:String = "mdl-button--mini-fab";
-public static const ICON_EFFECT:String = "mdl-button--icon";
-public static const COLORED_EFFECT:String = "mdl-button--colored";
-public static const PRIMARY_EFFECT:String = "mdl-button--primary";
-public static const ACCENT_EFFECT:String = "mdl-button--accent";
-public static const RIPPLE_EFFECT:String = "mdl-js-ripple-effect";*/
-
-private var _mdlEffect:String = "";
-
-public function get mdlEffect():String
-{
-return _mdlEffect;
-}
-
-public function set mdlEffect(value:String):void
-{
-_mdlEffect = value;
-COMPILE::JS 
-   

[08/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL Example project

2016-11-03 Thread carlosrovira
MDL Example project


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/49521d30
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/49521d30
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/49521d30

Branch: refs/heads/feature/mdl
Commit: 49521d30b932fd2f8c7c4cfea56db2e457179093
Parents: ed67c7a
Author: Carlos Rovira 
Authored: Fri Oct 14 23:05:39 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/.vscode/launch.json  |  21 
 examples/flexjs/MDLExample/.vscode/tasks.json   |  11 ++
 examples/flexjs/MDLExample/asconfig.json|  14 +++
 examples/flexjs/MDLExample/pom.xml  | 112 +++
 .../flexjs/MDLExample/src/main/flex/App.mxml|  39 +++
 .../MDLExample/src/main/resources/Unknown.jpeg  | Bin 0 -> 50531 bytes
 .../main/resources/mdl-js-index-template.html   |  32 ++
 .../src/main/resources/mdl-styles.css   |  32 ++
 examples/flexjs/pom.xml |   1 +
 9 files changed, 262 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49521d30/examples/flexjs/MDLExample/.vscode/launch.json
--
diff --git a/examples/flexjs/MDLExample/.vscode/launch.json 
b/examples/flexjs/MDLExample/.vscode/launch.json
new file mode 100644
index 000..4fec2c2
--- /dev/null
+++ b/examples/flexjs/MDLExample/.vscode/launch.json
@@ -0,0 +1,21 @@
+{
+"version": "0.2.0",
+"configurations": [
+{
+"name": "Launch Chrome against debug.html, with sourcemaps",
+"type": "chrome",
+"request": "launch",
+"file": 
"${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+"sourceMaps": true,
+"preLaunchTask": ""
+},
+{
+"name": "Launch Firefox against debug.html, with sourcemaps",
+"type": "firefox",
+"request": "launch",
+"file": "${workspaceRoot}/debug.html",
+"sourceMaps": true,
+"preLaunchTask": "asconfigc"
+}
+]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49521d30/examples/flexjs/MDLExample/.vscode/tasks.json
--
diff --git a/examples/flexjs/MDLExample/.vscode/tasks.json 
b/examples/flexjs/MDLExample/.vscode/tasks.json
new file mode 100644
index 000..ac2c02d
--- /dev/null
+++ b/examples/flexjs/MDLExample/.vscode/tasks.json
@@ -0,0 +1,11 @@
+{
+   // See https://go.microsoft.com/fwlink/?LinkId=733558
+   // for the documentation about the tasks.json format
+   "version": "0.1.0",
+   "command": "asconfigc",
+   "isShellCommand": true,
+   "args": [
+   "--flexHome=/Users/carlosrovira/Dev/Flex/sdks/flexjs-0.8.0"
+   ],
+   "showOutput": "always"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49521d30/examples/flexjs/MDLExample/asconfig.json
--
diff --git a/examples/flexjs/MDLExample/asconfig.json 
b/examples/flexjs/MDLExample/asconfig.json
new file mode 100644
index 000..d15de04
--- /dev/null
+++ b/examples/flexjs/MDLExample/asconfig.json
@@ -0,0 +1,14 @@
+{
+"config": "flex",
+"compilerOptions": {
+"debug": true,
+"source-map": true,
+"js-output-type": "flexjs",
+"output": "./target/javascript"
+},
+"additionalOptions": 
"-html-template=src/main/resources/mdl-js-index-template.html",
+"files":
+[
+"src/main/flex/App.mxml"
+]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/49521d30/examples/flexjs/MDLExample/pom.xml
--
diff --git a/examples/flexjs/MDLExample/pom.xml 
b/examples/flexjs/MDLExample/pom.xml
new file mode 100644
index 000..207dab5
--- /dev/null
+++ b/examples/flexjs/MDLExample/pom.xml
@@ -0,0 +1,112 @@
+
+
+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/xsd/maven-4.0.0.xsd;>
+  4.0.0
+
+  
+org.apache.flex.flexjs.examples
+examples-flexjs
+0.8.0-SNAPSHOT
+  
+
+  MDLExample
+  0.8.0-SNAPSHOT
+  swf
+
+  Apache Flex - FlexJS: Examples: FlexJS: MDLExample
+
+  
+src/main/flex
+
+  
+org.apache.flex.flexjs.compiler
+flexjs-maven-plugin
+true
+
+  20.0
+  App.mxml
+
+
+  
+   

[27/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - Minor changes

2016-11-03 Thread carlosrovira
Minor changes


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6970cd1b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6970cd1b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6970cd1b

Branch: refs/heads/feature/mdl
Commit: 6970cd1bd295a6406e1108624ae2bc86e5beaf28
Parents: 6753b42
Author: Carlos Rovira 
Authored: Thu Oct 27 18:28:34 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 examples/flexjs/MDLExample/pom.xml  |  6 ++
 .../flexjs/MDLExample/src/main/flex/App.mxml|  6 +-
 .../src/main/resources/mdl-styles.css   | 20 ++---
 .../main/flex/org/apache/flex/mdl/CheckBox.as   | 85 ++--
 .../flex/org/apache/flex/mdl/beads/Disabled.as  | 20 -
 .../src/main/resources/defaults.css |  7 +-
 6 files changed, 66 insertions(+), 78 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6970cd1b/examples/flexjs/MDLExample/pom.xml
--
diff --git a/examples/flexjs/MDLExample/pom.xml 
b/examples/flexjs/MDLExample/pom.xml
index 3a31b25..1503b57 100644
--- a/examples/flexjs/MDLExample/pom.xml
+++ b/examples/flexjs/MDLExample/pom.xml
@@ -44,6 +44,12 @@
 
   20.0
   App.mxml
+  
+
+  defaults.css
+  ../src/main/resources/defaults.css
+
+  
 
 
   

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6970cd1b/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 472f556..9f76732 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -53,20 +53,20 @@ limitations under the License.
 
 
 
-
+
 
 
 
 
 
 
-
+
 
 
 
 
 
-
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6970cd1b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
--
diff --git a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css 
b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
index 6a07905..3da8515 100644
--- a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
+++ b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
@@ -19,14 +19,16 @@
 

 */
 
-.demo-card-wide.mdl-card {
-  width: 512px;
+@namespace "library://ns.apache.org/flexjs/basic";
+
+.flexjs *, . flexjs *:before, . flexjs *:after {
+-moz-box-sizing: border-box;
+-webkit-box-sizing: border-box;
+box-sizing: border-box;
 }
-.demo-card-wide > .mdl-card__title {
-  color: #fff;
-  height: 176px;
-  background: url('welcome_card.jpg') center / cover;
+
+Application
+{
+   padding: 10px;
+   margin: 10px;
 }
-.demo-card-wide > .mdl-card__menu {
-  color: #fff;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6970cd1b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
index 4f2bf9e..a4d2a4c 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
@@ -73,64 +73,31 @@ package org.apache.flex.mdl
  */
 override protected function createElement():WrappedHTMLElement
 {
-label = document.createElement('label') as HTMLLabelElement;
-element = label as WrappedHTMLElement;
-
-input = document.createElement('input') as HTMLInputElement;
-input.type = 'checkbox';
-input.className = 'mdl-checkbox__input';
-

[01/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - browser Event.target is not writable. We should be using org.apache.flex.events.Event anyway [Forced Update!]

2016-11-03 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl 3dd15248c -> 5b11176ae (forced update)


browser Event.target is not writable.  We should be using 
org.apache.flex.events.Event anyway


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/019d1d21
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/019d1d21
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/019d1d21

Branch: refs/heads/feature/mdl
Commit: 019d1d2140487078a727beeb9276ed25063125a1
Parents: e6a4493
Author: Alex Harui 
Authored: Thu Nov 3 09:05:55 2016 -0700
Committer: Alex Harui 
Committed: Thu Nov 3 09:05:55 2016 -0700

--
 .../src/main/flex/org/apache/flex/createjs/graphics/Circle.as   | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/019d1d21/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
--
diff --git 
a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
 
b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
index a461425..d16918b 100644
--- 
a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
+++ 
b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
@@ -32,6 +32,7 @@ package org.apache.flex.createjs.graphics
 import org.apache.flex.core.WrappedHTMLElement;
 }
 
+import org.apache.flex.events.Event;
import org.apache.flex.graphics.IFill;
import org.apache.flex.graphics.SolidColor;
import org.apache.flex.graphics.SolidColorStroke;



git commit: [flex-asjs] [refs/heads/feature/mdl] - Badge and BadgeElement

2016-11-03 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl 84dce8dd7 -> 3dd15248c


Badge and BadgeElement


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3dd15248
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3dd15248
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3dd15248

Branch: refs/heads/feature/mdl
Commit: 3dd15248ca47eea7ac3dc402f317c73b84fc3d51
Parents: 84dce8d
Author: Carlos Rovira 
Authored: Thu Nov 3 20:15:00 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:00 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  28 +++
 .../src/main/flex/org/apache/flex/mdl/Badge.as  | 233 +++
 .../src/main/flex/org/apache/flex/mdl/Slider.as |  16 +-
 .../org/apache/flex/mdl/beads/BadgeEffect.as| 121 ++
 .../src/main/resources/mdl-manifest.xml |   2 +
 5 files changed, 390 insertions(+), 10 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3dd15248/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index 8487f5b..8b3ebbc 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -106,6 +106,34 @@ limitations under the License.
 
 
 
+
+http://flex.apache.org;>
+
+
+
+
+
+http://flex.apache.org"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3dd15248/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
new file mode 100644
index 000..fa4ffd1
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Badge.as
@@ -0,0 +1,233 @@
+
+//
+//  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.flex.mdl
+{
+   import org.apache.flex.core.UIBase;
+
+COMPILE::JS
+{
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+   /**
+*  The Badge class provides a MDL UI-like appearance for a badge.
+*  A Badge is an onscreen notification element consists of a small 
circle, 
+ *  typically containing a number or other characters, that appears in 
+ *  proximity to another object
+*  
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*/
+   public class Badge extends UIBase
+   {
+   /**
+*  constructor.
+*
+*  @langversion 3.0
+*  @playerversion Flash 10.2
+*  @playerversion AIR 2.6
+*  @productversion FlexJS 0.0
+*/
+   public function Badge()
+   {
+   super();
+   }
+   
+private var _type:Number = 0;
+public static const 

git commit: [flex-asjs] [refs/heads/develop] - browser Event.target is not writable. We should be using org.apache.flex.events.Event anyway

2016-11-03 Thread aharui
Repository: flex-asjs
Updated Branches:
  refs/heads/develop e6a4493f0 -> 019d1d214


browser Event.target is not writable.  We should be using 
org.apache.flex.events.Event anyway


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/019d1d21
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/019d1d21
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/019d1d21

Branch: refs/heads/develop
Commit: 019d1d2140487078a727beeb9276ed25063125a1
Parents: e6a4493
Author: Alex Harui 
Authored: Thu Nov 3 09:05:55 2016 -0700
Committer: Alex Harui 
Committed: Thu Nov 3 09:05:55 2016 -0700

--
 .../src/main/flex/org/apache/flex/createjs/graphics/Circle.as   | 1 +
 1 file changed, 1 insertion(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/019d1d21/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
--
diff --git 
a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
 
b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
index a461425..d16918b 100644
--- 
a/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
+++ 
b/frameworks/projects/CreateJS/src/main/flex/org/apache/flex/createjs/graphics/Circle.as
@@ -32,6 +32,7 @@ package org.apache.flex.createjs.graphics
 import org.apache.flex.core.WrappedHTMLElement;
 }
 
+import org.apache.flex.events.Event;
import org.apache.flex.graphics.IFill;
import org.apache.flex.graphics.SolidColor;
import org.apache.flex.graphics.SolidColorStroke;



git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL Slider fixes

2016-11-03 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl bff6605bf -> 84dce8dd7


MDL Slider fixes


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/84dce8dd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/84dce8dd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/84dce8dd

Branch: refs/heads/feature/mdl
Commit: 84dce8dd7aa763250ebf654d28f60decd1d47587
Parents: bff6605
Author: Carlos Rovira 
Authored: Thu Nov 3 11:00:15 2016 +0100
Committer: Carlos Rovira 
Committed: Thu Nov 3 11:00:15 2016 +0100

--
 .../flexjs/MDLExample/src/main/flex/App.mxml|  4 ++-
 .../src/main/flex/org/apache/flex/mdl/Slider.as | 37 +++-
 2 files changed, 24 insertions(+), 17 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/84dce8dd/examples/flexjs/MDLExample/src/main/flex/App.mxml
--
diff --git a/examples/flexjs/MDLExample/src/main/flex/App.mxml 
b/examples/flexjs/MDLExample/src/main/flex/App.mxml
index dca2da1..8487f5b 100644
--- a/examples/flexjs/MDLExample/src/main/flex/App.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/App.mxml
@@ -102,7 +102,9 @@ limitations under the License.
 
 
 
-
+
+
+
 
 
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/84dce8dd/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
index 2587227..31267ad 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
@@ -87,7 +87,7 @@ package org.apache.flex.mdl
 
COMPILE::JS
{
-   (element as HTMLInputElement).value = "" + 
value;
+   (element as HTMLInputElement).value = 
IRangeModel(model).value.toString();
}
}

@@ -109,7 +109,7 @@ package org.apache.flex.mdl
 
COMPILE::JS
{
-   (element as HTMLInputElement).min = "" + value;
+   (element as HTMLInputElement).min = 
IRangeModel(model).minimum.toString();
}
}

@@ -131,7 +131,7 @@ package org.apache.flex.mdl
 
COMPILE::JS
{
-   (element as HTMLInputElement).max = "" + value;
+   (element as HTMLInputElement).max = 
IRangeModel(model).maximum.toString();
}

}
@@ -170,6 +170,11 @@ package org.apache.flex.mdl
 public function set stepSize(value:Number):void
 {
 IRangeModel(model).stepSize = value;
+
+   COMPILE::JS
+   {
+   (element as HTMLInputElement).step = 
IRangeModel(model).stepSize.toString();
+   }
 }
 
 COMPILE::JS
@@ -191,33 +196,33 @@ package org.apache.flex.mdl
 COMPILE::JS
 override protected function createElement():WrappedHTMLElement
 {
-input = document.createElement('input') as HTMLInputElement;
-   input.type = "range";
-   //input.min = "0";
-   //input.max = "100";
-   //input.value = "0";
+   var p:HTMLElement = document.createElement('p') as 
HTMLElement;
+p.style.width = '300px';
 
+   input = document.createElement('input') as 
HTMLInputElement;
+   input.type = "range";
+   input.value = IRangeModel(model).value.toString();
+   input.min = IRangeModel(model).minimum.toString();
+   input.max = IRangeModel(model).maximum.toString();
+   input.step = IRangeModel(model).stepSize.toString();
+   input.className = 'mdl-slider mdl-js-slider';
 
-//input.style.width = '200px';
-//input.style.height = '30px';
+   p.appendChild(input);
 
element = input as WrappedHTMLElement;
 
 //track = new 

git commit: [flex-sdk] [refs/heads/release4.16.0] - update release notes

2016-11-03 Thread jmclean
Repository: flex-sdk
Updated Branches:
  refs/heads/release4.16.0 4fa501472 -> 82f447ad2


update release notes


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/82f447ad
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/82f447ad
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/82f447ad

Branch: refs/heads/release4.16.0
Commit: 82f447ad228745470dac8e998a0cec3610bc6c9a
Parents: 4fa5014
Author: Justin Mclean 
Authored: Thu Nov 3 17:46:55 2016 +1100
Committer: Justin Mclean 
Committed: Thu Nov 3 17:46:55 2016 +1100

--
 CONTRIBUTORS  | 6 +++---
 RELEASE_NOTES | 5 -
 2 files changed, 7 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/82f447ad/CONTRIBUTORS
--
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 389b752..c6ac5da 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3,9 +3,9 @@ support to the Apache Flex SDK.
 
 Apache Flex SDK 4.16.0
 --
-Alex Harui, Andy Dufilie, Dany Dhondt, Harbs, Judah Frangipane, Justin Mclean,
-Mark Kessler, Maxime Cowez, Mihai Chira, Olaf Krüger, OmPrakash Muppirala, 
Peter Marcoen,
-Stephan Plath, Sugan Naicker, Tamás Nepusz
+Alex Harui, Andy Dufilie, Aron Nopanen, Dany Dhondt, Harbs, Judah Frangipane,
+Justin Mclean, Mark Kessler, Maxime Cowez, Mihai Chira, Olaf Krüger, 
OmPrakash Muppirala,
+Peter Marcoen, Stephan Plath, Sugan Naicker, Tamás Nepusz
 
 Apache Flex SDK 4.15.0
 --

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/82f447ad/RELEASE_NOTES
--
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index 2292b72..a217fcd 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -12,15 +12,18 @@ AIR and Flash Player Support
 
 Bug Fixes
 -
+FLEX-35165  Remove bundling of Apache 1.0 licensed software
 FLEX-35126  DropDownController inside a pop up still listens to MOUSE_DOWN and
MOUSE_DOWN_SOMEWHERE after the popup has closed
 FLEX-35125  DropDownList inside a PopUpAnchor doesn't close when another 
DropDownList
is selected
 FLEX-35124  RTE 1009 in DropDownController.systemManager_mouseDownHandler() 
when inside
a PopUpAnchor and other item is removed on click
+FLEX-35123  DOM XSS vulnerability in history.js
 FLEX-35109  falcon compiler's build.xml error
 FLEX-35106  Incorrect date in datefield popup for fr_FR locale
 FLEX-35100  TextFlowLine.recreateTextLine() throws a null object reference 
error
+FLEX-35097  How to compile AIR beta 22 with Flex SDK?
 FLEX-35082  moveIndexFindRow doesn't accept integer values
 FLEX-35078  Fatal when SelectionManager tries to reapply selection onto 
changed textFlow
 FLEX-35056  Pressing escape on s:Alert causes a RangeError when Alert.CANCEL 
is passed
@@ -36,11 +39,11 @@ FLEX-35037  Add ArrayCollection unit tests donated by Justin
 FLEX-35031  HierarchicalCollectionViewCursor cannot find sealed class instance
 FLEX-35028  Error in DataGrid getHeaderRendererAt(-1)
 FLEX-35025  Validator results cannot be intercepted if the value is null
+FLEX-34935  Copy From Word Document And Pasting Into TextRegion Not Working 
Properly
 FLEX-34926  Misplaced [PercentProxy] metatag in GridColumn
 FLEX-34698  Flatspark ButtonIcon: Introduce 'iconFontPlacement' style
 FLEX-34391  ScrollableStageText with large y value crashes app
 FLEX-34088  CalloutButton closes when selecting an item in a spark Dropdown
-FLEX-34088  CalloutButton closes when selecting an item in a spark Dropdown
 FLEX-33646  The "required" property on Validator should be a getter/setter
 FLEX-33311  Null pointer fatal in ConstraintLayout when executing Transition on
DropDownList



git commit: [flex-sdk] [refs/heads/release4.16.0] - FLEX-35123 Fix DOM XSS vulnerability for very old versions of Safari

2016-11-03 Thread jmclean
Repository: flex-sdk
Updated Branches:
  refs/heads/release4.16.0 2d698095a -> 4fa501472


FLEX-35123 Fix DOM XSS vulnerability for very old versions of Safari


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/4fa50147
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/4fa50147
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/4fa50147

Branch: refs/heads/release4.16.0
Commit: 4fa501472d31de82d2f4cb29404c68c939099c69
Parents: 2d69809
Author: Justin Mclean 
Authored: Thu Nov 3 17:43:14 2016 +1100
Committer: Justin Mclean 
Committed: Thu Nov 3 17:43:14 2016 +1100

--
 templates/swfobject/history/history.js | 23 ++-
 1 file changed, 2 insertions(+), 21 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/4fa50147/templates/swfobject/history/history.js
--
diff --git a/templates/swfobject/history/history.js 
b/templates/swfobject/history/history.js
index 4db119c..e0c3183 100644
--- a/templates/swfobject/history/history.js
+++ b/templates/swfobject/history/history.js
@@ -262,27 +262,8 @@ BrowserHistory = (function() {
 }
 
 if (browser.safari && !browserHasHashChange) {
-// for Safari, submit a form whose action points to the 
desired URL
-if (browser.version <= 419.3) {
-var file = window.location.pathname.toString();
-file = file.substring(file.lastIndexOf("/")+1);
-getFormElement().innerHTML = '';
-//get the current elements and add them to the form
-var qs = window.location.search.substring(1);
-var qs_arr = qs.split("&");
-for (var i = 0; i < qs_arr.length; i++) {
-var tmp = qs_arr[i].split("=");
-var elem = document.createElement("input");
-elem.type = "hidden";
-elem.name = tmp[0];
-elem.value = tmp[1];
-document.forms.historyForm.appendChild(elem);
-}
-document.forms.historyForm.submit();
-} else {
-top.location.hash = flexAppUrl;
-}
-// We also have to maintain the history by hand for Safari
+top.location.hash = flexAppUrl;
+// We have to maintain the history by hand for Safari
 historyHash[history.length] = flexAppUrl;
 _storeStates();
 } else {



git commit: [flex-sdk] [refs/heads/release4.16.0] - FLEX-35165 Remove texen test directory due to incompatible license

2016-11-03 Thread jmclean
Repository: flex-sdk
Updated Branches:
  refs/heads/release4.16.0 26e4e16dc -> 2d698095a


FLEX-35165 Remove texen test directory due to incompatible license


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/2d698095
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/2d698095
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/2d698095

Branch: refs/heads/release4.16.0
Commit: 2d698095aeb8937fda242bcad1ae1c0297f56801
Parents: 26e4e16
Author: Justin Mclean 
Authored: Thu Nov 3 17:27:23 2016 +1100
Committer: Justin Mclean 
Committed: Thu Nov 3 17:27:23 2016 +1100

--
 .../velocity/test/texen/additional.props|  1 -
 .../velocity/test/texen/compare/Test.txt| 11 ---
 .../test/texen/compare/TurbineWeather.java  | 81 
 .../texen/compare/TurbineWeatherService.java| 78 ---
 .../test/texen/compare/WeatherService.java  | 70 -
 .../velocity/test/texen/compare/book.txt| 15 
 .../thirdparty/velocity/test/texen/license.txt  | 55 -
 .../velocity/test/texen/service.props   | 21 -
 .../velocity/test/texen/templates/Control.vm| 41 --
 .../texen/templates/ServiceImplementation.vm| 39 --
 .../test/texen/templates/ServiceInterface.vm| 31 
 .../test/texen/templates/ServiceStaticHelper.vm | 42 --
 .../velocity/test/texen/templates/Test.vm   | 27 ---
 .../velocity/test/texen/templates/book.vm   | 31 
 .../velocity/test/texen/templates/test.props|  4 -
 15 files changed, 547 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2d698095/modules/thirdparty/velocity/test/texen/additional.props
--
diff --git a/modules/thirdparty/velocity/test/texen/additional.props 
b/modules/thirdparty/velocity/test/texen/additional.props
deleted file mode 100644
index db25562..000
--- a/modules/thirdparty/velocity/test/texen/additional.props
+++ /dev/null
@@ -1 +0,0 @@
-occupation=somnambulist

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2d698095/modules/thirdparty/velocity/test/texen/compare/Test.txt
--
diff --git a/modules/thirdparty/velocity/test/texen/compare/Test.txt 
b/modules/thirdparty/velocity/test/texen/compare/Test.txt
deleted file mode 100644
index f2bb18d..000
--- a/modules/thirdparty/velocity/test/texen/compare/Test.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-# These should all evaluate to true
-
-true
-true
-true
-
-# These should all evaluate to false
-
-false
-false
-false

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2d698095/modules/thirdparty/velocity/test/texen/compare/TurbineWeather.java
--
diff --git a/modules/thirdparty/velocity/test/texen/compare/TurbineWeather.java 
b/modules/thirdparty/velocity/test/texen/compare/TurbineWeather.java
deleted file mode 100644
index db2bd31..000
--- a/modules/thirdparty/velocity/test/texen/compare/TurbineWeather.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package org.apache.turbine.services.weather;
-
-/*
- * Copyright (c) 1997-2000 The Java Apache Project.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *notice, this list of conditions and the following disclaimer in
- *the documentation and/or other materials provided with the
- *distribution.
- *
- * 3. All advertising materials mentioning features or use of this
- *software must display the following acknowledgment:
- *"This product includes software developed by the Java Apache
- *Project for use in the Apache JServ servlet engine project
- *."
- *
- * 4. The names "Apache JServ", "Apache JServ Servlet Engine", "Turbine",
- *"Apache Turbine", "Turbine Project", "Apache Turbine Project" and
- *"Java Apache Project" must not be used to endorse or promote products
- *derived from this software without prior written permission.
- *
- * 5. Products derived from this software may not be called "Apache JServ"
- *nor may "Apache" nor "Apache JServ" appear in their names without
- *prior written permission of the Java Apache Project.
- *
- * 6. Redistributions of any form whatsoever must retain the following
- *acknowledgment:
- *"This product